From 62222ae186f4dc3c902ae75e0b7313997649c074 Mon Sep 17 00:00:00 2001 From: Ketan Umare Date: Mon, 5 Aug 2019 13:34:14 -0700 Subject: [PATCH] First open source commit of Flyte's Interface specification Lanugage --- flyteidl/.gitattributes | 1 + flyteidl/.gitignore | 10 + flyteidl/.golangci.yml | 30 + flyteidl/.travis.yml | 21 + flyteidl/CODE_OF_CONDUCT.md | 3 + flyteidl/Gopkg.lock | 570 + flyteidl/Gopkg.toml | 62 + flyteidl/LICENSE | 202 + flyteidl/Makefile | 32 + flyteidl/NOTICE | 4 + flyteidl/README.rst | 22 + .../lyft/golang_test_targets/Makefile | 38 + .../lyft/golang_test_targets/Readme.rst | 31 + .../lyft/golang_test_targets/goimports | 8 + .../lyft/golangci_file/.golangci.yml | 30 + .../boilerplate/lyft/golangci_file/Readme.rst | 8 + .../boilerplate/lyft/golangci_file/update.sh | 14 + flyteidl/boilerplate/update.cfg | 2 + flyteidl/boilerplate/update.sh | 53 + flyteidl/clients/go/admin/client.go | 94 + flyteidl/clients/go/admin/client_test.go | 47 + flyteidl/clients/go/admin/config.go | 43 + flyteidl/clients/go/admin/config_flags.go | 50 + .../clients/go/admin/config_flags_test.go | 212 + .../go/admin/mocks/AdminServiceClient.go | 943 + flyteidl/clients/go/coreutils/literals.go | 262 + .../clients/go/coreutils/literals_test.go | 200 + .../clients/go/coreutils/logs/cloudwatch.go | 44 + .../go/coreutils/logs/cloudwatch_test.go | 50 + .../clients/go/coreutils/logs/kubernetes.go | 25 + .../go/coreutils/logs/kubernetes_test.go | 23 + flyteidl/clients/go/coreutils/logs/logs.go | 12 + .../clients/go/coreutils/logs/stackdriver.go | 39 + .../go/coreutils/logs/stackdriver_test.go | 58 + .../go/datacatalog/mocks/ArtifactsClient.go | 133 + flyteidl/clients/go/events/admin_eventsink.go | 99 + .../admin_eventsink_integration_test.go | 67 + .../clients/go/events/admin_eventsink_test.go | 185 + flyteidl/clients/go/events/config.go | 46 + flyteidl/clients/go/events/config_flags.go | 49 + .../clients/go/events/config_flags_test.go | 190 + flyteidl/clients/go/events/errors/errors.go | 123 + .../clients/go/events/errors/errors_test.go | 66 + flyteidl/clients/go/events/eventsink.go | 22 + flyteidl/clients/go/events/eventsink_test.go | 106 + flyteidl/clients/go/events/iface.go | 22 + flyteidl/clients/go/events/local_eventsink.go | 72 + flyteidl/clients/go/events/local_writer.go | 47 + flyteidl/clients/go/events/mock_eventsink.go | 39 + flyteidl/clients/go/events/mock_recorder.go | 44 + flyteidl/clients/go/events/recorder.go | 87 + flyteidl/gen/__init__.py | 0 .../pb-cpp/flyteidl/admin/common.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/admin/common.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/admin/common.pb.cc | 5102 +++ .../gen/pb-cpp/flyteidl/admin/common.pb.h | 3224 ++ .../pb-cpp/flyteidl/admin/event.grpc.pb.cc | 21 + .../gen/pb-cpp/flyteidl/admin/event.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/admin/event.pb.cc | 2449 ++ flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h | 1413 + .../flyteidl/admin/execution.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/admin/execution.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/admin/execution.pb.cc | 6230 ++++ .../gen/pb-cpp/flyteidl/admin/execution.pb.h | 4229 +++ .../flyteidl/admin/launch_plan.grpc.pb.cc | 21 + .../flyteidl/admin/launch_plan.grpc.pb.h | 34 + .../pb-cpp/flyteidl/admin/launch_plan.pb.cc | 3915 ++ .../pb-cpp/flyteidl/admin/launch_plan.pb.h | 2669 ++ .../flyteidl/admin/node_execution.grpc.pb.cc | 21 + .../flyteidl/admin/node_execution.grpc.pb.h | 34 + .../flyteidl/admin/node_execution.pb.cc | 3859 ++ .../pb-cpp/flyteidl/admin/node_execution.pb.h | 2603 ++ .../flyteidl/admin/notification.grpc.pb.cc | 21 + .../flyteidl/admin/notification.grpc.pb.h | 34 + .../pb-cpp/flyteidl/admin/notification.pb.cc | 547 + .../pb-cpp/flyteidl/admin/notification.pb.h | 471 + .../pb-cpp/flyteidl/admin/project.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/admin/project.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/admin/project.pb.cc | 1848 + .../gen/pb-cpp/flyteidl/admin/project.pb.h | 1113 + .../pb-cpp/flyteidl/admin/schedule.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/admin/schedule.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/admin/schedule.pb.cc | 877 + .../gen/pb-cpp/flyteidl/admin/schedule.pb.h | 614 + .../gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc | 21 + .../gen/pb-cpp/flyteidl/admin/task.grpc.pb.h | 34 + flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc | 1991 + flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h | 1201 + .../flyteidl/admin/task_execution.grpc.pb.cc | 21 + .../flyteidl/admin/task_execution.grpc.pb.h | 34 + .../flyteidl/admin/task_execution.pb.cc | 3103 ++ .../pb-cpp/flyteidl/admin/task_execution.pb.h | 2120 ++ .../pb-cpp/flyteidl/admin/workflow.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/admin/workflow.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/admin/workflow.pb.cc | 1995 + .../gen/pb-cpp/flyteidl/admin/workflow.pb.h | 1202 + .../pb-cpp/flyteidl/core/compiler.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/compiler.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/compiler.pb.cc | 2027 ++ .../gen/pb-cpp/flyteidl/core/compiler.pb.h | 1132 + .../pb-cpp/flyteidl/core/condition.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/condition.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/condition.pb.cc | 1688 + .../gen/pb-cpp/flyteidl/core/condition.pb.h | 1202 + .../flyteidl/core/dynamic_job.grpc.pb.cc | 21 + .../flyteidl/core/dynamic_job.grpc.pb.h | 34 + .../pb-cpp/flyteidl/core/dynamic_job.pb.cc | 558 + .../gen/pb-cpp/flyteidl/core/dynamic_job.pb.h | 359 + .../pb-cpp/flyteidl/core/errors.grpc.pb.cc | 21 + .../gen/pb-cpp/flyteidl/core/errors.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/errors.pb.cc | 788 + flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h | 556 + .../pb-cpp/flyteidl/core/execution.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/execution.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/execution.pb.cc | 1765 + .../gen/pb-cpp/flyteidl/core/execution.pb.h | 1281 + .../flyteidl/core/identifier.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/identifier.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/identifier.pb.cc | 1748 + .../gen/pb-cpp/flyteidl/core/identifier.pb.h | 1289 + .../pb-cpp/flyteidl/core/interface.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/interface.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/interface.pb.cc | 2089 ++ .../gen/pb-cpp/flyteidl/core/interface.pb.h | 1138 + .../pb-cpp/flyteidl/core/literals.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/literals.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/literals.pb.cc | 6284 ++++ .../gen/pb-cpp/flyteidl/core/literals.pb.h | 3797 ++ .../gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc | 21 + .../gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h | 34 + flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc | 3236 ++ flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h | 2407 ++ .../gen/pb-cpp/flyteidl/core/types.grpc.pb.cc | 21 + .../gen/pb-cpp/flyteidl/core/types.grpc.pb.h | 34 + flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc | 2450 ++ flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h | 1676 + .../pb-cpp/flyteidl/core/workflow.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/core/workflow.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/core/workflow.pb.cc | 4182 +++ .../gen/pb-cpp/flyteidl/core/workflow.pb.h | 2796 ++ .../flyteidl/core/workflow_closure.grpc.pb.cc | 21 + .../flyteidl/core/workflow_closure.grpc.pb.h | 34 + .../flyteidl/core/workflow_closure.pb.cc | 431 + .../flyteidl/core/workflow_closure.pb.h | 271 + .../pb-cpp/flyteidl/event/event.grpc.pb.cc | 21 + .../gen/pb-cpp/flyteidl/event/event.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/event/event.pb.cc | 3056 ++ flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h | 2309 ++ .../flyteidl/plugins/array_job.grpc.pb.cc | 21 + .../flyteidl/plugins/array_job.grpc.pb.h | 34 + .../pb-cpp/flyteidl/plugins/array_job.pb.cc | 441 + .../pb-cpp/flyteidl/plugins/array_job.pb.h | 238 + .../pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/plugins/qubole.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/plugins/qubole.pb.cc | 1137 + .../gen/pb-cpp/flyteidl/plugins/qubole.pb.h | 757 + .../flyteidl/plugins/sidecar.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/plugins/sidecar.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/plugins/sidecar.pb.cc | 440 + .../gen/pb-cpp/flyteidl/plugins/sidecar.pb.h | 298 + .../pb-cpp/flyteidl/plugins/spark.grpc.pb.cc | 21 + .../pb-cpp/flyteidl/plugins/spark.grpc.pb.h | 34 + .../gen/pb-cpp/flyteidl/plugins/spark.pb.cc | 1221 + .../gen/pb-cpp/flyteidl/plugins/spark.pb.h | 702 + .../flyteidl/plugins/waitable.grpc.pb.cc | 21 + .../flyteidl/plugins/waitable.grpc.pb.h | 34 + .../pb-cpp/flyteidl/plugins/waitable.pb.cc | 486 + .../gen/pb-cpp/flyteidl/plugins/waitable.pb.h | 320 + .../pb-cpp/flyteidl/service/admin.grpc.pb.cc | 846 + .../pb-cpp/flyteidl/service/admin.grpc.pb.h | 3071 ++ .../gen/pb-cpp/flyteidl/service/admin.pb.cc | 281 + .../gen/pb-cpp/flyteidl/service/admin.pb.h | 87 + .../gen/pb-go/flyteidl/admin/common.pb.go | 917 + .../flyteidl/admin/common.pb.validate.go | 1020 + .../pb-go/flyteidl/admin/common.swagger.json | 19 + flyteidl/gen/pb-go/flyteidl/admin/event.pb.go | 446 + .../pb-go/flyteidl/admin/event.pb.validate.go | 627 + .../pb-go/flyteidl/admin/event.swagger.json | 19 + .../gen/pb-go/flyteidl/admin/execution.pb.go | 1345 + .../flyteidl/admin/execution.pb.validate.go | 1407 + .../flyteidl/admin/execution.swagger.json | 19 + .../pb-go/flyteidl/admin/launch_plan.pb.go | 761 + .../flyteidl/admin/launch_plan.pb.validate.go | 922 + .../flyteidl/admin/launch_plan.swagger.json | 19 + .../pb-go/flyteidl/admin/node_execution.pb.go | 778 + .../admin/node_execution.pb.validate.go | 860 + .../admin/node_execution.swagger.json | 19 + .../pb-go/flyteidl/admin/notification.pb.go | 118 + .../admin/notification.pb.validate.go | 105 + .../flyteidl/admin/notification.swagger.json | 19 + .../gen/pb-go/flyteidl/admin/project.pb.go | 293 + .../flyteidl/admin/project.pb.validate.go | 475 + .../pb-go/flyteidl/admin/project.swagger.json | 19 + .../gen/pb-go/flyteidl/admin/schedule.pb.go | 277 + .../flyteidl/admin/schedule.pb.validate.go | 187 + .../flyteidl/admin/schedule.swagger.json | 19 + flyteidl/gen/pb-go/flyteidl/admin/task.pb.go | 332 + .../pb-go/flyteidl/admin/task.pb.validate.go | 512 + .../pb-go/flyteidl/admin/task.swagger.json | 19 + .../pb-go/flyteidl/admin/task_execution.pb.go | 618 + .../admin/task_execution.pb.validate.go | 700 + .../admin/task_execution.swagger.json | 19 + .../gen/pb-go/flyteidl/admin/workflow.pb.go | 333 + .../flyteidl/admin/workflow.pb.validate.go | 514 + .../flyteidl/admin/workflow.swagger.json | 19 + .../gen/pb-go/flyteidl/core/compiler.pb.go | 306 + .../flyteidl/core/compiler.pb.validate.go | 437 + .../pb-go/flyteidl/core/compiler.swagger.json | 19 + .../gen/pb-go/flyteidl/core/condition.pb.go | 529 + .../flyteidl/core/condition.pb.validate.go | 390 + .../flyteidl/core/condition.swagger.json | 19 + .../gen/pb-go/flyteidl/core/dynamic_job.pb.go | 130 + .../flyteidl/core/dynamic_job.pb.validate.go | 161 + .../flyteidl/core/dynamic_job.swagger.json | 19 + flyteidl/gen/pb-go/flyteidl/core/errors.pb.go | 171 + .../pb-go/flyteidl/core/errors.pb.validate.go | 180 + .../pb-go/flyteidl/core/errors.swagger.json | 19 + .../gen/pb-go/flyteidl/core/execution.pb.go | 436 + .../flyteidl/core/execution.pb.validate.go | 382 + .../flyteidl/core/execution.swagger.json | 19 + .../gen/pb-go/flyteidl/core/identifier.pb.go | 330 + .../flyteidl/core/identifier.pb.validate.go | 350 + .../flyteidl/core/identifier.swagger.json | 19 + .../gen/pb-go/flyteidl/core/interface.pb.go | 397 + .../flyteidl/core/interface.pb.validate.go | 422 + .../flyteidl/core/interface.swagger.json | 19 + .../gen/pb-go/flyteidl/core/literals.pb.go | 1583 + .../flyteidl/core/literals.pb.validate.go | 1379 + .../pb-go/flyteidl/core/literals.swagger.json | 19 + flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go | 697 + .../pb-go/flyteidl/core/tasks.pb.validate.go | 682 + .../pb-go/flyteidl/core/tasks.swagger.json | 19 + flyteidl/gen/pb-go/flyteidl/core/types.pb.go | 671 + .../pb-go/flyteidl/core/types.pb.validate.go | 519 + .../pb-go/flyteidl/core/types.swagger.json | 19 + .../gen/pb-go/flyteidl/core/workflow.pb.go | 1074 + .../flyteidl/core/workflow.pb.validate.go | 984 + .../pb-go/flyteidl/core/workflow.swagger.json | 19 + .../flyteidl/core/workflow_closure.pb.go | 94 + .../core/workflow_closure.pb.validate.go | 124 + .../core/workflow_closure.swagger.json | 19 + .../flyteidl/datacatalog/datacatalog.pb.go | 1245 + .../datacatalog/datacatalog.pb.validate.go | 1159 + flyteidl/gen/pb-go/flyteidl/event/event.pb.go | 826 + .../pb-go/flyteidl/event/event.pb.validate.go | 596 + .../pb-go/flyteidl/event/event.swagger.json | 19 + .../pb-go/flyteidl/plugins/array_job.pb.go | 108 + .../flyteidl/plugins/array_job.pb.validate.go | 104 + .../gen/pb-go/flyteidl/plugins/qubole.pb.go | 203 + .../flyteidl/plugins/qubole.pb.validate.go | 263 + .../gen/pb-go/flyteidl/plugins/sidecar.pb.go | 95 + .../flyteidl/plugins/sidecar.pb.validate.go | 110 + .../gen/pb-go/flyteidl/plugins/spark.pb.go | 194 + .../flyteidl/plugins/spark.pb.validate.go | 175 + .../gen/pb-go/flyteidl/plugins/waitable.pb.go | 103 + .../flyteidl/plugins/waitable.pb.validate.go | 116 + .../gen/pb-go/flyteidl/service/admin.pb.go | 1200 + .../gen/pb-go/flyteidl/service/admin.pb.gw.go | 2881 ++ .../pb-go/flyteidl/service/admin.swagger.json | 4452 +++ .../flyteidl/service/flyteadmin/.gitignore | 24 + .../flyteadmin/.swagger-codegen-ignore | 23 + .../flyteadmin/.swagger-codegen/VERSION | 1 + .../flyteidl/service/flyteadmin/.travis.yml | 8 + .../flyteidl/service/flyteadmin/README.md | 222 + .../service/flyteadmin/api/swagger.yaml | 23374 ++++++++++++ .../service/flyteadmin/api_admin_service.go | 3752 ++ .../flyteidl/service/flyteadmin/client.go | 464 + .../service/flyteadmin/configuration.go | 72 + .../flyteidl/service/flyteadmin/git_push.sh | 52 + .../flyteadmin/model_admin_annotations.go | 16 + .../service/flyteadmin/model_admin_auth.go | 16 + .../service/flyteadmin/model_admin_domain.go | 17 + .../model_admin_email_notification.go | 15 + .../flyteadmin/model_admin_execution.go | 20 + .../model_admin_execution_closure.go | 38 + .../model_admin_execution_create_request.go | 21 + .../model_admin_execution_create_response.go | 15 + .../flyteadmin/model_admin_execution_list.go | 17 + .../model_admin_execution_metadata.go | 28 + .../model_admin_execution_relaunch_request.go | 17 + .../flyteadmin/model_admin_execution_spec.go | 25 + ...model_admin_execution_terminate_request.go | 18 + ...odel_admin_execution_terminate_response.go | 13 + .../flyteadmin/model_admin_fixed_rate.go | 16 + .../flyteadmin/model_admin_fixed_rate_unit.go | 19 + .../service/flyteadmin/model_admin_labels.go | 16 + .../flyteadmin/model_admin_launch_plan.go | 17 + .../model_admin_launch_plan_closure.go | 25 + .../model_admin_launch_plan_create_request.go | 18 + ...model_admin_launch_plan_create_response.go | 13 + .../model_admin_launch_plan_list.go | 17 + .../model_admin_launch_plan_metadata.go | 16 + .../model_admin_launch_plan_spec.go | 25 + .../model_admin_launch_plan_state.go | 18 + .../model_admin_launch_plan_update_request.go | 18 + ...model_admin_launch_plan_update_response.go | 14 + .../model_admin_literal_map_blob.go | 15 + .../model_admin_named_entity_identifier.go | 19 + ...odel_admin_named_entity_identifier_list.go | 18 + .../model_admin_node_execution_closure.go | 31 + ...odel_admin_node_execution_event_request.go | 17 + ...del_admin_node_execution_event_response.go | 13 + ..._admin_node_execution_get_data_response.go | 18 + .../model_admin_node_execution_list.go | 17 + .../flyteadmin/model_admin_notification.go | 19 + .../model_admin_notification_list.go | 14 + .../model_admin_pager_duty_notification.go | 15 + .../service/flyteadmin/model_admin_project.go | 18 + .../model_admin_project_register_request.go | 14 + .../model_admin_project_register_response.go | 13 + .../flyteadmin/model_admin_projects.go | 14 + .../flyteadmin/model_admin_schedule.go | 18 + .../model_admin_slack_notification.go | 15 + .../service/flyteadmin/model_admin_sort.go | 17 + .../service/flyteadmin/model_admin_task.go | 18 + .../flyteadmin/model_admin_task_closure.go | 22 + .../model_admin_task_create_request.go | 18 + .../model_admin_task_create_response.go | 14 + .../model_admin_task_execution_closure.go | 36 + ...odel_admin_task_execution_event_request.go | 17 + ...del_admin_task_execution_event_response.go | 13 + ..._admin_task_execution_get_data_response.go | 18 + .../model_admin_task_execution_list.go | 17 + .../flyteadmin/model_admin_task_list.go | 18 + .../flyteadmin/model_admin_task_spec.go | 16 + .../flyteadmin/model_admin_url_blob.go | 18 + .../flyteadmin/model_admin_workflow.go | 18 + .../model_admin_workflow_closure.go | 22 + .../model_admin_workflow_create_request.go | 18 + .../model_admin_workflow_create_response.go | 13 + ..._admin_workflow_execution_event_request.go | 17 + ...admin_workflow_execution_event_response.go | 13 + ...in_workflow_execution_get_data_response.go | 16 + .../flyteadmin/model_admin_workflow_list.go | 18 + .../flyteadmin/model_admin_workflow_spec.go | 16 + .../model_blob_type_blob_dimensionality.go | 18 + .../model_comparison_expression_operator.go | 22 + ...conjunction_expression_logical_operator.go | 18 + .../model_connection_set_id_list.go | 14 + .../service/flyteadmin/model_core_alias.go | 18 + .../service/flyteadmin/model_core_binary.go | 16 + .../service/flyteadmin/model_core_binding.go | 18 + .../flyteadmin/model_core_binding_data.go | 22 + .../model_core_binding_data_collection.go | 15 + .../flyteadmin/model_core_binding_data_map.go | 15 + .../service/flyteadmin/model_core_blob.go | 16 + .../flyteadmin/model_core_blob_metadata.go | 14 + .../flyteadmin/model_core_blob_type.go | 15 + .../model_core_boolean_expression.go | 16 + .../flyteadmin/model_core_branch_node.go | 15 + .../model_core_comparison_expression.go | 17 + .../flyteadmin/model_core_compiled_task.go | 14 + .../model_core_compiled_workflow.go | 16 + .../model_core_compiled_workflow_closure.go | 17 + .../model_core_conjunction_expression.go | 17 + .../flyteadmin/model_core_connection_set.go | 15 + .../flyteadmin/model_core_container.go | 25 + .../flyteadmin/model_core_container_port.go | 16 + .../service/flyteadmin/model_core_error.go | 18 + .../flyteadmin/model_core_execution_error.go | 18 + .../flyteadmin/model_core_identifier.go | 24 + .../service/flyteadmin/model_core_if_block.go | 16 + .../flyteadmin/model_core_if_else_block.go | 22 + .../flyteadmin/model_core_key_value_pair.go | 18 + .../service/flyteadmin/model_core_literal.go | 20 + .../model_core_literal_collection.go | 15 + .../flyteadmin/model_core_literal_map.go | 15 + .../flyteadmin/model_core_literal_type.go | 26 + .../service/flyteadmin/model_core_node.go | 30 + .../model_core_node_execution_identifier.go | 16 + .../model_core_node_execution_phase.go | 25 + .../flyteadmin/model_core_node_metadata.go | 19 + .../service/flyteadmin/model_core_operand.go | 16 + .../flyteadmin/model_core_output_reference.go | 18 + .../flyteadmin/model_core_parameter.go | 20 + .../flyteadmin/model_core_parameter_map.go | 16 + .../flyteadmin/model_core_primitive.go | 23 + .../flyteadmin/model_core_resource_type.go | 20 + .../flyteadmin/model_core_resources.go | 18 + .../flyteadmin/model_core_retry_strategy.go | 16 + .../flyteadmin/model_core_runtime_metadata.go | 20 + .../service/flyteadmin/model_core_scalar.go | 20 + .../flyteadmin/model_core_schema_type.go | 16 + .../flyteadmin/model_core_simple_type.go | 26 + .../model_core_task_execution_identifier.go | 17 + .../model_core_task_execution_phase.go | 22 + .../service/flyteadmin/model_core_task_log.go | 17 + .../flyteadmin/model_core_task_metadata.go | 25 + .../flyteadmin/model_core_task_node.go | 16 + .../flyteadmin/model_core_task_template.go | 25 + .../flyteadmin/model_core_typed_interface.go | 16 + .../service/flyteadmin/model_core_variable.go | 17 + .../flyteadmin/model_core_variable_map.go | 15 + .../service/flyteadmin/model_core_void.go | 14 + ...odel_core_workflow_execution_identifier.go | 19 + .../model_core_workflow_execution_phase.go | 25 + .../model_core_workflow_metadata.go | 14 + .../flyteadmin/model_core_workflow_node.go | 17 + .../model_core_workflow_template.go | 26 + .../model_event_node_execution_event.go | 29 + ...el_event_parent_task_execution_metadata.go | 14 + .../model_event_task_execution_event.go | 36 + .../model_event_workflow_execution_event.go | 25 + ...model_execution_metadata_execution_mode.go | 21 + .../model_flyteidladmin_node_execution.go | 20 + .../model_flyteidladmin_task_execution.go | 22 + ...el_flyteidladmin_workflow_node_metadata.go | 14 + .../flyteadmin/model_flyteidlcore_schema.go | 16 + ...el_flyteidlevent_workflow_node_metadata.go | 14 + .../flyteadmin/model_protobuf_list_value.go | 16 + .../flyteadmin/model_protobuf_null_value.go | 17 + .../flyteadmin/model_protobuf_struct.go | 16 + .../flyteadmin/model_protobuf_value.go | 26 + .../model_resources_resource_entry.go | 17 + .../model_resources_resource_name.go | 21 + .../model_runtime_metadata_runtime_type.go | 18 + .../model_schema_column_schema_column_type.go | 22 + .../model_schema_type_schema_column.go | 16 + .../flyteadmin/model_sort_direction.go | 18 + .../model_task_log_message_format.go | 19 + .../flyteidl/service/flyteadmin/response.go | 43 + .../gen/pb-go/flyteidl/service/openapi.go | 244 + .../gen/pb-java/flyteidl/admin/Common.java | 12054 ++++++ .../gen/pb-java/flyteidl/admin/Event.java | 5004 +++ .../flyteidl/admin/ExecutionOuterClass.java | 17222 +++++++++ .../flyteidl/admin/LaunchPlanOuterClass.java | 10544 ++++++ .../admin/NodeExecutionOuterClass.java | 10127 ++++++ .../pb-java/flyteidl/admin/Notification.java | 1301 + .../flyteidl/admin/ProjectOuterClass.java | 4017 ++ .../flyteidl/admin/ScheduleOuterClass.java | 1801 + .../admin/TaskExecutionOuterClass.java | 8696 +++++ .../flyteidl/admin/TaskOuterClass.java | 4958 +++ .../flyteidl/admin/WorkflowOuterClass.java | 4961 +++ .../gen/pb-java/flyteidl/core/Compiler.java | 5122 +++ .../gen/pb-java/flyteidl/core/Condition.java | 3974 ++ .../gen/pb-java/flyteidl/core/DynamicJob.java | 2519 ++ .../gen/pb-java/flyteidl/core/Errors.java | 1698 + .../gen/pb-java/flyteidl/core/Execution.java | 3752 ++ .../flyteidl/core/IdentifierOuterClass.java | 3946 ++ .../gen/pb-java/flyteidl/core/Interface.java | 4383 +++ .../gen/pb-java/flyteidl/core/Literals.java | 14483 ++++++++ flyteidl/gen/pb-java/flyteidl/core/Tasks.java | 10213 ++++++ flyteidl/gen/pb-java/flyteidl/core/Types.java | 6259 ++++ .../gen/pb-java/flyteidl/core/Workflow.java | 13029 +++++++ .../core/WorkflowClosureOuterClass.java | 1227 + .../gen/pb-java/flyteidl/event/Event.java | 8617 +++++ .../flyteidl/plugins/ArrayJobOuterClass.java | 738 + .../gen/pb-java/flyteidl/plugins/Qubole.java | 2434 ++ .../gen/pb-java/flyteidl/plugins/Sidecar.java | 793 + .../gen/pb-java/flyteidl/plugins/Spark.java | 2128 ++ .../flyteidl/plugins/WaitableOuterClass.java | 885 + .../gen/pb-java/flyteidl/service/Admin.java | 263 + flyteidl/gen/pb-js/flyteidl.d.ts | 12804 +++++++ flyteidl/gen/pb-js/flyteidl.js | 30224 ++++++++++++++++ .../flyteidl/admin/common.proto.rst | 459 + .../flyteidl/admin/event.proto.rst | 182 + .../flyteidl/admin/execution.proto.rst | 637 + .../gen/pb-protodoc/flyteidl/admin/index.rst | 24 + .../flyteidl/admin/launch_plan.proto.rst | 377 + .../flyteidl/admin/node_execution.proto.rst | 365 + .../flyteidl/admin/notification.proto.rst | 57 + .../flyteidl/admin/project.proto.rst | 141 + .../flyteidl/admin/schedule.proto.rst | 99 + .../pb-protodoc/flyteidl/admin/task.proto.rst | 167 + .../flyteidl/admin/task_execution.proto.rst | 297 + .../flyteidl/admin/workflow.proto.rst | 165 + .../flyteidl/core/compiler.proto.rst | 154 + .../flyteidl/core/condition.proto.rst | 206 + .../flyteidl/core/dynamic_job.proto.rst | 60 + .../flyteidl/core/errors.proto.rst | 85 + .../flyteidl/core/execution.proto.rst | 299 + .../flyteidl/core/identifier.proto.rst | 185 + .../gen/pb-protodoc/flyteidl/core/index.rst | 26 + .../flyteidl/core/interface.proto.rst | 154 + .../flyteidl/core/literals.proto.rst | 563 + .../pb-protodoc/flyteidl/core/tasks.proto.rst | 374 + .../pb-protodoc/flyteidl/core/types.proto.rst | 335 + .../flyteidl/core/workflow.proto.rst | 411 + .../flyteidl/core/workflow_closure.proto.rst | 35 + .../flyteidl/event/event.proto.rst | 310 + .../gen/pb-protodoc/flyteidl/event/index.rst | 27 + flyteidl/gen/pb-protodoc/flyteidl/index.rst | 18 + .../flyteidl/plugins/array_job.proto.rst | 48 + .../pb-protodoc/flyteidl/plugins/index.rst | 17 + .../flyteidl/plugins/qubole.proto.rst | 95 + .../flyteidl/plugins/sidecar.proto.rst | 34 + .../flyteidl/plugins/spark.proto.rst | 100 + .../flyteidl/plugins/waitable.proto.rst | 38 + .../flyteidl/service/admin.proto.rst | 5 + .../pb-protodoc/flyteidl/service/index.rst | 13 + .../google/api/annotations.proto.rst | 19 + .../gen/pb-protodoc/google/api/http.proto.rst | 437 + flyteidl/gen/pb-protodoc/google/api/index.rst | 10 + flyteidl/gen/pb-protodoc/google/index.rst | 10 + .../pb-protodoc/google/protobuf/any.proto.rst | 164 + .../google/protobuf/descriptor.proto.rst | 1798 + .../google/protobuf/duration.proto.rst | 130 + .../gen/pb-protodoc/google/protobuf/index.rst | 13 + .../google/protobuf/struct.proto.rst | 194 + .../google/protobuf/timestamp.proto.rst | 146 + flyteidl/gen/pb-protodoc/index.rst | 12 + .../gen/pb-protodoc/k8s.io/api/core/index.rst | 9 + .../k8s.io/api/core/v1/generated.proto.rst | 10519 ++++++ .../pb-protodoc/k8s.io/api/core/v1/index.rst | 9 + flyteidl/gen/pb-protodoc/k8s.io/api/index.rst | 9 + .../pb-protodoc/k8s.io/apimachinery/index.rst | 9 + .../k8s.io/apimachinery/pkg/api/index.rst | 9 + .../pkg/api/resource/generated.proto.rst | 99 + .../apimachinery/pkg/api/resource/index.rst | 9 + .../k8s.io/apimachinery/pkg/apis/index.rst | 9 + .../apimachinery/pkg/apis/meta/index.rst | 9 + .../pkg/apis/meta/v1/generated.proto.rst | 1991 + .../apimachinery/pkg/apis/meta/v1/index.rst | 9 + .../k8s.io/apimachinery/pkg/index.rst | 12 + .../pkg/runtime/generated.proto.rst | 188 + .../k8s.io/apimachinery/pkg/runtime/index.rst | 10 + .../pkg/runtime/schema/generated.proto.rst | 21 + .../apimachinery/pkg/runtime/schema/index.rst | 9 + .../k8s.io/apimachinery/pkg/util/index.rst | 9 + .../pkg/util/intstr/generated.proto.rst | 62 + .../apimachinery/pkg/util/intstr/index.rst | 9 + flyteidl/gen/pb-protodoc/k8s.io/index.rst | 10 + .../pb-protodoc/protoc-gen-swagger/index.rst | 9 + .../options/annotations.proto.rst | 5 + .../protoc-gen-swagger/options/index.rst | 10 + .../options/openapiv2.proto.rst | 955 + flyteidl/gen/pb_python/__init__.py | 0 flyteidl/gen/pb_python/flyteidl/__init__.py | 0 .../gen/pb_python/flyteidl/admin/__init__.py | 0 .../pb_python/flyteidl/admin/common_pb2.py | 798 + .../flyteidl/admin/common_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/admin/event_pb2.py | 356 + .../flyteidl/admin/event_pb2_grpc.py | 3 + .../pb_python/flyteidl/admin/execution_pb2.py | 926 + .../flyteidl/admin/execution_pb2_grpc.py | 3 + .../flyteidl/admin/launch_plan_pb2.py | 601 + .../flyteidl/admin/launch_plan_pb2_grpc.py | 3 + .../flyteidl/admin/node_execution_pb2.py | 556 + .../flyteidl/admin/node_execution_pb2_grpc.py | 3 + .../flyteidl/admin/notification_pb2.py | 92 + .../flyteidl/admin/notification_pb2_grpc.py | 3 + .../pb_python/flyteidl/admin/project_pb2.py | 276 + .../flyteidl/admin/project_pb2_grpc.py | 3 + .../pb_python/flyteidl/admin/schedule_pb2.py | 174 + .../flyteidl/admin/schedule_pb2_grpc.py | 3 + .../flyteidl/admin/task_execution_pb2.py | 457 + .../flyteidl/admin/task_execution_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/admin/task_pb2.py | 300 + .../pb_python/flyteidl/admin/task_pb2_grpc.py | 3 + .../pb_python/flyteidl/admin/workflow_pb2.py | 301 + .../flyteidl/admin/workflow_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/core/__init__.py | 0 .../pb_python/flyteidl/core/compiler_pb2.py | 364 + .../flyteidl/core/compiler_pb2_grpc.py | 3 + .../pb_python/flyteidl/core/condition_pb2.py | 323 + .../flyteidl/core/condition_pb2_grpc.py | 3 + .../flyteidl/core/dynamic_job_pb2.py | 107 + .../flyteidl/core/dynamic_job_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/core/errors_pb2.py | 150 + .../flyteidl/core/errors_pb2_grpc.py | 3 + .../pb_python/flyteidl/core/execution_pb2.py | 417 + .../flyteidl/core/execution_pb2_grpc.py | 3 + .../pb_python/flyteidl/core/identifier_pb2.py | 292 + .../flyteidl/core/identifier_pb2_grpc.py | 3 + .../pb_python/flyteidl/core/interface_pb2.py | 372 + .../flyteidl/core/interface_pb2_grpc.py | 3 + .../pb_python/flyteidl/core/literals_pb2.py | 995 + .../flyteidl/core/literals_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/core/tasks_pb2.py | 533 + .../pb_python/flyteidl/core/tasks_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/core/types_pb2.py | 489 + .../pb_python/flyteidl/core/types_pb2_grpc.py | 3 + .../flyteidl/core/workflow_closure_pb2.py | 83 + .../core/workflow_closure_pb2_grpc.py | 3 + .../pb_python/flyteidl/core/workflow_pb2.py | 622 + .../flyteidl/core/workflow_pb2_grpc.py | 3 + .../gen/pb_python/flyteidl/event/__init__.py | 0 .../gen/pb_python/flyteidl/event/event_pb2.py | 452 + .../flyteidl/event/event_pb2_grpc.py | 3 + .../pb_python/flyteidl/plugins/__init__.py | 0 .../flyteidl/plugins/array_job_pb2.py | 85 + .../flyteidl/plugins/array_job_pb2_grpc.py | 3 + .../pb_python/flyteidl/plugins/qubole_pb2.py | 181 + .../flyteidl/plugins/qubole_pb2_grpc.py | 3 + .../pb_python/flyteidl/plugins/sidecar_pb2.py | 81 + .../flyteidl/plugins/sidecar_pb2_grpc.py | 3 + .../pb_python/flyteidl/plugins/spark_pb2.py | 269 + .../flyteidl/plugins/spark_pb2_grpc.py | 3 + .../flyteidl/plugins/waitable_pb2.py | 90 + .../flyteidl/plugins/waitable_pb2_grpc.py | 3 + .../pb_python/flyteidl/service/__init__.py | 0 .../pb_python/flyteidl/service/admin_pb2.py | 338 + .../flyteidl/service/admin_pb2_grpc.py | 564 + .../flyteidl/service/flyteadmin/.gitignore | 64 + .../flyteadmin/.swagger-codegen-ignore | 23 + .../flyteadmin/.swagger-codegen/VERSION | 1 + .../flyteidl/service/flyteadmin/.travis.yml | 14 + .../flyteidl/service/flyteadmin/README.md | 271 + .../service/flyteadmin/flyteadmin/__init__.py | 175 + .../flyteadmin/flyteadmin/api/__init__.py | 6 + .../flyteadmin/api/admin_service_api.py | 4168 +++ .../flyteadmin/flyteadmin/api_client.py | 638 + .../flyteadmin/flyteadmin/configuration.py | 237 + .../flyteadmin/flyteadmin/models/__init__.py | 168 + .../flyteadmin/models/admin_annotations.py | 117 + .../flyteadmin/models/admin_auth.py | 141 + .../flyteadmin/models/admin_domain.py | 143 + .../models/admin_email_notification.py | 117 + .../flyteadmin/models/admin_execution.py | 177 + .../models/admin_execution_closure.py | 402 + .../models/admin_execution_create_request.py | 201 + .../models/admin_execution_create_response.py | 117 + .../flyteadmin/models/admin_execution_list.py | 145 + .../models/admin_execution_metadata.py | 257 + .../admin_execution_relaunch_request.py | 145 + .../flyteadmin/models/admin_execution_spec.py | 286 + .../admin_execution_terminate_request.py | 147 + .../admin_execution_terminate_response.py | 87 + .../flyteadmin/models/admin_fixed_rate.py | 143 + .../models/admin_fixed_rate_unit.py | 94 + .../flyteadmin/models/admin_labels.py | 117 + .../flyteadmin/models/admin_launch_plan.py | 171 + .../models/admin_launch_plan_closure.py | 227 + .../admin_launch_plan_create_request.py | 148 + .../admin_launch_plan_create_response.py | 87 + .../models/admin_launch_plan_list.py | 145 + .../models/admin_launch_plan_metadata.py | 144 + .../models/admin_launch_plan_spec.py | 311 + .../models/admin_launch_plan_state.py | 93 + .../admin_launch_plan_update_request.py | 148 + .../admin_launch_plan_update_response.py | 87 + .../models/admin_literal_map_blob.py | 143 + .../models/admin_named_entity_identifier.py | 171 + .../admin_named_entity_identifier_list.py | 147 + .../models/admin_node_execution_closure.py | 311 + .../admin_node_execution_event_request.py | 145 + .../admin_node_execution_event_response.py | 87 + .../admin_node_execution_get_data_response.py | 147 + .../models/admin_node_execution_list.py | 145 + .../flyteadmin/models/admin_notification.py | 200 + .../models/admin_notification_list.py | 117 + .../models/admin_pager_duty_notification.py | 117 + .../flyteadmin/models/admin_project.py | 171 + .../models/admin_project_register_request.py | 117 + .../models/admin_project_register_response.py | 87 + .../flyteadmin/models/admin_projects.py | 117 + .../flyteadmin/models/admin_schedule.py | 171 + .../models/admin_slack_notification.py | 117 + .../flyteadmin/models/admin_sort.py | 145 + .../flyteadmin/models/admin_task.py | 148 + .../flyteadmin/models/admin_task_closure.py | 147 + .../models/admin_task_create_request.py | 148 + .../models/admin_task_create_response.py | 87 + .../models/admin_task_execution_closure.py | 346 + .../admin_task_execution_event_request.py | 145 + .../admin_task_execution_event_response.py | 87 + .../admin_task_execution_get_data_response.py | 147 + .../models/admin_task_execution_list.py | 145 + .../flyteadmin/models/admin_task_list.py | 147 + .../flyteadmin/models/admin_task_spec.py | 119 + .../flyteadmin/models/admin_url_blob.py | 145 + .../flyteadmin/models/admin_workflow.py | 148 + .../models/admin_workflow_closure.py | 147 + .../models/admin_workflow_create_request.py | 148 + .../models/admin_workflow_create_response.py | 87 + .../admin_workflow_execution_event_request.py | 145 + ...admin_workflow_execution_event_response.py | 87 + ...in_workflow_execution_get_data_response.py | 119 + .../flyteadmin/models/admin_workflow_list.py | 147 + .../flyteadmin/models/admin_workflow_spec.py | 119 + .../models/blob_type_blob_dimensionality.py | 93 + .../models/comparison_expression_operator.py | 97 + ...conjunction_expression_logical_operator.py | 93 + .../models/connection_set_id_list.py | 115 + .../flyteadmin/models/core_alias.py | 145 + .../flyteadmin/models/core_binary.py | 143 + .../flyteadmin/models/core_binding.py | 147 + .../flyteadmin/models/core_binding_data.py | 206 + .../models/core_binding_data_collection.py | 117 + .../models/core_binding_data_map.py | 117 + .../flyteadmin/flyteadmin/models/core_blob.py | 143 + .../flyteadmin/models/core_blob_metadata.py | 117 + .../flyteadmin/models/core_blob_type.py | 143 + .../models/core_boolean_expression.py | 144 + .../flyteadmin/models/core_branch_node.py | 117 + .../models/core_comparison_expression.py | 170 + .../flyteadmin/models/core_compiled_task.py | 117 + .../models/core_compiled_workflow.py | 146 + .../models/core_compiled_workflow_closure.py | 170 + .../models/core_conjunction_expression.py | 170 + .../flyteadmin/models/core_connection_set.py | 143 + .../flyteadmin/models/core_container.py | 285 + .../flyteadmin/models/core_container_port.py | 117 + .../flyteadmin/models/core_error.py | 145 + .../flyteadmin/models/core_execution_error.py | 169 + .../flyteadmin/models/core_identifier.py | 231 + .../flyteadmin/models/core_if_block.py | 144 + .../flyteadmin/models/core_if_else_block.py | 205 + .../flyteadmin/models/core_key_value_pair.py | 145 + .../flyteadmin/models/core_literal.py | 177 + .../models/core_literal_collection.py | 117 + .../flyteadmin/models/core_literal_map.py | 117 + .../flyteadmin/models/core_literal_type.py | 263 + .../flyteadmin/flyteadmin/models/core_node.py | 320 + .../models/core_node_execution_identifier.py | 143 + .../models/core_node_execution_phase.py | 100 + .../flyteadmin/models/core_node_metadata.py | 173 + .../flyteadmin/models/core_operand.py | 143 + .../models/core_output_reference.py | 145 + .../flyteadmin/models/core_parameter.py | 176 + .../flyteadmin/models/core_parameter_map.py | 119 + .../flyteadmin/models/core_primitive.py | 245 + .../flyteadmin/models/core_resource_type.py | 95 + .../flyteadmin/models/core_resources.py | 147 + .../flyteadmin/models/core_retry_strategy.py | 117 + .../models/core_runtime_metadata.py | 175 + .../flyteadmin/models/core_scalar.py | 279 + .../flyteadmin/models/core_schema_type.py | 119 + .../flyteadmin/models/core_simple_type.py | 101 + .../models/core_task_execution_identifier.py | 170 + .../models/core_task_execution_phase.py | 97 + .../flyteadmin/models/core_task_log.py | 195 + .../flyteadmin/models/core_task_metadata.py | 260 + .../flyteadmin/models/core_task_node.py | 119 + .../flyteadmin/models/core_task_template.py | 261 + .../flyteadmin/models/core_typed_interface.py | 143 + .../flyteadmin/models/core_variable.py | 145 + .../flyteadmin/models/core_variable_map.py | 119 + .../flyteadmin/flyteadmin/models/core_void.py | 87 + .../core_workflow_execution_identifier.py | 173 + .../models/core_workflow_execution_phase.py | 100 + .../models/core_workflow_metadata.py | 87 + .../flyteadmin/models/core_workflow_node.py | 145 + .../models/core_workflow_template.py | 263 + .../models/event_node_execution_event.py | 335 + .../event_parent_task_execution_metadata.py | 117 + .../models/event_task_execution_event.py | 420 + .../models/event_workflow_execution_event.py | 253 + .../execution_metadata_execution_mode.py | 96 + .../models/flyteidladmin_node_execution.py | 176 + .../models/flyteidladmin_task_execution.py | 204 + .../flyteidladmin_workflow_node_metadata.py | 117 + .../flyteadmin/models/flyteidlcore_schema.py | 143 + .../flyteidlevent_workflow_node_metadata.py | 117 + .../flyteadmin/models/protobuf_list_value.py | 119 + .../flyteadmin/models/protobuf_null_value.py | 92 + .../flyteadmin/models/protobuf_struct.py | 119 + .../flyteadmin/models/protobuf_value.py | 261 + .../models/resources_resource_entry.py | 145 + .../models/resources_resource_name.py | 96 + .../models/runtime_metadata_runtime_type.py | 93 + .../schema_column_schema_column_type.py | 97 + .../models/schema_type_schema_column.py | 145 + .../flyteadmin/models/sort_direction.py | 93 + .../models/task_log_message_format.py | 94 + .../service/flyteadmin/flyteadmin/rest.py | 323 + .../flyteidl/service/flyteadmin/git_push.sh | 52 + .../service/flyteadmin/requirements.txt | 5 + .../flyteidl/service/flyteadmin/setup.py | 46 + .../service/flyteadmin/test-requirements.txt | 5 + .../service/flyteadmin/test/__init__.py | 0 .../flyteadmin/test/test_admin_annotations.py | 40 + .../flyteadmin/test/test_admin_auth.py | 40 + .../flyteadmin/test/test_admin_domain.py | 40 + .../test/test_admin_email_notification.py | 40 + .../flyteadmin/test/test_admin_execution.py | 40 + .../test/test_admin_execution_closure.py | 40 + .../test_admin_execution_create_request.py | 40 + .../test_admin_execution_create_response.py | 40 + .../test/test_admin_execution_list.py | 40 + .../test/test_admin_execution_metadata.py | 40 + .../test_admin_execution_relaunch_request.py | 40 + .../test/test_admin_execution_spec.py | 40 + .../test_admin_execution_terminate_request.py | 40 + ...test_admin_execution_terminate_response.py | 40 + .../flyteadmin/test/test_admin_fixed_rate.py | 40 + .../test/test_admin_fixed_rate_unit.py | 40 + .../flyteadmin/test/test_admin_labels.py | 40 + .../flyteadmin/test/test_admin_launch_plan.py | 40 + .../test/test_admin_launch_plan_closure.py | 40 + .../test_admin_launch_plan_create_request.py | 40 + .../test_admin_launch_plan_create_response.py | 40 + .../test/test_admin_launch_plan_list.py | 40 + .../test/test_admin_launch_plan_metadata.py | 40 + .../test/test_admin_launch_plan_spec.py | 40 + .../test/test_admin_launch_plan_state.py | 40 + .../test_admin_launch_plan_update_request.py | 40 + .../test_admin_launch_plan_update_response.py | 40 + .../test/test_admin_literal_map_blob.py | 40 + .../test_admin_named_entity_identifier.py | 40 + ...test_admin_named_entity_identifier_list.py | 40 + .../test/test_admin_node_execution_closure.py | 40 + ...test_admin_node_execution_event_request.py | 40 + ...est_admin_node_execution_event_response.py | 40 + ..._admin_node_execution_get_data_response.py | 40 + .../test/test_admin_node_execution_list.py | 40 + .../test/test_admin_notification.py | 40 + .../test/test_admin_notification_list.py | 40 + .../test_admin_pager_duty_notification.py | 40 + .../flyteadmin/test/test_admin_project.py | 40 + .../test_admin_project_register_request.py | 40 + .../test_admin_project_register_response.py | 40 + .../flyteadmin/test/test_admin_projects.py | 40 + .../flyteadmin/test/test_admin_schedule.py | 40 + .../flyteadmin/test/test_admin_service_api.py | 238 + .../test/test_admin_slack_notification.py | 40 + .../flyteadmin/test/test_admin_sort.py | 40 + .../flyteadmin/test/test_admin_task.py | 40 + .../test/test_admin_task_closure.py | 40 + .../test/test_admin_task_create_request.py | 40 + .../test/test_admin_task_create_response.py | 40 + .../test/test_admin_task_execution_closure.py | 40 + ...test_admin_task_execution_event_request.py | 40 + ...est_admin_task_execution_event_response.py | 40 + ..._admin_task_execution_get_data_response.py | 40 + .../test/test_admin_task_execution_list.py | 40 + .../flyteadmin/test/test_admin_task_list.py | 40 + .../flyteadmin/test/test_admin_task_spec.py | 40 + .../flyteadmin/test/test_admin_url_blob.py | 40 + .../flyteadmin/test/test_admin_workflow.py | 40 + .../test/test_admin_workflow_closure.py | 40 + .../test_admin_workflow_create_request.py | 40 + .../test_admin_workflow_create_response.py | 40 + ..._admin_workflow_execution_event_request.py | 40 + ...admin_workflow_execution_event_response.py | 40 + ...in_workflow_execution_get_data_response.py | 40 + .../test/test_admin_workflow_list.py | 40 + .../test/test_admin_workflow_spec.py | 40 + .../test_blob_type_blob_dimensionality.py | 40 + .../test_comparison_expression_operator.py | 40 + ...conjunction_expression_logical_operator.py | 40 + .../test/test_connection_set_id_list.py | 40 + .../flyteadmin/test/test_core_alias.py | 40 + .../flyteadmin/test/test_core_binary.py | 40 + .../flyteadmin/test/test_core_binding.py | 40 + .../flyteadmin/test/test_core_binding_data.py | 40 + .../test/test_core_binding_data_collection.py | 40 + .../test/test_core_binding_data_map.py | 40 + .../service/flyteadmin/test/test_core_blob.py | 40 + .../test/test_core_blob_metadata.py | 40 + .../flyteadmin/test/test_core_blob_type.py | 40 + .../test/test_core_boolean_expression.py | 40 + .../flyteadmin/test/test_core_branch_node.py | 40 + .../test/test_core_comparison_expression.py | 40 + .../test/test_core_compiled_task.py | 40 + .../test/test_core_compiled_workflow.py | 40 + .../test_core_compiled_workflow_closure.py | 40 + .../test/test_core_conjunction_expression.py | 40 + .../test/test_core_connection_set.py | 40 + .../flyteadmin/test/test_core_container.py | 40 + .../test/test_core_container_port.py | 40 + .../flyteadmin/test/test_core_error.py | 40 + .../test/test_core_execution_error.py | 40 + .../flyteadmin/test/test_core_identifier.py | 40 + .../flyteadmin/test/test_core_if_block.py | 40 + .../test/test_core_if_else_block.py | 40 + .../test/test_core_key_value_pair.py | 40 + .../flyteadmin/test/test_core_literal.py | 40 + .../test/test_core_literal_collection.py | 40 + .../flyteadmin/test/test_core_literal_map.py | 40 + .../flyteadmin/test/test_core_literal_type.py | 40 + .../service/flyteadmin/test/test_core_node.py | 40 + .../test_core_node_execution_identifier.py | 40 + .../test/test_core_node_execution_phase.py | 40 + .../test/test_core_node_metadata.py | 40 + .../flyteadmin/test/test_core_operand.py | 40 + .../test/test_core_output_reference.py | 40 + .../flyteadmin/test/test_core_parameter.py | 40 + .../test/test_core_parameter_map.py | 40 + .../flyteadmin/test/test_core_primitive.py | 40 + .../test/test_core_resource_type.py | 40 + .../flyteadmin/test/test_core_resources.py | 40 + .../test/test_core_retry_strategy.py | 40 + .../test/test_core_runtime_metadata.py | 40 + .../flyteadmin/test/test_core_scalar.py | 40 + .../flyteadmin/test/test_core_schema_type.py | 40 + .../flyteadmin/test/test_core_simple_type.py | 40 + .../test_core_task_execution_identifier.py | 40 + .../test/test_core_task_execution_phase.py | 40 + .../flyteadmin/test/test_core_task_log.py | 40 + .../test/test_core_task_metadata.py | 40 + .../flyteadmin/test/test_core_task_node.py | 40 + .../test/test_core_task_template.py | 40 + .../test/test_core_typed_interface.py | 40 + .../flyteadmin/test/test_core_variable.py | 40 + .../flyteadmin/test/test_core_variable_map.py | 40 + .../service/flyteadmin/test/test_core_void.py | 40 + ...test_core_workflow_execution_identifier.py | 40 + .../test_core_workflow_execution_phase.py | 40 + .../test/test_core_workflow_metadata.py | 40 + .../test/test_core_workflow_node.py | 40 + .../test/test_core_workflow_template.py | 40 + .../test/test_event_node_execution_event.py | 40 + ...st_event_parent_task_execution_metadata.py | 40 + .../test/test_event_task_execution_event.py | 40 + .../test_event_workflow_execution_event.py | 40 + .../test_execution_metadata_execution_mode.py | 40 + .../test/test_flyteidladmin_node_execution.py | 40 + .../test/test_flyteidladmin_task_execution.py | 40 + ...st_flyteidladmin_workflow_node_metadata.py | 40 + .../test/test_flyteidlcore_schema.py | 40 + ...st_flyteidlevent_workflow_node_metadata.py | 40 + .../test/test_protobuf_list_value.py | 40 + .../test/test_protobuf_null_value.py | 40 + .../flyteadmin/test/test_protobuf_struct.py | 40 + .../flyteadmin/test/test_protobuf_value.py | 40 + .../test/test_resources_resource_entry.py | 40 + .../test/test_resources_resource_name.py | 40 + .../test_runtime_metadata_runtime_type.py | 40 + .../test_schema_column_schema_column_type.py | 40 + .../test/test_schema_type_schema_column.py | 40 + .../flyteadmin/test/test_sort_direction.py | 40 + .../test/test_task_log_message_format.py | 40 + .../flyteidl/service/flyteadmin/tox.ini | 10 + flyteidl/gen/pb_python/validate/__init__.py | 0 .../gen/pb_python/validate/validate_pb2.py | 2149 ++ .../gen/pb_python/validate/validate_pb2.pyi | 661 + .../pb_python/validate/validate_pb2_grpc.py | 3 + flyteidl/generate_mocks.sh | 7 + flyteidl/generate_protos.sh | 72 + flyteidl/protos/flyteidl/admin/common.proto | 150 + flyteidl/protos/flyteidl/admin/event.proto | 55 + .../protos/flyteidl/admin/execution.proto | 237 + .../protos/flyteidl/admin/launch_plan.proto | 135 + .../flyteidl/admin/node_execution.proto | 136 + .../protos/flyteidl/admin/notification.proto | 29 + flyteidl/protos/flyteidl/admin/project.proto | 37 + flyteidl/protos/flyteidl/admin/schedule.proto | 31 + flyteidl/protos/flyteidl/admin/task.proto | 61 + .../flyteidl/admin/task_execution.proto | 113 + flyteidl/protos/flyteidl/admin/title.rst | 7 + flyteidl/protos/flyteidl/admin/workflow.proto | 59 + flyteidl/protos/flyteidl/core/compiler.proto | 53 + flyteidl/protos/flyteidl/core/condition.proto | 61 + .../protos/flyteidl/core/dynamic_job.proto | 32 + flyteidl/protos/flyteidl/core/errors.proto | 30 + flyteidl/protos/flyteidl/core/execution.proto | 78 + .../protos/flyteidl/core/identifier.proto | 61 + flyteidl/protos/flyteidl/core/interface.proto | 51 + flyteidl/protos/flyteidl/core/literals.proto | 142 + flyteidl/protos/flyteidl/core/tasks.proto | 146 + flyteidl/protos/flyteidl/core/title.rst | 8 + flyteidl/protos/flyteidl/core/types.proto | 100 + flyteidl/protos/flyteidl/core/workflow.proto | 161 + .../flyteidl/core/workflow_closure.proto | 18 + .../flyteidl/datacatalog/datacatalog.proto | 128 + .../protos/flyteidl/datacatalog/title.rst | 6 + flyteidl/protos/flyteidl/event/event.proto | 124 + flyteidl/protos/flyteidl/event/title.rst | 20 + .../protos/flyteidl/plugins/array_job.proto | 24 + flyteidl/protos/flyteidl/plugins/qubole.proto | 27 + .../protos/flyteidl/plugins/sidecar.proto | 16 + flyteidl/protos/flyteidl/plugins/spark.proto | 24 + flyteidl/protos/flyteidl/plugins/title.rst | 6 + .../protos/flyteidl/plugins/waitable.proto | 15 + flyteidl/protos/flyteidl/service/admin.proto | 315 + flyteidl/protos/flyteidl/service/title.rst | 6 + flyteidl/protos/flyteidl/title.rst | 7 + flyteidl/setup.cfg | 38 + flyteidl/setup.py | 36 + flyteidl/validate/__init__.py | 0 flyteidl/validate/validate_pb2.py | 2149 ++ flyteidl/validate/validate_pb2.pyi | 661 + flyteidl/validate/validate_pb2_grpc.py | 3 + 964 files changed, 480825 insertions(+) create mode 100644 flyteidl/.gitattributes create mode 100644 flyteidl/.gitignore create mode 100644 flyteidl/.golangci.yml create mode 100644 flyteidl/.travis.yml create mode 100644 flyteidl/CODE_OF_CONDUCT.md create mode 100644 flyteidl/Gopkg.lock create mode 100644 flyteidl/Gopkg.toml create mode 100644 flyteidl/LICENSE create mode 100644 flyteidl/Makefile create mode 100644 flyteidl/NOTICE create mode 100644 flyteidl/README.rst create mode 100644 flyteidl/boilerplate/lyft/golang_test_targets/Makefile create mode 100644 flyteidl/boilerplate/lyft/golang_test_targets/Readme.rst create mode 100755 flyteidl/boilerplate/lyft/golang_test_targets/goimports create mode 100644 flyteidl/boilerplate/lyft/golangci_file/.golangci.yml create mode 100644 flyteidl/boilerplate/lyft/golangci_file/Readme.rst create mode 100755 flyteidl/boilerplate/lyft/golangci_file/update.sh create mode 100644 flyteidl/boilerplate/update.cfg create mode 100755 flyteidl/boilerplate/update.sh create mode 100644 flyteidl/clients/go/admin/client.go create mode 100644 flyteidl/clients/go/admin/client_test.go create mode 100644 flyteidl/clients/go/admin/config.go create mode 100755 flyteidl/clients/go/admin/config_flags.go create mode 100755 flyteidl/clients/go/admin/config_flags_test.go create mode 100644 flyteidl/clients/go/admin/mocks/AdminServiceClient.go create mode 100644 flyteidl/clients/go/coreutils/literals.go create mode 100644 flyteidl/clients/go/coreutils/literals_test.go create mode 100644 flyteidl/clients/go/coreutils/logs/cloudwatch.go create mode 100644 flyteidl/clients/go/coreutils/logs/cloudwatch_test.go create mode 100644 flyteidl/clients/go/coreutils/logs/kubernetes.go create mode 100644 flyteidl/clients/go/coreutils/logs/kubernetes_test.go create mode 100644 flyteidl/clients/go/coreutils/logs/logs.go create mode 100644 flyteidl/clients/go/coreutils/logs/stackdriver.go create mode 100644 flyteidl/clients/go/coreutils/logs/stackdriver_test.go create mode 100644 flyteidl/clients/go/datacatalog/mocks/ArtifactsClient.go create mode 100644 flyteidl/clients/go/events/admin_eventsink.go create mode 100644 flyteidl/clients/go/events/admin_eventsink_integration_test.go create mode 100644 flyteidl/clients/go/events/admin_eventsink_test.go create mode 100644 flyteidl/clients/go/events/config.go create mode 100755 flyteidl/clients/go/events/config_flags.go create mode 100755 flyteidl/clients/go/events/config_flags_test.go create mode 100644 flyteidl/clients/go/events/errors/errors.go create mode 100644 flyteidl/clients/go/events/errors/errors_test.go create mode 100644 flyteidl/clients/go/events/eventsink.go create mode 100644 flyteidl/clients/go/events/eventsink_test.go create mode 100644 flyteidl/clients/go/events/iface.go create mode 100644 flyteidl/clients/go/events/local_eventsink.go create mode 100644 flyteidl/clients/go/events/local_writer.go create mode 100644 flyteidl/clients/go/events/mock_eventsink.go create mode 100644 flyteidl/clients/go/events/mock_recorder.go create mode 100644 flyteidl/clients/go/events/recorder.go create mode 100644 flyteidl/gen/__init__.py create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h create mode 100644 flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc create mode 100644 flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/common.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/event.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/condition.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/errors.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/interface.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/literals.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/types.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/types.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/event/event.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/event/event.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlcore_schema.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/openapi.go create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/Common.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/Event.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/Notification.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Compiler.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Condition.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Errors.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Execution.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Interface.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Literals.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Tasks.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Types.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/Workflow.java create mode 100644 flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/event/Event.java create mode 100644 flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java create mode 100644 flyteidl/gen/pb-java/flyteidl/plugins/Sidecar.java create mode 100644 flyteidl/gen/pb-java/flyteidl/plugins/Spark.java create mode 100644 flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java create mode 100644 flyteidl/gen/pb-java/flyteidl/service/Admin.java create mode 100644 flyteidl/gen/pb-js/flyteidl.d.ts create mode 100644 flyteidl/gen/pb-js/flyteidl.js create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/common.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/event.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/execution.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/index.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/launch_plan.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/node_execution.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/notification.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/project.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/schedule.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/task.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/task_execution.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/admin/workflow.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/compiler.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/condition.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/dynamic_job.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/errors.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/execution.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/identifier.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/index.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/interface.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/literals.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/tasks.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/types.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/workflow.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/core/workflow_closure.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/event/event.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/event/index.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/index.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/plugins/array_job.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/plugins/index.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/plugins/qubole.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/plugins/sidecar.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/plugins/spark.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/plugins/waitable.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/service/admin.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/flyteidl/service/index.rst create mode 100644 flyteidl/gen/pb-protodoc/google/api/annotations.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/google/api/http.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/google/api/index.rst create mode 100644 flyteidl/gen/pb-protodoc/google/index.rst create mode 100644 flyteidl/gen/pb-protodoc/google/protobuf/any.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/google/protobuf/descriptor.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/google/protobuf/duration.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/google/protobuf/index.rst create mode 100644 flyteidl/gen/pb-protodoc/google/protobuf/struct.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/google/protobuf/timestamp.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/api/core/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/generated.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/api/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/generated.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/generated.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/generated.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/generated.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/index.rst create mode 100644 flyteidl/gen/pb-protodoc/k8s.io/index.rst create mode 100644 flyteidl/gen/pb-protodoc/protoc-gen-swagger/index.rst create mode 100644 flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/annotations.proto.rst create mode 100644 flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/index.rst create mode 100644 flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/openapiv2.proto.rst create mode 100644 flyteidl/gen/pb_python/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlcore_schema.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlcore_schema.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini create mode 100644 flyteidl/gen/pb_python/validate/__init__.py create mode 100644 flyteidl/gen/pb_python/validate/validate_pb2.py create mode 100644 flyteidl/gen/pb_python/validate/validate_pb2.pyi create mode 100644 flyteidl/gen/pb_python/validate/validate_pb2_grpc.py create mode 100755 flyteidl/generate_mocks.sh create mode 100755 flyteidl/generate_protos.sh create mode 100644 flyteidl/protos/flyteidl/admin/common.proto create mode 100644 flyteidl/protos/flyteidl/admin/event.proto create mode 100644 flyteidl/protos/flyteidl/admin/execution.proto create mode 100644 flyteidl/protos/flyteidl/admin/launch_plan.proto create mode 100644 flyteidl/protos/flyteidl/admin/node_execution.proto create mode 100644 flyteidl/protos/flyteidl/admin/notification.proto create mode 100644 flyteidl/protos/flyteidl/admin/project.proto create mode 100644 flyteidl/protos/flyteidl/admin/schedule.proto create mode 100644 flyteidl/protos/flyteidl/admin/task.proto create mode 100644 flyteidl/protos/flyteidl/admin/task_execution.proto create mode 100644 flyteidl/protos/flyteidl/admin/title.rst create mode 100644 flyteidl/protos/flyteidl/admin/workflow.proto create mode 100644 flyteidl/protos/flyteidl/core/compiler.proto create mode 100644 flyteidl/protos/flyteidl/core/condition.proto create mode 100644 flyteidl/protos/flyteidl/core/dynamic_job.proto create mode 100644 flyteidl/protos/flyteidl/core/errors.proto create mode 100644 flyteidl/protos/flyteidl/core/execution.proto create mode 100644 flyteidl/protos/flyteidl/core/identifier.proto create mode 100644 flyteidl/protos/flyteidl/core/interface.proto create mode 100644 flyteidl/protos/flyteidl/core/literals.proto create mode 100644 flyteidl/protos/flyteidl/core/tasks.proto create mode 100644 flyteidl/protos/flyteidl/core/title.rst create mode 100644 flyteidl/protos/flyteidl/core/types.proto create mode 100644 flyteidl/protos/flyteidl/core/workflow.proto create mode 100644 flyteidl/protos/flyteidl/core/workflow_closure.proto create mode 100644 flyteidl/protos/flyteidl/datacatalog/datacatalog.proto create mode 100644 flyteidl/protos/flyteidl/datacatalog/title.rst create mode 100644 flyteidl/protos/flyteidl/event/event.proto create mode 100644 flyteidl/protos/flyteidl/event/title.rst create mode 100644 flyteidl/protos/flyteidl/plugins/array_job.proto create mode 100644 flyteidl/protos/flyteidl/plugins/qubole.proto create mode 100644 flyteidl/protos/flyteidl/plugins/sidecar.proto create mode 100644 flyteidl/protos/flyteidl/plugins/spark.proto create mode 100644 flyteidl/protos/flyteidl/plugins/title.rst create mode 100644 flyteidl/protos/flyteidl/plugins/waitable.proto create mode 100644 flyteidl/protos/flyteidl/service/admin.proto create mode 100644 flyteidl/protos/flyteidl/service/title.rst create mode 100644 flyteidl/protos/flyteidl/title.rst create mode 100644 flyteidl/setup.cfg create mode 100644 flyteidl/setup.py create mode 100644 flyteidl/validate/__init__.py create mode 100644 flyteidl/validate/validate_pb2.py create mode 100644 flyteidl/validate/validate_pb2.pyi create mode 100644 flyteidl/validate/validate_pb2_grpc.py diff --git a/flyteidl/.gitattributes b/flyteidl/.gitattributes new file mode 100644 index 0000000000..ebb7f5da6b --- /dev/null +++ b/flyteidl/.gitattributes @@ -0,0 +1 @@ +gen/* linguist-generated=true diff --git a/flyteidl/.gitignore b/flyteidl/.gitignore new file mode 100644 index 0000000000..593edc6037 --- /dev/null +++ b/flyteidl/.gitignore @@ -0,0 +1,10 @@ +.idea/* +.DS_Store +vendor + +# Vim swapfiles +*.swp +*.swo + +dist +gen/pb_python/flyteidl.egg-info/ diff --git a/flyteidl/.golangci.yml b/flyteidl/.golangci.yml new file mode 100644 index 0000000000..a414f33f79 --- /dev/null +++ b/flyteidl/.golangci.yml @@ -0,0 +1,30 @@ +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst + +run: + skip-dirs: + - pkg/client + +linters: + disable-all: true + enable: + - deadcode + - errcheck + - gas + - goconst + - goimports + - golint + - gosimple + - govet + - ineffassign + - misspell + - nakedret + - staticcheck + - structcheck + - typecheck + - unconvert + - unparam + - unused + - varcheck diff --git a/flyteidl/.travis.yml b/flyteidl/.travis.yml new file mode 100644 index 0000000000..cc7c3defe5 --- /dev/null +++ b/flyteidl/.travis.yml @@ -0,0 +1,21 @@ +sudo: required +language: go +go: + - "1.12" +services: + - docker +jobs: + include: + - stage: test + name: protos + install: true + script: make test + - stage: test + name: unit tests + install: make install + script: make test_unit + - if: tag IS present AND fork = false + stage: release + name: release Python package + install: skip + script: make release diff --git a/flyteidl/CODE_OF_CONDUCT.md b/flyteidl/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000..803d8a77f3 --- /dev/null +++ b/flyteidl/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +This project is governed by [Lyft's code of +conduct](https://github.com/lyft/code-of-conduct). All contributors +and participants agree to abide by its terms. diff --git a/flyteidl/Gopkg.lock b/flyteidl/Gopkg.lock new file mode 100644 index 0000000000..1e163b2a0a --- /dev/null +++ b/flyteidl/Gopkg.lock @@ -0,0 +1,570 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + branch = "master" + digest = "1:2b23c176460b7b078aeffc44d97515e13d7aa5857c1c2768b3e3defc0397626e" + name = "github.com/antihax/optional" + packages = ["."] + pruneopts = "UT" + revision = "ca021399b1a6796ecb758292c6311ce0b28857fc" + +[[projects]] + digest = "1:d6afaeed1502aa28e80a4ed0981d570ad91b2579193404256ce672ed0a609e0d" + name = "github.com/beorn7/perks" + packages = ["quantile"] + pruneopts = "UT" + revision = "4b2b341e8d7715fae06375aa633dbb6e91b3fb46" + version = "v1.0.0" + +[[projects]] + digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" + name = "github.com/davecgh/go-spew" + packages = ["spew"] + pruneopts = "UT" + revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" + version = "v1.1.1" + +[[projects]] + digest = "1:bac13387c0d262a2307fb23819e2b2638cd7f54a4337f5d7007ab421613b6567" + name = "github.com/envoyproxy/protoc-gen-validate" + packages = [ + ".", + "gogoproto", + "module", + "templates", + "templates/cc", + "templates/go", + "templates/gogo", + "templates/goshared", + "templates/java", + "templates/shared", + "validate", + ] + pruneopts = "UT" + revision = "9eff07ddfcb4001aa1aab280648153f46e1a8ddc" + version = "v0.1.0" + +[[projects]] + digest = "1:865079840386857c809b72ce300be7580cb50d3d3129ce11bf9aa6ca2bc1934a" + name = "github.com/fatih/color" + packages = ["."] + pruneopts = "UT" + revision = "5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4" + version = "v1.7.0" + +[[projects]] + digest = "1:4d02824a56d268f74a6b6fdd944b20b58a77c3d70e81008b3ee0c4f1a6777340" + name = "github.com/gogo/protobuf" + packages = [ + "proto", + "sortkeys", + ] + pruneopts = "UT" + revision = "ba06b47c162d49f2af050fb4c75bcbc86a159d5c" + version = "v1.2.1" + +[[projects]] + branch = "master" + digest = "1:1ba1d79f2810270045c328ae5d674321db34e3aae468eb4233883b473c5c0467" + name = "github.com/golang/glog" + packages = ["."] + pruneopts = "UT" + revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" + +[[projects]] + digest = "1:489a99067cd08971bd9c1ee0055119ba8febc1429f9200ab0bec68d35e8c4833" + name = "github.com/golang/protobuf" + packages = [ + "jsonpb", + "proto", + "protoc-gen-go/descriptor", + "protoc-gen-go/generator", + "protoc-gen-go/generator/internal/remap", + "protoc-gen-go/plugin", + "ptypes", + "ptypes/any", + "ptypes/duration", + "ptypes/struct", + "ptypes/timestamp", + "ptypes/wrappers", + ] + pruneopts = "UT" + revision = "b5d812f8a3706043e23a9cd5babf2e5423744d30" + version = "v1.3.1" + +[[projects]] + digest = "1:a6181aca1fd5e27103f9a920876f29ac72854df7345a39f3b01e61c8c94cc8af" + name = "github.com/google/gofuzz" + packages = ["."] + pruneopts = "UT" + revision = "f140a6486e521aad38f5917de355cbf147cc0496" + version = "v1.0.0" + +[[projects]] + digest = "1:73513cdd52d6f0768201cebbf82612aa39a9d8022bc6337815cd504e532281b7" + name = "github.com/grpc-ecosystem/go-grpc-middleware" + packages = [ + ".", + "retry", + "util/backoffutils", + "util/metautils", + ] + pruneopts = "UT" + revision = "c250d6563d4d4c20252cd865923440e829844f4e" + version = "v1.0.0" + +[[projects]] + digest = "1:9b7a07ac7577787a8ecc1334cb9f34df1c76ed82a917d556c5713d3ab84fbc43" + name = "github.com/grpc-ecosystem/go-grpc-prometheus" + packages = ["."] + pruneopts = "UT" + revision = "c225b8c3b01faf2899099b768856a9e916e5087b" + version = "v1.2.0" + +[[projects]] + digest = "1:3f58ecbaa1f31d1ff694ed17009cf274f4e2078ea435c83b43a144656ce3e54b" + name = "github.com/grpc-ecosystem/grpc-gateway" + packages = [ + "internal", + "protoc-gen-swagger/options", + "runtime", + "utilities", + ] + pruneopts = "UT" + revision = "20f268a412e5b342ebfb1a0eef7c3b7bd6c260ea" + version = "v1.8.5" + +[[projects]] + branch = "master" + digest = "1:be3bd107094de27145a9a92e9e5e2b3eb03d3d92a5dec68da31b8eba4e4c6ae2" + name = "github.com/iancoleman/strcase" + packages = ["."] + pruneopts = "UT" + revision = "e506e3ef73653e84c592ba44aab577a46678f68c" + +[[projects]] + digest = "1:870d441fe217b8e689d7949fef6e43efbc787e50f200cb1e70dbca9204a1d6be" + name = "github.com/inconshreveable/mousetrap" + packages = ["."] + pruneopts = "UT" + revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" + version = "v1.0" + +[[projects]] + digest = "1:0ee34e6dce5ac88ce2782f1969d04f4264f0e634def092080459277238581063" + name = "github.com/influxdata/influxdb" + packages = ["pkg/testing/assert"] + pruneopts = "UT" + revision = "01c8dd416270f424ab0c40f9291e269ac6921964" + version = "v1.7.6" + +[[projects]] + digest = "1:31e761d97c76151dde79e9d28964a812c46efc5baee4085b86f68f0c654450de" + name = "github.com/konsorten/go-windows-terminal-sequences" + packages = ["."] + pruneopts = "UT" + revision = "f55edac94c9bbba5d6182a4be46d86a2c9b5b50e" + version = "v1.0.2" + +[[projects]] + digest = "1:5418c902d3a96e2951528f572f7d2da0a291bf49b5466c7205f31fcbb09315fc" + name = "github.com/lyft/flytestdlib" + packages = [ + "atomic", + "config", + "contextutils", + "logger", + "promutils", + "promutils/labeled", + ] + pruneopts = "UT" + revision = "5401018e3a7cf7ea94004fa12c8f70e005654c99" + version = "v0.2.3" + +[[projects]] + digest = "1:966242b951d14090cda78b3957196cecc559f3bacce75e907e5a316c46b3ecd7" + name = "github.com/lyft/protoc-gen-star" + packages = [ + ".", + "lang/go", + ] + pruneopts = "UT" + revision = "bb8c3f89f33752b4c49c272d2ab2a0fef6f4b0cd" + version = "v0.4.10" + +[[projects]] + digest = "1:c658e84ad3916da105a761660dcaeb01e63416c8ec7bc62256a9b411a05fcd67" + name = "github.com/mattn/go-colorable" + packages = ["."] + pruneopts = "UT" + revision = "167de6bfdfba052fa6b2d3664c8f5272e23c9072" + version = "v0.0.9" + +[[projects]] + digest = "1:e150b5fafbd7607e2d638e4e5cf43aa4100124e5593385147b0a74e2733d8b0d" + name = "github.com/mattn/go-isatty" + packages = ["."] + pruneopts = "UT" + revision = "c2a7a6ca930a4cd0bc33a3f298eb71960732a3a7" + version = "v0.0.7" + +[[projects]] + digest = "1:ff5ebae34cfbf047d505ee150de27e60570e8c394b3b8fdbb720ff6ac71985fc" + name = "github.com/matttproud/golang_protobuf_extensions" + packages = ["pbutil"] + pruneopts = "UT" + revision = "c12348ce28de40eed0136aa2b644d0ee0650e56c" + version = "v1.0.1" + +[[projects]] + digest = "1:53bc4cd4914cd7cd52139990d5170d6dc99067ae31c56530621b18b35fc30318" + name = "github.com/mitchellh/mapstructure" + packages = ["."] + pruneopts = "UT" + revision = "3536a929edddb9a5b34bd6861dc4a9647cb459fe" + version = "v1.1.2" + +[[projects]] + digest = "1:cf31692c14422fa27c83a05292eb5cbe0fb2775972e8f1f8446a71549bd8980b" + name = "github.com/pkg/errors" + packages = ["."] + pruneopts = "UT" + revision = "ba968bfe8b2f7e042a574c888954fccecfa385b4" + version = "v0.8.1" + +[[projects]] + digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + pruneopts = "UT" + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + +[[projects]] + digest = "1:75d51eeab0df85a3cea9e1297ccd3183b20a10cb4b48c753d8ec8d113cc14250" + name = "github.com/prometheus/client_golang" + packages = [ + "prometheus", + "prometheus/internal", + ] + pruneopts = "UT" + revision = "505eaef017263e299324067d40ca2c48f6a2cf50" + version = "v0.9.2" + +[[projects]] + branch = "master" + digest = "1:2d5cd61daa5565187e1d96bae64dbbc6080dacf741448e9629c64fd93203b0d4" + name = "github.com/prometheus/client_model" + packages = ["go"] + pruneopts = "UT" + revision = "fd36f4220a901265f90734c3183c5f0c91daa0b8" + +[[projects]] + digest = "1:35cf6bdf68db765988baa9c4f10cc5d7dda1126a54bd62e252dbcd0b1fc8da90" + name = "github.com/prometheus/common" + packages = [ + "expfmt", + "internal/bitbucket.org/ww/goautoneg", + "model", + ] + pruneopts = "UT" + revision = "a82f4c12f983cc2649298185f296632953e50d3e" + version = "v0.3.0" + +[[projects]] + branch = "master" + digest = "1:2ea45e71e0198d6b989ed6302cc4f72a83be1e7d6469d08a59e56a2c447aea55" + name = "github.com/prometheus/procfs" + packages = ["."] + pruneopts = "UT" + revision = "87a4384529e0652f5035fb5cc8095faf73ea9b0b" + +[[projects]] + digest = "1:fd61cf4ae1953d55df708acb6b91492d538f49c305b364a014049914495db426" + name = "github.com/sirupsen/logrus" + packages = ["."] + pruneopts = "UT" + revision = "8bdbc7bcc01dcbb8ec23dc8a28e332258d25251f" + version = "v1.4.1" + +[[projects]] + digest = "1:bb495ec276ab82d3dd08504bbc0594a65de8c3b22c6f2aaa92d05b73fbf3a82e" + name = "github.com/spf13/afero" + packages = [ + ".", + "mem", + ] + pruneopts = "UT" + revision = "588a75ec4f32903aa5e39a2619ba6a4631e28424" + version = "v1.2.2" + +[[projects]] + digest = "1:645cabccbb4fa8aab25a956cbcbdf6a6845ca736b2c64e197ca7cbb9d210b939" + name = "github.com/spf13/cobra" + packages = ["."] + pruneopts = "UT" + revision = "ef82de70bb3f60c65fb8eebacbb2d122ef517385" + version = "v0.0.3" + +[[projects]] + digest = "1:c1b1102241e7f645bc8e0c22ae352e8f0dc6484b6cb4d132fa9f24174e0119e2" + name = "github.com/spf13/pflag" + packages = ["."] + pruneopts = "UT" + revision = "298182f68c66c05229eb03ac171abe6e309ee79a" + version = "v1.0.3" + +[[projects]] + digest = "1:ac83cf90d08b63ad5f7e020ef480d319ae890c208f8524622a2f3136e2686b02" + name = "github.com/stretchr/objx" + packages = ["."] + pruneopts = "UT" + revision = "477a77ecc69700c7cdeb1fa9e129548e1c1c393c" + version = "v0.1.1" + +[[projects]] + digest = "1:0bcc464dabcfad5393daf87c3f8142911d0f6c52569b837e91a1c15e890265f3" + name = "github.com/stretchr/testify" + packages = [ + "assert", + "mock", + ] + pruneopts = "UT" + revision = "ffdc059bfe9ce6a4e144ba849dbedead332c6053" + version = "v1.3.0" + +[[projects]] + branch = "master" + digest = "1:f04f91f699638081f3d9659950764321bc0602076fc5fd8177c18b185ad3fdd8" + name = "golang.org/x/net" + packages = [ + "context", + "context/ctxhttp", + "http/httpguts", + "http2", + "http2/hpack", + "idna", + "internal/timeseries", + "trace", + ] + pruneopts = "UT" + revision = "4829fb13d2c62012c17688fa7f629f371014946d" + +[[projects]] + branch = "master" + digest = "1:8d1c112fb1679fa097e9a9255a786ee47383fa2549a3da71bcb1334a693ebcfe" + name = "golang.org/x/oauth2" + packages = [ + ".", + "internal", + ] + pruneopts = "UT" + revision = "0f29369cfe4552d0e4bcddc57cc75f4d7e672a33" + +[[projects]] + branch = "master" + digest = "1:dcd2e9de31e20e01b156288ce4fc239498564295bdbb59d8aaf591af94778162" + name = "golang.org/x/sys" + packages = ["unix"] + pruneopts = "UT" + revision = "d89cdac9e8725f2aefce25fcbfef41134c9ad412" + +[[projects]] + digest = "1:8d8faad6b12a3a4c819a3f9618cb6ee1fa1cfc33253abeeea8b55336721e3405" + name = "golang.org/x/text" + packages = [ + "collate", + "collate/build", + "internal/colltab", + "internal/gen", + "internal/language", + "internal/language/compact", + "internal/tag", + "internal/triegen", + "internal/ucd", + "language", + "secure/bidirule", + "transform", + "unicode/bidi", + "unicode/cldr", + "unicode/norm", + "unicode/rangetable", + ] + pruneopts = "UT" + revision = "342b2e1fbaa52c93f31447ad2c6abc048c63e475" + version = "v0.3.2" + +[[projects]] + branch = "master" + digest = "1:9fdc2b55e8e0fafe4b41884091e51e77344f7dc511c5acedcfd98200003bff90" + name = "golang.org/x/time" + packages = ["rate"] + pruneopts = "UT" + revision = "9d24e82272b4f38b78bc8cff74fa936d31ccd8ef" + +[[projects]] + digest = "1:6eb6e3b6d9fffb62958cf7f7d88dbbe1dd6839436b0802e194c590667a40412a" + name = "google.golang.org/appengine" + packages = [ + "internal", + "internal/base", + "internal/datastore", + "internal/log", + "internal/remote_api", + "internal/urlfetch", + "urlfetch", + ] + pruneopts = "UT" + revision = "4c25cacc810c02874000e4f7071286a8e96b2515" + version = "v1.6.0" + +[[projects]] + branch = "master" + digest = "1:51b95dc2db289865b71364c0da23ca6bcc0b199e0d827c9cfb053b32248b77ad" + name = "google.golang.org/genproto" + packages = [ + "googleapis/api/annotations", + "googleapis/api/httpbody", + "googleapis/rpc/status", + "protobuf/field_mask", + ] + pruneopts = "UT" + revision = "357c62f0e4bbba7e6cc403ae09edcf3e2b9028fe" + +[[projects]] + digest = "1:707c3a5d10ed430ea767d73df122d9eb3dfb6312bbacc9f2e39204390686d1d0" + name = "google.golang.org/grpc" + packages = [ + ".", + "balancer", + "balancer/base", + "balancer/roundrobin", + "binarylog/grpc_binarylog_v1", + "codes", + "connectivity", + "credentials", + "credentials/internal", + "encoding", + "encoding/proto", + "grpclog", + "internal", + "internal/backoff", + "internal/balancerload", + "internal/binarylog", + "internal/channelz", + "internal/envconfig", + "internal/grpcrand", + "internal/grpcsync", + "internal/syscall", + "internal/transport", + "keepalive", + "metadata", + "naming", + "peer", + "resolver", + "resolver/dns", + "resolver/passthrough", + "stats", + "status", + "tap", + ] + pruneopts = "UT" + revision = "25c4f928eaa6d96443009bd842389fb4fa48664e" + version = "v1.20.1" + +[[projects]] + digest = "1:2d1fbdc6777e5408cabeb02bf336305e724b925ff4546ded0fa8715a7267922a" + name = "gopkg.in/inf.v0" + packages = ["."] + pruneopts = "UT" + revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" + version = "v0.9.1" + +[[projects]] + branch = "master" + digest = "1:451ce7a3ba3680101f97d5738ea978d43be2c4e3601b19f438b56e10c47ccdb1" + name = "k8s.io/api" + packages = ["core/v1"] + pruneopts = "UT" + revision = "97d6bb8ea5f4f05566a0124638fb511be2b80c54" + +[[projects]] + digest = "1:23f3e59c1ef45b73a386aad7bb252b89fee989677ed57f63cdca1d796b75a8f2" + name = "k8s.io/apimachinery" + packages = [ + "pkg/api/resource", + "pkg/apis/meta/v1", + "pkg/conversion", + "pkg/conversion/queryparams", + "pkg/fields", + "pkg/labels", + "pkg/runtime", + "pkg/runtime/schema", + "pkg/selection", + "pkg/types", + "pkg/util/clock", + "pkg/util/errors", + "pkg/util/intstr", + "pkg/util/json", + "pkg/util/net", + "pkg/util/rand", + "pkg/util/runtime", + "pkg/util/sets", + "pkg/util/validation", + "pkg/util/validation/field", + "pkg/util/wait", + "pkg/watch", + "third_party/forked/golang/reflect", + ] + pruneopts = "UT" + revision = "103fd098999dc9c0c88536f5c9ad2e5da39373ae" + version = "kubernetes-1.11.2" + +[[projects]] + digest = "1:8d66fef1249b9b2105840377af3bab078604d3c298058f563685e88d2a9e6ad3" + name = "k8s.io/client-go" + packages = ["util/workqueue"] + pruneopts = "UT" + revision = "1f13a808da65775f22cbf47862c4e5898d8f4ca1" + version = "kubernetes-1.11.2" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + input-imports = [ + "github.com/antihax/optional", + "github.com/envoyproxy/protoc-gen-validate", + "github.com/golang/protobuf/proto", + "github.com/golang/protobuf/ptypes", + "github.com/golang/protobuf/ptypes/duration", + "github.com/golang/protobuf/ptypes/struct", + "github.com/golang/protobuf/ptypes/timestamp", + "github.com/grpc-ecosystem/go-grpc-middleware", + "github.com/grpc-ecosystem/go-grpc-middleware/retry", + "github.com/grpc-ecosystem/go-grpc-prometheus", + "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options", + "github.com/grpc-ecosystem/grpc-gateway/runtime", + "github.com/grpc-ecosystem/grpc-gateway/utilities", + "github.com/influxdata/influxdb/pkg/testing/assert", + "github.com/lyft/flytestdlib/config", + "github.com/lyft/flytestdlib/logger", + "github.com/lyft/flytestdlib/promutils", + "github.com/lyft/flytestdlib/promutils/labeled", + "github.com/mitchellh/mapstructure", + "github.com/spf13/pflag", + "github.com/stretchr/testify/assert", + "github.com/stretchr/testify/mock", + "golang.org/x/net/context", + "golang.org/x/oauth2", + "golang.org/x/time/rate", + "google.golang.org/genproto/googleapis/api/annotations", + "google.golang.org/grpc", + "google.golang.org/grpc/codes", + "google.golang.org/grpc/credentials", + "google.golang.org/grpc/grpclog", + "google.golang.org/grpc/status", + "k8s.io/api/core/v1", + ] + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/flyteidl/Gopkg.toml b/flyteidl/Gopkg.toml new file mode 100644 index 0000000000..87b2ffcf7a --- /dev/null +++ b/flyteidl/Gopkg.toml @@ -0,0 +1,62 @@ +# Gopkg.toml example +# +# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html +# for detailed Gopkg.toml documentation. +# +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + +required = ["github.com/envoyproxy/protoc-gen-validate"] + +[[constraint]] + name = "github.com/golang/protobuf" + version = "1.1.0" + +[[constraint]] + name = "github.com/grpc-ecosystem/grpc-gateway" + version = "1.5.1" + +[[constraint]] + name = "github.com/lyft/flytestdlib" + version = "^0.2.x" + +[[constraint]] + name = "github.com/envoyproxy/protoc-gen-validate" + version = "0.1.0" + +[[constraint]] + name = "github.com/mitchellh/mapstructure" + version = "1.1.2" + +[[constraint]] + name = "github.com/spf13/pflag" + version = "1.0.1" + +[[constraint]] + name = "github.com/stretchr/testify" + version = "1.2.2" + +[[constraint]] + name = "google.golang.org/grpc" + version = "1.16.0" + +[prune] + go-tests = true + unused-packages = true diff --git a/flyteidl/LICENSE b/flyteidl/LICENSE new file mode 100644 index 0000000000..bed437514f --- /dev/null +++ b/flyteidl/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Lyft, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/flyteidl/Makefile b/flyteidl/Makefile new file mode 100644 index 0000000000..fa6e7a6f14 --- /dev/null +++ b/flyteidl/Makefile @@ -0,0 +1,32 @@ +#!/bin/bash +export REPOSITORY=flyteidl +include boilerplate/lyft/golang_test_targets/Makefile + +.PHONY: update_boilerplate +update_boilerplate: + @boilerplate/update.sh + +.PHONY: generate +generate: # generate protos, mocks and pflags + ./generate_protos.sh + ./generate_mocks.sh + go generate ./... + +.PHONY: test +test: # ensures generate_protos script has been run + make install + git diff + go get github.com/lyft/flytestdlib/cli/pflags + ./generate_mocks.sh + go generate ./... + DELTA_CHECK=true ./generate_protos.sh + +.PHONY: test_unit +test_unit: + # we cannot use test_unit from go.mk because generated files contain commented import statements that + # go tries to intepret. So we need to use go list to get the packages that go understands. + go test -cover `go list ./...` -race + +.PHONY: build_python +build_python: + @python setup.py sdist diff --git a/flyteidl/NOTICE b/flyteidl/NOTICE new file mode 100644 index 0000000000..eade7caa5f --- /dev/null +++ b/flyteidl/NOTICE @@ -0,0 +1,4 @@ +flyteidl +Copyright 2019 Lyft Inc. + +This product includes software developed at Lyft Inc. diff --git a/flyteidl/README.rst b/flyteidl/README.rst new file mode 100644 index 0000000000..030c5ecc94 --- /dev/null +++ b/flyteidl/README.rst @@ -0,0 +1,22 @@ +================ +Flyte IDL +================ +This repository contains all of Flyte's IDLs. + +The contents of this Readme will be deprecated shortly. Please refer to the Flyte `contributor's guide `__ in the future. + +Generating Protobufs -> Code +############################# + +Mac OS +******* + +1. Install Docker for Mac (https://www.docker.com/docker-mac) +2. Start 'docker' and sign in. You should see a whale icon in your toolbar. +3. cd to the root of your flyteidl repository. +4. Run ``./generate_protos.sh`` to generate just the protobuf files. Side note: running ``make generate`` will generate protos along with some other things like mock classes. + +Admin Client Generation +************************* + +Please see the Flyte Tools documentation on the `generator `__ for more information. diff --git a/flyteidl/boilerplate/lyft/golang_test_targets/Makefile b/flyteidl/boilerplate/lyft/golang_test_targets/Makefile new file mode 100644 index 0000000000..6c1e527fd6 --- /dev/null +++ b/flyteidl/boilerplate/lyft/golang_test_targets/Makefile @@ -0,0 +1,38 @@ +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst + +DEP_SHA=1f7c19e5f52f49ffb9f956f64c010be14683468b + +.PHONY: lint +lint: #lints the package for common code smells + which golangci-lint || curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $$GOPATH/bin v1.16.0 + golangci-lint run --exclude deprecated + +# If code is failing goimports linter, this will fix. +# skips 'vendor' +.PHONY: goimports +goimports: + @boilerplate/lyft/golang_test_targets/goimports + +.PHONY: install +install: #download dependencies (including test deps) for the package + which dep || (curl "https://raw.githubusercontent.com/golang/dep/${DEP_SHA}/install.sh" | sh) + dep ensure + +.PHONY: test_unit +test_unit: + go test -cover ./... -race + +.PHONY: test_benchmark +test_benchmark: + go test -bench . ./... + +.PHONY: test_unit_cover +test_unit_cover: + go test ./... -coverprofile /tmp/cover.out -covermode=count; go tool cover -func /tmp/cover.out + +.PHONY: test_unit_visual +test_unit_visual: + go test ./... -coverprofile /tmp/cover.out -covermode=count; go tool cover -html=/tmp/cover.out diff --git a/flyteidl/boilerplate/lyft/golang_test_targets/Readme.rst b/flyteidl/boilerplate/lyft/golang_test_targets/Readme.rst new file mode 100644 index 0000000000..acc5744f59 --- /dev/null +++ b/flyteidl/boilerplate/lyft/golang_test_targets/Readme.rst @@ -0,0 +1,31 @@ +Golang Test Targets +~~~~~~~~~~~~~~~~~~~ + +Provides an ``install`` make target that uses ``dep`` install golang dependencies. + +Provides a ``lint`` make target that uses golangci to lint your code. + +Provides a ``test_unit`` target for unit tests. + +Provides a ``test_unit_cover`` target for analysing coverage of unit tests, which will output the coverage of each function and total statement coverage. + +Provides a ``test_unit_visual`` target for visualizing coverage of unit tests through an interactive html code heat map. + +Provides a ``test_benchmark`` target for benchmark tests. + +**To Enable:** + +Add ``lyft/golang_test_targets`` to your ``boilerplate/update.cfg`` file. + +Make sure you're using ``dep`` for dependency management. + +Provide a ``.golangci`` configuration (the lint target requires it). + +Add ``include boilerplate/lyft/golang_test_targets/Makefile`` in your main ``Makefile`` _after_ your REPOSITORY environment variable + +:: + + REPOSITORY= + include boilerplate/lyft/golang_test_targets/Makefile + +(this ensures the extra make targets get included in your main Makefile) diff --git a/flyteidl/boilerplate/lyft/golang_test_targets/goimports b/flyteidl/boilerplate/lyft/golang_test_targets/goimports new file mode 100755 index 0000000000..160525a8cc --- /dev/null +++ b/flyteidl/boilerplate/lyft/golang_test_targets/goimports @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst + +goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./pkg/client/*") diff --git a/flyteidl/boilerplate/lyft/golangci_file/.golangci.yml b/flyteidl/boilerplate/lyft/golangci_file/.golangci.yml new file mode 100644 index 0000000000..a414f33f79 --- /dev/null +++ b/flyteidl/boilerplate/lyft/golangci_file/.golangci.yml @@ -0,0 +1,30 @@ +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst + +run: + skip-dirs: + - pkg/client + +linters: + disable-all: true + enable: + - deadcode + - errcheck + - gas + - goconst + - goimports + - golint + - gosimple + - govet + - ineffassign + - misspell + - nakedret + - staticcheck + - structcheck + - typecheck + - unconvert + - unparam + - unused + - varcheck diff --git a/flyteidl/boilerplate/lyft/golangci_file/Readme.rst b/flyteidl/boilerplate/lyft/golangci_file/Readme.rst new file mode 100644 index 0000000000..ba5d2b61ce --- /dev/null +++ b/flyteidl/boilerplate/lyft/golangci_file/Readme.rst @@ -0,0 +1,8 @@ +GolangCI File +~~~~~~~~~~~~~ + +Provides a ``.golangci`` file with the linters we've agreed upon. + +**To Enable:** + +Add ``lyft/golangci_file`` to your ``boilerplate/update.cfg`` file. diff --git a/flyteidl/boilerplate/lyft/golangci_file/update.sh b/flyteidl/boilerplate/lyft/golangci_file/update.sh new file mode 100755 index 0000000000..9e9e6c1f46 --- /dev/null +++ b/flyteidl/boilerplate/lyft/golangci_file/update.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +# Clone the .golangci file +echo " - copying ${DIR}/.golangci to the root directory." +cp ${DIR}/.golangci.yml ${DIR}/../../../.golangci.yml diff --git a/flyteidl/boilerplate/update.cfg b/flyteidl/boilerplate/update.cfg new file mode 100644 index 0000000000..f861a23ccd --- /dev/null +++ b/flyteidl/boilerplate/update.cfg @@ -0,0 +1,2 @@ +lyft/golang_test_targets +lyft/golangci_file diff --git a/flyteidl/boilerplate/update.sh b/flyteidl/boilerplate/update.sh new file mode 100755 index 0000000000..bea661d9a0 --- /dev/null +++ b/flyteidl/boilerplate/update.sh @@ -0,0 +1,53 @@ +#!/usr/bin/env bash + +# WARNING: THIS FILE IS MANAGED IN THE 'BOILERPLATE' REPO AND COPIED TO OTHER REPOSITORIES. +# ONLY EDIT THIS FILE FROM WITHIN THE 'LYFT/BOILERPLATE' REPOSITORY: +# +# TO OPT OUT OF UPDATES, SEE https://github.com/lyft/boilerplate/blob/master/Readme.rst + +set -e + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" + +OUT="$(mktemp -d)" +git clone git@github.com:lyft/boilerplate.git "${OUT}" + +echo "Updating the update.sh script." +cp "${OUT}/boilerplate/update.sh" "${DIR}/update.sh" +echo "" + + +CONFIG_FILE="${DIR}/update.cfg" +README="https://github.com/lyft/boilerplate/blob/master/Readme.rst" + +if [ ! -f "$CONFIG_FILE" ]; then + echo "$CONFIG_FILE not found." + echo "This file is required in order to select which features to include." + echo "See $README for more details." + exit 1 +fi + +if [ -z "$REPOSITORY" ]; then + echo '$REPOSITORY is required to run this script' + echo "See $README for more details." + exit 1 +fi + +while read directory; do + echo "***********************************************************************************" + echo "$directory is configured in update.cfg." + echo "-----------------------------------------------------------------------------------" + echo "syncing files from source." + dir_path="${OUT}/boilerplate/${directory}" + rm -rf "${DIR}/${directory}" + mkdir -p $(dirname "${DIR}/${directory}") + cp -r "$dir_path" "${DIR}/${directory}" + if [ -f "${DIR}/${directory}/update.sh" ]; then + echo "executing ${DIR}/${directory}/update.sh" + "${DIR}/${directory}/update.sh" + fi + echo "***********************************************************************************" + echo "" +done < "$CONFIG_FILE" + +rm -rf "${OUT}" diff --git a/flyteidl/clients/go/admin/client.go b/flyteidl/clients/go/admin/client.go new file mode 100644 index 0000000000..cf097506d8 --- /dev/null +++ b/flyteidl/clients/go/admin/client.go @@ -0,0 +1,94 @@ +package admin + +import ( + "context" + "crypto/x509" + "fmt" + "github.com/grpc-ecosystem/go-grpc-middleware" + "github.com/grpc-ecosystem/go-grpc-middleware/retry" + "github.com/grpc-ecosystem/go-grpc-prometheus" + "github.com/lyft/flyteidl/clients/go/admin/mocks" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/service" + "github.com/lyft/flytestdlib/logger" + "google.golang.org/grpc" + "google.golang.org/grpc/credentials" + "sync" +) + +var ( + once = sync.Once{} + adminConnection *grpc.ClientConn +) + +func NewAdminClient(ctx context.Context, conn *grpc.ClientConn) service.AdminServiceClient { + logger.Infof(ctx, "Initialized Admin client") + return service.NewAdminServiceClient(conn) +} + +func GetAdditionalAdminClientConfigOptions(cfg Config) []grpc.DialOption { + opts := make([]grpc.DialOption, 0, 2) + backoffConfig := grpc.BackoffConfig{ + MaxDelay: cfg.MaxBackoffDelay.Duration, + } + opts = append(opts, grpc.WithBackoffConfig(backoffConfig)) + + timeoutDialOption := grpc_retry.WithPerRetryTimeout(cfg.PerRetryTimeout.Duration) + maxRetriesOption := grpc_retry.WithMax(uint(cfg.MaxRetries)) + + retryInterceptor := grpc_retry.UnaryClientInterceptor(timeoutDialOption, maxRetriesOption) + finalUnaryInterceptor := grpc_middleware.ChainUnaryClient( + grpc_prometheus.UnaryClientInterceptor, + retryInterceptor, + ) + + // We only make unary calls in this client, no streaming calls. We can add a streaming interceptor if admin + // ever has those endpoints + opts = append(opts, grpc.WithUnaryInterceptor(finalUnaryInterceptor)) + + return opts +} + +func NewAdminConnection(_ context.Context, cfg Config) (*grpc.ClientConn, error) { + var opts []grpc.DialOption + if cfg.UseInsecureConnection { + opts = append(opts, grpc.WithInsecure()) + } else { + // TODO: as of Go 1.11.4, this is not supported on Windows. https://github.com/golang/go/issues/16736 + pool, err := x509.SystemCertPool() + if err != nil { + return nil, err + } + + creds := credentials.NewClientTLSFromCert(pool, "") + opts = append(opts, grpc.WithTransportCredentials(creds)) + } + + opts = append(opts, GetAdditionalAdminClientConfigOptions(cfg)...) + return grpc.Dial(cfg.Endpoint.String(), opts...) +} + +// Create an AdminClient with a shared Admin connection for the process +func InitializeAdminClient(ctx context.Context, cfg Config) service.AdminServiceClient { + once.Do(func() { + var err error + adminConnection, err = NewAdminConnection(ctx, cfg) + if err != nil { + logger.Panicf(ctx, "failed to initialize Admin connection. Err: %s", err.Error()) + } + }) + + return NewAdminClient(ctx, adminConnection) +} + +func InitializeAdminClientFromConfig(ctx context.Context) (service.AdminServiceClient, error) { + cfg := GetConfig(ctx) + if cfg == nil { + return nil, fmt.Errorf("retrieved Nil config for [%s] key", configSectionKey) + } + return InitializeAdminClient(ctx, *cfg), nil +} + +func InitializeMockAdminClient() service.AdminServiceClient { + logger.Infof(context.TODO(), "Initialized Mock Admin client") + return &mocks.AdminServiceClient{} +} diff --git a/flyteidl/clients/go/admin/client_test.go b/flyteidl/clients/go/admin/client_test.go new file mode 100644 index 0000000000..4ab9a5ffa8 --- /dev/null +++ b/flyteidl/clients/go/admin/client_test.go @@ -0,0 +1,47 @@ +package admin + +import ( + "context" + "net/url" + "sync" + "testing" + "time" + + "github.com/lyft/flytestdlib/config" + "github.com/stretchr/testify/assert" +) + +func TestInitializeAndGetAdminClient(t *testing.T) { + + ctx := context.TODO() + t.Run("legal", func(t *testing.T) { + u, err := url.Parse("http://localhost:8089") + assert.NoError(t, err) + assert.NotNil(t, InitializeAdminClient(ctx, Config{ + Endpoint: config.URL{URL: *u}, + })) + }) + + t.Run("illegal", func(t *testing.T) { + adminConnection = nil + once = sync.Once{} + assert.NotNil(t, InitializeAdminClient(ctx, Config{})) + }) +} + +func TestInitializeMockAdminClient(t *testing.T) { + c := InitializeMockAdminClient() + assert.NotNil(t, c) +} + +func TestGetAdditionalAdminClientConfigOptions(t *testing.T) { + u, _ := url.Parse("localhost:8089") + adminServiceConfig := Config{ + Endpoint: config.URL{URL: *u,}, + UseInsecureConnection: true, + PerRetryTimeout: config.Duration{1 * time.Second}, + MaxRetries: 1, + } + opts := GetAdditionalAdminClientConfigOptions(adminServiceConfig) + assert.Equal(t, 2, len(opts)) +} diff --git a/flyteidl/clients/go/admin/config.go b/flyteidl/clients/go/admin/config.go new file mode 100644 index 0000000000..3dd5d49d52 --- /dev/null +++ b/flyteidl/clients/go/admin/config.go @@ -0,0 +1,43 @@ +package admin + +import ( + "context" + "time" + + "github.com/lyft/flytestdlib/config" + "github.com/lyft/flytestdlib/logger" +) + +//go:generate pflags Config + +const configSectionKey = "admin" + +type Config struct { + Endpoint config.URL `json:"endpoint" pflag:",For admin types, specify where the uri of the service is located."` + UseInsecureConnection bool `json:"insecure" pflag:",Use insecure connection."` + MaxBackoffDelay config.Duration `json:"maxBackoffDelay" pflag:",Max delay for grpc backoff"` + PerRetryTimeout config.Duration `json:"perRetryTimeout" pflag:",gRPC per retry timeout"` + MaxRetries int `json:"maxRetries" pflag:",Max number of gRPC retries"` +} + +var ( + defaultConfig = Config{ + MaxBackoffDelay: config.Duration{8 * time.Second}, + PerRetryTimeout: config.Duration{15 * time.Second}, + MaxRetries: 4, + } + configSection = config.MustRegisterSectionWithUpdates(configSectionKey, &defaultConfig, func(ctx context.Context, newValue config.Config) { + if newValue.(*Config).MaxRetries < 0 { + logger.Panicf(ctx, "Admin configuration given with negative gRPC retry value.") + } + }) +) + +func GetConfig(ctx context.Context) *Config { + if c, ok := configSection.GetConfig().(*Config); ok { + return c + } + + logger.Warnf(ctx, "Failed to retrieve config section [%v].", configSectionKey) + return nil +} diff --git a/flyteidl/clients/go/admin/config_flags.go b/flyteidl/clients/go/admin/config_flags.go new file mode 100755 index 0000000000..6aa7cfeea0 --- /dev/null +++ b/flyteidl/clients/go/admin/config_flags.go @@ -0,0 +1,50 @@ +// Code generated by go generate; DO NOT EDIT. +// This file was generated by robots. + +package admin + +import ( + "encoding/json" + "reflect" + + "fmt" + + "github.com/spf13/pflag" +) + +// If v is a pointer, it will get its element value or the zero value of the element type. +// If v is not a pointer, it will return it as is. +func (Config) elemValueOrNil(v interface{}) interface{} { + if t := reflect.TypeOf(v); t.Kind() == reflect.Ptr { + if reflect.ValueOf(v).IsNil() { + return reflect.Zero(t.Elem()).Interface() + } else { + return reflect.ValueOf(v).Interface() + } + } else if v == nil { + return reflect.Zero(t).Interface() + } + + return v +} + +func (Config) mustMarshalJSON(v json.Marshaler) string { + raw, err := v.MarshalJSON() + if err != nil { + panic(err) + } + + return string(raw) +} + +// GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the +// flags is json-name.json-sub-name... etc. +func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { + cmdFlags := pflag.NewFlagSet("Config", pflag.ExitOnError) + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "endpoint"), defaultConfig.Endpoint.String(), "For admin types, specify where the uri of the service is located.") + cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "insecure"), defaultConfig.UseInsecureConnection, "Use insecure connection.") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "maxBackoffDelay"), defaultConfig.MaxBackoffDelay.String(), "Max delay for grpc backoff") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "perRetryTimeout"), defaultConfig.PerRetryTimeout.String(), "gRPC per retry timeout") + cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "maxRetries"), defaultConfig.MaxRetries, "Max number of gRPC retries") + return cmdFlags +} diff --git a/flyteidl/clients/go/admin/config_flags_test.go b/flyteidl/clients/go/admin/config_flags_test.go new file mode 100755 index 0000000000..920cd8436a --- /dev/null +++ b/flyteidl/clients/go/admin/config_flags_test.go @@ -0,0 +1,212 @@ +// Code generated by go generate; DO NOT EDIT. +// This file was generated by robots. + +package admin + +import ( + "encoding/json" + "fmt" + "reflect" + "strings" + "testing" + + "github.com/mitchellh/mapstructure" + "github.com/stretchr/testify/assert" +) + +var dereferencableKindsConfig = map[reflect.Kind]struct{}{ + reflect.Array: {}, reflect.Chan: {}, reflect.Map: {}, reflect.Ptr: {}, reflect.Slice: {}, +} + +// Checks if t is a kind that can be dereferenced to get its underlying type. +func canGetElementConfig(t reflect.Kind) bool { + _, exists := dereferencableKindsConfig[t] + return exists +} + +// This decoder hook tests types for json unmarshaling capability. If implemented, it uses json unmarshal to build the +// object. Otherwise, it'll just pass on the original data. +func jsonUnmarshalerHookConfig(_, to reflect.Type, data interface{}) (interface{}, error) { + unmarshalerType := reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() + if to.Implements(unmarshalerType) || reflect.PtrTo(to).Implements(unmarshalerType) || + (canGetElementConfig(to.Kind()) && to.Elem().Implements(unmarshalerType)) { + + raw, err := json.Marshal(data) + if err != nil { + fmt.Printf("Failed to marshal Data: %v. Error: %v. Skipping jsonUnmarshalHook", data, err) + return data, nil + } + + res := reflect.New(to).Interface() + err = json.Unmarshal(raw, &res) + if err != nil { + fmt.Printf("Failed to umarshal Data: %v. Error: %v. Skipping jsonUnmarshalHook", data, err) + return data, nil + } + + return res, nil + } + + return data, nil +} + +func decode_Config(input, result interface{}) error { + config := &mapstructure.DecoderConfig{ + TagName: "json", + WeaklyTypedInput: true, + Result: result, + DecodeHook: mapstructure.ComposeDecodeHookFunc( + mapstructure.StringToTimeDurationHookFunc(), + mapstructure.StringToSliceHookFunc(","), + jsonUnmarshalerHookConfig, + ), + } + + decoder, err := mapstructure.NewDecoder(config) + if err != nil { + return err + } + + return decoder.Decode(input) +} + +func join_Config(arr interface{}, sep string) string { + listValue := reflect.ValueOf(arr) + strs := make([]string, 0, listValue.Len()) + for i := 0; i < listValue.Len(); i++ { + strs = append(strs, fmt.Sprintf("%v", listValue.Index(i))) + } + + return strings.Join(strs, sep) +} + +func testDecodeJson_Config(t *testing.T, val, result interface{}) { + assert.NoError(t, decode_Config(val, result)) +} + +func testDecodeSlice_Config(t *testing.T, vStringSlice, result interface{}) { + assert.NoError(t, decode_Config(vStringSlice, result)) +} + +func TestConfig_GetPFlagSet(t *testing.T) { + val := Config{} + cmdFlags := val.GetPFlagSet("") + assert.True(t, cmdFlags.HasFlags()) +} + +func TestConfig_SetFlags(t *testing.T) { + actual := Config{} + cmdFlags := actual.GetPFlagSet("") + assert.True(t, cmdFlags.HasFlags()) + + t.Run("Test_endpoint", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("endpoint"); err == nil { + assert.Equal(t, string(defaultConfig.Endpoint.String()), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.Endpoint.String() + + cmdFlags.Set("endpoint", testValue) + if vString, err := cmdFlags.GetString("endpoint"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.Endpoint) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_insecure", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vBool, err := cmdFlags.GetBool("insecure"); err == nil { + assert.Equal(t, bool(defaultConfig.UseInsecureConnection), vBool) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("insecure", testValue) + if vBool, err := cmdFlags.GetBool("insecure"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vBool), &actual.UseInsecureConnection) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_maxBackoffDelay", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("maxBackoffDelay"); err == nil { + assert.Equal(t, string(defaultConfig.MaxBackoffDelay.String()), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.MaxBackoffDelay.String() + + cmdFlags.Set("maxBackoffDelay", testValue) + if vString, err := cmdFlags.GetString("maxBackoffDelay"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.MaxBackoffDelay) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_perRetryTimeout", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("perRetryTimeout"); err == nil { + assert.Equal(t, string(defaultConfig.PerRetryTimeout.String()), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := defaultConfig.PerRetryTimeout.String() + + cmdFlags.Set("perRetryTimeout", testValue) + if vString, err := cmdFlags.GetString("perRetryTimeout"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.PerRetryTimeout) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_maxRetries", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vInt, err := cmdFlags.GetInt("maxRetries"); err == nil { + assert.Equal(t, int(defaultConfig.MaxRetries), vInt) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("maxRetries", testValue) + if vInt, err := cmdFlags.GetInt("maxRetries"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vInt), &actual.MaxRetries) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) +} diff --git a/flyteidl/clients/go/admin/mocks/AdminServiceClient.go b/flyteidl/clients/go/admin/mocks/AdminServiceClient.go new file mode 100644 index 0000000000..4d4f317432 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AdminServiceClient.go @@ -0,0 +1,943 @@ +// Code generated by mockery v1.0.0. DO NOT EDIT. + +package mocks + +import admin "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" +import context "context" +import grpc "google.golang.org/grpc" +import mock "github.com/stretchr/testify/mock" + +// AdminServiceClient is an autogenerated mock type for the AdminServiceClient type +type AdminServiceClient struct { + mock.Mock +} + +// CreateExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, 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.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionCreateRequest, ...grpc.CallOption) *admin.ExecutionCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, 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.LaunchPlanCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.LaunchPlanCreateRequest, ...grpc.CallOption) *admin.LaunchPlanCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.LaunchPlanCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateNodeEvent provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, 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.NodeExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionEventRequest, ...grpc.CallOption) *admin.NodeExecutionEventResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionEventRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTask provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, 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.TaskCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskCreateRequest, ...grpc.CallOption) *admin.TaskCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateTaskEvent provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, 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.TaskExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionEventRequest, ...grpc.CallOption) *admin.TaskExecutionEventResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionEventRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateWorkflow provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, 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.WorkflowCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowCreateRequest, ...grpc.CallOption) *admin.WorkflowCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowCreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// CreateWorkflowEvent provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, 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.WorkflowExecutionEventResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionEventRequest, ...grpc.CallOption) *admin.WorkflowExecutionEventResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionEventResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionEventRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, 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.Execution + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetRequest, ...grpc.CallOption) *admin.Execution); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Execution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetExecutionData provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, 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.WorkflowExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.WorkflowExecutionGetDataRequest, ...grpc.CallOption) *admin.WorkflowExecutionGetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.WorkflowExecutionGetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, 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.LaunchPlan + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.LaunchPlan); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlan) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetNodeExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, 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.NodeExecution + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionGetRequest, ...grpc.CallOption) *admin.NodeExecution); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetNodeExecutionData provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, 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.NodeExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionGetDataRequest, ...grpc.CallOption) *admin.NodeExecutionGetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionGetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTask provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, 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.Task + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.Task); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Task) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTaskExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, 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.TaskExecution + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionGetRequest, ...grpc.CallOption) *admin.TaskExecution); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecution) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetTaskExecutionData provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, 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.TaskExecutionGetDataResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionGetDataRequest, ...grpc.CallOption) *admin.TaskExecutionGetDataResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionGetDataResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionGetDataRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetWorkflow provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, 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.Workflow + if rf, ok := ret.Get(0).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) *admin.Workflow); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Workflow) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ObjectGetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListExecutions provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, 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.ExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.ExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListLaunchPlanIds provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, 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.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) *admin.NamedEntityIdentifierList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListLaunchPlans provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, 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.LaunchPlanList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.LaunchPlanList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListNodeExecutions provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, 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.NodeExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionListRequest, ...grpc.CallOption) *admin.NodeExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListNodeExecutionsForTask provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, 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.NodeExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NodeExecutionForTaskListRequest, ...grpc.CallOption) *admin.NodeExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NodeExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NodeExecutionForTaskListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListProjects provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, 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.Projects + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectListRequest, ...grpc.CallOption) *admin.Projects); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.Projects) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTaskExecutions provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, 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.TaskExecutionList + if rf, ok := ret.Get(0).(func(context.Context, *admin.TaskExecutionListRequest, ...grpc.CallOption) *admin.TaskExecutionList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskExecutionList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.TaskExecutionListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTaskIds provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, 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.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) *admin.NamedEntityIdentifierList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListTasks provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, 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.TaskList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.TaskList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.TaskList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListWorkflowIds provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, 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.NamedEntityIdentifierList + if rf, ok := ret.Get(0).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) *admin.NamedEntityIdentifierList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.NamedEntityIdentifierList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.NamedEntityIdentifierListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// ListWorkflows provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, 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.WorkflowList + if rf, ok := ret.Get(0).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) *admin.WorkflowList); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.WorkflowList) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ResourceListRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RegisterProject provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, 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.ProjectRegisterResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ProjectRegisterRequest, ...grpc.CallOption) *admin.ProjectRegisterResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ProjectRegisterResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ProjectRegisterRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// RelaunchExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, 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.ExecutionCreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionRelaunchRequest, ...grpc.CallOption) *admin.ExecutionCreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionCreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionRelaunchRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// TerminateExecution provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, 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.ExecutionTerminateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.ExecutionTerminateRequest, ...grpc.CallOption) *admin.ExecutionTerminateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecutionTerminateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.ExecutionTerminateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// UpdateLaunchPlan provides a mock function with given fields: ctx, in, opts +func (_m *AdminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, 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.LaunchPlanUpdateResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.LaunchPlanUpdateRequest, ...grpc.CallOption) *admin.LaunchPlanUpdateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.LaunchPlanUpdateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.LaunchPlanUpdateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/coreutils/literals.go b/flyteidl/clients/go/coreutils/literals.go new file mode 100644 index 0000000000..7970f75bac --- /dev/null +++ b/flyteidl/clients/go/coreutils/literals.go @@ -0,0 +1,262 @@ +// Contains convenience methods for constructing core types. +package coreutils + +import ( + "fmt" + "reflect" + "time" + + "github.com/golang/protobuf/ptypes" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +func MakePrimitive(v interface{}) (*core.Primitive, error) { + switch p := v.(type) { + case int: + return &core.Primitive{ + Value: &core.Primitive_Integer{ + Integer: int64(p), + }, + }, nil + case int64: + return &core.Primitive{ + Value: &core.Primitive_Integer{ + Integer: p, + }, + }, nil + case float64: + return &core.Primitive{ + Value: &core.Primitive_FloatValue{ + FloatValue: p, + }, + }, nil + case time.Time: + t, err := ptypes.TimestampProto(p) + if err != nil { + return nil, err + } + return &core.Primitive{ + Value: &core.Primitive_Datetime{ + Datetime: t, + }, + }, nil + case time.Duration: + d := ptypes.DurationProto(p) + return &core.Primitive{ + Value: &core.Primitive_Duration{ + Duration: d, + }, + }, nil + case string: + return &core.Primitive{ + Value: &core.Primitive_StringValue{ + StringValue: p, + }, + }, nil + case bool: + return &core.Primitive{ + Value: &core.Primitive_Boolean{ + Boolean: p, + }, + }, nil + } + return nil, fmt.Errorf("failed to convert to a known primitive type. Input Type [%v] not supported", reflect.TypeOf(v).String()) +} + +func MustMakePrimitive(v interface{}) *core.Primitive { + f, err := MakePrimitive(v) + if err != nil { + panic(err) + } + return f +} + +func MakePrimitiveLiteral(v interface{}) (*core.Literal, error) { + p, err := MakePrimitive(v) + if err != nil { + return nil, err + } + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Primitive{ + Primitive: p, + }, + }, + }, + }, nil +} + +func MustMakePrimitiveLiteral(v interface{}) *core.Literal { + p, err := MakePrimitiveLiteral(v) + if err != nil { + panic(err) + } + return p +} + +func MakeLiteralForMap(v map[string]interface{}) (*core.Literal, error) { + m, err := MakeLiteralMap(v) + if err != nil { + return nil, err + } + + return &core.Literal{ + Value: &core.Literal_Map{ + Map: m, + }, + }, nil +} + +func MakeLiteralForCollection(v []interface{}) (*core.Literal, error) { + literals := make([]*core.Literal, 0, len(v)) + for _, val := range v { + l, err := MakeLiteral(val) + if err != nil { + return nil, err + } + + literals = append(literals, l) + } + + return &core.Literal{ + Value: &core.Literal_Collection{ + Collection: &core.LiteralCollection{ + Literals: literals, + }, + }, + }, nil +} + +func MakeBinaryLiteral(v []byte) *core.Literal { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_Binary{ + Binary: &core.Binary{ + Value: v, + }, + }, + }, + }, + } +} + +func MakeLiteral(v interface{}) (*core.Literal, error) { + if v == nil { + return &core.Literal{ + Value: &core.Literal_Scalar{ + Scalar: &core.Scalar{ + Value: &core.Scalar_NoneType{ + NoneType: nil, + }, + }, + }, + }, nil + } + switch o := v.(type) { + case *core.Literal: + return o, nil + case []interface{}: + return MakeLiteralForCollection(o) + case map[string]interface{}: + return MakeLiteralForMap(o) + case []byte: + return MakeBinaryLiteral(v.([]byte)), nil + default: + return MakePrimitiveLiteral(o) + } +} + +func MustMakeDefaultLiteralForType(typ *core.LiteralType) *core.Literal { + if res, err := MakeDefaultLiteralForType(typ); err != nil { + panic(err) + } else { + return res + } +} + +func MakeDefaultLiteralForType(typ *core.LiteralType) (*core.Literal, error) { + switch t := typ.GetType().(type) { + case *core.LiteralType_Simple: + switch t.Simple { + case core.SimpleType_NONE: + return MakeLiteral(nil) + case core.SimpleType_INTEGER: + return MakeLiteral(int(0)) + case core.SimpleType_FLOAT: + return MakeLiteral(float64(0)) + case core.SimpleType_STRING: + return MakeLiteral("") + case core.SimpleType_BOOLEAN: + return MakeLiteral(false) + case core.SimpleType_DATETIME: + return MakeLiteral(time.Now()) + case core.SimpleType_DURATION: + return MakeLiteral(time.Second) + case core.SimpleType_BINARY: + return MakeLiteral([]byte{}) + //case core.SimpleType_WAITABLE: + //case core.SimpleType_ERROR: + } + return nil, fmt.Errorf("not yet implemented. Default creation is not yet implemented. ") + + case *core.LiteralType_CollectionType: + single, err := MakeDefaultLiteralForType(t.CollectionType) + if err != nil { + return nil, err + } + + return &core.Literal{ + Value: &core.Literal_Collection{ + Collection: &core.LiteralCollection{ + Literals: []*core.Literal{single}, + }, + }, + }, nil + case *core.LiteralType_MapValueType: + single, err := MakeDefaultLiteralForType(t.MapValueType) + if err != nil { + return nil, err + } + + return &core.Literal{ + Value: &core.Literal_Map{ + Map: &core.LiteralMap{ + Literals: map[string]*core.Literal{ + "itemKey": single, + }, + }, + }, + }, nil + //case *core.LiteralType_Schema: + } + + return nil, fmt.Errorf("failed to convert to a known Literal. Input Type [%v] not supported", typ.String()) +} + +func MustMakeLiteral(v interface{}) *core.Literal { + p, err := MakeLiteral(v) + if err != nil { + panic(err) + } + + return p +} + +func MakeLiteralMap(v map[string]interface{}) (*core.LiteralMap, error) { + + literals := make(map[string]*core.Literal, len(v)) + for key, val := range v { + l, err := MakeLiteral(val) + if err != nil { + return nil, err + } + + literals[key] = l + } + + return &core.LiteralMap{ + Literals: literals, + }, nil +} diff --git a/flyteidl/clients/go/coreutils/literals_test.go b/flyteidl/clients/go/coreutils/literals_test.go new file mode 100644 index 0000000000..66da4865a4 --- /dev/null +++ b/flyteidl/clients/go/coreutils/literals_test.go @@ -0,0 +1,200 @@ +package coreutils + +import ( + "reflect" + "testing" + "time" + + "github.com/golang/protobuf/ptypes" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + "github.com/stretchr/testify/assert" +) + +func TestMakePrimitive(t *testing.T) { + { + v := 1 + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Integer", reflect.TypeOf(p.Value).String()) + assert.Equal(t, int64(v), p.GetInteger()) + } + { + v := int64(1) + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Integer", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetInteger()) + } + { + v := 1.0 + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_FloatValue", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetFloatValue()) + } + { + v := "blah" + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_StringValue", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetStringValue()) + } + { + v := true + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Boolean", reflect.TypeOf(p.Value).String()) + assert.Equal(t, v, p.GetBoolean()) + } + { + v := time.Now() + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Datetime", reflect.TypeOf(p.Value).String()) + j, err := ptypes.TimestampProto(v) + assert.NoError(t, err) + assert.Equal(t, j, p.GetDatetime()) + } + { + v := time.Second * 10 + p, err := MakePrimitive(v) + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_Duration", reflect.TypeOf(p.Value).String()) + assert.Equal(t, ptypes.DurationProto(v), p.GetDuration()) + } + { + v := struct { + }{} + _, err := MakePrimitive(v) + assert.Error(t, err) + } +} + +func TestMustMakePrimitive(t *testing.T) { + { + v := struct { + }{} + assert.Panics(t, func() { + MustMakePrimitive(v) + }) + } + { + v := time.Second * 10 + p := MustMakePrimitive(v) + assert.Equal(t, "*core.Primitive_Duration", reflect.TypeOf(p.Value).String()) + assert.Equal(t, ptypes.DurationProto(v), p.GetDuration()) + } +} + +func TestMakePrimitiveLiteral(t *testing.T) { + { + v := 1.0 + p, err := MakePrimitiveLiteral(v) + assert.NoError(t, err) + assert.NotNil(t, p.GetScalar()) + assert.Equal(t, "*core.Primitive_FloatValue", reflect.TypeOf(p.GetScalar().GetPrimitive().Value).String()) + assert.Equal(t, v, p.GetScalar().GetPrimitive().GetFloatValue()) + } + { + v := struct { + }{} + _, err := MakePrimitiveLiteral(v) + assert.Error(t, err) + } +} + +func TestMustMakePrimitiveLiteral(t *testing.T) { + t.Run("Panic", func(t *testing.T) { + v := struct { + }{} + assert.Panics(t, func() { + MustMakePrimitiveLiteral(v) + }) + }) + t.Run("FloatValue", func(t *testing.T) { + v := 1.0 + p := MustMakePrimitiveLiteral(v) + assert.NotNil(t, p.GetScalar()) + assert.Equal(t, "*core.Primitive_FloatValue", reflect.TypeOf(p.GetScalar().GetPrimitive().Value).String()) + assert.Equal(t, v, p.GetScalar().GetPrimitive().GetFloatValue()) + }) +} + +func TestMakeLiteral(t *testing.T) { + t.Run("Primitive", func(t *testing.T) { + lit, err := MakeLiteral("test_string") + assert.NoError(t, err) + assert.Equal(t, "*core.Primitive_StringValue", reflect.TypeOf(lit.GetScalar().GetPrimitive().Value).String()) + }) + + t.Run("Array", func(t *testing.T) { + lit, err := MakeLiteral([]interface{}{1, 2, 3}) + assert.NoError(t, err) + assert.Equal(t, "*core.Literal_Collection", reflect.TypeOf(lit.GetValue()).String()) + assert.Equal(t, "*core.Primitive_Integer", reflect.TypeOf(lit.GetCollection().Literals[0].GetScalar().GetPrimitive().Value).String()) + }) + + t.Run("Map", func(t *testing.T) { + lit, err := MakeLiteral(map[string]interface{}{ + "key1": []interface{}{1, 2, 3}, + "key2": []interface{}{5}, + }) + assert.NoError(t, err) + assert.Equal(t, "*core.Literal_Map", reflect.TypeOf(lit.GetValue()).String()) + assert.Equal(t, "*core.Literal_Collection", reflect.TypeOf(lit.GetMap().Literals["key1"].GetValue()).String()) + }) + + t.Run("Binary", func(t *testing.T) { + s := MakeBinaryLiteral([]byte{'h'}) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) + }) + + t.Run("NoneType", func(t *testing.T) { + p, err := MakeLiteral(nil) + assert.NoError(t, err) + assert.NotNil(t, p.GetScalar()) + assert.Equal(t, "*core.Scalar_NoneType", reflect.TypeOf(p.GetScalar().Value).String()) + }) +} + +func TestMustMakeLiteral(t *testing.T) { + v := "hello" + l := MustMakeLiteral(v) + assert.NotNil(t, l.GetScalar()) + assert.Equal(t, v, l.GetScalar().GetPrimitive().GetStringValue()) +} + +func TestMakeBinaryLiteral(t *testing.T) { + s := MakeBinaryLiteral([]byte{'h'}) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) +} + +func TestMakeDefaultLiteralForType(t *testing.T) { + + tests := [][]interface{}{ + {"Integer", core.SimpleType_INTEGER, "*core.Primitive_Integer"}, + {"Float", core.SimpleType_FLOAT, "*core.Primitive_FloatValue"}, + {"String", core.SimpleType_STRING, "*core.Primitive_StringValue"}, + {"Boolean", core.SimpleType_BOOLEAN, "*core.Primitive_Boolean"}, + {"Duration", core.SimpleType_DURATION, "*core.Primitive_Duration"}, + {"Datetime", core.SimpleType_DATETIME, "*core.Primitive_Datetime"}, + } + + for i := range tests { + name := tests[i][0].(string) + ty := tests[i][1].(core.SimpleType) + tyName := tests[i][2].(string) + + t.Run(name, func(t *testing.T) { + l, err := MakeDefaultLiteralForType(&core.LiteralType{Type: &core.LiteralType_Simple{Simple: ty}}) + assert.NoError(t, err) + assert.Equal(t, tyName, reflect.TypeOf(l.GetScalar().GetPrimitive().Value).String()) + }) + } + + t.Run("Binary", func(t *testing.T) { + s, err := MakeLiteral([]byte{'h'}) + assert.NoError(t, err) + assert.Equal(t, []byte{'h'}, s.GetScalar().GetBinary().GetValue()) + }) +} diff --git a/flyteidl/clients/go/coreutils/logs/cloudwatch.go b/flyteidl/clients/go/coreutils/logs/cloudwatch.go new file mode 100644 index 0000000000..2abdb8dc83 --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/cloudwatch.go @@ -0,0 +1,44 @@ +package logs + +import ( + "fmt" + "strings" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +type cloudwatchLogPlugin struct { + region string + groupName string +} + +func (s cloudwatchLogPlugin) GetTaskLog(podName, namespace, containerName, containerID, logName string) (core.TaskLog, error) { + + // Container IDs are prefixed with docker://, cri-o://, etc. which is stripped by fluentd before pushing to a log + // stream. Therefore, we must also strip the prefix. + // Also, container names are + stripDelimiter := "://" + if split := strings.Split(containerID, stripDelimiter); len(split) > 1 { + containerID = split[1] + } + + return core.TaskLog{ + Uri: fmt.Sprintf( + "https://console.aws.amazon.com/cloudwatch/home?region=%s#logEventViewer:group=%s;stream=var.log.containers.%s_%s_%s-%s.log", + s.region, + s.groupName, + podName, + namespace, + containerName, + containerID), + Name: logName, + MessageFormat: core.TaskLog_JSON, + }, nil +} + +func NewCloudwatchLogPlugin(region, groupName string) LogPlugin { + return &cloudwatchLogPlugin{ + region: region, + groupName: groupName, + } +} diff --git a/flyteidl/clients/go/coreutils/logs/cloudwatch_test.go b/flyteidl/clients/go/coreutils/logs/cloudwatch_test.go new file mode 100644 index 0000000000..ac4e28fedf --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/cloudwatch_test.go @@ -0,0 +1,50 @@ +package logs + +import ( + "testing" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + "github.com/stretchr/testify/assert" +) + +func TestCloudwatchLogMaker_CriO(t *testing.T) { + p := NewCloudwatchLogPlugin("us-east-1", "/flyte-production/kubernetes") + tl, err := p.GetTaskLog( + "f-uuid-driver", + "flyteexamples-production", + "spark-kubernetes-driver", + "cri-o://abc", + "main_logs") + assert.NoError(t, err) + assert.Equal(t, tl.GetName(), "main_logs") + assert.Equal(t, tl.GetMessageFormat(), core.TaskLog_JSON) + assert.Equal(t, "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/flyte-production/kubernetes;stream=var.log.containers.f-uuid-driver_flyteexamples-production_spark-kubernetes-driver-abc.log", tl.Uri) +} + +func TestCloudwatchLogMaker_Docker(t *testing.T) { + p := NewCloudwatchLogPlugin("us-east-1", "/flyte-staging/kubernetes") + tl, err := p.GetTaskLog( + "f-uuid-driver", + "flyteexamples-staging", + "spark-kubernetes-driver", + "docker://abc123", + "main_logs") + assert.NoError(t, err) + assert.Equal(t, tl.GetName(), "main_logs") + assert.Equal(t, tl.GetMessageFormat(), core.TaskLog_JSON) + assert.Equal(t, "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/flyte-staging/kubernetes;stream=var.log.containers.f-uuid-driver_flyteexamples-staging_spark-kubernetes-driver-abc123.log", tl.Uri) +} + +func TestCloudwatchLogMaker_NoPrefix(t *testing.T) { + p := NewCloudwatchLogPlugin("us-east-1", "/flyte-staging/kubernetes") + tl, err := p.GetTaskLog( + "f-uuid-driver", + "flyteexamples-staging", + "spark-kubernetes-driver", + "123abc", + "main_logs") + assert.NoError(t, err) + assert.Equal(t, tl.GetName(), "main_logs") + assert.Equal(t, tl.GetMessageFormat(), core.TaskLog_JSON) + assert.Equal(t, "https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/flyte-staging/kubernetes;stream=var.log.containers.f-uuid-driver_flyteexamples-staging_spark-kubernetes-driver-123abc.log", tl.Uri) +} diff --git a/flyteidl/clients/go/coreutils/logs/kubernetes.go b/flyteidl/clients/go/coreutils/logs/kubernetes.go new file mode 100644 index 0000000000..eec9c1d420 --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/kubernetes.go @@ -0,0 +1,25 @@ +package logs + +import ( + "fmt" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +type kubernetesLogPlugin struct { + k8sURL string +} + +func (s kubernetesLogPlugin) GetTaskLog(podName, namespace, containerName, containerID, logName string) (core.TaskLog, error) { + return core.TaskLog{ + Uri: fmt.Sprintf("%s/#!/log/%s/%s/pod?namespace=%s", s.k8sURL, namespace, podName, namespace), + Name: logName, + MessageFormat: core.TaskLog_UNKNOWN, + }, nil +} + +func NewKubernetesLogPlugin(k8sURL string) LogPlugin { + return &kubernetesLogPlugin{ + k8sURL: k8sURL, + } +} diff --git a/flyteidl/clients/go/coreutils/logs/kubernetes_test.go b/flyteidl/clients/go/coreutils/logs/kubernetes_test.go new file mode 100644 index 0000000000..4e1cfc3f80 --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/kubernetes_test.go @@ -0,0 +1,23 @@ +package logs + +import ( + "testing" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + "github.com/stretchr/testify/assert" +) + +func TestKubernetesLogMaker(t *testing.T) { + p := NewKubernetesLogPlugin("https://dashboard.k8s.net") + tl, err := p.GetTaskLog( + "flyteexamples-development-task-name", + "flyteexamples-development", + "ignore", + "ignore", + "main_logs", + ) + assert.NoError(t, err) + assert.Equal(t, tl.GetName(), "main_logs") + assert.Equal(t, tl.GetMessageFormat(), core.TaskLog_UNKNOWN) + assert.Equal(t, "https://dashboard.k8s.net/#!/log/flyteexamples-development/flyteexamples-development-task-name/pod?namespace=flyteexamples-development", tl.Uri) +} diff --git a/flyteidl/clients/go/coreutils/logs/logs.go b/flyteidl/clients/go/coreutils/logs/logs.go new file mode 100644 index 0000000000..13606a1b86 --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/logs.go @@ -0,0 +1,12 @@ +// Contains interface definitions and helper functions for log plugins + +package logs + +import ( + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +type LogPlugin interface { + // Generates a TaskLog object given necessary computation information + GetTaskLog(podName, namespace, containerName, containerID, logName string) (core.TaskLog, error) +} diff --git a/flyteidl/clients/go/coreutils/logs/stackdriver.go b/flyteidl/clients/go/coreutils/logs/stackdriver.go new file mode 100644 index 0000000000..72bd1de5b9 --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/stackdriver.go @@ -0,0 +1,39 @@ +package logs + +import ( + "fmt" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +// TL;DR Log links in Stackdriver for configured GCP project and log Resource - Assumption: logName = podName +// +// This is a simple stackdriver log plugin that creates a preformatted log link for a given project and logResource +// assuming that the logName is the name of the pod in kubernetes +type stackdriverLogPlugin struct { + // the name of the project in GCP that the logs are being published under + gcpProject string + // The Log resource name for which the logs are published under + logResource string +} + +func (s *stackdriverLogPlugin) GetTaskLog(podName, namespace, containerName, containerID, logName string) (core.TaskLog, error) { + return core.TaskLog{ + Uri: fmt.Sprintf( + "https://console.cloud.google.com/logs/viewer?project=%s&angularJsUrl=%%2Flogs%%2Fviewer%%3Fproject%%3D%s&authuser=1&resource=%s&advancedFilter=logName:%s", + s.gcpProject, + s.gcpProject, + s.logResource, + podName, + ), + Name: logName, + MessageFormat: core.TaskLog_JSON, + }, nil +} + +func NewStackdriverLogPlugin(gcpProject, logResource string) LogPlugin { + return &stackdriverLogPlugin{ + gcpProject: gcpProject, + logResource: logResource, + } +} diff --git a/flyteidl/clients/go/coreutils/logs/stackdriver_test.go b/flyteidl/clients/go/coreutils/logs/stackdriver_test.go new file mode 100644 index 0000000000..3fad8177a8 --- /dev/null +++ b/flyteidl/clients/go/coreutils/logs/stackdriver_test.go @@ -0,0 +1,58 @@ +package logs + +import ( + "reflect" + "testing" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +func Test_stackdriverLogPlugin_GetTaskLog(t *testing.T) { + type fields struct { + gcpProject string + logResource string + } + type args struct { + podName string + namespace string + containerName string + containerID string + logName string + } + tests := []struct { + name string + fields fields + args args + want core.TaskLog + wantErr bool + }{ + { + "podName-proj1", + fields{gcpProject: "test-gcp-project", logResource: "aws_ec2_instance"}, + args{podName: "podName"}, + core.TaskLog{Uri: "https://console.cloud.google.com/logs/viewer?project=test-gcp-project&angularJsUrl=%2Flogs%2Fviewer%3Fproject%3Dtest-gcp-project&authuser=1&resource=aws_ec2_instance&advancedFilter=logName:podName", MessageFormat: core.TaskLog_JSON}, false, + }, + { + "podName2-proj2", + fields{gcpProject: "proj2", logResource: "res1"}, + args{podName: "long-pod-name-xyyyx"}, + core.TaskLog{Uri: "https://console.cloud.google.com/logs/viewer?project=proj2&angularJsUrl=%2Flogs%2Fviewer%3Fproject%3Dproj2&authuser=1&resource=res1&advancedFilter=logName:long-pod-name-xyyyx", MessageFormat: core.TaskLog_JSON}, false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + s := &stackdriverLogPlugin{ + gcpProject: tt.fields.gcpProject, + logResource: tt.fields.logResource, + } + got, err := s.GetTaskLog(tt.args.podName, tt.args.namespace, tt.args.containerName, tt.args.containerID, tt.args.logName) + if (err != nil) != tt.wantErr { + t.Errorf("stackdriverLogPlugin.GetTaskLog() error = %v, wantErr %v", err, tt.wantErr) + return + } + if !reflect.DeepEqual(got, tt.want) { + t.Errorf("stackdriverLogPlugin.GetTaskLog() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/flyteidl/clients/go/datacatalog/mocks/ArtifactsClient.go b/flyteidl/clients/go/datacatalog/mocks/ArtifactsClient.go new file mode 100644 index 0000000000..27b74c275b --- /dev/null +++ b/flyteidl/clients/go/datacatalog/mocks/ArtifactsClient.go @@ -0,0 +1,133 @@ +// Code generated by mockery v1.0.0. DO NOT EDIT. + +package mocks + +import context "context" +import datacatalog "github.com/lyft/flyteidl/gen/pb-go/flyteidl/datacatalog" +import grpc "google.golang.org/grpc" +import mock "github.com/stretchr/testify/mock" + +// ArtifactsClient is an autogenerated mock type for the ArtifactsClient type +type ArtifactsClient struct { + mock.Mock +} + +// Create provides a mock function with given fields: ctx, in, opts +func (_m *ArtifactsClient) Create(ctx context.Context, in *datacatalog.CreateRequest, opts ...grpc.CallOption) (*datacatalog.CreateResponse, 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 *datacatalog.CreateResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.CreateRequest, ...grpc.CallOption) *datacatalog.CreateResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.CreateResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.CreateRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GenerateProvenance provides a mock function with given fields: ctx, in, opts +func (_m *ArtifactsClient) GenerateProvenance(ctx context.Context, in *datacatalog.GenerateProvenanceRequest, opts ...grpc.CallOption) (*datacatalog.GenerateProvenanceResponse, 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 *datacatalog.GenerateProvenanceResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GenerateProvenanceRequest, ...grpc.CallOption) *datacatalog.GenerateProvenanceResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GenerateProvenanceResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GenerateProvenanceRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Get provides a mock function with given fields: ctx, in, opts +func (_m *ArtifactsClient) Get(ctx context.Context, in *datacatalog.GetRequest, opts ...grpc.CallOption) (*datacatalog.GetResponse, 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 *datacatalog.GetResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetRequest, ...grpc.CallOption) *datacatalog.GetResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.GetResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// Query provides a mock function with given fields: ctx, in, opts +func (_m *ArtifactsClient) Query(ctx context.Context, in *datacatalog.QueryRequest, opts ...grpc.CallOption) (*datacatalog.QueryResponse, 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 *datacatalog.QueryResponse + if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.QueryRequest, ...grpc.CallOption) *datacatalog.QueryResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*datacatalog.QueryResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.QueryRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/events/admin_eventsink.go b/flyteidl/clients/go/events/admin_eventsink.go new file mode 100644 index 0000000000..fa28f17160 --- /dev/null +++ b/flyteidl/clients/go/events/admin_eventsink.go @@ -0,0 +1,99 @@ +package events + +import ( + "context" + "fmt" + admin2 "github.com/lyft/flyteidl/clients/go/admin" + + "github.com/golang/protobuf/proto" + "github.com/lyft/flyteidl/clients/go/events/errors" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/service" + "github.com/lyft/flytestdlib/logger" + "golang.org/x/time/rate" +) + +type adminEventSink struct { + adminClient service.AdminServiceClient + rateLimiter *rate.Limiter + cfg *Config +} + +// Constructs a new EventSink that sends events to FlyteAdmin through gRPC +func NewAdminEventSink(ctx context.Context, adminClient service.AdminServiceClient, config *Config) (EventSink, error) { + rateLimiter := rate.NewLimiter(rate.Limit(config.Rate), config.Capacity) + + eventSink := &adminEventSink{ + adminClient: adminClient, + rateLimiter: rateLimiter, + cfg: config, + } + + logger.Infof(ctx, "Created new AdminEventSink to Admin service") + return eventSink, nil +} + +// Sends events to the FlyteAdmin service through gRPC +func (s *adminEventSink) Sink(ctx context.Context, message proto.Message) error { + logger.Debugf(ctx, "AdminEventSink received a new event %s", message.String()) + + if s.rateLimiter.Allow() { + switch eventMessage := message.(type) { + case *event.WorkflowExecutionEvent: + request := &admin.WorkflowExecutionEventRequest{ + Event: eventMessage, + } + _, err := s.adminClient.CreateWorkflowEvent(ctx, request) + + if err != nil { + return errors.WrapError(err) + } + case *event.NodeExecutionEvent: + request := &admin.NodeExecutionEventRequest{ + Event: eventMessage, + } + _, err := s.adminClient.CreateNodeEvent(ctx, request) + if err != nil { + return errors.WrapError(err) + } + case *event.TaskExecutionEvent: + request := &admin.TaskExecutionEventRequest{ + Event: eventMessage, + } + _, err := s.adminClient.CreateTaskEvent(ctx, request) + if err != nil { + return errors.WrapError(err) + } + default: + return fmt.Errorf("unknown event type [%s]", eventMessage.String()) + } + } else { + return &errors.EventError{Code: errors.ResourceExhausted, + Cause: fmt.Errorf("Admin EventSink throttling admin traffic"), Message: "Resource Exhausted"} + } + + return nil +} + +// Closes the gRPC client connection. This should be deferred on the client does shutdown cleanup. +func (s *adminEventSink) Close() error { + return nil +} + +func ConstructEventSink(ctx context.Context, config *Config) (EventSink, error) { + switch config.Type { + case EventSinkLog: + return NewLogSink() + case EventSinkFile: + return NewFileSink(config.FilePath) + case EventSinkAdmin: + adminClient, err := admin2.InitializeAdminClientFromConfig(ctx) + if err != nil { + return nil, err + } + return NewAdminEventSink(ctx, adminClient, config) + default: + return NewStdoutSink() + } +} diff --git a/flyteidl/clients/go/events/admin_eventsink_integration_test.go b/flyteidl/clients/go/events/admin_eventsink_integration_test.go new file mode 100644 index 0000000000..34c4b218c3 --- /dev/null +++ b/flyteidl/clients/go/events/admin_eventsink_integration_test.go @@ -0,0 +1,67 @@ +// +build integration +// Add this tag to your project settings if you want to pick it up. + +package events + +import ( + "context" + "fmt" + "github.com/golang/protobuf/ptypes" + "github.com/influxdata/influxdb/pkg/testing/assert" + "github.com/lyft/flyteidl/clients/go/admin" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + "github.com/lyft/flytestdlib/config" + netUrl "net/url" + "testing" + "time" +) + +var ( + u, _ = netUrl.Parse("localhost:8089") + adminServiceConfig = admin.Config{ + Endpoint: config.URL{URL: *u,}, + UseInsecureConnection: true, + PerRetryTimeout: config.Duration{1 * time.Second}, + MaxRetries: 1, + } +) + +// To run this test, and see if the deadline working, pick an existing successful execution from your admin database +// select * from executions; +// Then delete all the events from it. +// delete from execution_events where execution_name = 'ikuy55mn0y'; +// Then run this +// begin work; lock table executions in ACCESS EXCLUSIVE mode; SELECT pg_sleep(20); commit work; +// This will lock your table so that admin can't read it, causing the grpc call to timeout. +// On timeout, you should get a deadline exceeded error. Otherwise, you should get an error to the effect of +// "Invalid phase change from SUCCEEDED to RUNNING" or something like that. +// Lastly be sure to port forward admin, or change url above to the dns name if running in-cluster +func TestAdminEventSinkTimeout(t *testing.T) { + ctx := context.Background() + fmt.Println(u.Scheme) + + adminClient := admin.InitializeAdminClient(ctx, adminServiceConfig) + + eventSinkConfig := &Config{ + Rate: 1, + Capacity: 1, + } + + eventSink, err := NewAdminEventSink(ctx, adminClient, eventSinkConfig) + + wfEvent := &event.WorkflowExecutionEvent{ + Phase: core.WorkflowExecution_RUNNING, + OccurredAt: ptypes.TimestampNow(), + ExecutionId: &core.WorkflowExecutionIdentifier{ + Project: "flyteexamples", + Domain: "development", + Name: "ikuy55mn0y", + }, + ProducerId: "testproducer", + OutputResult: &event.WorkflowExecutionEvent_OutputUri{"s3://blah/blah/blah"}, + } + + err = eventSink.Sink(ctx, wfEvent) + assert.NoError(t, err) +} diff --git a/flyteidl/clients/go/events/admin_eventsink_test.go b/flyteidl/clients/go/events/admin_eventsink_test.go new file mode 100644 index 0000000000..f4eb3cab69 --- /dev/null +++ b/flyteidl/clients/go/events/admin_eventsink_test.go @@ -0,0 +1,185 @@ +package events + +import ( + "context" + "github.com/golang/protobuf/ptypes" + "github.com/lyft/flyteidl/clients/go/admin/mocks" + "github.com/lyft/flyteidl/clients/go/events/errors" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "testing" +) + +// This test suite uses Mockery to mock the AdminServiceClient. Run the following command in CLI or in the IntelliJ +// IDE "Go Generate File". This will create a mocks/AdminServiceClient.go file +//go:generate mockery -dir ../../../gen/pb-go/flyteidl/service -name AdminServiceClient -output ../admin/mocks + +func CreateMockAdminEventSink(t *testing.T) (EventSink, *mocks.AdminServiceClient) { + mockClient := &mocks.AdminServiceClient{} + eventSink, _ := NewAdminEventSink(context.Background(), mockClient, &Config{Rate: 100, Capacity: 1000}) + return eventSink, mockClient +} + +func TestAdminWorkflowEvent(t *testing.T) { + ctx := context.Background() + adminEventSink, adminClient := CreateMockAdminEventSink(t) + + wfEvent := &event.WorkflowExecutionEvent{ + Phase: core.WorkflowExecution_RUNNING, + OccurredAt: ptypes.TimestampNow(), + ExecutionId: nil, + ProducerId: "", + OutputResult: &event.WorkflowExecutionEvent_OutputUri{""}, + } + + adminClient.On( + "CreateWorkflowEvent", + ctx, + mock.MatchedBy(func(req *admin.WorkflowExecutionEventRequest) bool { + return req.Event == wfEvent + }, + )).Return(&admin.WorkflowExecutionEventResponse{}, nil) + + err := adminEventSink.Sink(ctx, wfEvent) + assert.NoError(t, err) +} + +func TestAdminNodeEvent(t *testing.T) { + ctx := context.Background() + adminEventSink, adminClient := CreateMockAdminEventSink(t) + + nodeEvent := &event.NodeExecutionEvent{ + Id: &core.NodeExecutionIdentifier{ + NodeId: "node-id", + }, + Phase: core.NodeExecution_FAILED, + OccurredAt: ptypes.TimestampNow(), + ProducerId: "", + InputUri: "input-uri", + OutputResult: &event.NodeExecutionEvent_OutputUri{OutputUri: ""}, + } + + adminClient.On( + "CreateNodeEvent", + ctx, + mock.MatchedBy(func(req *admin.NodeExecutionEventRequest) bool { + return req.Event == nodeEvent + }), + ).Return(&admin.NodeExecutionEventResponse{}, nil) + + err := adminEventSink.Sink(ctx, nodeEvent) + assert.NoError(t, err) +} + +func TestAdminTaskEvent(t *testing.T) { + ctx := context.Background() + adminEventSink, adminClient := CreateMockAdminEventSink(t) + + taskEvent := &event.TaskExecutionEvent{ + Phase: core.TaskExecution_SUCCEEDED, + OccurredAt: ptypes.TimestampNow(), + TaskId: &core.Identifier{ResourceType: core.ResourceType_TASK, Name: "task-id"}, + RetryAttempt: 1, + ParentNodeExecutionId: &core.NodeExecutionIdentifier{ + NodeId: "node-id", + ExecutionId: &core.WorkflowExecutionIdentifier{ + Project: "p", + Domain: "d", + Name: "n", + }, + }, + Logs: []*core.TaskLog{{Uri: "logs.txt"}}, + } + + adminClient.On( + "CreateTaskEvent", + ctx, + mock.MatchedBy(func(req *admin.TaskExecutionEventRequest) bool { + return req.Event == taskEvent + }), + ).Return(&admin.TaskExecutionEventResponse{}, nil) + + err := adminEventSink.Sink(ctx, taskEvent) + assert.NoError(t, err) +} + +func TestAdminAlreadyExistsError(t *testing.T) { + ctx := context.Background() + adminEventSink, adminClient := CreateMockAdminEventSink(t) + + taskEvent := &event.TaskExecutionEvent{ + Phase: core.TaskExecution_SUCCEEDED, + OccurredAt: ptypes.TimestampNow(), + TaskId: &core.Identifier{ResourceType: core.ResourceType_TASK, Name: "task-id"}, + RetryAttempt: 1, + ParentNodeExecutionId: &core.NodeExecutionIdentifier{ + NodeId: "node-id", + ExecutionId: &core.WorkflowExecutionIdentifier{ + Project: "p", + Domain: "d", + Name: "n", + }, + }, + Logs: []*core.TaskLog{{Uri: "logs.txt"}}, + } + + alreadyExistErr := status.Error(codes.AlreadyExists, "Grpc AlreadyExists error") + + adminClient.On( + "CreateTaskEvent", + ctx, + mock.MatchedBy(func(req *admin.TaskExecutionEventRequest) bool { return true }), + ).Return(nil, alreadyExistErr) + + err := adminEventSink.Sink(ctx, taskEvent) + assert.Error(t, err) + assert.True(t, errors.IsAlreadyExists(err)) +} + +func TestAdminRateLimitError(t *testing.T) { + ctx := context.Background() + adminClient := &mocks.AdminServiceClient{} + adminEventSink, _ := NewAdminEventSink(context.Background(), adminClient, &Config{Rate: 1, Capacity: 1}) + + taskEvent := &event.TaskExecutionEvent{ + Phase: core.TaskExecution_SUCCEEDED, + OccurredAt: ptypes.TimestampNow(), + TaskId: &core.Identifier{ResourceType: core.ResourceType_TASK, Name: "task-id"}, + RetryAttempt: 1, + ParentNodeExecutionId: &core.NodeExecutionIdentifier{ + NodeId: "node-id", + ExecutionId: &core.WorkflowExecutionIdentifier{ + Project: "p", + Domain: "d", + Name: "n", + }, + }, + Logs: []*core.TaskLog{{Uri: "logs.txt"}}, + } + + adminClient.On( + "CreateTaskEvent", + ctx, + mock.MatchedBy(func(req *admin.TaskExecutionEventRequest) bool { + return req.Event == taskEvent + }), + ).Return(&admin.TaskExecutionEventResponse{}, nil) + + var rateLimitedErr error + for i := 0; i < 10; i++ { + err := adminEventSink.Sink(ctx, taskEvent) + + if err != nil { + rateLimitedErr = err + break + } + } + + assert.Error(t, rateLimitedErr) + assert.True(t, errors.IsResourceExhausted(rateLimitedErr)) +} diff --git a/flyteidl/clients/go/events/config.go b/flyteidl/clients/go/events/config.go new file mode 100644 index 0000000000..c39a151fbe --- /dev/null +++ b/flyteidl/clients/go/events/config.go @@ -0,0 +1,46 @@ +package events + +import ( + "context" + "github.com/lyft/flytestdlib/config" + "github.com/lyft/flytestdlib/logger" +) + +//go:generate pflags Config + +type EventReportingType = string + +// The reserved config section key for storage. +const configSectionKey = "Event" + +const ( + EventSinkLog EventReportingType = "log" + EventSinkFile EventReportingType = "file" + EventSinkAdmin EventReportingType = "admin" +) + +type Config struct { + Type EventReportingType `json:"type" pflag:",Sets the type of EventSink to configure [log/admin/file]."` + FilePath string `json:"file-path" pflag:",For file types, specify where the file should be located."` + Rate int64 `json:"rate" pflag:",Max rate at which events can be recorded per second."` + Capacity int `json:"capacity" pflag:",The max bucket size for event recording tokens."` +} + +var ( + defaultConfig = Config{ + Rate: int64(500), + Capacity: 1000, + } + + configSection = config.MustRegisterSection(configSectionKey, &defaultConfig) +) + +// Retrieve current global config for storage. +func GetConfig(ctx context.Context) *Config { + if c, ok := configSection.GetConfig().(*Config); ok { + return c + } + + logger.Warnf(ctx, "Failed to retrieve config section [%v].", configSectionKey) + return nil +} diff --git a/flyteidl/clients/go/events/config_flags.go b/flyteidl/clients/go/events/config_flags.go new file mode 100755 index 0000000000..542bb0c170 --- /dev/null +++ b/flyteidl/clients/go/events/config_flags.go @@ -0,0 +1,49 @@ +// Code generated by go generate; DO NOT EDIT. +// This file was generated by robots. + +package events + +import ( + "encoding/json" + "reflect" + + "fmt" + + "github.com/spf13/pflag" +) + +// If v is a pointer, it will get its element value or the zero value of the element type. +// If v is not a pointer, it will return it as is. +func (Config) elemValueOrNil(v interface{}) interface{} { + if t := reflect.TypeOf(v); t.Kind() == reflect.Ptr { + if reflect.ValueOf(v).IsNil() { + return reflect.Zero(t.Elem()).Interface() + } else { + return reflect.ValueOf(v).Interface() + } + } else if v == nil { + return reflect.Zero(t).Interface() + } + + return v +} + +func (Config) mustMarshalJSON(v json.Marshaler) string { + raw, err := v.MarshalJSON() + if err != nil { + panic(err) + } + + return string(raw) +} + +// GetPFlagSet will return strongly types pflags for all fields in Config and its nested types. The format of the +// flags is json-name.json-sub-name... etc. +func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { + cmdFlags := pflag.NewFlagSet("Config", pflag.ExitOnError) + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "type"), defaultConfig.Type, "Sets the type of EventSink to configure [log/admin/file].") + cmdFlags.String(fmt.Sprintf("%v%v", prefix, "file-path"), defaultConfig.FilePath, "For file types, specify where the file should be located.") + cmdFlags.Int64(fmt.Sprintf("%v%v", prefix, "rate"), defaultConfig.Rate, "Max rate at which events can be recorded per second.") + cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "capacity"), defaultConfig.Capacity, "The max bucket size for event recording tokens.") + return cmdFlags +} diff --git a/flyteidl/clients/go/events/config_flags_test.go b/flyteidl/clients/go/events/config_flags_test.go new file mode 100755 index 0000000000..30ea48beea --- /dev/null +++ b/flyteidl/clients/go/events/config_flags_test.go @@ -0,0 +1,190 @@ +// Code generated by go generate; DO NOT EDIT. +// This file was generated by robots. + +package events + +import ( + "encoding/json" + "fmt" + "reflect" + "strings" + "testing" + + "github.com/mitchellh/mapstructure" + "github.com/stretchr/testify/assert" +) + +var dereferencableKindsConfig = map[reflect.Kind]struct{}{ + reflect.Array: {}, reflect.Chan: {}, reflect.Map: {}, reflect.Ptr: {}, reflect.Slice: {}, +} + +// Checks if t is a kind that can be dereferenced to get its underlying type. +func canGetElementConfig(t reflect.Kind) bool { + _, exists := dereferencableKindsConfig[t] + return exists +} + +// This decoder hook tests types for json unmarshaling capability. If implemented, it uses json unmarshal to build the +// object. Otherwise, it'll just pass on the original data. +func jsonUnmarshalerHookConfig(_, to reflect.Type, data interface{}) (interface{}, error) { + unmarshalerType := reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() + if to.Implements(unmarshalerType) || reflect.PtrTo(to).Implements(unmarshalerType) || + (canGetElementConfig(to.Kind()) && to.Elem().Implements(unmarshalerType)) { + + raw, err := json.Marshal(data) + if err != nil { + fmt.Printf("Failed to marshal Data: %v. Error: %v. Skipping jsonUnmarshalHook", data, err) + return data, nil + } + + res := reflect.New(to).Interface() + err = json.Unmarshal(raw, &res) + if err != nil { + fmt.Printf("Failed to umarshal Data: %v. Error: %v. Skipping jsonUnmarshalHook", data, err) + return data, nil + } + + return res, nil + } + + return data, nil +} + +func decode_Config(input, result interface{}) error { + config := &mapstructure.DecoderConfig{ + TagName: "json", + WeaklyTypedInput: true, + Result: result, + DecodeHook: mapstructure.ComposeDecodeHookFunc( + mapstructure.StringToTimeDurationHookFunc(), + mapstructure.StringToSliceHookFunc(","), + jsonUnmarshalerHookConfig, + ), + } + + decoder, err := mapstructure.NewDecoder(config) + if err != nil { + return err + } + + return decoder.Decode(input) +} + +func join_Config(arr interface{}, sep string) string { + listValue := reflect.ValueOf(arr) + strs := make([]string, 0, listValue.Len()) + for i := 0; i < listValue.Len(); i++ { + strs = append(strs, fmt.Sprintf("%v", listValue.Index(i))) + } + + return strings.Join(strs, sep) +} + +func testDecodeJson_Config(t *testing.T, val, result interface{}) { + assert.NoError(t, decode_Config(val, result)) +} + +func testDecodeSlice_Config(t *testing.T, vStringSlice, result interface{}) { + assert.NoError(t, decode_Config(vStringSlice, result)) +} + +func TestConfig_GetPFlagSet(t *testing.T) { + val := Config{} + cmdFlags := val.GetPFlagSet("") + assert.True(t, cmdFlags.HasFlags()) +} + +func TestConfig_SetFlags(t *testing.T) { + actual := Config{} + cmdFlags := actual.GetPFlagSet("") + assert.True(t, cmdFlags.HasFlags()) + + t.Run("Test_type", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("type"); err == nil { + assert.Equal(t, string(defaultConfig.Type), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("type", testValue) + if vString, err := cmdFlags.GetString("type"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.Type) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_file-path", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vString, err := cmdFlags.GetString("file-path"); err == nil { + assert.Equal(t, string(defaultConfig.FilePath), vString) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("file-path", testValue) + if vString, err := cmdFlags.GetString("file-path"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vString), &actual.FilePath) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_rate", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vInt64, err := cmdFlags.GetInt64("rate"); err == nil { + assert.Equal(t, int64(defaultConfig.Rate), vInt64) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("rate", testValue) + if vInt64, err := cmdFlags.GetInt64("rate"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vInt64), &actual.Rate) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) + t.Run("Test_capacity", func(t *testing.T) { + t.Run("DefaultValue", func(t *testing.T) { + // Test that default value is set properly + if vInt, err := cmdFlags.GetInt("capacity"); err == nil { + assert.Equal(t, int(defaultConfig.Capacity), vInt) + } else { + assert.FailNow(t, err.Error()) + } + }) + + t.Run("Override", func(t *testing.T) { + testValue := "1" + + cmdFlags.Set("capacity", testValue) + if vInt, err := cmdFlags.GetInt("capacity"); err == nil { + testDecodeJson_Config(t, fmt.Sprintf("%v", vInt), &actual.Capacity) + + } else { + assert.FailNow(t, err.Error()) + } + }) + }) +} diff --git a/flyteidl/clients/go/events/errors/errors.go b/flyteidl/clients/go/events/errors/errors.go new file mode 100644 index 0000000000..310760ef01 --- /dev/null +++ b/flyteidl/clients/go/events/errors/errors.go @@ -0,0 +1,123 @@ +package errors + +import ( + "context" + "fmt" + + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + "github.com/lyft/flytestdlib/logger" +) + +type ErrorCode string + +const ( + AlreadyExists ErrorCode = "AlreadyExists" + ExecutionNotFound ErrorCode = "ExecutionNotFound" + ResourceExhausted ErrorCode = "ResourceExhausted" + InvalidArgument ErrorCode = "InvalidArgument" + EventSinkError ErrorCode = "EventSinkError" + EventAlreadyInTerminalStateError ErrorCode = "EventAlreadyInTerminalStateError" +) + +type EventError struct { + Code ErrorCode + Cause error + Message string +} + +func (r EventError) Error() string { + return fmt.Sprintf("%s: %s, caused by [%s]", r.Code, r.Message, r.Cause.Error()) +} + +func WrapError(err error) error { + // check if error is gRPC, and convert into our own custom error + statusErr, ok := status.FromError(err) + if !ok { + return err + } + + if len(statusErr.Details()) > 0 { + for _, detail := range statusErr.Details() { + if failureReason, ok := detail.(*admin.EventFailureReason); ok { + switch reason := failureReason.GetReason().(type) { + + case *admin.EventFailureReason_AlreadyInTerminalState: + phase := reason.AlreadyInTerminalState.GetCurrentPhase() + return wrapf(EventAlreadyInTerminalStateError, err, fmt.Sprintf("conflicting events; destination: %v", phase)) + default: + logger.Warnf(context.Background(), "found unexpected type in details of grpc status: %v", reason) + } + } + } + } + + switch statusErr.Code() { + case codes.AlreadyExists: + return wrapf(AlreadyExists, err, "Event already exists") + case codes.NotFound: + return wrapf(ExecutionNotFound, err, "The execution that the event belongs to does not exist") + case codes.ResourceExhausted: + return wrapf(ResourceExhausted, err, "Events are sent too often, exceeded the rate limit") + case codes.InvalidArgument: + return wrapf(InvalidArgument, err, "Invalid fields for event message") + default: + // Generic error for default case + return wrapf(EventSinkError, err, "Error sending event") + } +} + +func wrapf(code ErrorCode, cause error, msg string) error { + return &EventError{ + Code: code, + Cause: cause, + Message: msg, + } +} + +// Checks if the error is of type EventError and the ErrorCode is of type AlreadyExists +func IsAlreadyExists(err error) bool { + e, ok := err.(*EventError) + if ok { + return e.Code == AlreadyExists + } + return false +} + +// Checks if the error is of type EventError and the ErrorCode is of type InvalidArgument +func IsInvalidArguments(err error) bool { + e, ok := err.(*EventError) + if ok { + return e.Code == InvalidArgument + } + return false +} + +// Checks if the error is of type EventError and the ErrorCode is of type ExecutionNotFound +func IsNotFound(err error) bool { + e, ok := err.(*EventError) + if ok { + return e.Code == ExecutionNotFound + } + return false +} + +// Checks if the error is of type EventError and the ErrorCode is of type ResourceExhausted +func IsResourceExhausted(err error) bool { + e, ok := err.(*EventError) + if ok { + return e.Code == ResourceExhausted + } + return false +} + +// Checks if the error is of type EventError and the ErrorCode is of type EventAlreadyInTerminalStateError +func IsEventAlreadyInTerminalStateError(err error) bool { + // TODO: don't rely on the specific type here as it could be wrapped in another object. + e, ok := err.(*EventError) + if ok { + return e.Code == EventAlreadyInTerminalStateError + } + return false +} diff --git a/flyteidl/clients/go/events/errors/errors_test.go b/flyteidl/clients/go/events/errors/errors_test.go new file mode 100644 index 0000000000..52b1d7ed9e --- /dev/null +++ b/flyteidl/clients/go/events/errors/errors_test.go @@ -0,0 +1,66 @@ +package errors + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/assert" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" +) + +type testErrorWithReason struct { + status *status.Status +} + +func(e *testErrorWithReason) GRPCStatus() *status.Status { + return e.status +} + +func (e *testErrorWithReason) Error() string { + return e.status.Message() +} + +func createTestErrorWithReason() error { + alreadyInTerminalPhase := &admin.EventErrorAlreadyInTerminalState{CurrentPhase: "some phase"} + reason := &admin.EventFailureReason{Reason: &admin.EventFailureReason_AlreadyInTerminalState{AlreadyInTerminalState: alreadyInTerminalPhase}} + + s := status.New(codes.FailedPrecondition, "some test") + s, _ = s.WithDetails(reason) + return &testErrorWithReason{s} +} + +func isEventError(err error) bool { + _, ok := err.(*EventError) + return ok +} + +func isUnknownError(err error) bool { + _, isGrpcErr := status.FromError(err) + isEventErr := isEventError(err) + return !isEventErr && !isGrpcErr +} + +// Test that we wrap the gRPC error to our correct one +func TestWrapErrors(t *testing.T) { + tests := []struct { + name string + inputError error + expectedFunc func(error) bool + }{ + {"alreadyExists", status.Error(codes.AlreadyExists, "Already exists"), IsAlreadyExists}, + {"invalidArgs", status.Error(codes.InvalidArgument, "Invalid Arguments"), IsInvalidArguments}, + {"resourceExhausted", status.Error(codes.ResourceExhausted, "Limit Exceeded"), IsResourceExhausted}, + {"uncaughtError", status.Error(codes.Unknown, "Unknown Err"), isEventError}, + {"uncaughtError", fmt.Errorf("Random err"), isUnknownError}, + {"errorWithReason", createTestErrorWithReason(),IsEventAlreadyInTerminalStateError}, + } + + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + wrappedErr := WrapError(test.inputError) + assert.True(t, test.expectedFunc(wrappedErr)) + }) + } +} diff --git a/flyteidl/clients/go/events/eventsink.go b/flyteidl/clients/go/events/eventsink.go new file mode 100644 index 0000000000..6a14dd4def --- /dev/null +++ b/flyteidl/clients/go/events/eventsink.go @@ -0,0 +1,22 @@ +package events + +import ( + "context" + + "github.com/golang/protobuf/proto" +) + +type EventSinkType = string + +// EventSink determines how/where Events are emitted to. The type of EventSink the operator wants should be configurable. +// In Flyte, we also have local implementations so that operators can emit events without dependency on other services. +type EventSink interface { + + // Send the Event to this EventSink. The EventSink will identify the type of message through the + // specified eventType and sink it appropriately based on the type. + Sink(ctx context.Context, message proto.Message) error + + // Callers should close the EventSink when it is no longer being used as there may be long living + // connections. + Close() error +} diff --git a/flyteidl/clients/go/events/eventsink_test.go b/flyteidl/clients/go/events/eventsink_test.go new file mode 100644 index 0000000000..67fa040a27 --- /dev/null +++ b/flyteidl/clients/go/events/eventsink_test.go @@ -0,0 +1,106 @@ +package events + +import ( + "context" + "io/ioutil" + "os" + "path" + "reflect" + "strings" + "testing" + + "github.com/golang/protobuf/ptypes" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + "github.com/stretchr/testify/assert" +) + +func TestFileEvent(t *testing.T) { + now := ptypes.TimestampNow() + dir, err := ioutil.TempDir("", "eventstest") + if err != nil { + assert.FailNow(t, "test dir creation failed") + } + defer func() { assert.NoError(t, os.RemoveAll(dir)) }() + + file := path.Join(dir, "events.test") + sink, err := NewFileSink(file) + if err != nil { + assert.FailNow(t, "failed to create file sync "+err.Error()) + } + + executionID := &core.WorkflowExecutionIdentifier{ + Project: "FlyteTest", + Domain: "FlyteStaging", + Name: "Name", + } + + workflowEvent := &event.WorkflowExecutionEvent{ + ExecutionId: executionID, + Phase: core.WorkflowExecution_SUCCEEDED, + OccurredAt: now, + } + err = sink.Sink(context.Background(), workflowEvent) + assert.NoError(t, err) + + nodeEvent := &event.NodeExecutionEvent{ + Id: &core.NodeExecutionIdentifier{ + NodeId: "node1", + ExecutionId: &core.WorkflowExecutionIdentifier{ + Project: "FlyteTest", + Domain: "FlyteStaging", + Name: "Name", + }, + }, + Phase: core.NodeExecution_RUNNING, + OccurredAt: now, + } + err = sink.Sink(context.Background(), nodeEvent) + assert.NoError(t, err) + + taskEvent := &event.TaskExecutionEvent{ + TaskId: &core.Identifier{ + ResourceType: core.ResourceType_TASK, + Project: executionID.Project, + Domain: executionID.Domain, + Name: executionID.Name, + }, + ParentNodeExecutionId: nodeEvent.Id, + Phase: core.TaskExecution_FAILED, + OccurredAt: now, + } + assert.NoError(t, err) + err = sink.Sink(context.Background(), taskEvent) + assert.NoError(t, err) + + expected := []string{ + "[--WF EVENT--] project:\"FlyteTest\" domain:\"FlyteStaging\" name:\"Name\" , " + + "Phase: SUCCEEDED, OccuredAt: " + ptypes.TimestampString(now), + "[--NODE EVENT--] node_id:\"node1\" execution_id: , Phase: RUNNING, OccuredAt: " + ptypes.TimestampString(now), + "[--TASK EVENT--] resource_type:TASK project:\"FlyteTest\" domain:\"FlyteStaging\" " + + "name:\"Name\" ,node_id:\"node1\" execution_id: , Phase: FAILED, OccuredAt: " + ptypes.TimestampString(now), + } + + actual, err := readLinesFromFile(file) + if err != nil { + assert.FailNow(t, "failed to read file "+err.Error()) + } + + assert.True(t, reflect.DeepEqual(expected, actual), "Expected %v\nActual %v", expected, actual) +} + +func readLinesFromFile(name string) ([]string, error) { + /* #nosec */ + raw, err := ioutil.ReadFile(name) + + if err != nil { + return nil, err + } + + lines := strings.Split(string(raw), "\n") + + // remove the last element because is an empty element from split + return lines[0 : len(lines)-1], nil +} diff --git a/flyteidl/clients/go/events/iface.go b/flyteidl/clients/go/events/iface.go new file mode 100644 index 0000000000..a1fa9e8b55 --- /dev/null +++ b/flyteidl/clients/go/events/iface.go @@ -0,0 +1,22 @@ +package events + +import ( + "context" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" +) + +// Recorder for Workflow events +type WorkflowEventRecorder interface { + RecordWorkflowEvent(ctx context.Context, event *event.WorkflowExecutionEvent) error +} + +// Recorder for Node events +type NodeEventRecorder interface { + RecordNodeEvent(ctx context.Context, event *event.NodeExecutionEvent) error +} + +// Recorder for Task events +type TaskEventRecorder interface { + RecordTaskEvent(ctx context.Context, event *event.TaskExecutionEvent) error +} diff --git a/flyteidl/clients/go/events/local_eventsink.go b/flyteidl/clients/go/events/local_eventsink.go new file mode 100644 index 0000000000..d16131f7fa --- /dev/null +++ b/flyteidl/clients/go/events/local_eventsink.go @@ -0,0 +1,72 @@ +package events + +import ( + "bufio" + "context" + "fmt" + "os" + "sync" + + "github.com/golang/protobuf/proto" + "github.com/golang/protobuf/ptypes" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" +) + +type localSink struct { + mu sync.Mutex + writer writer +} + +func (s *localSink) Sink(ctx context.Context, message proto.Message) error { + s.mu.Lock() + defer s.writer.Flush() + defer s.mu.Unlock() + + var eventOutput string + switch e := message.(type) { + case *event.WorkflowExecutionEvent: + eventOutput = fmt.Sprintf("[--WF EVENT--] %s, Phase: %s, OccuredAt: %s\n", + e.ExecutionId, e.Phase, ptypes.TimestampString(e.OccurredAt)) + case *event.NodeExecutionEvent: + eventOutput = fmt.Sprintf("[--NODE EVENT--] %s, Phase: %s, OccuredAt: %s\n", + e.Id, e.Phase, ptypes.TimestampString(e.OccurredAt)) + case *event.TaskExecutionEvent: + eventOutput = fmt.Sprintf("[--TASK EVENT--] %s,%s, Phase: %s, OccuredAt: %s\n", + e.TaskId, e.ParentNodeExecutionId, e.Phase, ptypes.TimestampString(e.OccurredAt)) + } + + return s.writer.Write(ctx, eventOutput) +} + +func (s *localSink) Close() error { + return nil +} + +// EventSink will sink events to a writer that puts the events somewhere depending on how it was configured +type writer interface { + Write(ctx context.Context, content string) error + Flush() error +} + +func NewLogSink() (EventSink, error) { + return &localSink{writer: &LogWriter{}}, nil +} + +func NewStdoutSink() (EventSink, error) { + return &localSink{writer: &StdWriter{}}, nil +} + +// TODO this will cause multiple handles to the same file if we open multiple syncs. Maybe we should remove this +func NewFileSink(path string) (EventSink, error) { + f, err := os.OpenFile(path, os.O_APPEND|os.O_RDWR|os.O_CREATE, os.FileMode(0666)) + if err != nil { + return nil, err + } + + w := bufio.NewWriter(f) + + if err != nil { + return nil, err + } + return &localSink{writer: &FileWriter{ioWriter: w}}, nil +} diff --git a/flyteidl/clients/go/events/local_writer.go b/flyteidl/clients/go/events/local_writer.go new file mode 100644 index 0000000000..96471221ed --- /dev/null +++ b/flyteidl/clients/go/events/local_writer.go @@ -0,0 +1,47 @@ +package events + +import ( + "bufio" + "context" + "fmt" + + "github.com/lyft/flytestdlib/logger" +) + +// Log Writer writes to the log output +type LogWriter struct{} + +func (w *LogWriter) Write(ctx context.Context, content string) error { + logger.Info(ctx, content) + return nil +} + +func (w *LogWriter) Flush() error { + return nil +} + +// File Writer is just a thin wrapper around io.Writer +type FileWriter struct { + ioWriter *bufio.Writer +} + +func (fw *FileWriter) Write(ctx context.Context, content string) error { + _, err := fw.ioWriter.WriteString(content) + return err +} + +func (fw *FileWriter) Flush() error { + return fw.ioWriter.Flush() +} + +// Std Writer is just the default standard if no sink type is provided +type StdWriter struct{} + +func (s *StdWriter) Write(ctx context.Context, content string) error { + _, err := fmt.Println(content) + return err +} + +func (s *StdWriter) Flush() error { + return nil +} diff --git a/flyteidl/clients/go/events/mock_eventsink.go b/flyteidl/clients/go/events/mock_eventsink.go new file mode 100644 index 0000000000..922419aa22 --- /dev/null +++ b/flyteidl/clients/go/events/mock_eventsink.go @@ -0,0 +1,39 @@ +package events + +import ( + "context" + + "github.com/golang/protobuf/proto" +) + +type MockEventSink struct { + SinkCb func(ctx context.Context, message proto.Message) error + CloseCb func() error +} + +func (t *MockEventSink) Sink(ctx context.Context, message proto.Message) error { + if t.SinkCb != nil { + return t.SinkCb(ctx, message) + } + + return nil +} + +func (t *MockEventSink) Close() error { + if t.CloseCb != nil { + return t.CloseCb() + } + + return nil +} + +func NewMockEventSink() EventSink { + return &MockEventSink{ + SinkCb: func(ctx context.Context, message proto.Message) error { + return nil + }, + CloseCb: func() error { + return nil + }, + } +} diff --git a/flyteidl/clients/go/events/mock_recorder.go b/flyteidl/clients/go/events/mock_recorder.go new file mode 100644 index 0000000000..eb0edca0e4 --- /dev/null +++ b/flyteidl/clients/go/events/mock_recorder.go @@ -0,0 +1,44 @@ +package events + +import ( + "context" + + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" +) + +type MockRecorder struct { + RecordNodeEventCb func(ctx context.Context, event *event.NodeExecutionEvent) error + RecordWorkflowEventCb func(ctx context.Context, event *event.WorkflowExecutionEvent) error +} + +func (m *MockRecorder) RecordNodeEvent(ctx context.Context, event *event.NodeExecutionEvent) error { + if m.RecordNodeEventCb != nil { + return m.RecordNodeEventCb(ctx, event) + } + + return nil +} + +func (m *MockRecorder) RecordWorkflowEvent(ctx context.Context, event *event.WorkflowExecutionEvent) error { + if m.RecordWorkflowEventCb != nil { + return m.RecordWorkflowEventCb(ctx, event) + } + + return nil +} + +func NewMock() NodeEventRecorder { + return &MockRecorder{ + RecordNodeEventCb: func(ctx context.Context, event *event.NodeExecutionEvent) error { + return nil + }, + } +} + +func NewMockWorkflowRecorder() WorkflowEventRecorder { + return &MockRecorder{ + RecordWorkflowEventCb: func(ctx context.Context, event *event.WorkflowExecutionEvent) error { + return nil + }, + } +} diff --git a/flyteidl/clients/go/events/recorder.go b/flyteidl/clients/go/events/recorder.go new file mode 100644 index 0000000000..3e4d46997a --- /dev/null +++ b/flyteidl/clients/go/events/recorder.go @@ -0,0 +1,87 @@ +package events + +import ( + "context" + "time" + + "github.com/golang/protobuf/proto" + "github.com/lyft/flyteidl/clients/go/events/errors" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + "github.com/lyft/flytestdlib/promutils" + "github.com/lyft/flytestdlib/promutils/labeled" +) + +type recordingMetrics struct { + EventRecordingFailure labeled.StopWatch + EventRecordingSuccess labeled.StopWatch + EventRecordingAlreadyExists labeled.Counter + EventRecordingExecutionNotFound labeled.Counter + EventRecordingResourceExhausted labeled.Counter + EventRecordingEventSinkError labeled.Counter + EventRecordingInvalidArgument labeled.Counter +} + +// EventRecorder records workflow, node and task events to the eventSink it is configured with. +type eventRecorder struct { + eventSink EventSink + metrics *recordingMetrics +} + +func constructEventRecorder(eventSink EventSink, scope promutils.Scope) *eventRecorder { + recordingScope := scope.NewSubScope("event_recording") + return &eventRecorder{ + eventSink: eventSink, + metrics: &recordingMetrics{ + EventRecordingFailure: labeled.NewStopWatch("failure_duration", "The time it took the failed event recording to occur", time.Millisecond, recordingScope), + EventRecordingSuccess: labeled.NewStopWatch("success_duration", "The time it took for a successful event recording to occur", time.Millisecond, recordingScope), + EventRecordingAlreadyExists: labeled.NewCounter("already_exists", "The count that a recorded event already exists", recordingScope), + EventRecordingResourceExhausted: labeled.NewCounter("resource_exhausted", "The count that recording events was throttled", recordingScope), + EventRecordingInvalidArgument: labeled.NewCounter("invalid_argument", "The count for invalid argument errors", recordingScope), + EventRecordingEventSinkError: labeled.NewCounter("unexpected_err", "The count of event recording failures for unexpected reasons", recordingScope), + }, + } +} + +func (r *eventRecorder) sinkEvent(ctx context.Context, event proto.Message) error { + startTime := time.Now() + + err := r.eventSink.Sink(ctx, event) + if errors.IsResourceExhausted(err) { + r.metrics.EventRecordingResourceExhausted.Inc(ctx) + } + + if err != nil { + r.metrics.EventRecordingFailure.Observe(ctx, startTime, time.Now()) + return err + } + + r.metrics.EventRecordingSuccess.Observe(ctx, startTime, time.Now()) + return nil +} + +func (r *eventRecorder) RecordWorkflowEvent(ctx context.Context, event *event.WorkflowExecutionEvent) error { + return r.sinkEvent(ctx, event) +} + +func (r *eventRecorder) RecordNodeEvent(ctx context.Context, event *event.NodeExecutionEvent) error { + return r.sinkEvent(ctx, event) +} + +func (r *eventRecorder) RecordTaskEvent(ctx context.Context, event *event.TaskExecutionEvent) error { + return r.sinkEvent(ctx, event) +} + +// Construct a new Workflow Event Recorder +func NewWorkflowEventRecorder(eventSink EventSink, scope promutils.Scope) WorkflowEventRecorder { + return constructEventRecorder(eventSink, scope) +} + +// Construct a new Node Event Recorder +func NewNodeEventRecorder(eventSink EventSink, scope promutils.Scope) NodeEventRecorder { + return constructEventRecorder(eventSink, scope) +} + +// Construct a new Task Event Recorder +func NewTaskEventRecorder(eventSink EventSink, scope promutils.Scope) TaskEventRecorder { + return constructEventRecorder(eventSink, scope) +} diff --git a/flyteidl/gen/__init__.py b/flyteidl/gen/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc new file mode 100644 index 0000000000..59006d5519 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/common.proto + +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/admin/common.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h new file mode 100644 index 0000000000..62e5db64c6 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/common.proto +#ifndef GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED + +#include "flyteidl/admin/common.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc new file mode 100644 index 0000000000..143abc1573 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc @@ -0,0 +1,5102 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +#include "flyteidl/admin/common.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class NamedEntityIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NamedEntityIdentifier_default_instance_; +class SortDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Sort_default_instance_; +class NamedEntityIdentifierListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NamedEntityIdentifierListRequest_default_instance_; +class NamedEntityIdentifierListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NamedEntityIdentifierList_default_instance_; +class ObjectGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ObjectGetRequest_default_instance_; +class ResourceListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ResourceListRequest_default_instance_; +class EmailNotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EmailNotification_default_instance_; +class PagerDutyNotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _PagerDutyNotification_default_instance_; +class SlackNotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SlackNotification_default_instance_; +class NotificationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::admin::EmailNotification* email_; + const ::flyteidl::admin::PagerDutyNotification* pager_duty_; + const ::flyteidl::admin::SlackNotification* slack_; +} _Notification_default_instance_; +class UrlBlobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _UrlBlob_default_instance_; +class Labels_ValuesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Labels_ValuesEntry_DoNotUse_default_instance_; +class LabelsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Labels_default_instance_; +class Annotations_ValuesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Annotations_ValuesEntry_DoNotUse_default_instance_; +class AnnotationsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Annotations_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fcommon_2eproto { +void InitDefaultsNamedEntityIdentifierImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_NamedEntityIdentifier_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityIdentifier::InitAsDefaultInstance(); +} + +void InitDefaultsNamedEntityIdentifier() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNamedEntityIdentifierImpl); +} + +void InitDefaultsSortImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_Sort_default_instance_; + new (ptr) ::flyteidl::admin::Sort(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Sort::InitAsDefaultInstance(); +} + +void InitDefaultsSort() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSortImpl); +} + +void InitDefaultsNamedEntityIdentifierListRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + { + void* ptr = &::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityIdentifierListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityIdentifierListRequest::InitAsDefaultInstance(); +} + +void InitDefaultsNamedEntityIdentifierListRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNamedEntityIdentifierListRequestImpl); +} + +void InitDefaultsNamedEntityIdentifierListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifier(); + { + void* ptr = &::flyteidl::admin::_NamedEntityIdentifierList_default_instance_; + new (ptr) ::flyteidl::admin::NamedEntityIdentifierList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NamedEntityIdentifierList::InitAsDefaultInstance(); +} + +void InitDefaultsNamedEntityIdentifierList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNamedEntityIdentifierListImpl); +} + +void InitDefaultsObjectGetRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + { + void* ptr = &::flyteidl::admin::_ObjectGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::ObjectGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ObjectGetRequest::InitAsDefaultInstance(); +} + +void InitDefaultsObjectGetRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsObjectGetRequestImpl); +} + +void InitDefaultsResourceListRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifier(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + { + void* ptr = &::flyteidl::admin::_ResourceListRequest_default_instance_; + new (ptr) ::flyteidl::admin::ResourceListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ResourceListRequest::InitAsDefaultInstance(); +} + +void InitDefaultsResourceListRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResourceListRequestImpl); +} + +void InitDefaultsEmailNotificationImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_EmailNotification_default_instance_; + new (ptr) ::flyteidl::admin::EmailNotification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EmailNotification::InitAsDefaultInstance(); +} + +void InitDefaultsEmailNotification() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEmailNotificationImpl); +} + +void InitDefaultsPagerDutyNotificationImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_PagerDutyNotification_default_instance_; + new (ptr) ::flyteidl::admin::PagerDutyNotification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::PagerDutyNotification::InitAsDefaultInstance(); +} + +void InitDefaultsPagerDutyNotification() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPagerDutyNotificationImpl); +} + +void InitDefaultsSlackNotificationImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_SlackNotification_default_instance_; + new (ptr) ::flyteidl::admin::SlackNotification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::SlackNotification::InitAsDefaultInstance(); +} + +void InitDefaultsSlackNotification() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSlackNotificationImpl); +} + +void InitDefaultsNotificationImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsEmailNotification(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsPagerDutyNotification(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSlackNotification(); + { + void* ptr = &::flyteidl::admin::_Notification_default_instance_; + new (ptr) ::flyteidl::admin::Notification(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Notification::InitAsDefaultInstance(); +} + +void InitDefaultsNotification() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotificationImpl); +} + +void InitDefaultsUrlBlobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_UrlBlob_default_instance_; + new (ptr) ::flyteidl::admin::UrlBlob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::UrlBlob::InitAsDefaultInstance(); +} + +void InitDefaultsUrlBlob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUrlBlobImpl); +} + +void InitDefaultsLabels_ValuesEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_Labels_ValuesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::Labels_ValuesEntry_DoNotUse(); + } + ::flyteidl::admin::Labels_ValuesEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsLabels_ValuesEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLabels_ValuesEntry_DoNotUseImpl); +} + +void InitDefaultsLabelsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsLabels_ValuesEntry_DoNotUse(); + { + void* ptr = &::flyteidl::admin::_Labels_default_instance_; + new (ptr) ::flyteidl::admin::Labels(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Labels::InitAsDefaultInstance(); +} + +void InitDefaultsLabels() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLabelsImpl); +} + +void InitDefaultsAnnotations_ValuesEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_Annotations_ValuesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse(); + } + ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsAnnotations_ValuesEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAnnotations_ValuesEntry_DoNotUseImpl); +} + +void InitDefaultsAnnotationsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsAnnotations_ValuesEntry_DoNotUse(); + { + void* ptr = &::flyteidl::admin::_Annotations_default_instance_; + new (ptr) ::flyteidl::admin::Annotations(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Annotations::InitAsDefaultInstance(); +} + +void InitDefaultsAnnotations() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAnnotationsImpl); +} + +::google::protobuf::Metadata file_level_metadata[15]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, project_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, domain_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, name_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Sort, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Sort, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Sort, direction_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, project_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, domain_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, token_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, sort_by_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, entities_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ObjectGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ObjectGetRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, token_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, filters_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, sort_by_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailNotification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailNotification, recipients_email_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::PagerDutyNotification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::PagerDutyNotification, recipients_email_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::SlackNotification, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::SlackNotification, recipients_email_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Notification, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Notification, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Notification, phases_), + offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, email_), + offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, pager_duty_), + offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, slack_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Notification, type_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::UrlBlob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::UrlBlob, url_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::UrlBlob, bytes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Labels, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Labels, values_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Annotations, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Annotations, values_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::NamedEntityIdentifier)}, + { 8, -1, sizeof(::flyteidl::admin::Sort)}, + { 15, -1, sizeof(::flyteidl::admin::NamedEntityIdentifierListRequest)}, + { 25, -1, sizeof(::flyteidl::admin::NamedEntityIdentifierList)}, + { 32, -1, sizeof(::flyteidl::admin::ObjectGetRequest)}, + { 38, -1, sizeof(::flyteidl::admin::ResourceListRequest)}, + { 48, -1, sizeof(::flyteidl::admin::EmailNotification)}, + { 54, -1, sizeof(::flyteidl::admin::PagerDutyNotification)}, + { 60, -1, sizeof(::flyteidl::admin::SlackNotification)}, + { 66, -1, sizeof(::flyteidl::admin::Notification)}, + { 76, -1, sizeof(::flyteidl::admin::UrlBlob)}, + { 83, 90, sizeof(::flyteidl::admin::Labels_ValuesEntry_DoNotUse)}, + { 92, -1, sizeof(::flyteidl::admin::Labels)}, + { 98, 105, sizeof(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse)}, + { 107, -1, sizeof(::flyteidl::admin::Annotations)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Sort_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifierList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ObjectGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ResourceListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_EmailNotification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_PagerDutyNotification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_SlackNotification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Notification_default_instance_), + reinterpret_cast(&::flyteidl::admin::_UrlBlob_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Labels_ValuesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Labels_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Annotations_ValuesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Annotations_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/common.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 15); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\033flyteidl/admin/common.proto\022\016flyteidl." + "admin\032\035flyteidl/core/execution.proto\032\036fl" + "yteidl/core/identifier.proto\"F\n\025NamedEnt" + "ityIdentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + "\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"r\n\004Sort\022\013\n\003key\030\001 \001(" + "\t\0221\n\tdirection\030\002 \001(\0162\036.flyteidl.admin.So" + "rt.Direction\"*\n\tDirection\022\016\n\nDESCENDING\020" + "\000\022\r\n\tASCENDING\020\001\"\210\001\n NamedEntityIdentifi" + "erListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + "\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n\007" + "sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"c\n\031N" + "amedEntityIdentifierList\0227\n\010entities\030\001 \003" + "(\0132%.flyteidl.admin.NamedEntityIdentifie" + "r\022\r\n\005token\030\002 \001(\t\"9\n\020ObjectGetRequest\022%\n\002" + "id\030\001 \001(\0132\031.flyteidl.core.Identifier\"\236\001\n\023" + "ResourceListRequest\0221\n\002id\030\001 \001(\0132%.flytei" + "dl.admin.NamedEntityIdentifier\022\r\n\005limit\030" + "\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n" + "\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"-\n\021" + "EmailNotification\022\030\n\020recipients_email\030\001 " + "\003(\t\"1\n\025PagerDutyNotification\022\030\n\020recipien" + "ts_email\030\001 \003(\t\"-\n\021SlackNotification\022\030\n\020r" + "ecipients_email\030\001 \003(\t\"\363\001\n\014Notification\0226" + "\n\006phases\030\001 \003(\0162&.flyteidl.core.WorkflowE" + "xecution.Phase\0222\n\005email\030\002 \001(\0132!.flyteidl" + ".admin.EmailNotificationH\000\022;\n\npager_duty" + "\030\003 \001(\0132%.flyteidl.admin.PagerDutyNotific" + "ationH\000\0222\n\005slack\030\004 \001(\0132!.flyteidl.admin." + "SlackNotificationH\000B\006\n\004type\"%\n\007UrlBlob\022\013" + "\n\003url\030\001 \001(\t\022\r\n\005bytes\030\002 \001(\003\"k\n\006Labels\0222\n\006" + "values\030\001 \003(\0132\".flyteidl.admin.Labels.Val" + "uesEntry\032-\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"u\n\013Annotations\0227\n\006values" + "\030\001 \003(\0132\'.flyteidl.admin.Annotations.Valu" + "esEntry\032-\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t:\0028\001B3Z1github.com/lyft/flytei" + "dl/gen/pb-go/flyteidl/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1475); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/common.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fcommon_2eproto +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* Sort_Direction_descriptor() { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_enum_descriptors[0]; +} +bool Sort_Direction_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Sort_Direction Sort::DESCENDING; +const Sort_Direction Sort::ASCENDING; +const Sort_Direction Sort::Direction_MIN; +const Sort_Direction Sort::Direction_MAX; +const int Sort::Direction_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void NamedEntityIdentifier::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityIdentifier::kProjectFieldNumber; +const int NamedEntityIdentifier::kDomainFieldNumber; +const int NamedEntityIdentifier::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityIdentifier::NamedEntityIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifier(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifier) +} +NamedEntityIdentifier::NamedEntityIdentifier(const NamedEntityIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifier) +} + +void NamedEntityIdentifier::SharedCtor() { + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +NamedEntityIdentifier::~NamedEntityIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifier) + SharedDtor(); +} + +void NamedEntityIdentifier::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NamedEntityIdentifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NamedEntityIdentifier::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NamedEntityIdentifier& NamedEntityIdentifier::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifier(); + return *internal_default_instance(); +} + +NamedEntityIdentifier* NamedEntityIdentifier::New(::google::protobuf::Arena* arena) const { + NamedEntityIdentifier* n = new NamedEntityIdentifier; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NamedEntityIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool NamedEntityIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityIdentifier) + 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 project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifier.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifier.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifier.name")); + } 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.NamedEntityIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifier) + return false; +#undef DO_ +} + +void NamedEntityIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->name(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifier) +} + +::google::protobuf::uint8* NamedEntityIdentifier::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifier.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->name(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityIdentifier) + return target; +} + +size_t NamedEntityIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifier) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 3; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NamedEntityIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityIdentifier* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifier) + MergeFrom(*source); + } +} + +void NamedEntityIdentifier::MergeFrom(const NamedEntityIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void NamedEntityIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityIdentifier::CopyFrom(const NamedEntityIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityIdentifier::IsInitialized() const { + return true; +} + +void NamedEntityIdentifier::Swap(NamedEntityIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityIdentifier::InternalSwap(NamedEntityIdentifier* other) { + using std::swap; + project_.Swap(&other->project_); + domain_.Swap(&other->domain_); + name_.Swap(&other->name_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NamedEntityIdentifier::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Sort::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Sort::kKeyFieldNumber; +const int Sort::kDirectionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Sort::Sort() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Sort) +} +Sort::Sort(const Sort& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + direction_ = from.direction_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Sort) +} + +void Sort::SharedCtor() { + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + direction_ = 0; + _cached_size_ = 0; +} + +Sort::~Sort() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Sort) + SharedDtor(); +} + +void Sort::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Sort::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Sort::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Sort& Sort::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + return *internal_default_instance(); +} + +Sort* Sort::New(::google::protobuf::Arena* arena) const { + Sort* n = new Sort; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Sort::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Sort) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + direction_ = 0; + _internal_metadata_.Clear(); +} + +bool Sort::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Sort) + 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 key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Sort.key")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort.Direction direction = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_direction(static_cast< ::flyteidl::admin::Sort_Direction >(value)); + } 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.Sort) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Sort) + return false; +#undef DO_ +} + +void Sort::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Sort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Sort.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // .flyteidl.admin.Sort.Direction direction = 2; + if (this->direction() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->direction(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Sort) +} + +::google::protobuf::uint8* Sort::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Sort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Sort.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // .flyteidl.admin.Sort.Direction direction = 2; + if (this->direction() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->direction(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Sort) + return target; +} + +size_t Sort::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Sort) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // .flyteidl.admin.Sort.Direction direction = 2; + if (this->direction() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Sort::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Sort) + GOOGLE_DCHECK_NE(&from, this); + const Sort* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Sort) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Sort) + MergeFrom(*source); + } +} + +void Sort::MergeFrom(const Sort& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Sort) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.direction() != 0) { + set_direction(from.direction()); + } +} + +void Sort::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Sort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Sort::CopyFrom(const Sort& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Sort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Sort::IsInitialized() const { + return true; +} + +void Sort::Swap(Sort* other) { + if (other == this) return; + InternalSwap(other); +} +void Sort::InternalSwap(Sort* other) { + using std::swap; + key_.Swap(&other->key_); + swap(direction_, other->direction_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Sort::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityIdentifierListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityIdentifierListRequest::kProjectFieldNumber; +const int NamedEntityIdentifierListRequest::kDomainFieldNumber; +const int NamedEntityIdentifierListRequest::kLimitFieldNumber; +const int NamedEntityIdentifierListRequest::kTokenFieldNumber; +const int NamedEntityIdentifierListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityIdentifierListRequest::NamedEntityIdentifierListRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierListRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifierListRequest) +} +NamedEntityIdentifierListRequest::NamedEntityIdentifierListRequest(const NamedEntityIdentifierListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.token().size() > 0) { + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = NULL; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifierListRequest) +} + +void NamedEntityIdentifierListRequest::SharedCtor() { + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&sort_by_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&sort_by_)) + sizeof(limit_)); + _cached_size_ = 0; +} + +NamedEntityIdentifierListRequest::~NamedEntityIdentifierListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifierListRequest) + SharedDtor(); +} + +void NamedEntityIdentifierListRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete sort_by_; +} + +void NamedEntityIdentifierListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NamedEntityIdentifierListRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NamedEntityIdentifierListRequest& NamedEntityIdentifierListRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierListRequest(); + return *internal_default_instance(); +} + +NamedEntityIdentifierListRequest* NamedEntityIdentifierListRequest::New(::google::protobuf::Arena* arena) const { + NamedEntityIdentifierListRequest* n = new NamedEntityIdentifierListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NamedEntityIdentifierListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +bool NamedEntityIdentifierListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityIdentifierListRequest) + 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 project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierListRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NamedEntityIdentifierListRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 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.NamedEntityIdentifierListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } 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.NamedEntityIdentifierListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifierListRequest) + return false; +#undef DO_ +} + +void NamedEntityIdentifierListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), 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.NamedEntityIdentifierListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->token(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->sort_by_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifierListRequest) +} + +::google::protobuf::uint8* NamedEntityIdentifierListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NamedEntityIdentifierListRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), 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.NamedEntityIdentifierListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->token(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->sort_by_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityIdentifierListRequest) + return target; +} + +size_t NamedEntityIdentifierListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifierListRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string token = 4; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sort_by_); + } + + // uint32 limit = 3; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NamedEntityIdentifierListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityIdentifierListRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifierListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifierListRequest) + MergeFrom(*source); + } +} + +void NamedEntityIdentifierListRequest::MergeFrom(const NamedEntityIdentifierListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NamedEntityIdentifierListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityIdentifierListRequest::CopyFrom(const NamedEntityIdentifierListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityIdentifierListRequest::IsInitialized() const { + return true; +} + +void NamedEntityIdentifierListRequest::Swap(NamedEntityIdentifierListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityIdentifierListRequest::InternalSwap(NamedEntityIdentifierListRequest* other) { + using std::swap; + project_.Swap(&other->project_); + domain_.Swap(&other->domain_); + token_.Swap(&other->token_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NamedEntityIdentifierListRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NamedEntityIdentifierList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NamedEntityIdentifierList::kEntitiesFieldNumber; +const int NamedEntityIdentifierList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NamedEntityIdentifierList::NamedEntityIdentifierList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifierList) +} +NamedEntityIdentifierList::NamedEntityIdentifierList(const NamedEntityIdentifierList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + entities_(from.entities_), + _cached_size_(0) { + _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.NamedEntityIdentifierList) +} + +void NamedEntityIdentifierList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +NamedEntityIdentifierList::~NamedEntityIdentifierList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifierList) + SharedDtor(); +} + +void NamedEntityIdentifierList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NamedEntityIdentifierList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NamedEntityIdentifierList::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NamedEntityIdentifierList& NamedEntityIdentifierList::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierList(); + return *internal_default_instance(); +} + +NamedEntityIdentifierList* NamedEntityIdentifierList::New(::google::protobuf::Arena* arena) const { + NamedEntityIdentifierList* n = new NamedEntityIdentifierList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NamedEntityIdentifierList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + entities_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool NamedEntityIdentifierList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NamedEntityIdentifierList) + 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.admin.NamedEntityIdentifier entities = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_entities())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.NamedEntityIdentifierList.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.NamedEntityIdentifierList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifierList) + return false; +#undef DO_ +} + +void NamedEntityIdentifierList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + for (unsigned int i = 0, + n = static_cast(this->entities_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->entities(static_cast(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.NamedEntityIdentifierList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifierList) +} + +::google::protobuf::uint8* NamedEntityIdentifierList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + for (unsigned int i = 0, + n = static_cast(this->entities_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->entities(static_cast(i)), deterministic, 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.NamedEntityIdentifierList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NamedEntityIdentifierList) + return target; +} + +size_t NamedEntityIdentifierList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifierList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + { + unsigned int count = static_cast(this->entities_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->entities(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NamedEntityIdentifierList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifierList) + GOOGLE_DCHECK_NE(&from, this); + const NamedEntityIdentifierList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifierList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifierList) + MergeFrom(*source); + } +} + +void NamedEntityIdentifierList::MergeFrom(const NamedEntityIdentifierList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifierList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + entities_.MergeFrom(from.entities_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void NamedEntityIdentifierList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifierList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NamedEntityIdentifierList::CopyFrom(const NamedEntityIdentifierList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifierList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NamedEntityIdentifierList::IsInitialized() const { + return true; +} + +void NamedEntityIdentifierList::Swap(NamedEntityIdentifierList* other) { + if (other == this) return; + InternalSwap(other); +} +void NamedEntityIdentifierList::InternalSwap(NamedEntityIdentifierList* other) { + using std::swap; + entities_.InternalSwap(&other->entities_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NamedEntityIdentifierList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ObjectGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ObjectGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +void ObjectGetRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ObjectGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ObjectGetRequest::ObjectGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsObjectGetRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ObjectGetRequest) +} +ObjectGetRequest::ObjectGetRequest(const ObjectGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ObjectGetRequest) +} + +void ObjectGetRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +ObjectGetRequest::~ObjectGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ObjectGetRequest) + SharedDtor(); +} + +void ObjectGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ObjectGetRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ObjectGetRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ObjectGetRequest& ObjectGetRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsObjectGetRequest(); + return *internal_default_instance(); +} + +ObjectGetRequest* ObjectGetRequest::New(::google::protobuf::Arena* arena) const { + ObjectGetRequest* n = new ObjectGetRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ObjectGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool ObjectGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ObjectGetRequest) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.ObjectGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ObjectGetRequest) + return false; +#undef DO_ +} + +void ObjectGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ObjectGetRequest) +} + +::google::protobuf::uint8* ObjectGetRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ObjectGetRequest) + return target; +} + +size_t ObjectGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ObjectGetRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ObjectGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ObjectGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const ObjectGetRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ObjectGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ObjectGetRequest) + MergeFrom(*source); + } +} + +void ObjectGetRequest::MergeFrom(const ObjectGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ObjectGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } +} + +void ObjectGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ObjectGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ObjectGetRequest::CopyFrom(const ObjectGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ObjectGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ObjectGetRequest::IsInitialized() const { + return true; +} + +void ObjectGetRequest::Swap(ObjectGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ObjectGetRequest::InternalSwap(ObjectGetRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ObjectGetRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ResourceListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ResourceListRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( + ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); + ::flyteidl::admin::_ResourceListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ResourceListRequest::kIdFieldNumber; +const int ResourceListRequest::kLimitFieldNumber; +const int ResourceListRequest::kTokenFieldNumber; +const int ResourceListRequest::kFiltersFieldNumber; +const int ResourceListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ResourceListRequest::ResourceListRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsResourceListRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ResourceListRequest) +} +ResourceListRequest::ResourceListRequest(const ResourceListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _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_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_id()) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = NULL; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ResourceListRequest) +} + +void ResourceListRequest::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&id_)) + sizeof(limit_)); + _cached_size_ = 0; +} + +ResourceListRequest::~ResourceListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ResourceListRequest) + SharedDtor(); +} + +void ResourceListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void ResourceListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ResourceListRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ResourceListRequest& ResourceListRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsResourceListRequest(); + return *internal_default_instance(); +} + +ResourceListRequest* ResourceListRequest::New(::google::protobuf::Arena* arena) const { + ResourceListRequest* n = new ResourceListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ResourceListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ResourceListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +bool ResourceListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ResourceListRequest) + 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)) { + // .flyteidl.admin.NamedEntityIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 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.ResourceListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ResourceListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } 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.ResourceListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ResourceListRequest) + return false; +#undef DO_ +} + +void ResourceListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ResourceListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + 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.ResourceListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ResourceListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->sort_by_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ResourceListRequest) +} + +::google::protobuf::uint8* ResourceListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ResourceListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + 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.ResourceListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ResourceListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->sort_by_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ResourceListRequest) + return target; +} + +size_t ResourceListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ResourceListRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ResourceListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ResourceListRequest) + GOOGLE_DCHECK_NE(&from, this); + const ResourceListRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ResourceListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ResourceListRequest) + MergeFrom(*source); + } +} + +void ResourceListRequest::MergeFrom(const ResourceListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ResourceListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void ResourceListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ResourceListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResourceListRequest::CopyFrom(const ResourceListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ResourceListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResourceListRequest::IsInitialized() const { + return true; +} + +void ResourceListRequest::Swap(ResourceListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ResourceListRequest::InternalSwap(ResourceListRequest* other) { + using std::swap; + token_.Swap(&other->token_); + filters_.Swap(&other->filters_); + swap(id_, other->id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ResourceListRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EmailNotification::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EmailNotification::kRecipientsEmailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EmailNotification::EmailNotification() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsEmailNotification(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EmailNotification) +} +EmailNotification::EmailNotification(const EmailNotification& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + recipients_email_(from.recipients_email_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EmailNotification) +} + +void EmailNotification::SharedCtor() { + _cached_size_ = 0; +} + +EmailNotification::~EmailNotification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EmailNotification) + SharedDtor(); +} + +void EmailNotification::SharedDtor() { +} + +void EmailNotification::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EmailNotification::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EmailNotification& EmailNotification::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsEmailNotification(); + return *internal_default_instance(); +} + +EmailNotification* EmailNotification::New(::google::protobuf::Arena* arena) const { + EmailNotification* n = new EmailNotification; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void EmailNotification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EmailNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + _internal_metadata_.Clear(); +} + +bool EmailNotification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EmailNotification) + 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 recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailNotification.recipients_email")); + } 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.EmailNotification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EmailNotification) + return false; +#undef DO_ +} + +void EmailNotification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EmailNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailNotification.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EmailNotification) +} + +::google::protobuf::uint8* EmailNotification::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EmailNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailNotification.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EmailNotification) + return target; +} + +size_t EmailNotification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EmailNotification) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EmailNotification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EmailNotification) + GOOGLE_DCHECK_NE(&from, this); + const EmailNotification* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EmailNotification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EmailNotification) + MergeFrom(*source); + } +} + +void EmailNotification::MergeFrom(const EmailNotification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EmailNotification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); +} + +void EmailNotification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EmailNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EmailNotification::CopyFrom(const EmailNotification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EmailNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EmailNotification::IsInitialized() const { + return true; +} + +void EmailNotification::Swap(EmailNotification* other) { + if (other == this) return; + InternalSwap(other); +} +void EmailNotification::InternalSwap(EmailNotification* other) { + using std::swap; + recipients_email_.InternalSwap(&other->recipients_email_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata EmailNotification::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void PagerDutyNotification::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int PagerDutyNotification::kRecipientsEmailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +PagerDutyNotification::PagerDutyNotification() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsPagerDutyNotification(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.PagerDutyNotification) +} +PagerDutyNotification::PagerDutyNotification(const PagerDutyNotification& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + recipients_email_(from.recipients_email_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PagerDutyNotification) +} + +void PagerDutyNotification::SharedCtor() { + _cached_size_ = 0; +} + +PagerDutyNotification::~PagerDutyNotification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.PagerDutyNotification) + SharedDtor(); +} + +void PagerDutyNotification::SharedDtor() { +} + +void PagerDutyNotification::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PagerDutyNotification::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const PagerDutyNotification& PagerDutyNotification::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsPagerDutyNotification(); + return *internal_default_instance(); +} + +PagerDutyNotification* PagerDutyNotification::New(::google::protobuf::Arena* arena) const { + PagerDutyNotification* n = new PagerDutyNotification; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void PagerDutyNotification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + _internal_metadata_.Clear(); +} + +bool PagerDutyNotification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.PagerDutyNotification) + 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 recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.PagerDutyNotification.recipients_email")); + } 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.PagerDutyNotification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.PagerDutyNotification) + return false; +#undef DO_ +} + +void PagerDutyNotification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PagerDutyNotification.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.PagerDutyNotification) +} + +::google::protobuf::uint8* PagerDutyNotification::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.PagerDutyNotification.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.PagerDutyNotification) + return target; +} + +size_t PagerDutyNotification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PagerDutyNotification) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PagerDutyNotification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PagerDutyNotification) + GOOGLE_DCHECK_NE(&from, this); + const PagerDutyNotification* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PagerDutyNotification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PagerDutyNotification) + MergeFrom(*source); + } +} + +void PagerDutyNotification::MergeFrom(const PagerDutyNotification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PagerDutyNotification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); +} + +void PagerDutyNotification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PagerDutyNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PagerDutyNotification::CopyFrom(const PagerDutyNotification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PagerDutyNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PagerDutyNotification::IsInitialized() const { + return true; +} + +void PagerDutyNotification::Swap(PagerDutyNotification* other) { + if (other == this) return; + InternalSwap(other); +} +void PagerDutyNotification::InternalSwap(PagerDutyNotification* other) { + using std::swap; + recipients_email_.InternalSwap(&other->recipients_email_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata PagerDutyNotification::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SlackNotification::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SlackNotification::kRecipientsEmailFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SlackNotification::SlackNotification() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSlackNotification(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.SlackNotification) +} +SlackNotification::SlackNotification(const SlackNotification& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + recipients_email_(from.recipients_email_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SlackNotification) +} + +void SlackNotification::SharedCtor() { + _cached_size_ = 0; +} + +SlackNotification::~SlackNotification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.SlackNotification) + SharedDtor(); +} + +void SlackNotification::SharedDtor() { +} + +void SlackNotification::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SlackNotification::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SlackNotification& SlackNotification::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSlackNotification(); + return *internal_default_instance(); +} + +SlackNotification* SlackNotification::New(::google::protobuf::Arena* arena) const { + SlackNotification* n = new SlackNotification; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SlackNotification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SlackNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + _internal_metadata_.Clear(); +} + +bool SlackNotification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.SlackNotification) + 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 recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.SlackNotification.recipients_email")); + } 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.SlackNotification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.SlackNotification) + return false; +#undef DO_ +} + +void SlackNotification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.SlackNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SlackNotification.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.SlackNotification) +} + +::google::protobuf::uint8* SlackNotification::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SlackNotification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.SlackNotification.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.SlackNotification) + return target; +} + +size_t SlackNotification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SlackNotification) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SlackNotification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SlackNotification) + GOOGLE_DCHECK_NE(&from, this); + const SlackNotification* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SlackNotification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SlackNotification) + MergeFrom(*source); + } +} + +void SlackNotification::MergeFrom(const SlackNotification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SlackNotification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); +} + +void SlackNotification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SlackNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SlackNotification::CopyFrom(const SlackNotification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SlackNotification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SlackNotification::IsInitialized() const { + return true; +} + +void SlackNotification::Swap(SlackNotification* other) { + if (other == this) return; + InternalSwap(other); +} +void SlackNotification::InternalSwap(SlackNotification* other) { + using std::swap; + recipients_email_.InternalSwap(&other->recipients_email_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SlackNotification::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Notification::InitAsDefaultInstance() { + ::flyteidl::admin::_Notification_default_instance_.email_ = const_cast< ::flyteidl::admin::EmailNotification*>( + ::flyteidl::admin::EmailNotification::internal_default_instance()); + ::flyteidl::admin::_Notification_default_instance_.pager_duty_ = const_cast< ::flyteidl::admin::PagerDutyNotification*>( + ::flyteidl::admin::PagerDutyNotification::internal_default_instance()); + ::flyteidl::admin::_Notification_default_instance_.slack_ = const_cast< ::flyteidl::admin::SlackNotification*>( + ::flyteidl::admin::SlackNotification::internal_default_instance()); +} +void Notification::set_allocated_email(::flyteidl::admin::EmailNotification* email) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (email) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + email = ::google::protobuf::internal::GetOwnedMessage( + message_arena, email, submessage_arena); + } + set_has_email(); + type_.email_ = email; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.email) +} +void Notification::set_allocated_pager_duty(::flyteidl::admin::PagerDutyNotification* pager_duty) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (pager_duty) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + pager_duty = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pager_duty, submessage_arena); + } + set_has_pager_duty(); + type_.pager_duty_ = pager_duty; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.pager_duty) +} +void Notification::set_allocated_slack(::flyteidl::admin::SlackNotification* slack) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (slack) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + slack = ::google::protobuf::internal::GetOwnedMessage( + message_arena, slack, submessage_arena); + } + set_has_slack(); + type_.slack_ = slack; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.slack) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Notification::kPhasesFieldNumber; +const int Notification::kEmailFieldNumber; +const int Notification::kPagerDutyFieldNumber; +const int Notification::kSlackFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Notification::Notification() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNotification(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Notification) +} +Notification::Notification(const Notification& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + phases_(from.phases_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_type(); + switch (from.type_case()) { + case kEmail: { + mutable_email()->::flyteidl::admin::EmailNotification::MergeFrom(from.email()); + break; + } + case kPagerDuty: { + mutable_pager_duty()->::flyteidl::admin::PagerDutyNotification::MergeFrom(from.pager_duty()); + break; + } + case kSlack: { + mutable_slack()->::flyteidl::admin::SlackNotification::MergeFrom(from.slack()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Notification) +} + +void Notification::SharedCtor() { + clear_has_type(); + _cached_size_ = 0; +} + +Notification::~Notification() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Notification) + SharedDtor(); +} + +void Notification::SharedDtor() { + if (has_type()) { + clear_type(); + } +} + +void Notification::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Notification::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Notification& Notification::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNotification(); + return *internal_default_instance(); +} + +Notification* Notification::New(::google::protobuf::Arena* arena) const { + Notification* n = new Notification; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Notification::clear_type() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Notification) + switch (type_case()) { + case kEmail: { + delete type_.email_; + break; + } + case kPagerDuty: { + delete type_.pager_duty_; + break; + } + case kSlack: { + delete type_.slack_; + break; + } + case TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = TYPE_NOT_SET; +} + + +void Notification::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Notification) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + phases_.Clear(); + clear_type(); + _internal_metadata_.Clear(); +} + +bool Notification::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Notification) + 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.WorkflowExecution.Phase phases = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + ::google::protobuf::uint32 length; + DO_(input->ReadVarint32(&length)); + ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast(length)); + while (input->BytesUntilLimit() > 0) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + add_phases(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } + input->PopLimit(limit); + } else if ( + static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + add_phases(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.EmailNotification email = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_email())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pager_duty())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.SlackNotification slack = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_slack())); + } 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.Notification) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Notification) + return false; +#undef DO_ +} + +void Notification::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Notification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + if (this->phases_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag( + 1, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + output); + output->WriteVarint32( + static_cast< ::google::protobuf::uint32>(_phases_cached_byte_size_)); + } + for (int i = 0, n = this->phases_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag( + this->phases(i), output); + } + + // .flyteidl.admin.EmailNotification email = 2; + if (has_email()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *type_.email_, output); + } + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + if (has_pager_duty()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *type_.pager_duty_, output); + } + + // .flyteidl.admin.SlackNotification slack = 4; + if (has_slack()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *type_.slack_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Notification) +} + +::google::protobuf::uint8* Notification::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Notification) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + if (this->phases_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 1, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::uint32>( + _phases_cached_byte_size_), target); + target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray( + this->phases_, target); + } + + // .flyteidl.admin.EmailNotification email = 2; + if (has_email()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *type_.email_, deterministic, target); + } + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + if (has_pager_duty()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *type_.pager_duty_, deterministic, target); + } + + // .flyteidl.admin.SlackNotification slack = 4; + if (has_slack()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *type_.slack_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Notification) + return target; +} + +size_t Notification::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Notification) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + { + size_t data_size = 0; + unsigned int count = static_cast(this->phases_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->phases(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast< ::google::protobuf::int32>(data_size)); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _phases_cached_byte_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + total_size += data_size; + } + + switch (type_case()) { + // .flyteidl.admin.EmailNotification email = 2; + case kEmail: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.email_); + break; + } + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + case kPagerDuty: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.pager_duty_); + break; + } + // .flyteidl.admin.SlackNotification slack = 4; + case kSlack: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.slack_); + break; + } + case TYPE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Notification::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Notification) + GOOGLE_DCHECK_NE(&from, this); + const Notification* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Notification) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Notification) + MergeFrom(*source); + } +} + +void Notification::MergeFrom(const Notification& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Notification) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + phases_.MergeFrom(from.phases_); + switch (from.type_case()) { + case kEmail: { + mutable_email()->::flyteidl::admin::EmailNotification::MergeFrom(from.email()); + break; + } + case kPagerDuty: { + mutable_pager_duty()->::flyteidl::admin::PagerDutyNotification::MergeFrom(from.pager_duty()); + break; + } + case kSlack: { + mutable_slack()->::flyteidl::admin::SlackNotification::MergeFrom(from.slack()); + break; + } + case TYPE_NOT_SET: { + break; + } + } +} + +void Notification::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Notification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Notification::CopyFrom(const Notification& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Notification) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Notification::IsInitialized() const { + return true; +} + +void Notification::Swap(Notification* other) { + if (other == this) return; + InternalSwap(other); +} +void Notification::InternalSwap(Notification* other) { + using std::swap; + phases_.InternalSwap(&other->phases_); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Notification::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void UrlBlob::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int UrlBlob::kUrlFieldNumber; +const int UrlBlob::kBytesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +UrlBlob::UrlBlob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsUrlBlob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.UrlBlob) +} +UrlBlob::UrlBlob(const UrlBlob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.url().size() > 0) { + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + bytes_ = from.bytes_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.UrlBlob) +} + +void UrlBlob::SharedCtor() { + url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bytes_ = GOOGLE_LONGLONG(0); + _cached_size_ = 0; +} + +UrlBlob::~UrlBlob() { + // @@protoc_insertion_point(destructor:flyteidl.admin.UrlBlob) + SharedDtor(); +} + +void UrlBlob::SharedDtor() { + url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void UrlBlob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UrlBlob::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const UrlBlob& UrlBlob::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsUrlBlob(); + return *internal_default_instance(); +} + +UrlBlob* UrlBlob::New(::google::protobuf::Arena* arena) const { + UrlBlob* n = new UrlBlob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void UrlBlob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.UrlBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + bytes_ = GOOGLE_LONGLONG(0); + _internal_metadata_.Clear(); +} + +bool UrlBlob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.UrlBlob) + 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 url = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_url())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.UrlBlob.url")); + } else { + goto handle_unusual; + } + break; + } + + // int64 bytes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &bytes_))); + } 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.UrlBlob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.UrlBlob) + return false; +#undef DO_ +} + +void UrlBlob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.UrlBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string url = 1; + if (this->url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.UrlBlob.url"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->url(), output); + } + + // int64 bytes = 2; + if (this->bytes() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->bytes(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.UrlBlob) +} + +::google::protobuf::uint8* UrlBlob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.UrlBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string url = 1; + if (this->url().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->url().data(), static_cast(this->url().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.UrlBlob.url"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->url(), target); + } + + // int64 bytes = 2; + if (this->bytes() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->bytes(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.UrlBlob) + return target; +} + +size_t UrlBlob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.UrlBlob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string url = 1; + if (this->url().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->url()); + } + + // int64 bytes = 2; + if (this->bytes() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->bytes()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UrlBlob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.UrlBlob) + GOOGLE_DCHECK_NE(&from, this); + const UrlBlob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.UrlBlob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.UrlBlob) + MergeFrom(*source); + } +} + +void UrlBlob::MergeFrom(const UrlBlob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.UrlBlob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.url().size() > 0) { + + url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); + } + if (from.bytes() != 0) { + set_bytes(from.bytes()); + } +} + +void UrlBlob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.UrlBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UrlBlob::CopyFrom(const UrlBlob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.UrlBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UrlBlob::IsInitialized() const { + return true; +} + +void UrlBlob::Swap(UrlBlob* other) { + if (other == this) return; + InternalSwap(other); +} +void UrlBlob::InternalSwap(UrlBlob* other) { + using std::swap; + url_.Swap(&other->url_); + swap(bytes_, other->bytes_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata UrlBlob::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +Labels_ValuesEntry_DoNotUse::Labels_ValuesEntry_DoNotUse() {} +Labels_ValuesEntry_DoNotUse::Labels_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void Labels_ValuesEntry_DoNotUse::MergeFrom(const Labels_ValuesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata Labels_ValuesEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[11]; +} +void Labels_ValuesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void Labels::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Labels::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Labels::Labels() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsLabels(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Labels) +} +Labels::Labels(const Labels& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + values_.MergeFrom(from.values_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Labels) +} + +void Labels::SharedCtor() { + _cached_size_ = 0; +} + +Labels::~Labels() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Labels) + SharedDtor(); +} + +void Labels::SharedDtor() { +} + +void Labels::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Labels::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Labels& Labels::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsLabels(); + return *internal_default_instance(); +} + +Labels* Labels::New(::google::protobuf::Arena* arena) const { + Labels* n = new Labels; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Labels::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Labels) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +bool Labels::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Labels) + 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)) { + // map values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + Labels_ValuesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Labels_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&values_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Labels.ValuesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Labels.ValuesEntry.value")); + } 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.Labels) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Labels) + return false; +#undef DO_ +} + +void Labels::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Labels) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->values().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Labels) +} + +::google::protobuf::uint8* Labels::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Labels) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Labels.ValuesEntry.value"); + } + }; + + if (deterministic && + this->values().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Labels) + return target; +} + +size_t Labels::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Labels) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Labels::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Labels) + GOOGLE_DCHECK_NE(&from, this); + const Labels* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Labels) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Labels) + MergeFrom(*source); + } +} + +void Labels::MergeFrom(const Labels& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Labels) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void Labels::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Labels) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Labels::CopyFrom(const Labels& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Labels) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Labels::IsInitialized() const { + return true; +} + +void Labels::Swap(Labels* other) { + if (other == this) return; + InternalSwap(other); +} +void Labels::InternalSwap(Labels* other) { + using std::swap; + values_.Swap(&other->values_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Labels::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +Annotations_ValuesEntry_DoNotUse::Annotations_ValuesEntry_DoNotUse() {} +Annotations_ValuesEntry_DoNotUse::Annotations_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void Annotations_ValuesEntry_DoNotUse::MergeFrom(const Annotations_ValuesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata Annotations_ValuesEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[13]; +} +void Annotations_ValuesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void Annotations::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Annotations::kValuesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Annotations::Annotations() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsAnnotations(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Annotations) +} +Annotations::Annotations(const Annotations& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + values_.MergeFrom(from.values_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Annotations) +} + +void Annotations::SharedCtor() { + _cached_size_ = 0; +} + +Annotations::~Annotations() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Annotations) + SharedDtor(); +} + +void Annotations::SharedDtor() { +} + +void Annotations::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Annotations::descriptor() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Annotations& Annotations::default_instance() { + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsAnnotations(); + return *internal_default_instance(); +} + +Annotations* Annotations::New(::google::protobuf::Arena* arena) const { + Annotations* n = new Annotations; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Annotations::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Annotations) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + values_.Clear(); + _internal_metadata_.Clear(); +} + +bool Annotations::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Annotations) + 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)) { + // map values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + Annotations_ValuesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + Annotations_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&values_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Annotations.ValuesEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Annotations.ValuesEntry.value")); + } 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.Annotations) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Annotations) + return false; +#undef DO_ +} + +void Annotations::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Annotations) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->values().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Annotations) +} + +::google::protobuf::uint8* Annotations::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Annotations) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map values = 1; + if (!this->values().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Annotations.ValuesEntry.value"); + } + }; + + if (deterministic && + this->values().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->values().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(values_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Annotations) + return target; +} + +size_t Annotations::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Annotations) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map values = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->values_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->values().begin(); + it != this->values().end(); ++it) { + entry.reset(values_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Annotations::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Annotations) + GOOGLE_DCHECK_NE(&from, this); + const Annotations* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Annotations) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Annotations) + MergeFrom(*source); + } +} + +void Annotations::MergeFrom(const Annotations& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Annotations) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + values_.MergeFrom(from.values_); +} + +void Annotations::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Annotations) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Annotations::CopyFrom(const Annotations& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Annotations) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Annotations::IsInitialized() const { + return true; +} + +void Annotations::Swap(Annotations* other) { + if (other == this) return; + InternalSwap(other); +} +void Annotations::InternalSwap(Annotations* other) { + using std::swap; + values_.Swap(&other->values_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Annotations::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fcommon_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h new file mode 100644 index 0000000000..b886ae0355 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h @@ -0,0 +1,3224 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fcommon_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[15]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsNamedEntityIdentifierImpl(); +void InitDefaultsNamedEntityIdentifier(); +void InitDefaultsSortImpl(); +void InitDefaultsSort(); +void InitDefaultsNamedEntityIdentifierListRequestImpl(); +void InitDefaultsNamedEntityIdentifierListRequest(); +void InitDefaultsNamedEntityIdentifierListImpl(); +void InitDefaultsNamedEntityIdentifierList(); +void InitDefaultsObjectGetRequestImpl(); +void InitDefaultsObjectGetRequest(); +void InitDefaultsResourceListRequestImpl(); +void InitDefaultsResourceListRequest(); +void InitDefaultsEmailNotificationImpl(); +void InitDefaultsEmailNotification(); +void InitDefaultsPagerDutyNotificationImpl(); +void InitDefaultsPagerDutyNotification(); +void InitDefaultsSlackNotificationImpl(); +void InitDefaultsSlackNotification(); +void InitDefaultsNotificationImpl(); +void InitDefaultsNotification(); +void InitDefaultsUrlBlobImpl(); +void InitDefaultsUrlBlob(); +void InitDefaultsLabels_ValuesEntry_DoNotUseImpl(); +void InitDefaultsLabels_ValuesEntry_DoNotUse(); +void InitDefaultsLabelsImpl(); +void InitDefaultsLabels(); +void InitDefaultsAnnotations_ValuesEntry_DoNotUseImpl(); +void InitDefaultsAnnotations_ValuesEntry_DoNotUse(); +void InitDefaultsAnnotationsImpl(); +void InitDefaultsAnnotations(); +inline void InitDefaults() { + InitDefaultsNamedEntityIdentifier(); + InitDefaultsSort(); + InitDefaultsNamedEntityIdentifierListRequest(); + InitDefaultsNamedEntityIdentifierList(); + InitDefaultsObjectGetRequest(); + InitDefaultsResourceListRequest(); + InitDefaultsEmailNotification(); + InitDefaultsPagerDutyNotification(); + InitDefaultsSlackNotification(); + InitDefaultsNotification(); + InitDefaultsUrlBlob(); + InitDefaultsLabels_ValuesEntry_DoNotUse(); + InitDefaultsLabels(); + InitDefaultsAnnotations_ValuesEntry_DoNotUse(); + InitDefaultsAnnotations(); +} +} // namespace protobuf_flyteidl_2fadmin_2fcommon_2eproto +namespace flyteidl { +namespace admin { +class Annotations; +class AnnotationsDefaultTypeInternal; +extern AnnotationsDefaultTypeInternal _Annotations_default_instance_; +class Annotations_ValuesEntry_DoNotUse; +class Annotations_ValuesEntry_DoNotUseDefaultTypeInternal; +extern Annotations_ValuesEntry_DoNotUseDefaultTypeInternal _Annotations_ValuesEntry_DoNotUse_default_instance_; +class EmailNotification; +class EmailNotificationDefaultTypeInternal; +extern EmailNotificationDefaultTypeInternal _EmailNotification_default_instance_; +class Labels; +class LabelsDefaultTypeInternal; +extern LabelsDefaultTypeInternal _Labels_default_instance_; +class Labels_ValuesEntry_DoNotUse; +class Labels_ValuesEntry_DoNotUseDefaultTypeInternal; +extern Labels_ValuesEntry_DoNotUseDefaultTypeInternal _Labels_ValuesEntry_DoNotUse_default_instance_; +class NamedEntityIdentifier; +class NamedEntityIdentifierDefaultTypeInternal; +extern NamedEntityIdentifierDefaultTypeInternal _NamedEntityIdentifier_default_instance_; +class NamedEntityIdentifierList; +class NamedEntityIdentifierListDefaultTypeInternal; +extern NamedEntityIdentifierListDefaultTypeInternal _NamedEntityIdentifierList_default_instance_; +class NamedEntityIdentifierListRequest; +class NamedEntityIdentifierListRequestDefaultTypeInternal; +extern NamedEntityIdentifierListRequestDefaultTypeInternal _NamedEntityIdentifierListRequest_default_instance_; +class Notification; +class NotificationDefaultTypeInternal; +extern NotificationDefaultTypeInternal _Notification_default_instance_; +class ObjectGetRequest; +class ObjectGetRequestDefaultTypeInternal; +extern ObjectGetRequestDefaultTypeInternal _ObjectGetRequest_default_instance_; +class PagerDutyNotification; +class PagerDutyNotificationDefaultTypeInternal; +extern PagerDutyNotificationDefaultTypeInternal _PagerDutyNotification_default_instance_; +class ResourceListRequest; +class ResourceListRequestDefaultTypeInternal; +extern ResourceListRequestDefaultTypeInternal _ResourceListRequest_default_instance_; +class SlackNotification; +class SlackNotificationDefaultTypeInternal; +extern SlackNotificationDefaultTypeInternal _SlackNotification_default_instance_; +class Sort; +class SortDefaultTypeInternal; +extern SortDefaultTypeInternal _Sort_default_instance_; +class UrlBlob; +class UrlBlobDefaultTypeInternal; +extern UrlBlobDefaultTypeInternal _UrlBlob_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +enum Sort_Direction { + Sort_Direction_DESCENDING = 0, + Sort_Direction_ASCENDING = 1, + Sort_Direction_Sort_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + Sort_Direction_Sort_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool Sort_Direction_IsValid(int value); +const Sort_Direction Sort_Direction_Direction_MIN = Sort_Direction_DESCENDING; +const Sort_Direction Sort_Direction_Direction_MAX = Sort_Direction_ASCENDING; +const int Sort_Direction_Direction_ARRAYSIZE = Sort_Direction_Direction_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Sort_Direction_descriptor(); +inline const ::std::string& Sort_Direction_Name(Sort_Direction value) { + return ::google::protobuf::internal::NameOfEnum( + Sort_Direction_descriptor(), value); +} +inline bool Sort_Direction_Parse( + const ::std::string& name, Sort_Direction* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Sort_Direction_descriptor(), name, value); +} +// =================================================================== + +class NamedEntityIdentifier : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifier) */ { + public: + NamedEntityIdentifier(); + virtual ~NamedEntityIdentifier(); + + NamedEntityIdentifier(const NamedEntityIdentifier& from); + + inline NamedEntityIdentifier& operator=(const NamedEntityIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityIdentifier(NamedEntityIdentifier&& from) noexcept + : NamedEntityIdentifier() { + *this = ::std::move(from); + } + + inline NamedEntityIdentifier& operator=(NamedEntityIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NamedEntityIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityIdentifier* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityIdentifier_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(NamedEntityIdentifier* other); + friend void swap(NamedEntityIdentifier& a, NamedEntityIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityIdentifier* New() const PROTOBUF_FINAL { return New(NULL); } + + NamedEntityIdentifier* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NamedEntityIdentifier& from); + void MergeFrom(const NamedEntityIdentifier& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NamedEntityIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 3; + void clear_name(); + static const int kNameFieldNumber = 3; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierImpl(); +}; +// ------------------------------------------------------------------- + +class Sort : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Sort) */ { + public: + Sort(); + virtual ~Sort(); + + Sort(const Sort& from); + + inline Sort& operator=(const Sort& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Sort(Sort&& from) noexcept + : Sort() { + *this = ::std::move(from); + } + + inline Sort& operator=(Sort&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Sort& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Sort* internal_default_instance() { + return reinterpret_cast( + &_Sort_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(Sort* other); + friend void swap(Sort& a, Sort& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Sort* New() const PROTOBUF_FINAL { return New(NULL); } + + Sort* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Sort& from); + void MergeFrom(const Sort& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Sort* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef Sort_Direction Direction; + static const Direction DESCENDING = + Sort_Direction_DESCENDING; + static const Direction ASCENDING = + Sort_Direction_ASCENDING; + static inline bool Direction_IsValid(int value) { + return Sort_Direction_IsValid(value); + } + static const Direction Direction_MIN = + Sort_Direction_Direction_MIN; + static const Direction Direction_MAX = + Sort_Direction_Direction_MAX; + static const int Direction_ARRAYSIZE = + Sort_Direction_Direction_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Direction_descriptor() { + return Sort_Direction_descriptor(); + } + static inline const ::std::string& Direction_Name(Direction value) { + return Sort_Direction_Name(value); + } + static inline bool Direction_Parse(const ::std::string& name, + Direction* value) { + return Sort_Direction_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // .flyteidl.admin.Sort.Direction direction = 2; + void clear_direction(); + static const int kDirectionFieldNumber = 2; + ::flyteidl::admin::Sort_Direction direction() const; + void set_direction(::flyteidl::admin::Sort_Direction value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + int direction_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSortImpl(); +}; +// ------------------------------------------------------------------- + +class NamedEntityIdentifierListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifierListRequest) */ { + public: + NamedEntityIdentifierListRequest(); + virtual ~NamedEntityIdentifierListRequest(); + + NamedEntityIdentifierListRequest(const NamedEntityIdentifierListRequest& from); + + inline NamedEntityIdentifierListRequest& operator=(const NamedEntityIdentifierListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityIdentifierListRequest(NamedEntityIdentifierListRequest&& from) noexcept + : NamedEntityIdentifierListRequest() { + *this = ::std::move(from); + } + + inline NamedEntityIdentifierListRequest& operator=(NamedEntityIdentifierListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NamedEntityIdentifierListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityIdentifierListRequest* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityIdentifierListRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(NamedEntityIdentifierListRequest* other); + friend void swap(NamedEntityIdentifierListRequest& a, NamedEntityIdentifierListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityIdentifierListRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + NamedEntityIdentifierListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NamedEntityIdentifierListRequest& from); + void MergeFrom(const NamedEntityIdentifierListRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NamedEntityIdentifierListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // 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); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 3; + void clear_limit(); + static const int kLimitFieldNumber = 3; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierListRequestImpl(); +}; +// ------------------------------------------------------------------- + +class NamedEntityIdentifierList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifierList) */ { + public: + NamedEntityIdentifierList(); + virtual ~NamedEntityIdentifierList(); + + NamedEntityIdentifierList(const NamedEntityIdentifierList& from); + + inline NamedEntityIdentifierList& operator=(const NamedEntityIdentifierList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NamedEntityIdentifierList(NamedEntityIdentifierList&& from) noexcept + : NamedEntityIdentifierList() { + *this = ::std::move(from); + } + + inline NamedEntityIdentifierList& operator=(NamedEntityIdentifierList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NamedEntityIdentifierList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NamedEntityIdentifierList* internal_default_instance() { + return reinterpret_cast( + &_NamedEntityIdentifierList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(NamedEntityIdentifierList* other); + friend void swap(NamedEntityIdentifierList& a, NamedEntityIdentifierList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NamedEntityIdentifierList* New() const PROTOBUF_FINAL { return New(NULL); } + + NamedEntityIdentifierList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NamedEntityIdentifierList& from); + void MergeFrom(const NamedEntityIdentifierList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NamedEntityIdentifierList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + int entities_size() const; + void clear_entities(); + static const int kEntitiesFieldNumber = 1; + const ::flyteidl::admin::NamedEntityIdentifier& entities(int index) const; + ::flyteidl::admin::NamedEntityIdentifier* mutable_entities(int index); + ::flyteidl::admin::NamedEntityIdentifier* add_entities(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >* + mutable_entities(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >& + entities() const; + + // 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.NamedEntityIdentifierList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier > entities_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNamedEntityIdentifierListImpl(); +}; +// ------------------------------------------------------------------- + +class ObjectGetRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ObjectGetRequest) */ { + public: + ObjectGetRequest(); + virtual ~ObjectGetRequest(); + + ObjectGetRequest(const ObjectGetRequest& from); + + inline ObjectGetRequest& operator=(const ObjectGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ObjectGetRequest(ObjectGetRequest&& from) noexcept + : ObjectGetRequest() { + *this = ::std::move(from); + } + + inline ObjectGetRequest& operator=(ObjectGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ObjectGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ObjectGetRequest* internal_default_instance() { + return reinterpret_cast( + &_ObjectGetRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(ObjectGetRequest* other); + friend void swap(ObjectGetRequest& a, ObjectGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ObjectGetRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ObjectGetRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ObjectGetRequest& from); + void MergeFrom(const ObjectGetRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ObjectGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsObjectGetRequestImpl(); +}; +// ------------------------------------------------------------------- + +class ResourceListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ResourceListRequest) */ { + public: + ResourceListRequest(); + virtual ~ResourceListRequest(); + + ResourceListRequest(const ResourceListRequest& from); + + inline ResourceListRequest& operator=(const ResourceListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ResourceListRequest(ResourceListRequest&& from) noexcept + : ResourceListRequest() { + *this = ::std::move(from); + } + + inline ResourceListRequest& operator=(ResourceListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ResourceListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ResourceListRequest* internal_default_instance() { + return reinterpret_cast( + &_ResourceListRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(ResourceListRequest* other); + friend void swap(ResourceListRequest& a, ResourceListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ResourceListRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ResourceListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ResourceListRequest& from); + void MergeFrom(const ResourceListRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ResourceListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + 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); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.admin.NamedEntityIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::admin::NamedEntityIdentifier& id() const; + ::flyteidl::admin::NamedEntityIdentifier* release_id(); + ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::admin::NamedEntityIdentifier* id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsResourceListRequestImpl(); +}; +// ------------------------------------------------------------------- + +class EmailNotification : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EmailNotification) */ { + public: + EmailNotification(); + virtual ~EmailNotification(); + + EmailNotification(const EmailNotification& from); + + inline EmailNotification& operator=(const EmailNotification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EmailNotification(EmailNotification&& from) noexcept + : EmailNotification() { + *this = ::std::move(from); + } + + inline EmailNotification& operator=(EmailNotification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const EmailNotification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EmailNotification* internal_default_instance() { + return reinterpret_cast( + &_EmailNotification_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(EmailNotification* other); + friend void swap(EmailNotification& a, EmailNotification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EmailNotification* New() const PROTOBUF_FINAL { return New(NULL); } + + EmailNotification* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const EmailNotification& from); + void MergeFrom(const EmailNotification& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(EmailNotification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_recipients_email(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> recipients_email_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsEmailNotificationImpl(); +}; +// ------------------------------------------------------------------- + +class PagerDutyNotification : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PagerDutyNotification) */ { + public: + PagerDutyNotification(); + virtual ~PagerDutyNotification(); + + PagerDutyNotification(const PagerDutyNotification& from); + + inline PagerDutyNotification& operator=(const PagerDutyNotification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + PagerDutyNotification(PagerDutyNotification&& from) noexcept + : PagerDutyNotification() { + *this = ::std::move(from); + } + + inline PagerDutyNotification& operator=(PagerDutyNotification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const PagerDutyNotification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const PagerDutyNotification* internal_default_instance() { + return reinterpret_cast( + &_PagerDutyNotification_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(PagerDutyNotification* other); + friend void swap(PagerDutyNotification& a, PagerDutyNotification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline PagerDutyNotification* New() const PROTOBUF_FINAL { return New(NULL); } + + PagerDutyNotification* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const PagerDutyNotification& from); + void MergeFrom(const PagerDutyNotification& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(PagerDutyNotification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_recipients_email(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> recipients_email_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsPagerDutyNotificationImpl(); +}; +// ------------------------------------------------------------------- + +class SlackNotification : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SlackNotification) */ { + public: + SlackNotification(); + virtual ~SlackNotification(); + + SlackNotification(const SlackNotification& from); + + inline SlackNotification& operator=(const SlackNotification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SlackNotification(SlackNotification&& from) noexcept + : SlackNotification() { + *this = ::std::move(from); + } + + inline SlackNotification& operator=(SlackNotification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SlackNotification& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SlackNotification* internal_default_instance() { + return reinterpret_cast( + &_SlackNotification_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; + + void Swap(SlackNotification* other); + friend void swap(SlackNotification& a, SlackNotification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SlackNotification* New() const PROTOBUF_FINAL { return New(NULL); } + + SlackNotification* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SlackNotification& from); + void MergeFrom(const SlackNotification& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SlackNotification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_recipients_email(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> recipients_email_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSlackNotificationImpl(); +}; +// ------------------------------------------------------------------- + +class Notification : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Notification) */ { + public: + Notification(); + virtual ~Notification(); + + Notification(const Notification& from); + + inline Notification& operator=(const Notification& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Notification(Notification&& from) noexcept + : Notification() { + *this = ::std::move(from); + } + + inline Notification& operator=(Notification&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Notification& default_instance(); + + enum TypeCase { + kEmail = 2, + kPagerDuty = 3, + kSlack = 4, + TYPE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Notification* internal_default_instance() { + return reinterpret_cast( + &_Notification_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 9; + + void Swap(Notification* other); + friend void swap(Notification& a, Notification& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Notification* New() const PROTOBUF_FINAL { return New(NULL); } + + Notification* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Notification& from); + void MergeFrom(const Notification& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Notification* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + int phases_size() const; + void clear_phases(); + static const int kPhasesFieldNumber = 1; + ::flyteidl::core::WorkflowExecution_Phase phases(int index) const; + void set_phases(int index, ::flyteidl::core::WorkflowExecution_Phase value); + void add_phases(::flyteidl::core::WorkflowExecution_Phase value); + const ::google::protobuf::RepeatedField& phases() const; + ::google::protobuf::RepeatedField* mutable_phases(); + + // .flyteidl.admin.EmailNotification email = 2; + bool has_email() const; + void clear_email(); + static const int kEmailFieldNumber = 2; + const ::flyteidl::admin::EmailNotification& email() const; + ::flyteidl::admin::EmailNotification* release_email(); + ::flyteidl::admin::EmailNotification* mutable_email(); + void set_allocated_email(::flyteidl::admin::EmailNotification* email); + + // .flyteidl.admin.PagerDutyNotification pager_duty = 3; + bool has_pager_duty() const; + void clear_pager_duty(); + static const int kPagerDutyFieldNumber = 3; + const ::flyteidl::admin::PagerDutyNotification& pager_duty() const; + ::flyteidl::admin::PagerDutyNotification* release_pager_duty(); + ::flyteidl::admin::PagerDutyNotification* mutable_pager_duty(); + void set_allocated_pager_duty(::flyteidl::admin::PagerDutyNotification* pager_duty); + + // .flyteidl.admin.SlackNotification slack = 4; + bool has_slack() const; + void clear_slack(); + static const int kSlackFieldNumber = 4; + const ::flyteidl::admin::SlackNotification& slack() const; + ::flyteidl::admin::SlackNotification* release_slack(); + ::flyteidl::admin::SlackNotification* mutable_slack(); + void set_allocated_slack(::flyteidl::admin::SlackNotification* slack); + + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + private: + void set_has_email(); + void set_has_pager_duty(); + void set_has_slack(); + + inline bool has_type() const; + void clear_type(); + inline void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedField phases_; + mutable int _phases_cached_byte_size_; + union TypeUnion { + TypeUnion() {} + ::flyteidl::admin::EmailNotification* email_; + ::flyteidl::admin::PagerDutyNotification* pager_duty_; + ::flyteidl::admin::SlackNotification* slack_; + } type_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNotificationImpl(); +}; +// ------------------------------------------------------------------- + +class UrlBlob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.UrlBlob) */ { + public: + UrlBlob(); + virtual ~UrlBlob(); + + UrlBlob(const UrlBlob& from); + + inline UrlBlob& operator=(const UrlBlob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + UrlBlob(UrlBlob&& from) noexcept + : UrlBlob() { + *this = ::std::move(from); + } + + inline UrlBlob& operator=(UrlBlob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const UrlBlob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const UrlBlob* internal_default_instance() { + return reinterpret_cast( + &_UrlBlob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 10; + + void Swap(UrlBlob* other); + friend void swap(UrlBlob& a, UrlBlob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline UrlBlob* New() const PROTOBUF_FINAL { return New(NULL); } + + UrlBlob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const UrlBlob& from); + void MergeFrom(const UrlBlob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(UrlBlob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string url = 1; + void clear_url(); + static const int kUrlFieldNumber = 1; + const ::std::string& url() const; + void set_url(const ::std::string& value); + #if LANG_CXX11 + void set_url(::std::string&& value); + #endif + void set_url(const char* value); + void set_url(const char* value, size_t size); + ::std::string* mutable_url(); + ::std::string* release_url(); + void set_allocated_url(::std::string* url); + + // int64 bytes = 2; + void clear_bytes(); + static const int kBytesFieldNumber = 2; + ::google::protobuf::int64 bytes() const; + void set_bytes(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr url_; + ::google::protobuf::int64 bytes_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsUrlBlobImpl(); +}; +// ------------------------------------------------------------------- + +class Labels_ValuesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + Labels_ValuesEntry_DoNotUse(); + Labels_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Labels_ValuesEntry_DoNotUse& other); + static const Labels_ValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Labels_ValuesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Labels : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Labels) */ { + public: + Labels(); + virtual ~Labels(); + + Labels(const Labels& from); + + inline Labels& operator=(const Labels& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Labels(Labels&& from) noexcept + : Labels() { + *this = ::std::move(from); + } + + inline Labels& operator=(Labels&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Labels& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Labels* internal_default_instance() { + return reinterpret_cast( + &_Labels_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 12; + + void Swap(Labels* other); + friend void swap(Labels& a, Labels& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Labels* New() const PROTOBUF_FINAL { return New(NULL); } + + Labels* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Labels& from); + void MergeFrom(const Labels& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Labels* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + values() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + Labels_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > values_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsLabelsImpl(); +}; +// ------------------------------------------------------------------- + +class Annotations_ValuesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + Annotations_ValuesEntry_DoNotUse(); + Annotations_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const Annotations_ValuesEntry_DoNotUse& other); + static const Annotations_ValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Annotations_ValuesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class Annotations : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Annotations) */ { + public: + Annotations(); + virtual ~Annotations(); + + Annotations(const Annotations& from); + + inline Annotations& operator=(const Annotations& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Annotations(Annotations&& from) noexcept + : Annotations() { + *this = ::std::move(from); + } + + inline Annotations& operator=(Annotations&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Annotations& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Annotations* internal_default_instance() { + return reinterpret_cast( + &_Annotations_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 14; + + void Swap(Annotations* other); + friend void swap(Annotations& a, Annotations& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Annotations* New() const PROTOBUF_FINAL { return New(NULL); } + + Annotations* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Annotations& from); + void MergeFrom(const Annotations& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Annotations* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map values = 1; + int values_size() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::std::string >& + values() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_values(); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + Annotations_ValuesEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > values_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsAnnotationsImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// NamedEntityIdentifier + +// string project = 1; +inline void NamedEntityIdentifier::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifier::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.project) + return project_.GetNoArena(); +} +inline void NamedEntityIdentifier::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.project) +} +#if LANG_CXX11 +inline void NamedEntityIdentifier::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.project) +} +#endif +inline void NamedEntityIdentifier::set_project(const char* value) { + GOOGLE_DCHECK(value != NULL); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.project) +} +inline void NamedEntityIdentifier::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.project) +} +inline ::std::string* NamedEntityIdentifier::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifier::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifier::set_allocated_project(::std::string* project) { + if (project != NULL) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.project) +} + +// string domain = 2; +inline void NamedEntityIdentifier::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifier::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.domain) + return domain_.GetNoArena(); +} +inline void NamedEntityIdentifier::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.domain) +} +#if LANG_CXX11 +inline void NamedEntityIdentifier::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.domain) +} +#endif +inline void NamedEntityIdentifier::set_domain(const char* value) { + GOOGLE_DCHECK(value != NULL); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.domain) +} +inline void NamedEntityIdentifier::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.domain) +} +inline ::std::string* NamedEntityIdentifier::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifier::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifier::set_allocated_domain(::std::string* domain) { + if (domain != NULL) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.domain) +} + +// string name = 3; +inline void NamedEntityIdentifier::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifier::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.name) + return name_.GetNoArena(); +} +inline void NamedEntityIdentifier::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.name) +} +#if LANG_CXX11 +inline void NamedEntityIdentifier::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.name) +} +#endif +inline void NamedEntityIdentifier::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.name) +} +inline void NamedEntityIdentifier::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.name) +} +inline ::std::string* NamedEntityIdentifier::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifier::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifier::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.name) +} + +// ------------------------------------------------------------------- + +// Sort + +// string key = 1; +inline void Sort::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Sort::key() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Sort.key) + return key_.GetNoArena(); +} +inline void Sort::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Sort.key) +} +#if LANG_CXX11 +inline void Sort::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Sort.key) +} +#endif +inline void Sort::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Sort.key) +} +inline void Sort::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Sort.key) +} +inline ::std::string* Sort::mutable_key() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Sort.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Sort::release_key() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Sort.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Sort::set_allocated_key(::std::string* key) { + if (key != NULL) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Sort.key) +} + +// .flyteidl.admin.Sort.Direction direction = 2; +inline void Sort::clear_direction() { + direction_ = 0; +} +inline ::flyteidl::admin::Sort_Direction Sort::direction() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Sort.direction) + return static_cast< ::flyteidl::admin::Sort_Direction >(direction_); +} +inline void Sort::set_direction(::flyteidl::admin::Sort_Direction value) { + + direction_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.Sort.direction) +} + +// ------------------------------------------------------------------- + +// NamedEntityIdentifierListRequest + +// string project = 1; +inline void NamedEntityIdentifierListRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.project) + return project_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +#endif +inline void NamedEntityIdentifierListRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != NULL); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +inline void NamedEntityIdentifierListRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_project(::std::string* project) { + if (project != NULL) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.project) +} + +// string domain = 2; +inline void NamedEntityIdentifierListRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.domain) + return domain_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +#endif +inline void NamedEntityIdentifierListRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != NULL); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +inline void NamedEntityIdentifierListRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_domain(::std::string* domain) { + if (domain != NULL) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.domain) +} + +// uint32 limit = 3; +inline void NamedEntityIdentifierListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NamedEntityIdentifierListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.limit) + return limit_; +} +inline void NamedEntityIdentifierListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.limit) +} + +// string token = 4; +inline void NamedEntityIdentifierListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.token) + return token_.GetNoArena(); +} +inline void NamedEntityIdentifierListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +#endif +inline void NamedEntityIdentifierListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +inline void NamedEntityIdentifierListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} +inline ::std::string* NamedEntityIdentifierListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierListRequest::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.token) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool NamedEntityIdentifierListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != NULL; +} +inline void NamedEntityIdentifierListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; +} +inline const ::flyteidl::admin::Sort& NamedEntityIdentifierListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NamedEntityIdentifierListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = NULL; + return temp; +} +inline ::flyteidl::admin::Sort* NamedEntityIdentifierListRequest::mutable_sort_by() { + + if (sort_by_ == NULL) { + sort_by_ = new ::flyteidl::admin::Sort; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) + return sort_by_; +} +inline void NamedEntityIdentifierListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete sort_by_; + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// NamedEntityIdentifierList + +// repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; +inline int NamedEntityIdentifierList::entities_size() const { + return entities_.size(); +} +inline void NamedEntityIdentifierList::clear_entities() { + entities_.Clear(); +} +inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityIdentifierList::entities(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_.Get(index); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityIdentifierList::mutable_entities(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_.Mutable(index); +} +inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityIdentifierList::add_entities() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >* +NamedEntityIdentifierList::mutable_entities() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NamedEntityIdentifierList.entities) + return &entities_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >& +NamedEntityIdentifierList::entities() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NamedEntityIdentifierList.entities) + return entities_; +} + +// string token = 2; +inline void NamedEntityIdentifierList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NamedEntityIdentifierList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierList.token) + return token_.GetNoArena(); +} +inline void NamedEntityIdentifierList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierList.token) +} +#if LANG_CXX11 +inline void NamedEntityIdentifierList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierList.token) +} +#endif +inline void NamedEntityIdentifierList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierList.token) +} +inline void NamedEntityIdentifierList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierList.token) +} +inline ::std::string* NamedEntityIdentifierList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NamedEntityIdentifierList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NamedEntityIdentifierList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierList.token) +} + +// ------------------------------------------------------------------- + +// ObjectGetRequest + +// .flyteidl.core.Identifier id = 1; +inline bool ObjectGetRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& ObjectGetRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ObjectGetRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* ObjectGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ObjectGetRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* ObjectGetRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ObjectGetRequest.id) + return id_; +} +inline void ObjectGetRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ObjectGetRequest.id) +} + +// ------------------------------------------------------------------- + +// ResourceListRequest + +// .flyteidl.admin.NamedEntityIdentifier id = 1; +inline bool ResourceListRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline void ResourceListRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +inline const ::flyteidl::admin::NamedEntityIdentifier& ResourceListRequest::id() const { + const ::flyteidl::admin::NamedEntityIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); +} +inline ::flyteidl::admin::NamedEntityIdentifier* ResourceListRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.id) + + ::flyteidl::admin::NamedEntityIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::admin::NamedEntityIdentifier* ResourceListRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::admin::NamedEntityIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.id) + return id_; +} +inline void ResourceListRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete id_; + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.id) +} + +// uint32 limit = 2; +inline void ResourceListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 ResourceListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.limit) + return limit_; +} +inline void ResourceListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.limit) +} + +// string token = 3; +inline void ResourceListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.token) + return token_.GetNoArena(); +} +inline void ResourceListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.token) +} +#if LANG_CXX11 +inline void ResourceListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ResourceListRequest.token) +} +#endif +inline void ResourceListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ResourceListRequest.token) +} +inline void ResourceListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ResourceListRequest.token) +} +inline ::std::string* ResourceListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceListRequest::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.token) +} + +// string filters = 4; +inline void ResourceListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ResourceListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.filters) + return filters_.GetNoArena(); +} +inline void ResourceListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.filters) +} +#if LANG_CXX11 +inline void ResourceListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ResourceListRequest.filters) +} +#endif +inline void ResourceListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != NULL); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ResourceListRequest.filters) +} +inline void ResourceListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ResourceListRequest.filters) +} +inline ::std::string* ResourceListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ResourceListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ResourceListRequest::set_allocated_filters(::std::string* filters) { + if (filters != NULL) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool ResourceListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != NULL; +} +inline void ResourceListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; +} +inline const ::flyteidl::admin::Sort& ResourceListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.sort_by) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* ResourceListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = NULL; + return temp; +} +inline ::flyteidl::admin::Sort* ResourceListRequest::mutable_sort_by() { + + if (sort_by_ == NULL) { + sort_by_ = new ::flyteidl::admin::Sort; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.sort_by) + return sort_by_; +} +inline void ResourceListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete sort_by_; + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// EmailNotification + +// repeated string recipients_email = 1; +inline int EmailNotification::recipients_email_size() const { + return recipients_email_.size(); +} +inline void EmailNotification::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& EmailNotification::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* EmailNotification::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_.Mutable(index); +} +inline void EmailNotification::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailNotification.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void EmailNotification::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailNotification.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void EmailNotification::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailNotification.recipients_email) +} +inline void EmailNotification::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailNotification.recipients_email) +} +inline ::std::string* EmailNotification::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_.Add(); +} +inline void EmailNotification::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailNotification.recipients_email) +} +#if LANG_CXX11 +inline void EmailNotification::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailNotification.recipients_email) +} +#endif +inline void EmailNotification::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.EmailNotification.recipients_email) +} +inline void EmailNotification::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.EmailNotification.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +EmailNotification::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.EmailNotification.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +EmailNotification::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.EmailNotification.recipients_email) + return &recipients_email_; +} + +// ------------------------------------------------------------------- + +// PagerDutyNotification + +// repeated string recipients_email = 1; +inline int PagerDutyNotification::recipients_email_size() const { + return recipients_email_.size(); +} +inline void PagerDutyNotification::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& PagerDutyNotification::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* PagerDutyNotification::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_.Mutable(index); +} +inline void PagerDutyNotification::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.PagerDutyNotification.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void PagerDutyNotification::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.PagerDutyNotification.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void PagerDutyNotification::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline void PagerDutyNotification::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline ::std::string* PagerDutyNotification::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_.Add(); +} +inline void PagerDutyNotification::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.PagerDutyNotification.recipients_email) +} +#if LANG_CXX11 +inline void PagerDutyNotification::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.PagerDutyNotification.recipients_email) +} +#endif +inline void PagerDutyNotification::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline void PagerDutyNotification::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.PagerDutyNotification.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +PagerDutyNotification::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.PagerDutyNotification.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +PagerDutyNotification::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PagerDutyNotification.recipients_email) + return &recipients_email_; +} + +// ------------------------------------------------------------------- + +// SlackNotification + +// repeated string recipients_email = 1; +inline int SlackNotification::recipients_email_size() const { + return recipients_email_.size(); +} +inline void SlackNotification::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& SlackNotification::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* SlackNotification::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_.Mutable(index); +} +inline void SlackNotification::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.SlackNotification.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void SlackNotification::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.SlackNotification.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void SlackNotification::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.SlackNotification.recipients_email) +} +inline void SlackNotification::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SlackNotification.recipients_email) +} +inline ::std::string* SlackNotification::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_.Add(); +} +inline void SlackNotification::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.SlackNotification.recipients_email) +} +#if LANG_CXX11 +inline void SlackNotification::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.SlackNotification.recipients_email) +} +#endif +inline void SlackNotification::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.SlackNotification.recipients_email) +} +inline void SlackNotification::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.SlackNotification.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +SlackNotification::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.SlackNotification.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +SlackNotification::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.SlackNotification.recipients_email) + return &recipients_email_; +} + +// ------------------------------------------------------------------- + +// Notification + +// repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; +inline int Notification::phases_size() const { + return phases_.size(); +} +inline void Notification::clear_phases() { + phases_.Clear(); +} +inline ::flyteidl::core::WorkflowExecution_Phase Notification::phases(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.phases) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phases_.Get(index)); +} +inline void Notification::set_phases(int index, ::flyteidl::core::WorkflowExecution_Phase value) { + phases_.Set(index, value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Notification.phases) +} +inline void Notification::add_phases(::flyteidl::core::WorkflowExecution_Phase value) { + phases_.Add(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.Notification.phases) +} +inline const ::google::protobuf::RepeatedField& +Notification::phases() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Notification.phases) + return phases_; +} +inline ::google::protobuf::RepeatedField* +Notification::mutable_phases() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Notification.phases) + return &phases_; +} + +// .flyteidl.admin.EmailNotification email = 2; +inline bool Notification::has_email() const { + return type_case() == kEmail; +} +inline void Notification::set_has_email() { + _oneof_case_[0] = kEmail; +} +inline void Notification::clear_email() { + if (has_email()) { + delete type_.email_; + clear_has_type(); + } +} +inline ::flyteidl::admin::EmailNotification* Notification::release_email() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.email) + if (has_email()) { + clear_has_type(); + ::flyteidl::admin::EmailNotification* temp = type_.email_; + type_.email_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::EmailNotification& Notification::email() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.email) + return has_email() + ? *type_.email_ + : *reinterpret_cast< ::flyteidl::admin::EmailNotification*>(&::flyteidl::admin::_EmailNotification_default_instance_); +} +inline ::flyteidl::admin::EmailNotification* Notification::mutable_email() { + if (!has_email()) { + clear_type(); + set_has_email(); + type_.email_ = new ::flyteidl::admin::EmailNotification; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.email) + return type_.email_; +} + +// .flyteidl.admin.PagerDutyNotification pager_duty = 3; +inline bool Notification::has_pager_duty() const { + return type_case() == kPagerDuty; +} +inline void Notification::set_has_pager_duty() { + _oneof_case_[0] = kPagerDuty; +} +inline void Notification::clear_pager_duty() { + if (has_pager_duty()) { + delete type_.pager_duty_; + clear_has_type(); + } +} +inline ::flyteidl::admin::PagerDutyNotification* Notification::release_pager_duty() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.pager_duty) + if (has_pager_duty()) { + clear_has_type(); + ::flyteidl::admin::PagerDutyNotification* temp = type_.pager_duty_; + type_.pager_duty_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::PagerDutyNotification& Notification::pager_duty() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.pager_duty) + return has_pager_duty() + ? *type_.pager_duty_ + : *reinterpret_cast< ::flyteidl::admin::PagerDutyNotification*>(&::flyteidl::admin::_PagerDutyNotification_default_instance_); +} +inline ::flyteidl::admin::PagerDutyNotification* Notification::mutable_pager_duty() { + if (!has_pager_duty()) { + clear_type(); + set_has_pager_duty(); + type_.pager_duty_ = new ::flyteidl::admin::PagerDutyNotification; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.pager_duty) + return type_.pager_duty_; +} + +// .flyteidl.admin.SlackNotification slack = 4; +inline bool Notification::has_slack() const { + return type_case() == kSlack; +} +inline void Notification::set_has_slack() { + _oneof_case_[0] = kSlack; +} +inline void Notification::clear_slack() { + if (has_slack()) { + delete type_.slack_; + clear_has_type(); + } +} +inline ::flyteidl::admin::SlackNotification* Notification::release_slack() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.slack) + if (has_slack()) { + clear_has_type(); + ::flyteidl::admin::SlackNotification* temp = type_.slack_; + type_.slack_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::SlackNotification& Notification::slack() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.slack) + return has_slack() + ? *type_.slack_ + : *reinterpret_cast< ::flyteidl::admin::SlackNotification*>(&::flyteidl::admin::_SlackNotification_default_instance_); +} +inline ::flyteidl::admin::SlackNotification* Notification::mutable_slack() { + if (!has_slack()) { + clear_type(); + set_has_slack(); + type_.slack_ = new ::flyteidl::admin::SlackNotification; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.slack) + return type_.slack_; +} + +inline bool Notification::has_type() const { + return type_case() != TYPE_NOT_SET; +} +inline void Notification::clear_has_type() { + _oneof_case_[0] = TYPE_NOT_SET; +} +inline Notification::TypeCase Notification::type_case() const { + return Notification::TypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// UrlBlob + +// string url = 1; +inline void UrlBlob::clear_url() { + url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& UrlBlob::url() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.UrlBlob.url) + return url_.GetNoArena(); +} +inline void UrlBlob::set_url(const ::std::string& value) { + + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.UrlBlob.url) +} +#if LANG_CXX11 +inline void UrlBlob::set_url(::std::string&& value) { + + url_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.UrlBlob.url) +} +#endif +inline void UrlBlob::set_url(const char* value) { + GOOGLE_DCHECK(value != NULL); + + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.UrlBlob.url) +} +inline void UrlBlob::set_url(const char* value, size_t size) { + + url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.UrlBlob.url) +} +inline ::std::string* UrlBlob::mutable_url() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.UrlBlob.url) + return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* UrlBlob::release_url() { + // @@protoc_insertion_point(field_release:flyteidl.admin.UrlBlob.url) + + return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void UrlBlob::set_allocated_url(::std::string* url) { + if (url != NULL) { + + } else { + + } + url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.UrlBlob.url) +} + +// int64 bytes = 2; +inline void UrlBlob::clear_bytes() { + bytes_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 UrlBlob::bytes() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.UrlBlob.bytes) + return bytes_; +} +inline void UrlBlob::set_bytes(::google::protobuf::int64 value) { + + bytes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.UrlBlob.bytes) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Labels + +// map values = 1; +inline int Labels::values_size() const { + return values_.size(); +} +inline void Labels::clear_values() { + values_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +Labels::values() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.Labels.values) + return values_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +Labels::mutable_values() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.Labels.values) + return values_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// Annotations + +// map values = 1; +inline int Annotations::values_size() const { + return values_.size(); +} +inline void Annotations::clear_values() { + values_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +Annotations::values() const { + // @@protoc_insertion_point(field_map:flyteidl.admin.Annotations.values) + return values_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +Annotations::mutable_values() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.Annotations.values) + return values_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::Sort_Direction> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::Sort_Direction>() { + return ::flyteidl::admin::Sort_Direction_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc new file mode 100644 index 0000000000..61c42cf5b1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/event.proto + +#include "flyteidl/admin/event.pb.h" +#include "flyteidl/admin/event.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h new file mode 100644 index 0000000000..23aba9c3e8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/event.proto +#ifndef GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED + +#include "flyteidl/admin/event.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc new file mode 100644 index 0000000000..fd14137928 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc @@ -0,0 +1,2449 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +#include "flyteidl/admin/event.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class EventErrorAlreadyInTerminalStateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EventErrorAlreadyInTerminalState_default_instance_; +class EventFailureReasonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state_; +} _EventFailureReason_default_instance_; +class WorkflowExecutionEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecutionEventRequest_default_instance_; +class WorkflowExecutionEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecutionEventResponse_default_instance_; +class NodeExecutionEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionEventRequest_default_instance_; +class NodeExecutionEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionEventResponse_default_instance_; +class TaskExecutionEventRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionEventRequest_default_instance_; +class TaskExecutionEventResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionEventResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fevent_2eproto { +void InitDefaultsEventErrorAlreadyInTerminalStateImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_; + new (ptr) ::flyteidl::admin::EventErrorAlreadyInTerminalState(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EventErrorAlreadyInTerminalState::InitAsDefaultInstance(); +} + +void InitDefaultsEventErrorAlreadyInTerminalState() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEventErrorAlreadyInTerminalStateImpl); +} + +void InitDefaultsEventFailureReasonImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventErrorAlreadyInTerminalState(); + { + void* ptr = &::flyteidl::admin::_EventFailureReason_default_instance_; + new (ptr) ::flyteidl::admin::EventFailureReason(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EventFailureReason::InitAsDefaultInstance(); +} + +void InitDefaultsEventFailureReason() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEventFailureReasonImpl); +} + +void InitDefaultsWorkflowExecutionEventRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowExecutionEvent(); + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionEventRequest::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionEventRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionEventRequestImpl); +} + +void InitDefaultsWorkflowExecutionEventResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionEventResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionEventResponse::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionEventResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionEventResponseImpl); +} + +void InitDefaultsNodeExecutionEventRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsNodeExecutionEvent(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionEventRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionEventRequest::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionEventRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionEventRequestImpl); +} + +void InitDefaultsNodeExecutionEventResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_NodeExecutionEventResponse_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionEventResponse::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionEventResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionEventResponseImpl); +} + +void InitDefaultsTaskExecutionEventRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsTaskExecutionEvent(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionEventRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionEventRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionEventRequest::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionEventRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionEventRequestImpl); +} + +void InitDefaultsTaskExecutionEventResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_TaskExecutionEventResponse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionEventResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionEventResponse::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionEventResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionEventResponseImpl); +} + +::google::protobuf::Metadata file_level_metadata[8]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EventErrorAlreadyInTerminalState, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EventErrorAlreadyInTerminalState, current_phase_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::EventFailureReasonDefaultTypeInternal, already_in_terminal_state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, reason_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, request_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, event_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, request_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, event_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, request_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, event_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::EventErrorAlreadyInTerminalState)}, + { 6, -1, sizeof(::flyteidl::admin::EventFailureReason)}, + { 13, -1, sizeof(::flyteidl::admin::WorkflowExecutionEventRequest)}, + { 20, -1, sizeof(::flyteidl::admin::WorkflowExecutionEventResponse)}, + { 25, -1, sizeof(::flyteidl::admin::NodeExecutionEventRequest)}, + { 32, -1, sizeof(::flyteidl::admin::NodeExecutionEventResponse)}, + { 37, -1, sizeof(::flyteidl::admin::TaskExecutionEventRequest)}, + { 44, -1, sizeof(::flyteidl::admin::TaskExecutionEventResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_), + reinterpret_cast(&::flyteidl::admin::_EventFailureReason_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionEventResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionEventRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionEventResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionEventRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionEventResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/event.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\032flyteidl/admin/event.proto\022\016flyteidl.a" + "dmin\032\032flyteidl/event/event.proto\"9\n Even" + "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + "phase\030\001 \001(\t\"u\n\022EventFailureReason\022U\n\031alr" + "eady_in_terminal_state\030\001 \001(\01320.flyteidl." + "admin.EventErrorAlreadyInTerminalStateH\000" + "B\010\n\006reason\"j\n\035WorkflowExecutionEventRequ" + "est\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005event\030\002 \001(\0132&" + ".flyteidl.event.WorkflowExecutionEvent\" " + "\n\036WorkflowExecutionEventResponse\"b\n\031Node" + "ExecutionEventRequest\022\022\n\nrequest_id\030\001 \001(" + "\t\0221\n\005event\030\002 \001(\0132\".flyteidl.event.NodeEx" + "ecutionEvent\"\034\n\032NodeExecutionEventRespon" + "se\"b\n\031TaskExecutionEventRequest\022\022\n\nreque" + "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + "ent.TaskExecutionEvent\"\034\n\032TaskExecutionE" + "ventResponseB3Z1github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 713); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/event.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fevent_2fevent_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fevent_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void EventErrorAlreadyInTerminalState::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EventErrorAlreadyInTerminalState::kCurrentPhaseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EventErrorAlreadyInTerminalState::EventErrorAlreadyInTerminalState() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventErrorAlreadyInTerminalState(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EventErrorAlreadyInTerminalState) +} +EventErrorAlreadyInTerminalState::EventErrorAlreadyInTerminalState(const EventErrorAlreadyInTerminalState& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + current_phase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.current_phase().size() > 0) { + current_phase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_phase_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventErrorAlreadyInTerminalState) +} + +void EventErrorAlreadyInTerminalState::SharedCtor() { + current_phase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +EventErrorAlreadyInTerminalState::~EventErrorAlreadyInTerminalState() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EventErrorAlreadyInTerminalState) + SharedDtor(); +} + +void EventErrorAlreadyInTerminalState::SharedDtor() { + current_phase_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EventErrorAlreadyInTerminalState::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EventErrorAlreadyInTerminalState::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EventErrorAlreadyInTerminalState& EventErrorAlreadyInTerminalState::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventErrorAlreadyInTerminalState(); + return *internal_default_instance(); +} + +EventErrorAlreadyInTerminalState* EventErrorAlreadyInTerminalState::New(::google::protobuf::Arena* arena) const { + EventErrorAlreadyInTerminalState* n = new EventErrorAlreadyInTerminalState; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void EventErrorAlreadyInTerminalState::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + current_phase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool EventErrorAlreadyInTerminalState::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + 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 current_phase = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_current_phase())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->current_phase().data(), static_cast(this->current_phase().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase")); + } 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.EventErrorAlreadyInTerminalState) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventErrorAlreadyInTerminalState) + return false; +#undef DO_ +} + +void EventErrorAlreadyInTerminalState::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string current_phase = 1; + if (this->current_phase().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->current_phase().data(), static_cast(this->current_phase().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->current_phase(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventErrorAlreadyInTerminalState) +} + +::google::protobuf::uint8* EventErrorAlreadyInTerminalState::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string current_phase = 1; + if (this->current_phase().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->current_phase().data(), static_cast(this->current_phase().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->current_phase(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EventErrorAlreadyInTerminalState) + return target; +} + +size_t EventErrorAlreadyInTerminalState::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string current_phase = 1; + if (this->current_phase().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->current_phase()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EventErrorAlreadyInTerminalState::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + GOOGLE_DCHECK_NE(&from, this); + const EventErrorAlreadyInTerminalState* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventErrorAlreadyInTerminalState) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventErrorAlreadyInTerminalState) + MergeFrom(*source); + } +} + +void EventErrorAlreadyInTerminalState::MergeFrom(const EventErrorAlreadyInTerminalState& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.current_phase().size() > 0) { + + current_phase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_phase_); + } +} + +void EventErrorAlreadyInTerminalState::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EventErrorAlreadyInTerminalState::CopyFrom(const EventErrorAlreadyInTerminalState& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EventErrorAlreadyInTerminalState::IsInitialized() const { + return true; +} + +void EventErrorAlreadyInTerminalState::Swap(EventErrorAlreadyInTerminalState* other) { + if (other == this) return; + InternalSwap(other); +} +void EventErrorAlreadyInTerminalState::InternalSwap(EventErrorAlreadyInTerminalState* other) { + using std::swap; + current_phase_.Swap(&other->current_phase_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata EventErrorAlreadyInTerminalState::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void EventFailureReason::InitAsDefaultInstance() { + ::flyteidl::admin::_EventFailureReason_default_instance_.already_in_terminal_state_ = const_cast< ::flyteidl::admin::EventErrorAlreadyInTerminalState*>( + ::flyteidl::admin::EventErrorAlreadyInTerminalState::internal_default_instance()); +} +void EventFailureReason::set_allocated_already_in_terminal_state(::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (already_in_terminal_state) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + already_in_terminal_state = ::google::protobuf::internal::GetOwnedMessage( + message_arena, already_in_terminal_state, submessage_arena); + } + set_has_already_in_terminal_state(); + reason_.already_in_terminal_state_ = already_in_terminal_state; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventFailureReason.already_in_terminal_state) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EventFailureReason::kAlreadyInTerminalStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EventFailureReason::EventFailureReason() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventFailureReason(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EventFailureReason) +} +EventFailureReason::EventFailureReason(const EventFailureReason& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reason(); + switch (from.reason_case()) { + case kAlreadyInTerminalState: { + mutable_already_in_terminal_state()->::flyteidl::admin::EventErrorAlreadyInTerminalState::MergeFrom(from.already_in_terminal_state()); + break; + } + case REASON_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventFailureReason) +} + +void EventFailureReason::SharedCtor() { + clear_has_reason(); + _cached_size_ = 0; +} + +EventFailureReason::~EventFailureReason() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EventFailureReason) + SharedDtor(); +} + +void EventFailureReason::SharedDtor() { + if (has_reason()) { + clear_reason(); + } +} + +void EventFailureReason::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EventFailureReason::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EventFailureReason& EventFailureReason::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventFailureReason(); + return *internal_default_instance(); +} + +EventFailureReason* EventFailureReason::New(::google::protobuf::Arena* arena) const { + EventFailureReason* n = new EventFailureReason; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void EventFailureReason::clear_reason() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.EventFailureReason) + switch (reason_case()) { + case kAlreadyInTerminalState: { + delete reason_.already_in_terminal_state_; + break; + } + case REASON_NOT_SET: { + break; + } + } + _oneof_case_[0] = REASON_NOT_SET; +} + + +void EventFailureReason::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reason(); + _internal_metadata_.Clear(); +} + +bool EventFailureReason::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EventFailureReason) + 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)) { + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_already_in_terminal_state())); + } 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.EventFailureReason) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventFailureReason) + return false; +#undef DO_ +} + +void EventFailureReason::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + if (has_already_in_terminal_state()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *reason_.already_in_terminal_state_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventFailureReason) +} + +::google::protobuf::uint8* EventFailureReason::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + if (has_already_in_terminal_state()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *reason_.already_in_terminal_state_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EventFailureReason) + return target; +} + +size_t EventFailureReason::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventFailureReason) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (reason_case()) { + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + case kAlreadyInTerminalState: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.already_in_terminal_state_); + break; + } + case REASON_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EventFailureReason::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventFailureReason) + GOOGLE_DCHECK_NE(&from, this); + const EventFailureReason* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventFailureReason) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventFailureReason) + MergeFrom(*source); + } +} + +void EventFailureReason::MergeFrom(const EventFailureReason& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventFailureReason) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reason_case()) { + case kAlreadyInTerminalState: { + mutable_already_in_terminal_state()->::flyteidl::admin::EventErrorAlreadyInTerminalState::MergeFrom(from.already_in_terminal_state()); + break; + } + case REASON_NOT_SET: { + break; + } + } +} + +void EventFailureReason::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EventFailureReason::CopyFrom(const EventFailureReason& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EventFailureReason::IsInitialized() const { + return true; +} + +void EventFailureReason::Swap(EventFailureReason* other) { + if (other == this) return; + InternalSwap(other); +} +void EventFailureReason::InternalSwap(EventFailureReason* other) { + using std::swap; + swap(reason_, other->reason_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata EventFailureReason::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionEventRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::WorkflowExecutionEvent*>( + ::flyteidl::event::WorkflowExecutionEvent::internal_default_instance()); +} +void WorkflowExecutionEventRequest::clear_event() { + if (GetArenaNoVirtual() == NULL && event_ != NULL) { + delete event_; + } + event_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionEventRequest::kRequestIdFieldNumber; +const int WorkflowExecutionEventRequest::kEventFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionEventRequest::WorkflowExecutionEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsWorkflowExecutionEventRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionEventRequest) +} +WorkflowExecutionEventRequest::WorkflowExecutionEventRequest(const WorkflowExecutionEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + event_ = new ::flyteidl::event::WorkflowExecutionEvent(*from.event_); + } else { + event_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionEventRequest) +} + +void WorkflowExecutionEventRequest::SharedCtor() { + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + event_ = NULL; + _cached_size_ = 0; +} + +WorkflowExecutionEventRequest::~WorkflowExecutionEventRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionEventRequest) + SharedDtor(); +} + +void WorkflowExecutionEventRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete event_; +} + +void WorkflowExecutionEventRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionEventRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionEventRequest& WorkflowExecutionEventRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsWorkflowExecutionEventRequest(); + return *internal_default_instance(); +} + +WorkflowExecutionEventRequest* WorkflowExecutionEventRequest::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionEventRequest* n = new WorkflowExecutionEventRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && event_ != NULL) { + delete event_; + } + event_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionEventRequest) + 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 request_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_request_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.WorkflowExecutionEventRequest.request_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_event())); + } 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.WorkflowExecutionEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionEventRequest) + return false; +#undef DO_ +} + +void WorkflowExecutionEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowExecutionEventRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + if (this->has_event()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->event_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionEventRequest) +} + +::google::protobuf::uint8* WorkflowExecutionEventRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.WorkflowExecutionEventRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + if (this->has_event()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->event_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionEventRequest) + return target; +} + +size_t WorkflowExecutionEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionEventRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); + } + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + if (this->has_event()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->event_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionEventRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionEventRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionEventRequest::MergeFrom(const WorkflowExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + mutable_event()->::flyteidl::event::WorkflowExecutionEvent::MergeFrom(from.event()); + } +} + +void WorkflowExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionEventRequest::CopyFrom(const WorkflowExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionEventRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionEventRequest::Swap(WorkflowExecutionEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionEventRequest::InternalSwap(WorkflowExecutionEventRequest* other) { + using std::swap; + request_id_.Swap(&other->request_id_); + swap(event_, other->event_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionEventRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionEventResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionEventResponse::WorkflowExecutionEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsWorkflowExecutionEventResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionEventResponse) +} +WorkflowExecutionEventResponse::WorkflowExecutionEventResponse(const WorkflowExecutionEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionEventResponse) +} + +void WorkflowExecutionEventResponse::SharedCtor() { + _cached_size_ = 0; +} + +WorkflowExecutionEventResponse::~WorkflowExecutionEventResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionEventResponse) + SharedDtor(); +} + +void WorkflowExecutionEventResponse::SharedDtor() { +} + +void WorkflowExecutionEventResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionEventResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionEventResponse& WorkflowExecutionEventResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsWorkflowExecutionEventResponse(); + return *internal_default_instance(); +} + +WorkflowExecutionEventResponse* WorkflowExecutionEventResponse::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionEventResponse* n = new WorkflowExecutionEventResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionEventResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionEventResponse) + return false; +#undef DO_ +} + +void WorkflowExecutionEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionEventResponse) +} + +::google::protobuf::uint8* WorkflowExecutionEventResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionEventResponse) + return target; +} + +size_t WorkflowExecutionEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionEventResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionEventResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionEventResponse) + MergeFrom(*source); + } +} + +void WorkflowExecutionEventResponse::MergeFrom(const WorkflowExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionEventResponse::CopyFrom(const WorkflowExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionEventResponse::IsInitialized() const { + return true; +} + +void WorkflowExecutionEventResponse::Swap(WorkflowExecutionEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionEventResponse::InternalSwap(WorkflowExecutionEventResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionEventResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionEventRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::NodeExecutionEvent*>( + ::flyteidl::event::NodeExecutionEvent::internal_default_instance()); +} +void NodeExecutionEventRequest::clear_event() { + if (GetArenaNoVirtual() == NULL && event_ != NULL) { + delete event_; + } + event_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionEventRequest::kRequestIdFieldNumber; +const int NodeExecutionEventRequest::kEventFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionEventRequest::NodeExecutionEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsNodeExecutionEventRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionEventRequest) +} +NodeExecutionEventRequest::NodeExecutionEventRequest(const NodeExecutionEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + event_ = new ::flyteidl::event::NodeExecutionEvent(*from.event_); + } else { + event_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionEventRequest) +} + +void NodeExecutionEventRequest::SharedCtor() { + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + event_ = NULL; + _cached_size_ = 0; +} + +NodeExecutionEventRequest::~NodeExecutionEventRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionEventRequest) + SharedDtor(); +} + +void NodeExecutionEventRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete event_; +} + +void NodeExecutionEventRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionEventRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionEventRequest& NodeExecutionEventRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsNodeExecutionEventRequest(); + return *internal_default_instance(); +} + +NodeExecutionEventRequest* NodeExecutionEventRequest::New(::google::protobuf::Arena* arena) const { + NodeExecutionEventRequest* n = new NodeExecutionEventRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && event_ != NULL) { + delete event_; + } + event_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeExecutionEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionEventRequest) + 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 request_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_request_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionEventRequest.request_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_event())); + } 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.NodeExecutionEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionEventRequest) + return false; +#undef DO_ +} + +void NodeExecutionEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionEventRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + if (this->has_event()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->event_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionEventRequest) +} + +::google::protobuf::uint8* NodeExecutionEventRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionEventRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + if (this->has_event()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->event_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionEventRequest) + return target; +} + +size_t NodeExecutionEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionEventRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); + } + + // .flyteidl.event.NodeExecutionEvent event = 2; + if (this->has_event()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->event_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionEventRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionEventRequest) + MergeFrom(*source); + } +} + +void NodeExecutionEventRequest::MergeFrom(const NodeExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + mutable_event()->::flyteidl::event::NodeExecutionEvent::MergeFrom(from.event()); + } +} + +void NodeExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionEventRequest::CopyFrom(const NodeExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionEventRequest::IsInitialized() const { + return true; +} + +void NodeExecutionEventRequest::Swap(NodeExecutionEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionEventRequest::InternalSwap(NodeExecutionEventRequest* other) { + using std::swap; + request_id_.Swap(&other->request_id_); + swap(event_, other->event_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionEventRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionEventResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionEventResponse::NodeExecutionEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsNodeExecutionEventResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionEventResponse) +} +NodeExecutionEventResponse::NodeExecutionEventResponse(const NodeExecutionEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionEventResponse) +} + +void NodeExecutionEventResponse::SharedCtor() { + _cached_size_ = 0; +} + +NodeExecutionEventResponse::~NodeExecutionEventResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionEventResponse) + SharedDtor(); +} + +void NodeExecutionEventResponse::SharedDtor() { +} + +void NodeExecutionEventResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionEventResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionEventResponse& NodeExecutionEventResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsNodeExecutionEventResponse(); + return *internal_default_instance(); +} + +NodeExecutionEventResponse* NodeExecutionEventResponse::New(::google::protobuf::Arena* arena) const { + NodeExecutionEventResponse* n = new NodeExecutionEventResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool NodeExecutionEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionEventResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionEventResponse) + return false; +#undef DO_ +} + +void NodeExecutionEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionEventResponse) +} + +::google::protobuf::uint8* NodeExecutionEventResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionEventResponse) + return target; +} + +size_t NodeExecutionEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionEventResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionEventResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionEventResponse) + MergeFrom(*source); + } +} + +void NodeExecutionEventResponse::MergeFrom(const NodeExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void NodeExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionEventResponse::CopyFrom(const NodeExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionEventResponse::IsInitialized() const { + return true; +} + +void NodeExecutionEventResponse::Swap(NodeExecutionEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionEventResponse::InternalSwap(NodeExecutionEventResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionEventResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionEventRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::TaskExecutionEvent*>( + ::flyteidl::event::TaskExecutionEvent::internal_default_instance()); +} +void TaskExecutionEventRequest::clear_event() { + if (GetArenaNoVirtual() == NULL && event_ != NULL) { + delete event_; + } + event_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionEventRequest::kRequestIdFieldNumber; +const int TaskExecutionEventRequest::kEventFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionEventRequest::TaskExecutionEventRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsTaskExecutionEventRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionEventRequest) +} +TaskExecutionEventRequest::TaskExecutionEventRequest(const TaskExecutionEventRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.request_id().size() > 0) { + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + event_ = new ::flyteidl::event::TaskExecutionEvent(*from.event_); + } else { + event_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionEventRequest) +} + +void TaskExecutionEventRequest::SharedCtor() { + request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + event_ = NULL; + _cached_size_ = 0; +} + +TaskExecutionEventRequest::~TaskExecutionEventRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionEventRequest) + SharedDtor(); +} + +void TaskExecutionEventRequest::SharedDtor() { + request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete event_; +} + +void TaskExecutionEventRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionEventRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionEventRequest& TaskExecutionEventRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsTaskExecutionEventRequest(); + return *internal_default_instance(); +} + +TaskExecutionEventRequest* TaskExecutionEventRequest::New(::google::protobuf::Arena* arena) const { + TaskExecutionEventRequest* n = new TaskExecutionEventRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionEventRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && event_ != NULL) { + delete event_; + } + event_ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskExecutionEventRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionEventRequest) + 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 request_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_request_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionEventRequest.request_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_event())); + } 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.TaskExecutionEventRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionEventRequest) + return false; +#undef DO_ +} + +void TaskExecutionEventRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionEventRequest.request_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->request_id(), output); + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + if (this->has_event()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->event_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionEventRequest) +} + +::google::protobuf::uint8* TaskExecutionEventRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string request_id = 1; + if (this->request_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->request_id().data(), static_cast(this->request_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionEventRequest.request_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->request_id(), target); + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + if (this->has_event()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->event_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionEventRequest) + return target; +} + +size_t TaskExecutionEventRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionEventRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string request_id = 1; + if (this->request_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->request_id()); + } + + // .flyteidl.event.TaskExecutionEvent event = 2; + if (this->has_event()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->event_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionEventRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionEventRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionEventRequest) + MergeFrom(*source); + } +} + +void TaskExecutionEventRequest::MergeFrom(const TaskExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionEventRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.request_id().size() > 0) { + + request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); + } + if (from.has_event()) { + mutable_event()->::flyteidl::event::TaskExecutionEvent::MergeFrom(from.event()); + } +} + +void TaskExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionEventRequest::CopyFrom(const TaskExecutionEventRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionEventRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionEventRequest::IsInitialized() const { + return true; +} + +void TaskExecutionEventRequest::Swap(TaskExecutionEventRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionEventRequest::InternalSwap(TaskExecutionEventRequest* other) { + using std::swap; + request_id_.Swap(&other->request_id_); + swap(event_, other->event_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionEventRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionEventResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionEventResponse::TaskExecutionEventResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsTaskExecutionEventResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionEventResponse) +} +TaskExecutionEventResponse::TaskExecutionEventResponse(const TaskExecutionEventResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionEventResponse) +} + +void TaskExecutionEventResponse::SharedCtor() { + _cached_size_ = 0; +} + +TaskExecutionEventResponse::~TaskExecutionEventResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionEventResponse) + SharedDtor(); +} + +void TaskExecutionEventResponse::SharedDtor() { +} + +void TaskExecutionEventResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionEventResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionEventResponse& TaskExecutionEventResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsTaskExecutionEventResponse(); + return *internal_default_instance(); +} + +TaskExecutionEventResponse* TaskExecutionEventResponse::New(::google::protobuf::Arena* arena) const { + TaskExecutionEventResponse* n = new TaskExecutionEventResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionEventResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool TaskExecutionEventResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionEventResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionEventResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionEventResponse) + return false; +#undef DO_ +} + +void TaskExecutionEventResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionEventResponse) +} + +::google::protobuf::uint8* TaskExecutionEventResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionEventResponse) + return target; +} + +size_t TaskExecutionEventResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionEventResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionEventResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionEventResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionEventResponse) + MergeFrom(*source); + } +} + +void TaskExecutionEventResponse::MergeFrom(const TaskExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionEventResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionEventResponse::CopyFrom(const TaskExecutionEventResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionEventResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionEventResponse::IsInitialized() const { + return true; +} + +void TaskExecutionEventResponse::Swap(TaskExecutionEventResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionEventResponse::InternalSwap(TaskExecutionEventResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionEventResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h new file mode 100644 index 0000000000..d43ab69515 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h @@ -0,0 +1,1413 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fevent_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fevent_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/event/event.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fevent_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[8]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsEventErrorAlreadyInTerminalStateImpl(); +void InitDefaultsEventErrorAlreadyInTerminalState(); +void InitDefaultsEventFailureReasonImpl(); +void InitDefaultsEventFailureReason(); +void InitDefaultsWorkflowExecutionEventRequestImpl(); +void InitDefaultsWorkflowExecutionEventRequest(); +void InitDefaultsWorkflowExecutionEventResponseImpl(); +void InitDefaultsWorkflowExecutionEventResponse(); +void InitDefaultsNodeExecutionEventRequestImpl(); +void InitDefaultsNodeExecutionEventRequest(); +void InitDefaultsNodeExecutionEventResponseImpl(); +void InitDefaultsNodeExecutionEventResponse(); +void InitDefaultsTaskExecutionEventRequestImpl(); +void InitDefaultsTaskExecutionEventRequest(); +void InitDefaultsTaskExecutionEventResponseImpl(); +void InitDefaultsTaskExecutionEventResponse(); +inline void InitDefaults() { + InitDefaultsEventErrorAlreadyInTerminalState(); + InitDefaultsEventFailureReason(); + InitDefaultsWorkflowExecutionEventRequest(); + InitDefaultsWorkflowExecutionEventResponse(); + InitDefaultsNodeExecutionEventRequest(); + InitDefaultsNodeExecutionEventResponse(); + InitDefaultsTaskExecutionEventRequest(); + InitDefaultsTaskExecutionEventResponse(); +} +} // namespace protobuf_flyteidl_2fadmin_2fevent_2eproto +namespace flyteidl { +namespace admin { +class EventErrorAlreadyInTerminalState; +class EventErrorAlreadyInTerminalStateDefaultTypeInternal; +extern EventErrorAlreadyInTerminalStateDefaultTypeInternal _EventErrorAlreadyInTerminalState_default_instance_; +class EventFailureReason; +class EventFailureReasonDefaultTypeInternal; +extern EventFailureReasonDefaultTypeInternal _EventFailureReason_default_instance_; +class NodeExecutionEventRequest; +class NodeExecutionEventRequestDefaultTypeInternal; +extern NodeExecutionEventRequestDefaultTypeInternal _NodeExecutionEventRequest_default_instance_; +class NodeExecutionEventResponse; +class NodeExecutionEventResponseDefaultTypeInternal; +extern NodeExecutionEventResponseDefaultTypeInternal _NodeExecutionEventResponse_default_instance_; +class TaskExecutionEventRequest; +class TaskExecutionEventRequestDefaultTypeInternal; +extern TaskExecutionEventRequestDefaultTypeInternal _TaskExecutionEventRequest_default_instance_; +class TaskExecutionEventResponse; +class TaskExecutionEventResponseDefaultTypeInternal; +extern TaskExecutionEventResponseDefaultTypeInternal _TaskExecutionEventResponse_default_instance_; +class WorkflowExecutionEventRequest; +class WorkflowExecutionEventRequestDefaultTypeInternal; +extern WorkflowExecutionEventRequestDefaultTypeInternal _WorkflowExecutionEventRequest_default_instance_; +class WorkflowExecutionEventResponse; +class WorkflowExecutionEventResponseDefaultTypeInternal; +extern WorkflowExecutionEventResponseDefaultTypeInternal _WorkflowExecutionEventResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class EventErrorAlreadyInTerminalState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventErrorAlreadyInTerminalState) */ { + public: + EventErrorAlreadyInTerminalState(); + virtual ~EventErrorAlreadyInTerminalState(); + + EventErrorAlreadyInTerminalState(const EventErrorAlreadyInTerminalState& from); + + inline EventErrorAlreadyInTerminalState& operator=(const EventErrorAlreadyInTerminalState& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EventErrorAlreadyInTerminalState(EventErrorAlreadyInTerminalState&& from) noexcept + : EventErrorAlreadyInTerminalState() { + *this = ::std::move(from); + } + + inline EventErrorAlreadyInTerminalState& operator=(EventErrorAlreadyInTerminalState&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const EventErrorAlreadyInTerminalState& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EventErrorAlreadyInTerminalState* internal_default_instance() { + return reinterpret_cast( + &_EventErrorAlreadyInTerminalState_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(EventErrorAlreadyInTerminalState* other); + friend void swap(EventErrorAlreadyInTerminalState& a, EventErrorAlreadyInTerminalState& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EventErrorAlreadyInTerminalState* New() const PROTOBUF_FINAL { return New(NULL); } + + EventErrorAlreadyInTerminalState* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const EventErrorAlreadyInTerminalState& from); + void MergeFrom(const EventErrorAlreadyInTerminalState& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(EventErrorAlreadyInTerminalState* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string current_phase = 1; + void clear_current_phase(); + static const int kCurrentPhaseFieldNumber = 1; + const ::std::string& current_phase() const; + void set_current_phase(const ::std::string& value); + #if LANG_CXX11 + void set_current_phase(::std::string&& value); + #endif + void set_current_phase(const char* value); + void set_current_phase(const char* value, size_t size); + ::std::string* mutable_current_phase(); + ::std::string* release_current_phase(); + void set_allocated_current_phase(::std::string* current_phase); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr current_phase_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventErrorAlreadyInTerminalStateImpl(); +}; +// ------------------------------------------------------------------- + +class EventFailureReason : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventFailureReason) */ { + public: + EventFailureReason(); + virtual ~EventFailureReason(); + + EventFailureReason(const EventFailureReason& from); + + inline EventFailureReason& operator=(const EventFailureReason& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EventFailureReason(EventFailureReason&& from) noexcept + : EventFailureReason() { + *this = ::std::move(from); + } + + inline EventFailureReason& operator=(EventFailureReason&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const EventFailureReason& default_instance(); + + enum ReasonCase { + kAlreadyInTerminalState = 1, + REASON_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EventFailureReason* internal_default_instance() { + return reinterpret_cast( + &_EventFailureReason_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(EventFailureReason* other); + friend void swap(EventFailureReason& a, EventFailureReason& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EventFailureReason* New() const PROTOBUF_FINAL { return New(NULL); } + + EventFailureReason* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const EventFailureReason& from); + void MergeFrom(const EventFailureReason& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(EventFailureReason* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + bool has_already_in_terminal_state() const; + void clear_already_in_terminal_state(); + static const int kAlreadyInTerminalStateFieldNumber = 1; + const ::flyteidl::admin::EventErrorAlreadyInTerminalState& already_in_terminal_state() const; + ::flyteidl::admin::EventErrorAlreadyInTerminalState* release_already_in_terminal_state(); + ::flyteidl::admin::EventErrorAlreadyInTerminalState* mutable_already_in_terminal_state(); + void set_allocated_already_in_terminal_state(::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state); + + ReasonCase reason_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + private: + void set_has_already_in_terminal_state(); + + inline bool has_reason() const; + void clear_reason(); + inline void clear_has_reason(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReasonUnion { + ReasonUnion() {} + ::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state_; + } reason_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsEventFailureReasonImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionEventRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionEventRequest) */ { + public: + WorkflowExecutionEventRequest(); + virtual ~WorkflowExecutionEventRequest(); + + WorkflowExecutionEventRequest(const WorkflowExecutionEventRequest& from); + + inline WorkflowExecutionEventRequest& operator=(const WorkflowExecutionEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionEventRequest(WorkflowExecutionEventRequest&& from) noexcept + : WorkflowExecutionEventRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionEventRequest& operator=(WorkflowExecutionEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionEventRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionEventRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(WorkflowExecutionEventRequest* other); + friend void swap(WorkflowExecutionEventRequest& a, WorkflowExecutionEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionEventRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionEventRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionEventRequest& from); + void MergeFrom(const WorkflowExecutionEventRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // .flyteidl.event.WorkflowExecutionEvent event = 2; + bool has_event() const; + void clear_event(); + static const int kEventFieldNumber = 2; + const ::flyteidl::event::WorkflowExecutionEvent& event() const; + ::flyteidl::event::WorkflowExecutionEvent* release_event(); + ::flyteidl::event::WorkflowExecutionEvent* mutable_event(); + void set_allocated_event(::flyteidl::event::WorkflowExecutionEvent* event); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; + ::flyteidl::event::WorkflowExecutionEvent* event_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsWorkflowExecutionEventRequestImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionEventResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionEventResponse) */ { + public: + WorkflowExecutionEventResponse(); + virtual ~WorkflowExecutionEventResponse(); + + WorkflowExecutionEventResponse(const WorkflowExecutionEventResponse& from); + + inline WorkflowExecutionEventResponse& operator=(const WorkflowExecutionEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionEventResponse(WorkflowExecutionEventResponse&& from) noexcept + : WorkflowExecutionEventResponse() { + *this = ::std::move(from); + } + + inline WorkflowExecutionEventResponse& operator=(WorkflowExecutionEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionEventResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionEventResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(WorkflowExecutionEventResponse* other); + friend void swap(WorkflowExecutionEventResponse& a, WorkflowExecutionEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionEventResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionEventResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionEventResponse& from); + void MergeFrom(const WorkflowExecutionEventResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsWorkflowExecutionEventResponseImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionEventRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionEventRequest) */ { + public: + NodeExecutionEventRequest(); + virtual ~NodeExecutionEventRequest(); + + NodeExecutionEventRequest(const NodeExecutionEventRequest& from); + + inline NodeExecutionEventRequest& operator=(const NodeExecutionEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionEventRequest(NodeExecutionEventRequest&& from) noexcept + : NodeExecutionEventRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionEventRequest& operator=(NodeExecutionEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionEventRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionEventRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(NodeExecutionEventRequest* other); + friend void swap(NodeExecutionEventRequest& a, NodeExecutionEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionEventRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionEventRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionEventRequest& from); + void MergeFrom(const NodeExecutionEventRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // .flyteidl.event.NodeExecutionEvent event = 2; + bool has_event() const; + void clear_event(); + static const int kEventFieldNumber = 2; + const ::flyteidl::event::NodeExecutionEvent& event() const; + ::flyteidl::event::NodeExecutionEvent* release_event(); + ::flyteidl::event::NodeExecutionEvent* mutable_event(); + void set_allocated_event(::flyteidl::event::NodeExecutionEvent* event); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; + ::flyteidl::event::NodeExecutionEvent* event_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsNodeExecutionEventRequestImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionEventResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionEventResponse) */ { + public: + NodeExecutionEventResponse(); + virtual ~NodeExecutionEventResponse(); + + NodeExecutionEventResponse(const NodeExecutionEventResponse& from); + + inline NodeExecutionEventResponse& operator=(const NodeExecutionEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionEventResponse(NodeExecutionEventResponse&& from) noexcept + : NodeExecutionEventResponse() { + *this = ::std::move(from); + } + + inline NodeExecutionEventResponse& operator=(NodeExecutionEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionEventResponse* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionEventResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(NodeExecutionEventResponse* other); + friend void swap(NodeExecutionEventResponse& a, NodeExecutionEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionEventResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionEventResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionEventResponse& from); + void MergeFrom(const NodeExecutionEventResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsNodeExecutionEventResponseImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionEventRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionEventRequest) */ { + public: + TaskExecutionEventRequest(); + virtual ~TaskExecutionEventRequest(); + + TaskExecutionEventRequest(const TaskExecutionEventRequest& from); + + inline TaskExecutionEventRequest& operator=(const TaskExecutionEventRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionEventRequest(TaskExecutionEventRequest&& from) noexcept + : TaskExecutionEventRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionEventRequest& operator=(TaskExecutionEventRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionEventRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionEventRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionEventRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(TaskExecutionEventRequest* other); + friend void swap(TaskExecutionEventRequest& a, TaskExecutionEventRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionEventRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionEventRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionEventRequest& from); + void MergeFrom(const TaskExecutionEventRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionEventRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string request_id = 1; + void clear_request_id(); + static const int kRequestIdFieldNumber = 1; + const ::std::string& request_id() const; + void set_request_id(const ::std::string& value); + #if LANG_CXX11 + void set_request_id(::std::string&& value); + #endif + void set_request_id(const char* value); + void set_request_id(const char* value, size_t size); + ::std::string* mutable_request_id(); + ::std::string* release_request_id(); + void set_allocated_request_id(::std::string* request_id); + + // .flyteidl.event.TaskExecutionEvent event = 2; + bool has_event() const; + void clear_event(); + static const int kEventFieldNumber = 2; + const ::flyteidl::event::TaskExecutionEvent& event() const; + ::flyteidl::event::TaskExecutionEvent* release_event(); + ::flyteidl::event::TaskExecutionEvent* mutable_event(); + void set_allocated_event(::flyteidl::event::TaskExecutionEvent* event); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr request_id_; + ::flyteidl::event::TaskExecutionEvent* event_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsTaskExecutionEventRequestImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionEventResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionEventResponse) */ { + public: + TaskExecutionEventResponse(); + virtual ~TaskExecutionEventResponse(); + + TaskExecutionEventResponse(const TaskExecutionEventResponse& from); + + inline TaskExecutionEventResponse& operator=(const TaskExecutionEventResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionEventResponse(TaskExecutionEventResponse&& from) noexcept + : TaskExecutionEventResponse() { + *this = ::std::move(from); + } + + inline TaskExecutionEventResponse& operator=(TaskExecutionEventResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionEventResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionEventResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionEventResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(TaskExecutionEventResponse* other); + friend void swap(TaskExecutionEventResponse& a, TaskExecutionEventResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionEventResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionEventResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionEventResponse& from); + void MergeFrom(const TaskExecutionEventResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionEventResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fevent_2eproto::InitDefaultsTaskExecutionEventResponseImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EventErrorAlreadyInTerminalState + +// string current_phase = 1; +inline void EventErrorAlreadyInTerminalState::clear_current_phase() { + current_phase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EventErrorAlreadyInTerminalState::current_phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) + return current_phase_.GetNoArena(); +} +inline void EventErrorAlreadyInTerminalState::set_current_phase(const ::std::string& value) { + + current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +#if LANG_CXX11 +inline void EventErrorAlreadyInTerminalState::set_current_phase(::std::string&& value) { + + current_phase_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +#endif +inline void EventErrorAlreadyInTerminalState::set_current_phase(const char* value) { + GOOGLE_DCHECK(value != NULL); + + current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +inline void EventErrorAlreadyInTerminalState::set_current_phase(const char* value, size_t size) { + + current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} +inline ::std::string* EventErrorAlreadyInTerminalState::mutable_current_phase() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) + return current_phase_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EventErrorAlreadyInTerminalState::release_current_phase() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) + + return current_phase_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EventErrorAlreadyInTerminalState::set_allocated_current_phase(::std::string* current_phase) { + if (current_phase != NULL) { + + } else { + + } + current_phase_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_phase); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) +} + +// ------------------------------------------------------------------- + +// EventFailureReason + +// .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; +inline bool EventFailureReason::has_already_in_terminal_state() const { + return reason_case() == kAlreadyInTerminalState; +} +inline void EventFailureReason::set_has_already_in_terminal_state() { + _oneof_case_[0] = kAlreadyInTerminalState; +} +inline void EventFailureReason::clear_already_in_terminal_state() { + if (has_already_in_terminal_state()) { + delete reason_.already_in_terminal_state_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::EventErrorAlreadyInTerminalState* EventFailureReason::release_already_in_terminal_state() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EventFailureReason.already_in_terminal_state) + if (has_already_in_terminal_state()) { + clear_has_reason(); + ::flyteidl::admin::EventErrorAlreadyInTerminalState* temp = reason_.already_in_terminal_state_; + reason_.already_in_terminal_state_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::EventErrorAlreadyInTerminalState& EventFailureReason::already_in_terminal_state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EventFailureReason.already_in_terminal_state) + return has_already_in_terminal_state() + ? *reason_.already_in_terminal_state_ + : *reinterpret_cast< ::flyteidl::admin::EventErrorAlreadyInTerminalState*>(&::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_); +} +inline ::flyteidl::admin::EventErrorAlreadyInTerminalState* EventFailureReason::mutable_already_in_terminal_state() { + if (!has_already_in_terminal_state()) { + clear_reason(); + set_has_already_in_terminal_state(); + reason_.already_in_terminal_state_ = new ::flyteidl::admin::EventErrorAlreadyInTerminalState; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventFailureReason.already_in_terminal_state) + return reason_.already_in_terminal_state_; +} + +inline bool EventFailureReason::has_reason() const { + return reason_case() != REASON_NOT_SET; +} +inline void EventFailureReason::clear_has_reason() { + _oneof_case_[0] = REASON_NOT_SET; +} +inline EventFailureReason::ReasonCase EventFailureReason::reason_case() const { + return EventFailureReason::ReasonCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// WorkflowExecutionEventRequest + +// string request_id = 1; +inline void WorkflowExecutionEventRequest::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionEventRequest::request_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionEventRequest.request_id) + return request_id_.GetNoArena(); +} +inline void WorkflowExecutionEventRequest::set_request_id(const ::std::string& value) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +#if LANG_CXX11 +inline void WorkflowExecutionEventRequest::set_request_id(::std::string&& value) { + + request_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +#endif +inline void WorkflowExecutionEventRequest::set_request_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +inline void WorkflowExecutionEventRequest::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} +inline ::std::string* WorkflowExecutionEventRequest::mutable_request_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionEventRequest.request_id) + return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionEventRequest::release_request_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionEventRequest.request_id) + + return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { + if (request_id != NULL) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionEventRequest.request_id) +} + +// .flyteidl.event.WorkflowExecutionEvent event = 2; +inline bool WorkflowExecutionEventRequest::has_event() const { + return this != internal_default_instance() && event_ != NULL; +} +inline const ::flyteidl::event::WorkflowExecutionEvent& WorkflowExecutionEventRequest::event() const { + const ::flyteidl::event::WorkflowExecutionEvent* p = event_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionEventRequest.event) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::event::_WorkflowExecutionEvent_default_instance_); +} +inline ::flyteidl::event::WorkflowExecutionEvent* WorkflowExecutionEventRequest::release_event() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionEventRequest.event) + + ::flyteidl::event::WorkflowExecutionEvent* temp = event_; + event_ = NULL; + return temp; +} +inline ::flyteidl::event::WorkflowExecutionEvent* WorkflowExecutionEventRequest::mutable_event() { + + if (event_ == NULL) { + event_ = new ::flyteidl::event::WorkflowExecutionEvent; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionEventRequest.event) + return event_; +} +inline void WorkflowExecutionEventRequest::set_allocated_event(::flyteidl::event::WorkflowExecutionEvent* event) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); + } + if (event) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + event_ = event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionEventRequest.event) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionEventResponse + +// ------------------------------------------------------------------- + +// NodeExecutionEventRequest + +// string request_id = 1; +inline void NodeExecutionEventRequest::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEventRequest::request_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionEventRequest.request_id) + return request_id_.GetNoArena(); +} +inline void NodeExecutionEventRequest::set_request_id(const ::std::string& value) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +#if LANG_CXX11 +inline void NodeExecutionEventRequest::set_request_id(::std::string&& value) { + + request_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +#endif +inline void NodeExecutionEventRequest::set_request_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +inline void NodeExecutionEventRequest::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionEventRequest.request_id) +} +inline ::std::string* NodeExecutionEventRequest::mutable_request_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionEventRequest.request_id) + return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEventRequest::release_request_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionEventRequest.request_id) + + return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { + if (request_id != NULL) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionEventRequest.request_id) +} + +// .flyteidl.event.NodeExecutionEvent event = 2; +inline bool NodeExecutionEventRequest::has_event() const { + return this != internal_default_instance() && event_ != NULL; +} +inline const ::flyteidl::event::NodeExecutionEvent& NodeExecutionEventRequest::event() const { + const ::flyteidl::event::NodeExecutionEvent* p = event_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionEventRequest.event) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::event::_NodeExecutionEvent_default_instance_); +} +inline ::flyteidl::event::NodeExecutionEvent* NodeExecutionEventRequest::release_event() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionEventRequest.event) + + ::flyteidl::event::NodeExecutionEvent* temp = event_; + event_ = NULL; + return temp; +} +inline ::flyteidl::event::NodeExecutionEvent* NodeExecutionEventRequest::mutable_event() { + + if (event_ == NULL) { + event_ = new ::flyteidl::event::NodeExecutionEvent; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionEventRequest.event) + return event_; +} +inline void NodeExecutionEventRequest::set_allocated_event(::flyteidl::event::NodeExecutionEvent* event) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); + } + if (event) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + event_ = event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionEventRequest.event) +} + +// ------------------------------------------------------------------- + +// NodeExecutionEventResponse + +// ------------------------------------------------------------------- + +// TaskExecutionEventRequest + +// string request_id = 1; +inline void TaskExecutionEventRequest::clear_request_id() { + request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEventRequest::request_id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionEventRequest.request_id) + return request_id_.GetNoArena(); +} +inline void TaskExecutionEventRequest::set_request_id(const ::std::string& value) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +#if LANG_CXX11 +inline void TaskExecutionEventRequest::set_request_id(::std::string&& value) { + + request_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +#endif +inline void TaskExecutionEventRequest::set_request_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +inline void TaskExecutionEventRequest::set_request_id(const char* value, size_t size) { + + request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionEventRequest.request_id) +} +inline ::std::string* TaskExecutionEventRequest::mutable_request_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionEventRequest.request_id) + return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEventRequest::release_request_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionEventRequest.request_id) + + return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { + if (request_id != NULL) { + + } else { + + } + request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionEventRequest.request_id) +} + +// .flyteidl.event.TaskExecutionEvent event = 2; +inline bool TaskExecutionEventRequest::has_event() const { + return this != internal_default_instance() && event_ != NULL; +} +inline const ::flyteidl::event::TaskExecutionEvent& TaskExecutionEventRequest::event() const { + const ::flyteidl::event::TaskExecutionEvent* p = event_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionEventRequest.event) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::event::_TaskExecutionEvent_default_instance_); +} +inline ::flyteidl::event::TaskExecutionEvent* TaskExecutionEventRequest::release_event() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionEventRequest.event) + + ::flyteidl::event::TaskExecutionEvent* temp = event_; + event_ = NULL; + return temp; +} +inline ::flyteidl::event::TaskExecutionEvent* TaskExecutionEventRequest::mutable_event() { + + if (event_ == NULL) { + event_ = new ::flyteidl::event::TaskExecutionEvent; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionEventRequest.event) + return event_; +} +inline void TaskExecutionEventRequest::set_allocated_event(::flyteidl::event::TaskExecutionEvent* event) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); + } + if (event) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + event = ::google::protobuf::internal::GetOwnedMessage( + message_arena, event, submessage_arena); + } + + } else { + + } + event_ = event; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionEventRequest.event) +} + +// ------------------------------------------------------------------- + +// TaskExecutionEventResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc new file mode 100644 index 0000000000..6df718bf23 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/execution.proto + +#include "flyteidl/admin/execution.pb.h" +#include "flyteidl/admin/execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h new file mode 100644 index 0000000000..eb554cf2a4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/execution.proto +#ifndef GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED + +#include "flyteidl/admin/execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc new file mode 100644 index 0000000000..39863ddea2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc @@ -0,0 +1,6230 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +#include "flyteidl/admin/execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class ExecutionCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionCreateRequest_default_instance_; +class ExecutionRelaunchRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionRelaunchRequest_default_instance_; +class ExecutionCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionCreateResponse_default_instance_; +class WorkflowExecutionGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecutionGetRequest_default_instance_; +class ExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Execution_default_instance_; +class ExecutionListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionList_default_instance_; +class LiteralMapBlobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::LiteralMap* values_; + ::google::protobuf::internal::ArenaStringPtr uri_; +} _LiteralMapBlob_default_instance_; +class ExecutionClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::admin::LiteralMapBlob* outputs_; + const ::flyteidl::core::ExecutionError* error_; + ::google::protobuf::internal::ArenaStringPtr abort_cause_; +} _ExecutionClosure_default_instance_; +class ExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionMetadata_default_instance_; +class NotificationListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NotificationList_default_instance_; +class ExecutionSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::admin::NotificationList* notifications_; + bool disable_all_; +} _ExecutionSpec_default_instance_; +class ExecutionTerminateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionTerminateRequest_default_instance_; +class ExecutionTerminateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionTerminateResponse_default_instance_; +class WorkflowExecutionGetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecutionGetDataRequest_default_instance_; +class WorkflowExecutionGetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecutionGetDataResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fexecution_2eproto { +void InitDefaultsExecutionCreateRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionSpec(); + { + void* ptr = &::flyteidl::admin::_ExecutionCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionCreateRequest::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionCreateRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionCreateRequestImpl); +} + +void InitDefaultsExecutionRelaunchRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionRelaunchRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionRelaunchRequest::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionRelaunchRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionRelaunchRequestImpl); +} + +void InitDefaultsExecutionCreateResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_ExecutionCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionCreateResponse::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionCreateResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionCreateResponseImpl); +} + +void InitDefaultsWorkflowExecutionGetRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetRequest::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionGetRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionGetRequestImpl); +} + +void InitDefaultsExecutionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionSpec(); + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionClosure(); + { + void* ptr = &::flyteidl::admin::_Execution_default_instance_; + new (ptr) ::flyteidl::admin::Execution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Execution::InitAsDefaultInstance(); +} + +void InitDefaultsExecution() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionImpl); +} + +void InitDefaultsExecutionListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecution(); + { + void* ptr = &::flyteidl::admin::_ExecutionList_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionList::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionListImpl); +} + +void InitDefaultsLiteralMapBlobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + { + void* ptr = &::flyteidl::admin::_LiteralMapBlob_default_instance_; + new (ptr) ::flyteidl::admin::LiteralMapBlob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LiteralMapBlob::InitAsDefaultInstance(); +} + +void InitDefaultsLiteralMapBlob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLiteralMapBlobImpl); +} + +void InitDefaultsExecutionClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsLiteralMapBlob(); + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNotification(); + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + { + void* ptr = &::flyteidl::admin::_ExecutionClosure_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionClosure::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionClosureImpl); +} + +void InitDefaultsExecutionMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_ExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionMetadataImpl); +} + +void InitDefaultsNotificationListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNotification(); + { + void* ptr = &::flyteidl::admin::_NotificationList_default_instance_; + new (ptr) ::flyteidl::admin::NotificationList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NotificationList::InitAsDefaultInstance(); +} + +void InitDefaultsNotificationList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNotificationListImpl); +} + +void InitDefaultsExecutionSpecImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionMetadata(); + protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsNotificationList(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsLabels(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsAnnotations(); + { + void* ptr = &::flyteidl::admin::_ExecutionSpec_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionSpec::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionSpec() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionSpecImpl); +} + +void InitDefaultsExecutionTerminateRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_ExecutionTerminateRequest_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionTerminateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionTerminateRequest::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionTerminateRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionTerminateRequestImpl); +} + +void InitDefaultsExecutionTerminateResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_ExecutionTerminateResponse_default_instance_; + new (ptr) ::flyteidl::admin::ExecutionTerminateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ExecutionTerminateResponse::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionTerminateResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionTerminateResponseImpl); +} + +void InitDefaultsWorkflowExecutionGetDataRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetDataRequest::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionGetDataRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionGetDataRequestImpl); +} + +void InitDefaultsWorkflowExecutionGetDataResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsUrlBlob(); + { + void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowExecutionGetDataResponse::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionGetDataResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionGetDataResponseImpl); +} + +::google::protobuf::Metadata file_level_metadata[15]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, project_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, domain_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, spec_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, name_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Execution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Execution, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Execution, spec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Execution, closure_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionList, executions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, values_), + offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, uri_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, data_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, outputs_), + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, error_), + offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, abort_cause_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, computed_inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, started_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, duration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, created_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, updated_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, notifications_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, workflow_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, output_result_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, mode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, principal_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, nesting_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, scheduled_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, parent_node_execution_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, reference_execution_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NotificationList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NotificationList, notifications_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, launch_plan_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, metadata_), + offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, notifications_), + offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, disable_all_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, labels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, annotations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, notification_overrides_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, cause_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, outputs_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::ExecutionCreateRequest)}, + { 9, -1, sizeof(::flyteidl::admin::ExecutionRelaunchRequest)}, + { 16, -1, sizeof(::flyteidl::admin::ExecutionCreateResponse)}, + { 22, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetRequest)}, + { 28, -1, sizeof(::flyteidl::admin::Execution)}, + { 36, -1, sizeof(::flyteidl::admin::ExecutionList)}, + { 43, -1, sizeof(::flyteidl::admin::LiteralMapBlob)}, + { 51, -1, sizeof(::flyteidl::admin::ExecutionClosure)}, + { 68, -1, sizeof(::flyteidl::admin::ExecutionMetadata)}, + { 79, -1, sizeof(::flyteidl::admin::NotificationList)}, + { 85, -1, sizeof(::flyteidl::admin::ExecutionSpec)}, + { 98, -1, sizeof(::flyteidl::admin::ExecutionTerminateRequest)}, + { 105, -1, sizeof(::flyteidl::admin::ExecutionTerminateResponse)}, + { 110, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataRequest)}, + { 116, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_ExecutionCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Execution_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LiteralMapBlob_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NotificationList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionTerminateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ExecutionTerminateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/execution.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 15); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\036flyteidl/admin/execution.proto\022\016flytei" + "dl.admin\032\033flyteidl/admin/common.proto\032\034f" + "lyteidl/core/literals.proto\032\035flyteidl/co" + "re/execution.proto\032\036flyteidl/core/identi" + "fier.proto\032\036google/protobuf/duration.pro" + "to\032\037google/protobuf/timestamp.proto\"t\n\026E" + "xecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022\016" + "\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 \001" + "(\0132\035.flyteidl.admin.ExecutionSpec\"`\n\030Exe" + "cutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*.flyt" + "eidl.core.WorkflowExecutionIdentifier\022\014\n" + "\004name\030\003 \001(\t\"Q\n\027ExecutionCreateResponse\0226" + "\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExecu" + "tionIdentifier\"U\n\033WorkflowExecutionGetRe" + "quest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Workfl" + "owExecutionIdentifier\"\243\001\n\tExecution\0226\n\002i" + "d\030\001 \001(\0132*.flyteidl.core.WorkflowExecutio" + "nIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl.adm" + "in.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 .flyt" + "eidl.admin.ExecutionClosure\"M\n\rExecution" + "List\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl.admi" + "n.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016LiteralMap" + "Blob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core.Lit" + "eralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"\252\004\n\020Exe" + "cutionClosure\0221\n\007outputs\030\001 \001(\0132\036.flyteid" + "l.admin.LiteralMapBlobH\000\022.\n\005error\030\002 \001(\0132" + "\035.flyteidl.core.ExecutionErrorH\000\022\025\n\013abor" + "t_cause\030\n \001(\tH\000\0222\n\017computed_inputs\030\003 \001(\013" + "2\031.flyteidl.core.LiteralMap\0225\n\005phase\030\004 \001" + "(\0162&.flyteidl.core.WorkflowExecution.Pha" + "se\022.\n\nstarted_at\030\005 \001(\0132\032.google.protobuf" + ".Timestamp\022+\n\010duration\030\006 \001(\0132\031.google.pr" + "otobuf.Duration\022.\n\ncreated_at\030\007 \001(\0132\032.go" + "ogle.protobuf.Timestamp\022.\n\nupdated_at\030\010 " + "\001(\0132\032.google.protobuf.Timestamp\0223\n\rnotif" + "ications\030\t \003(\0132\034.flyteidl.admin.Notifica" + "tion\022.\n\013workflow_id\030\013 \001(\0132\031.flyteidl.cor" + "e.IdentifierB\017\n\routput_result\"\222\003\n\021Execut" + "ionMetadata\022=\n\004mode\030\001 \001(\0162/.flyteidl.adm" + "in.ExecutionMetadata.ExecutionMode\022\021\n\tpr" + "incipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014schedu" + "led_at\030\004 \001(\0132\032.google.protobuf.Timestamp" + "\022E\n\025parent_node_execution\030\005 \001(\0132&.flytei" + "dl.core.NodeExecutionIdentifier\022G\n\023refer" + "ence_execution\030\020 \001(\0132*.flyteidl.core.Wor" + "kflowExecutionIdentifier\"X\n\rExecutionMod" + "e\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED\020\001\022\n\n\006SYSTEM\020\002" + "\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WORKFLOW\020\004\"G\n\020No" + "tificationList\0223\n\rnotifications\030\001 \003(\0132\034." + "flyteidl.admin.Notification\"\353\002\n\rExecutio" + "nSpec\022.\n\013launch_plan\030\001 \001(\0132\031.flyteidl.co" + "re.Identifier\022)\n\006inputs\030\002 \001(\0132\031.flyteidl" + ".core.LiteralMap\0223\n\010metadata\030\003 \001(\0132!.fly" + "teidl.admin.ExecutionMetadata\0229\n\rnotific" + "ations\030\005 \001(\0132 .flyteidl.admin.Notificati" + "onListH\000\022\025\n\013disable_all\030\006 \001(\010H\000\022&\n\006label" + "s\030\007 \001(\0132\026.flyteidl.admin.Labels\0220\n\013annot" + "ations\030\010 \001(\0132\033.flyteidl.admin.Annotation" + "sB\030\n\026notification_overridesJ\004\010\004\020\005\"b\n\031Exe" + "cutionTerminateRequest\0226\n\002id\030\001 \001(\0132*.fly" + "teidl.core.WorkflowExecutionIdentifier\022\r" + "\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTerminateRespo" + "nse\"Y\n\037WorkflowExecutionGetDataRequest\0226" + "\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExecu" + "tionIdentifier\"L\n WorkflowExecutionGetDa" + "taResponse\022(\n\007outputs\030\001 \001(\0132\027.flyteidl.a" + "dmin.UrlBlobB3Z1github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 2713); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/execution.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fexecution_2eproto +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor() { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_enum_descriptors[0]; +} +bool ExecutionMetadata_ExecutionMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ExecutionMetadata_ExecutionMode ExecutionMetadata::MANUAL; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::SCHEDULED; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::SYSTEM; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::RELAUNCH; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::CHILD_WORKFLOW; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MIN; +const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MAX; +const int ExecutionMetadata::ExecutionMode_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void ExecutionCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( + ::flyteidl::admin::ExecutionSpec::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionCreateRequest::kProjectFieldNumber; +const int ExecutionCreateRequest::kDomainFieldNumber; +const int ExecutionCreateRequest::kNameFieldNumber; +const int ExecutionCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionCreateRequest::ExecutionCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionCreateRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateRequest) +} +ExecutionCreateRequest::ExecutionCreateRequest(const ExecutionCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); + } else { + spec_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateRequest) +} + +void ExecutionCreateRequest::SharedCtor() { + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + spec_ = NULL; + _cached_size_ = 0; +} + +ExecutionCreateRequest::~ExecutionCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateRequest) + SharedDtor(); +} + +void ExecutionCreateRequest::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete spec_; +} + +void ExecutionCreateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionCreateRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionCreateRequest& ExecutionCreateRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionCreateRequest(); + return *internal_default_instance(); +} + +ExecutionCreateRequest* ExecutionCreateRequest::New(::google::protobuf::Arena* arena) const { + ExecutionCreateRequest* n = new ExecutionCreateRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; + _internal_metadata_.Clear(); +} + +bool ExecutionCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionCreateRequest) + 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 project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionCreateRequest.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionCreateRequest.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionCreateRequest.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } 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.ExecutionCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateRequest) + return false; +#undef DO_ +} + +void ExecutionCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->name(), output); + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->spec_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionCreateRequest) +} + +::google::protobuf::uint8* ExecutionCreateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionCreateRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->name(), target); + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->spec_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionCreateRequest) + return target; +} + +size_t ExecutionCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 3; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.admin.ExecutionSpec spec = 4; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionCreateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateRequest) + MergeFrom(*source); + } +} + +void ExecutionCreateRequest::MergeFrom(const ExecutionCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); + } +} + +void ExecutionCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionCreateRequest::CopyFrom(const ExecutionCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionCreateRequest::IsInitialized() const { + return true; +} + +void ExecutionCreateRequest::Swap(ExecutionCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionCreateRequest::InternalSwap(ExecutionCreateRequest* other) { + using std::swap; + project_.Swap(&other->project_); + domain_.Swap(&other->domain_); + name_.Swap(&other->name_); + swap(spec_, other->spec_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionCreateRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionRelaunchRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void ExecutionRelaunchRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionRelaunchRequest::kIdFieldNumber; +const int ExecutionRelaunchRequest::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionRelaunchRequest::ExecutionRelaunchRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionRelaunchRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionRelaunchRequest) +} +ExecutionRelaunchRequest::ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionRelaunchRequest) +} + +void ExecutionRelaunchRequest::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_ = NULL; + _cached_size_ = 0; +} + +ExecutionRelaunchRequest::~ExecutionRelaunchRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionRelaunchRequest) + SharedDtor(); +} + +void ExecutionRelaunchRequest::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; +} + +void ExecutionRelaunchRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionRelaunchRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionRelaunchRequest& ExecutionRelaunchRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionRelaunchRequest(); + return *internal_default_instance(); +} + +ExecutionRelaunchRequest* ExecutionRelaunchRequest::New(::google::protobuf::Arena* arena) const { + ExecutionRelaunchRequest* n = new ExecutionRelaunchRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionRelaunchRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool ExecutionRelaunchRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionRelaunchRequest) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string name = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionRelaunchRequest.name")); + } 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.ExecutionRelaunchRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionRelaunchRequest) + return false; +#undef DO_ +} + +void ExecutionRelaunchRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionRelaunchRequest.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->name(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionRelaunchRequest) +} + +::google::protobuf::uint8* ExecutionRelaunchRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // string name = 3; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionRelaunchRequest.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->name(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionRelaunchRequest) + return target; +} + +size_t ExecutionRelaunchRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionRelaunchRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 3; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionRelaunchRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionRelaunchRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionRelaunchRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionRelaunchRequest) + MergeFrom(*source); + } +} + +void ExecutionRelaunchRequest::MergeFrom(const ExecutionRelaunchRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ExecutionRelaunchRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionRelaunchRequest::CopyFrom(const ExecutionRelaunchRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionRelaunchRequest::IsInitialized() const { + return true; +} + +void ExecutionRelaunchRequest::Swap(ExecutionRelaunchRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionRelaunchRequest::InternalSwap(ExecutionRelaunchRequest* other) { + using std::swap; + name_.Swap(&other->name_); + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionRelaunchRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionCreateResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionCreateResponse_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void ExecutionCreateResponse::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionCreateResponse::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionCreateResponse::ExecutionCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionCreateResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateResponse) +} +ExecutionCreateResponse::ExecutionCreateResponse(const ExecutionCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateResponse) +} + +void ExecutionCreateResponse::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +ExecutionCreateResponse::~ExecutionCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateResponse) + SharedDtor(); +} + +void ExecutionCreateResponse::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ExecutionCreateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionCreateResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionCreateResponse& ExecutionCreateResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionCreateResponse(); + return *internal_default_instance(); +} + +ExecutionCreateResponse* ExecutionCreateResponse::New(::google::protobuf::Arena* arena) const { + ExecutionCreateResponse* n = new ExecutionCreateResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool ExecutionCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionCreateResponse) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.ExecutionCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateResponse) + return false; +#undef DO_ +} + +void ExecutionCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionCreateResponse) +} + +::google::protobuf::uint8* ExecutionCreateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionCreateResponse) + return target; +} + +size_t ExecutionCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionCreateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateResponse) + MergeFrom(*source); + } +} + +void ExecutionCreateResponse::MergeFrom(const ExecutionCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ExecutionCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionCreateResponse::CopyFrom(const ExecutionCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionCreateResponse::IsInitialized() const { + return true; +} + +void ExecutionCreateResponse::Swap(ExecutionCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionCreateResponse::InternalSwap(ExecutionCreateResponse* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionCreateResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void WorkflowExecutionGetRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetRequest::WorkflowExecutionGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetRequest) +} +WorkflowExecutionGetRequest::WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetRequest) +} + +void WorkflowExecutionGetRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +WorkflowExecutionGetRequest::~WorkflowExecutionGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetRequest) + SharedDtor(); +} + +void WorkflowExecutionGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowExecutionGetRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionGetRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionGetRequest& WorkflowExecutionGetRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetRequest(); + return *internal_default_instance(); +} + +WorkflowExecutionGetRequest* WorkflowExecutionGetRequest::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionGetRequest* n = new WorkflowExecutionGetRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetRequest) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.WorkflowExecutionGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetRequest) + return false; +#undef DO_ +} + +void WorkflowExecutionGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetRequest) +} + +::google::protobuf::uint8* WorkflowExecutionGetRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetRequest) + return target; +} + +size_t WorkflowExecutionGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetRequest::MergeFrom(const WorkflowExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void WorkflowExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetRequest::CopyFrom(const WorkflowExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetRequest::Swap(WorkflowExecutionGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetRequest::InternalSwap(WorkflowExecutionGetRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionGetRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Execution::InitAsDefaultInstance() { + ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( + ::flyteidl::admin::ExecutionSpec::internal_default_instance()); + ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::ExecutionClosure*>( + ::flyteidl::admin::ExecutionClosure::internal_default_instance()); +} +void Execution::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Execution::kIdFieldNumber; +const int Execution::kSpecFieldNumber; +const int Execution::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Execution::Execution() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecution(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Execution) +} +Execution::Execution(const Execution& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); + } else { + spec_ = NULL; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::ExecutionClosure(*from.closure_); + } else { + closure_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Execution) +} + +void Execution::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); + _cached_size_ = 0; +} + +Execution::~Execution() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Execution) + SharedDtor(); +} + +void Execution::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete closure_; +} + +void Execution::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Execution::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Execution& Execution::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecution(); + return *internal_default_instance(); +} + +Execution* Execution::New(::google::protobuf::Arena* arena) const { + Execution* n = new Execution; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Execution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Execution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; + _internal_metadata_.Clear(); +} + +bool Execution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Execution) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } 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.Execution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Execution) + return false; +#undef DO_ +} + +void Execution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Execution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->spec_, output); + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->closure_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Execution) +} + +::google::protobuf::uint8* Execution::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Execution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->spec_, deterministic, target); + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->closure_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Execution) + return target; +} + +size_t Execution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Execution) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.ExecutionSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spec_); + } + + // .flyteidl.admin.ExecutionClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Execution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Execution) + GOOGLE_DCHECK_NE(&from, this); + const Execution* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Execution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Execution) + MergeFrom(*source); + } +} + +void Execution::MergeFrom(const Execution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Execution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::ExecutionClosure::MergeFrom(from.closure()); + } +} + +void Execution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Execution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Execution::CopyFrom(const Execution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Execution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Execution::IsInitialized() const { + return true; +} + +void Execution::Swap(Execution* other) { + if (other == this) return; + InternalSwap(other); +} +void Execution::InternalSwap(Execution* other) { + using std::swap; + swap(id_, other->id_); + swap(spec_, other->spec_); + swap(closure_, other->closure_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Execution::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionList::kExecutionsFieldNumber; +const int ExecutionList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionList::ExecutionList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionList) +} +ExecutionList::ExecutionList(const ExecutionList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + executions_(from.executions_), + _cached_size_(0) { + _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.ExecutionList) +} + +void ExecutionList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +ExecutionList::~ExecutionList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionList) + SharedDtor(); +} + +void ExecutionList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ExecutionList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionList::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionList& ExecutionList::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionList(); + return *internal_default_instance(); +} + +ExecutionList* ExecutionList::New(::google::protobuf::Arena* arena) const { + ExecutionList* n = new ExecutionList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + executions_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool ExecutionList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionList) + 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.admin.Execution executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_executions())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.ExecutionList.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.ExecutionList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionList) + return false; +#undef DO_ +} + +void ExecutionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Execution executions = 1; + for (unsigned int i = 0, + n = static_cast(this->executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->executions(static_cast(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.ExecutionList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionList) +} + +::google::protobuf::uint8* ExecutionList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Execution executions = 1; + for (unsigned int i = 0, + n = static_cast(this->executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->executions(static_cast(i)), deterministic, 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.ExecutionList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionList) + return target; +} + +size_t ExecutionList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Execution executions = 1; + { + unsigned int count = static_cast(this->executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->executions(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionList) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionList) + MergeFrom(*source); + } +} + +void ExecutionList::MergeFrom(const ExecutionList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + executions_.MergeFrom(from.executions_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void ExecutionList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionList::CopyFrom(const ExecutionList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionList::IsInitialized() const { + return true; +} + +void ExecutionList::Swap(ExecutionList* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionList::InternalSwap(ExecutionList* other) { + using std::swap; + executions_.InternalSwap(&other->executions_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiteralMapBlob::InitAsDefaultInstance() { + ::flyteidl::admin::_LiteralMapBlob_default_instance_.values_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_LiteralMapBlob_default_instance_.uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void LiteralMapBlob::set_allocated_values(::flyteidl::core::LiteralMap* values) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_data(); + if (values) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + values = ::google::protobuf::internal::GetOwnedMessage( + message_arena, values, submessage_arena); + } + set_has_values(); + data_.values_ = values; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.values) +} +void LiteralMapBlob::clear_values() { + if (has_values()) { + delete data_.values_; + clear_has_data(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralMapBlob::kValuesFieldNumber; +const int LiteralMapBlob::kUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralMapBlob::LiteralMapBlob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsLiteralMapBlob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LiteralMapBlob) +} +LiteralMapBlob::LiteralMapBlob(const LiteralMapBlob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_data(); + switch (from.data_case()) { + case kValues: { + mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); + break; + } + case kUri: { + set_uri(from.uri()); + break; + } + case DATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LiteralMapBlob) +} + +void LiteralMapBlob::SharedCtor() { + clear_has_data(); + _cached_size_ = 0; +} + +LiteralMapBlob::~LiteralMapBlob() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LiteralMapBlob) + SharedDtor(); +} + +void LiteralMapBlob::SharedDtor() { + if (has_data()) { + clear_data(); + } +} + +void LiteralMapBlob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LiteralMapBlob::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiteralMapBlob& LiteralMapBlob::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsLiteralMapBlob(); + return *internal_default_instance(); +} + +LiteralMapBlob* LiteralMapBlob::New(::google::protobuf::Arena* arena) const { + LiteralMapBlob* n = new LiteralMapBlob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LiteralMapBlob::clear_data() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.LiteralMapBlob) + switch (data_case()) { + case kValues: { + delete data_.values_; + break; + } + case kUri: { + data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case DATA_NOT_SET: { + break; + } + } + _oneof_case_[0] = DATA_NOT_SET; +} + + +void LiteralMapBlob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_data(); + _internal_metadata_.Clear(); +} + +bool LiteralMapBlob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LiteralMapBlob) + 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)) { + // .flyteidl.core.LiteralMap values = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_values())); + } else { + goto handle_unusual; + } + break; + } + + // string uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.LiteralMapBlob.uri")); + } 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.LiteralMapBlob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LiteralMapBlob) + return false; +#undef DO_ +} + +void LiteralMapBlob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap values = 1; + if (has_values()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *data_.values_, output); + } + + // string uri = 2; + if (has_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LiteralMapBlob.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->uri(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LiteralMapBlob) +} + +::google::protobuf::uint8* LiteralMapBlob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralMap values = 1; + if (has_values()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *data_.values_, deterministic, target); + } + + // string uri = 2; + if (has_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LiteralMapBlob.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->uri(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LiteralMapBlob) + return target; +} + +size_t LiteralMapBlob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LiteralMapBlob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (data_case()) { + // .flyteidl.core.LiteralMap values = 1; + case kValues: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *data_.values_); + break; + } + // string uri = 2; + case kUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + break; + } + case DATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LiteralMapBlob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LiteralMapBlob) + GOOGLE_DCHECK_NE(&from, this); + const LiteralMapBlob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LiteralMapBlob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LiteralMapBlob) + MergeFrom(*source); + } +} + +void LiteralMapBlob::MergeFrom(const LiteralMapBlob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LiteralMapBlob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.data_case()) { + case kValues: { + mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); + break; + } + case kUri: { + set_uri(from.uri()); + break; + } + case DATA_NOT_SET: { + break; + } + } +} + +void LiteralMapBlob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LiteralMapBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralMapBlob::CopyFrom(const LiteralMapBlob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LiteralMapBlob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralMapBlob::IsInitialized() const { + return true; +} + +void LiteralMapBlob::Swap(LiteralMapBlob* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralMapBlob::InternalSwap(LiteralMapBlob* other) { + using std::swap; + swap(data_, other->data_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LiteralMapBlob::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionClosure_default_instance_.outputs_ = const_cast< ::flyteidl::admin::LiteralMapBlob*>( + ::flyteidl::admin::LiteralMapBlob::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_.abort_cause_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->computed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +void ExecutionClosure::set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (outputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + set_has_outputs(); + output_result_.outputs_ = outputs; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.outputs) +} +void ExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.error) +} +void ExecutionClosure::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void ExecutionClosure::clear_computed_inputs() { + if (GetArenaNoVirtual() == NULL && computed_inputs_ != NULL) { + delete computed_inputs_; + } + computed_inputs_ = NULL; +} +void ExecutionClosure::clear_started_at() { + if (GetArenaNoVirtual() == NULL && started_at_ != NULL) { + delete started_at_; + } + started_at_ = NULL; +} +void ExecutionClosure::clear_duration() { + if (GetArenaNoVirtual() == NULL && duration_ != NULL) { + delete duration_; + } + duration_ = NULL; +} +void ExecutionClosure::clear_created_at() { + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; +} +void ExecutionClosure::clear_updated_at() { + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; +} +void ExecutionClosure::clear_notifications() { + notifications_.Clear(); +} +void ExecutionClosure::clear_workflow_id() { + if (GetArenaNoVirtual() == NULL && workflow_id_ != NULL) { + delete workflow_id_; + } + workflow_id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionClosure::kOutputsFieldNumber; +const int ExecutionClosure::kErrorFieldNumber; +const int ExecutionClosure::kAbortCauseFieldNumber; +const int ExecutionClosure::kComputedInputsFieldNumber; +const int ExecutionClosure::kPhaseFieldNumber; +const int ExecutionClosure::kStartedAtFieldNumber; +const int ExecutionClosure::kDurationFieldNumber; +const int ExecutionClosure::kCreatedAtFieldNumber; +const int ExecutionClosure::kUpdatedAtFieldNumber; +const int ExecutionClosure::kNotificationsFieldNumber; +const int ExecutionClosure::kWorkflowIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionClosure::ExecutionClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionClosure) +} +ExecutionClosure::ExecutionClosure(const ExecutionClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + notifications_(from.notifications_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_computed_inputs()) { + computed_inputs_ = new ::flyteidl::core::LiteralMap(*from.computed_inputs_); + } else { + computed_inputs_ = NULL; + } + if (from.has_started_at()) { + started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); + } else { + started_at_ = NULL; + } + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = NULL; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = NULL; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = NULL; + } + if (from.has_workflow_id()) { + workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); + } else { + workflow_id_ = NULL; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputs: { + mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kAbortCause: { + set_abort_cause(from.abort_cause()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionClosure) +} + +void ExecutionClosure::SharedCtor() { + ::memset(&computed_inputs_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&computed_inputs_)) + sizeof(phase_)); + clear_has_output_result(); + _cached_size_ = 0; +} + +ExecutionClosure::~ExecutionClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionClosure) + SharedDtor(); +} + +void ExecutionClosure::SharedDtor() { + if (this != internal_default_instance()) delete computed_inputs_; + if (this != internal_default_instance()) delete started_at_; + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; + if (this != internal_default_instance()) delete workflow_id_; + if (has_output_result()) { + clear_output_result(); + } +} + +void ExecutionClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionClosure::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionClosure& ExecutionClosure::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionClosure(); + return *internal_default_instance(); +} + +ExecutionClosure* ExecutionClosure::New(::google::protobuf::Arena* arena) const { + ExecutionClosure* n = new ExecutionClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionClosure::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionClosure) + switch (output_result_case()) { + case kOutputs: { + delete output_result_.outputs_; + break; + } + case kError: { + delete output_result_.error_; + break; + } + case kAbortCause: { + output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void ExecutionClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifications_.Clear(); + if (GetArenaNoVirtual() == NULL && computed_inputs_ != NULL) { + delete computed_inputs_; + } + computed_inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && started_at_ != NULL) { + delete started_at_; + } + started_at_ = NULL; + if (GetArenaNoVirtual() == NULL && duration_ != NULL) { + delete duration_; + } + duration_ = NULL; + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; + if (GetArenaNoVirtual() == NULL && workflow_id_ != NULL) { + delete workflow_id_; + } + workflow_id_ = NULL; + phase_ = 0; + clear_output_result(); + _internal_metadata_.Clear(); +} + +bool ExecutionClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionClosure) + 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)) { + // .flyteidl.admin.LiteralMapBlob outputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap computed_inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_computed_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp started_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_started_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Notification notifications = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_notifications())); + } else { + goto handle_unusual; + } + break; + } + + // string abort_cause = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_abort_cause())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->abort_cause().data(), static_cast(this->abort_cause().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionClosure.abort_cause")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Identifier workflow_id = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_id())); + } 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.ExecutionClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionClosure) + return false; +#undef DO_ +} + +void ExecutionClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LiteralMapBlob outputs = 1; + if (has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *output_result_.outputs_, output); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *output_result_.error_, output); + } + + // .flyteidl.core.LiteralMap computed_inputs = 3; + if (this->has_computed_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->computed_inputs_, output); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->phase(), output); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->started_at_, output); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->duration_, output); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->created_at_, output); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->updated_at_, output); + } + + // repeated .flyteidl.admin.Notification notifications = 9; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->notifications(static_cast(i)), output); + } + + // string abort_cause = 10; + if (has_abort_cause()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->abort_cause().data(), static_cast(this->abort_cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionClosure.abort_cause"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 10, this->abort_cause(), output); + } + + // .flyteidl.core.Identifier workflow_id = 11; + if (this->has_workflow_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, *this->workflow_id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionClosure) +} + +::google::protobuf::uint8* ExecutionClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LiteralMapBlob outputs = 1; + if (has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *output_result_.outputs_, deterministic, target); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *output_result_.error_, deterministic, target); + } + + // .flyteidl.core.LiteralMap computed_inputs = 3; + if (this->has_computed_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->computed_inputs_, deterministic, target); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->phase(), target); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->started_at_, deterministic, target); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->duration_, deterministic, target); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->created_at_, deterministic, target); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *this->updated_at_, deterministic, target); + } + + // repeated .flyteidl.admin.Notification notifications = 9; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, this->notifications(static_cast(i)), deterministic, target); + } + + // string abort_cause = 10; + if (has_abort_cause()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->abort_cause().data(), static_cast(this->abort_cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionClosure.abort_cause"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 10, this->abort_cause(), target); + } + + // .flyteidl.core.Identifier workflow_id = 11; + if (this->has_workflow_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, *this->workflow_id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionClosure) + return target; +} + +size_t ExecutionClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Notification notifications = 9; + { + unsigned int count = static_cast(this->notifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->notifications(static_cast(i))); + } + } + + // .flyteidl.core.LiteralMap computed_inputs = 3; + if (this->has_computed_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->computed_inputs_); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->started_at_); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->duration_); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->created_at_); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->updated_at_); + } + + // .flyteidl.core.Identifier workflow_id = 11; + if (this->has_workflow_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->workflow_id_); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // .flyteidl.admin.LiteralMapBlob outputs = 1; + case kOutputs: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.outputs_); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + // string abort_cause = 10; + case kAbortCause: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->abort_cause()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionClosure) + MergeFrom(*source); + } +} + +void ExecutionClosure::MergeFrom(const ExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + notifications_.MergeFrom(from.notifications_); + if (from.has_computed_inputs()) { + mutable_computed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.computed_inputs()); + } + if (from.has_started_at()) { + mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); + } + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.has_workflow_id()) { + mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputs: { + mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case kAbortCause: { + set_abort_cause(from.abort_cause()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void ExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionClosure::CopyFrom(const ExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionClosure::IsInitialized() const { + return true; +} + +void ExecutionClosure::Swap(ExecutionClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionClosure::InternalSwap(ExecutionClosure* other) { + using std::swap; + notifications_.InternalSwap(&other->notifications_); + swap(computed_inputs_, other->computed_inputs_); + swap(started_at_, other->started_at_); + swap(duration_, other->duration_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(workflow_id_, other->workflow_id_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionClosure::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->scheduled_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->parent_node_execution_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->reference_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void ExecutionMetadata::clear_scheduled_at() { + if (GetArenaNoVirtual() == NULL && scheduled_at_ != NULL) { + delete scheduled_at_; + } + scheduled_at_ = NULL; +} +void ExecutionMetadata::clear_parent_node_execution() { + if (GetArenaNoVirtual() == NULL && parent_node_execution_ != NULL) { + delete parent_node_execution_; + } + parent_node_execution_ = NULL; +} +void ExecutionMetadata::clear_reference_execution() { + if (GetArenaNoVirtual() == NULL && reference_execution_ != NULL) { + delete reference_execution_; + } + reference_execution_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionMetadata::kModeFieldNumber; +const int ExecutionMetadata::kPrincipalFieldNumber; +const int ExecutionMetadata::kNestingFieldNumber; +const int ExecutionMetadata::kScheduledAtFieldNumber; +const int ExecutionMetadata::kParentNodeExecutionFieldNumber; +const int ExecutionMetadata::kReferenceExecutionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionMetadata::ExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionMetadata) +} +ExecutionMetadata::ExecutionMetadata(const ExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.principal().size() > 0) { + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.has_scheduled_at()) { + scheduled_at_ = new ::google::protobuf::Timestamp(*from.scheduled_at_); + } else { + scheduled_at_ = NULL; + } + if (from.has_parent_node_execution()) { + parent_node_execution_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_); + } else { + parent_node_execution_ = NULL; + } + if (from.has_reference_execution()) { + reference_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.reference_execution_); + } else { + reference_execution_ = NULL; + } + ::memcpy(&mode_, &from.mode_, + static_cast(reinterpret_cast(&nesting_) - + reinterpret_cast(&mode_)) + sizeof(nesting_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionMetadata) +} + +void ExecutionMetadata::SharedCtor() { + principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&scheduled_at_, 0, static_cast( + reinterpret_cast(&nesting_) - + reinterpret_cast(&scheduled_at_)) + sizeof(nesting_)); + _cached_size_ = 0; +} + +ExecutionMetadata::~ExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionMetadata) + SharedDtor(); +} + +void ExecutionMetadata::SharedDtor() { + principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete scheduled_at_; + if (this != internal_default_instance()) delete parent_node_execution_; + if (this != internal_default_instance()) delete reference_execution_; +} + +void ExecutionMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionMetadata::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionMetadata& ExecutionMetadata::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionMetadata(); + return *internal_default_instance(); +} + +ExecutionMetadata* ExecutionMetadata::New(::google::protobuf::Arena* arena) const { + ExecutionMetadata* n = new ExecutionMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && scheduled_at_ != NULL) { + delete scheduled_at_; + } + scheduled_at_ = NULL; + if (GetArenaNoVirtual() == NULL && parent_node_execution_ != NULL) { + delete parent_node_execution_; + } + parent_node_execution_ = NULL; + if (GetArenaNoVirtual() == NULL && reference_execution_ != NULL) { + delete reference_execution_; + } + reference_execution_ = NULL; + ::memset(&mode_, 0, static_cast( + reinterpret_cast(&nesting_) - + reinterpret_cast(&mode_)) + sizeof(nesting_)); + _internal_metadata_.Clear(); +} + +bool ExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionMetadata) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_mode(static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string principal = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_principal())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionMetadata.principal")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 nesting = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &nesting_))); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp scheduled_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scheduled_at())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_node_execution())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + case 16: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reference_execution())); + } 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.ExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionMetadata) + return false; +#undef DO_ +} + +void ExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + if (this->mode() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->mode(), output); + } + + // string principal = 2; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionMetadata.principal"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->principal(), output); + } + + // uint32 nesting = 3; + if (this->nesting() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->nesting(), output); + } + + // .google.protobuf.Timestamp scheduled_at = 4; + if (this->has_scheduled_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->scheduled_at_, output); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + if (this->has_parent_node_execution()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->parent_node_execution_, output); + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + if (this->has_reference_execution()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, *this->reference_execution_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionMetadata) +} + +::google::protobuf::uint8* ExecutionMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + if (this->mode() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->mode(), target); + } + + // string principal = 2; + if (this->principal().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->principal().data(), static_cast(this->principal().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionMetadata.principal"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->principal(), target); + } + + // uint32 nesting = 3; + if (this->nesting() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->nesting(), target); + } + + // .google.protobuf.Timestamp scheduled_at = 4; + if (this->has_scheduled_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->scheduled_at_, deterministic, target); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + if (this->has_parent_node_execution()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->parent_node_execution_, deterministic, target); + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + if (this->has_reference_execution()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 16, *this->reference_execution_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionMetadata) + return target; +} + +size_t ExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string principal = 2; + if (this->principal().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->principal()); + } + + // .google.protobuf.Timestamp scheduled_at = 4; + if (this->has_scheduled_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->scheduled_at_); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + if (this->has_parent_node_execution()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->parent_node_execution_); + } + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + if (this->has_reference_execution()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->reference_execution_); + } + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + if (this->mode() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); + } + + // uint32 nesting = 3; + if (this->nesting() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->nesting()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionMetadata) + MergeFrom(*source); + } +} + +void ExecutionMetadata::MergeFrom(const ExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.principal().size() > 0) { + + principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); + } + if (from.has_scheduled_at()) { + mutable_scheduled_at()->::google::protobuf::Timestamp::MergeFrom(from.scheduled_at()); + } + if (from.has_parent_node_execution()) { + mutable_parent_node_execution()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution()); + } + if (from.has_reference_execution()) { + mutable_reference_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.reference_execution()); + } + if (from.mode() != 0) { + set_mode(from.mode()); + } + if (from.nesting() != 0) { + set_nesting(from.nesting()); + } +} + +void ExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionMetadata::CopyFrom(const ExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionMetadata::IsInitialized() const { + return true; +} + +void ExecutionMetadata::Swap(ExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionMetadata::InternalSwap(ExecutionMetadata* other) { + using std::swap; + principal_.Swap(&other->principal_); + swap(scheduled_at_, other->scheduled_at_); + swap(parent_node_execution_, other->parent_node_execution_); + swap(reference_execution_, other->reference_execution_); + swap(mode_, other->mode_); + swap(nesting_, other->nesting_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionMetadata::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NotificationList::InitAsDefaultInstance() { +} +void NotificationList::clear_notifications() { + notifications_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NotificationList::kNotificationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NotificationList::NotificationList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsNotificationList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NotificationList) +} +NotificationList::NotificationList(const NotificationList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + notifications_(from.notifications_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NotificationList) +} + +void NotificationList::SharedCtor() { + _cached_size_ = 0; +} + +NotificationList::~NotificationList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NotificationList) + SharedDtor(); +} + +void NotificationList::SharedDtor() { +} + +void NotificationList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NotificationList::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NotificationList& NotificationList::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsNotificationList(); + return *internal_default_instance(); +} + +NotificationList* NotificationList::New(::google::protobuf::Arena* arena) const { + NotificationList* n = new NotificationList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NotificationList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NotificationList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifications_.Clear(); + _internal_metadata_.Clear(); +} + +bool NotificationList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NotificationList) + 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.admin.Notification notifications = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_notifications())); + } 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.NotificationList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NotificationList) + return false; +#undef DO_ +} + +void NotificationList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NotificationList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 1; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->notifications(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NotificationList) +} + +::google::protobuf::uint8* NotificationList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NotificationList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Notification notifications = 1; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->notifications(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NotificationList) + return target; +} + +size_t NotificationList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NotificationList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Notification notifications = 1; + { + unsigned int count = static_cast(this->notifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->notifications(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NotificationList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NotificationList) + GOOGLE_DCHECK_NE(&from, this); + const NotificationList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NotificationList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NotificationList) + MergeFrom(*source); + } +} + +void NotificationList::MergeFrom(const NotificationList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NotificationList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + notifications_.MergeFrom(from.notifications_); +} + +void NotificationList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NotificationList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NotificationList::CopyFrom(const NotificationList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NotificationList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NotificationList::IsInitialized() const { + return true; +} + +void NotificationList::Swap(NotificationList* other) { + if (other == this) return; + InternalSwap(other); +} +void NotificationList::InternalSwap(NotificationList* other) { + using std::swap; + notifications_.InternalSwap(&other->notifications_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NotificationList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->launch_plan_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::ExecutionMetadata*>( + ::flyteidl::admin::ExecutionMetadata::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_.notifications_ = const_cast< ::flyteidl::admin::NotificationList*>( + ::flyteidl::admin::NotificationList::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_.disable_all_ = false; + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( + ::flyteidl::admin::Labels::internal_default_instance()); + ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( + ::flyteidl::admin::Annotations::internal_default_instance()); +} +void ExecutionSpec::clear_launch_plan() { + if (GetArenaNoVirtual() == NULL && launch_plan_ != NULL) { + delete launch_plan_; + } + launch_plan_ = NULL; +} +void ExecutionSpec::clear_inputs() { + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; +} +void ExecutionSpec::set_allocated_notifications(::flyteidl::admin::NotificationList* notifications) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_notification_overrides(); + if (notifications) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + notifications = ::google::protobuf::internal::GetOwnedMessage( + message_arena, notifications, submessage_arena); + } + set_has_notifications(); + notification_overrides_.notifications_ = notifications; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.notifications) +} +void ExecutionSpec::clear_labels() { + if (GetArenaNoVirtual() == NULL && labels_ != NULL) { + delete labels_; + } + labels_ = NULL; +} +void ExecutionSpec::clear_annotations() { + if (GetArenaNoVirtual() == NULL && annotations_ != NULL) { + delete annotations_; + } + annotations_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionSpec::kLaunchPlanFieldNumber; +const int ExecutionSpec::kInputsFieldNumber; +const int ExecutionSpec::kMetadataFieldNumber; +const int ExecutionSpec::kNotificationsFieldNumber; +const int ExecutionSpec::kDisableAllFieldNumber; +const int ExecutionSpec::kLabelsFieldNumber; +const int ExecutionSpec::kAnnotationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionSpec::ExecutionSpec() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionSpec(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionSpec) +} +ExecutionSpec::ExecutionSpec(const ExecutionSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_launch_plan()) { + launch_plan_ = new ::flyteidl::core::Identifier(*from.launch_plan_); + } else { + launch_plan_ = NULL; + } + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); + } else { + inputs_ = NULL; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::admin::ExecutionMetadata(*from.metadata_); + } else { + metadata_ = NULL; + } + if (from.has_labels()) { + labels_ = new ::flyteidl::admin::Labels(*from.labels_); + } else { + labels_ = NULL; + } + if (from.has_annotations()) { + annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); + } else { + annotations_ = NULL; + } + clear_has_notification_overrides(); + switch (from.notification_overrides_case()) { + case kNotifications: { + mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); + break; + } + case kDisableAll: { + set_disable_all(from.disable_all()); + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionSpec) +} + +void ExecutionSpec::SharedCtor() { + ::memset(&launch_plan_, 0, static_cast( + reinterpret_cast(&annotations_) - + reinterpret_cast(&launch_plan_)) + sizeof(annotations_)); + clear_has_notification_overrides(); + _cached_size_ = 0; +} + +ExecutionSpec::~ExecutionSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionSpec) + SharedDtor(); +} + +void ExecutionSpec::SharedDtor() { + if (this != internal_default_instance()) delete launch_plan_; + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete labels_; + if (this != internal_default_instance()) delete annotations_; + if (has_notification_overrides()) { + clear_notification_overrides(); + } +} + +void ExecutionSpec::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionSpec::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionSpec& ExecutionSpec::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionSpec(); + return *internal_default_instance(); +} + +ExecutionSpec* ExecutionSpec::New(::google::protobuf::Arena* arena) const { + ExecutionSpec* n = new ExecutionSpec; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionSpec::clear_notification_overrides() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionSpec) + switch (notification_overrides_case()) { + case kNotifications: { + delete notification_overrides_.notifications_; + break; + } + case kDisableAll: { + // No need to clear + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } + _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; +} + + +void ExecutionSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && launch_plan_ != NULL) { + delete launch_plan_; + } + launch_plan_ = NULL; + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; + if (GetArenaNoVirtual() == NULL && labels_ != NULL) { + delete labels_; + } + labels_ = NULL; + if (GetArenaNoVirtual() == NULL && annotations_ != NULL) { + delete annotations_; + } + annotations_ = NULL; + clear_notification_overrides(); + _internal_metadata_.Clear(); +} + +bool ExecutionSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionSpec) + 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)) { + // .flyteidl.core.Identifier launch_plan = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_launch_plan())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap inputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NotificationList notifications = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_notifications())); + } else { + goto handle_unusual; + } + break; + } + + // bool disable_all = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { + clear_notification_overrides(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, ¬ification_overrides_.disable_all_))); + set_has_disable_all(); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Labels labels = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_labels())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Annotations annotations = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotations())); + } 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.ExecutionSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionSpec) + return false; +#undef DO_ +} + +void ExecutionSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launch_plan = 1; + if (this->has_launch_plan()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->launch_plan_, output); + } + + // .flyteidl.core.LiteralMap inputs = 2; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->inputs_, output); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->metadata_, output); + } + + // .flyteidl.admin.NotificationList notifications = 5; + if (has_notifications()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *notification_overrides_.notifications_, output); + } + + // bool disable_all = 6; + if (has_disable_all()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->disable_all(), output); + } + + // .flyteidl.admin.Labels labels = 7; + if (this->has_labels()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->labels_, output); + } + + // .flyteidl.admin.Annotations annotations = 8; + if (this->has_annotations()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->annotations_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionSpec) +} + +::google::protobuf::uint8* ExecutionSpec::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launch_plan = 1; + if (this->has_launch_plan()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->launch_plan_, deterministic, target); + } + + // .flyteidl.core.LiteralMap inputs = 2; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->inputs_, deterministic, target); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->metadata_, deterministic, target); + } + + // .flyteidl.admin.NotificationList notifications = 5; + if (has_notifications()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *notification_overrides_.notifications_, deterministic, target); + } + + // bool disable_all = 6; + if (has_disable_all()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->disable_all(), target); + } + + // .flyteidl.admin.Labels labels = 7; + if (this->has_labels()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->labels_, deterministic, target); + } + + // .flyteidl.admin.Annotations annotations = 8; + if (this->has_annotations()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *this->annotations_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionSpec) + return target; +} + +size_t ExecutionSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionSpec) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier launch_plan = 1; + if (this->has_launch_plan()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->launch_plan_); + } + + // .flyteidl.core.LiteralMap inputs = 2; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->inputs_); + } + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->metadata_); + } + + // .flyteidl.admin.Labels labels = 7; + if (this->has_labels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->labels_); + } + + // .flyteidl.admin.Annotations annotations = 8; + if (this->has_annotations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->annotations_); + } + + switch (notification_overrides_case()) { + // .flyteidl.admin.NotificationList notifications = 5; + case kNotifications: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *notification_overrides_.notifications_); + break; + } + // bool disable_all = 6; + case kDisableAll: { + total_size += 1 + 1; + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionSpec) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionSpec* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionSpec) + MergeFrom(*source); + } +} + +void ExecutionSpec::MergeFrom(const ExecutionSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_launch_plan()) { + mutable_launch_plan()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan()); + } + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::admin::ExecutionMetadata::MergeFrom(from.metadata()); + } + if (from.has_labels()) { + mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); + } + if (from.has_annotations()) { + mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); + } + switch (from.notification_overrides_case()) { + case kNotifications: { + mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); + break; + } + case kDisableAll: { + set_disable_all(from.disable_all()); + break; + } + case NOTIFICATION_OVERRIDES_NOT_SET: { + break; + } + } +} + +void ExecutionSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionSpec::CopyFrom(const ExecutionSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionSpec::IsInitialized() const { + return true; +} + +void ExecutionSpec::Swap(ExecutionSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionSpec::InternalSwap(ExecutionSpec* other) { + using std::swap; + swap(launch_plan_, other->launch_plan_); + swap(inputs_, other->inputs_); + swap(metadata_, other->metadata_); + swap(labels_, other->labels_); + swap(annotations_, other->annotations_); + swap(notification_overrides_, other->notification_overrides_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionSpec::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionTerminateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ExecutionTerminateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void ExecutionTerminateRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionTerminateRequest::kIdFieldNumber; +const int ExecutionTerminateRequest::kCauseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionTerminateRequest::ExecutionTerminateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionTerminateRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateRequest) +} +ExecutionTerminateRequest::ExecutionTerminateRequest(const ExecutionTerminateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cause().size() > 0) { + cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateRequest) +} + +void ExecutionTerminateRequest::SharedCtor() { + cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + id_ = NULL; + _cached_size_ = 0; +} + +ExecutionTerminateRequest::~ExecutionTerminateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateRequest) + SharedDtor(); +} + +void ExecutionTerminateRequest::SharedDtor() { + cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; +} + +void ExecutionTerminateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionTerminateRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionTerminateRequest& ExecutionTerminateRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionTerminateRequest(); + return *internal_default_instance(); +} + +ExecutionTerminateRequest* ExecutionTerminateRequest::New(::google::protobuf::Arena* arena) const { + ExecutionTerminateRequest* n = new ExecutionTerminateRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionTerminateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool ExecutionTerminateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionTerminateRequest) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string cause = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cause())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.ExecutionTerminateRequest.cause")); + } 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.ExecutionTerminateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateRequest) + return false; +#undef DO_ +} + +void ExecutionTerminateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // string cause = 2; + if (this->cause().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionTerminateRequest.cause"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->cause(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateRequest) +} + +::google::protobuf::uint8* ExecutionTerminateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // string cause = 2; + if (this->cause().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cause().data(), static_cast(this->cause().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.ExecutionTerminateRequest.cause"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->cause(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionTerminateRequest) + return target; +} + +size_t ExecutionTerminateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string cause = 2; + if (this->cause().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cause()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionTerminateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionTerminateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateRequest) + MergeFrom(*source); + } +} + +void ExecutionTerminateRequest::MergeFrom(const ExecutionTerminateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.cause().size() > 0) { + + cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ExecutionTerminateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionTerminateRequest::CopyFrom(const ExecutionTerminateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionTerminateRequest::IsInitialized() const { + return true; +} + +void ExecutionTerminateRequest::Swap(ExecutionTerminateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionTerminateRequest::InternalSwap(ExecutionTerminateRequest* other) { + using std::swap; + cause_.Swap(&other->cause_); + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionTerminateRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionTerminateResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionTerminateResponse::ExecutionTerminateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionTerminateResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateResponse) +} +ExecutionTerminateResponse::ExecutionTerminateResponse(const ExecutionTerminateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateResponse) +} + +void ExecutionTerminateResponse::SharedCtor() { + _cached_size_ = 0; +} + +ExecutionTerminateResponse::~ExecutionTerminateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateResponse) + SharedDtor(); +} + +void ExecutionTerminateResponse::SharedDtor() { +} + +void ExecutionTerminateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionTerminateResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionTerminateResponse& ExecutionTerminateResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionTerminateResponse(); + return *internal_default_instance(); +} + +ExecutionTerminateResponse* ExecutionTerminateResponse::New(::google::protobuf::Arena* arena) const { + ExecutionTerminateResponse* n = new ExecutionTerminateResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionTerminateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool ExecutionTerminateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ExecutionTerminateResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionTerminateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateResponse) + return false; +#undef DO_ +} + +void ExecutionTerminateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateResponse) +} + +::google::protobuf::uint8* ExecutionTerminateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ExecutionTerminateResponse) + return target; +} + +size_t ExecutionTerminateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionTerminateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionTerminateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateResponse) + MergeFrom(*source); + } +} + +void ExecutionTerminateResponse::MergeFrom(const ExecutionTerminateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ExecutionTerminateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionTerminateResponse::CopyFrom(const ExecutionTerminateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionTerminateResponse::IsInitialized() const { + return true; +} + +void ExecutionTerminateResponse::Swap(ExecutionTerminateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionTerminateResponse::InternalSwap(ExecutionTerminateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionTerminateResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetDataRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void WorkflowExecutionGetDataRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetDataRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetDataRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) +} +WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) +} + +void WorkflowExecutionGetDataRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +WorkflowExecutionGetDataRequest::~WorkflowExecutionGetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataRequest) + SharedDtor(); +} + +void WorkflowExecutionGetDataRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowExecutionGetDataRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionGetDataRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionGetDataRequest& WorkflowExecutionGetDataRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetDataRequest(); + return *internal_default_instance(); +} + +WorkflowExecutionGetDataRequest* WorkflowExecutionGetDataRequest::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionGetDataRequest* n = new WorkflowExecutionGetDataRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionGetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionGetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.WorkflowExecutionGetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataRequest) + return false; +#undef DO_ +} + +void WorkflowExecutionGetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetDataRequest) +} + +::google::protobuf::uint8* WorkflowExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetDataRequest) + return target; +} + +size_t WorkflowExecutionGetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetDataRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataRequest) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetDataRequest::MergeFrom(const WorkflowExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); + } +} + +void WorkflowExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetDataRequest::CopyFrom(const WorkflowExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetDataRequest::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetDataRequest::Swap(WorkflowExecutionGetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetDataRequest::InternalSwap(WorkflowExecutionGetDataRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionGetDataRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionGetDataResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); +} +void WorkflowExecutionGetDataResponse::clear_outputs() { + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionGetDataResponse::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetDataResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) +} +WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_outputs()) { + outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); + } else { + outputs_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) +} + +void WorkflowExecutionGetDataResponse::SharedCtor() { + outputs_ = NULL; + _cached_size_ = 0; +} + +WorkflowExecutionGetDataResponse::~WorkflowExecutionGetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataResponse) + SharedDtor(); +} + +void WorkflowExecutionGetDataResponse::SharedDtor() { + if (this != internal_default_instance()) delete outputs_; +} + +void WorkflowExecutionGetDataResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionGetDataResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionGetDataResponse& WorkflowExecutionGetDataResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetDataResponse(); + return *internal_default_instance(); +} + +WorkflowExecutionGetDataResponse* WorkflowExecutionGetDataResponse::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionGetDataResponse* n = new WorkflowExecutionGetDataResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionGetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionGetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + 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)) { + // .flyteidl.admin.UrlBlob outputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } 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.WorkflowExecutionGetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataResponse) + return false; +#undef DO_ +} + +void WorkflowExecutionGetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob outputs = 1; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->outputs_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetDataResponse) +} + +::google::protobuf::uint8* WorkflowExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob outputs = 1; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->outputs_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowExecutionGetDataResponse) + return target; +} + +size_t WorkflowExecutionGetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.admin.UrlBlob outputs = 1; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->outputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionGetDataResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataResponse) + MergeFrom(*source); + } +} + +void WorkflowExecutionGetDataResponse::MergeFrom(const WorkflowExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); + } +} + +void WorkflowExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionGetDataResponse::CopyFrom(const WorkflowExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionGetDataResponse::IsInitialized() const { + return true; +} + +void WorkflowExecutionGetDataResponse::Swap(WorkflowExecutionGetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionGetDataResponse::InternalSwap(WorkflowExecutionGetDataResponse* other) { + using std::swap; + swap(outputs_, other->outputs_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionGetDataResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h new file mode 100644 index 0000000000..5cecb8335b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h @@ -0,0 +1,4229 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fexecution_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[15]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsExecutionCreateRequestImpl(); +void InitDefaultsExecutionCreateRequest(); +void InitDefaultsExecutionRelaunchRequestImpl(); +void InitDefaultsExecutionRelaunchRequest(); +void InitDefaultsExecutionCreateResponseImpl(); +void InitDefaultsExecutionCreateResponse(); +void InitDefaultsWorkflowExecutionGetRequestImpl(); +void InitDefaultsWorkflowExecutionGetRequest(); +void InitDefaultsExecutionImpl(); +void InitDefaultsExecution(); +void InitDefaultsExecutionListImpl(); +void InitDefaultsExecutionList(); +void InitDefaultsLiteralMapBlobImpl(); +void InitDefaultsLiteralMapBlob(); +void InitDefaultsExecutionClosureImpl(); +void InitDefaultsExecutionClosure(); +void InitDefaultsExecutionMetadataImpl(); +void InitDefaultsExecutionMetadata(); +void InitDefaultsNotificationListImpl(); +void InitDefaultsNotificationList(); +void InitDefaultsExecutionSpecImpl(); +void InitDefaultsExecutionSpec(); +void InitDefaultsExecutionTerminateRequestImpl(); +void InitDefaultsExecutionTerminateRequest(); +void InitDefaultsExecutionTerminateResponseImpl(); +void InitDefaultsExecutionTerminateResponse(); +void InitDefaultsWorkflowExecutionGetDataRequestImpl(); +void InitDefaultsWorkflowExecutionGetDataRequest(); +void InitDefaultsWorkflowExecutionGetDataResponseImpl(); +void InitDefaultsWorkflowExecutionGetDataResponse(); +inline void InitDefaults() { + InitDefaultsExecutionCreateRequest(); + InitDefaultsExecutionRelaunchRequest(); + InitDefaultsExecutionCreateResponse(); + InitDefaultsWorkflowExecutionGetRequest(); + InitDefaultsExecution(); + InitDefaultsExecutionList(); + InitDefaultsLiteralMapBlob(); + InitDefaultsExecutionClosure(); + InitDefaultsExecutionMetadata(); + InitDefaultsNotificationList(); + InitDefaultsExecutionSpec(); + InitDefaultsExecutionTerminateRequest(); + InitDefaultsExecutionTerminateResponse(); + InitDefaultsWorkflowExecutionGetDataRequest(); + InitDefaultsWorkflowExecutionGetDataResponse(); +} +} // namespace protobuf_flyteidl_2fadmin_2fexecution_2eproto +namespace flyteidl { +namespace admin { +class Execution; +class ExecutionDefaultTypeInternal; +extern ExecutionDefaultTypeInternal _Execution_default_instance_; +class ExecutionClosure; +class ExecutionClosureDefaultTypeInternal; +extern ExecutionClosureDefaultTypeInternal _ExecutionClosure_default_instance_; +class ExecutionCreateRequest; +class ExecutionCreateRequestDefaultTypeInternal; +extern ExecutionCreateRequestDefaultTypeInternal _ExecutionCreateRequest_default_instance_; +class ExecutionCreateResponse; +class ExecutionCreateResponseDefaultTypeInternal; +extern ExecutionCreateResponseDefaultTypeInternal _ExecutionCreateResponse_default_instance_; +class ExecutionList; +class ExecutionListDefaultTypeInternal; +extern ExecutionListDefaultTypeInternal _ExecutionList_default_instance_; +class ExecutionMetadata; +class ExecutionMetadataDefaultTypeInternal; +extern ExecutionMetadataDefaultTypeInternal _ExecutionMetadata_default_instance_; +class ExecutionRelaunchRequest; +class ExecutionRelaunchRequestDefaultTypeInternal; +extern ExecutionRelaunchRequestDefaultTypeInternal _ExecutionRelaunchRequest_default_instance_; +class ExecutionSpec; +class ExecutionSpecDefaultTypeInternal; +extern ExecutionSpecDefaultTypeInternal _ExecutionSpec_default_instance_; +class ExecutionTerminateRequest; +class ExecutionTerminateRequestDefaultTypeInternal; +extern ExecutionTerminateRequestDefaultTypeInternal _ExecutionTerminateRequest_default_instance_; +class ExecutionTerminateResponse; +class ExecutionTerminateResponseDefaultTypeInternal; +extern ExecutionTerminateResponseDefaultTypeInternal _ExecutionTerminateResponse_default_instance_; +class LiteralMapBlob; +class LiteralMapBlobDefaultTypeInternal; +extern LiteralMapBlobDefaultTypeInternal _LiteralMapBlob_default_instance_; +class NotificationList; +class NotificationListDefaultTypeInternal; +extern NotificationListDefaultTypeInternal _NotificationList_default_instance_; +class WorkflowExecutionGetDataRequest; +class WorkflowExecutionGetDataRequestDefaultTypeInternal; +extern WorkflowExecutionGetDataRequestDefaultTypeInternal _WorkflowExecutionGetDataRequest_default_instance_; +class WorkflowExecutionGetDataResponse; +class WorkflowExecutionGetDataResponseDefaultTypeInternal; +extern WorkflowExecutionGetDataResponseDefaultTypeInternal _WorkflowExecutionGetDataResponse_default_instance_; +class WorkflowExecutionGetRequest; +class WorkflowExecutionGetRequestDefaultTypeInternal; +extern WorkflowExecutionGetRequestDefaultTypeInternal _WorkflowExecutionGetRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +enum ExecutionMetadata_ExecutionMode { + ExecutionMetadata_ExecutionMode_MANUAL = 0, + ExecutionMetadata_ExecutionMode_SCHEDULED = 1, + ExecutionMetadata_ExecutionMode_SYSTEM = 2, + ExecutionMetadata_ExecutionMode_RELAUNCH = 3, + ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW = 4, + ExecutionMetadata_ExecutionMode_ExecutionMetadata_ExecutionMode_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ExecutionMetadata_ExecutionMode_ExecutionMetadata_ExecutionMode_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool ExecutionMetadata_ExecutionMode_IsValid(int value); +const ExecutionMetadata_ExecutionMode ExecutionMetadata_ExecutionMode_ExecutionMode_MIN = ExecutionMetadata_ExecutionMode_MANUAL; +const ExecutionMetadata_ExecutionMode ExecutionMetadata_ExecutionMode_ExecutionMode_MAX = ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW; +const int ExecutionMetadata_ExecutionMode_ExecutionMode_ARRAYSIZE = ExecutionMetadata_ExecutionMode_ExecutionMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor(); +inline const ::std::string& ExecutionMetadata_ExecutionMode_Name(ExecutionMetadata_ExecutionMode value) { + return ::google::protobuf::internal::NameOfEnum( + ExecutionMetadata_ExecutionMode_descriptor(), value); +} +inline bool ExecutionMetadata_ExecutionMode_Parse( + const ::std::string& name, ExecutionMetadata_ExecutionMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ExecutionMetadata_ExecutionMode_descriptor(), name, value); +} +// =================================================================== + +class ExecutionCreateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionCreateRequest) */ { + public: + ExecutionCreateRequest(); + virtual ~ExecutionCreateRequest(); + + ExecutionCreateRequest(const ExecutionCreateRequest& from); + + inline ExecutionCreateRequest& operator=(const ExecutionCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionCreateRequest(ExecutionCreateRequest&& from) noexcept + : ExecutionCreateRequest() { + *this = ::std::move(from); + } + + inline ExecutionCreateRequest& operator=(ExecutionCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionCreateRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(ExecutionCreateRequest* other); + friend void swap(ExecutionCreateRequest& a, ExecutionCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionCreateRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionCreateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionCreateRequest& from); + void MergeFrom(const ExecutionCreateRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 3; + void clear_name(); + static const int kNameFieldNumber = 3; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.admin.ExecutionSpec spec = 4; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 4; + const ::flyteidl::admin::ExecutionSpec& spec() const; + ::flyteidl::admin::ExecutionSpec* release_spec(); + ::flyteidl::admin::ExecutionSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::admin::ExecutionSpec* spec_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionCreateRequestImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionRelaunchRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionRelaunchRequest) */ { + public: + ExecutionRelaunchRequest(); + virtual ~ExecutionRelaunchRequest(); + + ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from); + + inline ExecutionRelaunchRequest& operator=(const ExecutionRelaunchRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionRelaunchRequest(ExecutionRelaunchRequest&& from) noexcept + : ExecutionRelaunchRequest() { + *this = ::std::move(from); + } + + inline ExecutionRelaunchRequest& operator=(ExecutionRelaunchRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionRelaunchRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionRelaunchRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionRelaunchRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(ExecutionRelaunchRequest* other); + friend void swap(ExecutionRelaunchRequest& a, ExecutionRelaunchRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionRelaunchRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionRelaunchRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionRelaunchRequest& from); + void MergeFrom(const ExecutionRelaunchRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionRelaunchRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 3; + void clear_name(); + static const int kNameFieldNumber = 3; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionRelaunchRequestImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionCreateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionCreateResponse) */ { + public: + ExecutionCreateResponse(); + virtual ~ExecutionCreateResponse(); + + ExecutionCreateResponse(const ExecutionCreateResponse& from); + + inline ExecutionCreateResponse& operator=(const ExecutionCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionCreateResponse(ExecutionCreateResponse&& from) noexcept + : ExecutionCreateResponse() { + *this = ::std::move(from); + } + + inline ExecutionCreateResponse& operator=(ExecutionCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_ExecutionCreateResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(ExecutionCreateResponse* other); + friend void swap(ExecutionCreateResponse& a, ExecutionCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionCreateResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionCreateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionCreateResponse& from); + void MergeFrom(const ExecutionCreateResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionCreateResponseImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetRequest) */ { + public: + WorkflowExecutionGetRequest(); + virtual ~WorkflowExecutionGetRequest(); + + WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from); + + inline WorkflowExecutionGetRequest& operator=(const WorkflowExecutionGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetRequest(WorkflowExecutionGetRequest&& from) noexcept + : WorkflowExecutionGetRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetRequest& operator=(WorkflowExecutionGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(WorkflowExecutionGetRequest* other); + friend void swap(WorkflowExecutionGetRequest& a, WorkflowExecutionGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionGetRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionGetRequest& from); + void MergeFrom(const WorkflowExecutionGetRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetRequestImpl(); +}; +// ------------------------------------------------------------------- + +class Execution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Execution) */ { + public: + Execution(); + virtual ~Execution(); + + Execution(const Execution& from); + + inline Execution& operator=(const Execution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Execution(Execution&& from) noexcept + : Execution() { + *this = ::std::move(from); + } + + inline Execution& operator=(Execution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Execution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Execution* internal_default_instance() { + return reinterpret_cast( + &_Execution_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(Execution* other); + friend void swap(Execution& a, Execution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Execution* New() const PROTOBUF_FINAL { return New(NULL); } + + Execution* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Execution& from); + void MergeFrom(const Execution& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Execution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // .flyteidl.admin.ExecutionSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::ExecutionSpec& spec() const; + ::flyteidl::admin::ExecutionSpec* release_spec(); + ::flyteidl::admin::ExecutionSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec); + + // .flyteidl.admin.ExecutionClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::ExecutionClosure& closure() const; + ::flyteidl::admin::ExecutionClosure* release_closure(); + ::flyteidl::admin::ExecutionClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::ExecutionClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + ::flyteidl::admin::ExecutionSpec* spec_; + ::flyteidl::admin::ExecutionClosure* closure_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionList) */ { + public: + ExecutionList(); + virtual ~ExecutionList(); + + ExecutionList(const ExecutionList& from); + + inline ExecutionList& operator=(const ExecutionList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionList(ExecutionList&& from) noexcept + : ExecutionList() { + *this = ::std::move(from); + } + + inline ExecutionList& operator=(ExecutionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionList* internal_default_instance() { + return reinterpret_cast( + &_ExecutionList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(ExecutionList* other); + friend void swap(ExecutionList& a, ExecutionList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionList* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionList& from); + void MergeFrom(const ExecutionList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Execution executions = 1; + int executions_size() const; + void clear_executions(); + static const int kExecutionsFieldNumber = 1; + const ::flyteidl::admin::Execution& executions(int index) const; + ::flyteidl::admin::Execution* mutable_executions(int index); + ::flyteidl::admin::Execution* add_executions(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >* + mutable_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >& + executions() const; + + // 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.ExecutionList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution > executions_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionListImpl(); +}; +// ------------------------------------------------------------------- + +class LiteralMapBlob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LiteralMapBlob) */ { + public: + LiteralMapBlob(); + virtual ~LiteralMapBlob(); + + LiteralMapBlob(const LiteralMapBlob& from); + + inline LiteralMapBlob& operator=(const LiteralMapBlob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralMapBlob(LiteralMapBlob&& from) noexcept + : LiteralMapBlob() { + *this = ::std::move(from); + } + + inline LiteralMapBlob& operator=(LiteralMapBlob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LiteralMapBlob& default_instance(); + + enum DataCase { + kValues = 1, + kUri = 2, + DATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralMapBlob* internal_default_instance() { + return reinterpret_cast( + &_LiteralMapBlob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(LiteralMapBlob* other); + friend void swap(LiteralMapBlob& a, LiteralMapBlob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralMapBlob* New() const PROTOBUF_FINAL { return New(NULL); } + + LiteralMapBlob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LiteralMapBlob& from); + void MergeFrom(const LiteralMapBlob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LiteralMapBlob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.LiteralMap values = 1; + bool has_values() const; + void clear_values(); + static const int kValuesFieldNumber = 1; + const ::flyteidl::core::LiteralMap& values() const; + ::flyteidl::core::LiteralMap* release_values(); + ::flyteidl::core::LiteralMap* mutable_values(); + void set_allocated_values(::flyteidl::core::LiteralMap* values); + + // string uri = 2; + private: + bool has_uri() const; + public: + void clear_uri(); + static const int kUriFieldNumber = 2; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + DataCase data_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + private: + void set_has_values(); + void set_has_uri(); + + inline bool has_data() const; + void clear_data(); + inline void clear_has_data(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union DataUnion { + DataUnion() {} + ::flyteidl::core::LiteralMap* values_; + ::google::protobuf::internal::ArenaStringPtr uri_; + } data_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsLiteralMapBlobImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionClosure) */ { + public: + ExecutionClosure(); + virtual ~ExecutionClosure(); + + ExecutionClosure(const ExecutionClosure& from); + + inline ExecutionClosure& operator=(const ExecutionClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionClosure(ExecutionClosure&& from) noexcept + : ExecutionClosure() { + *this = ::std::move(from); + } + + inline ExecutionClosure& operator=(ExecutionClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionClosure& default_instance(); + + enum OutputResultCase { + kOutputs = 1, + kError = 2, + kAbortCause = 10, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionClosure* internal_default_instance() { + return reinterpret_cast( + &_ExecutionClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(ExecutionClosure* other); + friend void swap(ExecutionClosure& a, ExecutionClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionClosure& from); + void MergeFrom(const ExecutionClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Notification notifications = 9; + int notifications_size() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 9; + const ::flyteidl::admin::Notification& notifications(int index) const; + ::flyteidl::admin::Notification* mutable_notifications(int index); + ::flyteidl::admin::Notification* add_notifications(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* + mutable_notifications(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& + notifications() const; + + // .flyteidl.core.LiteralMap computed_inputs = 3; + bool has_computed_inputs() const; + void clear_computed_inputs(); + static const int kComputedInputsFieldNumber = 3; + const ::flyteidl::core::LiteralMap& computed_inputs() const; + ::flyteidl::core::LiteralMap* release_computed_inputs(); + ::flyteidl::core::LiteralMap* mutable_computed_inputs(); + void set_allocated_computed_inputs(::flyteidl::core::LiteralMap* computed_inputs); + + // .google.protobuf.Timestamp started_at = 5; + bool has_started_at() const; + void clear_started_at(); + static const int kStartedAtFieldNumber = 5; + const ::google::protobuf::Timestamp& started_at() const; + ::google::protobuf::Timestamp* release_started_at(); + ::google::protobuf::Timestamp* mutable_started_at(); + void set_allocated_started_at(::google::protobuf::Timestamp* started_at); + + // .google.protobuf.Duration duration = 6; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 6; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 8; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 8; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .flyteidl.core.Identifier workflow_id = 11; + bool has_workflow_id() const; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 11; + const ::flyteidl::core::Identifier& workflow_id() const; + ::flyteidl::core::Identifier* release_workflow_id(); + ::flyteidl::core::Identifier* mutable_workflow_id(); + void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); + + // .flyteidl.core.WorkflowExecution.Phase phase = 4; + void clear_phase(); + static const int kPhaseFieldNumber = 4; + ::flyteidl::core::WorkflowExecution_Phase phase() const; + void set_phase(::flyteidl::core::WorkflowExecution_Phase value); + + // .flyteidl.admin.LiteralMapBlob outputs = 1; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 1; + const ::flyteidl::admin::LiteralMapBlob& outputs() const; + ::flyteidl::admin::LiteralMapBlob* release_outputs(); + ::flyteidl::admin::LiteralMapBlob* mutable_outputs(); + void set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs); + + // .flyteidl.core.ExecutionError error = 2; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 2; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // string abort_cause = 10; + private: + bool has_abort_cause() const; + public: + void clear_abort_cause(); + static const int kAbortCauseFieldNumber = 10; + const ::std::string& abort_cause() const; + void set_abort_cause(const ::std::string& value); + #if LANG_CXX11 + void set_abort_cause(::std::string&& value); + #endif + void set_abort_cause(const char* value); + void set_abort_cause(const char* value, size_t size); + ::std::string* mutable_abort_cause(); + ::std::string* release_abort_cause(); + void set_allocated_abort_cause(::std::string* abort_cause); + + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + private: + void set_has_outputs(); + void set_has_error(); + void set_has_abort_cause(); + + inline bool has_output_result() const; + void clear_output_result(); + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; + ::flyteidl::core::LiteralMap* computed_inputs_; + ::google::protobuf::Timestamp* started_at_; + ::google::protobuf::Duration* duration_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + ::flyteidl::core::Identifier* workflow_id_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::flyteidl::admin::LiteralMapBlob* outputs_; + ::flyteidl::core::ExecutionError* error_; + ::google::protobuf::internal::ArenaStringPtr abort_cause_; + } output_result_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionClosureImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionMetadata) */ { + public: + ExecutionMetadata(); + virtual ~ExecutionMetadata(); + + ExecutionMetadata(const ExecutionMetadata& from); + + inline ExecutionMetadata& operator=(const ExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionMetadata(ExecutionMetadata&& from) noexcept + : ExecutionMetadata() { + *this = ::std::move(from); + } + + inline ExecutionMetadata& operator=(ExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_ExecutionMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; + + void Swap(ExecutionMetadata* other); + friend void swap(ExecutionMetadata& a, ExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionMetadata& from); + void MergeFrom(const ExecutionMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef ExecutionMetadata_ExecutionMode ExecutionMode; + static const ExecutionMode MANUAL = + ExecutionMetadata_ExecutionMode_MANUAL; + static const ExecutionMode SCHEDULED = + ExecutionMetadata_ExecutionMode_SCHEDULED; + static const ExecutionMode SYSTEM = + ExecutionMetadata_ExecutionMode_SYSTEM; + static const ExecutionMode RELAUNCH = + ExecutionMetadata_ExecutionMode_RELAUNCH; + static const ExecutionMode CHILD_WORKFLOW = + ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW; + static inline bool ExecutionMode_IsValid(int value) { + return ExecutionMetadata_ExecutionMode_IsValid(value); + } + static const ExecutionMode ExecutionMode_MIN = + ExecutionMetadata_ExecutionMode_ExecutionMode_MIN; + static const ExecutionMode ExecutionMode_MAX = + ExecutionMetadata_ExecutionMode_ExecutionMode_MAX; + static const int ExecutionMode_ARRAYSIZE = + ExecutionMetadata_ExecutionMode_ExecutionMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ExecutionMode_descriptor() { + return ExecutionMetadata_ExecutionMode_descriptor(); + } + static inline const ::std::string& ExecutionMode_Name(ExecutionMode value) { + return ExecutionMetadata_ExecutionMode_Name(value); + } + static inline bool ExecutionMode_Parse(const ::std::string& name, + ExecutionMode* value) { + return ExecutionMetadata_ExecutionMode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string principal = 2; + void clear_principal(); + static const int kPrincipalFieldNumber = 2; + const ::std::string& principal() const; + void set_principal(const ::std::string& value); + #if LANG_CXX11 + void set_principal(::std::string&& value); + #endif + void set_principal(const char* value); + void set_principal(const char* value, size_t size); + ::std::string* mutable_principal(); + ::std::string* release_principal(); + void set_allocated_principal(::std::string* principal); + + // .google.protobuf.Timestamp scheduled_at = 4; + bool has_scheduled_at() const; + void clear_scheduled_at(); + static const int kScheduledAtFieldNumber = 4; + const ::google::protobuf::Timestamp& scheduled_at() const; + ::google::protobuf::Timestamp* release_scheduled_at(); + ::google::protobuf::Timestamp* mutable_scheduled_at(); + void set_allocated_scheduled_at(::google::protobuf::Timestamp* scheduled_at); + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + bool has_parent_node_execution() const; + void clear_parent_node_execution(); + static const int kParentNodeExecutionFieldNumber = 5; + const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution() const; + ::flyteidl::core::NodeExecutionIdentifier* release_parent_node_execution(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_parent_node_execution(); + void set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution); + + // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + bool has_reference_execution() const; + void clear_reference_execution(); + static const int kReferenceExecutionFieldNumber = 16; + const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_reference_execution(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_reference_execution(); + void set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution); + + // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + void clear_mode(); + static const int kModeFieldNumber = 1; + ::flyteidl::admin::ExecutionMetadata_ExecutionMode mode() const; + void set_mode(::flyteidl::admin::ExecutionMetadata_ExecutionMode value); + + // uint32 nesting = 3; + void clear_nesting(); + static const int kNestingFieldNumber = 3; + ::google::protobuf::uint32 nesting() const; + void set_nesting(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr principal_; + ::google::protobuf::Timestamp* scheduled_at_; + ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_; + ::flyteidl::core::WorkflowExecutionIdentifier* reference_execution_; + int mode_; + ::google::protobuf::uint32 nesting_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class NotificationList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NotificationList) */ { + public: + NotificationList(); + virtual ~NotificationList(); + + NotificationList(const NotificationList& from); + + inline NotificationList& operator=(const NotificationList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NotificationList(NotificationList&& from) noexcept + : NotificationList() { + *this = ::std::move(from); + } + + inline NotificationList& operator=(NotificationList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NotificationList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NotificationList* internal_default_instance() { + return reinterpret_cast( + &_NotificationList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 9; + + void Swap(NotificationList* other); + friend void swap(NotificationList& a, NotificationList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NotificationList* New() const PROTOBUF_FINAL { return New(NULL); } + + NotificationList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NotificationList& from); + void MergeFrom(const NotificationList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NotificationList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Notification notifications = 1; + int notifications_size() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 1; + const ::flyteidl::admin::Notification& notifications(int index) const; + ::flyteidl::admin::Notification* mutable_notifications(int index); + ::flyteidl::admin::Notification* add_notifications(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* + mutable_notifications(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& + notifications() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsNotificationListImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionSpec : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionSpec) */ { + public: + ExecutionSpec(); + virtual ~ExecutionSpec(); + + ExecutionSpec(const ExecutionSpec& from); + + inline ExecutionSpec& operator=(const ExecutionSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionSpec(ExecutionSpec&& from) noexcept + : ExecutionSpec() { + *this = ::std::move(from); + } + + inline ExecutionSpec& operator=(ExecutionSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionSpec& default_instance(); + + enum NotificationOverridesCase { + kNotifications = 5, + kDisableAll = 6, + NOTIFICATION_OVERRIDES_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionSpec* internal_default_instance() { + return reinterpret_cast( + &_ExecutionSpec_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 10; + + void Swap(ExecutionSpec* other); + friend void swap(ExecutionSpec& a, ExecutionSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionSpec* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionSpec* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionSpec& from); + void MergeFrom(const ExecutionSpec& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier launch_plan = 1; + bool has_launch_plan() const; + void clear_launch_plan(); + static const int kLaunchPlanFieldNumber = 1; + const ::flyteidl::core::Identifier& launch_plan() const; + ::flyteidl::core::Identifier* release_launch_plan(); + ::flyteidl::core::Identifier* mutable_launch_plan(); + void set_allocated_launch_plan(::flyteidl::core::Identifier* launch_plan); + + // .flyteidl.core.LiteralMap inputs = 2; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 2; + const ::flyteidl::core::LiteralMap& inputs() const; + ::flyteidl::core::LiteralMap* release_inputs(); + ::flyteidl::core::LiteralMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); + + // .flyteidl.admin.ExecutionMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::admin::ExecutionMetadata& metadata() const; + ::flyteidl::admin::ExecutionMetadata* release_metadata(); + ::flyteidl::admin::ExecutionMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata); + + // .flyteidl.admin.Labels labels = 7; + bool has_labels() const; + void clear_labels(); + static const int kLabelsFieldNumber = 7; + const ::flyteidl::admin::Labels& labels() const; + ::flyteidl::admin::Labels* release_labels(); + ::flyteidl::admin::Labels* mutable_labels(); + void set_allocated_labels(::flyteidl::admin::Labels* labels); + + // .flyteidl.admin.Annotations annotations = 8; + bool has_annotations() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 8; + const ::flyteidl::admin::Annotations& annotations() const; + ::flyteidl::admin::Annotations* release_annotations(); + ::flyteidl::admin::Annotations* mutable_annotations(); + void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); + + // .flyteidl.admin.NotificationList notifications = 5; + bool has_notifications() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 5; + const ::flyteidl::admin::NotificationList& notifications() const; + ::flyteidl::admin::NotificationList* release_notifications(); + ::flyteidl::admin::NotificationList* mutable_notifications(); + void set_allocated_notifications(::flyteidl::admin::NotificationList* notifications); + + // bool disable_all = 6; + private: + bool has_disable_all() const; + public: + void clear_disable_all(); + static const int kDisableAllFieldNumber = 6; + bool disable_all() const; + void set_disable_all(bool value); + + NotificationOverridesCase notification_overrides_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + private: + void set_has_notifications(); + void set_has_disable_all(); + + inline bool has_notification_overrides() const; + void clear_notification_overrides(); + inline void clear_has_notification_overrides(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* launch_plan_; + ::flyteidl::core::LiteralMap* inputs_; + ::flyteidl::admin::ExecutionMetadata* metadata_; + ::flyteidl::admin::Labels* labels_; + ::flyteidl::admin::Annotations* annotations_; + union NotificationOverridesUnion { + NotificationOverridesUnion() {} + ::flyteidl::admin::NotificationList* notifications_; + bool disable_all_; + } notification_overrides_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionSpecImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionTerminateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionTerminateRequest) */ { + public: + ExecutionTerminateRequest(); + virtual ~ExecutionTerminateRequest(); + + ExecutionTerminateRequest(const ExecutionTerminateRequest& from); + + inline ExecutionTerminateRequest& operator=(const ExecutionTerminateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionTerminateRequest(ExecutionTerminateRequest&& from) noexcept + : ExecutionTerminateRequest() { + *this = ::std::move(from); + } + + inline ExecutionTerminateRequest& operator=(ExecutionTerminateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionTerminateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionTerminateRequest* internal_default_instance() { + return reinterpret_cast( + &_ExecutionTerminateRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 11; + + void Swap(ExecutionTerminateRequest* other); + friend void swap(ExecutionTerminateRequest& a, ExecutionTerminateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionTerminateRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionTerminateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionTerminateRequest& from); + void MergeFrom(const ExecutionTerminateRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionTerminateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string cause = 2; + void clear_cause(); + static const int kCauseFieldNumber = 2; + const ::std::string& cause() const; + void set_cause(const ::std::string& value); + #if LANG_CXX11 + void set_cause(::std::string&& value); + #endif + void set_cause(const char* value); + void set_cause(const char* value, size_t size); + ::std::string* mutable_cause(); + ::std::string* release_cause(); + void set_allocated_cause(::std::string* cause); + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cause_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionTerminateRequestImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionTerminateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionTerminateResponse) */ { + public: + ExecutionTerminateResponse(); + virtual ~ExecutionTerminateResponse(); + + ExecutionTerminateResponse(const ExecutionTerminateResponse& from); + + inline ExecutionTerminateResponse& operator=(const ExecutionTerminateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionTerminateResponse(ExecutionTerminateResponse&& from) noexcept + : ExecutionTerminateResponse() { + *this = ::std::move(from); + } + + inline ExecutionTerminateResponse& operator=(ExecutionTerminateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionTerminateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionTerminateResponse* internal_default_instance() { + return reinterpret_cast( + &_ExecutionTerminateResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 12; + + void Swap(ExecutionTerminateResponse* other); + friend void swap(ExecutionTerminateResponse& a, ExecutionTerminateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionTerminateResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionTerminateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionTerminateResponse& from); + void MergeFrom(const ExecutionTerminateResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionTerminateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsExecutionTerminateResponseImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetDataRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetDataRequest) */ { + public: + WorkflowExecutionGetDataRequest(); + virtual ~WorkflowExecutionGetDataRequest(); + + WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from); + + inline WorkflowExecutionGetDataRequest& operator=(const WorkflowExecutionGetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetDataRequest(WorkflowExecutionGetDataRequest&& from) noexcept + : WorkflowExecutionGetDataRequest() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetDataRequest& operator=(WorkflowExecutionGetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionGetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetDataRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 13; + + void Swap(WorkflowExecutionGetDataRequest* other); + friend void swap(WorkflowExecutionGetDataRequest& a, WorkflowExecutionGetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetDataRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionGetDataRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionGetDataRequest& from); + void MergeFrom(const WorkflowExecutionGetDataRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionGetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetDataRequestImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionGetDataResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetDataResponse) */ { + public: + WorkflowExecutionGetDataResponse(); + virtual ~WorkflowExecutionGetDataResponse(); + + WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from); + + inline WorkflowExecutionGetDataResponse& operator=(const WorkflowExecutionGetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionGetDataResponse(WorkflowExecutionGetDataResponse&& from) noexcept + : WorkflowExecutionGetDataResponse() { + *this = ::std::move(from); + } + + inline WorkflowExecutionGetDataResponse& operator=(WorkflowExecutionGetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionGetDataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionGetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionGetDataResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 14; + + void Swap(WorkflowExecutionGetDataResponse* other); + friend void swap(WorkflowExecutionGetDataResponse& a, WorkflowExecutionGetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionGetDataResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionGetDataResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionGetDataResponse& from); + void MergeFrom(const WorkflowExecutionGetDataResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionGetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.UrlBlob outputs = 1; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 1; + const ::flyteidl::admin::UrlBlob& outputs() const; + ::flyteidl::admin::UrlBlob* release_outputs(); + ::flyteidl::admin::UrlBlob* mutable_outputs(); + void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::UrlBlob* outputs_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::InitDefaultsWorkflowExecutionGetDataResponseImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ExecutionCreateRequest + +// string project = 1; +inline void ExecutionCreateRequest::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionCreateRequest::project() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.project) + return project_.GetNoArena(); +} +inline void ExecutionCreateRequest::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.project) +} +#if LANG_CXX11 +inline void ExecutionCreateRequest::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.project) +} +#endif +inline void ExecutionCreateRequest::set_project(const char* value) { + GOOGLE_DCHECK(value != NULL); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.project) +} +inline void ExecutionCreateRequest::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.project) +} +inline ::std::string* ExecutionCreateRequest::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionCreateRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionCreateRequest::set_allocated_project(::std::string* project) { + if (project != NULL) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.project) +} + +// string domain = 2; +inline void ExecutionCreateRequest::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionCreateRequest::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.domain) + return domain_.GetNoArena(); +} +inline void ExecutionCreateRequest::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.domain) +} +#if LANG_CXX11 +inline void ExecutionCreateRequest::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.domain) +} +#endif +inline void ExecutionCreateRequest::set_domain(const char* value) { + GOOGLE_DCHECK(value != NULL); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.domain) +} +inline void ExecutionCreateRequest::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.domain) +} +inline ::std::string* ExecutionCreateRequest::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionCreateRequest::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionCreateRequest::set_allocated_domain(::std::string* domain) { + if (domain != NULL) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.domain) +} + +// string name = 3; +inline void ExecutionCreateRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionCreateRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.name) + return name_.GetNoArena(); +} +inline void ExecutionCreateRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.name) +} +#if LANG_CXX11 +inline void ExecutionCreateRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.name) +} +#endif +inline void ExecutionCreateRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.name) +} +inline void ExecutionCreateRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.name) +} +inline ::std::string* ExecutionCreateRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionCreateRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionCreateRequest::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.name) +} + +// .flyteidl.admin.ExecutionSpec spec = 4; +inline bool ExecutionCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != NULL; +} +inline void ExecutionCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; +} +inline const ::flyteidl::admin::ExecutionSpec& ExecutionCreateRequest::spec() const { + const ::flyteidl::admin::ExecutionSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.spec) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionSpec_default_instance_); +} +inline ::flyteidl::admin::ExecutionSpec* ExecutionCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.spec) + + ::flyteidl::admin::ExecutionSpec* temp = spec_; + spec_ = NULL; + return temp; +} +inline ::flyteidl::admin::ExecutionSpec* ExecutionCreateRequest::mutable_spec() { + + if (spec_ == NULL) { + spec_ = new ::flyteidl::admin::ExecutionSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.spec) + return spec_; +} +inline void ExecutionCreateRequest::set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// ExecutionRelaunchRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionRelaunchRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionRelaunchRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRelaunchRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRelaunchRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRelaunchRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRelaunchRequest.id) + return id_; +} +inline void ExecutionRelaunchRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRelaunchRequest.id) +} + +// string name = 3; +inline void ExecutionRelaunchRequest::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionRelaunchRequest::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.name) + return name_.GetNoArena(); +} +inline void ExecutionRelaunchRequest::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRelaunchRequest.name) +} +#if LANG_CXX11 +inline void ExecutionRelaunchRequest::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionRelaunchRequest.name) +} +#endif +inline void ExecutionRelaunchRequest::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionRelaunchRequest.name) +} +inline void ExecutionRelaunchRequest::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionRelaunchRequest.name) +} +inline ::std::string* ExecutionRelaunchRequest::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRelaunchRequest.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionRelaunchRequest::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRelaunchRequest.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionRelaunchRequest::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRelaunchRequest.name) +} + +// ------------------------------------------------------------------- + +// ExecutionCreateResponse + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionCreateResponse::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionCreateResponse::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateResponse.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionCreateResponse::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateResponse.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionCreateResponse::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateResponse.id) + return id_; +} +inline void ExecutionCreateResponse::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateResponse.id) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool WorkflowExecutionGetRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetRequest.id) + return id_; +} +inline void WorkflowExecutionGetRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetRequest.id) +} + +// ------------------------------------------------------------------- + +// Execution + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool Execution::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& Execution::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Execution::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Execution::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.id) + return id_; +} +inline void Execution::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.id) +} + +// .flyteidl.admin.ExecutionSpec spec = 2; +inline bool Execution::has_spec() const { + return this != internal_default_instance() && spec_ != NULL; +} +inline void Execution::clear_spec() { + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; +} +inline const ::flyteidl::admin::ExecutionSpec& Execution::spec() const { + const ::flyteidl::admin::ExecutionSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.spec) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionSpec_default_instance_); +} +inline ::flyteidl::admin::ExecutionSpec* Execution::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.spec) + + ::flyteidl::admin::ExecutionSpec* temp = spec_; + spec_ = NULL; + return temp; +} +inline ::flyteidl::admin::ExecutionSpec* Execution::mutable_spec() { + + if (spec_ == NULL) { + spec_ = new ::flyteidl::admin::ExecutionSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.spec) + return spec_; +} +inline void Execution::set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.spec) +} + +// .flyteidl.admin.ExecutionClosure closure = 3; +inline bool Execution::has_closure() const { + return this != internal_default_instance() && closure_ != NULL; +} +inline void Execution::clear_closure() { + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; +} +inline const ::flyteidl::admin::ExecutionClosure& Execution::closure() const { + const ::flyteidl::admin::ExecutionClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.closure) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionClosure_default_instance_); +} +inline ::flyteidl::admin::ExecutionClosure* Execution::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.closure) + + ::flyteidl::admin::ExecutionClosure* temp = closure_; + closure_ = NULL; + return temp; +} +inline ::flyteidl::admin::ExecutionClosure* Execution::mutable_closure() { + + if (closure_ == NULL) { + closure_ = new ::flyteidl::admin::ExecutionClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.closure) + return closure_; +} +inline void Execution::set_allocated_closure(::flyteidl::admin::ExecutionClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.closure) +} + +// ------------------------------------------------------------------- + +// ExecutionList + +// repeated .flyteidl.admin.Execution executions = 1; +inline int ExecutionList::executions_size() const { + return executions_.size(); +} +inline void ExecutionList::clear_executions() { + executions_.Clear(); +} +inline const ::flyteidl::admin::Execution& ExecutionList::executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionList.executions) + return executions_.Get(index); +} +inline ::flyteidl::admin::Execution* ExecutionList::mutable_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionList.executions) + return executions_.Mutable(index); +} +inline ::flyteidl::admin::Execution* ExecutionList::add_executions() { + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionList.executions) + return executions_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >* +ExecutionList::mutable_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionList.executions) + return &executions_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >& +ExecutionList::executions() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionList.executions) + return executions_; +} + +// string token = 2; +inline void ExecutionList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionList.token) + return token_.GetNoArena(); +} +inline void ExecutionList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionList.token) +} +#if LANG_CXX11 +inline void ExecutionList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionList.token) +} +#endif +inline void ExecutionList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionList.token) +} +inline void ExecutionList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionList.token) +} +inline ::std::string* ExecutionList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionList.token) +} + +// ------------------------------------------------------------------- + +// LiteralMapBlob + +// .flyteidl.core.LiteralMap values = 1; +inline bool LiteralMapBlob::has_values() const { + return data_case() == kValues; +} +inline void LiteralMapBlob::set_has_values() { + _oneof_case_[0] = kValues; +} +inline ::flyteidl::core::LiteralMap* LiteralMapBlob::release_values() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LiteralMapBlob.values) + if (has_values()) { + clear_has_data(); + ::flyteidl::core::LiteralMap* temp = data_.values_; + data_.values_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::LiteralMap& LiteralMapBlob::values() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LiteralMapBlob.values) + return has_values() + ? *data_.values_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* LiteralMapBlob::mutable_values() { + if (!has_values()) { + clear_data(); + set_has_values(); + data_.values_ = new ::flyteidl::core::LiteralMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LiteralMapBlob.values) + return data_.values_; +} + +// string uri = 2; +inline bool LiteralMapBlob::has_uri() const { + return data_case() == kUri; +} +inline void LiteralMapBlob::set_has_uri() { + _oneof_case_[0] = kUri; +} +inline void LiteralMapBlob::clear_uri() { + if (has_uri()) { + data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_data(); + } +} +inline const ::std::string& LiteralMapBlob::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LiteralMapBlob.uri) + if (has_uri()) { + return data_.uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void LiteralMapBlob::set_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) +} +#if LANG_CXX11 +inline void LiteralMapBlob::set_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LiteralMapBlob.uri) +} +#endif +inline void LiteralMapBlob::set_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.LiteralMapBlob.uri) +} +inline void LiteralMapBlob::set_uri(const char* value, size_t size) { + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LiteralMapBlob.uri) +} +inline ::std::string* LiteralMapBlob::mutable_uri() { + if (!has_uri()) { + clear_data(); + set_has_uri(); + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LiteralMapBlob.uri) + return data_.uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LiteralMapBlob::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LiteralMapBlob.uri) + if (has_uri()) { + clear_has_data(); + return data_.uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void LiteralMapBlob::set_allocated_uri(::std::string* uri) { + if (!has_uri()) { + data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_data(); + if (uri != NULL) { + set_has_uri(); + data_.uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.uri) +} + +inline bool LiteralMapBlob::has_data() const { + return data_case() != DATA_NOT_SET; +} +inline void LiteralMapBlob::clear_has_data() { + _oneof_case_[0] = DATA_NOT_SET; +} +inline LiteralMapBlob::DataCase LiteralMapBlob::data_case() const { + return LiteralMapBlob::DataCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ExecutionClosure + +// .flyteidl.admin.LiteralMapBlob outputs = 1; +inline bool ExecutionClosure::has_outputs() const { + return output_result_case() == kOutputs; +} +inline void ExecutionClosure::set_has_outputs() { + _oneof_case_[0] = kOutputs; +} +inline void ExecutionClosure::clear_outputs() { + if (has_outputs()) { + delete output_result_.outputs_; + clear_has_output_result(); + } +} +inline ::flyteidl::admin::LiteralMapBlob* ExecutionClosure::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.outputs) + if (has_outputs()) { + clear_has_output_result(); + ::flyteidl::admin::LiteralMapBlob* temp = output_result_.outputs_; + output_result_.outputs_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::LiteralMapBlob& ExecutionClosure::outputs() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.outputs) + return has_outputs() + ? *output_result_.outputs_ + : *reinterpret_cast< ::flyteidl::admin::LiteralMapBlob*>(&::flyteidl::admin::_LiteralMapBlob_default_instance_); +} +inline ::flyteidl::admin::LiteralMapBlob* ExecutionClosure::mutable_outputs() { + if (!has_outputs()) { + clear_output_result(); + set_has_outputs(); + output_result_.outputs_ = new ::flyteidl::admin::LiteralMapBlob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.outputs) + return output_result_.outputs_; +} + +// .flyteidl.core.ExecutionError error = 2; +inline bool ExecutionClosure::has_error() const { + return output_result_case() == kError; +} +inline void ExecutionClosure::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* ExecutionClosure::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ExecutionError& ExecutionClosure::error() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* ExecutionClosure::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = new ::flyteidl::core::ExecutionError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.error) + return output_result_.error_; +} + +// string abort_cause = 10; +inline bool ExecutionClosure::has_abort_cause() const { + return output_result_case() == kAbortCause; +} +inline void ExecutionClosure::set_has_abort_cause() { + _oneof_case_[0] = kAbortCause; +} +inline void ExecutionClosure::clear_abort_cause() { + if (has_abort_cause()) { + output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& ExecutionClosure::abort_cause() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.abort_cause) + if (has_abort_cause()) { + return output_result_.abort_cause_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void ExecutionClosure::set_abort_cause(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) +} +#if LANG_CXX11 +inline void ExecutionClosure::set_abort_cause(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionClosure.abort_cause) +} +#endif +inline void ExecutionClosure::set_abort_cause(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionClosure.abort_cause) +} +inline void ExecutionClosure::set_abort_cause(const char* value, size_t size) { + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionClosure.abort_cause) +} +inline ::std::string* ExecutionClosure::mutable_abort_cause() { + if (!has_abort_cause()) { + clear_output_result(); + set_has_abort_cause(); + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.abort_cause) + return output_result_.abort_cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionClosure::release_abort_cause() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.abort_cause) + if (has_abort_cause()) { + clear_has_output_result(); + return output_result_.abort_cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void ExecutionClosure::set_allocated_abort_cause(::std::string* abort_cause) { + if (!has_abort_cause()) { + output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_output_result(); + if (abort_cause != NULL) { + set_has_abort_cause(); + output_result_.abort_cause_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + abort_cause); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.abort_cause) +} + +// .flyteidl.core.LiteralMap computed_inputs = 3; +inline bool ExecutionClosure::has_computed_inputs() const { + return this != internal_default_instance() && computed_inputs_ != NULL; +} +inline const ::flyteidl::core::LiteralMap& ExecutionClosure::computed_inputs() const { + const ::flyteidl::core::LiteralMap* p = computed_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.computed_inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* ExecutionClosure::release_computed_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.computed_inputs) + + ::flyteidl::core::LiteralMap* temp = computed_inputs_; + computed_inputs_ = NULL; + return temp; +} +inline ::flyteidl::core::LiteralMap* ExecutionClosure::mutable_computed_inputs() { + + if (computed_inputs_ == NULL) { + computed_inputs_ = new ::flyteidl::core::LiteralMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.computed_inputs) + return computed_inputs_; +} +inline void ExecutionClosure::set_allocated_computed_inputs(::flyteidl::core::LiteralMap* computed_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(computed_inputs_); + } + if (computed_inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + computed_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, computed_inputs, submessage_arena); + } + + } else { + + } + computed_inputs_ = computed_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.computed_inputs) +} + +// .flyteidl.core.WorkflowExecution.Phase phase = 4; +inline void ExecutionClosure::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::WorkflowExecution_Phase ExecutionClosure::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.phase) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); +} +inline void ExecutionClosure::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.phase) +} + +// .google.protobuf.Timestamp started_at = 5; +inline bool ExecutionClosure::has_started_at() const { + return this != internal_default_instance() && started_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& ExecutionClosure::started_at() const { + const ::google::protobuf::Timestamp* p = started_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.started_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionClosure::release_started_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.started_at) + + ::google::protobuf::Timestamp* temp = started_at_; + started_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_started_at() { + + if (started_at_ == NULL) { + started_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.started_at) + return started_at_; +} +inline void ExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); + } + if (started_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(started_at)->GetArena(); + if (message_arena != submessage_arena) { + started_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, started_at, submessage_arena); + } + + } else { + + } + started_at_ = started_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.started_at) +} + +// .google.protobuf.Duration duration = 6; +inline bool ExecutionClosure::has_duration() const { + return this != internal_default_instance() && duration_ != NULL; +} +inline const ::google::protobuf::Duration& ExecutionClosure::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.duration) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* ExecutionClosure::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* ExecutionClosure::mutable_duration() { + + if (duration_ == NULL) { + duration_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.duration) + return duration_; +} +inline void ExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.duration) +} + +// .google.protobuf.Timestamp created_at = 7; +inline bool ExecutionClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& ExecutionClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.created_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_created_at() { + + if (created_at_ == NULL) { + created_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.created_at) + return created_at_; +} +inline void ExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 8; +inline bool ExecutionClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& ExecutionClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.updated_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_updated_at() { + + if (updated_at_ == NULL) { + updated_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.updated_at) + return updated_at_; +} +inline void ExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.updated_at) +} + +// repeated .flyteidl.admin.Notification notifications = 9; +inline int ExecutionClosure::notifications_size() const { + return notifications_.size(); +} +inline const ::flyteidl::admin::Notification& ExecutionClosure::notifications(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.notifications) + return notifications_.Get(index); +} +inline ::flyteidl::admin::Notification* ExecutionClosure::mutable_notifications(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.notifications) + return notifications_.Mutable(index); +} +inline ::flyteidl::admin::Notification* ExecutionClosure::add_notifications() { + // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionClosure.notifications) + return notifications_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* +ExecutionClosure::mutable_notifications() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionClosure.notifications) + return ¬ifications_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& +ExecutionClosure::notifications() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionClosure.notifications) + return notifications_; +} + +// .flyteidl.core.Identifier workflow_id = 11; +inline bool ExecutionClosure::has_workflow_id() const { + return this != internal_default_instance() && workflow_id_ != NULL; +} +inline const ::flyteidl::core::Identifier& ExecutionClosure::workflow_id() const { + const ::flyteidl::core::Identifier* p = workflow_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.workflow_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* ExecutionClosure::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.workflow_id) + + ::flyteidl::core::Identifier* temp = workflow_id_; + workflow_id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* ExecutionClosure::mutable_workflow_id() { + + if (workflow_id_ == NULL) { + workflow_id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.workflow_id) + return workflow_id_; +} +inline void ExecutionClosure::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); + } + if (workflow_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_id, submessage_arena); + } + + } else { + + } + workflow_id_ = workflow_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.workflow_id) +} + +inline bool ExecutionClosure::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void ExecutionClosure::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline ExecutionClosure::OutputResultCase ExecutionClosure::output_result_case() const { + return ExecutionClosure::OutputResultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ExecutionMetadata + +// .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; +inline void ExecutionMetadata::clear_mode() { + mode_ = 0; +} +inline ::flyteidl::admin::ExecutionMetadata_ExecutionMode ExecutionMetadata::mode() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.mode) + return static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(mode_); +} +inline void ExecutionMetadata::set_mode(::flyteidl::admin::ExecutionMetadata_ExecutionMode value) { + + mode_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.mode) +} + +// string principal = 2; +inline void ExecutionMetadata::clear_principal() { + principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionMetadata::principal() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.principal) + return principal_.GetNoArena(); +} +inline void ExecutionMetadata::set_principal(const ::std::string& value) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.principal) +} +#if LANG_CXX11 +inline void ExecutionMetadata::set_principal(::std::string&& value) { + + principal_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionMetadata.principal) +} +#endif +inline void ExecutionMetadata::set_principal(const char* value) { + GOOGLE_DCHECK(value != NULL); + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionMetadata.principal) +} +inline void ExecutionMetadata::set_principal(const char* value, size_t size) { + + principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionMetadata.principal) +} +inline ::std::string* ExecutionMetadata::mutable_principal() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.principal) + return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionMetadata::release_principal() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.principal) + + return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionMetadata::set_allocated_principal(::std::string* principal) { + if (principal != NULL) { + + } else { + + } + principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.principal) +} + +// uint32 nesting = 3; +inline void ExecutionMetadata::clear_nesting() { + nesting_ = 0u; +} +inline ::google::protobuf::uint32 ExecutionMetadata::nesting() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.nesting) + return nesting_; +} +inline void ExecutionMetadata::set_nesting(::google::protobuf::uint32 value) { + + nesting_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.nesting) +} + +// .google.protobuf.Timestamp scheduled_at = 4; +inline bool ExecutionMetadata::has_scheduled_at() const { + return this != internal_default_instance() && scheduled_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& ExecutionMetadata::scheduled_at() const { + const ::google::protobuf::Timestamp* p = scheduled_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.scheduled_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* ExecutionMetadata::release_scheduled_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.scheduled_at) + + ::google::protobuf::Timestamp* temp = scheduled_at_; + scheduled_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* ExecutionMetadata::mutable_scheduled_at() { + + if (scheduled_at_ == NULL) { + scheduled_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.scheduled_at) + return scheduled_at_; +} +inline void ExecutionMetadata::set_allocated_scheduled_at(::google::protobuf::Timestamp* scheduled_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(scheduled_at_); + } + if (scheduled_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(scheduled_at)->GetArena(); + if (message_arena != submessage_arena) { + scheduled_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scheduled_at, submessage_arena); + } + + } else { + + } + scheduled_at_ = scheduled_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.scheduled_at) +} + +// .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; +inline bool ExecutionMetadata::has_parent_node_execution() const { + return this != internal_default_instance() && parent_node_execution_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& ExecutionMetadata::parent_node_execution() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.parent_node_execution) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* ExecutionMetadata::release_parent_node_execution() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.parent_node_execution) + + ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_; + parent_node_execution_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* ExecutionMetadata::mutable_parent_node_execution() { + + if (parent_node_execution_ == NULL) { + parent_node_execution_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.parent_node_execution) + return parent_node_execution_; +} +inline void ExecutionMetadata::set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_node_execution_); + } + if (parent_node_execution) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + parent_node_execution = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_node_execution, submessage_arena); + } + + } else { + + } + parent_node_execution_ = parent_node_execution; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.parent_node_execution) +} + +// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; +inline bool ExecutionMetadata::has_reference_execution() const { + return this != internal_default_instance() && reference_execution_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionMetadata::reference_execution() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = reference_execution_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.reference_execution) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionMetadata::release_reference_execution() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.reference_execution) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = reference_execution_; + reference_execution_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionMetadata::mutable_reference_execution() { + + if (reference_execution_ == NULL) { + reference_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.reference_execution) + return reference_execution_; +} +inline void ExecutionMetadata::set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(reference_execution_); + } + if (reference_execution) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + reference_execution = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reference_execution, submessage_arena); + } + + } else { + + } + reference_execution_ = reference_execution; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.reference_execution) +} + +// ------------------------------------------------------------------- + +// NotificationList + +// repeated .flyteidl.admin.Notification notifications = 1; +inline int NotificationList::notifications_size() const { + return notifications_.size(); +} +inline const ::flyteidl::admin::Notification& NotificationList::notifications(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NotificationList.notifications) + return notifications_.Get(index); +} +inline ::flyteidl::admin::Notification* NotificationList::mutable_notifications(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NotificationList.notifications) + return notifications_.Mutable(index); +} +inline ::flyteidl::admin::Notification* NotificationList::add_notifications() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NotificationList.notifications) + return notifications_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* +NotificationList::mutable_notifications() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NotificationList.notifications) + return ¬ifications_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& +NotificationList::notifications() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NotificationList.notifications) + return notifications_; +} + +// ------------------------------------------------------------------- + +// ExecutionSpec + +// .flyteidl.core.Identifier launch_plan = 1; +inline bool ExecutionSpec::has_launch_plan() const { + return this != internal_default_instance() && launch_plan_ != NULL; +} +inline const ::flyteidl::core::Identifier& ExecutionSpec::launch_plan() const { + const ::flyteidl::core::Identifier* p = launch_plan_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.launch_plan) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* ExecutionSpec::release_launch_plan() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.launch_plan) + + ::flyteidl::core::Identifier* temp = launch_plan_; + launch_plan_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* ExecutionSpec::mutable_launch_plan() { + + if (launch_plan_ == NULL) { + launch_plan_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.launch_plan) + return launch_plan_; +} +inline void ExecutionSpec::set_allocated_launch_plan(::flyteidl::core::Identifier* launch_plan) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_); + } + if (launch_plan) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + launch_plan = ::google::protobuf::internal::GetOwnedMessage( + message_arena, launch_plan, submessage_arena); + } + + } else { + + } + launch_plan_ = launch_plan; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.launch_plan) +} + +// .flyteidl.core.LiteralMap inputs = 2; +inline bool ExecutionSpec::has_inputs() const { + return this != internal_default_instance() && inputs_ != NULL; +} +inline const ::flyteidl::core::LiteralMap& ExecutionSpec::inputs() const { + const ::flyteidl::core::LiteralMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* ExecutionSpec::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.inputs) + + ::flyteidl::core::LiteralMap* temp = inputs_; + inputs_ = NULL; + return temp; +} +inline ::flyteidl::core::LiteralMap* ExecutionSpec::mutable_inputs() { + + if (inputs_ == NULL) { + inputs_ = new ::flyteidl::core::LiteralMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.inputs) + return inputs_; +} +inline void ExecutionSpec::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.ExecutionSpec.inputs) +} + +// .flyteidl.admin.ExecutionMetadata metadata = 3; +inline bool ExecutionSpec::has_metadata() const { + return this != internal_default_instance() && metadata_ != NULL; +} +inline void ExecutionSpec::clear_metadata() { + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; +} +inline const ::flyteidl::admin::ExecutionMetadata& ExecutionSpec::metadata() const { + const ::flyteidl::admin::ExecutionMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_ExecutionMetadata_default_instance_); +} +inline ::flyteidl::admin::ExecutionMetadata* ExecutionSpec::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.metadata) + + ::flyteidl::admin::ExecutionMetadata* temp = metadata_; + metadata_ = NULL; + return temp; +} +inline ::flyteidl::admin::ExecutionMetadata* ExecutionSpec::mutable_metadata() { + + if (metadata_ == NULL) { + metadata_ = new ::flyteidl::admin::ExecutionMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.metadata) + return metadata_; +} +inline void ExecutionSpec::set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.metadata) +} + +// .flyteidl.admin.NotificationList notifications = 5; +inline bool ExecutionSpec::has_notifications() const { + return notification_overrides_case() == kNotifications; +} +inline void ExecutionSpec::set_has_notifications() { + _oneof_case_[0] = kNotifications; +} +inline void ExecutionSpec::clear_notifications() { + if (has_notifications()) { + delete notification_overrides_.notifications_; + clear_has_notification_overrides(); + } +} +inline ::flyteidl::admin::NotificationList* ExecutionSpec::release_notifications() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.notifications) + if (has_notifications()) { + clear_has_notification_overrides(); + ::flyteidl::admin::NotificationList* temp = notification_overrides_.notifications_; + notification_overrides_.notifications_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::NotificationList& ExecutionSpec::notifications() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.notifications) + return has_notifications() + ? *notification_overrides_.notifications_ + : *reinterpret_cast< ::flyteidl::admin::NotificationList*>(&::flyteidl::admin::_NotificationList_default_instance_); +} +inline ::flyteidl::admin::NotificationList* ExecutionSpec::mutable_notifications() { + if (!has_notifications()) { + clear_notification_overrides(); + set_has_notifications(); + notification_overrides_.notifications_ = new ::flyteidl::admin::NotificationList; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.notifications) + return notification_overrides_.notifications_; +} + +// bool disable_all = 6; +inline bool ExecutionSpec::has_disable_all() const { + return notification_overrides_case() == kDisableAll; +} +inline void ExecutionSpec::set_has_disable_all() { + _oneof_case_[0] = kDisableAll; +} +inline void ExecutionSpec::clear_disable_all() { + if (has_disable_all()) { + notification_overrides_.disable_all_ = false; + clear_has_notification_overrides(); + } +} +inline bool ExecutionSpec::disable_all() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.disable_all) + if (has_disable_all()) { + return notification_overrides_.disable_all_; + } + return false; +} +inline void ExecutionSpec::set_disable_all(bool value) { + if (!has_disable_all()) { + clear_notification_overrides(); + set_has_disable_all(); + } + notification_overrides_.disable_all_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.disable_all) +} + +// .flyteidl.admin.Labels labels = 7; +inline bool ExecutionSpec::has_labels() const { + return this != internal_default_instance() && labels_ != NULL; +} +inline const ::flyteidl::admin::Labels& ExecutionSpec::labels() const { + const ::flyteidl::admin::Labels* p = labels_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.labels) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Labels_default_instance_); +} +inline ::flyteidl::admin::Labels* ExecutionSpec::release_labels() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.labels) + + ::flyteidl::admin::Labels* temp = labels_; + labels_ = NULL; + return temp; +} +inline ::flyteidl::admin::Labels* ExecutionSpec::mutable_labels() { + + if (labels_ == NULL) { + labels_ = new ::flyteidl::admin::Labels; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.labels) + return labels_; +} +inline void ExecutionSpec::set_allocated_labels(::flyteidl::admin::Labels* labels) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); + } + if (labels) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + labels = ::google::protobuf::internal::GetOwnedMessage( + message_arena, labels, submessage_arena); + } + + } else { + + } + labels_ = labels; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.labels) +} + +// .flyteidl.admin.Annotations annotations = 8; +inline bool ExecutionSpec::has_annotations() const { + return this != internal_default_instance() && annotations_ != NULL; +} +inline const ::flyteidl::admin::Annotations& ExecutionSpec::annotations() const { + const ::flyteidl::admin::Annotations* p = annotations_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.annotations) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Annotations_default_instance_); +} +inline ::flyteidl::admin::Annotations* ExecutionSpec::release_annotations() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.annotations) + + ::flyteidl::admin::Annotations* temp = annotations_; + annotations_ = NULL; + return temp; +} +inline ::flyteidl::admin::Annotations* ExecutionSpec::mutable_annotations() { + + if (annotations_ == NULL) { + annotations_ = new ::flyteidl::admin::Annotations; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.annotations) + return annotations_; +} +inline void ExecutionSpec::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); + } + if (annotations) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + annotations = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotations, submessage_arena); + } + + } else { + + } + annotations_ = annotations; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.annotations) +} + +inline bool ExecutionSpec::has_notification_overrides() const { + return notification_overrides_case() != NOTIFICATION_OVERRIDES_NOT_SET; +} +inline void ExecutionSpec::clear_has_notification_overrides() { + _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; +} +inline ExecutionSpec::NotificationOverridesCase ExecutionSpec::notification_overrides_case() const { + return ExecutionSpec::NotificationOverridesCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ExecutionTerminateRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool ExecutionTerminateRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionTerminateRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionTerminateRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionTerminateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionTerminateRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionTerminateRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionTerminateRequest.id) + return id_; +} +inline void ExecutionTerminateRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionTerminateRequest.id) +} + +// string cause = 2; +inline void ExecutionTerminateRequest::clear_cause() { + cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionTerminateRequest::cause() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionTerminateRequest.cause) + return cause_.GetNoArena(); +} +inline void ExecutionTerminateRequest::set_cause(const ::std::string& value) { + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionTerminateRequest.cause) +} +#if LANG_CXX11 +inline void ExecutionTerminateRequest::set_cause(::std::string&& value) { + + cause_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionTerminateRequest.cause) +} +#endif +inline void ExecutionTerminateRequest::set_cause(const char* value) { + GOOGLE_DCHECK(value != NULL); + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionTerminateRequest.cause) +} +inline void ExecutionTerminateRequest::set_cause(const char* value, size_t size) { + + cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionTerminateRequest.cause) +} +inline ::std::string* ExecutionTerminateRequest::mutable_cause() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionTerminateRequest.cause) + return cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionTerminateRequest::release_cause() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionTerminateRequest.cause) + + return cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionTerminateRequest::set_allocated_cause(::std::string* cause) { + if (cause != NULL) { + + } else { + + } + cause_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cause); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionTerminateRequest.cause) +} + +// ------------------------------------------------------------------- + +// ExecutionTerminateResponse + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetDataRequest + +// .flyteidl.core.WorkflowExecutionIdentifier id = 1; +inline bool WorkflowExecutionGetDataRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetDataRequest::id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetDataRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataRequest.id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetDataRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataRequest.id) + return id_; +} +inline void WorkflowExecutionGetDataRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataRequest.id) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionGetDataResponse + +// .flyteidl.admin.UrlBlob outputs = 1; +inline bool WorkflowExecutionGetDataResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != NULL; +} +inline const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::outputs() const { + const ::flyteidl::admin::UrlBlob* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) + + ::flyteidl::admin::UrlBlob* temp = outputs_; + outputs_ = NULL; + return temp; +} +inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::mutable_outputs() { + + if (outputs_ == NULL) { + outputs_ = new ::flyteidl::admin::UrlBlob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) + return outputs_; +} +inline void WorkflowExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::ExecutionMetadata_ExecutionMode> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::ExecutionMetadata_ExecutionMode>() { + return ::flyteidl::admin::ExecutionMetadata_ExecutionMode_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc new file mode 100644 index 0000000000..c61c0ea86c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/launch_plan.proto + +#include "flyteidl/admin/launch_plan.pb.h" +#include "flyteidl/admin/launch_plan.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h new file mode 100644 index 0000000000..51c3f00483 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/launch_plan.proto +#ifndef GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED + +#include "flyteidl/admin/launch_plan.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc new file mode 100644 index 0000000000..0efdbd8e34 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc @@ -0,0 +1,3915 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +#include "flyteidl/admin/launch_plan.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class LaunchPlanCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanCreateRequest_default_instance_; +class LaunchPlanCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanCreateResponse_default_instance_; +class LaunchPlanDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlan_default_instance_; +class LaunchPlanListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanList_default_instance_; +class AuthDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr assumable_iam_role_; + ::google::protobuf::internal::ArenaStringPtr kubernetes_service_account_; +} _Auth_default_instance_; +class LaunchPlanSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanSpec_default_instance_; +class LaunchPlanClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanClosure_default_instance_; +class LaunchPlanMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanMetadata_default_instance_; +class LaunchPlanUpdateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanUpdateRequest_default_instance_; +class LaunchPlanUpdateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LaunchPlanUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto { +void InitDefaultsLaunchPlanCreateRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanSpec(); + { + void* ptr = &::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanCreateRequest::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanCreateRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanCreateRequestImpl); +} + +void InitDefaultsLaunchPlanCreateResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_LaunchPlanCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanCreateResponse::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanCreateResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanCreateResponseImpl); +} + +void InitDefaultsLaunchPlanImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanSpec(); + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanClosure(); + { + void* ptr = &::flyteidl::admin::_LaunchPlan_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlan(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlan::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlan() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanImpl); +} + +void InitDefaultsLaunchPlanListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlan(); + { + void* ptr = &::flyteidl::admin::_LaunchPlanList_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanList::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanListImpl); +} + +void InitDefaultsAuthImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_Auth_default_instance_; + new (ptr) ::flyteidl::admin::Auth(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Auth::InitAsDefaultInstance(); +} + +void InitDefaultsAuth() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAuthImpl); +} + +void InitDefaultsLaunchPlanSpecImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanMetadata(); + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterMap(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsLabels(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsAnnotations(); + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsAuth(); + { + void* ptr = &::flyteidl::admin::_LaunchPlanSpec_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanSpec::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanSpec() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanSpecImpl); +} + +void InitDefaultsLaunchPlanClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterMap(); + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableMap(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + { + void* ptr = &::flyteidl::admin::_LaunchPlanClosure_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanClosure::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanClosureImpl); +} + +void InitDefaultsLaunchPlanMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsSchedule(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsNotification(); + { + void* ptr = &::flyteidl::admin::_LaunchPlanMetadata_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanMetadataImpl); +} + +void InitDefaultsLaunchPlanUpdateRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + { + void* ptr = &::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanUpdateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanUpdateRequest::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanUpdateRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanUpdateRequestImpl); +} + +void InitDefaultsLaunchPlanUpdateResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_LaunchPlanUpdateResponse_default_instance_; + new (ptr) ::flyteidl::admin::LaunchPlanUpdateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::LaunchPlanUpdateResponse::InitAsDefaultInstance(); +} + +void InitDefaultsLaunchPlanUpdateResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaunchPlanUpdateResponseImpl); +} + +::google::protobuf::Metadata file_level_metadata[10]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, spec_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, spec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, closure_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, launch_plans_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Auth, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Auth, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::AuthDefaultTypeInternal, assumable_iam_role_), + offsetof(::flyteidl::admin::AuthDefaultTypeInternal, kubernetes_service_account_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Auth, method_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, workflow_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, entity_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, default_inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, fixed_inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, role_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, labels_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, annotations_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, auth_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, state_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, expected_inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, expected_outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, created_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, updated_at_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, schedule_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, notifications_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, state_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::LaunchPlanCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::LaunchPlanCreateResponse)}, + { 12, -1, sizeof(::flyteidl::admin::LaunchPlan)}, + { 20, -1, sizeof(::flyteidl::admin::LaunchPlanList)}, + { 27, -1, sizeof(::flyteidl::admin::Auth)}, + { 35, -1, sizeof(::flyteidl::admin::LaunchPlanSpec)}, + { 48, -1, sizeof(::flyteidl::admin::LaunchPlanClosure)}, + { 58, -1, sizeof(::flyteidl::admin::LaunchPlanMetadata)}, + { 65, -1, sizeof(::flyteidl::admin::LaunchPlanUpdateRequest)}, + { 72, -1, sizeof(::flyteidl::admin::LaunchPlanUpdateResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlan_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Auth_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_LaunchPlanUpdateResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/launch_plan.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n flyteidl/admin/launch_plan.proto\022\016flyt" + "eidl.admin\032\034flyteidl/core/literals.proto" + "\032\036flyteidl/core/identifier.proto\032\035flytei" + "dl/core/interface.proto\032\035flyteidl/admin/" + "schedule.proto\032\033flyteidl/admin/common.pr" + "oto\032\037google/protobuf/timestamp.proto\"n\n\027" + "LaunchPlanCreateRequest\022%\n\002id\030\001 \001(\0132\031.fl" + "yteidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.f" + "lyteidl.admin.LaunchPlanSpec\"\032\n\030LaunchPl" + "anCreateResponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 " + "\001(\0132\031.flyteidl.core.Identifier\022,\n\004spec\030\002" + " \001(\0132\036.flyteidl.admin.LaunchPlanSpec\0222\n\007" + "closure\030\003 \001(\0132!.flyteidl.admin.LaunchPla" + "nClosure\"Q\n\016LaunchPlanList\0220\n\014launch_pla" + "ns\030\001 \003(\0132\032.flyteidl.admin.LaunchPlan\022\r\n\005" + "token\030\002 \001(\t\"T\n\004Auth\022\034\n\022assumable_iam_rol" + "e\030\001 \001(\tH\000\022$\n\032kubernetes_service_account\030" + "\002 \001(\tH\000B\010\n\006method\"\363\002\n\016LaunchPlanSpec\022.\n\013" + "workflow_id\030\001 \001(\0132\031.flyteidl.core.Identi" + "fier\022;\n\017entity_metadata\030\002 \001(\0132\".flyteidl" + ".admin.LaunchPlanMetadata\0223\n\016default_inp" + "uts\030\003 \001(\0132\033.flyteidl.core.ParameterMap\022/" + "\n\014fixed_inputs\030\004 \001(\0132\031.flyteidl.core.Lit" + "eralMap\022\020\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(" + "\0132\026.flyteidl.admin.Labels\0220\n\013annotations" + "\030\007 \001(\0132\033.flyteidl.admin.Annotations\022\"\n\004a" + "uth\030\010 \001(\0132\024.flyteidl.admin.Auth\"\217\002\n\021Laun" + "chPlanClosure\022.\n\005state\030\001 \001(\0162\037.flyteidl." + "admin.LaunchPlanState\0224\n\017expected_inputs" + "\030\002 \001(\0132\033.flyteidl.core.ParameterMap\0224\n\020e" + "xpected_outputs\030\003 \001(\0132\032.flyteidl.core.Va" + "riableMap\022.\n\ncreated_at\030\004 \001(\0132\032.google.p" + "rotobuf.Timestamp\022.\n\nupdated_at\030\005 \001(\0132\032." + "google.protobuf.Timestamp\"u\n\022LaunchPlanM" + "etadata\022*\n\010schedule\030\001 \001(\0132\030.flyteidl.adm" + "in.Schedule\0223\n\rnotifications\030\002 \003(\0132\034.fly" + "teidl.admin.Notification\"p\n\027LaunchPlanUp" + "dateRequest\022%\n\002id\030\001 \001(\0132\031.flyteidl.core." + "Identifier\022.\n\005state\030\002 \001(\0162\037.flyteidl.adm" + "in.LaunchPlanState\"\032\n\030LaunchPlanUpdateRe" + "sponse*+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022" + "\n\n\006ACTIVE\020\001B3Z1github.com/lyft/flyteidl/" + "gen/pb-go/flyteidl/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1712); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/launch_plan.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2finterface_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* LaunchPlanState_descriptor() { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_enum_descriptors[0]; +} +bool LaunchPlanState_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + + +// =================================================================== + +void LaunchPlanCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::LaunchPlanSpec*>( + ::flyteidl::admin::LaunchPlanSpec::internal_default_instance()); +} +void LaunchPlanCreateRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanCreateRequest::kIdFieldNumber; +const int LaunchPlanCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanCreateRequest::LaunchPlanCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanCreateRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanCreateRequest) +} +LaunchPlanCreateRequest::LaunchPlanCreateRequest(const LaunchPlanCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::LaunchPlanSpec(*from.spec_); + } else { + spec_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanCreateRequest) +} + +void LaunchPlanCreateRequest::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&spec_) - + reinterpret_cast(&id_)) + sizeof(spec_)); + _cached_size_ = 0; +} + +LaunchPlanCreateRequest::~LaunchPlanCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanCreateRequest) + SharedDtor(); +} + +void LaunchPlanCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; +} + +void LaunchPlanCreateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanCreateRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanCreateRequest& LaunchPlanCreateRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanCreateRequest(); + return *internal_default_instance(); +} + +LaunchPlanCreateRequest* LaunchPlanCreateRequest::New(::google::protobuf::Arena* arena) const { + LaunchPlanCreateRequest* n = new LaunchPlanCreateRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; + _internal_metadata_.Clear(); +} + +bool LaunchPlanCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanCreateRequest) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } 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.LaunchPlanCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanCreateRequest) + return false; +#undef DO_ +} + +void LaunchPlanCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->spec_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanCreateRequest) +} + +::google::protobuf::uint8* LaunchPlanCreateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->spec_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanCreateRequest) + return target; +} + +size_t LaunchPlanCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanCreateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanCreateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanCreateRequest) + MergeFrom(*source); + } +} + +void LaunchPlanCreateRequest::MergeFrom(const LaunchPlanCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::LaunchPlanSpec::MergeFrom(from.spec()); + } +} + +void LaunchPlanCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanCreateRequest::CopyFrom(const LaunchPlanCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanCreateRequest::IsInitialized() const { + return true; +} + +void LaunchPlanCreateRequest::Swap(LaunchPlanCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanCreateRequest::InternalSwap(LaunchPlanCreateRequest* other) { + using std::swap; + swap(id_, other->id_); + swap(spec_, other->spec_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanCreateRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanCreateResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanCreateResponse::LaunchPlanCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanCreateResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanCreateResponse) +} +LaunchPlanCreateResponse::LaunchPlanCreateResponse(const LaunchPlanCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanCreateResponse) +} + +void LaunchPlanCreateResponse::SharedCtor() { + _cached_size_ = 0; +} + +LaunchPlanCreateResponse::~LaunchPlanCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanCreateResponse) + SharedDtor(); +} + +void LaunchPlanCreateResponse::SharedDtor() { +} + +void LaunchPlanCreateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanCreateResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanCreateResponse& LaunchPlanCreateResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanCreateResponse(); + return *internal_default_instance(); +} + +LaunchPlanCreateResponse* LaunchPlanCreateResponse::New(::google::protobuf::Arena* arena) const { + LaunchPlanCreateResponse* n = new LaunchPlanCreateResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool LaunchPlanCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanCreateResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanCreateResponse) + return false; +#undef DO_ +} + +void LaunchPlanCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanCreateResponse) +} + +::google::protobuf::uint8* LaunchPlanCreateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanCreateResponse) + return target; +} + +size_t LaunchPlanCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanCreateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanCreateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanCreateResponse) + MergeFrom(*source); + } +} + +void LaunchPlanCreateResponse::MergeFrom(const LaunchPlanCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void LaunchPlanCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanCreateResponse::CopyFrom(const LaunchPlanCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanCreateResponse::IsInitialized() const { + return true; +} + +void LaunchPlanCreateResponse::Swap(LaunchPlanCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanCreateResponse::InternalSwap(LaunchPlanCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanCreateResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlan::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::LaunchPlanSpec*>( + ::flyteidl::admin::LaunchPlanSpec::internal_default_instance()); + ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::LaunchPlanClosure*>( + ::flyteidl::admin::LaunchPlanClosure::internal_default_instance()); +} +void LaunchPlan::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlan::kIdFieldNumber; +const int LaunchPlan::kSpecFieldNumber; +const int LaunchPlan::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlan::LaunchPlan() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlan(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlan) +} +LaunchPlan::LaunchPlan(const LaunchPlan& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::LaunchPlanSpec(*from.spec_); + } else { + spec_ = NULL; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::LaunchPlanClosure(*from.closure_); + } else { + closure_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlan) +} + +void LaunchPlan::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); + _cached_size_ = 0; +} + +LaunchPlan::~LaunchPlan() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlan) + SharedDtor(); +} + +void LaunchPlan::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; + if (this != internal_default_instance()) delete closure_; +} + +void LaunchPlan::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlan::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlan& LaunchPlan::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlan(); + return *internal_default_instance(); +} + +LaunchPlan* LaunchPlan::New(::google::protobuf::Arena* arena) const { + LaunchPlan* n = new LaunchPlan; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlan::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlan) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; + _internal_metadata_.Clear(); +} + +bool LaunchPlan::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlan) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } 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.LaunchPlan) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlan) + return false; +#undef DO_ +} + +void LaunchPlan::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlan) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->spec_, output); + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->closure_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlan) +} + +::google::protobuf::uint8* LaunchPlan::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlan) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->spec_, deterministic, target); + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->closure_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlan) + return target; +} + +size_t LaunchPlan::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlan) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spec_); + } + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlan::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlan) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlan* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlan) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlan) + MergeFrom(*source); + } +} + +void LaunchPlan::MergeFrom(const LaunchPlan& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlan) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::LaunchPlanSpec::MergeFrom(from.spec()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::LaunchPlanClosure::MergeFrom(from.closure()); + } +} + +void LaunchPlan::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlan) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlan::CopyFrom(const LaunchPlan& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlan) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlan::IsInitialized() const { + return true; +} + +void LaunchPlan::Swap(LaunchPlan* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlan::InternalSwap(LaunchPlan* other) { + using std::swap; + swap(id_, other->id_); + swap(spec_, other->spec_); + swap(closure_, other->closure_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlan::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanList::kLaunchPlansFieldNumber; +const int LaunchPlanList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanList::LaunchPlanList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanList) +} +LaunchPlanList::LaunchPlanList(const LaunchPlanList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + launch_plans_(from.launch_plans_), + _cached_size_(0) { + _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.LaunchPlanList) +} + +void LaunchPlanList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +LaunchPlanList::~LaunchPlanList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanList) + SharedDtor(); +} + +void LaunchPlanList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void LaunchPlanList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanList::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanList& LaunchPlanList::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanList(); + return *internal_default_instance(); +} + +LaunchPlanList* LaunchPlanList::New(::google::protobuf::Arena* arena) const { + LaunchPlanList* n = new LaunchPlanList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + launch_plans_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool LaunchPlanList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanList) + 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.admin.LaunchPlan launch_plans = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_launch_plans())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.LaunchPlanList.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.LaunchPlanList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanList) + return false; +#undef DO_ +} + +void LaunchPlanList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + for (unsigned int i = 0, + n = static_cast(this->launch_plans_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->launch_plans(static_cast(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.LaunchPlanList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanList) +} + +::google::protobuf::uint8* LaunchPlanList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + for (unsigned int i = 0, + n = static_cast(this->launch_plans_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->launch_plans(static_cast(i)), deterministic, 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.LaunchPlanList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanList) + return target; +} + +size_t LaunchPlanList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + { + unsigned int count = static_cast(this->launch_plans_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->launch_plans(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanList) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanList) + MergeFrom(*source); + } +} + +void LaunchPlanList::MergeFrom(const LaunchPlanList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + launch_plans_.MergeFrom(from.launch_plans_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void LaunchPlanList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanList::CopyFrom(const LaunchPlanList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanList::IsInitialized() const { + return true; +} + +void LaunchPlanList::Swap(LaunchPlanList* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanList::InternalSwap(LaunchPlanList* other) { + using std::swap; + launch_plans_.InternalSwap(&other->launch_plans_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Auth::InitAsDefaultInstance() { + ::flyteidl::admin::_Auth_default_instance_.assumable_iam_role_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_Auth_default_instance_.kubernetes_service_account_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Auth::kAssumableIamRoleFieldNumber; +const int Auth::kKubernetesServiceAccountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Auth::Auth() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsAuth(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Auth) +} +Auth::Auth(const Auth& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_method(); + switch (from.method_case()) { + case kAssumableIamRole: { + set_assumable_iam_role(from.assumable_iam_role()); + break; + } + case kKubernetesServiceAccount: { + set_kubernetes_service_account(from.kubernetes_service_account()); + break; + } + case METHOD_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Auth) +} + +void Auth::SharedCtor() { + clear_has_method(); + _cached_size_ = 0; +} + +Auth::~Auth() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Auth) + SharedDtor(); +} + +void Auth::SharedDtor() { + if (has_method()) { + clear_method(); + } +} + +void Auth::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Auth::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Auth& Auth::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsAuth(); + return *internal_default_instance(); +} + +Auth* Auth::New(::google::protobuf::Arena* arena) const { + Auth* n = new Auth; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Auth::clear_method() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Auth) + switch (method_case()) { + case kAssumableIamRole: { + method_.assumable_iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kKubernetesServiceAccount: { + method_.kubernetes_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case METHOD_NOT_SET: { + break; + } + } + _oneof_case_[0] = METHOD_NOT_SET; +} + + +void Auth::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Auth) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_method(); + _internal_metadata_.Clear(); +} + +bool Auth::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Auth) + 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 assumable_iam_role = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_assumable_iam_role())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Auth.assumable_iam_role")); + } else { + goto handle_unusual; + } + break; + } + + // string kubernetes_service_account = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_kubernetes_service_account())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Auth.kubernetes_service_account")); + } 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.Auth) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Auth) + return false; +#undef DO_ +} + +void Auth::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Auth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (has_assumable_iam_role()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.assumable_iam_role"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->assumable_iam_role(), output); + } + + // string kubernetes_service_account = 2; + if (has_kubernetes_service_account()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.kubernetes_service_account"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->kubernetes_service_account(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Auth) +} + +::google::protobuf::uint8* Auth::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Auth) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string assumable_iam_role = 1; + if (has_assumable_iam_role()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.assumable_iam_role"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->assumable_iam_role(), target); + } + + // string kubernetes_service_account = 2; + if (has_kubernetes_service_account()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Auth.kubernetes_service_account"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->kubernetes_service_account(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Auth) + return target; +} + +size_t Auth::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Auth) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (method_case()) { + // string assumable_iam_role = 1; + case kAssumableIamRole: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->assumable_iam_role()); + break; + } + // string kubernetes_service_account = 2; + case kKubernetesServiceAccount: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->kubernetes_service_account()); + break; + } + case METHOD_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Auth::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Auth) + GOOGLE_DCHECK_NE(&from, this); + const Auth* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Auth) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Auth) + MergeFrom(*source); + } +} + +void Auth::MergeFrom(const Auth& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Auth) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.method_case()) { + case kAssumableIamRole: { + set_assumable_iam_role(from.assumable_iam_role()); + break; + } + case kKubernetesServiceAccount: { + set_kubernetes_service_account(from.kubernetes_service_account()); + break; + } + case METHOD_NOT_SET: { + break; + } + } +} + +void Auth::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Auth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Auth::CopyFrom(const Auth& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Auth) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Auth::IsInitialized() const { + return true; +} + +void Auth::Swap(Auth* other) { + if (other == this) return; + InternalSwap(other); +} +void Auth::InternalSwap(Auth* other) { + using std::swap; + swap(method_, other->method_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Auth::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->entity_metadata_ = const_cast< ::flyteidl::admin::LaunchPlanMetadata*>( + ::flyteidl::admin::LaunchPlanMetadata::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->default_inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( + ::flyteidl::core::ParameterMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->fixed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( + ::flyteidl::admin::Labels::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( + ::flyteidl::admin::Annotations::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->auth_ = const_cast< ::flyteidl::admin::Auth*>( + ::flyteidl::admin::Auth::internal_default_instance()); +} +void LaunchPlanSpec::clear_workflow_id() { + if (GetArenaNoVirtual() == NULL && workflow_id_ != NULL) { + delete workflow_id_; + } + workflow_id_ = NULL; +} +void LaunchPlanSpec::clear_default_inputs() { + if (GetArenaNoVirtual() == NULL && default_inputs_ != NULL) { + delete default_inputs_; + } + default_inputs_ = NULL; +} +void LaunchPlanSpec::clear_fixed_inputs() { + if (GetArenaNoVirtual() == NULL && fixed_inputs_ != NULL) { + delete fixed_inputs_; + } + fixed_inputs_ = NULL; +} +void LaunchPlanSpec::clear_labels() { + if (GetArenaNoVirtual() == NULL && labels_ != NULL) { + delete labels_; + } + labels_ = NULL; +} +void LaunchPlanSpec::clear_annotations() { + if (GetArenaNoVirtual() == NULL && annotations_ != NULL) { + delete annotations_; + } + annotations_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanSpec::kWorkflowIdFieldNumber; +const int LaunchPlanSpec::kEntityMetadataFieldNumber; +const int LaunchPlanSpec::kDefaultInputsFieldNumber; +const int LaunchPlanSpec::kFixedInputsFieldNumber; +const int LaunchPlanSpec::kRoleFieldNumber; +const int LaunchPlanSpec::kLabelsFieldNumber; +const int LaunchPlanSpec::kAnnotationsFieldNumber; +const int LaunchPlanSpec::kAuthFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanSpec::LaunchPlanSpec() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanSpec(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanSpec) +} +LaunchPlanSpec::LaunchPlanSpec(const LaunchPlanSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.role().size() > 0) { + role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_); + } + if (from.has_workflow_id()) { + workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); + } else { + workflow_id_ = NULL; + } + if (from.has_entity_metadata()) { + entity_metadata_ = new ::flyteidl::admin::LaunchPlanMetadata(*from.entity_metadata_); + } else { + entity_metadata_ = NULL; + } + if (from.has_default_inputs()) { + default_inputs_ = new ::flyteidl::core::ParameterMap(*from.default_inputs_); + } else { + default_inputs_ = NULL; + } + if (from.has_fixed_inputs()) { + fixed_inputs_ = new ::flyteidl::core::LiteralMap(*from.fixed_inputs_); + } else { + fixed_inputs_ = NULL; + } + if (from.has_labels()) { + labels_ = new ::flyteidl::admin::Labels(*from.labels_); + } else { + labels_ = NULL; + } + if (from.has_annotations()) { + annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); + } else { + annotations_ = NULL; + } + if (from.has_auth()) { + auth_ = new ::flyteidl::admin::Auth(*from.auth_); + } else { + auth_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanSpec) +} + +void LaunchPlanSpec::SharedCtor() { + role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&workflow_id_, 0, static_cast( + reinterpret_cast(&auth_) - + reinterpret_cast(&workflow_id_)) + sizeof(auth_)); + _cached_size_ = 0; +} + +LaunchPlanSpec::~LaunchPlanSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanSpec) + SharedDtor(); +} + +void LaunchPlanSpec::SharedDtor() { + role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete workflow_id_; + if (this != internal_default_instance()) delete entity_metadata_; + if (this != internal_default_instance()) delete default_inputs_; + if (this != internal_default_instance()) delete fixed_inputs_; + if (this != internal_default_instance()) delete labels_; + if (this != internal_default_instance()) delete annotations_; + if (this != internal_default_instance()) delete auth_; +} + +void LaunchPlanSpec::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanSpec::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanSpec& LaunchPlanSpec::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanSpec(); + return *internal_default_instance(); +} + +LaunchPlanSpec* LaunchPlanSpec::New(::google::protobuf::Arena* arena) const { + LaunchPlanSpec* n = new LaunchPlanSpec; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && workflow_id_ != NULL) { + delete workflow_id_; + } + workflow_id_ = NULL; + if (GetArenaNoVirtual() == NULL && entity_metadata_ != NULL) { + delete entity_metadata_; + } + entity_metadata_ = NULL; + if (GetArenaNoVirtual() == NULL && default_inputs_ != NULL) { + delete default_inputs_; + } + default_inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && fixed_inputs_ != NULL) { + delete fixed_inputs_; + } + fixed_inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && labels_ != NULL) { + delete labels_; + } + labels_ = NULL; + if (GetArenaNoVirtual() == NULL && annotations_ != NULL) { + delete annotations_; + } + annotations_ = NULL; + if (GetArenaNoVirtual() == NULL && auth_ != NULL) { + delete auth_; + } + auth_ = NULL; + _internal_metadata_.Clear(); +} + +bool LaunchPlanSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanSpec) + 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)) { + // .flyteidl.core.Identifier workflow_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_entity_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_default_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_fixed_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // string role = 5 [deprecated = true]; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_role())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->role().data(), static_cast(this->role().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.LaunchPlanSpec.role")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Labels labels = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_labels())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Annotations annotations = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_annotations())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Auth auth = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_auth())); + } 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.LaunchPlanSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanSpec) + return false; +#undef DO_ +} + +void LaunchPlanSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier workflow_id = 1; + if (this->has_workflow_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->workflow_id_, output); + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + if (this->has_entity_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->entity_metadata_, output); + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + if (this->has_default_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->default_inputs_, output); + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + if (this->has_fixed_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->fixed_inputs_, output); + } + + // string role = 5 [deprecated = true]; + if (this->role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->role().data(), static_cast(this->role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LaunchPlanSpec.role"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->role(), output); + } + + // .flyteidl.admin.Labels labels = 6; + if (this->has_labels()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->labels_, output); + } + + // .flyteidl.admin.Annotations annotations = 7; + if (this->has_annotations()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->annotations_, output); + } + + // .flyteidl.admin.Auth auth = 8; + if (this->has_auth()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->auth_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanSpec) +} + +::google::protobuf::uint8* LaunchPlanSpec::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier workflow_id = 1; + if (this->has_workflow_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->workflow_id_, deterministic, target); + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + if (this->has_entity_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->entity_metadata_, deterministic, target); + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + if (this->has_default_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->default_inputs_, deterministic, target); + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + if (this->has_fixed_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->fixed_inputs_, deterministic, target); + } + + // string role = 5 [deprecated = true]; + if (this->role().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->role().data(), static_cast(this->role().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.LaunchPlanSpec.role"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->role(), target); + } + + // .flyteidl.admin.Labels labels = 6; + if (this->has_labels()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->labels_, deterministic, target); + } + + // .flyteidl.admin.Annotations annotations = 7; + if (this->has_annotations()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->annotations_, deterministic, target); + } + + // .flyteidl.admin.Auth auth = 8; + if (this->has_auth()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *this->auth_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanSpec) + return target; +} + +size_t LaunchPlanSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanSpec) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string role = 5 [deprecated = true]; + if (this->role().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->role()); + } + + // .flyteidl.core.Identifier workflow_id = 1; + if (this->has_workflow_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->workflow_id_); + } + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + if (this->has_entity_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->entity_metadata_); + } + + // .flyteidl.core.ParameterMap default_inputs = 3; + if (this->has_default_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->default_inputs_); + } + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + if (this->has_fixed_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->fixed_inputs_); + } + + // .flyteidl.admin.Labels labels = 6; + if (this->has_labels()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->labels_); + } + + // .flyteidl.admin.Annotations annotations = 7; + if (this->has_annotations()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->annotations_); + } + + // .flyteidl.admin.Auth auth = 8; + if (this->has_auth()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->auth_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanSpec) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanSpec* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanSpec) + MergeFrom(*source); + } +} + +void LaunchPlanSpec::MergeFrom(const LaunchPlanSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.role().size() > 0) { + + role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_); + } + if (from.has_workflow_id()) { + mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); + } + if (from.has_entity_metadata()) { + mutable_entity_metadata()->::flyteidl::admin::LaunchPlanMetadata::MergeFrom(from.entity_metadata()); + } + if (from.has_default_inputs()) { + mutable_default_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.default_inputs()); + } + if (from.has_fixed_inputs()) { + mutable_fixed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.fixed_inputs()); + } + if (from.has_labels()) { + mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); + } + if (from.has_annotations()) { + mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); + } + if (from.has_auth()) { + mutable_auth()->::flyteidl::admin::Auth::MergeFrom(from.auth()); + } +} + +void LaunchPlanSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanSpec::CopyFrom(const LaunchPlanSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanSpec::IsInitialized() const { + return true; +} + +void LaunchPlanSpec::Swap(LaunchPlanSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanSpec::InternalSwap(LaunchPlanSpec* other) { + using std::swap; + role_.Swap(&other->role_); + swap(workflow_id_, other->workflow_id_); + swap(entity_metadata_, other->entity_metadata_); + swap(default_inputs_, other->default_inputs_); + swap(fixed_inputs_, other->fixed_inputs_); + swap(labels_, other->labels_); + swap(annotations_, other->annotations_); + swap(auth_, other->auth_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanSpec::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->expected_inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( + ::flyteidl::core::ParameterMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->expected_outputs_ = const_cast< ::flyteidl::core::VariableMap*>( + ::flyteidl::core::VariableMap::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +void LaunchPlanClosure::clear_expected_inputs() { + if (GetArenaNoVirtual() == NULL && expected_inputs_ != NULL) { + delete expected_inputs_; + } + expected_inputs_ = NULL; +} +void LaunchPlanClosure::clear_expected_outputs() { + if (GetArenaNoVirtual() == NULL && expected_outputs_ != NULL) { + delete expected_outputs_; + } + expected_outputs_ = NULL; +} +void LaunchPlanClosure::clear_created_at() { + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; +} +void LaunchPlanClosure::clear_updated_at() { + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanClosure::kStateFieldNumber; +const int LaunchPlanClosure::kExpectedInputsFieldNumber; +const int LaunchPlanClosure::kExpectedOutputsFieldNumber; +const int LaunchPlanClosure::kCreatedAtFieldNumber; +const int LaunchPlanClosure::kUpdatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanClosure::LaunchPlanClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanClosure) +} +LaunchPlanClosure::LaunchPlanClosure(const LaunchPlanClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_expected_inputs()) { + expected_inputs_ = new ::flyteidl::core::ParameterMap(*from.expected_inputs_); + } else { + expected_inputs_ = NULL; + } + if (from.has_expected_outputs()) { + expected_outputs_ = new ::flyteidl::core::VariableMap(*from.expected_outputs_); + } else { + expected_outputs_ = NULL; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = NULL; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = NULL; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanClosure) +} + +void LaunchPlanClosure::SharedCtor() { + ::memset(&expected_inputs_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&expected_inputs_)) + sizeof(state_)); + _cached_size_ = 0; +} + +LaunchPlanClosure::~LaunchPlanClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanClosure) + SharedDtor(); +} + +void LaunchPlanClosure::SharedDtor() { + if (this != internal_default_instance()) delete expected_inputs_; + if (this != internal_default_instance()) delete expected_outputs_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; +} + +void LaunchPlanClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanClosure::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanClosure& LaunchPlanClosure::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanClosure(); + return *internal_default_instance(); +} + +LaunchPlanClosure* LaunchPlanClosure::New(::google::protobuf::Arena* arena) const { + LaunchPlanClosure* n = new LaunchPlanClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && expected_inputs_ != NULL) { + delete expected_inputs_; + } + expected_inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && expected_outputs_ != NULL) { + delete expected_outputs_; + } + expected_outputs_ = NULL; + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; + state_ = 0; + _internal_metadata_.Clear(); +} + +bool LaunchPlanClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanClosure) + 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)) { + // .flyteidl.admin.LaunchPlanState state = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::LaunchPlanState >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ParameterMap expected_inputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expected_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_expected_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } 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.LaunchPlanClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanClosure) + return false; +#undef DO_ +} + +void LaunchPlanClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LaunchPlanState state = 1; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->state(), output); + } + + // .flyteidl.core.ParameterMap expected_inputs = 2; + if (this->has_expected_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->expected_inputs_, output); + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + if (this->has_expected_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->expected_outputs_, output); + } + + // .google.protobuf.Timestamp created_at = 4; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->created_at_, output); + } + + // .google.protobuf.Timestamp updated_at = 5; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->updated_at_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanClosure) +} + +::google::protobuf::uint8* LaunchPlanClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.LaunchPlanState state = 1; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->state(), target); + } + + // .flyteidl.core.ParameterMap expected_inputs = 2; + if (this->has_expected_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->expected_inputs_, deterministic, target); + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + if (this->has_expected_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->expected_outputs_, deterministic, target); + } + + // .google.protobuf.Timestamp created_at = 4; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->created_at_, deterministic, target); + } + + // .google.protobuf.Timestamp updated_at = 5; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->updated_at_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanClosure) + return target; +} + +size_t LaunchPlanClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.ParameterMap expected_inputs = 2; + if (this->has_expected_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->expected_inputs_); + } + + // .flyteidl.core.VariableMap expected_outputs = 3; + if (this->has_expected_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->expected_outputs_); + } + + // .google.protobuf.Timestamp created_at = 4; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->created_at_); + } + + // .google.protobuf.Timestamp updated_at = 5; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->updated_at_); + } + + // .flyteidl.admin.LaunchPlanState state = 1; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanClosure) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanClosure) + MergeFrom(*source); + } +} + +void LaunchPlanClosure::MergeFrom(const LaunchPlanClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_expected_inputs()) { + mutable_expected_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.expected_inputs()); + } + if (from.has_expected_outputs()) { + mutable_expected_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.expected_outputs()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void LaunchPlanClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanClosure::CopyFrom(const LaunchPlanClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanClosure::IsInitialized() const { + return true; +} + +void LaunchPlanClosure::Swap(LaunchPlanClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanClosure::InternalSwap(LaunchPlanClosure* other) { + using std::swap; + swap(expected_inputs_, other->expected_inputs_); + swap(expected_outputs_, other->expected_outputs_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(state_, other->state_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanClosure::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanMetadata_default_instance_._instance.get_mutable()->schedule_ = const_cast< ::flyteidl::admin::Schedule*>( + ::flyteidl::admin::Schedule::internal_default_instance()); +} +void LaunchPlanMetadata::clear_schedule() { + if (GetArenaNoVirtual() == NULL && schedule_ != NULL) { + delete schedule_; + } + schedule_ = NULL; +} +void LaunchPlanMetadata::clear_notifications() { + notifications_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanMetadata::kScheduleFieldNumber; +const int LaunchPlanMetadata::kNotificationsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanMetadata::LaunchPlanMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanMetadata) +} +LaunchPlanMetadata::LaunchPlanMetadata(const LaunchPlanMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + notifications_(from.notifications_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_schedule()) { + schedule_ = new ::flyteidl::admin::Schedule(*from.schedule_); + } else { + schedule_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanMetadata) +} + +void LaunchPlanMetadata::SharedCtor() { + schedule_ = NULL; + _cached_size_ = 0; +} + +LaunchPlanMetadata::~LaunchPlanMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanMetadata) + SharedDtor(); +} + +void LaunchPlanMetadata::SharedDtor() { + if (this != internal_default_instance()) delete schedule_; +} + +void LaunchPlanMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanMetadata::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanMetadata& LaunchPlanMetadata::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanMetadata(); + return *internal_default_instance(); +} + +LaunchPlanMetadata* LaunchPlanMetadata::New(::google::protobuf::Arena* arena) const { + LaunchPlanMetadata* n = new LaunchPlanMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + notifications_.Clear(); + if (GetArenaNoVirtual() == NULL && schedule_ != NULL) { + delete schedule_; + } + schedule_ = NULL; + _internal_metadata_.Clear(); +} + +bool LaunchPlanMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanMetadata) + 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)) { + // .flyteidl.admin.Schedule schedule = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_schedule())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Notification notifications = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_notifications())); + } 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.LaunchPlanMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanMetadata) + return false; +#undef DO_ +} + +void LaunchPlanMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Schedule schedule = 1; + if (this->has_schedule()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->schedule_, output); + } + + // repeated .flyteidl.admin.Notification notifications = 2; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->notifications(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanMetadata) +} + +::google::protobuf::uint8* LaunchPlanMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Schedule schedule = 1; + if (this->has_schedule()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->schedule_, deterministic, target); + } + + // repeated .flyteidl.admin.Notification notifications = 2; + for (unsigned int i = 0, + n = static_cast(this->notifications_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->notifications(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanMetadata) + return target; +} + +size_t LaunchPlanMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Notification notifications = 2; + { + unsigned int count = static_cast(this->notifications_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->notifications(static_cast(i))); + } + } + + // .flyteidl.admin.Schedule schedule = 1; + if (this->has_schedule()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->schedule_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanMetadata) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanMetadata) + MergeFrom(*source); + } +} + +void LaunchPlanMetadata::MergeFrom(const LaunchPlanMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + notifications_.MergeFrom(from.notifications_); + if (from.has_schedule()) { + mutable_schedule()->::flyteidl::admin::Schedule::MergeFrom(from.schedule()); + } +} + +void LaunchPlanMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanMetadata::CopyFrom(const LaunchPlanMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanMetadata::IsInitialized() const { + return true; +} + +void LaunchPlanMetadata::Swap(LaunchPlanMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanMetadata::InternalSwap(LaunchPlanMetadata* other) { + using std::swap; + notifications_.InternalSwap(&other->notifications_); + swap(schedule_, other->schedule_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanMetadata::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanUpdateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +void LaunchPlanUpdateRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LaunchPlanUpdateRequest::kIdFieldNumber; +const int LaunchPlanUpdateRequest::kStateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanUpdateRequest::LaunchPlanUpdateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanUpdateRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanUpdateRequest) +} +LaunchPlanUpdateRequest::LaunchPlanUpdateRequest(const LaunchPlanUpdateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + state_ = from.state_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanUpdateRequest) +} + +void LaunchPlanUpdateRequest::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&state_) - + reinterpret_cast(&id_)) + sizeof(state_)); + _cached_size_ = 0; +} + +LaunchPlanUpdateRequest::~LaunchPlanUpdateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanUpdateRequest) + SharedDtor(); +} + +void LaunchPlanUpdateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void LaunchPlanUpdateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanUpdateRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanUpdateRequest& LaunchPlanUpdateRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanUpdateRequest(); + return *internal_default_instance(); +} + +LaunchPlanUpdateRequest* LaunchPlanUpdateRequest::New(::google::protobuf::Arena* arena) const { + LaunchPlanUpdateRequest* n = new LaunchPlanUpdateRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanUpdateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + state_ = 0; + _internal_metadata_.Clear(); +} + +bool LaunchPlanUpdateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanUpdateRequest) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.LaunchPlanState state = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_state(static_cast< ::flyteidl::admin::LaunchPlanState >(value)); + } 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.LaunchPlanUpdateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanUpdateRequest) + return false; +#undef DO_ +} + +void LaunchPlanUpdateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.LaunchPlanState state = 2; + if (this->state() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->state(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanUpdateRequest) +} + +::google::protobuf::uint8* LaunchPlanUpdateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.LaunchPlanState state = 2; + if (this->state() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->state(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanUpdateRequest) + return target; +} + +size_t LaunchPlanUpdateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanUpdateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.LaunchPlanState state = 2; + if (this->state() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanUpdateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanUpdateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanUpdateRequest) + MergeFrom(*source); + } +} + +void LaunchPlanUpdateRequest::MergeFrom(const LaunchPlanUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.state() != 0) { + set_state(from.state()); + } +} + +void LaunchPlanUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanUpdateRequest::CopyFrom(const LaunchPlanUpdateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanUpdateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanUpdateRequest::IsInitialized() const { + return true; +} + +void LaunchPlanUpdateRequest::Swap(LaunchPlanUpdateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanUpdateRequest::InternalSwap(LaunchPlanUpdateRequest* other) { + using std::swap; + swap(id_, other->id_); + swap(state_, other->state_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanUpdateRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LaunchPlanUpdateResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LaunchPlanUpdateResponse::LaunchPlanUpdateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanUpdateResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanUpdateResponse) +} +LaunchPlanUpdateResponse::LaunchPlanUpdateResponse(const LaunchPlanUpdateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanUpdateResponse) +} + +void LaunchPlanUpdateResponse::SharedCtor() { + _cached_size_ = 0; +} + +LaunchPlanUpdateResponse::~LaunchPlanUpdateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanUpdateResponse) + SharedDtor(); +} + +void LaunchPlanUpdateResponse::SharedDtor() { +} + +void LaunchPlanUpdateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LaunchPlanUpdateResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LaunchPlanUpdateResponse& LaunchPlanUpdateResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanUpdateResponse(); + return *internal_default_instance(); +} + +LaunchPlanUpdateResponse* LaunchPlanUpdateResponse::New(::google::protobuf::Arena* arena) const { + LaunchPlanUpdateResponse* n = new LaunchPlanUpdateResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LaunchPlanUpdateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool LaunchPlanUpdateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.LaunchPlanUpdateResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanUpdateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanUpdateResponse) + return false; +#undef DO_ +} + +void LaunchPlanUpdateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanUpdateResponse) +} + +::google::protobuf::uint8* LaunchPlanUpdateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.LaunchPlanUpdateResponse) + return target; +} + +size_t LaunchPlanUpdateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanUpdateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LaunchPlanUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + const LaunchPlanUpdateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanUpdateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanUpdateResponse) + MergeFrom(*source); + } +} + +void LaunchPlanUpdateResponse::MergeFrom(const LaunchPlanUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void LaunchPlanUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LaunchPlanUpdateResponse::CopyFrom(const LaunchPlanUpdateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanUpdateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LaunchPlanUpdateResponse::IsInitialized() const { + return true; +} + +void LaunchPlanUpdateResponse::Swap(LaunchPlanUpdateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void LaunchPlanUpdateResponse::InternalSwap(LaunchPlanUpdateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LaunchPlanUpdateResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h new file mode 100644 index 0000000000..8ee5b0c26c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h @@ -0,0 +1,2669 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/admin/schedule.pb.h" +#include "flyteidl/admin/common.pb.h" +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[10]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsLaunchPlanCreateRequestImpl(); +void InitDefaultsLaunchPlanCreateRequest(); +void InitDefaultsLaunchPlanCreateResponseImpl(); +void InitDefaultsLaunchPlanCreateResponse(); +void InitDefaultsLaunchPlanImpl(); +void InitDefaultsLaunchPlan(); +void InitDefaultsLaunchPlanListImpl(); +void InitDefaultsLaunchPlanList(); +void InitDefaultsAuthImpl(); +void InitDefaultsAuth(); +void InitDefaultsLaunchPlanSpecImpl(); +void InitDefaultsLaunchPlanSpec(); +void InitDefaultsLaunchPlanClosureImpl(); +void InitDefaultsLaunchPlanClosure(); +void InitDefaultsLaunchPlanMetadataImpl(); +void InitDefaultsLaunchPlanMetadata(); +void InitDefaultsLaunchPlanUpdateRequestImpl(); +void InitDefaultsLaunchPlanUpdateRequest(); +void InitDefaultsLaunchPlanUpdateResponseImpl(); +void InitDefaultsLaunchPlanUpdateResponse(); +inline void InitDefaults() { + InitDefaultsLaunchPlanCreateRequest(); + InitDefaultsLaunchPlanCreateResponse(); + InitDefaultsLaunchPlan(); + InitDefaultsLaunchPlanList(); + InitDefaultsAuth(); + InitDefaultsLaunchPlanSpec(); + InitDefaultsLaunchPlanClosure(); + InitDefaultsLaunchPlanMetadata(); + InitDefaultsLaunchPlanUpdateRequest(); + InitDefaultsLaunchPlanUpdateResponse(); +} +} // namespace protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto +namespace flyteidl { +namespace admin { +class Auth; +class AuthDefaultTypeInternal; +extern AuthDefaultTypeInternal _Auth_default_instance_; +class LaunchPlan; +class LaunchPlanDefaultTypeInternal; +extern LaunchPlanDefaultTypeInternal _LaunchPlan_default_instance_; +class LaunchPlanClosure; +class LaunchPlanClosureDefaultTypeInternal; +extern LaunchPlanClosureDefaultTypeInternal _LaunchPlanClosure_default_instance_; +class LaunchPlanCreateRequest; +class LaunchPlanCreateRequestDefaultTypeInternal; +extern LaunchPlanCreateRequestDefaultTypeInternal _LaunchPlanCreateRequest_default_instance_; +class LaunchPlanCreateResponse; +class LaunchPlanCreateResponseDefaultTypeInternal; +extern LaunchPlanCreateResponseDefaultTypeInternal _LaunchPlanCreateResponse_default_instance_; +class LaunchPlanList; +class LaunchPlanListDefaultTypeInternal; +extern LaunchPlanListDefaultTypeInternal _LaunchPlanList_default_instance_; +class LaunchPlanMetadata; +class LaunchPlanMetadataDefaultTypeInternal; +extern LaunchPlanMetadataDefaultTypeInternal _LaunchPlanMetadata_default_instance_; +class LaunchPlanSpec; +class LaunchPlanSpecDefaultTypeInternal; +extern LaunchPlanSpecDefaultTypeInternal _LaunchPlanSpec_default_instance_; +class LaunchPlanUpdateRequest; +class LaunchPlanUpdateRequestDefaultTypeInternal; +extern LaunchPlanUpdateRequestDefaultTypeInternal _LaunchPlanUpdateRequest_default_instance_; +class LaunchPlanUpdateResponse; +class LaunchPlanUpdateResponseDefaultTypeInternal; +extern LaunchPlanUpdateResponseDefaultTypeInternal _LaunchPlanUpdateResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +enum LaunchPlanState { + INACTIVE = 0, + ACTIVE = 1, + LaunchPlanState_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + LaunchPlanState_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool LaunchPlanState_IsValid(int value); +const LaunchPlanState LaunchPlanState_MIN = INACTIVE; +const LaunchPlanState LaunchPlanState_MAX = ACTIVE; +const int LaunchPlanState_ARRAYSIZE = LaunchPlanState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* LaunchPlanState_descriptor(); +inline const ::std::string& LaunchPlanState_Name(LaunchPlanState value) { + return ::google::protobuf::internal::NameOfEnum( + LaunchPlanState_descriptor(), value); +} +inline bool LaunchPlanState_Parse( + const ::std::string& name, LaunchPlanState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + LaunchPlanState_descriptor(), name, value); +} +// =================================================================== + +class LaunchPlanCreateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanCreateRequest) */ { + public: + LaunchPlanCreateRequest(); + virtual ~LaunchPlanCreateRequest(); + + LaunchPlanCreateRequest(const LaunchPlanCreateRequest& from); + + inline LaunchPlanCreateRequest& operator=(const LaunchPlanCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanCreateRequest(LaunchPlanCreateRequest&& from) noexcept + : LaunchPlanCreateRequest() { + *this = ::std::move(from); + } + + inline LaunchPlanCreateRequest& operator=(LaunchPlanCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanCreateRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(LaunchPlanCreateRequest* other); + friend void swap(LaunchPlanCreateRequest& a, LaunchPlanCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanCreateRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanCreateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanCreateRequest& from); + void MergeFrom(const LaunchPlanCreateRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::LaunchPlanSpec& spec() const; + ::flyteidl::admin::LaunchPlanSpec* release_spec(); + ::flyteidl::admin::LaunchPlanSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::LaunchPlanSpec* spec_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanCreateRequestImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanCreateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanCreateResponse) */ { + public: + LaunchPlanCreateResponse(); + virtual ~LaunchPlanCreateResponse(); + + LaunchPlanCreateResponse(const LaunchPlanCreateResponse& from); + + inline LaunchPlanCreateResponse& operator=(const LaunchPlanCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanCreateResponse(LaunchPlanCreateResponse&& from) noexcept + : LaunchPlanCreateResponse() { + *this = ::std::move(from); + } + + inline LaunchPlanCreateResponse& operator=(LaunchPlanCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanCreateResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(LaunchPlanCreateResponse* other); + friend void swap(LaunchPlanCreateResponse& a, LaunchPlanCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanCreateResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanCreateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanCreateResponse& from); + void MergeFrom(const LaunchPlanCreateResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanCreateResponseImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlan : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlan) */ { + public: + LaunchPlan(); + virtual ~LaunchPlan(); + + LaunchPlan(const LaunchPlan& from); + + inline LaunchPlan& operator=(const LaunchPlan& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlan(LaunchPlan&& from) noexcept + : LaunchPlan() { + *this = ::std::move(from); + } + + inline LaunchPlan& operator=(LaunchPlan&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlan& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlan* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlan_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(LaunchPlan* other); + friend void swap(LaunchPlan& a, LaunchPlan& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlan* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlan* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlan& from); + void MergeFrom(const LaunchPlan& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlan* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.LaunchPlanSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::LaunchPlanSpec& spec() const; + ::flyteidl::admin::LaunchPlanSpec* release_spec(); + ::flyteidl::admin::LaunchPlanSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec); + + // .flyteidl.admin.LaunchPlanClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::LaunchPlanClosure& closure() const; + ::flyteidl::admin::LaunchPlanClosure* release_closure(); + ::flyteidl::admin::LaunchPlanClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::LaunchPlanClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::LaunchPlanSpec* spec_; + ::flyteidl::admin::LaunchPlanClosure* closure_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanList) */ { + public: + LaunchPlanList(); + virtual ~LaunchPlanList(); + + LaunchPlanList(const LaunchPlanList& from); + + inline LaunchPlanList& operator=(const LaunchPlanList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanList(LaunchPlanList&& from) noexcept + : LaunchPlanList() { + *this = ::std::move(from); + } + + inline LaunchPlanList& operator=(LaunchPlanList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanList* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(LaunchPlanList* other); + friend void swap(LaunchPlanList& a, LaunchPlanList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanList* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanList& from); + void MergeFrom(const LaunchPlanList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + int launch_plans_size() const; + void clear_launch_plans(); + static const int kLaunchPlansFieldNumber = 1; + const ::flyteidl::admin::LaunchPlan& launch_plans(int index) const; + ::flyteidl::admin::LaunchPlan* mutable_launch_plans(int index); + ::flyteidl::admin::LaunchPlan* add_launch_plans(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >* + mutable_launch_plans(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >& + launch_plans() const; + + // 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.LaunchPlanList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan > launch_plans_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanListImpl(); +}; +// ------------------------------------------------------------------- + +class Auth : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Auth) */ { + public: + Auth(); + virtual ~Auth(); + + Auth(const Auth& from); + + inline Auth& operator=(const Auth& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Auth(Auth&& from) noexcept + : Auth() { + *this = ::std::move(from); + } + + inline Auth& operator=(Auth&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Auth& default_instance(); + + enum MethodCase { + kAssumableIamRole = 1, + kKubernetesServiceAccount = 2, + METHOD_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Auth* internal_default_instance() { + return reinterpret_cast( + &_Auth_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(Auth* other); + friend void swap(Auth& a, Auth& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Auth* New() const PROTOBUF_FINAL { return New(NULL); } + + Auth* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Auth& from); + void MergeFrom(const Auth& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Auth* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string assumable_iam_role = 1; + private: + bool has_assumable_iam_role() const; + public: + void clear_assumable_iam_role(); + static const int kAssumableIamRoleFieldNumber = 1; + const ::std::string& assumable_iam_role() const; + void set_assumable_iam_role(const ::std::string& value); + #if LANG_CXX11 + void set_assumable_iam_role(::std::string&& value); + #endif + void set_assumable_iam_role(const char* value); + void set_assumable_iam_role(const char* value, size_t size); + ::std::string* mutable_assumable_iam_role(); + ::std::string* release_assumable_iam_role(); + void set_allocated_assumable_iam_role(::std::string* assumable_iam_role); + + // string kubernetes_service_account = 2; + private: + bool has_kubernetes_service_account() const; + public: + void clear_kubernetes_service_account(); + static const int kKubernetesServiceAccountFieldNumber = 2; + const ::std::string& kubernetes_service_account() const; + void set_kubernetes_service_account(const ::std::string& value); + #if LANG_CXX11 + void set_kubernetes_service_account(::std::string&& value); + #endif + void set_kubernetes_service_account(const char* value); + void set_kubernetes_service_account(const char* value, size_t size); + ::std::string* mutable_kubernetes_service_account(); + ::std::string* release_kubernetes_service_account(); + void set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account); + + MethodCase method_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + private: + void set_has_assumable_iam_role(); + void set_has_kubernetes_service_account(); + + inline bool has_method() const; + void clear_method(); + inline void clear_has_method(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union MethodUnion { + MethodUnion() {} + ::google::protobuf::internal::ArenaStringPtr assumable_iam_role_; + ::google::protobuf::internal::ArenaStringPtr kubernetes_service_account_; + } method_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsAuthImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanSpec : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanSpec) */ { + public: + LaunchPlanSpec(); + virtual ~LaunchPlanSpec(); + + LaunchPlanSpec(const LaunchPlanSpec& from); + + inline LaunchPlanSpec& operator=(const LaunchPlanSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanSpec(LaunchPlanSpec&& from) noexcept + : LaunchPlanSpec() { + *this = ::std::move(from); + } + + inline LaunchPlanSpec& operator=(LaunchPlanSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanSpec* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanSpec_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(LaunchPlanSpec* other); + friend void swap(LaunchPlanSpec& a, LaunchPlanSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanSpec* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanSpec* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanSpec& from); + void MergeFrom(const LaunchPlanSpec& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string role = 5 [deprecated = true]; + GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_role(); + GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kRoleFieldNumber = 5; + GOOGLE_PROTOBUF_DEPRECATED_ATTR const ::std::string& role() const; + GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_role(const ::std::string& value); + #if LANG_CXX11 + GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_role(::std::string&& value); + #endif + GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_role(const char* value); + GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_role(const char* value, size_t size); + GOOGLE_PROTOBUF_DEPRECATED_ATTR ::std::string* mutable_role(); + GOOGLE_PROTOBUF_DEPRECATED_ATTR ::std::string* release_role(); + GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_allocated_role(::std::string* role); + + // .flyteidl.core.Identifier workflow_id = 1; + bool has_workflow_id() const; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 1; + const ::flyteidl::core::Identifier& workflow_id() const; + ::flyteidl::core::Identifier* release_workflow_id(); + ::flyteidl::core::Identifier* mutable_workflow_id(); + void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); + + // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + bool has_entity_metadata() const; + void clear_entity_metadata(); + static const int kEntityMetadataFieldNumber = 2; + const ::flyteidl::admin::LaunchPlanMetadata& entity_metadata() const; + ::flyteidl::admin::LaunchPlanMetadata* release_entity_metadata(); + ::flyteidl::admin::LaunchPlanMetadata* mutable_entity_metadata(); + void set_allocated_entity_metadata(::flyteidl::admin::LaunchPlanMetadata* entity_metadata); + + // .flyteidl.core.ParameterMap default_inputs = 3; + bool has_default_inputs() const; + void clear_default_inputs(); + static const int kDefaultInputsFieldNumber = 3; + const ::flyteidl::core::ParameterMap& default_inputs() const; + ::flyteidl::core::ParameterMap* release_default_inputs(); + ::flyteidl::core::ParameterMap* mutable_default_inputs(); + void set_allocated_default_inputs(::flyteidl::core::ParameterMap* default_inputs); + + // .flyteidl.core.LiteralMap fixed_inputs = 4; + bool has_fixed_inputs() const; + void clear_fixed_inputs(); + static const int kFixedInputsFieldNumber = 4; + const ::flyteidl::core::LiteralMap& fixed_inputs() const; + ::flyteidl::core::LiteralMap* release_fixed_inputs(); + ::flyteidl::core::LiteralMap* mutable_fixed_inputs(); + void set_allocated_fixed_inputs(::flyteidl::core::LiteralMap* fixed_inputs); + + // .flyteidl.admin.Labels labels = 6; + bool has_labels() const; + void clear_labels(); + static const int kLabelsFieldNumber = 6; + const ::flyteidl::admin::Labels& labels() const; + ::flyteidl::admin::Labels* release_labels(); + ::flyteidl::admin::Labels* mutable_labels(); + void set_allocated_labels(::flyteidl::admin::Labels* labels); + + // .flyteidl.admin.Annotations annotations = 7; + bool has_annotations() const; + void clear_annotations(); + static const int kAnnotationsFieldNumber = 7; + const ::flyteidl::admin::Annotations& annotations() const; + ::flyteidl::admin::Annotations* release_annotations(); + ::flyteidl::admin::Annotations* mutable_annotations(); + void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); + + // .flyteidl.admin.Auth auth = 8; + bool has_auth() const; + void clear_auth(); + static const int kAuthFieldNumber = 8; + const ::flyteidl::admin::Auth& auth() const; + ::flyteidl::admin::Auth* release_auth(); + ::flyteidl::admin::Auth* mutable_auth(); + void set_allocated_auth(::flyteidl::admin::Auth* auth); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr role_; + ::flyteidl::core::Identifier* workflow_id_; + ::flyteidl::admin::LaunchPlanMetadata* entity_metadata_; + ::flyteidl::core::ParameterMap* default_inputs_; + ::flyteidl::core::LiteralMap* fixed_inputs_; + ::flyteidl::admin::Labels* labels_; + ::flyteidl::admin::Annotations* annotations_; + ::flyteidl::admin::Auth* auth_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanSpecImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanClosure) */ { + public: + LaunchPlanClosure(); + virtual ~LaunchPlanClosure(); + + LaunchPlanClosure(const LaunchPlanClosure& from); + + inline LaunchPlanClosure& operator=(const LaunchPlanClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanClosure(LaunchPlanClosure&& from) noexcept + : LaunchPlanClosure() { + *this = ::std::move(from); + } + + inline LaunchPlanClosure& operator=(LaunchPlanClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanClosure* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(LaunchPlanClosure* other); + friend void swap(LaunchPlanClosure& a, LaunchPlanClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanClosure& from); + void MergeFrom(const LaunchPlanClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ParameterMap expected_inputs = 2; + bool has_expected_inputs() const; + void clear_expected_inputs(); + static const int kExpectedInputsFieldNumber = 2; + const ::flyteidl::core::ParameterMap& expected_inputs() const; + ::flyteidl::core::ParameterMap* release_expected_inputs(); + ::flyteidl::core::ParameterMap* mutable_expected_inputs(); + void set_allocated_expected_inputs(::flyteidl::core::ParameterMap* expected_inputs); + + // .flyteidl.core.VariableMap expected_outputs = 3; + bool has_expected_outputs() const; + void clear_expected_outputs(); + static const int kExpectedOutputsFieldNumber = 3; + const ::flyteidl::core::VariableMap& expected_outputs() const; + ::flyteidl::core::VariableMap* release_expected_outputs(); + ::flyteidl::core::VariableMap* mutable_expected_outputs(); + void set_allocated_expected_outputs(::flyteidl::core::VariableMap* expected_outputs); + + // .google.protobuf.Timestamp created_at = 4; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 4; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 5; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 5; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .flyteidl.admin.LaunchPlanState state = 1; + void clear_state(); + static const int kStateFieldNumber = 1; + ::flyteidl::admin::LaunchPlanState state() const; + void set_state(::flyteidl::admin::LaunchPlanState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::ParameterMap* expected_inputs_; + ::flyteidl::core::VariableMap* expected_outputs_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + int state_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanClosureImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanMetadata) */ { + public: + LaunchPlanMetadata(); + virtual ~LaunchPlanMetadata(); + + LaunchPlanMetadata(const LaunchPlanMetadata& from); + + inline LaunchPlanMetadata& operator=(const LaunchPlanMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanMetadata(LaunchPlanMetadata&& from) noexcept + : LaunchPlanMetadata() { + *this = ::std::move(from); + } + + inline LaunchPlanMetadata& operator=(LaunchPlanMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanMetadata* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(LaunchPlanMetadata* other); + friend void swap(LaunchPlanMetadata& a, LaunchPlanMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanMetadata& from); + void MergeFrom(const LaunchPlanMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Notification notifications = 2; + int notifications_size() const; + void clear_notifications(); + static const int kNotificationsFieldNumber = 2; + const ::flyteidl::admin::Notification& notifications(int index) const; + ::flyteidl::admin::Notification* mutable_notifications(int index); + ::flyteidl::admin::Notification* add_notifications(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* + mutable_notifications(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& + notifications() const; + + // .flyteidl.admin.Schedule schedule = 1; + bool has_schedule() const; + void clear_schedule(); + static const int kScheduleFieldNumber = 1; + const ::flyteidl::admin::Schedule& schedule() const; + ::flyteidl::admin::Schedule* release_schedule(); + ::flyteidl::admin::Schedule* mutable_schedule(); + void set_allocated_schedule(::flyteidl::admin::Schedule* schedule); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; + ::flyteidl::admin::Schedule* schedule_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanUpdateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanUpdateRequest) */ { + public: + LaunchPlanUpdateRequest(); + virtual ~LaunchPlanUpdateRequest(); + + LaunchPlanUpdateRequest(const LaunchPlanUpdateRequest& from); + + inline LaunchPlanUpdateRequest& operator=(const LaunchPlanUpdateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanUpdateRequest(LaunchPlanUpdateRequest&& from) noexcept + : LaunchPlanUpdateRequest() { + *this = ::std::move(from); + } + + inline LaunchPlanUpdateRequest& operator=(LaunchPlanUpdateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanUpdateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanUpdateRequest* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanUpdateRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; + + void Swap(LaunchPlanUpdateRequest* other); + friend void swap(LaunchPlanUpdateRequest& a, LaunchPlanUpdateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanUpdateRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanUpdateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanUpdateRequest& from); + void MergeFrom(const LaunchPlanUpdateRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanUpdateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.LaunchPlanState state = 2; + void clear_state(); + static const int kStateFieldNumber = 2; + ::flyteidl::admin::LaunchPlanState state() const; + void set_state(::flyteidl::admin::LaunchPlanState value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + int state_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanUpdateRequestImpl(); +}; +// ------------------------------------------------------------------- + +class LaunchPlanUpdateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanUpdateResponse) */ { + public: + LaunchPlanUpdateResponse(); + virtual ~LaunchPlanUpdateResponse(); + + LaunchPlanUpdateResponse(const LaunchPlanUpdateResponse& from); + + inline LaunchPlanUpdateResponse& operator=(const LaunchPlanUpdateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LaunchPlanUpdateResponse(LaunchPlanUpdateResponse&& from) noexcept + : LaunchPlanUpdateResponse() { + *this = ::std::move(from); + } + + inline LaunchPlanUpdateResponse& operator=(LaunchPlanUpdateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LaunchPlanUpdateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LaunchPlanUpdateResponse* internal_default_instance() { + return reinterpret_cast( + &_LaunchPlanUpdateResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 9; + + void Swap(LaunchPlanUpdateResponse* other); + friend void swap(LaunchPlanUpdateResponse& a, LaunchPlanUpdateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LaunchPlanUpdateResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + LaunchPlanUpdateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LaunchPlanUpdateResponse& from); + void MergeFrom(const LaunchPlanUpdateResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LaunchPlanUpdateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::InitDefaultsLaunchPlanUpdateResponseImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// LaunchPlanCreateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool LaunchPlanCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& LaunchPlanCreateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanCreateRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlanCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanCreateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlanCreateRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanCreateRequest.id) + return id_; +} +inline void LaunchPlanCreateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanCreateRequest.id) +} + +// .flyteidl.admin.LaunchPlanSpec spec = 2; +inline bool LaunchPlanCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != NULL; +} +inline void LaunchPlanCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; +} +inline const ::flyteidl::admin::LaunchPlanSpec& LaunchPlanCreateRequest::spec() const { + const ::flyteidl::admin::LaunchPlanSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanCreateRequest.spec) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanSpec_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlanCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanCreateRequest.spec) + + ::flyteidl::admin::LaunchPlanSpec* temp = spec_; + spec_ = NULL; + return temp; +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlanCreateRequest::mutable_spec() { + + if (spec_ == NULL) { + spec_ = new ::flyteidl::admin::LaunchPlanSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanCreateRequest.spec) + return spec_; +} +inline void LaunchPlanCreateRequest::set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// LaunchPlanCreateResponse + +// ------------------------------------------------------------------- + +// LaunchPlan + +// .flyteidl.core.Identifier id = 1; +inline bool LaunchPlan::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& LaunchPlan::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlan::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlan::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.id) + return id_; +} +inline void LaunchPlan::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.id) +} + +// .flyteidl.admin.LaunchPlanSpec spec = 2; +inline bool LaunchPlan::has_spec() const { + return this != internal_default_instance() && spec_ != NULL; +} +inline void LaunchPlan::clear_spec() { + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; +} +inline const ::flyteidl::admin::LaunchPlanSpec& LaunchPlan::spec() const { + const ::flyteidl::admin::LaunchPlanSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.spec) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanSpec_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlan::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.spec) + + ::flyteidl::admin::LaunchPlanSpec* temp = spec_; + spec_ = NULL; + return temp; +} +inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlan::mutable_spec() { + + if (spec_ == NULL) { + spec_ = new ::flyteidl::admin::LaunchPlanSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.spec) + return spec_; +} +inline void LaunchPlan::set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.spec) +} + +// .flyteidl.admin.LaunchPlanClosure closure = 3; +inline bool LaunchPlan::has_closure() const { + return this != internal_default_instance() && closure_ != NULL; +} +inline void LaunchPlan::clear_closure() { + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; +} +inline const ::flyteidl::admin::LaunchPlanClosure& LaunchPlan::closure() const { + const ::flyteidl::admin::LaunchPlanClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.closure) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanClosure_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanClosure* LaunchPlan::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.closure) + + ::flyteidl::admin::LaunchPlanClosure* temp = closure_; + closure_ = NULL; + return temp; +} +inline ::flyteidl::admin::LaunchPlanClosure* LaunchPlan::mutable_closure() { + + if (closure_ == NULL) { + closure_ = new ::flyteidl::admin::LaunchPlanClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.closure) + return closure_; +} +inline void LaunchPlan::set_allocated_closure(::flyteidl::admin::LaunchPlanClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.closure) +} + +// ------------------------------------------------------------------- + +// LaunchPlanList + +// repeated .flyteidl.admin.LaunchPlan launch_plans = 1; +inline int LaunchPlanList::launch_plans_size() const { + return launch_plans_.size(); +} +inline void LaunchPlanList::clear_launch_plans() { + launch_plans_.Clear(); +} +inline const ::flyteidl::admin::LaunchPlan& LaunchPlanList::launch_plans(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_.Get(index); +} +inline ::flyteidl::admin::LaunchPlan* LaunchPlanList::mutable_launch_plans(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_.Mutable(index); +} +inline ::flyteidl::admin::LaunchPlan* LaunchPlanList::add_launch_plans() { + // @@protoc_insertion_point(field_add:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >* +LaunchPlanList::mutable_launch_plans() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.LaunchPlanList.launch_plans) + return &launch_plans_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >& +LaunchPlanList::launch_plans() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.LaunchPlanList.launch_plans) + return launch_plans_; +} + +// string token = 2; +inline void LaunchPlanList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& LaunchPlanList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanList.token) + return token_.GetNoArena(); +} +inline void LaunchPlanList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanList.token) +} +#if LANG_CXX11 +inline void LaunchPlanList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LaunchPlanList.token) +} +#endif +inline void LaunchPlanList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.LaunchPlanList.token) +} +inline void LaunchPlanList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LaunchPlanList.token) +} +inline ::std::string* LaunchPlanList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LaunchPlanList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LaunchPlanList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanList.token) +} + +// ------------------------------------------------------------------- + +// Auth + +// string assumable_iam_role = 1; +inline bool Auth::has_assumable_iam_role() const { + return method_case() == kAssumableIamRole; +} +inline void Auth::set_has_assumable_iam_role() { + _oneof_case_[0] = kAssumableIamRole; +} +inline void Auth::clear_assumable_iam_role() { + if (has_assumable_iam_role()) { + method_.assumable_iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_method(); + } +} +inline const ::std::string& Auth::assumable_iam_role() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Auth.assumable_iam_role) + if (has_assumable_iam_role()) { + return method_.assumable_iam_role_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Auth::set_assumable_iam_role(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.assumable_iam_role) + if (!has_assumable_iam_role()) { + clear_method(); + set_has_assumable_iam_role(); + method_.assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.assumable_iam_role) +} +#if LANG_CXX11 +inline void Auth::set_assumable_iam_role(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.assumable_iam_role) + if (!has_assumable_iam_role()) { + clear_method(); + set_has_assumable_iam_role(); + method_.assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.assumable_iam_role_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Auth.assumable_iam_role) +} +#endif +inline void Auth::set_assumable_iam_role(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_assumable_iam_role()) { + clear_method(); + set_has_assumable_iam_role(); + method_.assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Auth.assumable_iam_role) +} +inline void Auth::set_assumable_iam_role(const char* value, size_t size) { + if (!has_assumable_iam_role()) { + clear_method(); + set_has_assumable_iam_role(); + method_.assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Auth.assumable_iam_role) +} +inline ::std::string* Auth::mutable_assumable_iam_role() { + if (!has_assumable_iam_role()) { + clear_method(); + set_has_assumable_iam_role(); + method_.assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Auth.assumable_iam_role) + return method_.assumable_iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Auth::release_assumable_iam_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Auth.assumable_iam_role) + if (has_assumable_iam_role()) { + clear_has_method(); + return method_.assumable_iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void Auth::set_allocated_assumable_iam_role(::std::string* assumable_iam_role) { + if (!has_assumable_iam_role()) { + method_.assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_method(); + if (assumable_iam_role != NULL) { + set_has_assumable_iam_role(); + method_.assumable_iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + assumable_iam_role); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Auth.assumable_iam_role) +} + +// string kubernetes_service_account = 2; +inline bool Auth::has_kubernetes_service_account() const { + return method_case() == kKubernetesServiceAccount; +} +inline void Auth::set_has_kubernetes_service_account() { + _oneof_case_[0] = kKubernetesServiceAccount; +} +inline void Auth::clear_kubernetes_service_account() { + if (has_kubernetes_service_account()) { + method_.kubernetes_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_method(); + } +} +inline const ::std::string& Auth::kubernetes_service_account() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Auth.kubernetes_service_account) + if (has_kubernetes_service_account()) { + return method_.kubernetes_service_account_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Auth::set_kubernetes_service_account(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.kubernetes_service_account) + if (!has_kubernetes_service_account()) { + clear_method(); + set_has_kubernetes_service_account(); + method_.kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.kubernetes_service_account) +} +#if LANG_CXX11 +inline void Auth::set_kubernetes_service_account(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.kubernetes_service_account) + if (!has_kubernetes_service_account()) { + clear_method(); + set_has_kubernetes_service_account(); + method_.kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.kubernetes_service_account_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Auth.kubernetes_service_account) +} +#endif +inline void Auth::set_kubernetes_service_account(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_kubernetes_service_account()) { + clear_method(); + set_has_kubernetes_service_account(); + method_.kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Auth.kubernetes_service_account) +} +inline void Auth::set_kubernetes_service_account(const char* value, size_t size) { + if (!has_kubernetes_service_account()) { + clear_method(); + set_has_kubernetes_service_account(); + method_.kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + method_.kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Auth.kubernetes_service_account) +} +inline ::std::string* Auth::mutable_kubernetes_service_account() { + if (!has_kubernetes_service_account()) { + clear_method(); + set_has_kubernetes_service_account(); + method_.kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Auth.kubernetes_service_account) + return method_.kubernetes_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Auth::release_kubernetes_service_account() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Auth.kubernetes_service_account) + if (has_kubernetes_service_account()) { + clear_has_method(); + return method_.kubernetes_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void Auth::set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account) { + if (!has_kubernetes_service_account()) { + method_.kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_method(); + if (kubernetes_service_account != NULL) { + set_has_kubernetes_service_account(); + method_.kubernetes_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + kubernetes_service_account); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Auth.kubernetes_service_account) +} + +inline bool Auth::has_method() const { + return method_case() != METHOD_NOT_SET; +} +inline void Auth::clear_has_method() { + _oneof_case_[0] = METHOD_NOT_SET; +} +inline Auth::MethodCase Auth::method_case() const { + return Auth::MethodCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// LaunchPlanSpec + +// .flyteidl.core.Identifier workflow_id = 1; +inline bool LaunchPlanSpec::has_workflow_id() const { + return this != internal_default_instance() && workflow_id_ != NULL; +} +inline const ::flyteidl::core::Identifier& LaunchPlanSpec::workflow_id() const { + const ::flyteidl::core::Identifier* p = workflow_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.workflow_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlanSpec::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.workflow_id) + + ::flyteidl::core::Identifier* temp = workflow_id_; + workflow_id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlanSpec::mutable_workflow_id() { + + if (workflow_id_ == NULL) { + workflow_id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.workflow_id) + return workflow_id_; +} +inline void LaunchPlanSpec::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); + } + if (workflow_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_id, submessage_arena); + } + + } else { + + } + workflow_id_ = workflow_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.workflow_id) +} + +// .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; +inline bool LaunchPlanSpec::has_entity_metadata() const { + return this != internal_default_instance() && entity_metadata_ != NULL; +} +inline void LaunchPlanSpec::clear_entity_metadata() { + if (GetArenaNoVirtual() == NULL && entity_metadata_ != NULL) { + delete entity_metadata_; + } + entity_metadata_ = NULL; +} +inline const ::flyteidl::admin::LaunchPlanMetadata& LaunchPlanSpec::entity_metadata() const { + const ::flyteidl::admin::LaunchPlanMetadata* p = entity_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.entity_metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_LaunchPlanMetadata_default_instance_); +} +inline ::flyteidl::admin::LaunchPlanMetadata* LaunchPlanSpec::release_entity_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.entity_metadata) + + ::flyteidl::admin::LaunchPlanMetadata* temp = entity_metadata_; + entity_metadata_ = NULL; + return temp; +} +inline ::flyteidl::admin::LaunchPlanMetadata* LaunchPlanSpec::mutable_entity_metadata() { + + if (entity_metadata_ == NULL) { + entity_metadata_ = new ::flyteidl::admin::LaunchPlanMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.entity_metadata) + return entity_metadata_; +} +inline void LaunchPlanSpec::set_allocated_entity_metadata(::flyteidl::admin::LaunchPlanMetadata* entity_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete entity_metadata_; + } + if (entity_metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + entity_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, entity_metadata, submessage_arena); + } + + } else { + + } + entity_metadata_ = entity_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.entity_metadata) +} + +// .flyteidl.core.ParameterMap default_inputs = 3; +inline bool LaunchPlanSpec::has_default_inputs() const { + return this != internal_default_instance() && default_inputs_ != NULL; +} +inline const ::flyteidl::core::ParameterMap& LaunchPlanSpec::default_inputs() const { + const ::flyteidl::core::ParameterMap* p = default_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.default_inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_ParameterMap_default_instance_); +} +inline ::flyteidl::core::ParameterMap* LaunchPlanSpec::release_default_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.default_inputs) + + ::flyteidl::core::ParameterMap* temp = default_inputs_; + default_inputs_ = NULL; + return temp; +} +inline ::flyteidl::core::ParameterMap* LaunchPlanSpec::mutable_default_inputs() { + + if (default_inputs_ == NULL) { + default_inputs_ = new ::flyteidl::core::ParameterMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.default_inputs) + return default_inputs_; +} +inline void LaunchPlanSpec::set_allocated_default_inputs(::flyteidl::core::ParameterMap* default_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_inputs_); + } + if (default_inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + default_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, default_inputs, submessage_arena); + } + + } else { + + } + default_inputs_ = default_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.default_inputs) +} + +// .flyteidl.core.LiteralMap fixed_inputs = 4; +inline bool LaunchPlanSpec::has_fixed_inputs() const { + return this != internal_default_instance() && fixed_inputs_ != NULL; +} +inline const ::flyteidl::core::LiteralMap& LaunchPlanSpec::fixed_inputs() const { + const ::flyteidl::core::LiteralMap* p = fixed_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.fixed_inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* LaunchPlanSpec::release_fixed_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.fixed_inputs) + + ::flyteidl::core::LiteralMap* temp = fixed_inputs_; + fixed_inputs_ = NULL; + return temp; +} +inline ::flyteidl::core::LiteralMap* LaunchPlanSpec::mutable_fixed_inputs() { + + if (fixed_inputs_ == NULL) { + fixed_inputs_ = new ::flyteidl::core::LiteralMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.fixed_inputs) + return fixed_inputs_; +} +inline void LaunchPlanSpec::set_allocated_fixed_inputs(::flyteidl::core::LiteralMap* fixed_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(fixed_inputs_); + } + if (fixed_inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + fixed_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, fixed_inputs, submessage_arena); + } + + } else { + + } + fixed_inputs_ = fixed_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.fixed_inputs) +} + +// string role = 5 [deprecated = true]; +inline void LaunchPlanSpec::clear_role() { + role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& LaunchPlanSpec::role() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.role) + return role_.GetNoArena(); +} +inline void LaunchPlanSpec::set_role(const ::std::string& value) { + + role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.role) +} +#if LANG_CXX11 +inline void LaunchPlanSpec::set_role(::std::string&& value) { + + role_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LaunchPlanSpec.role) +} +#endif +inline void LaunchPlanSpec::set_role(const char* value) { + GOOGLE_DCHECK(value != NULL); + + role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.LaunchPlanSpec.role) +} +inline void LaunchPlanSpec::set_role(const char* value, size_t size) { + + role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LaunchPlanSpec.role) +} +inline ::std::string* LaunchPlanSpec::mutable_role() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.role) + return role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* LaunchPlanSpec::release_role() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.role) + + return role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void LaunchPlanSpec::set_allocated_role(::std::string* role) { + if (role != NULL) { + + } else { + + } + role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.role) +} + +// .flyteidl.admin.Labels labels = 6; +inline bool LaunchPlanSpec::has_labels() const { + return this != internal_default_instance() && labels_ != NULL; +} +inline const ::flyteidl::admin::Labels& LaunchPlanSpec::labels() const { + const ::flyteidl::admin::Labels* p = labels_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.labels) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Labels_default_instance_); +} +inline ::flyteidl::admin::Labels* LaunchPlanSpec::release_labels() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.labels) + + ::flyteidl::admin::Labels* temp = labels_; + labels_ = NULL; + return temp; +} +inline ::flyteidl::admin::Labels* LaunchPlanSpec::mutable_labels() { + + if (labels_ == NULL) { + labels_ = new ::flyteidl::admin::Labels; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.labels) + return labels_; +} +inline void LaunchPlanSpec::set_allocated_labels(::flyteidl::admin::Labels* labels) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); + } + if (labels) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + labels = ::google::protobuf::internal::GetOwnedMessage( + message_arena, labels, submessage_arena); + } + + } else { + + } + labels_ = labels; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.labels) +} + +// .flyteidl.admin.Annotations annotations = 7; +inline bool LaunchPlanSpec::has_annotations() const { + return this != internal_default_instance() && annotations_ != NULL; +} +inline const ::flyteidl::admin::Annotations& LaunchPlanSpec::annotations() const { + const ::flyteidl::admin::Annotations* p = annotations_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.annotations) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Annotations_default_instance_); +} +inline ::flyteidl::admin::Annotations* LaunchPlanSpec::release_annotations() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.annotations) + + ::flyteidl::admin::Annotations* temp = annotations_; + annotations_ = NULL; + return temp; +} +inline ::flyteidl::admin::Annotations* LaunchPlanSpec::mutable_annotations() { + + if (annotations_ == NULL) { + annotations_ = new ::flyteidl::admin::Annotations; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.annotations) + return annotations_; +} +inline void LaunchPlanSpec::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); + } + if (annotations) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + annotations = ::google::protobuf::internal::GetOwnedMessage( + message_arena, annotations, submessage_arena); + } + + } else { + + } + annotations_ = annotations; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.annotations) +} + +// .flyteidl.admin.Auth auth = 8; +inline bool LaunchPlanSpec::has_auth() const { + return this != internal_default_instance() && auth_ != NULL; +} +inline void LaunchPlanSpec::clear_auth() { + if (GetArenaNoVirtual() == NULL && auth_ != NULL) { + delete auth_; + } + auth_ = NULL; +} +inline const ::flyteidl::admin::Auth& LaunchPlanSpec::auth() const { + const ::flyteidl::admin::Auth* p = auth_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.auth) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Auth_default_instance_); +} +inline ::flyteidl::admin::Auth* LaunchPlanSpec::release_auth() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.auth) + + ::flyteidl::admin::Auth* temp = auth_; + auth_ = NULL; + return temp; +} +inline ::flyteidl::admin::Auth* LaunchPlanSpec::mutable_auth() { + + if (auth_ == NULL) { + auth_ = new ::flyteidl::admin::Auth; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.auth) + return auth_; +} +inline void LaunchPlanSpec::set_allocated_auth(::flyteidl::admin::Auth* auth) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete auth_; + } + if (auth) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + auth = ::google::protobuf::internal::GetOwnedMessage( + message_arena, auth, submessage_arena); + } + + } else { + + } + auth_ = auth; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.auth) +} + +// ------------------------------------------------------------------- + +// LaunchPlanClosure + +// .flyteidl.admin.LaunchPlanState state = 1; +inline void LaunchPlanClosure::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::LaunchPlanState LaunchPlanClosure::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.state) + return static_cast< ::flyteidl::admin::LaunchPlanState >(state_); +} +inline void LaunchPlanClosure::set_state(::flyteidl::admin::LaunchPlanState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanClosure.state) +} + +// .flyteidl.core.ParameterMap expected_inputs = 2; +inline bool LaunchPlanClosure::has_expected_inputs() const { + return this != internal_default_instance() && expected_inputs_ != NULL; +} +inline const ::flyteidl::core::ParameterMap& LaunchPlanClosure::expected_inputs() const { + const ::flyteidl::core::ParameterMap* p = expected_inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.expected_inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_ParameterMap_default_instance_); +} +inline ::flyteidl::core::ParameterMap* LaunchPlanClosure::release_expected_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.expected_inputs) + + ::flyteidl::core::ParameterMap* temp = expected_inputs_; + expected_inputs_ = NULL; + return temp; +} +inline ::flyteidl::core::ParameterMap* LaunchPlanClosure::mutable_expected_inputs() { + + if (expected_inputs_ == NULL) { + expected_inputs_ = new ::flyteidl::core::ParameterMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.expected_inputs) + return expected_inputs_; +} +inline void LaunchPlanClosure::set_allocated_expected_inputs(::flyteidl::core::ParameterMap* expected_inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expected_inputs_); + } + if (expected_inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + expected_inputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expected_inputs, submessage_arena); + } + + } else { + + } + expected_inputs_ = expected_inputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.expected_inputs) +} + +// .flyteidl.core.VariableMap expected_outputs = 3; +inline bool LaunchPlanClosure::has_expected_outputs() const { + return this != internal_default_instance() && expected_outputs_ != NULL; +} +inline const ::flyteidl::core::VariableMap& LaunchPlanClosure::expected_outputs() const { + const ::flyteidl::core::VariableMap* p = expected_outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.expected_outputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_VariableMap_default_instance_); +} +inline ::flyteidl::core::VariableMap* LaunchPlanClosure::release_expected_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.expected_outputs) + + ::flyteidl::core::VariableMap* temp = expected_outputs_; + expected_outputs_ = NULL; + return temp; +} +inline ::flyteidl::core::VariableMap* LaunchPlanClosure::mutable_expected_outputs() { + + if (expected_outputs_ == NULL) { + expected_outputs_ = new ::flyteidl::core::VariableMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.expected_outputs) + return expected_outputs_; +} +inline void LaunchPlanClosure::set_allocated_expected_outputs(::flyteidl::core::VariableMap* expected_outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(expected_outputs_); + } + if (expected_outputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + expected_outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, expected_outputs, submessage_arena); + } + + } else { + + } + expected_outputs_ = expected_outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.expected_outputs) +} + +// .google.protobuf.Timestamp created_at = 4; +inline bool LaunchPlanClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& LaunchPlanClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.created_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::mutable_created_at() { + + if (created_at_ == NULL) { + created_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.created_at) + return created_at_; +} +inline void LaunchPlanClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 5; +inline bool LaunchPlanClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& LaunchPlanClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.updated_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* LaunchPlanClosure::mutable_updated_at() { + + if (updated_at_ == NULL) { + updated_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.updated_at) + return updated_at_; +} +inline void LaunchPlanClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.updated_at) +} + +// ------------------------------------------------------------------- + +// LaunchPlanMetadata + +// .flyteidl.admin.Schedule schedule = 1; +inline bool LaunchPlanMetadata::has_schedule() const { + return this != internal_default_instance() && schedule_ != NULL; +} +inline const ::flyteidl::admin::Schedule& LaunchPlanMetadata::schedule() const { + const ::flyteidl::admin::Schedule* p = schedule_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.schedule) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Schedule_default_instance_); +} +inline ::flyteidl::admin::Schedule* LaunchPlanMetadata::release_schedule() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanMetadata.schedule) + + ::flyteidl::admin::Schedule* temp = schedule_; + schedule_ = NULL; + return temp; +} +inline ::flyteidl::admin::Schedule* LaunchPlanMetadata::mutable_schedule() { + + if (schedule_ == NULL) { + schedule_ = new ::flyteidl::admin::Schedule; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.schedule) + return schedule_; +} +inline void LaunchPlanMetadata::set_allocated_schedule(::flyteidl::admin::Schedule* schedule) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(schedule_); + } + if (schedule) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + schedule = ::google::protobuf::internal::GetOwnedMessage( + message_arena, schedule, submessage_arena); + } + + } else { + + } + schedule_ = schedule; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanMetadata.schedule) +} + +// repeated .flyteidl.admin.Notification notifications = 2; +inline int LaunchPlanMetadata::notifications_size() const { + return notifications_.size(); +} +inline const ::flyteidl::admin::Notification& LaunchPlanMetadata::notifications(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_.Get(index); +} +inline ::flyteidl::admin::Notification* LaunchPlanMetadata::mutable_notifications(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_.Mutable(index); +} +inline ::flyteidl::admin::Notification* LaunchPlanMetadata::add_notifications() { + // @@protoc_insertion_point(field_add:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* +LaunchPlanMetadata::mutable_notifications() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.LaunchPlanMetadata.notifications) + return ¬ifications_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& +LaunchPlanMetadata::notifications() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.LaunchPlanMetadata.notifications) + return notifications_; +} + +// ------------------------------------------------------------------- + +// LaunchPlanUpdateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool LaunchPlanUpdateRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& LaunchPlanUpdateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanUpdateRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* LaunchPlanUpdateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanUpdateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* LaunchPlanUpdateRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanUpdateRequest.id) + return id_; +} +inline void LaunchPlanUpdateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanUpdateRequest.id) +} + +// .flyteidl.admin.LaunchPlanState state = 2; +inline void LaunchPlanUpdateRequest::clear_state() { + state_ = 0; +} +inline ::flyteidl::admin::LaunchPlanState LaunchPlanUpdateRequest::state() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanUpdateRequest.state) + return static_cast< ::flyteidl::admin::LaunchPlanState >(state_); +} +inline void LaunchPlanUpdateRequest::set_state(::flyteidl::admin::LaunchPlanState value) { + + state_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanUpdateRequest.state) +} + +// ------------------------------------------------------------------- + +// LaunchPlanUpdateResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::LaunchPlanState> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::LaunchPlanState>() { + return ::flyteidl::admin::LaunchPlanState_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc new file mode 100644 index 0000000000..c2a79955b4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/node_execution.proto + +#include "flyteidl/admin/node_execution.pb.h" +#include "flyteidl/admin/node_execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h new file mode 100644 index 0000000000..0e7186841a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/node_execution.proto +#ifndef GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED + +#include "flyteidl/admin/node_execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc new file mode 100644 index 0000000000..8fa7da5042 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc @@ -0,0 +1,3859 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +#include "flyteidl/admin/node_execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class NodeExecutionGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionGetRequest_default_instance_; +class NodeExecutionListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionListRequest_default_instance_; +class NodeExecutionForTaskListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionForTaskListRequest_default_instance_; +class NodeExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecution_default_instance_; +class NodeExecutionListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionList_default_instance_; +class NodeExecutionClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata_; +} _NodeExecutionClosure_default_instance_; +class WorkflowNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowNodeMetadata_default_instance_; +class NodeExecutionGetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionGetDataRequest_default_instance_; +class NodeExecutionGetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionGetDataResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto { +void InitDefaultsNodeExecutionGetRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionGetRequest::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionGetRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionGetRequestImpl); +} + +void InitDefaultsNodeExecutionListRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionListRequest::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionListRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionListRequestImpl); +} + +void InitDefaultsNodeExecutionForTaskListRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionForTaskListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionForTaskListRequest::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionForTaskListRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionForTaskListRequestImpl); +} + +void InitDefaultsNodeExecutionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionClosure(); + { + void* ptr = &::flyteidl::admin::_NodeExecution_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecution::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecution() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionImpl); +} + +void InitDefaultsNodeExecutionListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecution(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionList_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionList::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionListImpl); +} + +void InitDefaultsNodeExecutionClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsWorkflowNodeMetadata(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionClosure_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionClosure::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionClosureImpl); +} + +void InitDefaultsWorkflowNodeMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_WorkflowNodeMetadata_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowNodeMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowNodeMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowNodeMetadataImpl); +} + +void InitDefaultsNodeExecutionGetDataRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionGetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionGetDataRequest::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionGetDataRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionGetDataRequestImpl); +} + +void InitDefaultsNodeExecutionGetDataResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsUrlBlob(); + { + void* ptr = &::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_; + new (ptr) ::flyteidl::admin::NodeExecutionGetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::NodeExecutionGetDataResponse::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionGetDataResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionGetDataResponseImpl); +} + +::google::protobuf::Metadata file_level_metadata[9]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, workflow_execution_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, token_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, filters_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, sort_by_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, task_execution_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, token_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, filters_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, sort_by_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecution, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecution, input_uri_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecution, closure_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, node_executions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, error_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, started_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, duration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, created_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, updated_at_), + offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, workflow_node_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, output_result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, target_metadata_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowNodeMetadata, executionid_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, outputs_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::NodeExecutionGetRequest)}, + { 6, -1, sizeof(::flyteidl::admin::NodeExecutionListRequest)}, + { 16, -1, sizeof(::flyteidl::admin::NodeExecutionForTaskListRequest)}, + { 26, -1, sizeof(::flyteidl::admin::NodeExecution)}, + { 34, -1, sizeof(::flyteidl::admin::NodeExecutionList)}, + { 41, -1, sizeof(::flyteidl::admin::NodeExecutionClosure)}, + { 56, -1, sizeof(::flyteidl::admin::WorkflowNodeMetadata)}, + { 62, -1, sizeof(::flyteidl::admin::NodeExecutionGetDataRequest)}, + { 68, -1, sizeof(::flyteidl::admin::NodeExecutionGetDataResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecution_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/node_execution.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n#flyteidl/admin/node_execution.proto\022\016f" + "lyteidl.admin\032\033flyteidl/admin/common.pro" + "to\032\035flyteidl/core/execution.proto\032\036flyte" + "idl/core/identifier.proto\032\037google/protob" + "uf/timestamp.proto\032\036google/protobuf/dura" + "tion.proto\"M\n\027NodeExecutionGetRequest\0222\n" + "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + "dentifier\"\273\001\n\030NodeExecutionListRequest\022I" + "\n\025workflow_execution_id\030\001 \001(\0132*.flyteidl" + ".core.WorkflowExecutionIdentifier\022\r\n\005lim" + "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + "\272\001\n\037NodeExecutionForTaskListRequest\022A\n\021t" + "ask_execution_id\030\001 \001(\0132&.flyteidl.core.T" + "askExecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n" + "\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by" + "\030\005 \001(\0132\024.flyteidl.admin.Sort\"\215\001\n\rNodeExe" + "cution\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + "xecutionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n" + "\007closure\030\003 \001(\0132$.flyteidl.admin.NodeExec" + "utionClosure\"Z\n\021NodeExecutionList\0226\n\017nod" + "e_executions\030\001 \003(\0132\035.flyteidl.admin.Node" + "Execution\022\r\n\005token\030\002 \001(\t\"\270\003\n\024NodeExecuti" + "onClosure\022\024\n\noutput_uri\030\001 \001(\tH\000\022.\n\005error" + "\030\002 \001(\0132\035.flyteidl.core.ExecutionErrorH\000\022" + "1\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExecu" + "tion.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.google." + "protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031.g" + "oogle.protobuf.Duration\022.\n\ncreated_at\030\006 " + "\001(\0132\032.google.protobuf.Timestamp\022.\n\nupdat" + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + "F\n\026workflow_node_metadata\030\010 \001(\0132$.flytei" + "dl.admin.WorkflowNodeMetadataH\001B\017\n\routpu" + "t_resultB\021\n\017target_metadata\"W\n\024WorkflowN" + "odeMetadata\022\?\n\013executionId\030\001 \001(\0132*.flyte" + "idl.core.WorkflowExecutionIdentifier\"Q\n\033" + "NodeExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132" + "&.flyteidl.core.NodeExecutionIdentifier\"" + "q\n\034NodeExecutionGetDataResponse\022\'\n\006input" + "s\030\001 \001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outp" + "uts\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1gi" + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + "l/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1695); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/node_execution.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void NodeExecutionGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +void NodeExecutionGetRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionGetRequest::NodeExecutionGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetRequest) +} +NodeExecutionGetRequest::NodeExecutionGetRequest(const NodeExecutionGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetRequest) +} + +void NodeExecutionGetRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +NodeExecutionGetRequest::~NodeExecutionGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetRequest) + SharedDtor(); +} + +void NodeExecutionGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void NodeExecutionGetRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionGetRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionGetRequest& NodeExecutionGetRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetRequest(); + return *internal_default_instance(); +} + +NodeExecutionGetRequest* NodeExecutionGetRequest::New(::google::protobuf::Arena* arena) const { + NodeExecutionGetRequest* n = new NodeExecutionGetRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeExecutionGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionGetRequest) + 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)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.NodeExecutionGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetRequest) + return false; +#undef DO_ +} + +void NodeExecutionGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionGetRequest) +} + +::google::protobuf::uint8* NodeExecutionGetRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionGetRequest) + return target; +} + +size_t NodeExecutionGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionGetRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetRequest) + MergeFrom(*source); + } +} + +void NodeExecutionGetRequest::MergeFrom(const NodeExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } +} + +void NodeExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionGetRequest::CopyFrom(const NodeExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionGetRequest::IsInitialized() const { + return true; +} + +void NodeExecutionGetRequest::Swap(NodeExecutionGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionGetRequest::InternalSwap(NodeExecutionGetRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionGetRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionListRequest_default_instance_._instance.get_mutable()->workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +void NodeExecutionListRequest::clear_workflow_execution_id() { + if (GetArenaNoVirtual() == NULL && workflow_execution_id_ != NULL) { + delete workflow_execution_id_; + } + workflow_execution_id_ = NULL; +} +void NodeExecutionListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionListRequest::kWorkflowExecutionIdFieldNumber; +const int NodeExecutionListRequest::kLimitFieldNumber; +const int NodeExecutionListRequest::kTokenFieldNumber; +const int NodeExecutionListRequest::kFiltersFieldNumber; +const int NodeExecutionListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionListRequest::NodeExecutionListRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionListRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionListRequest) +} +NodeExecutionListRequest::NodeExecutionListRequest(const NodeExecutionListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _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_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_workflow_execution_id()) { + workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_id_); + } else { + workflow_execution_id_ = NULL; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = NULL; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionListRequest) +} + +void NodeExecutionListRequest::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&workflow_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&workflow_execution_id_)) + sizeof(limit_)); + _cached_size_ = 0; +} + +NodeExecutionListRequest::~NodeExecutionListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionListRequest) + SharedDtor(); +} + +void NodeExecutionListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete workflow_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void NodeExecutionListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionListRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionListRequest& NodeExecutionListRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionListRequest(); + return *internal_default_instance(); +} + +NodeExecutionListRequest* NodeExecutionListRequest::New(::google::protobuf::Arena* arena) const { + NodeExecutionListRequest* n = new NodeExecutionListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && workflow_execution_id_ != NULL) { + delete workflow_execution_id_; + } + workflow_execution_id_ = NULL; + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +bool NodeExecutionListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionListRequest) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 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.NodeExecutionListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } 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.NodeExecutionListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionListRequest) + return false; +#undef DO_ +} + +void NodeExecutionListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->workflow_execution_id_, output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + 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.NodeExecutionListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->sort_by_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionListRequest) +} + +::google::protobuf::uint8* NodeExecutionListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->workflow_execution_id_, deterministic, target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + 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.NodeExecutionListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->sort_by_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionListRequest) + return target; +} + +size_t NodeExecutionListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionListRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + if (this->has_workflow_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->workflow_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionListRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionListRequest) + MergeFrom(*source); + } +} + +void NodeExecutionListRequest::MergeFrom(const NodeExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_workflow_execution_id()) { + mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NodeExecutionListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionListRequest::CopyFrom(const NodeExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionListRequest::IsInitialized() const { + return true; +} + +void NodeExecutionListRequest::Swap(NodeExecutionListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionListRequest::InternalSwap(NodeExecutionListRequest* other) { + using std::swap; + token_.Swap(&other->token_); + filters_.Swap(&other->filters_); + swap(workflow_execution_id_, other->workflow_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionListRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionForTaskListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_._instance.get_mutable()->task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +void NodeExecutionForTaskListRequest::clear_task_execution_id() { + if (GetArenaNoVirtual() == NULL && task_execution_id_ != NULL) { + delete task_execution_id_; + } + task_execution_id_ = NULL; +} +void NodeExecutionForTaskListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionForTaskListRequest::kTaskExecutionIdFieldNumber; +const int NodeExecutionForTaskListRequest::kLimitFieldNumber; +const int NodeExecutionForTaskListRequest::kTokenFieldNumber; +const int NodeExecutionForTaskListRequest::kFiltersFieldNumber; +const int NodeExecutionForTaskListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionForTaskListRequest::NodeExecutionForTaskListRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionForTaskListRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionForTaskListRequest) +} +NodeExecutionForTaskListRequest::NodeExecutionForTaskListRequest(const NodeExecutionForTaskListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _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_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_task_execution_id()) { + task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_id_); + } else { + task_execution_id_ = NULL; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = NULL; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionForTaskListRequest) +} + +void NodeExecutionForTaskListRequest::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&task_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&task_execution_id_)) + sizeof(limit_)); + _cached_size_ = 0; +} + +NodeExecutionForTaskListRequest::~NodeExecutionForTaskListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionForTaskListRequest) + SharedDtor(); +} + +void NodeExecutionForTaskListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void NodeExecutionForTaskListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionForTaskListRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionForTaskListRequest& NodeExecutionForTaskListRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionForTaskListRequest(); + return *internal_default_instance(); +} + +NodeExecutionForTaskListRequest* NodeExecutionForTaskListRequest::New(::google::protobuf::Arena* arena) const { + NodeExecutionForTaskListRequest* n = new NodeExecutionForTaskListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionForTaskListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && task_execution_id_ != NULL) { + delete task_execution_id_; + } + task_execution_id_ = NULL; + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +bool NodeExecutionForTaskListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionForTaskListRequest) + 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)) { + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 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.NodeExecutionForTaskListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionForTaskListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } 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.NodeExecutionForTaskListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionForTaskListRequest) + return false; +#undef DO_ +} + +void NodeExecutionForTaskListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->task_execution_id_, output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + 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.NodeExecutionForTaskListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionForTaskListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->sort_by_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionForTaskListRequest) +} + +::google::protobuf::uint8* NodeExecutionForTaskListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->task_execution_id_, deterministic, target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + 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.NodeExecutionForTaskListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionForTaskListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->sort_by_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionForTaskListRequest) + return target; +} + +size_t NodeExecutionForTaskListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionForTaskListRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + if (this->has_task_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->task_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionForTaskListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionForTaskListRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionForTaskListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionForTaskListRequest) + MergeFrom(*source); + } +} + +void NodeExecutionForTaskListRequest::MergeFrom(const NodeExecutionForTaskListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_task_execution_id()) { + mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void NodeExecutionForTaskListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionForTaskListRequest::CopyFrom(const NodeExecutionForTaskListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionForTaskListRequest::IsInitialized() const { + return true; +} + +void NodeExecutionForTaskListRequest::Swap(NodeExecutionForTaskListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionForTaskListRequest::InternalSwap(NodeExecutionForTaskListRequest* other) { + using std::swap; + token_.Swap(&other->token_); + filters_.Swap(&other->filters_); + swap(task_execution_id_, other->task_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionForTaskListRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecution::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::NodeExecutionClosure*>( + ::flyteidl::admin::NodeExecutionClosure::internal_default_instance()); +} +void NodeExecution::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecution::kIdFieldNumber; +const int NodeExecution::kInputUriFieldNumber; +const int NodeExecution::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecution::NodeExecution() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecution(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecution) +} +NodeExecution::NodeExecution(const NodeExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_uri().size() > 0) { + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::NodeExecutionClosure(*from.closure_); + } else { + closure_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecution) +} + +void NodeExecution::SharedCtor() { + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); + _cached_size_ = 0; +} + +NodeExecution::~NodeExecution() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecution) + SharedDtor(); +} + +void NodeExecution::SharedDtor() { + input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void NodeExecution::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecution::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecution& NodeExecution::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecution(); + return *internal_default_instance(); +} + +NodeExecution* NodeExecution::New(::google::protobuf::Arena* arena) const { + NodeExecution* n = new NodeExecution; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecution) + 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)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecution.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } 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.NodeExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecution) + return false; +#undef DO_ +} + +void NodeExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecution.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->input_uri(), output); + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->closure_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecution) +} + +::google::protobuf::uint8* NodeExecution::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecution.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->input_uri(), target); + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->closure_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecution) + return target; +} + +size_t NodeExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecution) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string input_uri = 2; + if (this->input_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + } + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecution* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecution) + MergeFrom(*source); + } +} + +void NodeExecution::MergeFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.input_uri().size() > 0) { + + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::NodeExecutionClosure::MergeFrom(from.closure()); + } +} + +void NodeExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecution::CopyFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecution::IsInitialized() const { + return true; +} + +void NodeExecution::Swap(NodeExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecution::InternalSwap(NodeExecution* other) { + using std::swap; + input_uri_.Swap(&other->input_uri_); + swap(id_, other->id_); + swap(closure_, other->closure_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecution::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionList::kNodeExecutionsFieldNumber; +const int NodeExecutionList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionList::NodeExecutionList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionList) +} +NodeExecutionList::NodeExecutionList(const NodeExecutionList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + node_executions_(from.node_executions_), + _cached_size_(0) { + _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.NodeExecutionList) +} + +void NodeExecutionList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +NodeExecutionList::~NodeExecutionList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionList) + SharedDtor(); +} + +void NodeExecutionList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void NodeExecutionList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionList::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionList& NodeExecutionList::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionList(); + return *internal_default_instance(); +} + +NodeExecutionList* NodeExecutionList::New(::google::protobuf::Arena* arena) const { + NodeExecutionList* n = new NodeExecutionList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_executions_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool NodeExecutionList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionList) + 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.admin.NodeExecution node_executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_node_executions())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.NodeExecutionList.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.NodeExecutionList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionList) + return false; +#undef DO_ +} + +void NodeExecutionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->node_executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->node_executions(static_cast(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.NodeExecutionList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionList) +} + +::google::protobuf::uint8* NodeExecutionList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->node_executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->node_executions(static_cast(i)), deterministic, 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.NodeExecutionList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionList) + return target; +} + +size_t NodeExecutionList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + { + unsigned int count = static_cast(this->node_executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->node_executions(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionList) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionList) + MergeFrom(*source); + } +} + +void NodeExecutionList::MergeFrom(const NodeExecutionList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + node_executions_.MergeFrom(from.node_executions_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void NodeExecutionList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionList::CopyFrom(const NodeExecutionList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionList::IsInitialized() const { + return true; +} + +void NodeExecutionList::Swap(NodeExecutionList* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionList::InternalSwap(NodeExecutionList* other) { + using std::swap; + node_executions_.InternalSwap(&other->node_executions_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionClosure_default_instance_.workflow_node_metadata_ = const_cast< ::flyteidl::admin::WorkflowNodeMetadata*>( + ::flyteidl::admin::WorkflowNodeMetadata::internal_default_instance()); +} +void NodeExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.error) +} +void NodeExecutionClosure::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void NodeExecutionClosure::clear_started_at() { + if (GetArenaNoVirtual() == NULL && started_at_ != NULL) { + delete started_at_; + } + started_at_ = NULL; +} +void NodeExecutionClosure::clear_duration() { + if (GetArenaNoVirtual() == NULL && duration_ != NULL) { + delete duration_; + } + duration_ = NULL; +} +void NodeExecutionClosure::clear_created_at() { + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; +} +void NodeExecutionClosure::clear_updated_at() { + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; +} +void NodeExecutionClosure::set_allocated_workflow_node_metadata(::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target_metadata(); + if (workflow_node_metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_node_metadata, submessage_arena); + } + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = workflow_node_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionClosure::kOutputUriFieldNumber; +const int NodeExecutionClosure::kErrorFieldNumber; +const int NodeExecutionClosure::kPhaseFieldNumber; +const int NodeExecutionClosure::kStartedAtFieldNumber; +const int NodeExecutionClosure::kDurationFieldNumber; +const int NodeExecutionClosure::kCreatedAtFieldNumber; +const int NodeExecutionClosure::kUpdatedAtFieldNumber; +const int NodeExecutionClosure::kWorkflowNodeMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionClosure::NodeExecutionClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionClosure) +} +NodeExecutionClosure::NodeExecutionClosure(const NodeExecutionClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_started_at()) { + started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); + } else { + started_at_ = NULL; + } + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = NULL; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = NULL; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = NULL; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + clear_has_target_metadata(); + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::admin::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionClosure) +} + +void NodeExecutionClosure::SharedCtor() { + ::memset(&started_at_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&started_at_)) + sizeof(phase_)); + clear_has_output_result(); + clear_has_target_metadata(); + _cached_size_ = 0; +} + +NodeExecutionClosure::~NodeExecutionClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionClosure) + SharedDtor(); +} + +void NodeExecutionClosure::SharedDtor() { + if (this != internal_default_instance()) delete started_at_; + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; + if (has_output_result()) { + clear_output_result(); + } + if (has_target_metadata()) { + clear_target_metadata(); + } +} + +void NodeExecutionClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionClosure::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionClosure& NodeExecutionClosure::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionClosure(); + return *internal_default_instance(); +} + +NodeExecutionClosure* NodeExecutionClosure::New(::google::protobuf::Arena* arena) const { + NodeExecutionClosure* n = new NodeExecutionClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionClosure::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.NodeExecutionClosure) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + +void NodeExecutionClosure::clear_target_metadata() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.NodeExecutionClosure) + switch (target_metadata_case()) { + case kWorkflowNodeMetadata: { + delete target_metadata_.workflow_node_metadata_; + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + _oneof_case_[1] = TARGET_METADATA_NOT_SET; +} + + +void NodeExecutionClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && started_at_ != NULL) { + delete started_at_; + } + started_at_ = NULL; + if (GetArenaNoVirtual() == NULL && duration_ != NULL) { + delete duration_; + } + duration_ = NULL; + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; + phase_ = 0; + clear_output_result(); + clear_target_metadata(); + _internal_metadata_.Clear(); +} + +bool NodeExecutionClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionClosure) + 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 output_uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.NodeExecutionClosure.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::NodeExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp started_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_started_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_node_metadata())); + } 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.NodeExecutionClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionClosure) + return false; +#undef DO_ +} + +void NodeExecutionClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *output_result_.error_, output); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // .google.protobuf.Timestamp started_at = 4; + if (this->has_started_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->started_at_, output); + } + + // .google.protobuf.Duration duration = 5; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->duration_, output); + } + + // .google.protobuf.Timestamp created_at = 6; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->created_at_, output); + } + + // .google.protobuf.Timestamp updated_at = 7; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->updated_at_, output); + } + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *target_metadata_.workflow_node_metadata_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionClosure) +} + +::google::protobuf::uint8* NodeExecutionClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.NodeExecutionClosure.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *output_result_.error_, deterministic, target); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // .google.protobuf.Timestamp started_at = 4; + if (this->has_started_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->started_at_, deterministic, target); + } + + // .google.protobuf.Duration duration = 5; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->duration_, deterministic, target); + } + + // .google.protobuf.Timestamp created_at = 6; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->created_at_, deterministic, target); + } + + // .google.protobuf.Timestamp updated_at = 7; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->updated_at_, deterministic, target); + } + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *target_metadata_.workflow_node_metadata_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionClosure) + return target; +} + +size_t NodeExecutionClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .google.protobuf.Timestamp started_at = 4; + if (this->has_started_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->started_at_); + } + + // .google.protobuf.Duration duration = 5; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->duration_); + } + + // .google.protobuf.Timestamp created_at = 6; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->created_at_); + } + + // .google.protobuf.Timestamp updated_at = 7; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->updated_at_); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // string output_uri = 1; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (target_metadata_case()) { + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + case kWorkflowNodeMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_metadata_.workflow_node_metadata_); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionClosure) + MergeFrom(*source); + } +} + +void NodeExecutionClosure::MergeFrom(const NodeExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_started_at()) { + mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); + } + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::admin::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } +} + +void NodeExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionClosure::CopyFrom(const NodeExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionClosure::IsInitialized() const { + return true; +} + +void NodeExecutionClosure::Swap(NodeExecutionClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionClosure::InternalSwap(NodeExecutionClosure* other) { + using std::swap; + swap(started_at_, other->started_at_); + swap(duration_, other->duration_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(target_metadata_, other->target_metadata_); + swap(_oneof_case_[1], other->_oneof_case_[1]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionClosure::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowNodeMetadata_default_instance_._instance.get_mutable()->executionid_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void WorkflowNodeMetadata::clear_executionid() { + if (GetArenaNoVirtual() == NULL && executionid_ != NULL) { + delete executionid_; + } + executionid_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowNodeMetadata::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowNodeMetadata::WorkflowNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsWorkflowNodeMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowNodeMetadata) +} +WorkflowNodeMetadata::WorkflowNodeMetadata(const WorkflowNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_executionid()) { + executionid_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.executionid_); + } else { + executionid_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowNodeMetadata) +} + +void WorkflowNodeMetadata::SharedCtor() { + executionid_ = NULL; + _cached_size_ = 0; +} + +WorkflowNodeMetadata::~WorkflowNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowNodeMetadata) + SharedDtor(); +} + +void WorkflowNodeMetadata::SharedDtor() { + if (this != internal_default_instance()) delete executionid_; +} + +void WorkflowNodeMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowNodeMetadata::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowNodeMetadata& WorkflowNodeMetadata::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsWorkflowNodeMetadata(); + return *internal_default_instance(); +} + +WorkflowNodeMetadata* WorkflowNodeMetadata::New(::google::protobuf::Arena* arena) const { + WorkflowNodeMetadata* n = new WorkflowNodeMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && executionid_ != NULL) { + delete executionid_; + } + executionid_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowNodeMetadata) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_executionid())); + } 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.WorkflowNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowNodeMetadata) + return false; +#undef DO_ +} + +void WorkflowNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + if (this->has_executionid()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->executionid_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowNodeMetadata) +} + +::google::protobuf::uint8* WorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + if (this->has_executionid()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->executionid_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowNodeMetadata) + return target; +} + +size_t WorkflowNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowNodeMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + if (this->has_executionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->executionid_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowNodeMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowNodeMetadata) + MergeFrom(*source); + } +} + +void WorkflowNodeMetadata::MergeFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_executionid()) { + mutable_executionid()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.executionid()); + } +} + +void WorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowNodeMetadata::CopyFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowNodeMetadata::IsInitialized() const { + return true; +} + +void WorkflowNodeMetadata::Swap(WorkflowNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowNodeMetadata::InternalSwap(WorkflowNodeMetadata* other) { + using std::swap; + swap(executionid_, other->executionid_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowNodeMetadata::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionGetDataRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +void NodeExecutionGetDataRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionGetDataRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionGetDataRequest::NodeExecutionGetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetDataRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetDataRequest) +} +NodeExecutionGetDataRequest::NodeExecutionGetDataRequest(const NodeExecutionGetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetDataRequest) +} + +void NodeExecutionGetDataRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +NodeExecutionGetDataRequest::~NodeExecutionGetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetDataRequest) + SharedDtor(); +} + +void NodeExecutionGetDataRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void NodeExecutionGetDataRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionGetDataRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionGetDataRequest& NodeExecutionGetDataRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetDataRequest(); + return *internal_default_instance(); +} + +NodeExecutionGetDataRequest* NodeExecutionGetDataRequest::New(::google::protobuf::Arena* arena) const { + NodeExecutionGetDataRequest* n = new NodeExecutionGetDataRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionGetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeExecutionGetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionGetDataRequest) + 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)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.NodeExecutionGetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetDataRequest) + return false; +#undef DO_ +} + +void NodeExecutionGetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionGetDataRequest) +} + +::google::protobuf::uint8* NodeExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionGetDataRequest) + return target; +} + +size_t NodeExecutionGetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetDataRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionGetDataRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetDataRequest) + MergeFrom(*source); + } +} + +void NodeExecutionGetDataRequest::MergeFrom(const NodeExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } +} + +void NodeExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionGetDataRequest::CopyFrom(const NodeExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionGetDataRequest::IsInitialized() const { + return true; +} + +void NodeExecutionGetDataRequest::Swap(NodeExecutionGetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionGetDataRequest::InternalSwap(NodeExecutionGetDataRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionGetDataRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionGetDataResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); +} +void NodeExecutionGetDataResponse::clear_inputs() { + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; +} +void NodeExecutionGetDataResponse::clear_outputs() { + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionGetDataResponse::kInputsFieldNumber; +const int NodeExecutionGetDataResponse::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionGetDataResponse::NodeExecutionGetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetDataResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetDataResponse) +} +NodeExecutionGetDataResponse::NodeExecutionGetDataResponse(const NodeExecutionGetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_inputs()) { + inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); + } else { + inputs_ = NULL; + } + if (from.has_outputs()) { + outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); + } else { + outputs_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetDataResponse) +} + +void NodeExecutionGetDataResponse::SharedCtor() { + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&outputs_) - + reinterpret_cast(&inputs_)) + sizeof(outputs_)); + _cached_size_ = 0; +} + +NodeExecutionGetDataResponse::~NodeExecutionGetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetDataResponse) + SharedDtor(); +} + +void NodeExecutionGetDataResponse::SharedDtor() { + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete outputs_; +} + +void NodeExecutionGetDataResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionGetDataResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionGetDataResponse& NodeExecutionGetDataResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetDataResponse(); + return *internal_default_instance(); +} + +NodeExecutionGetDataResponse* NodeExecutionGetDataResponse::New(::google::protobuf::Arena* arena) const { + NodeExecutionGetDataResponse* n = new NodeExecutionGetDataResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionGetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeExecutionGetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.NodeExecutionGetDataResponse) + 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)) { + // .flyteidl.admin.UrlBlob inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.UrlBlob outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } 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.NodeExecutionGetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetDataResponse) + return false; +#undef DO_ +} + +void NodeExecutionGetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->inputs_, output); + } + + // .flyteidl.admin.UrlBlob outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->outputs_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionGetDataResponse) +} + +::google::protobuf::uint8* NodeExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->inputs_, deterministic, target); + } + + // .flyteidl.admin.UrlBlob outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->outputs_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.NodeExecutionGetDataResponse) + return target; +} + +size_t NodeExecutionGetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetDataResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.admin.UrlBlob inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->inputs_); + } + + // .flyteidl.admin.UrlBlob outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->outputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionGetDataResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetDataResponse) + MergeFrom(*source); + } +} + +void NodeExecutionGetDataResponse::MergeFrom(const NodeExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); + } + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); + } +} + +void NodeExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionGetDataResponse::CopyFrom(const NodeExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionGetDataResponse::IsInitialized() const { + return true; +} + +void NodeExecutionGetDataResponse::Swap(NodeExecutionGetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionGetDataResponse::InternalSwap(NodeExecutionGetDataResponse* other) { + using std::swap; + swap(inputs_, other->inputs_); + swap(outputs_, other->outputs_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionGetDataResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h new file mode 100644 index 0000000000..cf8b661d2a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h @@ -0,0 +1,2603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[9]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsNodeExecutionGetRequestImpl(); +void InitDefaultsNodeExecutionGetRequest(); +void InitDefaultsNodeExecutionListRequestImpl(); +void InitDefaultsNodeExecutionListRequest(); +void InitDefaultsNodeExecutionForTaskListRequestImpl(); +void InitDefaultsNodeExecutionForTaskListRequest(); +void InitDefaultsNodeExecutionImpl(); +void InitDefaultsNodeExecution(); +void InitDefaultsNodeExecutionListImpl(); +void InitDefaultsNodeExecutionList(); +void InitDefaultsNodeExecutionClosureImpl(); +void InitDefaultsNodeExecutionClosure(); +void InitDefaultsWorkflowNodeMetadataImpl(); +void InitDefaultsWorkflowNodeMetadata(); +void InitDefaultsNodeExecutionGetDataRequestImpl(); +void InitDefaultsNodeExecutionGetDataRequest(); +void InitDefaultsNodeExecutionGetDataResponseImpl(); +void InitDefaultsNodeExecutionGetDataResponse(); +inline void InitDefaults() { + InitDefaultsNodeExecutionGetRequest(); + InitDefaultsNodeExecutionListRequest(); + InitDefaultsNodeExecutionForTaskListRequest(); + InitDefaultsNodeExecution(); + InitDefaultsNodeExecutionList(); + InitDefaultsNodeExecutionClosure(); + InitDefaultsWorkflowNodeMetadata(); + InitDefaultsNodeExecutionGetDataRequest(); + InitDefaultsNodeExecutionGetDataResponse(); +} +} // namespace protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto +namespace flyteidl { +namespace admin { +class NodeExecution; +class NodeExecutionDefaultTypeInternal; +extern NodeExecutionDefaultTypeInternal _NodeExecution_default_instance_; +class NodeExecutionClosure; +class NodeExecutionClosureDefaultTypeInternal; +extern NodeExecutionClosureDefaultTypeInternal _NodeExecutionClosure_default_instance_; +class NodeExecutionForTaskListRequest; +class NodeExecutionForTaskListRequestDefaultTypeInternal; +extern NodeExecutionForTaskListRequestDefaultTypeInternal _NodeExecutionForTaskListRequest_default_instance_; +class NodeExecutionGetDataRequest; +class NodeExecutionGetDataRequestDefaultTypeInternal; +extern NodeExecutionGetDataRequestDefaultTypeInternal _NodeExecutionGetDataRequest_default_instance_; +class NodeExecutionGetDataResponse; +class NodeExecutionGetDataResponseDefaultTypeInternal; +extern NodeExecutionGetDataResponseDefaultTypeInternal _NodeExecutionGetDataResponse_default_instance_; +class NodeExecutionGetRequest; +class NodeExecutionGetRequestDefaultTypeInternal; +extern NodeExecutionGetRequestDefaultTypeInternal _NodeExecutionGetRequest_default_instance_; +class NodeExecutionList; +class NodeExecutionListDefaultTypeInternal; +extern NodeExecutionListDefaultTypeInternal _NodeExecutionList_default_instance_; +class NodeExecutionListRequest; +class NodeExecutionListRequestDefaultTypeInternal; +extern NodeExecutionListRequestDefaultTypeInternal _NodeExecutionListRequest_default_instance_; +class WorkflowNodeMetadata; +class WorkflowNodeMetadataDefaultTypeInternal; +extern WorkflowNodeMetadataDefaultTypeInternal _WorkflowNodeMetadata_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class NodeExecutionGetRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetRequest) */ { + public: + NodeExecutionGetRequest(); + virtual ~NodeExecutionGetRequest(); + + NodeExecutionGetRequest(const NodeExecutionGetRequest& from); + + inline NodeExecutionGetRequest& operator=(const NodeExecutionGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionGetRequest(NodeExecutionGetRequest&& from) noexcept + : NodeExecutionGetRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionGetRequest& operator=(NodeExecutionGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionGetRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionGetRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(NodeExecutionGetRequest* other); + friend void swap(NodeExecutionGetRequest& a, NodeExecutionGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionGetRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionGetRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionGetRequest& from); + void MergeFrom(const NodeExecutionGetRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetRequestImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionListRequest) */ { + public: + NodeExecutionListRequest(); + virtual ~NodeExecutionListRequest(); + + NodeExecutionListRequest(const NodeExecutionListRequest& from); + + inline NodeExecutionListRequest& operator=(const NodeExecutionListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionListRequest(NodeExecutionListRequest&& from) noexcept + : NodeExecutionListRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionListRequest& operator=(NodeExecutionListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionListRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionListRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(NodeExecutionListRequest* other); + friend void swap(NodeExecutionListRequest& a, NodeExecutionListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionListRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionListRequest& from); + void MergeFrom(const NodeExecutionListRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + 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); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + bool has_workflow_execution_id() const; + void clear_workflow_execution_id(); + static const int kWorkflowExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution_id(); + void set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionListRequestImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionForTaskListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionForTaskListRequest) */ { + public: + NodeExecutionForTaskListRequest(); + virtual ~NodeExecutionForTaskListRequest(); + + NodeExecutionForTaskListRequest(const NodeExecutionForTaskListRequest& from); + + inline NodeExecutionForTaskListRequest& operator=(const NodeExecutionForTaskListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionForTaskListRequest(NodeExecutionForTaskListRequest&& from) noexcept + : NodeExecutionForTaskListRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionForTaskListRequest& operator=(NodeExecutionForTaskListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionForTaskListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionForTaskListRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionForTaskListRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(NodeExecutionForTaskListRequest* other); + friend void swap(NodeExecutionForTaskListRequest& a, NodeExecutionForTaskListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionForTaskListRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionForTaskListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionForTaskListRequest& from); + void MergeFrom(const NodeExecutionForTaskListRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionForTaskListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + 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); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + bool has_task_execution_id() const; + void clear_task_execution_id(); + static const int kTaskExecutionIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_task_execution_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution_id(); + void set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionForTaskListRequestImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecution) */ { + public: + NodeExecution(); + virtual ~NodeExecution(); + + NodeExecution(const NodeExecution& from); + + inline NodeExecution& operator=(const NodeExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecution(NodeExecution&& from) noexcept + : NodeExecution() { + *this = ::std::move(from); + } + + inline NodeExecution& operator=(NodeExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecution* internal_default_instance() { + return reinterpret_cast( + &_NodeExecution_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(NodeExecution* other); + friend void swap(NodeExecution& a, NodeExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecution* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecution* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecution& from); + void MergeFrom(const NodeExecution& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string input_uri = 2; + void clear_input_uri(); + static const int kInputUriFieldNumber = 2; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // .flyteidl.admin.NodeExecutionClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::NodeExecutionClosure& closure() const; + ::flyteidl::admin::NodeExecutionClosure* release_closure(); + ::flyteidl::admin::NodeExecutionClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::NodeExecutionClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + ::flyteidl::admin::NodeExecutionClosure* closure_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionList) */ { + public: + NodeExecutionList(); + virtual ~NodeExecutionList(); + + NodeExecutionList(const NodeExecutionList& from); + + inline NodeExecutionList& operator=(const NodeExecutionList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionList(NodeExecutionList&& from) noexcept + : NodeExecutionList() { + *this = ::std::move(from); + } + + inline NodeExecutionList& operator=(NodeExecutionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionList* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(NodeExecutionList* other); + friend void swap(NodeExecutionList& a, NodeExecutionList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionList* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionList& from); + void MergeFrom(const NodeExecutionList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.NodeExecution node_executions = 1; + int node_executions_size() const; + void clear_node_executions(); + static const int kNodeExecutionsFieldNumber = 1; + const ::flyteidl::admin::NodeExecution& node_executions(int index) const; + ::flyteidl::admin::NodeExecution* mutable_node_executions(int index); + ::flyteidl::admin::NodeExecution* add_node_executions(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >* + mutable_node_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >& + node_executions() const; + + // 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.NodeExecutionList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution > node_executions_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionListImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionClosure) */ { + public: + NodeExecutionClosure(); + virtual ~NodeExecutionClosure(); + + NodeExecutionClosure(const NodeExecutionClosure& from); + + inline NodeExecutionClosure& operator=(const NodeExecutionClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionClosure(NodeExecutionClosure&& from) noexcept + : NodeExecutionClosure() { + *this = ::std::move(from); + } + + inline NodeExecutionClosure& operator=(NodeExecutionClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionClosure& default_instance(); + + enum OutputResultCase { + kOutputUri = 1, + kError = 2, + OUTPUT_RESULT_NOT_SET = 0, + }; + + enum TargetMetadataCase { + kWorkflowNodeMetadata = 8, + TARGET_METADATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionClosure* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(NodeExecutionClosure* other); + friend void swap(NodeExecutionClosure& a, NodeExecutionClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionClosure& from); + void MergeFrom(const NodeExecutionClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Timestamp started_at = 4; + bool has_started_at() const; + void clear_started_at(); + static const int kStartedAtFieldNumber = 4; + const ::google::protobuf::Timestamp& started_at() const; + ::google::protobuf::Timestamp* release_started_at(); + ::google::protobuf::Timestamp* mutable_started_at(); + void set_allocated_started_at(::google::protobuf::Timestamp* started_at); + + // .google.protobuf.Duration duration = 5; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 5; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // .google.protobuf.Timestamp created_at = 6; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 6; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 7; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .flyteidl.core.NodeExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::NodeExecution_Phase phase() const; + void set_phase(::flyteidl::core::NodeExecution_Phase value); + + // string output_uri = 1; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 1; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 2; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 2; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + bool has_workflow_node_metadata() const; + void clear_workflow_node_metadata(); + static const int kWorkflowNodeMetadataFieldNumber = 8; + const ::flyteidl::admin::WorkflowNodeMetadata& workflow_node_metadata() const; + ::flyteidl::admin::WorkflowNodeMetadata* release_workflow_node_metadata(); + ::flyteidl::admin::WorkflowNodeMetadata* mutable_workflow_node_metadata(); + void set_allocated_workflow_node_metadata(::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata); + + OutputResultCase output_result_case() const; + TargetMetadataCase target_metadata_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + private: + void set_has_output_uri(); + void set_has_error(); + void set_has_workflow_node_metadata(); + + inline bool has_output_result() const; + void clear_output_result(); + inline void clear_has_output_result(); + + inline bool has_target_metadata() const; + void clear_target_metadata(); + inline void clear_has_target_metadata(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Timestamp* started_at_; + ::google::protobuf::Duration* duration_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + } output_result_; + union TargetMetadataUnion { + TargetMetadataUnion() {} + ::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata_; + } target_metadata_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[2]; + + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionClosureImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowNodeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowNodeMetadata) */ { + public: + WorkflowNodeMetadata(); + virtual ~WorkflowNodeMetadata(); + + WorkflowNodeMetadata(const WorkflowNodeMetadata& from); + + inline WorkflowNodeMetadata& operator=(const WorkflowNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowNodeMetadata(WorkflowNodeMetadata&& from) noexcept + : WorkflowNodeMetadata() { + *this = ::std::move(from); + } + + inline WorkflowNodeMetadata& operator=(WorkflowNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_WorkflowNodeMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(WorkflowNodeMetadata* other); + friend void swap(WorkflowNodeMetadata& a, WorkflowNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowNodeMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowNodeMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowNodeMetadata& from); + void MergeFrom(const WorkflowNodeMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + bool has_executionid() const; + void clear_executionid(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& executionid() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_executionid(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_executionid(); + void set_allocated_executionid(::flyteidl::core::WorkflowExecutionIdentifier* executionid); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* executionid_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsWorkflowNodeMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionGetDataRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetDataRequest) */ { + public: + NodeExecutionGetDataRequest(); + virtual ~NodeExecutionGetDataRequest(); + + NodeExecutionGetDataRequest(const NodeExecutionGetDataRequest& from); + + inline NodeExecutionGetDataRequest& operator=(const NodeExecutionGetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionGetDataRequest(NodeExecutionGetDataRequest&& from) noexcept + : NodeExecutionGetDataRequest() { + *this = ::std::move(from); + } + + inline NodeExecutionGetDataRequest& operator=(NodeExecutionGetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionGetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionGetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionGetDataRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(NodeExecutionGetDataRequest* other); + friend void swap(NodeExecutionGetDataRequest& a, NodeExecutionGetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionGetDataRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionGetDataRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionGetDataRequest& from); + void MergeFrom(const NodeExecutionGetDataRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionGetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetDataRequestImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionGetDataResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetDataResponse) */ { + public: + NodeExecutionGetDataResponse(); + virtual ~NodeExecutionGetDataResponse(); + + NodeExecutionGetDataResponse(const NodeExecutionGetDataResponse& from); + + inline NodeExecutionGetDataResponse& operator=(const NodeExecutionGetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionGetDataResponse(NodeExecutionGetDataResponse&& from) noexcept + : NodeExecutionGetDataResponse() { + *this = ::std::move(from); + } + + inline NodeExecutionGetDataResponse& operator=(NodeExecutionGetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionGetDataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionGetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionGetDataResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; + + void Swap(NodeExecutionGetDataResponse* other); + friend void swap(NodeExecutionGetDataResponse& a, NodeExecutionGetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionGetDataResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionGetDataResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionGetDataResponse& from); + void MergeFrom(const NodeExecutionGetDataResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionGetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.UrlBlob inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::admin::UrlBlob& inputs() const; + ::flyteidl::admin::UrlBlob* release_inputs(); + ::flyteidl::admin::UrlBlob* mutable_inputs(); + void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); + + // .flyteidl.admin.UrlBlob outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::admin::UrlBlob& outputs() const; + ::flyteidl::admin::UrlBlob* release_outputs(); + ::flyteidl::admin::UrlBlob* mutable_outputs(); + void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::UrlBlob* inputs_; + ::flyteidl::admin::UrlBlob* outputs_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::InitDefaultsNodeExecutionGetDataResponseImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// NodeExecutionGetRequest + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecutionGetRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionGetRequest::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetRequest.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetRequest.id) + return id_; +} +inline void NodeExecutionGetRequest::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetRequest.id) +} + +// ------------------------------------------------------------------- + +// NodeExecutionListRequest + +// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; +inline bool NodeExecutionListRequest::has_workflow_execution_id() const { + return this != internal_default_instance() && workflow_execution_id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& NodeExecutionListRequest::workflow_execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionListRequest::release_workflow_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_id_; + workflow_execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionListRequest::mutable_workflow_execution_id() { + + if (workflow_execution_id_ == NULL) { + workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) + return workflow_execution_id_; +} +inline void NodeExecutionListRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_id_); + } + if (workflow_execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_execution_id, submessage_arena); + } + + } else { + + } + workflow_execution_id_ = workflow_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) +} + +// uint32 limit = 2; +inline void NodeExecutionListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NodeExecutionListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.limit) + return limit_; +} +inline void NodeExecutionListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.limit) +} + +// string token = 3; +inline void NodeExecutionListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.token) + return token_.GetNoArena(); +} +inline void NodeExecutionListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.token) +} +#if LANG_CXX11 +inline void NodeExecutionListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.token) +} +#endif +inline void NodeExecutionListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.token) +} +inline void NodeExecutionListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.token) +} +inline ::std::string* NodeExecutionListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionListRequest::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.token) +} + +// string filters = 4; +inline void NodeExecutionListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.filters) + return filters_.GetNoArena(); +} +inline void NodeExecutionListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.filters) +} +#if LANG_CXX11 +inline void NodeExecutionListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.filters) +} +#endif +inline void NodeExecutionListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != NULL); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.filters) +} +inline void NodeExecutionListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.filters) +} +inline ::std::string* NodeExecutionListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionListRequest::set_allocated_filters(::std::string* filters) { + if (filters != NULL) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool NodeExecutionListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != NULL; +} +inline const ::flyteidl::admin::Sort& NodeExecutionListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.sort_by) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NodeExecutionListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = NULL; + return temp; +} +inline ::flyteidl::admin::Sort* NodeExecutionListRequest::mutable_sort_by() { + + if (sort_by_ == NULL) { + sort_by_ = new ::flyteidl::admin::Sort; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.sort_by) + return sort_by_; +} +inline void NodeExecutionListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// NodeExecutionForTaskListRequest + +// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; +inline bool NodeExecutionForTaskListRequest::has_task_execution_id() const { + return this != internal_default_instance() && task_execution_id_ != NULL; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& NodeExecutionForTaskListRequest::task_execution_id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* NodeExecutionForTaskListRequest::release_task_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; + task_execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* NodeExecutionForTaskListRequest::mutable_task_execution_id() { + + if (task_execution_id_ == NULL) { + task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) + return task_execution_id_; +} +inline void NodeExecutionForTaskListRequest::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); + } + if (task_execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.NodeExecutionForTaskListRequest.task_execution_id) +} + +// uint32 limit = 2; +inline void NodeExecutionForTaskListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 NodeExecutionForTaskListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.limit) + return limit_; +} +inline void NodeExecutionForTaskListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.limit) +} + +// string token = 3; +inline void NodeExecutionForTaskListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionForTaskListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.token) + return token_.GetNoArena(); +} +inline void NodeExecutionForTaskListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +#if LANG_CXX11 +inline void NodeExecutionForTaskListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +#endif +inline void NodeExecutionForTaskListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +inline void NodeExecutionForTaskListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} +inline ::std::string* NodeExecutionForTaskListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionForTaskListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionForTaskListRequest::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.token) +} + +// string filters = 4; +inline void NodeExecutionForTaskListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionForTaskListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.filters) + return filters_.GetNoArena(); +} +inline void NodeExecutionForTaskListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +#if LANG_CXX11 +inline void NodeExecutionForTaskListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +#endif +inline void NodeExecutionForTaskListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != NULL); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +inline void NodeExecutionForTaskListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} +inline ::std::string* NodeExecutionForTaskListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionForTaskListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionForTaskListRequest::set_allocated_filters(::std::string* filters) { + if (filters != NULL) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool NodeExecutionForTaskListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != NULL; +} +inline const ::flyteidl::admin::Sort& NodeExecutionForTaskListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* NodeExecutionForTaskListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = NULL; + return temp; +} +inline ::flyteidl::admin::Sort* NodeExecutionForTaskListRequest::mutable_sort_by() { + + if (sort_by_ == NULL) { + sort_by_ = new ::flyteidl::admin::Sort; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) + return sort_by_; +} +inline void NodeExecutionForTaskListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// NodeExecution + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecution::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecution::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecution::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecution::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.id) + return id_; +} +inline void NodeExecution::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.id) +} + +// string input_uri = 2; +inline void NodeExecution::clear_input_uri() { + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecution::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.input_uri) + return input_uri_.GetNoArena(); +} +inline void NodeExecution::set_input_uri(const ::std::string& value) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecution.input_uri) +} +#if LANG_CXX11 +inline void NodeExecution::set_input_uri(::std::string&& value) { + + input_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecution.input_uri) +} +#endif +inline void NodeExecution::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecution.input_uri) +} +inline void NodeExecution::set_input_uri(const char* value, size_t size) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecution.input_uri) +} +inline ::std::string* NodeExecution::mutable_input_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.input_uri) + return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecution::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.input_uri) + + return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecution::set_allocated_input_uri(::std::string* input_uri) { + if (input_uri != NULL) { + + } else { + + } + input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.input_uri) +} + +// .flyteidl.admin.NodeExecutionClosure closure = 3; +inline bool NodeExecution::has_closure() const { + return this != internal_default_instance() && closure_ != NULL; +} +inline void NodeExecution::clear_closure() { + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; +} +inline const ::flyteidl::admin::NodeExecutionClosure& NodeExecution::closure() const { + const ::flyteidl::admin::NodeExecutionClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.closure) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_NodeExecutionClosure_default_instance_); +} +inline ::flyteidl::admin::NodeExecutionClosure* NodeExecution::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.closure) + + ::flyteidl::admin::NodeExecutionClosure* temp = closure_; + closure_ = NULL; + return temp; +} +inline ::flyteidl::admin::NodeExecutionClosure* NodeExecution::mutable_closure() { + + if (closure_ == NULL) { + closure_ = new ::flyteidl::admin::NodeExecutionClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.closure) + return closure_; +} +inline void NodeExecution::set_allocated_closure(::flyteidl::admin::NodeExecutionClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.closure) +} + +// ------------------------------------------------------------------- + +// NodeExecutionList + +// repeated .flyteidl.admin.NodeExecution node_executions = 1; +inline int NodeExecutionList::node_executions_size() const { + return node_executions_.size(); +} +inline void NodeExecutionList::clear_node_executions() { + node_executions_.Clear(); +} +inline const ::flyteidl::admin::NodeExecution& NodeExecutionList::node_executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_.Get(index); +} +inline ::flyteidl::admin::NodeExecution* NodeExecutionList::mutable_node_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_.Mutable(index); +} +inline ::flyteidl::admin::NodeExecution* NodeExecutionList::add_node_executions() { + // @@protoc_insertion_point(field_add:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >* +NodeExecutionList::mutable_node_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NodeExecutionList.node_executions) + return &node_executions_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >& +NodeExecutionList::node_executions() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.NodeExecutionList.node_executions) + return node_executions_; +} + +// string token = 2; +inline void NodeExecutionList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionList.token) + return token_.GetNoArena(); +} +inline void NodeExecutionList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionList.token) +} +#if LANG_CXX11 +inline void NodeExecutionList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionList.token) +} +#endif +inline void NodeExecutionList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionList.token) +} +inline void NodeExecutionList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionList.token) +} +inline ::std::string* NodeExecutionList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionList.token) +} + +// ------------------------------------------------------------------- + +// NodeExecutionClosure + +// string output_uri = 1; +inline bool NodeExecutionClosure::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void NodeExecutionClosure::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void NodeExecutionClosure::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& NodeExecutionClosure::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void NodeExecutionClosure::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) +} +#if LANG_CXX11 +inline void NodeExecutionClosure::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.output_uri) +} +#endif +inline void NodeExecutionClosure::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.output_uri) +} +inline void NodeExecutionClosure::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.output_uri) +} +inline ::std::string* NodeExecutionClosure::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionClosure::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void NodeExecutionClosure::set_allocated_output_uri(::std::string* output_uri) { + if (!has_output_uri()) { + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_output_result(); + if (output_uri != NULL) { + set_has_output_uri(); + output_result_.output_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.output_uri) +} + +// .flyteidl.core.ExecutionError error = 2; +inline bool NodeExecutionClosure::has_error() const { + return output_result_case() == kError; +} +inline void NodeExecutionClosure::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* NodeExecutionClosure::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ExecutionError& NodeExecutionClosure::error() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* NodeExecutionClosure::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = new ::flyteidl::core::ExecutionError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.error) + return output_result_.error_; +} + +// .flyteidl.core.NodeExecution.Phase phase = 3; +inline void NodeExecutionClosure::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::NodeExecution_Phase NodeExecutionClosure::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.phase) + return static_cast< ::flyteidl::core::NodeExecution_Phase >(phase_); +} +inline void NodeExecutionClosure::set_phase(::flyteidl::core::NodeExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.phase) +} + +// .google.protobuf.Timestamp started_at = 4; +inline bool NodeExecutionClosure::has_started_at() const { + return this != internal_default_instance() && started_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& NodeExecutionClosure::started_at() const { + const ::google::protobuf::Timestamp* p = started_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.started_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_started_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.started_at) + + ::google::protobuf::Timestamp* temp = started_at_; + started_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_started_at() { + + if (started_at_ == NULL) { + started_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.started_at) + return started_at_; +} +inline void NodeExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); + } + if (started_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(started_at)->GetArena(); + if (message_arena != submessage_arena) { + started_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, started_at, submessage_arena); + } + + } else { + + } + started_at_ = started_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.started_at) +} + +// .google.protobuf.Duration duration = 5; +inline bool NodeExecutionClosure::has_duration() const { + return this != internal_default_instance() && duration_ != NULL; +} +inline const ::google::protobuf::Duration& NodeExecutionClosure::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.duration) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* NodeExecutionClosure::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* NodeExecutionClosure::mutable_duration() { + + if (duration_ == NULL) { + duration_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.duration) + return duration_; +} +inline void NodeExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.duration) +} + +// .google.protobuf.Timestamp created_at = 6; +inline bool NodeExecutionClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& NodeExecutionClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.created_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_created_at() { + + if (created_at_ == NULL) { + created_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.created_at) + return created_at_; +} +inline void NodeExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 7; +inline bool NodeExecutionClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& NodeExecutionClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.updated_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_updated_at() { + + if (updated_at_ == NULL) { + updated_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.updated_at) + return updated_at_; +} +inline void NodeExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.updated_at) +} + +// .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; +inline bool NodeExecutionClosure::has_workflow_node_metadata() const { + return target_metadata_case() == kWorkflowNodeMetadata; +} +inline void NodeExecutionClosure::set_has_workflow_node_metadata() { + _oneof_case_[1] = kWorkflowNodeMetadata; +} +inline void NodeExecutionClosure::clear_workflow_node_metadata() { + if (has_workflow_node_metadata()) { + delete target_metadata_.workflow_node_metadata_; + clear_has_target_metadata(); + } +} +inline ::flyteidl::admin::WorkflowNodeMetadata* NodeExecutionClosure::release_workflow_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) + if (has_workflow_node_metadata()) { + clear_has_target_metadata(); + ::flyteidl::admin::WorkflowNodeMetadata* temp = target_metadata_.workflow_node_metadata_; + target_metadata_.workflow_node_metadata_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::WorkflowNodeMetadata& NodeExecutionClosure::workflow_node_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) + return has_workflow_node_metadata() + ? *target_metadata_.workflow_node_metadata_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowNodeMetadata*>(&::flyteidl::admin::_WorkflowNodeMetadata_default_instance_); +} +inline ::flyteidl::admin::WorkflowNodeMetadata* NodeExecutionClosure::mutable_workflow_node_metadata() { + if (!has_workflow_node_metadata()) { + clear_target_metadata(); + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = new ::flyteidl::admin::WorkflowNodeMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) + return target_metadata_.workflow_node_metadata_; +} + +inline bool NodeExecutionClosure::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void NodeExecutionClosure::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline bool NodeExecutionClosure::has_target_metadata() const { + return target_metadata_case() != TARGET_METADATA_NOT_SET; +} +inline void NodeExecutionClosure::clear_has_target_metadata() { + _oneof_case_[1] = TARGET_METADATA_NOT_SET; +} +inline NodeExecutionClosure::OutputResultCase NodeExecutionClosure::output_result_case() const { + return NodeExecutionClosure::OutputResultCase(_oneof_case_[0]); +} +inline NodeExecutionClosure::TargetMetadataCase NodeExecutionClosure::target_metadata_case() const { + return NodeExecutionClosure::TargetMetadataCase(_oneof_case_[1]); +} +// ------------------------------------------------------------------- + +// WorkflowNodeMetadata + +// .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; +inline bool WorkflowNodeMetadata::has_executionid() const { + return this != internal_default_instance() && executionid_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowNodeMetadata::executionid() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = executionid_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowNodeMetadata.executionId) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::release_executionid() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowNodeMetadata.executionId) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = executionid_; + executionid_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::mutable_executionid() { + + if (executionid_ == NULL) { + executionid_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowNodeMetadata.executionId) + return executionid_; +} +inline void WorkflowNodeMetadata::set_allocated_executionid(::flyteidl::core::WorkflowExecutionIdentifier* executionid) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(executionid_); + } + if (executionid) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + executionid = ::google::protobuf::internal::GetOwnedMessage( + message_arena, executionid, submessage_arena); + } + + } else { + + } + executionid_ = executionid; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowNodeMetadata.executionId) +} + +// ------------------------------------------------------------------- + +// NodeExecutionGetDataRequest + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecutionGetDataRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionGetDataRequest::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetDataRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataRequest.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetDataRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataRequest.id) + return id_; +} +inline void NodeExecutionGetDataRequest::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataRequest.id) +} + +// ------------------------------------------------------------------- + +// NodeExecutionGetDataResponse + +// .flyteidl.admin.UrlBlob inputs = 1; +inline bool NodeExecutionGetDataResponse::has_inputs() const { + return this != internal_default_instance() && inputs_ != NULL; +} +inline const ::flyteidl::admin::UrlBlob& NodeExecutionGetDataResponse::inputs() const { + const ::flyteidl::admin::UrlBlob* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.inputs) + + ::flyteidl::admin::UrlBlob* temp = inputs_; + inputs_ = NULL; + return temp; +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::mutable_inputs() { + + if (inputs_ == NULL) { + inputs_ = new ::flyteidl::admin::UrlBlob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.inputs) + return inputs_; +} +inline void NodeExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.NodeExecutionGetDataResponse.inputs) +} + +// .flyteidl.admin.UrlBlob outputs = 2; +inline bool NodeExecutionGetDataResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != NULL; +} +inline const ::flyteidl::admin::UrlBlob& NodeExecutionGetDataResponse::outputs() const { + const ::flyteidl::admin::UrlBlob* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.outputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.outputs) + + ::flyteidl::admin::UrlBlob* temp = outputs_; + outputs_ = NULL; + return temp; +} +inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::mutable_outputs() { + + if (outputs_ == NULL) { + outputs_ = new ::flyteidl::admin::UrlBlob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.outputs) + return outputs_; +} +inline void NodeExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.outputs) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc new file mode 100644 index 0000000000..b5fbf465ec --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/notification.proto + +#include "flyteidl/admin/notification.pb.h" +#include "flyteidl/admin/notification.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h new file mode 100644 index 0000000000..03c90b99e7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/notification.proto +#ifndef GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED + +#include "flyteidl/admin/notification.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc new file mode 100644 index 0000000000..93329bd00c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc @@ -0,0 +1,547 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +#include "flyteidl/admin/notification.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class EmailMessageDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _EmailMessage_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fnotification_2eproto { +void InitDefaultsEmailMessageImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_EmailMessage_default_instance_; + new (ptr) ::flyteidl::admin::EmailMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::EmailMessage::InitAsDefaultInstance(); +} + +void InitDefaultsEmailMessage() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsEmailMessageImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailMessage, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailMessage, recipients_email_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailMessage, sender_email_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailMessage, subject_line_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::EmailMessage, body_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::EmailMessage)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_EmailMessage_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/notification.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n!flyteidl/admin/notification.proto\022\016fly" + "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB3Z1githu" + "b.com/lyft/flyteidl/gen/pb-go/flyteidl/a" + "dminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 212); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/notification.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fnotification_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void EmailMessage::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int EmailMessage::kRecipientsEmailFieldNumber; +const int EmailMessage::kSenderEmailFieldNumber; +const int EmailMessage::kSubjectLineFieldNumber; +const int EmailMessage::kBodyFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +EmailMessage::EmailMessage() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::InitDefaultsEmailMessage(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.EmailMessage) +} +EmailMessage::EmailMessage(const EmailMessage& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + recipients_email_(from.recipients_email_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sender_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.sender_email().size() > 0) { + sender_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_email_); + } + subject_line_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.subject_line().size() > 0) { + subject_line_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_line_); + } + body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.body().size() > 0) { + body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EmailMessage) +} + +void EmailMessage::SharedCtor() { + sender_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + subject_line_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +EmailMessage::~EmailMessage() { + // @@protoc_insertion_point(destructor:flyteidl.admin.EmailMessage) + SharedDtor(); +} + +void EmailMessage::SharedDtor() { + sender_email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + subject_line_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void EmailMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EmailMessage::descriptor() { + ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const EmailMessage& EmailMessage::default_instance() { + ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::InitDefaultsEmailMessage(); + return *internal_default_instance(); +} + +EmailMessage* EmailMessage::New(::google::protobuf::Arena* arena) const { + EmailMessage* n = new EmailMessage; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void EmailMessage::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EmailMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + recipients_email_.Clear(); + sender_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + subject_line_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool EmailMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.EmailMessage) + 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 recipients_email = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_recipients_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(this->recipients_email_size() - 1).data(), + static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.recipients_email")); + } else { + goto handle_unusual; + } + break; + } + + // string sender_email = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_sender_email())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->sender_email().data(), static_cast(this->sender_email().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.sender_email")); + } else { + goto handle_unusual; + } + break; + } + + // string subject_line = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_subject_line())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject_line().data(), static_cast(this->subject_line().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.subject_line")); + } else { + goto handle_unusual; + } + break; + } + + // string body = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_body())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->body().data(), static_cast(this->body().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.EmailMessage.body")); + } 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.EmailMessage) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.EmailMessage) + return false; +#undef DO_ +} + +void EmailMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.EmailMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.recipients_email"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->recipients_email(i), output); + } + + // string sender_email = 2; + if (this->sender_email().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->sender_email().data(), static_cast(this->sender_email().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.sender_email"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->sender_email(), output); + } + + // string subject_line = 3; + if (this->subject_line().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject_line().data(), static_cast(this->subject_line().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.subject_line"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->subject_line(), output); + } + + // string body = 4; + if (this->body().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->body().data(), static_cast(this->body().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.body"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->body(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.EmailMessage) +} + +::google::protobuf::uint8* EmailMessage::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EmailMessage) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string recipients_email = 1; + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.recipients_email"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->recipients_email(i), target); + } + + // string sender_email = 2; + if (this->sender_email().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->sender_email().data(), static_cast(this->sender_email().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.sender_email"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->sender_email(), target); + } + + // string subject_line = 3; + if (this->subject_line().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->subject_line().data(), static_cast(this->subject_line().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.subject_line"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->subject_line(), target); + } + + // string body = 4; + if (this->body().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->body().data(), static_cast(this->body().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.EmailMessage.body"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->body(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.EmailMessage) + return target; +} + +size_t EmailMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EmailMessage) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string recipients_email = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); + for (int i = 0, n = this->recipients_email_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->recipients_email(i)); + } + + // string sender_email = 2; + if (this->sender_email().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->sender_email()); + } + + // string subject_line = 3; + if (this->subject_line().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->subject_line()); + } + + // string body = 4; + if (this->body().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->body()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EmailMessage::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EmailMessage) + GOOGLE_DCHECK_NE(&from, this); + const EmailMessage* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EmailMessage) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EmailMessage) + MergeFrom(*source); + } +} + +void EmailMessage::MergeFrom(const EmailMessage& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EmailMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + recipients_email_.MergeFrom(from.recipients_email_); + if (from.sender_email().size() > 0) { + + sender_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_email_); + } + if (from.subject_line().size() > 0) { + + subject_line_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_line_); + } + if (from.body().size() > 0) { + + body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); + } +} + +void EmailMessage::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EmailMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EmailMessage::CopyFrom(const EmailMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EmailMessage) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EmailMessage::IsInitialized() const { + return true; +} + +void EmailMessage::Swap(EmailMessage* other) { + if (other == this) return; + InternalSwap(other); +} +void EmailMessage::InternalSwap(EmailMessage* other) { + using std::swap; + recipients_email_.InternalSwap(&other->recipients_email_); + sender_email_.Swap(&other->sender_email_); + subject_line_.Swap(&other->subject_line_); + body_.Swap(&other->body_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata EmailMessage::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fnotification_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h new file mode 100644 index 0000000000..a304bb4efa --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h @@ -0,0 +1,471 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fnotification_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsEmailMessageImpl(); +void InitDefaultsEmailMessage(); +inline void InitDefaults() { + InitDefaultsEmailMessage(); +} +} // namespace protobuf_flyteidl_2fadmin_2fnotification_2eproto +namespace flyteidl { +namespace admin { +class EmailMessage; +class EmailMessageDefaultTypeInternal; +extern EmailMessageDefaultTypeInternal _EmailMessage_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class EmailMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EmailMessage) */ { + public: + EmailMessage(); + virtual ~EmailMessage(); + + EmailMessage(const EmailMessage& from); + + inline EmailMessage& operator=(const EmailMessage& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + EmailMessage(EmailMessage&& from) noexcept + : EmailMessage() { + *this = ::std::move(from); + } + + inline EmailMessage& operator=(EmailMessage&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const EmailMessage& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const EmailMessage* internal_default_instance() { + return reinterpret_cast( + &_EmailMessage_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(EmailMessage* other); + friend void swap(EmailMessage& a, EmailMessage& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline EmailMessage* New() const PROTOBUF_FINAL { return New(NULL); } + + EmailMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const EmailMessage& from); + void MergeFrom(const EmailMessage& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(EmailMessage* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string recipients_email = 1; + int recipients_email_size() const; + void clear_recipients_email(); + static const int kRecipientsEmailFieldNumber = 1; + const ::std::string& recipients_email(int index) const; + ::std::string* mutable_recipients_email(int index); + void set_recipients_email(int index, const ::std::string& value); + #if LANG_CXX11 + void set_recipients_email(int index, ::std::string&& value); + #endif + void set_recipients_email(int index, const char* value); + void set_recipients_email(int index, const char* value, size_t size); + ::std::string* add_recipients_email(); + void add_recipients_email(const ::std::string& value); + #if LANG_CXX11 + void add_recipients_email(::std::string&& value); + #endif + void add_recipients_email(const char* value); + void add_recipients_email(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& recipients_email() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_recipients_email(); + + // string sender_email = 2; + void clear_sender_email(); + static const int kSenderEmailFieldNumber = 2; + const ::std::string& sender_email() const; + void set_sender_email(const ::std::string& value); + #if LANG_CXX11 + void set_sender_email(::std::string&& value); + #endif + void set_sender_email(const char* value); + void set_sender_email(const char* value, size_t size); + ::std::string* mutable_sender_email(); + ::std::string* release_sender_email(); + void set_allocated_sender_email(::std::string* sender_email); + + // string subject_line = 3; + void clear_subject_line(); + static const int kSubjectLineFieldNumber = 3; + const ::std::string& subject_line() const; + void set_subject_line(const ::std::string& value); + #if LANG_CXX11 + void set_subject_line(::std::string&& value); + #endif + void set_subject_line(const char* value); + void set_subject_line(const char* value, size_t size); + ::std::string* mutable_subject_line(); + ::std::string* release_subject_line(); + void set_allocated_subject_line(::std::string* subject_line); + + // string body = 4; + void clear_body(); + static const int kBodyFieldNumber = 4; + const ::std::string& body() const; + void set_body(const ::std::string& value); + #if LANG_CXX11 + void set_body(::std::string&& value); + #endif + void set_body(const char* value); + void set_body(const char* value, size_t size); + ::std::string* mutable_body(); + ::std::string* release_body(); + void set_allocated_body(::std::string* body); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> recipients_email_; + ::google::protobuf::internal::ArenaStringPtr sender_email_; + ::google::protobuf::internal::ArenaStringPtr subject_line_; + ::google::protobuf::internal::ArenaStringPtr body_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fnotification_2eproto::InitDefaultsEmailMessageImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// EmailMessage + +// repeated string recipients_email = 1; +inline int EmailMessage::recipients_email_size() const { + return recipients_email_.size(); +} +inline void EmailMessage::clear_recipients_email() { + recipients_email_.Clear(); +} +inline const ::std::string& EmailMessage::recipients_email(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_.Get(index); +} +inline ::std::string* EmailMessage::mutable_recipients_email(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_.Mutable(index); +} +inline void EmailMessage::set_recipients_email(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.recipients_email) + recipients_email_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void EmailMessage::set_recipients_email(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.recipients_email) + recipients_email_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void EmailMessage::set_recipients_email(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.recipients_email) +} +inline void EmailMessage::set_recipients_email(int index, const char* value, size_t size) { + recipients_email_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.recipients_email) +} +inline ::std::string* EmailMessage::add_recipients_email() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_.Add(); +} +inline void EmailMessage::add_recipients_email(const ::std::string& value) { + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailMessage.recipients_email) +} +#if LANG_CXX11 +inline void EmailMessage::add_recipients_email(::std::string&& value) { + recipients_email_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.admin.EmailMessage.recipients_email) +} +#endif +inline void EmailMessage::add_recipients_email(const char* value) { + GOOGLE_DCHECK(value != NULL); + recipients_email_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.admin.EmailMessage.recipients_email) +} +inline void EmailMessage::add_recipients_email(const char* value, size_t size) { + recipients_email_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.EmailMessage.recipients_email) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +EmailMessage::recipients_email() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.EmailMessage.recipients_email) + return recipients_email_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +EmailMessage::mutable_recipients_email() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.EmailMessage.recipients_email) + return &recipients_email_; +} + +// string sender_email = 2; +inline void EmailMessage::clear_sender_email() { + sender_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EmailMessage::sender_email() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.sender_email) + return sender_email_.GetNoArena(); +} +inline void EmailMessage::set_sender_email(const ::std::string& value) { + + sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.sender_email) +} +#if LANG_CXX11 +inline void EmailMessage::set_sender_email(::std::string&& value) { + + sender_email_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.sender_email) +} +#endif +inline void EmailMessage::set_sender_email(const char* value) { + GOOGLE_DCHECK(value != NULL); + + sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.sender_email) +} +inline void EmailMessage::set_sender_email(const char* value, size_t size) { + + sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.sender_email) +} +inline ::std::string* EmailMessage::mutable_sender_email() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.sender_email) + return sender_email_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EmailMessage::release_sender_email() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.sender_email) + + return sender_email_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EmailMessage::set_allocated_sender_email(::std::string* sender_email) { + if (sender_email != NULL) { + + } else { + + } + sender_email_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_email); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.sender_email) +} + +// string subject_line = 3; +inline void EmailMessage::clear_subject_line() { + subject_line_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EmailMessage::subject_line() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.subject_line) + return subject_line_.GetNoArena(); +} +inline void EmailMessage::set_subject_line(const ::std::string& value) { + + subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.subject_line) +} +#if LANG_CXX11 +inline void EmailMessage::set_subject_line(::std::string&& value) { + + subject_line_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.subject_line) +} +#endif +inline void EmailMessage::set_subject_line(const char* value) { + GOOGLE_DCHECK(value != NULL); + + subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.subject_line) +} +inline void EmailMessage::set_subject_line(const char* value, size_t size) { + + subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.subject_line) +} +inline ::std::string* EmailMessage::mutable_subject_line() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.subject_line) + return subject_line_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EmailMessage::release_subject_line() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.subject_line) + + return subject_line_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EmailMessage::set_allocated_subject_line(::std::string* subject_line) { + if (subject_line != NULL) { + + } else { + + } + subject_line_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), subject_line); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.subject_line) +} + +// string body = 4; +inline void EmailMessage::clear_body() { + body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& EmailMessage::body() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.body) + return body_.GetNoArena(); +} +inline void EmailMessage::set_body(const ::std::string& value) { + + body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.body) +} +#if LANG_CXX11 +inline void EmailMessage::set_body(::std::string&& value) { + + body_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.body) +} +#endif +inline void EmailMessage::set_body(const char* value) { + GOOGLE_DCHECK(value != NULL); + + body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.body) +} +inline void EmailMessage::set_body(const char* value, size_t size) { + + body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.body) +} +inline ::std::string* EmailMessage::mutable_body() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.body) + return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* EmailMessage::release_body() { + // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.body) + + return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void EmailMessage::set_allocated_body(::std::string* body) { + if (body != NULL) { + + } else { + + } + body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.body) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc new file mode 100644 index 0000000000..3177a6cdbe --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project.proto + +#include "flyteidl/admin/project.pb.h" +#include "flyteidl/admin/project.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h new file mode 100644 index 0000000000..e69dfd7fe0 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/project.proto +#ifndef GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED + +#include "flyteidl/admin/project.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc new file mode 100644 index 0000000000..6091e954e1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc @@ -0,0 +1,1848 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +#include "flyteidl/admin/project.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class DomainDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Domain_default_instance_; +class ProjectDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Project_default_instance_; +class ProjectsDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Projects_default_instance_; +class ProjectListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ProjectListRequest_default_instance_; +class ProjectRegisterRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ProjectRegisterRequest_default_instance_; +class ProjectRegisterResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ProjectRegisterResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fproject_2eproto { +void InitDefaultsDomainImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_Domain_default_instance_; + new (ptr) ::flyteidl::admin::Domain(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Domain::InitAsDefaultInstance(); +} + +void InitDefaultsDomain() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDomainImpl); +} + +void InitDefaultsProjectImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsDomain(); + { + void* ptr = &::flyteidl::admin::_Project_default_instance_; + new (ptr) ::flyteidl::admin::Project(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Project::InitAsDefaultInstance(); +} + +void InitDefaultsProject() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProjectImpl); +} + +void InitDefaultsProjectsImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProject(); + { + void* ptr = &::flyteidl::admin::_Projects_default_instance_; + new (ptr) ::flyteidl::admin::Projects(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Projects::InitAsDefaultInstance(); +} + +void InitDefaultsProjects() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProjectsImpl); +} + +void InitDefaultsProjectListRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_ProjectListRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectListRequest::InitAsDefaultInstance(); +} + +void InitDefaultsProjectListRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProjectListRequestImpl); +} + +void InitDefaultsProjectRegisterRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProject(); + { + void* ptr = &::flyteidl::admin::_ProjectRegisterRequest_default_instance_; + new (ptr) ::flyteidl::admin::ProjectRegisterRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectRegisterRequest::InitAsDefaultInstance(); +} + +void InitDefaultsProjectRegisterRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProjectRegisterRequestImpl); +} + +void InitDefaultsProjectRegisterResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_ProjectRegisterResponse_default_instance_; + new (ptr) ::flyteidl::admin::ProjectRegisterResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::ProjectRegisterResponse::InitAsDefaultInstance(); +} + +void InitDefaultsProjectRegisterResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsProjectRegisterResponseImpl); +} + +::google::protobuf::Metadata file_level_metadata[6]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Domain, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Domain, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Domain, name_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Project, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Project, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Project, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Project, domains_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Projects, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Projects, projects_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterRequest, project_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::Domain)}, + { 7, -1, sizeof(::flyteidl::admin::Project)}, + { 15, -1, sizeof(::flyteidl::admin::Projects)}, + { 21, -1, sizeof(::flyteidl::admin::ProjectListRequest)}, + { 26, -1, sizeof(::flyteidl::admin::ProjectRegisterRequest)}, + { 32, -1, sizeof(::flyteidl::admin::ProjectRegisterResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_Domain_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Project_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Projects_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectRegisterRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_ProjectRegisterResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/project.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\034flyteidl/admin/project.proto\022\016flyteidl" + ".admin\"\"\n\006Domain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001" + "(\t\"L\n\007Project\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022" + "\'\n\007domains\030\003 \003(\0132\026.flyteidl.admin.Domain" + "\"5\n\010Projects\022)\n\010projects\030\001 \003(\0132\027.flyteid" + "l.admin.Project\"\024\n\022ProjectListRequest\"B\n" + "\026ProjectRegisterRequest\022(\n\007project\030\001 \001(\013" + "2\027.flyteidl.admin.Project\"\031\n\027ProjectRegi" + "sterResponseB3Z1github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 393); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/project.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fproject_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void Domain::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Domain::kIdFieldNumber; +const int Domain::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Domain::Domain() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsDomain(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Domain) +} +Domain::Domain(const Domain& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Domain) +} + +void Domain::SharedCtor() { + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +Domain::~Domain() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Domain) + SharedDtor(); +} + +void Domain::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Domain::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Domain::descriptor() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Domain& Domain::default_instance() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsDomain(); + return *internal_default_instance(); +} + +Domain* Domain::New(::google::protobuf::Arena* arena) const { + Domain* n = new Domain; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Domain::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Domain) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool Domain::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Domain) + 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 id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Domain.id")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Domain.name")); + } 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.Domain) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Domain) + return false; +#undef DO_ +} + +void Domain::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Domain) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Domain) +} + +::google::protobuf::uint8* Domain::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Domain) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Domain.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Domain) + return target; +} + +size_t Domain::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Domain) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Domain::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Domain) + GOOGLE_DCHECK_NE(&from, this); + const Domain* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Domain) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Domain) + MergeFrom(*source); + } +} + +void Domain::MergeFrom(const Domain& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Domain) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void Domain::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Domain) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Domain::CopyFrom(const Domain& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Domain) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Domain::IsInitialized() const { + return true; +} + +void Domain::Swap(Domain* other) { + if (other == this) return; + InternalSwap(other); +} +void Domain::InternalSwap(Domain* other) { + using std::swap; + id_.Swap(&other->id_); + name_.Swap(&other->name_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Domain::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Project::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Project::kIdFieldNumber; +const int Project::kNameFieldNumber; +const int Project::kDomainsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Project::Project() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProject(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Project) +} +Project::Project(const Project& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + domains_(from.domains_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Project) +} + +void Project::SharedCtor() { + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +Project::~Project() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Project) + SharedDtor(); +} + +void Project::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Project::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Project::descriptor() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Project& Project::default_instance() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProject(); + return *internal_default_instance(); +} + +Project* Project::New(::google::protobuf::Arena* arena) const { + Project* n = new Project; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Project::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Project) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + domains_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool Project::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Project) + 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 id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Project.id")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Project.name")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.admin.Domain domains = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_domains())); + } 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.Project) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Project) + return false; +#undef DO_ +} + +void Project::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Project) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // repeated .flyteidl.admin.Domain domains = 3; + for (unsigned int i = 0, + n = static_cast(this->domains_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->domains(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Project) +} + +::google::protobuf::uint8* Project::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Project) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Project.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // repeated .flyteidl.admin.Domain domains = 3; + for (unsigned int i = 0, + n = static_cast(this->domains_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->domains(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Project) + return target; +} + +size_t Project::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Project) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Domain domains = 3; + { + unsigned int count = static_cast(this->domains_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->domains(static_cast(i))); + } + } + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Project::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Project) + GOOGLE_DCHECK_NE(&from, this); + const Project* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Project) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Project) + MergeFrom(*source); + } +} + +void Project::MergeFrom(const Project& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Project) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + domains_.MergeFrom(from.domains_); + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void Project::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Project) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Project::CopyFrom(const Project& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Project) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Project::IsInitialized() const { + return true; +} + +void Project::Swap(Project* other) { + if (other == this) return; + InternalSwap(other); +} +void Project::InternalSwap(Project* other) { + using std::swap; + domains_.InternalSwap(&other->domains_); + id_.Swap(&other->id_); + name_.Swap(&other->name_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Project::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Projects::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Projects::kProjectsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Projects::Projects() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjects(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Projects) +} +Projects::Projects(const Projects& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + projects_(from.projects_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Projects) +} + +void Projects::SharedCtor() { + _cached_size_ = 0; +} + +Projects::~Projects() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Projects) + SharedDtor(); +} + +void Projects::SharedDtor() { +} + +void Projects::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Projects::descriptor() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Projects& Projects::default_instance() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjects(); + return *internal_default_instance(); +} + +Projects* Projects::New(::google::protobuf::Arena* arena) const { + Projects* n = new Projects; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Projects::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Projects) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + projects_.Clear(); + _internal_metadata_.Clear(); +} + +bool Projects::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Projects) + 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.admin.Project projects = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_projects())); + } 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.Projects) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Projects) + return false; +#undef DO_ +} + +void Projects::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Projects) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Project projects = 1; + for (unsigned int i = 0, + n = static_cast(this->projects_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->projects(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Projects) +} + +::google::protobuf::uint8* Projects::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Projects) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Project projects = 1; + for (unsigned int i = 0, + n = static_cast(this->projects_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->projects(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Projects) + return target; +} + +size_t Projects::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Projects) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Project projects = 1; + { + unsigned int count = static_cast(this->projects_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->projects(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Projects::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Projects) + GOOGLE_DCHECK_NE(&from, this); + const Projects* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Projects) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Projects) + MergeFrom(*source); + } +} + +void Projects::MergeFrom(const Projects& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Projects) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + projects_.MergeFrom(from.projects_); +} + +void Projects::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Projects) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Projects::CopyFrom(const Projects& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Projects) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Projects::IsInitialized() const { + return true; +} + +void Projects::Swap(Projects* other) { + if (other == this) return; + InternalSwap(other); +} +void Projects::InternalSwap(Projects* other) { + using std::swap; + projects_.InternalSwap(&other->projects_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Projects::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectListRequest::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectListRequest::ProjectListRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectListRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectListRequest) +} +ProjectListRequest::ProjectListRequest(const ProjectListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectListRequest) +} + +void ProjectListRequest::SharedCtor() { + _cached_size_ = 0; +} + +ProjectListRequest::~ProjectListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectListRequest) + SharedDtor(); +} + +void ProjectListRequest::SharedDtor() { +} + +void ProjectListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProjectListRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ProjectListRequest& ProjectListRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectListRequest(); + return *internal_default_instance(); +} + +ProjectListRequest* ProjectListRequest::New(::google::protobuf::Arena* arena) const { + ProjectListRequest* n = new ProjectListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ProjectListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool ProjectListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectListRequest) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectListRequest) + return false; +#undef DO_ +} + +void ProjectListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectListRequest) +} + +::google::protobuf::uint8* ProjectListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectListRequest) + return target; +} + +size_t ProjectListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectListRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProjectListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectListRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectListRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectListRequest) + MergeFrom(*source); + } +} + +void ProjectListRequest::MergeFrom(const ProjectListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectListRequest::CopyFrom(const ProjectListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectListRequest::IsInitialized() const { + return true; +} + +void ProjectListRequest::Swap(ProjectListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectListRequest::InternalSwap(ProjectListRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ProjectListRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectRegisterRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_ProjectRegisterRequest_default_instance_._instance.get_mutable()->project_ = const_cast< ::flyteidl::admin::Project*>( + ::flyteidl::admin::Project::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ProjectRegisterRequest::kProjectFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectRegisterRequest::ProjectRegisterRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectRegisterRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectRegisterRequest) +} +ProjectRegisterRequest::ProjectRegisterRequest(const ProjectRegisterRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_project()) { + project_ = new ::flyteidl::admin::Project(*from.project_); + } else { + project_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectRegisterRequest) +} + +void ProjectRegisterRequest::SharedCtor() { + project_ = NULL; + _cached_size_ = 0; +} + +ProjectRegisterRequest::~ProjectRegisterRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectRegisterRequest) + SharedDtor(); +} + +void ProjectRegisterRequest::SharedDtor() { + if (this != internal_default_instance()) delete project_; +} + +void ProjectRegisterRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProjectRegisterRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ProjectRegisterRequest& ProjectRegisterRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectRegisterRequest(); + return *internal_default_instance(); +} + +ProjectRegisterRequest* ProjectRegisterRequest::New(::google::protobuf::Arena* arena) const { + ProjectRegisterRequest* n = new ProjectRegisterRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ProjectRegisterRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && project_ != NULL) { + delete project_; + } + project_ = NULL; + _internal_metadata_.Clear(); +} + +bool ProjectRegisterRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectRegisterRequest) + 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)) { + // .flyteidl.admin.Project project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_project())); + } 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.ProjectRegisterRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectRegisterRequest) + return false; +#undef DO_ +} + +void ProjectRegisterRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Project project = 1; + if (this->has_project()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->project_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectRegisterRequest) +} + +::google::protobuf::uint8* ProjectRegisterRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.Project project = 1; + if (this->has_project()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->project_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectRegisterRequest) + return target; +} + +size_t ProjectRegisterRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectRegisterRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.admin.Project project = 1; + if (this->has_project()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->project_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProjectRegisterRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectRegisterRequest) + GOOGLE_DCHECK_NE(&from, this); + const ProjectRegisterRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectRegisterRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectRegisterRequest) + MergeFrom(*source); + } +} + +void ProjectRegisterRequest::MergeFrom(const ProjectRegisterRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectRegisterRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_project()) { + mutable_project()->::flyteidl::admin::Project::MergeFrom(from.project()); + } +} + +void ProjectRegisterRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectRegisterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectRegisterRequest::CopyFrom(const ProjectRegisterRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectRegisterRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectRegisterRequest::IsInitialized() const { + return true; +} + +void ProjectRegisterRequest::Swap(ProjectRegisterRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectRegisterRequest::InternalSwap(ProjectRegisterRequest* other) { + using std::swap; + swap(project_, other->project_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ProjectRegisterRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ProjectRegisterResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ProjectRegisterResponse::ProjectRegisterResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectRegisterResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectRegisterResponse) +} +ProjectRegisterResponse::ProjectRegisterResponse(const ProjectRegisterResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectRegisterResponse) +} + +void ProjectRegisterResponse::SharedCtor() { + _cached_size_ = 0; +} + +ProjectRegisterResponse::~ProjectRegisterResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectRegisterResponse) + SharedDtor(); +} + +void ProjectRegisterResponse::SharedDtor() { +} + +void ProjectRegisterResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ProjectRegisterResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ProjectRegisterResponse& ProjectRegisterResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectRegisterResponse(); + return *internal_default_instance(); +} + +ProjectRegisterResponse* ProjectRegisterResponse::New(::google::protobuf::Arena* arena) const { + ProjectRegisterResponse* n = new ProjectRegisterResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ProjectRegisterResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool ProjectRegisterResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.ProjectRegisterResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectRegisterResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectRegisterResponse) + return false; +#undef DO_ +} + +void ProjectRegisterResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectRegisterResponse) +} + +::google::protobuf::uint8* ProjectRegisterResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.ProjectRegisterResponse) + return target; +} + +size_t ProjectRegisterResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectRegisterResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ProjectRegisterResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectRegisterResponse) + GOOGLE_DCHECK_NE(&from, this); + const ProjectRegisterResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectRegisterResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectRegisterResponse) + MergeFrom(*source); + } +} + +void ProjectRegisterResponse::MergeFrom(const ProjectRegisterResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectRegisterResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void ProjectRegisterResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectRegisterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ProjectRegisterResponse::CopyFrom(const ProjectRegisterResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectRegisterResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ProjectRegisterResponse::IsInitialized() const { + return true; +} + +void ProjectRegisterResponse::Swap(ProjectRegisterResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void ProjectRegisterResponse::InternalSwap(ProjectRegisterResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ProjectRegisterResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fproject_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fproject_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h new file mode 100644 index 0000000000..291574b7e5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h @@ -0,0 +1,1113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fproject_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fproject_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fproject_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[6]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsDomainImpl(); +void InitDefaultsDomain(); +void InitDefaultsProjectImpl(); +void InitDefaultsProject(); +void InitDefaultsProjectsImpl(); +void InitDefaultsProjects(); +void InitDefaultsProjectListRequestImpl(); +void InitDefaultsProjectListRequest(); +void InitDefaultsProjectRegisterRequestImpl(); +void InitDefaultsProjectRegisterRequest(); +void InitDefaultsProjectRegisterResponseImpl(); +void InitDefaultsProjectRegisterResponse(); +inline void InitDefaults() { + InitDefaultsDomain(); + InitDefaultsProject(); + InitDefaultsProjects(); + InitDefaultsProjectListRequest(); + InitDefaultsProjectRegisterRequest(); + InitDefaultsProjectRegisterResponse(); +} +} // namespace protobuf_flyteidl_2fadmin_2fproject_2eproto +namespace flyteidl { +namespace admin { +class Domain; +class DomainDefaultTypeInternal; +extern DomainDefaultTypeInternal _Domain_default_instance_; +class Project; +class ProjectDefaultTypeInternal; +extern ProjectDefaultTypeInternal _Project_default_instance_; +class ProjectListRequest; +class ProjectListRequestDefaultTypeInternal; +extern ProjectListRequestDefaultTypeInternal _ProjectListRequest_default_instance_; +class ProjectRegisterRequest; +class ProjectRegisterRequestDefaultTypeInternal; +extern ProjectRegisterRequestDefaultTypeInternal _ProjectRegisterRequest_default_instance_; +class ProjectRegisterResponse; +class ProjectRegisterResponseDefaultTypeInternal; +extern ProjectRegisterResponseDefaultTypeInternal _ProjectRegisterResponse_default_instance_; +class Projects; +class ProjectsDefaultTypeInternal; +extern ProjectsDefaultTypeInternal _Projects_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class Domain : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Domain) */ { + public: + Domain(); + virtual ~Domain(); + + Domain(const Domain& from); + + inline Domain& operator=(const Domain& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Domain(Domain&& from) noexcept + : Domain() { + *this = ::std::move(from); + } + + inline Domain& operator=(Domain&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Domain& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Domain* internal_default_instance() { + return reinterpret_cast( + &_Domain_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Domain* other); + friend void swap(Domain& a, Domain& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Domain* New() const PROTOBUF_FINAL { return New(NULL); } + + Domain* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Domain& from); + void MergeFrom(const Domain& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Domain* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fproject_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsDomainImpl(); +}; +// ------------------------------------------------------------------- + +class Project : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Project) */ { + public: + Project(); + virtual ~Project(); + + Project(const Project& from); + + inline Project& operator=(const Project& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Project(Project&& from) noexcept + : Project() { + *this = ::std::move(from); + } + + inline Project& operator=(Project&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Project& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Project* internal_default_instance() { + return reinterpret_cast( + &_Project_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(Project* other); + friend void swap(Project& a, Project& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Project* New() const PROTOBUF_FINAL { return New(NULL); } + + Project* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Project& from); + void MergeFrom(const Project& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Project* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Domain domains = 3; + int domains_size() const; + void clear_domains(); + static const int kDomainsFieldNumber = 3; + const ::flyteidl::admin::Domain& domains(int index) const; + ::flyteidl::admin::Domain* mutable_domains(int index); + ::flyteidl::admin::Domain* add_domains(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >* + mutable_domains(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >& + domains() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain > domains_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fproject_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectImpl(); +}; +// ------------------------------------------------------------------- + +class Projects : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Projects) */ { + public: + Projects(); + virtual ~Projects(); + + Projects(const Projects& from); + + inline Projects& operator=(const Projects& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Projects(Projects&& from) noexcept + : Projects() { + *this = ::std::move(from); + } + + inline Projects& operator=(Projects&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Projects& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Projects* internal_default_instance() { + return reinterpret_cast( + &_Projects_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(Projects* other); + friend void swap(Projects& a, Projects& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Projects* New() const PROTOBUF_FINAL { return New(NULL); } + + Projects* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Projects& from); + void MergeFrom(const Projects& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Projects* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Project projects = 1; + int projects_size() const; + void clear_projects(); + static const int kProjectsFieldNumber = 1; + const ::flyteidl::admin::Project& projects(int index) const; + ::flyteidl::admin::Project* mutable_projects(int index); + ::flyteidl::admin::Project* add_projects(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >* + mutable_projects(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >& + projects() const; + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project > projects_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fproject_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectsImpl(); +}; +// ------------------------------------------------------------------- + +class ProjectListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectListRequest) */ { + public: + ProjectListRequest(); + virtual ~ProjectListRequest(); + + ProjectListRequest(const ProjectListRequest& from); + + inline ProjectListRequest& operator=(const ProjectListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectListRequest(ProjectListRequest&& from) noexcept + : ProjectListRequest() { + *this = ::std::move(from); + } + + inline ProjectListRequest& operator=(ProjectListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ProjectListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectListRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectListRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(ProjectListRequest* other); + friend void swap(ProjectListRequest& a, ProjectListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectListRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ProjectListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ProjectListRequest& from); + void MergeFrom(const ProjectListRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ProjectListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fproject_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectListRequestImpl(); +}; +// ------------------------------------------------------------------- + +class ProjectRegisterRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectRegisterRequest) */ { + public: + ProjectRegisterRequest(); + virtual ~ProjectRegisterRequest(); + + ProjectRegisterRequest(const ProjectRegisterRequest& from); + + inline ProjectRegisterRequest& operator=(const ProjectRegisterRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectRegisterRequest(ProjectRegisterRequest&& from) noexcept + : ProjectRegisterRequest() { + *this = ::std::move(from); + } + + inline ProjectRegisterRequest& operator=(ProjectRegisterRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ProjectRegisterRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectRegisterRequest* internal_default_instance() { + return reinterpret_cast( + &_ProjectRegisterRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(ProjectRegisterRequest* other); + friend void swap(ProjectRegisterRequest& a, ProjectRegisterRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectRegisterRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + ProjectRegisterRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ProjectRegisterRequest& from); + void MergeFrom(const ProjectRegisterRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ProjectRegisterRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.Project project = 1; + bool has_project() const; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::flyteidl::admin::Project& project() const; + ::flyteidl::admin::Project* release_project(); + ::flyteidl::admin::Project* mutable_project(); + void set_allocated_project(::flyteidl::admin::Project* project); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::Project* project_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fproject_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectRegisterRequestImpl(); +}; +// ------------------------------------------------------------------- + +class ProjectRegisterResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectRegisterResponse) */ { + public: + ProjectRegisterResponse(); + virtual ~ProjectRegisterResponse(); + + ProjectRegisterResponse(const ProjectRegisterResponse& from); + + inline ProjectRegisterResponse& operator=(const ProjectRegisterResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ProjectRegisterResponse(ProjectRegisterResponse&& from) noexcept + : ProjectRegisterResponse() { + *this = ::std::move(from); + } + + inline ProjectRegisterResponse& operator=(ProjectRegisterResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ProjectRegisterResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ProjectRegisterResponse* internal_default_instance() { + return reinterpret_cast( + &_ProjectRegisterResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(ProjectRegisterResponse* other); + friend void swap(ProjectRegisterResponse& a, ProjectRegisterResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ProjectRegisterResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + ProjectRegisterResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ProjectRegisterResponse& from); + void MergeFrom(const ProjectRegisterResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ProjectRegisterResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fproject_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fproject_2eproto::InitDefaultsProjectRegisterResponseImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Domain + +// string id = 1; +inline void Domain::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Domain::id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Domain.id) + return id_.GetNoArena(); +} +inline void Domain::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Domain.id) +} +#if LANG_CXX11 +inline void Domain::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Domain.id) +} +#endif +inline void Domain::set_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Domain.id) +} +inline void Domain::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Domain.id) +} +inline ::std::string* Domain::mutable_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Domain.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Domain::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Domain.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Domain::set_allocated_id(::std::string* id) { + if (id != NULL) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Domain.id) +} + +// string name = 2; +inline void Domain::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Domain::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Domain.name) + return name_.GetNoArena(); +} +inline void Domain::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Domain.name) +} +#if LANG_CXX11 +inline void Domain::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Domain.name) +} +#endif +inline void Domain::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Domain.name) +} +inline void Domain::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Domain.name) +} +inline ::std::string* Domain::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Domain.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Domain::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Domain.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Domain::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Domain.name) +} + +// ------------------------------------------------------------------- + +// Project + +// string id = 1; +inline void Project::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Project::id() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.id) + return id_.GetNoArena(); +} +inline void Project::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Project.id) +} +#if LANG_CXX11 +inline void Project::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.id) +} +#endif +inline void Project::set_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.id) +} +inline void Project::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.id) +} +inline ::std::string* Project::mutable_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Project::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Project.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Project::set_allocated_id(::std::string* id) { + if (id != NULL) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.id) +} + +// string name = 2; +inline void Project::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Project::name() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.name) + return name_.GetNoArena(); +} +inline void Project::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Project.name) +} +#if LANG_CXX11 +inline void Project::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.name) +} +#endif +inline void Project::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.name) +} +inline void Project::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.name) +} +inline ::std::string* Project::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Project::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Project.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Project::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.name) +} + +// repeated .flyteidl.admin.Domain domains = 3; +inline int Project::domains_size() const { + return domains_.size(); +} +inline void Project::clear_domains() { + domains_.Clear(); +} +inline const ::flyteidl::admin::Domain& Project::domains(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Project.domains) + return domains_.Get(index); +} +inline ::flyteidl::admin::Domain* Project::mutable_domains(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.domains) + return domains_.Mutable(index); +} +inline ::flyteidl::admin::Domain* Project::add_domains() { + // @@protoc_insertion_point(field_add:flyteidl.admin.Project.domains) + return domains_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >* +Project::mutable_domains() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Project.domains) + return &domains_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >& +Project::domains() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Project.domains) + return domains_; +} + +// ------------------------------------------------------------------- + +// Projects + +// repeated .flyteidl.admin.Project projects = 1; +inline int Projects::projects_size() const { + return projects_.size(); +} +inline void Projects::clear_projects() { + projects_.Clear(); +} +inline const ::flyteidl::admin::Project& Projects::projects(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Projects.projects) + return projects_.Get(index); +} +inline ::flyteidl::admin::Project* Projects::mutable_projects(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Projects.projects) + return projects_.Mutable(index); +} +inline ::flyteidl::admin::Project* Projects::add_projects() { + // @@protoc_insertion_point(field_add:flyteidl.admin.Projects.projects) + return projects_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >* +Projects::mutable_projects() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Projects.projects) + return &projects_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >& +Projects::projects() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.Projects.projects) + return projects_; +} + +// ------------------------------------------------------------------- + +// ProjectListRequest + +// ------------------------------------------------------------------- + +// ProjectRegisterRequest + +// .flyteidl.admin.Project project = 1; +inline bool ProjectRegisterRequest::has_project() const { + return this != internal_default_instance() && project_ != NULL; +} +inline void ProjectRegisterRequest::clear_project() { + if (GetArenaNoVirtual() == NULL && project_ != NULL) { + delete project_; + } + project_ = NULL; +} +inline const ::flyteidl::admin::Project& ProjectRegisterRequest::project() const { + const ::flyteidl::admin::Project* p = project_; + // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectRegisterRequest.project) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Project_default_instance_); +} +inline ::flyteidl::admin::Project* ProjectRegisterRequest::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectRegisterRequest.project) + + ::flyteidl::admin::Project* temp = project_; + project_ = NULL; + return temp; +} +inline ::flyteidl::admin::Project* ProjectRegisterRequest::mutable_project() { + + if (project_ == NULL) { + project_ = new ::flyteidl::admin::Project; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectRegisterRequest.project) + return project_; +} +inline void ProjectRegisterRequest::set_allocated_project(::flyteidl::admin::Project* project) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete project_; + } + if (project) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + project = ::google::protobuf::internal::GetOwnedMessage( + message_arena, project, submessage_arena); + } + + } else { + + } + project_ = project; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectRegisterRequest.project) +} + +// ------------------------------------------------------------------- + +// ProjectRegisterResponse + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fproject_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc new file mode 100644 index 0000000000..1d7391035b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/schedule.proto + +#include "flyteidl/admin/schedule.pb.h" +#include "flyteidl/admin/schedule.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h new file mode 100644 index 0000000000..a7fc9fd5c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/schedule.proto +#ifndef GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED + +#include "flyteidl/admin/schedule.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc new file mode 100644 index 0000000000..d14483d242 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc @@ -0,0 +1,877 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +#include "flyteidl/admin/schedule.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class FixedRateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _FixedRate_default_instance_; +class ScheduleDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr cron_expression_; + const ::flyteidl::admin::FixedRate* rate_; +} _Schedule_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fschedule_2eproto { +void InitDefaultsFixedRateImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_FixedRate_default_instance_; + new (ptr) ::flyteidl::admin::FixedRate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::FixedRate::InitAsDefaultInstance(); +} + +void InitDefaultsFixedRate() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsFixedRateImpl); +} + +void InitDefaultsScheduleImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsFixedRate(); + { + void* ptr = &::flyteidl::admin::_Schedule_default_instance_; + new (ptr) ::flyteidl::admin::Schedule(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Schedule::InitAsDefaultInstance(); +} + +void InitDefaultsSchedule() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsScheduleImpl); +} + +::google::protobuf::Metadata file_level_metadata[2]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::FixedRate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::FixedRate, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::FixedRate, unit_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Schedule, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Schedule, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, cron_expression_), + offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, rate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Schedule, kickoff_time_input_arg_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Schedule, ScheduleExpression_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::FixedRate)}, + { 7, -1, sizeof(::flyteidl::admin::Schedule)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_FixedRate_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Schedule_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/schedule.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\035flyteidl/admin/schedule.proto\022\016flyteid" + "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + "\"\206\001\n\010Schedule\022\031\n\017cron_expression\030\001 \001(\tH\000" + "\022)\n\004rate\030\002 \001(\0132\031.flyteidl.admin.FixedRat" + "eH\000\022\036\n\026kickoff_time_input_arg\030\003 \001(\tB\024\n\022S" + "cheduleExpression*.\n\rFixedRateUnit\022\n\n\006MI" + "NUTE\020\000\022\010\n\004HOUR\020\001\022\007\n\003DAY\020\002B3Z1github.com/" + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + "proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 366); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/schedule.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fschedule_2eproto +namespace flyteidl { +namespace admin { +const ::google::protobuf::EnumDescriptor* FixedRateUnit_descriptor() { + protobuf_flyteidl_2fadmin_2fschedule_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fadmin_2fschedule_2eproto::file_level_enum_descriptors[0]; +} +bool FixedRateUnit_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +void FixedRate::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int FixedRate::kValueFieldNumber; +const int FixedRate::kUnitFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +FixedRate::FixedRate() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsFixedRate(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.FixedRate) +} +FixedRate::FixedRate(const FixedRate& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&value_, &from.value_, + static_cast(reinterpret_cast(&unit_) - + reinterpret_cast(&value_)) + sizeof(unit_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.FixedRate) +} + +void FixedRate::SharedCtor() { + ::memset(&value_, 0, static_cast( + reinterpret_cast(&unit_) - + reinterpret_cast(&value_)) + sizeof(unit_)); + _cached_size_ = 0; +} + +FixedRate::~FixedRate() { + // @@protoc_insertion_point(destructor:flyteidl.admin.FixedRate) + SharedDtor(); +} + +void FixedRate::SharedDtor() { +} + +void FixedRate::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* FixedRate::descriptor() { + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const FixedRate& FixedRate::default_instance() { + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsFixedRate(); + return *internal_default_instance(); +} + +FixedRate* FixedRate::New(::google::protobuf::Arena* arena) const { + FixedRate* n = new FixedRate; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void FixedRate::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.FixedRate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&value_, 0, static_cast( + reinterpret_cast(&unit_) - + reinterpret_cast(&value_)) + sizeof(unit_)); + _internal_metadata_.Clear(); +} + +bool FixedRate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.FixedRate) + 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)) { + // uint32 value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &value_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_unit(static_cast< ::flyteidl::admin::FixedRateUnit >(value)); + } 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.FixedRate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.FixedRate) + return false; +#undef DO_ +} + +void FixedRate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.FixedRate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 value = 1; + if (this->value() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(), output); + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + if (this->unit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->unit(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.FixedRate) +} + +::google::protobuf::uint8* FixedRate::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.FixedRate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 value = 1; + if (this->value() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->value(), target); + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + if (this->unit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->unit(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.FixedRate) + return target; +} + +size_t FixedRate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.FixedRate) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // uint32 value = 1; + if (this->value() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->value()); + } + + // .flyteidl.admin.FixedRateUnit unit = 2; + if (this->unit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->unit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void FixedRate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.FixedRate) + GOOGLE_DCHECK_NE(&from, this); + const FixedRate* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.FixedRate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.FixedRate) + MergeFrom(*source); + } +} + +void FixedRate::MergeFrom(const FixedRate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.FixedRate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value() != 0) { + set_value(from.value()); + } + if (from.unit() != 0) { + set_unit(from.unit()); + } +} + +void FixedRate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.FixedRate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FixedRate::CopyFrom(const FixedRate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.FixedRate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FixedRate::IsInitialized() const { + return true; +} + +void FixedRate::Swap(FixedRate* other) { + if (other == this) return; + InternalSwap(other); +} +void FixedRate::InternalSwap(FixedRate* other) { + using std::swap; + swap(value_, other->value_); + swap(unit_, other->unit_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata FixedRate::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fschedule_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Schedule::InitAsDefaultInstance() { + ::flyteidl::admin::_Schedule_default_instance_.cron_expression_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_Schedule_default_instance_.rate_ = const_cast< ::flyteidl::admin::FixedRate*>( + ::flyteidl::admin::FixedRate::internal_default_instance()); +} +void Schedule::set_allocated_rate(::flyteidl::admin::FixedRate* rate) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_ScheduleExpression(); + if (rate) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + rate = ::google::protobuf::internal::GetOwnedMessage( + message_arena, rate, submessage_arena); + } + set_has_rate(); + ScheduleExpression_.rate_ = rate; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.rate) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Schedule::kCronExpressionFieldNumber; +const int Schedule::kRateFieldNumber; +const int Schedule::kKickoffTimeInputArgFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Schedule::Schedule() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsSchedule(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Schedule) +} +Schedule::Schedule(const Schedule& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + kickoff_time_input_arg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.kickoff_time_input_arg().size() > 0) { + kickoff_time_input_arg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kickoff_time_input_arg_); + } + clear_has_ScheduleExpression(); + switch (from.ScheduleExpression_case()) { + case kCronExpression: { + set_cron_expression(from.cron_expression()); + break; + } + case kRate: { + mutable_rate()->::flyteidl::admin::FixedRate::MergeFrom(from.rate()); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Schedule) +} + +void Schedule::SharedCtor() { + kickoff_time_input_arg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ScheduleExpression(); + _cached_size_ = 0; +} + +Schedule::~Schedule() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Schedule) + SharedDtor(); +} + +void Schedule::SharedDtor() { + kickoff_time_input_arg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (has_ScheduleExpression()) { + clear_ScheduleExpression(); + } +} + +void Schedule::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Schedule::descriptor() { + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Schedule& Schedule::default_instance() { + ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsSchedule(); + return *internal_default_instance(); +} + +Schedule* Schedule::New(::google::protobuf::Arena* arena) const { + Schedule* n = new Schedule; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Schedule::clear_ScheduleExpression() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Schedule) + switch (ScheduleExpression_case()) { + case kCronExpression: { + ScheduleExpression_.cron_expression_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kRate: { + delete ScheduleExpression_.rate_; + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + _oneof_case_[0] = SCHEDULEEXPRESSION_NOT_SET; +} + + +void Schedule::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Schedule) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + kickoff_time_input_arg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_ScheduleExpression(); + _internal_metadata_.Clear(); +} + +bool Schedule::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Schedule) + 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 cron_expression = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cron_expression())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cron_expression().data(), static_cast(this->cron_expression().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Schedule.cron_expression")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.FixedRate rate = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_rate())); + } else { + goto handle_unusual; + } + break; + } + + // string kickoff_time_input_arg = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_kickoff_time_input_arg())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.Schedule.kickoff_time_input_arg")); + } 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.Schedule) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Schedule) + return false; +#undef DO_ +} + +void Schedule::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Schedule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cron_expression = 1; + if (has_cron_expression()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cron_expression().data(), static_cast(this->cron_expression().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.cron_expression"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cron_expression(), output); + } + + // .flyteidl.admin.FixedRate rate = 2; + if (has_rate()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *ScheduleExpression_.rate_, output); + } + + // string kickoff_time_input_arg = 3; + if (this->kickoff_time_input_arg().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.kickoff_time_input_arg"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->kickoff_time_input_arg(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Schedule) +} + +::google::protobuf::uint8* Schedule::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Schedule) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cron_expression = 1; + if (has_cron_expression()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cron_expression().data(), static_cast(this->cron_expression().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.cron_expression"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cron_expression(), target); + } + + // .flyteidl.admin.FixedRate rate = 2; + if (has_rate()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *ScheduleExpression_.rate_, deterministic, target); + } + + // string kickoff_time_input_arg = 3; + if (this->kickoff_time_input_arg().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.Schedule.kickoff_time_input_arg"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->kickoff_time_input_arg(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Schedule) + return target; +} + +size_t Schedule::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Schedule) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string kickoff_time_input_arg = 3; + if (this->kickoff_time_input_arg().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->kickoff_time_input_arg()); + } + + switch (ScheduleExpression_case()) { + // string cron_expression = 1; + case kCronExpression: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cron_expression()); + break; + } + // .flyteidl.admin.FixedRate rate = 2; + case kRate: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *ScheduleExpression_.rate_); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Schedule::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Schedule) + GOOGLE_DCHECK_NE(&from, this); + const Schedule* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Schedule) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Schedule) + MergeFrom(*source); + } +} + +void Schedule::MergeFrom(const Schedule& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Schedule) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.kickoff_time_input_arg().size() > 0) { + + kickoff_time_input_arg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kickoff_time_input_arg_); + } + switch (from.ScheduleExpression_case()) { + case kCronExpression: { + set_cron_expression(from.cron_expression()); + break; + } + case kRate: { + mutable_rate()->::flyteidl::admin::FixedRate::MergeFrom(from.rate()); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } +} + +void Schedule::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Schedule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Schedule::CopyFrom(const Schedule& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Schedule) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Schedule::IsInitialized() const { + return true; +} + +void Schedule::Swap(Schedule* other) { + if (other == this) return; + InternalSwap(other); +} +void Schedule::InternalSwap(Schedule* other) { + using std::swap; + kickoff_time_input_arg_.Swap(&other->kickoff_time_input_arg_); + swap(ScheduleExpression_, other->ScheduleExpression_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Schedule::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fschedule_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h new file mode 100644 index 0000000000..60faf88c7b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h @@ -0,0 +1,614 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fschedule_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[2]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsFixedRateImpl(); +void InitDefaultsFixedRate(); +void InitDefaultsScheduleImpl(); +void InitDefaultsSchedule(); +inline void InitDefaults() { + InitDefaultsFixedRate(); + InitDefaultsSchedule(); +} +} // namespace protobuf_flyteidl_2fadmin_2fschedule_2eproto +namespace flyteidl { +namespace admin { +class FixedRate; +class FixedRateDefaultTypeInternal; +extern FixedRateDefaultTypeInternal _FixedRate_default_instance_; +class Schedule; +class ScheduleDefaultTypeInternal; +extern ScheduleDefaultTypeInternal _Schedule_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +enum FixedRateUnit { + MINUTE = 0, + HOUR = 1, + DAY = 2, + FixedRateUnit_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + FixedRateUnit_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool FixedRateUnit_IsValid(int value); +const FixedRateUnit FixedRateUnit_MIN = MINUTE; +const FixedRateUnit FixedRateUnit_MAX = DAY; +const int FixedRateUnit_ARRAYSIZE = FixedRateUnit_MAX + 1; + +const ::google::protobuf::EnumDescriptor* FixedRateUnit_descriptor(); +inline const ::std::string& FixedRateUnit_Name(FixedRateUnit value) { + return ::google::protobuf::internal::NameOfEnum( + FixedRateUnit_descriptor(), value); +} +inline bool FixedRateUnit_Parse( + const ::std::string& name, FixedRateUnit* value) { + return ::google::protobuf::internal::ParseNamedEnum( + FixedRateUnit_descriptor(), name, value); +} +// =================================================================== + +class FixedRate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.FixedRate) */ { + public: + FixedRate(); + virtual ~FixedRate(); + + FixedRate(const FixedRate& from); + + inline FixedRate& operator=(const FixedRate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + FixedRate(FixedRate&& from) noexcept + : FixedRate() { + *this = ::std::move(from); + } + + inline FixedRate& operator=(FixedRate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const FixedRate& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FixedRate* internal_default_instance() { + return reinterpret_cast( + &_FixedRate_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(FixedRate* other); + friend void swap(FixedRate& a, FixedRate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline FixedRate* New() const PROTOBUF_FINAL { return New(NULL); } + + FixedRate* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const FixedRate& from); + void MergeFrom(const FixedRate& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(FixedRate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 value = 1; + void clear_value(); + static const int kValueFieldNumber = 1; + ::google::protobuf::uint32 value() const; + void set_value(::google::protobuf::uint32 value); + + // .flyteidl.admin.FixedRateUnit unit = 2; + void clear_unit(); + static const int kUnitFieldNumber = 2; + ::flyteidl::admin::FixedRateUnit unit() const; + void set_unit(::flyteidl::admin::FixedRateUnit value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 value_; + int unit_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsFixedRateImpl(); +}; +// ------------------------------------------------------------------- + +class Schedule : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Schedule) */ { + public: + Schedule(); + virtual ~Schedule(); + + Schedule(const Schedule& from); + + inline Schedule& operator=(const Schedule& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Schedule(Schedule&& from) noexcept + : Schedule() { + *this = ::std::move(from); + } + + inline Schedule& operator=(Schedule&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Schedule& default_instance(); + + enum ScheduleExpressionCase { + kCronExpression = 1, + kRate = 2, + SCHEDULEEXPRESSION_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Schedule* internal_default_instance() { + return reinterpret_cast( + &_Schedule_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(Schedule* other); + friend void swap(Schedule& a, Schedule& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Schedule* New() const PROTOBUF_FINAL { return New(NULL); } + + Schedule* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Schedule& from); + void MergeFrom(const Schedule& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Schedule* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string kickoff_time_input_arg = 3; + void clear_kickoff_time_input_arg(); + static const int kKickoffTimeInputArgFieldNumber = 3; + const ::std::string& kickoff_time_input_arg() const; + void set_kickoff_time_input_arg(const ::std::string& value); + #if LANG_CXX11 + void set_kickoff_time_input_arg(::std::string&& value); + #endif + void set_kickoff_time_input_arg(const char* value); + void set_kickoff_time_input_arg(const char* value, size_t size); + ::std::string* mutable_kickoff_time_input_arg(); + ::std::string* release_kickoff_time_input_arg(); + void set_allocated_kickoff_time_input_arg(::std::string* kickoff_time_input_arg); + + // string cron_expression = 1; + private: + bool has_cron_expression() const; + public: + void clear_cron_expression(); + static const int kCronExpressionFieldNumber = 1; + const ::std::string& cron_expression() const; + void set_cron_expression(const ::std::string& value); + #if LANG_CXX11 + void set_cron_expression(::std::string&& value); + #endif + void set_cron_expression(const char* value); + void set_cron_expression(const char* value, size_t size); + ::std::string* mutable_cron_expression(); + ::std::string* release_cron_expression(); + void set_allocated_cron_expression(::std::string* cron_expression); + + // .flyteidl.admin.FixedRate rate = 2; + bool has_rate() const; + void clear_rate(); + static const int kRateFieldNumber = 2; + const ::flyteidl::admin::FixedRate& rate() const; + ::flyteidl::admin::FixedRate* release_rate(); + ::flyteidl::admin::FixedRate* mutable_rate(); + void set_allocated_rate(::flyteidl::admin::FixedRate* rate); + + ScheduleExpressionCase ScheduleExpression_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + private: + void set_has_cron_expression(); + void set_has_rate(); + + inline bool has_ScheduleExpression() const; + void clear_ScheduleExpression(); + inline void clear_has_ScheduleExpression(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr kickoff_time_input_arg_; + union ScheduleExpressionUnion { + ScheduleExpressionUnion() {} + ::google::protobuf::internal::ArenaStringPtr cron_expression_; + ::flyteidl::admin::FixedRate* rate_; + } ScheduleExpression_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fschedule_2eproto::InitDefaultsScheduleImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// FixedRate + +// uint32 value = 1; +inline void FixedRate::clear_value() { + value_ = 0u; +} +inline ::google::protobuf::uint32 FixedRate::value() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FixedRate.value) + return value_; +} +inline void FixedRate::set_value(::google::protobuf::uint32 value) { + + value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.FixedRate.value) +} + +// .flyteidl.admin.FixedRateUnit unit = 2; +inline void FixedRate::clear_unit() { + unit_ = 0; +} +inline ::flyteidl::admin::FixedRateUnit FixedRate::unit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.FixedRate.unit) + return static_cast< ::flyteidl::admin::FixedRateUnit >(unit_); +} +inline void FixedRate::set_unit(::flyteidl::admin::FixedRateUnit value) { + + unit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.FixedRate.unit) +} + +// ------------------------------------------------------------------- + +// Schedule + +// string cron_expression = 1; +inline bool Schedule::has_cron_expression() const { + return ScheduleExpression_case() == kCronExpression; +} +inline void Schedule::set_has_cron_expression() { + _oneof_case_[0] = kCronExpression; +} +inline void Schedule::clear_cron_expression() { + if (has_cron_expression()) { + ScheduleExpression_.cron_expression_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_ScheduleExpression(); + } +} +inline const ::std::string& Schedule::cron_expression() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.cron_expression) + if (has_cron_expression()) { + return ScheduleExpression_.cron_expression_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Schedule::set_cron_expression(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) +} +#if LANG_CXX11 +inline void Schedule::set_cron_expression(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Schedule.cron_expression) +} +#endif +inline void Schedule::set_cron_expression(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Schedule.cron_expression) +} +inline void Schedule::set_cron_expression(const char* value, size_t size) { + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Schedule.cron_expression) +} +inline ::std::string* Schedule::mutable_cron_expression() { + if (!has_cron_expression()) { + clear_ScheduleExpression(); + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.cron_expression) + return ScheduleExpression_.cron_expression_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Schedule::release_cron_expression() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.cron_expression) + if (has_cron_expression()) { + clear_has_ScheduleExpression(); + return ScheduleExpression_.cron_expression_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void Schedule::set_allocated_cron_expression(::std::string* cron_expression) { + if (!has_cron_expression()) { + ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_ScheduleExpression(); + if (cron_expression != NULL) { + set_has_cron_expression(); + ScheduleExpression_.cron_expression_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + cron_expression); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.cron_expression) +} + +// .flyteidl.admin.FixedRate rate = 2; +inline bool Schedule::has_rate() const { + return ScheduleExpression_case() == kRate; +} +inline void Schedule::set_has_rate() { + _oneof_case_[0] = kRate; +} +inline void Schedule::clear_rate() { + if (has_rate()) { + delete ScheduleExpression_.rate_; + clear_has_ScheduleExpression(); + } +} +inline ::flyteidl::admin::FixedRate* Schedule::release_rate() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.rate) + if (has_rate()) { + clear_has_ScheduleExpression(); + ::flyteidl::admin::FixedRate* temp = ScheduleExpression_.rate_; + ScheduleExpression_.rate_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::admin::FixedRate& Schedule::rate() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.rate) + return has_rate() + ? *ScheduleExpression_.rate_ + : *reinterpret_cast< ::flyteidl::admin::FixedRate*>(&::flyteidl::admin::_FixedRate_default_instance_); +} +inline ::flyteidl::admin::FixedRate* Schedule::mutable_rate() { + if (!has_rate()) { + clear_ScheduleExpression(); + set_has_rate(); + ScheduleExpression_.rate_ = new ::flyteidl::admin::FixedRate; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.rate) + return ScheduleExpression_.rate_; +} + +// string kickoff_time_input_arg = 3; +inline void Schedule::clear_kickoff_time_input_arg() { + kickoff_time_input_arg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Schedule::kickoff_time_input_arg() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.kickoff_time_input_arg) + return kickoff_time_input_arg_.GetNoArena(); +} +inline void Schedule::set_kickoff_time_input_arg(const ::std::string& value) { + + kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +#if LANG_CXX11 +inline void Schedule::set_kickoff_time_input_arg(::std::string&& value) { + + kickoff_time_input_arg_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +#endif +inline void Schedule::set_kickoff_time_input_arg(const char* value) { + GOOGLE_DCHECK(value != NULL); + + kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +inline void Schedule::set_kickoff_time_input_arg(const char* value, size_t size) { + + kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Schedule.kickoff_time_input_arg) +} +inline ::std::string* Schedule::mutable_kickoff_time_input_arg() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.kickoff_time_input_arg) + return kickoff_time_input_arg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Schedule::release_kickoff_time_input_arg() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.kickoff_time_input_arg) + + return kickoff_time_input_arg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Schedule::set_allocated_kickoff_time_input_arg(::std::string* kickoff_time_input_arg) { + if (kickoff_time_input_arg != NULL) { + + } else { + + } + kickoff_time_input_arg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kickoff_time_input_arg); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.kickoff_time_input_arg) +} + +inline bool Schedule::has_ScheduleExpression() const { + return ScheduleExpression_case() != SCHEDULEEXPRESSION_NOT_SET; +} +inline void Schedule::clear_has_ScheduleExpression() { + _oneof_case_[0] = SCHEDULEEXPRESSION_NOT_SET; +} +inline Schedule::ScheduleExpressionCase Schedule::ScheduleExpression_case() const { + return Schedule::ScheduleExpressionCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::admin::FixedRateUnit> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::FixedRateUnit>() { + return ::flyteidl::admin::FixedRateUnit_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc new file mode 100644 index 0000000000..10db496b41 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task.proto + +#include "flyteidl/admin/task.pb.h" +#include "flyteidl/admin/task.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h new file mode 100644 index 0000000000..0101dbca4b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task.proto +#ifndef GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED + +#include "flyteidl/admin/task.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc new file mode 100644 index 0000000000..85c386bdb1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc @@ -0,0 +1,1991 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +#include "flyteidl/admin/task.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class TaskCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskCreateRequest_default_instance_; +class TaskCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskCreateResponse_default_instance_; +class TaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Task_default_instance_; +class TaskListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskList_default_instance_; +class TaskSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskSpec_default_instance_; +class TaskClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskClosure_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2ftask_2eproto { +void InitDefaultsTaskCreateRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskSpec(); + { + void* ptr = &::flyteidl::admin::_TaskCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskCreateRequest::InitAsDefaultInstance(); +} + +void InitDefaultsTaskCreateRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskCreateRequestImpl); +} + +void InitDefaultsTaskCreateResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_TaskCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::TaskCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskCreateResponse::InitAsDefaultInstance(); +} + +void InitDefaultsTaskCreateResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskCreateResponseImpl); +} + +void InitDefaultsTaskImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskClosure(); + { + void* ptr = &::flyteidl::admin::_Task_default_instance_; + new (ptr) ::flyteidl::admin::Task(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Task::InitAsDefaultInstance(); +} + +void InitDefaultsTask() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskImpl); +} + +void InitDefaultsTaskListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTask(); + { + void* ptr = &::flyteidl::admin::_TaskList_default_instance_; + new (ptr) ::flyteidl::admin::TaskList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskList::InitAsDefaultInstance(); +} + +void InitDefaultsTaskList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskListImpl); +} + +void InitDefaultsTaskSpecImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplate(); + { + void* ptr = &::flyteidl::admin::_TaskSpec_default_instance_; + new (ptr) ::flyteidl::admin::TaskSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskSpec::InitAsDefaultInstance(); +} + +void InitDefaultsTaskSpec() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskSpecImpl); +} + +void InitDefaultsTaskClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledTask(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + { + void* ptr = &::flyteidl::admin::_TaskClosure_default_instance_; + new (ptr) ::flyteidl::admin::TaskClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskClosure::InitAsDefaultInstance(); +} + +void InitDefaultsTaskClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskClosureImpl); +} + +::google::protobuf::Metadata file_level_metadata[6]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, spec_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Task, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Task, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Task, closure_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskList, tasks_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskSpec, template__), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskClosure, compiled_task_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskClosure, created_at_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::TaskCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::TaskCreateResponse)}, + { 12, -1, sizeof(::flyteidl::admin::Task)}, + { 19, -1, sizeof(::flyteidl::admin::TaskList)}, + { 26, -1, sizeof(::flyteidl::admin::TaskSpec)}, + { 32, -1, sizeof(::flyteidl::admin::TaskClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_TaskCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Task_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskClosure_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/task.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\031flyteidl/admin/task.proto\022\016flyteidl.ad" + "min\032\036flyteidl/core/identifier.proto\032\031fly" + "teidl/core/tasks.proto\032\034flyteidl/core/co" + "mpiler.proto\032\037google/protobuf/timestamp." + "proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132\031" + ".flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\0132" + "\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreateR" + "esponse\"[\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl.c" + "ore.Identifier\022,\n\007closure\030\002 \001(\0132\033.flytei" + "dl.admin.TaskClosure\">\n\010TaskList\022#\n\005task" + "s\030\001 \003(\0132\024.flyteidl.admin.Task\022\r\n\005token\030\002" + " \001(\t\"9\n\010TaskSpec\022-\n\010template\030\001 \001(\0132\033.fly" + "teidl.core.TaskTemplate\"q\n\013TaskClosure\0222" + "\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.core.Co" + "mpiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.google." + "protobuf.TimestampB3Z1github.com/lyft/fl" + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 679); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/task.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2ftask_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void TaskCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_TaskCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::TaskSpec*>( + ::flyteidl::admin::TaskSpec::internal_default_instance()); +} +void TaskCreateRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskCreateRequest::kIdFieldNumber; +const int TaskCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskCreateRequest::TaskCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskCreateRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskCreateRequest) +} +TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::TaskSpec(*from.spec_); + } else { + spec_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskCreateRequest) +} + +void TaskCreateRequest::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&spec_) - + reinterpret_cast(&id_)) + sizeof(spec_)); + _cached_size_ = 0; +} + +TaskCreateRequest::~TaskCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskCreateRequest) + SharedDtor(); +} + +void TaskCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; +} + +void TaskCreateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskCreateRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskCreateRequest& TaskCreateRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskCreateRequest(); + return *internal_default_instance(); +} + +TaskCreateRequest* TaskCreateRequest::New(::google::protobuf::Arena* arena) const { + TaskCreateRequest* n = new TaskCreateRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskCreateRequest) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } 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.TaskCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskCreateRequest) + return false; +#undef DO_ +} + +void TaskCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.TaskSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->spec_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskCreateRequest) +} + +::google::protobuf::uint8* TaskCreateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.TaskSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->spec_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskCreateRequest) + return target; +} + +size_t TaskCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskCreateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.TaskSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskCreateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskCreateRequest) + MergeFrom(*source); + } +} + +void TaskCreateRequest::MergeFrom(const TaskCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::TaskSpec::MergeFrom(from.spec()); + } +} + +void TaskCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskCreateRequest::CopyFrom(const TaskCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskCreateRequest::IsInitialized() const { + return true; +} + +void TaskCreateRequest::Swap(TaskCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { + using std::swap; + swap(id_, other->id_); + swap(spec_, other->spec_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskCreateResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskCreateResponse::TaskCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskCreateResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskCreateResponse) +} +TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskCreateResponse) +} + +void TaskCreateResponse::SharedCtor() { + _cached_size_ = 0; +} + +TaskCreateResponse::~TaskCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskCreateResponse) + SharedDtor(); +} + +void TaskCreateResponse::SharedDtor() { +} + +void TaskCreateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskCreateResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskCreateResponse& TaskCreateResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskCreateResponse(); + return *internal_default_instance(); +} + +TaskCreateResponse* TaskCreateResponse::New(::google::protobuf::Arena* arena) const { + TaskCreateResponse* n = new TaskCreateResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool TaskCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskCreateResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskCreateResponse) + return false; +#undef DO_ +} + +void TaskCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskCreateResponse) +} + +::google::protobuf::uint8* TaskCreateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskCreateResponse) + return target; +} + +size_t TaskCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskCreateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskCreateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskCreateResponse) + MergeFrom(*source); + } +} + +void TaskCreateResponse::MergeFrom(const TaskCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskCreateResponse::CopyFrom(const TaskCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskCreateResponse::IsInitialized() const { + return true; +} + +void TaskCreateResponse::Swap(TaskCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Task::InitAsDefaultInstance() { + ::flyteidl::admin::_Task_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_Task_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::TaskClosure*>( + ::flyteidl::admin::TaskClosure::internal_default_instance()); +} +void Task::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Task::kIdFieldNumber; +const int Task::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Task::Task() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTask(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Task) +} +Task::Task(const Task& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::TaskClosure(*from.closure_); + } else { + closure_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Task) +} + +void Task::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); + _cached_size_ = 0; +} + +Task::~Task() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Task) + SharedDtor(); +} + +void Task::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void Task::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Task::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Task& Task::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTask(); + return *internal_default_instance(); +} + +Task* Task::New(::google::protobuf::Arena* arena) const { + Task* n = new Task; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Task::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Task) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; + _internal_metadata_.Clear(); +} + +bool Task::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Task) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskClosure closure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } 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.Task) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Task) + return false; +#undef DO_ +} + +void Task::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Task) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.TaskClosure closure = 2; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->closure_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Task) +} + +::google::protobuf::uint8* Task::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Task) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.TaskClosure closure = 2; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->closure_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Task) + return target; +} + +size_t Task::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Task) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.TaskClosure closure = 2; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Task::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Task) + GOOGLE_DCHECK_NE(&from, this); + const Task* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Task) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Task) + MergeFrom(*source); + } +} + +void Task::MergeFrom(const Task& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Task) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::TaskClosure::MergeFrom(from.closure()); + } +} + +void Task::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Task) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Task::CopyFrom(const Task& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Task) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Task::IsInitialized() const { + return true; +} + +void Task::Swap(Task* other) { + if (other == this) return; + InternalSwap(other); +} +void Task::InternalSwap(Task* other) { + using std::swap; + swap(id_, other->id_); + swap(closure_, other->closure_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Task::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskList::kTasksFieldNumber; +const int TaskList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskList::TaskList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskList) +} +TaskList::TaskList(const TaskList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + tasks_(from.tasks_), + _cached_size_(0) { + _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.TaskList) +} + +void TaskList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +TaskList::~TaskList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskList) + SharedDtor(); +} + +void TaskList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskList::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskList& TaskList::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskList(); + return *internal_default_instance(); +} + +TaskList* TaskList::New(::google::protobuf::Arena* arena) const { + TaskList* n = new TaskList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tasks_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool TaskList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskList) + 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.admin.Task tasks = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tasks())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.TaskList.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.TaskList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskList) + return false; +#undef DO_ +} + +void TaskList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Task tasks = 1; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->tasks(static_cast(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.TaskList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskList) +} + +::google::protobuf::uint8* TaskList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Task tasks = 1; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->tasks(static_cast(i)), deterministic, 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.TaskList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskList) + return target; +} + +size_t TaskList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Task tasks = 1; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskList) + GOOGLE_DCHECK_NE(&from, this); + const TaskList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskList) + MergeFrom(*source); + } +} + +void TaskList::MergeFrom(const TaskList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tasks_.MergeFrom(from.tasks_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void TaskList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskList::CopyFrom(const TaskList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskList::IsInitialized() const { + return true; +} + +void TaskList::Swap(TaskList* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskList::InternalSwap(TaskList* other) { + using std::swap; + tasks_.InternalSwap(&other->tasks_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskSpec_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); +} +void TaskSpec::clear_template_() { + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskSpec::kTemplateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskSpec::TaskSpec() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskSpec(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskSpec) +} +TaskSpec::TaskSpec(const TaskSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskSpec) +} + +void TaskSpec::SharedCtor() { + template__ = NULL; + _cached_size_ = 0; +} + +TaskSpec::~TaskSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskSpec) + SharedDtor(); +} + +void TaskSpec::SharedDtor() { + if (this != internal_default_instance()) delete template__; +} + +void TaskSpec::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskSpec::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskSpec& TaskSpec::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskSpec(); + return *internal_default_instance(); +} + +TaskSpec* TaskSpec::New(::google::protobuf::Arena* arena) const { + TaskSpec* n = new TaskSpec; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskSpec) + 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)) { + // .flyteidl.core.TaskTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } 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.TaskSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskSpec) + return false; +#undef DO_ +} + +void TaskSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->template__, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskSpec) +} + +::google::protobuf::uint8* TaskSpec::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->template__, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskSpec) + return target; +} + +size_t TaskSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskSpec) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->template__); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskSpec) + GOOGLE_DCHECK_NE(&from, this); + const TaskSpec* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskSpec) + MergeFrom(*source); + } +} + +void TaskSpec::MergeFrom(const TaskSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } +} + +void TaskSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskSpec::CopyFrom(const TaskSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskSpec::IsInitialized() const { + return true; +} + +void TaskSpec::Swap(TaskSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskSpec::InternalSwap(TaskSpec* other) { + using std::swap; + swap(template__, other->template__); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskSpec::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskClosure_default_instance_._instance.get_mutable()->compiled_task_ = const_cast< ::flyteidl::core::CompiledTask*>( + ::flyteidl::core::CompiledTask::internal_default_instance()); + ::flyteidl::admin::_TaskClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +void TaskClosure::clear_compiled_task() { + if (GetArenaNoVirtual() == NULL && compiled_task_ != NULL) { + delete compiled_task_; + } + compiled_task_ = NULL; +} +void TaskClosure::clear_created_at() { + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskClosure::kCompiledTaskFieldNumber; +const int TaskClosure::kCreatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskClosure::TaskClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskClosure) +} +TaskClosure::TaskClosure(const TaskClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_compiled_task()) { + compiled_task_ = new ::flyteidl::core::CompiledTask(*from.compiled_task_); + } else { + compiled_task_ = NULL; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskClosure) +} + +void TaskClosure::SharedCtor() { + ::memset(&compiled_task_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&compiled_task_)) + sizeof(created_at_)); + _cached_size_ = 0; +} + +TaskClosure::~TaskClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskClosure) + SharedDtor(); +} + +void TaskClosure::SharedDtor() { + if (this != internal_default_instance()) delete compiled_task_; + if (this != internal_default_instance()) delete created_at_; +} + +void TaskClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskClosure::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskClosure& TaskClosure::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskClosure(); + return *internal_default_instance(); +} + +TaskClosure* TaskClosure::New(::google::protobuf::Arena* arena) const { + TaskClosure* n = new TaskClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && compiled_task_ != NULL) { + delete compiled_task_; + } + compiled_task_ = NULL; + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskClosure) + 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)) { + // .flyteidl.core.CompiledTask compiled_task = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_compiled_task())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } 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.TaskClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskClosure) + return false; +#undef DO_ +} + +void TaskClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledTask compiled_task = 1; + if (this->has_compiled_task()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->compiled_task_, output); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->created_at_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskClosure) +} + +::google::protobuf::uint8* TaskClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledTask compiled_task = 1; + if (this->has_compiled_task()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->compiled_task_, deterministic, target); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->created_at_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskClosure) + return target; +} + +size_t TaskClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.CompiledTask compiled_task = 1; + if (this->has_compiled_task()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->compiled_task_); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->created_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskClosure) + GOOGLE_DCHECK_NE(&from, this); + const TaskClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskClosure) + MergeFrom(*source); + } +} + +void TaskClosure::MergeFrom(const TaskClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_compiled_task()) { + mutable_compiled_task()->::flyteidl::core::CompiledTask::MergeFrom(from.compiled_task()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } +} + +void TaskClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskClosure::CopyFrom(const TaskClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskClosure::IsInitialized() const { + return true; +} + +void TaskClosure::Swap(TaskClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskClosure::InternalSwap(TaskClosure* other) { + using std::swap; + swap(compiled_task_, other->compiled_task_); + swap(created_at_, other->created_at_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskClosure::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h new file mode 100644 index 0000000000..948aa86c49 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h @@ -0,0 +1,1201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2ftask_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2ftask_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/compiler.pb.h" +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2ftask_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[6]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsTaskCreateRequestImpl(); +void InitDefaultsTaskCreateRequest(); +void InitDefaultsTaskCreateResponseImpl(); +void InitDefaultsTaskCreateResponse(); +void InitDefaultsTaskImpl(); +void InitDefaultsTask(); +void InitDefaultsTaskListImpl(); +void InitDefaultsTaskList(); +void InitDefaultsTaskSpecImpl(); +void InitDefaultsTaskSpec(); +void InitDefaultsTaskClosureImpl(); +void InitDefaultsTaskClosure(); +inline void InitDefaults() { + InitDefaultsTaskCreateRequest(); + InitDefaultsTaskCreateResponse(); + InitDefaultsTask(); + InitDefaultsTaskList(); + InitDefaultsTaskSpec(); + InitDefaultsTaskClosure(); +} +} // namespace protobuf_flyteidl_2fadmin_2ftask_2eproto +namespace flyteidl { +namespace admin { +class Task; +class TaskDefaultTypeInternal; +extern TaskDefaultTypeInternal _Task_default_instance_; +class TaskClosure; +class TaskClosureDefaultTypeInternal; +extern TaskClosureDefaultTypeInternal _TaskClosure_default_instance_; +class TaskCreateRequest; +class TaskCreateRequestDefaultTypeInternal; +extern TaskCreateRequestDefaultTypeInternal _TaskCreateRequest_default_instance_; +class TaskCreateResponse; +class TaskCreateResponseDefaultTypeInternal; +extern TaskCreateResponseDefaultTypeInternal _TaskCreateResponse_default_instance_; +class TaskList; +class TaskListDefaultTypeInternal; +extern TaskListDefaultTypeInternal _TaskList_default_instance_; +class TaskSpec; +class TaskSpecDefaultTypeInternal; +extern TaskSpecDefaultTypeInternal _TaskSpec_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class TaskCreateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskCreateRequest) */ { + public: + TaskCreateRequest(); + virtual ~TaskCreateRequest(); + + TaskCreateRequest(const TaskCreateRequest& from); + + inline TaskCreateRequest& operator=(const TaskCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskCreateRequest(TaskCreateRequest&& from) noexcept + : TaskCreateRequest() { + *this = ::std::move(from); + } + + inline TaskCreateRequest& operator=(TaskCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskCreateRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(TaskCreateRequest* other); + friend void swap(TaskCreateRequest& a, TaskCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskCreateRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskCreateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskCreateRequest& from); + void MergeFrom(const TaskCreateRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.TaskSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::TaskSpec& spec() const; + ::flyteidl::admin::TaskSpec* release_spec(); + ::flyteidl::admin::TaskSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::TaskSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::TaskSpec* spec_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskCreateRequestImpl(); +}; +// ------------------------------------------------------------------- + +class TaskCreateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskCreateResponse) */ { + public: + TaskCreateResponse(); + virtual ~TaskCreateResponse(); + + TaskCreateResponse(const TaskCreateResponse& from); + + inline TaskCreateResponse& operator=(const TaskCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskCreateResponse(TaskCreateResponse&& from) noexcept + : TaskCreateResponse() { + *this = ::std::move(from); + } + + inline TaskCreateResponse& operator=(TaskCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskCreateResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(TaskCreateResponse* other); + friend void swap(TaskCreateResponse& a, TaskCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskCreateResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskCreateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskCreateResponse& from); + void MergeFrom(const TaskCreateResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskCreateResponseImpl(); +}; +// ------------------------------------------------------------------- + +class Task : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Task) */ { + public: + Task(); + virtual ~Task(); + + Task(const Task& from); + + inline Task& operator=(const Task& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Task(Task&& from) noexcept + : Task() { + *this = ::std::move(from); + } + + inline Task& operator=(Task&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Task& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Task* internal_default_instance() { + return reinterpret_cast( + &_Task_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(Task* other); + friend void swap(Task& a, Task& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Task* New() const PROTOBUF_FINAL { return New(NULL); } + + Task* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Task& from); + void MergeFrom(const Task& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Task* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.TaskClosure closure = 2; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 2; + const ::flyteidl::admin::TaskClosure& closure() const; + ::flyteidl::admin::TaskClosure* release_closure(); + ::flyteidl::admin::TaskClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::TaskClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::TaskClosure* closure_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskImpl(); +}; +// ------------------------------------------------------------------- + +class TaskList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskList) */ { + public: + TaskList(); + virtual ~TaskList(); + + TaskList(const TaskList& from); + + inline TaskList& operator=(const TaskList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskList(TaskList&& from) noexcept + : TaskList() { + *this = ::std::move(from); + } + + inline TaskList& operator=(TaskList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskList* internal_default_instance() { + return reinterpret_cast( + &_TaskList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(TaskList* other); + friend void swap(TaskList& a, TaskList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskList* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskList& from); + void MergeFrom(const TaskList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Task tasks = 1; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 1; + const ::flyteidl::admin::Task& tasks(int index) const; + ::flyteidl::admin::Task* mutable_tasks(int index); + ::flyteidl::admin::Task* add_tasks(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >* + mutable_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >& + tasks() const; + + // 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.TaskList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task > tasks_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskListImpl(); +}; +// ------------------------------------------------------------------- + +class TaskSpec : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskSpec) */ { + public: + TaskSpec(); + virtual ~TaskSpec(); + + TaskSpec(const TaskSpec& from); + + inline TaskSpec& operator=(const TaskSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskSpec(TaskSpec&& from) noexcept + : TaskSpec() { + *this = ::std::move(from); + } + + inline TaskSpec& operator=(TaskSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskSpec* internal_default_instance() { + return reinterpret_cast( + &_TaskSpec_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(TaskSpec* other); + friend void swap(TaskSpec& a, TaskSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskSpec* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskSpec* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskSpec& from); + void MergeFrom(const TaskSpec& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskTemplate* template__; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskSpecImpl(); +}; +// ------------------------------------------------------------------- + +class TaskClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskClosure) */ { + public: + TaskClosure(); + virtual ~TaskClosure(); + + TaskClosure(const TaskClosure& from); + + inline TaskClosure& operator=(const TaskClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskClosure(TaskClosure&& from) noexcept + : TaskClosure() { + *this = ::std::move(from); + } + + inline TaskClosure& operator=(TaskClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskClosure* internal_default_instance() { + return reinterpret_cast( + &_TaskClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(TaskClosure* other); + friend void swap(TaskClosure& a, TaskClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskClosure& from); + void MergeFrom(const TaskClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.CompiledTask compiled_task = 1; + bool has_compiled_task() const; + void clear_compiled_task(); + static const int kCompiledTaskFieldNumber = 1; + const ::flyteidl::core::CompiledTask& compiled_task() const; + ::flyteidl::core::CompiledTask* release_compiled_task(); + ::flyteidl::core::CompiledTask* mutable_compiled_task(); + void set_allocated_compiled_task(::flyteidl::core::CompiledTask* compiled_task); + + // .google.protobuf.Timestamp created_at = 2; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 2; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::CompiledTask* compiled_task_; + ::google::protobuf::Timestamp* created_at_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_2eproto::InitDefaultsTaskClosureImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TaskCreateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool TaskCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& TaskCreateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskCreateRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskCreateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* TaskCreateRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskCreateRequest.id) + return id_; +} +inline void TaskCreateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskCreateRequest.id) +} + +// .flyteidl.admin.TaskSpec spec = 2; +inline bool TaskCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != NULL; +} +inline void TaskCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; +} +inline const ::flyteidl::admin::TaskSpec& TaskCreateRequest::spec() const { + const ::flyteidl::admin::TaskSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskCreateRequest.spec) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskSpec_default_instance_); +} +inline ::flyteidl::admin::TaskSpec* TaskCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskCreateRequest.spec) + + ::flyteidl::admin::TaskSpec* temp = spec_; + spec_ = NULL; + return temp; +} +inline ::flyteidl::admin::TaskSpec* TaskCreateRequest::mutable_spec() { + + if (spec_ == NULL) { + spec_ = new ::flyteidl::admin::TaskSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskCreateRequest.spec) + return spec_; +} +inline void TaskCreateRequest::set_allocated_spec(::flyteidl::admin::TaskSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// TaskCreateResponse + +// ------------------------------------------------------------------- + +// Task + +// .flyteidl.core.Identifier id = 1; +inline bool Task::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& Task::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Task.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* Task::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Task.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* Task::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.id) + return id_; +} +inline void Task::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.id) +} + +// .flyteidl.admin.TaskClosure closure = 2; +inline bool Task::has_closure() const { + return this != internal_default_instance() && closure_ != NULL; +} +inline void Task::clear_closure() { + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; +} +inline const ::flyteidl::admin::TaskClosure& Task::closure() const { + const ::flyteidl::admin::TaskClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Task.closure) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskClosure_default_instance_); +} +inline ::flyteidl::admin::TaskClosure* Task::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Task.closure) + + ::flyteidl::admin::TaskClosure* temp = closure_; + closure_ = NULL; + return temp; +} +inline ::flyteidl::admin::TaskClosure* Task::mutable_closure() { + + if (closure_ == NULL) { + closure_ = new ::flyteidl::admin::TaskClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.closure) + return closure_; +} +inline void Task::set_allocated_closure(::flyteidl::admin::TaskClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.closure) +} + +// ------------------------------------------------------------------- + +// TaskList + +// repeated .flyteidl.admin.Task tasks = 1; +inline int TaskList::tasks_size() const { + return tasks_.size(); +} +inline void TaskList::clear_tasks() { + tasks_.Clear(); +} +inline const ::flyteidl::admin::Task& TaskList::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskList.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::admin::Task* TaskList::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskList.tasks) + return tasks_.Mutable(index); +} +inline ::flyteidl::admin::Task* TaskList::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskList.tasks) + return tasks_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >* +TaskList::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskList.tasks) + return &tasks_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >& +TaskList::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskList.tasks) + return tasks_; +} + +// string token = 2; +inline void TaskList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskList.token) + return token_.GetNoArena(); +} +inline void TaskList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskList.token) +} +#if LANG_CXX11 +inline void TaskList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskList.token) +} +#endif +inline void TaskList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskList.token) +} +inline void TaskList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskList.token) +} +inline ::std::string* TaskList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskList.token) +} + +// ------------------------------------------------------------------- + +// TaskSpec + +// .flyteidl.core.TaskTemplate template = 1; +inline bool TaskSpec::has_template_() const { + return this != internal_default_instance() && template__ != NULL; +} +inline const ::flyteidl::core::TaskTemplate& TaskSpec::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskSpec.template) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* TaskSpec::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskSpec.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = NULL; + return temp; +} +inline ::flyteidl::core::TaskTemplate* TaskSpec::mutable_template_() { + + if (template__ == NULL) { + template__ = new ::flyteidl::core::TaskTemplate; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskSpec.template) + return template__; +} +inline void TaskSpec::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.TaskSpec.template) +} + +// ------------------------------------------------------------------- + +// TaskClosure + +// .flyteidl.core.CompiledTask compiled_task = 1; +inline bool TaskClosure::has_compiled_task() const { + return this != internal_default_instance() && compiled_task_ != NULL; +} +inline const ::flyteidl::core::CompiledTask& TaskClosure::compiled_task() const { + const ::flyteidl::core::CompiledTask* p = compiled_task_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskClosure.compiled_task) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledTask_default_instance_); +} +inline ::flyteidl::core::CompiledTask* TaskClosure::release_compiled_task() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskClosure.compiled_task) + + ::flyteidl::core::CompiledTask* temp = compiled_task_; + compiled_task_ = NULL; + return temp; +} +inline ::flyteidl::core::CompiledTask* TaskClosure::mutable_compiled_task() { + + if (compiled_task_ == NULL) { + compiled_task_ = new ::flyteidl::core::CompiledTask; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskClosure.compiled_task) + return compiled_task_; +} +inline void TaskClosure::set_allocated_compiled_task(::flyteidl::core::CompiledTask* compiled_task) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_task_); + } + if (compiled_task) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + compiled_task = ::google::protobuf::internal::GetOwnedMessage( + message_arena, compiled_task, submessage_arena); + } + + } else { + + } + compiled_task_ = compiled_task; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskClosure.compiled_task) +} + +// .google.protobuf.Timestamp created_at = 2; +inline bool TaskClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& TaskClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskClosure.created_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* TaskClosure::mutable_created_at() { + + if (created_at_ == NULL) { + created_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskClosure.created_at) + return created_at_; +} +inline void TaskClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskClosure.created_at) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2ftask_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc new file mode 100644 index 0000000000..26f2f393d2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task_execution.proto + +#include "flyteidl/admin/task_execution.pb.h" +#include "flyteidl/admin/task_execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h new file mode 100644 index 0000000000..51f74de8d8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/task_execution.proto +#ifndef GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED + +#include "flyteidl/admin/task_execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc new file mode 100644 index 0000000000..bb72630b11 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc @@ -0,0 +1,3103 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +#include "flyteidl/admin/task_execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class TaskExecutionGetRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionGetRequest_default_instance_; +class TaskExecutionListRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionListRequest_default_instance_; +class TaskExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecution_default_instance_; +class TaskExecutionListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionList_default_instance_; +class TaskExecutionClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; +} _TaskExecutionClosure_default_instance_; +class TaskExecutionGetDataRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionGetDataRequest_default_instance_; +class TaskExecutionGetDataResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionGetDataResponse_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto { +void InitDefaultsTaskExecutionGetRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionGetRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionGetRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionGetRequest::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionGetRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionGetRequestImpl); +} + +void InitDefaultsTaskExecutionListRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsSort(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionListRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionListRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionListRequest::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionListRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionListRequestImpl); +} + +void InitDefaultsTaskExecutionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionClosure(); + { + void* ptr = &::flyteidl::admin::_TaskExecution_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecution::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecution() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionImpl); +} + +void InitDefaultsTaskExecutionListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecution(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionList_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionList::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionListImpl); +} + +void InitDefaultsTaskExecutionClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskLog(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionClosure_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionClosure::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionClosureImpl); +} + +void InitDefaultsTaskExecutionGetDataRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionGetDataRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionGetDataRequest::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionGetDataRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionGetDataRequestImpl); +} + +void InitDefaultsTaskExecutionGetDataResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fcommon_2eproto::InitDefaultsUrlBlob(); + { + void* ptr = &::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_; + new (ptr) ::flyteidl::admin::TaskExecutionGetDataResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::TaskExecutionGetDataResponse::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionGetDataResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionGetDataResponseImpl); +} + +::google::protobuf::Metadata file_level_metadata[7]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, node_execution_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, limit_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, token_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, filters_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, sort_by_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecution, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecution, input_uri_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecution, closure_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecution, is_parent_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, task_executions_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, error_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, logs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, started_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, duration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, created_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, updated_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, custom_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, output_result_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataRequest, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, outputs_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::TaskExecutionGetRequest)}, + { 6, -1, sizeof(::flyteidl::admin::TaskExecutionListRequest)}, + { 16, -1, sizeof(::flyteidl::admin::TaskExecution)}, + { 25, -1, sizeof(::flyteidl::admin::TaskExecutionList)}, + { 32, -1, sizeof(::flyteidl::admin::TaskExecutionClosure)}, + { 47, -1, sizeof(::flyteidl::admin::TaskExecutionGetDataRequest)}, + { 53, -1, sizeof(::flyteidl::admin::TaskExecutionGetDataResponse)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionListRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecution_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/task_execution.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n#flyteidl/admin/task_execution.proto\022\016f" + "lyteidl.admin\032\033flyteidl/admin/common.pro" + "to\032\035flyteidl/core/execution.proto\032\036flyte" + "idl/core/identifier.proto\032\037google/protob" + "uf/timestamp.proto\032\036google/protobuf/dura" + "tion.proto\032\034google/protobuf/struct.proto" + "\"M\n\027TaskExecutionGetRequest\0222\n\002id\030\001 \001(\0132" + "&.flyteidl.core.TaskExecutionIdentifier\"" + "\263\001\n\030TaskExecutionListRequest\022A\n\021node_exe" + "cution_id\030\001 \001(\0132&.flyteidl.core.NodeExec" + "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + "\024.flyteidl.admin.Sort\"\240\001\n\rTaskExecution\022" + "2\n\002id\030\001 \001(\0132&.flyteidl.core.TaskExecutio" + "nIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007closur" + "e\030\003 \001(\0132$.flyteidl.admin.TaskExecutionCl" + "osure\022\021\n\tis_parent\030\004 \001(\010\"Z\n\021TaskExecutio" + "nList\0226\n\017task_executions\030\001 \003(\0132\035.flyteid" + "l.admin.TaskExecution\022\r\n\005token\030\002 \001(\t\"\261\003\n" + "\024TaskExecutionClosure\022\024\n\noutput_uri\030\001 \001(" + "\tH\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Execu" + "tionErrorH\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + "re.TaskExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.f" + "lyteidl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\013" + "2\032.google.protobuf.Timestamp\022+\n\010duration" + "\030\006 \001(\0132\031.google.protobuf.Duration\022.\n\ncre" + "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + "p\022.\n\nupdated_at\030\010 \001(\0132\032.google.protobuf." + "Timestamp\022,\n\013custom_info\030\t \001(\0132\027.google." + "protobuf.StructB\017\n\routput_result\"Q\n\033Task" + "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + "yteidl.core.TaskExecutionIdentifier\"q\n\034T" + "askExecutionGetDataResponse\022\'\n\006inputs\030\001 " + "\001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outputs\030" + "\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1github" + ".com/lyft/flyteidl/gen/pb-go/flyteidl/ad" + "minb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1451); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/task_execution.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void TaskExecutionGetRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +void TaskExecutionGetRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionGetRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionGetRequest::TaskExecutionGetRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetRequest) +} +TaskExecutionGetRequest::TaskExecutionGetRequest(const TaskExecutionGetRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetRequest) +} + +void TaskExecutionGetRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +TaskExecutionGetRequest::~TaskExecutionGetRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetRequest) + SharedDtor(); +} + +void TaskExecutionGetRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void TaskExecutionGetRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionGetRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionGetRequest& TaskExecutionGetRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetRequest(); + return *internal_default_instance(); +} + +TaskExecutionGetRequest* TaskExecutionGetRequest::New(::google::protobuf::Arena* arena) const { + TaskExecutionGetRequest* n = new TaskExecutionGetRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionGetRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskExecutionGetRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionGetRequest) + 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)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.TaskExecutionGetRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetRequest) + return false; +#undef DO_ +} + +void TaskExecutionGetRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionGetRequest) +} + +::google::protobuf::uint8* TaskExecutionGetRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionGetRequest) + return target; +} + +size_t TaskExecutionGetRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionGetRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetRequest) + MergeFrom(*source); + } +} + +void TaskExecutionGetRequest::MergeFrom(const TaskExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } +} + +void TaskExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionGetRequest::CopyFrom(const TaskExecutionGetRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionGetRequest::IsInitialized() const { + return true; +} + +void TaskExecutionGetRequest::Swap(TaskExecutionGetRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionGetRequest::InternalSwap(TaskExecutionGetRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionGetRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionListRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionListRequest_default_instance_._instance.get_mutable()->node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( + ::flyteidl::admin::Sort::internal_default_instance()); +} +void TaskExecutionListRequest::clear_node_execution_id() { + if (GetArenaNoVirtual() == NULL && node_execution_id_ != NULL) { + delete node_execution_id_; + } + node_execution_id_ = NULL; +} +void TaskExecutionListRequest::clear_sort_by() { + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionListRequest::kNodeExecutionIdFieldNumber; +const int TaskExecutionListRequest::kLimitFieldNumber; +const int TaskExecutionListRequest::kTokenFieldNumber; +const int TaskExecutionListRequest::kFiltersFieldNumber; +const int TaskExecutionListRequest::kSortByFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionListRequest::TaskExecutionListRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionListRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionListRequest) +} +TaskExecutionListRequest::TaskExecutionListRequest(const TaskExecutionListRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _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_); + } + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.filters().size() > 0) { + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_node_execution_id()) { + node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.node_execution_id_); + } else { + node_execution_id_ = NULL; + } + if (from.has_sort_by()) { + sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); + } else { + sort_by_ = NULL; + } + limit_ = from.limit_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionListRequest) +} + +void TaskExecutionListRequest::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&node_execution_id_, 0, static_cast( + reinterpret_cast(&limit_) - + reinterpret_cast(&node_execution_id_)) + sizeof(limit_)); + _cached_size_ = 0; +} + +TaskExecutionListRequest::~TaskExecutionListRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionListRequest) + SharedDtor(); +} + +void TaskExecutionListRequest::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete node_execution_id_; + if (this != internal_default_instance()) delete sort_by_; +} + +void TaskExecutionListRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionListRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionListRequest& TaskExecutionListRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionListRequest(); + return *internal_default_instance(); +} + +TaskExecutionListRequest* TaskExecutionListRequest::New(::google::protobuf::Arena* arena) const { + TaskExecutionListRequest* n = new TaskExecutionListRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionListRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && node_execution_id_ != NULL) { + delete node_execution_id_; + } + node_execution_id_ = NULL; + if (GetArenaNoVirtual() == NULL && sort_by_ != NULL) { + delete sort_by_; + } + sort_by_ = NULL; + limit_ = 0u; + _internal_metadata_.Clear(); +} + +bool TaskExecutionListRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionListRequest) + 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)) { + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 limit = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &limit_))); + } else { + goto handle_unusual; + } + break; + } + + // string token = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 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.TaskExecutionListRequest.token")); + } else { + goto handle_unusual; + } + break; + } + + // string filters = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_filters())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionListRequest.filters")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.Sort sort_by = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sort_by())); + } 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.TaskExecutionListRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionListRequest) + return false; +#undef DO_ +} + +void TaskExecutionListRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + if (this->has_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->node_execution_id_, output); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); + } + + // string token = 3; + 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.TaskExecutionListRequest.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->token(), output); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionListRequest.filters"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->filters(), output); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->sort_by_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionListRequest) +} + +::google::protobuf::uint8* TaskExecutionListRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + if (this->has_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->node_execution_id_, deterministic, target); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); + } + + // string token = 3; + 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.TaskExecutionListRequest.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->token(), target); + } + + // string filters = 4; + if (this->filters().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->filters().data(), static_cast(this->filters().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionListRequest.filters"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->filters(), target); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->sort_by_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionListRequest) + return target; +} + +size_t TaskExecutionListRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionListRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string token = 3; + if (this->token().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->token()); + } + + // string filters = 4; + if (this->filters().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->filters()); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + if (this->has_node_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->node_execution_id_); + } + + // .flyteidl.admin.Sort sort_by = 5; + if (this->has_sort_by()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->sort_by_); + } + + // uint32 limit = 2; + if (this->limit() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->limit()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionListRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionListRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionListRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionListRequest) + MergeFrom(*source); + } +} + +void TaskExecutionListRequest::MergeFrom(const TaskExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionListRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } + if (from.filters().size() > 0) { + + filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); + } + if (from.has_node_execution_id()) { + mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); + } + if (from.has_sort_by()) { + mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); + } + if (from.limit() != 0) { + set_limit(from.limit()); + } +} + +void TaskExecutionListRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionListRequest::CopyFrom(const TaskExecutionListRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionListRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionListRequest::IsInitialized() const { + return true; +} + +void TaskExecutionListRequest::Swap(TaskExecutionListRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionListRequest::InternalSwap(TaskExecutionListRequest* other) { + using std::swap; + token_.Swap(&other->token_); + filters_.Swap(&other->filters_); + swap(node_execution_id_, other->node_execution_id_); + swap(sort_by_, other->sort_by_); + swap(limit_, other->limit_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionListRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecution::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); + ::flyteidl::admin::_TaskExecution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::TaskExecutionClosure*>( + ::flyteidl::admin::TaskExecutionClosure::internal_default_instance()); +} +void TaskExecution::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecution::kIdFieldNumber; +const int TaskExecution::kInputUriFieldNumber; +const int TaskExecution::kClosureFieldNumber; +const int TaskExecution::kIsParentFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecution::TaskExecution() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecution(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecution) +} +TaskExecution::TaskExecution(const TaskExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_uri().size() > 0) { + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::TaskExecutionClosure(*from.closure_); + } else { + closure_ = NULL; + } + is_parent_ = from.is_parent_; + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecution) +} + +void TaskExecution::SharedCtor() { + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&is_parent_) - + reinterpret_cast(&id_)) + sizeof(is_parent_)); + _cached_size_ = 0; +} + +TaskExecution::~TaskExecution() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecution) + SharedDtor(); +} + +void TaskExecution::SharedDtor() { + input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void TaskExecution::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecution::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecution& TaskExecution::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecution(); + return *internal_default_instance(); +} + +TaskExecution* TaskExecution::New(::google::protobuf::Arena* arena) const { + TaskExecution* n = new TaskExecution; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; + is_parent_ = false; + _internal_metadata_.Clear(); +} + +bool TaskExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecution) + 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)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecution.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } else { + goto handle_unusual; + } + break; + } + + // bool is_parent = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &is_parent_))); + } 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.TaskExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecution) + return false; +#undef DO_ +} + +void TaskExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecution.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->input_uri(), output); + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->closure_, output); + } + + // bool is_parent = 4; + if (this->is_parent() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_parent(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecution) +} + +::google::protobuf::uint8* TaskExecution::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // string input_uri = 2; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecution.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->input_uri(), target); + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->closure_, deterministic, target); + } + + // bool is_parent = 4; + if (this->is_parent() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_parent(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecution) + return target; +} + +size_t TaskExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecution) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string input_uri = 2; + if (this->input_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + } + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->closure_); + } + + // bool is_parent = 4; + if (this->is_parent() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecution* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecution) + MergeFrom(*source); + } +} + +void TaskExecution::MergeFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.input_uri().size() > 0) { + + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::TaskExecutionClosure::MergeFrom(from.closure()); + } + if (from.is_parent() != 0) { + set_is_parent(from.is_parent()); + } +} + +void TaskExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecution::CopyFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecution::IsInitialized() const { + return true; +} + +void TaskExecution::Swap(TaskExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecution::InternalSwap(TaskExecution* other) { + using std::swap; + input_uri_.Swap(&other->input_uri_); + swap(id_, other->id_); + swap(closure_, other->closure_); + swap(is_parent_, other->is_parent_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecution::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionList::kTaskExecutionsFieldNumber; +const int TaskExecutionList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionList::TaskExecutionList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionList) +} +TaskExecutionList::TaskExecutionList(const TaskExecutionList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + task_executions_(from.task_executions_), + _cached_size_(0) { + _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.TaskExecutionList) +} + +void TaskExecutionList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +TaskExecutionList::~TaskExecutionList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionList) + SharedDtor(); +} + +void TaskExecutionList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void TaskExecutionList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionList::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionList& TaskExecutionList::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionList(); + return *internal_default_instance(); +} + +TaskExecutionList* TaskExecutionList::New(::google::protobuf::Arena* arena) const { + TaskExecutionList* n = new TaskExecutionList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + task_executions_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool TaskExecutionList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionList) + 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.admin.TaskExecution task_executions = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_task_executions())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.TaskExecutionList.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.TaskExecutionList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionList) + return false; +#undef DO_ +} + +void TaskExecutionList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->task_executions_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->task_executions(static_cast(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.TaskExecutionList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionList) +} + +::google::protobuf::uint8* TaskExecutionList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + for (unsigned int i = 0, + n = static_cast(this->task_executions_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->task_executions(static_cast(i)), deterministic, 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.TaskExecutionList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionList) + return target; +} + +size_t TaskExecutionList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + { + unsigned int count = static_cast(this->task_executions_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->task_executions(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionList) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionList) + MergeFrom(*source); + } +} + +void TaskExecutionList::MergeFrom(const TaskExecutionList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + task_executions_.MergeFrom(from.task_executions_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void TaskExecutionList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionList::CopyFrom(const TaskExecutionList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionList::IsInitialized() const { + return true; +} + +void TaskExecutionList::Swap(TaskExecutionList* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionList::InternalSwap(TaskExecutionList* other) { + using std::swap; + task_executions_.InternalSwap(&other->task_executions_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionClosure_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->custom_info_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +void TaskExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.error) +} +void TaskExecutionClosure::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void TaskExecutionClosure::clear_logs() { + logs_.Clear(); +} +void TaskExecutionClosure::clear_started_at() { + if (GetArenaNoVirtual() == NULL && started_at_ != NULL) { + delete started_at_; + } + started_at_ = NULL; +} +void TaskExecutionClosure::clear_duration() { + if (GetArenaNoVirtual() == NULL && duration_ != NULL) { + delete duration_; + } + duration_ = NULL; +} +void TaskExecutionClosure::clear_created_at() { + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; +} +void TaskExecutionClosure::clear_updated_at() { + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; +} +void TaskExecutionClosure::clear_custom_info() { + if (GetArenaNoVirtual() == NULL && custom_info_ != NULL) { + delete custom_info_; + } + custom_info_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionClosure::kOutputUriFieldNumber; +const int TaskExecutionClosure::kErrorFieldNumber; +const int TaskExecutionClosure::kPhaseFieldNumber; +const int TaskExecutionClosure::kLogsFieldNumber; +const int TaskExecutionClosure::kStartedAtFieldNumber; +const int TaskExecutionClosure::kDurationFieldNumber; +const int TaskExecutionClosure::kCreatedAtFieldNumber; +const int TaskExecutionClosure::kUpdatedAtFieldNumber; +const int TaskExecutionClosure::kCustomInfoFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionClosure::TaskExecutionClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionClosure) +} +TaskExecutionClosure::TaskExecutionClosure(const TaskExecutionClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + logs_(from.logs_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_started_at()) { + started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); + } else { + started_at_ = NULL; + } + if (from.has_duration()) { + duration_ = new ::google::protobuf::Duration(*from.duration_); + } else { + duration_ = NULL; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = NULL; + } + if (from.has_updated_at()) { + updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); + } else { + updated_at_ = NULL; + } + if (from.has_custom_info()) { + custom_info_ = new ::google::protobuf::Struct(*from.custom_info_); + } else { + custom_info_ = NULL; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionClosure) +} + +void TaskExecutionClosure::SharedCtor() { + ::memset(&started_at_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&started_at_)) + sizeof(phase_)); + clear_has_output_result(); + _cached_size_ = 0; +} + +TaskExecutionClosure::~TaskExecutionClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionClosure) + SharedDtor(); +} + +void TaskExecutionClosure::SharedDtor() { + if (this != internal_default_instance()) delete started_at_; + if (this != internal_default_instance()) delete duration_; + if (this != internal_default_instance()) delete created_at_; + if (this != internal_default_instance()) delete updated_at_; + if (this != internal_default_instance()) delete custom_info_; + if (has_output_result()) { + clear_output_result(); + } +} + +void TaskExecutionClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionClosure::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionClosure& TaskExecutionClosure::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionClosure(); + return *internal_default_instance(); +} + +TaskExecutionClosure* TaskExecutionClosure::New(::google::protobuf::Arena* arena) const { + TaskExecutionClosure* n = new TaskExecutionClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionClosure::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.TaskExecutionClosure) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void TaskExecutionClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + if (GetArenaNoVirtual() == NULL && started_at_ != NULL) { + delete started_at_; + } + started_at_ = NULL; + if (GetArenaNoVirtual() == NULL && duration_ != NULL) { + delete duration_; + } + duration_ = NULL; + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; + if (GetArenaNoVirtual() == NULL && updated_at_ != NULL) { + delete updated_at_; + } + updated_at_ = NULL; + if (GetArenaNoVirtual() == NULL && custom_info_ != NULL) { + delete custom_info_; + } + custom_info_ = NULL; + phase_ = 0; + clear_output_result(); + _internal_metadata_.Clear(); +} + +bool TaskExecutionClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionClosure) + 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 output_uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.admin.TaskExecutionClosure.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskLog logs = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_logs())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp started_at = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_started_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp updated_at = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_updated_at())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct custom_info = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_custom_info())); + } 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.TaskExecutionClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionClosure) + return false; +#undef DO_ +} + +void TaskExecutionClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *output_result_.error_, output); + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // repeated .flyteidl.core.TaskLog logs = 4; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->logs(static_cast(i)), output); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->started_at_, output); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->duration_, output); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->created_at_, output); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *this->updated_at_, output); + } + + // .google.protobuf.Struct custom_info = 9; + if (this->has_custom_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, *this->custom_info_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionClosure) +} + +::google::protobuf::uint8* TaskExecutionClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string output_uri = 1; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.admin.TaskExecutionClosure.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 2; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *output_result_.error_, deterministic, target); + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // repeated .flyteidl.core.TaskLog logs = 4; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->logs(static_cast(i)), deterministic, target); + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->started_at_, deterministic, target); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->duration_, deterministic, target); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->created_at_, deterministic, target); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *this->updated_at_, deterministic, target); + } + + // .google.protobuf.Struct custom_info = 9; + if (this->has_custom_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, *this->custom_info_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionClosure) + return target; +} + +size_t TaskExecutionClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.TaskLog logs = 4; + { + unsigned int count = static_cast(this->logs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->logs(static_cast(i))); + } + } + + // .google.protobuf.Timestamp started_at = 5; + if (this->has_started_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->started_at_); + } + + // .google.protobuf.Duration duration = 6; + if (this->has_duration()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->duration_); + } + + // .google.protobuf.Timestamp created_at = 7; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->created_at_); + } + + // .google.protobuf.Timestamp updated_at = 8; + if (this->has_updated_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->updated_at_); + } + + // .google.protobuf.Struct custom_info = 9; + if (this->has_custom_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->custom_info_); + } + + // .flyteidl.core.TaskExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // string output_uri = 1; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 2; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionClosure) + MergeFrom(*source); + } +} + +void TaskExecutionClosure::MergeFrom(const TaskExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + logs_.MergeFrom(from.logs_); + if (from.has_started_at()) { + mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); + } + if (from.has_duration()) { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } + if (from.has_updated_at()) { + mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); + } + if (from.has_custom_info()) { + mutable_custom_info()->::google::protobuf::Struct::MergeFrom(from.custom_info()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void TaskExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionClosure::CopyFrom(const TaskExecutionClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionClosure::IsInitialized() const { + return true; +} + +void TaskExecutionClosure::Swap(TaskExecutionClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionClosure::InternalSwap(TaskExecutionClosure* other) { + using std::swap; + logs_.InternalSwap(&other->logs_); + swap(started_at_, other->started_at_); + swap(duration_, other->duration_); + swap(created_at_, other->created_at_); + swap(updated_at_, other->updated_at_); + swap(custom_info_, other->custom_info_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionClosure::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionGetDataRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +void TaskExecutionGetDataRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionGetDataRequest::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionGetDataRequest::TaskExecutionGetDataRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetDataRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetDataRequest) +} +TaskExecutionGetDataRequest::TaskExecutionGetDataRequest(const TaskExecutionGetDataRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetDataRequest) +} + +void TaskExecutionGetDataRequest::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +TaskExecutionGetDataRequest::~TaskExecutionGetDataRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetDataRequest) + SharedDtor(); +} + +void TaskExecutionGetDataRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void TaskExecutionGetDataRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionGetDataRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionGetDataRequest& TaskExecutionGetDataRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetDataRequest(); + return *internal_default_instance(); +} + +TaskExecutionGetDataRequest* TaskExecutionGetDataRequest::New(::google::protobuf::Arena* arena) const { + TaskExecutionGetDataRequest* n = new TaskExecutionGetDataRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionGetDataRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskExecutionGetDataRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionGetDataRequest) + 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)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.TaskExecutionGetDataRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetDataRequest) + return false; +#undef DO_ +} + +void TaskExecutionGetDataRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionGetDataRequest) +} + +::google::protobuf::uint8* TaskExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionGetDataRequest) + return target; +} + +size_t TaskExecutionGetDataRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetDataRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionGetDataRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetDataRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetDataRequest) + MergeFrom(*source); + } +} + +void TaskExecutionGetDataRequest::MergeFrom(const TaskExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } +} + +void TaskExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionGetDataRequest::CopyFrom(const TaskExecutionGetDataRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetDataRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionGetDataRequest::IsInitialized() const { + return true; +} + +void TaskExecutionGetDataRequest::Swap(TaskExecutionGetDataRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionGetDataRequest::InternalSwap(TaskExecutionGetDataRequest* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionGetDataRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionGetDataResponse::InitAsDefaultInstance() { + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); + ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( + ::flyteidl::admin::UrlBlob::internal_default_instance()); +} +void TaskExecutionGetDataResponse::clear_inputs() { + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; +} +void TaskExecutionGetDataResponse::clear_outputs() { + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionGetDataResponse::kInputsFieldNumber; +const int TaskExecutionGetDataResponse::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionGetDataResponse::TaskExecutionGetDataResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetDataResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetDataResponse) +} +TaskExecutionGetDataResponse::TaskExecutionGetDataResponse(const TaskExecutionGetDataResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_inputs()) { + inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); + } else { + inputs_ = NULL; + } + if (from.has_outputs()) { + outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); + } else { + outputs_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetDataResponse) +} + +void TaskExecutionGetDataResponse::SharedCtor() { + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&outputs_) - + reinterpret_cast(&inputs_)) + sizeof(outputs_)); + _cached_size_ = 0; +} + +TaskExecutionGetDataResponse::~TaskExecutionGetDataResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetDataResponse) + SharedDtor(); +} + +void TaskExecutionGetDataResponse::SharedDtor() { + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete outputs_; +} + +void TaskExecutionGetDataResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionGetDataResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionGetDataResponse& TaskExecutionGetDataResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetDataResponse(); + return *internal_default_instance(); +} + +TaskExecutionGetDataResponse* TaskExecutionGetDataResponse::New(::google::protobuf::Arena* arena) const { + TaskExecutionGetDataResponse* n = new TaskExecutionGetDataResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionGetDataResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; + _internal_metadata_.Clear(); +} + +bool TaskExecutionGetDataResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.TaskExecutionGetDataResponse) + 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)) { + // .flyteidl.admin.UrlBlob inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.UrlBlob outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } 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.TaskExecutionGetDataResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetDataResponse) + return false; +#undef DO_ +} + +void TaskExecutionGetDataResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->inputs_, output); + } + + // .flyteidl.admin.UrlBlob outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->outputs_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionGetDataResponse) +} + +::google::protobuf::uint8* TaskExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.UrlBlob inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->inputs_, deterministic, target); + } + + // .flyteidl.admin.UrlBlob outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->outputs_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.TaskExecutionGetDataResponse) + return target; +} + +size_t TaskExecutionGetDataResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetDataResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.admin.UrlBlob inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->inputs_); + } + + // .flyteidl.admin.UrlBlob outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->outputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionGetDataResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetDataResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetDataResponse) + MergeFrom(*source); + } +} + +void TaskExecutionGetDataResponse::MergeFrom(const TaskExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); + } + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); + } +} + +void TaskExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionGetDataResponse::CopyFrom(const TaskExecutionGetDataResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetDataResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionGetDataResponse::IsInitialized() const { + return true; +} + +void TaskExecutionGetDataResponse::Swap(TaskExecutionGetDataResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionGetDataResponse::InternalSwap(TaskExecutionGetDataResponse* other) { + using std::swap; + swap(inputs_, other->inputs_); + swap(outputs_, other->outputs_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionGetDataResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h new file mode 100644 index 0000000000..514f54e775 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h @@ -0,0 +1,2120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/admin/common.pb.h" +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[7]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsTaskExecutionGetRequestImpl(); +void InitDefaultsTaskExecutionGetRequest(); +void InitDefaultsTaskExecutionListRequestImpl(); +void InitDefaultsTaskExecutionListRequest(); +void InitDefaultsTaskExecutionImpl(); +void InitDefaultsTaskExecution(); +void InitDefaultsTaskExecutionListImpl(); +void InitDefaultsTaskExecutionList(); +void InitDefaultsTaskExecutionClosureImpl(); +void InitDefaultsTaskExecutionClosure(); +void InitDefaultsTaskExecutionGetDataRequestImpl(); +void InitDefaultsTaskExecutionGetDataRequest(); +void InitDefaultsTaskExecutionGetDataResponseImpl(); +void InitDefaultsTaskExecutionGetDataResponse(); +inline void InitDefaults() { + InitDefaultsTaskExecutionGetRequest(); + InitDefaultsTaskExecutionListRequest(); + InitDefaultsTaskExecution(); + InitDefaultsTaskExecutionList(); + InitDefaultsTaskExecutionClosure(); + InitDefaultsTaskExecutionGetDataRequest(); + InitDefaultsTaskExecutionGetDataResponse(); +} +} // namespace protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto +namespace flyteidl { +namespace admin { +class TaskExecution; +class TaskExecutionDefaultTypeInternal; +extern TaskExecutionDefaultTypeInternal _TaskExecution_default_instance_; +class TaskExecutionClosure; +class TaskExecutionClosureDefaultTypeInternal; +extern TaskExecutionClosureDefaultTypeInternal _TaskExecutionClosure_default_instance_; +class TaskExecutionGetDataRequest; +class TaskExecutionGetDataRequestDefaultTypeInternal; +extern TaskExecutionGetDataRequestDefaultTypeInternal _TaskExecutionGetDataRequest_default_instance_; +class TaskExecutionGetDataResponse; +class TaskExecutionGetDataResponseDefaultTypeInternal; +extern TaskExecutionGetDataResponseDefaultTypeInternal _TaskExecutionGetDataResponse_default_instance_; +class TaskExecutionGetRequest; +class TaskExecutionGetRequestDefaultTypeInternal; +extern TaskExecutionGetRequestDefaultTypeInternal _TaskExecutionGetRequest_default_instance_; +class TaskExecutionList; +class TaskExecutionListDefaultTypeInternal; +extern TaskExecutionListDefaultTypeInternal _TaskExecutionList_default_instance_; +class TaskExecutionListRequest; +class TaskExecutionListRequestDefaultTypeInternal; +extern TaskExecutionListRequestDefaultTypeInternal _TaskExecutionListRequest_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class TaskExecutionGetRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetRequest) */ { + public: + TaskExecutionGetRequest(); + virtual ~TaskExecutionGetRequest(); + + TaskExecutionGetRequest(const TaskExecutionGetRequest& from); + + inline TaskExecutionGetRequest& operator=(const TaskExecutionGetRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionGetRequest(TaskExecutionGetRequest&& from) noexcept + : TaskExecutionGetRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionGetRequest& operator=(TaskExecutionGetRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionGetRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionGetRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionGetRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(TaskExecutionGetRequest* other); + friend void swap(TaskExecutionGetRequest& a, TaskExecutionGetRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionGetRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionGetRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionGetRequest& from); + void MergeFrom(const TaskExecutionGetRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionGetRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetRequestImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionListRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionListRequest) */ { + public: + TaskExecutionListRequest(); + virtual ~TaskExecutionListRequest(); + + TaskExecutionListRequest(const TaskExecutionListRequest& from); + + inline TaskExecutionListRequest& operator=(const TaskExecutionListRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionListRequest(TaskExecutionListRequest&& from) noexcept + : TaskExecutionListRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionListRequest& operator=(TaskExecutionListRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionListRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionListRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionListRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(TaskExecutionListRequest* other); + friend void swap(TaskExecutionListRequest& a, TaskExecutionListRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionListRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionListRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionListRequest& from); + void MergeFrom(const TaskExecutionListRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionListRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string token = 3; + void clear_token(); + static const int kTokenFieldNumber = 3; + 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); + + // string filters = 4; + void clear_filters(); + static const int kFiltersFieldNumber = 4; + const ::std::string& filters() const; + void set_filters(const ::std::string& value); + #if LANG_CXX11 + void set_filters(::std::string&& value); + #endif + void set_filters(const char* value); + void set_filters(const char* value, size_t size); + ::std::string* mutable_filters(); + ::std::string* release_filters(); + void set_allocated_filters(::std::string* filters); + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + bool has_node_execution_id() const; + void clear_node_execution_id(); + static const int kNodeExecutionIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); + void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); + + // .flyteidl.admin.Sort sort_by = 5; + bool has_sort_by() const; + void clear_sort_by(); + static const int kSortByFieldNumber = 5; + const ::flyteidl::admin::Sort& sort_by() const; + ::flyteidl::admin::Sort* release_sort_by(); + ::flyteidl::admin::Sort* mutable_sort_by(); + void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); + + // uint32 limit = 2; + void clear_limit(); + static const int kLimitFieldNumber = 2; + ::google::protobuf::uint32 limit() const; + void set_limit(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr token_; + ::google::protobuf::internal::ArenaStringPtr filters_; + ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; + ::flyteidl::admin::Sort* sort_by_; + ::google::protobuf::uint32 limit_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionListRequestImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecution) */ { + public: + TaskExecution(); + virtual ~TaskExecution(); + + TaskExecution(const TaskExecution& from); + + inline TaskExecution& operator=(const TaskExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecution(TaskExecution&& from) noexcept + : TaskExecution() { + *this = ::std::move(from); + } + + inline TaskExecution& operator=(TaskExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecution* internal_default_instance() { + return reinterpret_cast( + &_TaskExecution_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(TaskExecution* other); + friend void swap(TaskExecution& a, TaskExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecution* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecution* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecution& from); + void MergeFrom(const TaskExecution& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string input_uri = 2; + void clear_input_uri(); + static const int kInputUriFieldNumber = 2; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // .flyteidl.admin.TaskExecutionClosure closure = 3; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 3; + const ::flyteidl::admin::TaskExecutionClosure& closure() const; + ::flyteidl::admin::TaskExecutionClosure* release_closure(); + ::flyteidl::admin::TaskExecutionClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::TaskExecutionClosure* closure); + + // bool is_parent = 4; + void clear_is_parent(); + static const int kIsParentFieldNumber = 4; + bool is_parent() const; + void set_is_parent(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + ::flyteidl::admin::TaskExecutionClosure* closure_; + bool is_parent_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionList) */ { + public: + TaskExecutionList(); + virtual ~TaskExecutionList(); + + TaskExecutionList(const TaskExecutionList& from); + + inline TaskExecutionList& operator=(const TaskExecutionList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionList(TaskExecutionList&& from) noexcept + : TaskExecutionList() { + *this = ::std::move(from); + } + + inline TaskExecutionList& operator=(TaskExecutionList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionList* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(TaskExecutionList* other); + friend void swap(TaskExecutionList& a, TaskExecutionList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionList* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionList& from); + void MergeFrom(const TaskExecutionList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.TaskExecution task_executions = 1; + int task_executions_size() const; + void clear_task_executions(); + static const int kTaskExecutionsFieldNumber = 1; + const ::flyteidl::admin::TaskExecution& task_executions(int index) const; + ::flyteidl::admin::TaskExecution* mutable_task_executions(int index); + ::flyteidl::admin::TaskExecution* add_task_executions(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >* + mutable_task_executions(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >& + task_executions() const; + + // 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.TaskExecutionList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution > task_executions_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionListImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionClosure) */ { + public: + TaskExecutionClosure(); + virtual ~TaskExecutionClosure(); + + TaskExecutionClosure(const TaskExecutionClosure& from); + + inline TaskExecutionClosure& operator=(const TaskExecutionClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionClosure(TaskExecutionClosure&& from) noexcept + : TaskExecutionClosure() { + *this = ::std::move(from); + } + + inline TaskExecutionClosure& operator=(TaskExecutionClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionClosure& default_instance(); + + enum OutputResultCase { + kOutputUri = 1, + kError = 2, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionClosure* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(TaskExecutionClosure* other); + friend void swap(TaskExecutionClosure& a, TaskExecutionClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionClosure& from); + void MergeFrom(const TaskExecutionClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskLog logs = 4; + int logs_size() const; + void clear_logs(); + static const int kLogsFieldNumber = 4; + const ::flyteidl::core::TaskLog& logs(int index) const; + ::flyteidl::core::TaskLog* mutable_logs(int index); + ::flyteidl::core::TaskLog* add_logs(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* + mutable_logs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& + logs() const; + + // .google.protobuf.Timestamp started_at = 5; + bool has_started_at() const; + void clear_started_at(); + static const int kStartedAtFieldNumber = 5; + const ::google::protobuf::Timestamp& started_at() const; + ::google::protobuf::Timestamp* release_started_at(); + ::google::protobuf::Timestamp* mutable_started_at(); + void set_allocated_started_at(::google::protobuf::Timestamp* started_at); + + // .google.protobuf.Duration duration = 6; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 6; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + // .google.protobuf.Timestamp created_at = 7; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 7; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // .google.protobuf.Timestamp updated_at = 8; + bool has_updated_at() const; + void clear_updated_at(); + static const int kUpdatedAtFieldNumber = 8; + const ::google::protobuf::Timestamp& updated_at() const; + ::google::protobuf::Timestamp* release_updated_at(); + ::google::protobuf::Timestamp* mutable_updated_at(); + void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); + + // .google.protobuf.Struct custom_info = 9; + bool has_custom_info() const; + void clear_custom_info(); + static const int kCustomInfoFieldNumber = 9; + const ::google::protobuf::Struct& custom_info() const; + ::google::protobuf::Struct* release_custom_info(); + ::google::protobuf::Struct* mutable_custom_info(); + void set_allocated_custom_info(::google::protobuf::Struct* custom_info); + + // .flyteidl.core.TaskExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::TaskExecution_Phase phase() const; + void set_phase(::flyteidl::core::TaskExecution_Phase value); + + // string output_uri = 1; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 1; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 2; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 2; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + private: + void set_has_output_uri(); + void set_has_error(); + + inline bool has_output_result() const; + void clear_output_result(); + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; + ::google::protobuf::Timestamp* started_at_; + ::google::protobuf::Duration* duration_; + ::google::protobuf::Timestamp* created_at_; + ::google::protobuf::Timestamp* updated_at_; + ::google::protobuf::Struct* custom_info_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + } output_result_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionClosureImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionGetDataRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetDataRequest) */ { + public: + TaskExecutionGetDataRequest(); + virtual ~TaskExecutionGetDataRequest(); + + TaskExecutionGetDataRequest(const TaskExecutionGetDataRequest& from); + + inline TaskExecutionGetDataRequest& operator=(const TaskExecutionGetDataRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionGetDataRequest(TaskExecutionGetDataRequest&& from) noexcept + : TaskExecutionGetDataRequest() { + *this = ::std::move(from); + } + + inline TaskExecutionGetDataRequest& operator=(TaskExecutionGetDataRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionGetDataRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionGetDataRequest* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionGetDataRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(TaskExecutionGetDataRequest* other); + friend void swap(TaskExecutionGetDataRequest& a, TaskExecutionGetDataRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionGetDataRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionGetDataRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionGetDataRequest& from); + void MergeFrom(const TaskExecutionGetDataRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionGetDataRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetDataRequestImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionGetDataResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetDataResponse) */ { + public: + TaskExecutionGetDataResponse(); + virtual ~TaskExecutionGetDataResponse(); + + TaskExecutionGetDataResponse(const TaskExecutionGetDataResponse& from); + + inline TaskExecutionGetDataResponse& operator=(const TaskExecutionGetDataResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionGetDataResponse(TaskExecutionGetDataResponse&& from) noexcept + : TaskExecutionGetDataResponse() { + *this = ::std::move(from); + } + + inline TaskExecutionGetDataResponse& operator=(TaskExecutionGetDataResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionGetDataResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionGetDataResponse* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionGetDataResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(TaskExecutionGetDataResponse* other); + friend void swap(TaskExecutionGetDataResponse& a, TaskExecutionGetDataResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionGetDataResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionGetDataResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionGetDataResponse& from); + void MergeFrom(const TaskExecutionGetDataResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionGetDataResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.UrlBlob inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::admin::UrlBlob& inputs() const; + ::flyteidl::admin::UrlBlob* release_inputs(); + ::flyteidl::admin::UrlBlob* mutable_inputs(); + void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); + + // .flyteidl.admin.UrlBlob outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::admin::UrlBlob& outputs() const; + ::flyteidl::admin::UrlBlob* release_outputs(); + ::flyteidl::admin::UrlBlob* mutable_outputs(); + void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::admin::UrlBlob* inputs_; + ::flyteidl::admin::UrlBlob* outputs_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::InitDefaultsTaskExecutionGetDataResponseImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// TaskExecutionGetRequest + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool TaskExecutionGetRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionGetRequest::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetRequest.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetRequest.id) + return id_; +} +inline void TaskExecutionGetRequest::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetRequest.id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionListRequest + +// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; +inline bool TaskExecutionListRequest::has_node_execution_id() const { + return this != internal_default_instance() && node_execution_id_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionListRequest::node_execution_id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = node_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.node_execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionListRequest::release_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.node_execution_id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = node_execution_id_; + node_execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionListRequest::mutable_node_execution_id() { + + if (node_execution_id_ == NULL) { + node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.node_execution_id) + return node_execution_id_; +} +inline void TaskExecutionListRequest::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_execution_id_); + } + if (node_execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node_execution_id, submessage_arena); + } + + } else { + + } + node_execution_id_ = node_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.node_execution_id) +} + +// uint32 limit = 2; +inline void TaskExecutionListRequest::clear_limit() { + limit_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionListRequest::limit() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.limit) + return limit_; +} +inline void TaskExecutionListRequest::set_limit(::google::protobuf::uint32 value) { + + limit_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.limit) +} + +// string token = 3; +inline void TaskExecutionListRequest::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionListRequest::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.token) + return token_.GetNoArena(); +} +inline void TaskExecutionListRequest::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.token) +} +#if LANG_CXX11 +inline void TaskExecutionListRequest::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionListRequest.token) +} +#endif +inline void TaskExecutionListRequest::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionListRequest.token) +} +inline void TaskExecutionListRequest::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionListRequest.token) +} +inline ::std::string* TaskExecutionListRequest::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionListRequest::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionListRequest::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.token) +} + +// string filters = 4; +inline void TaskExecutionListRequest::clear_filters() { + filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionListRequest::filters() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.filters) + return filters_.GetNoArena(); +} +inline void TaskExecutionListRequest::set_filters(const ::std::string& value) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.filters) +} +#if LANG_CXX11 +inline void TaskExecutionListRequest::set_filters(::std::string&& value) { + + filters_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionListRequest.filters) +} +#endif +inline void TaskExecutionListRequest::set_filters(const char* value) { + GOOGLE_DCHECK(value != NULL); + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionListRequest.filters) +} +inline void TaskExecutionListRequest::set_filters(const char* value, size_t size) { + + filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionListRequest.filters) +} +inline ::std::string* TaskExecutionListRequest::mutable_filters() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.filters) + return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionListRequest::release_filters() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.filters) + + return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionListRequest::set_allocated_filters(::std::string* filters) { + if (filters != NULL) { + + } else { + + } + filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.filters) +} + +// .flyteidl.admin.Sort sort_by = 5; +inline bool TaskExecutionListRequest::has_sort_by() const { + return this != internal_default_instance() && sort_by_ != NULL; +} +inline const ::flyteidl::admin::Sort& TaskExecutionListRequest::sort_by() const { + const ::flyteidl::admin::Sort* p = sort_by_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.sort_by) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_Sort_default_instance_); +} +inline ::flyteidl::admin::Sort* TaskExecutionListRequest::release_sort_by() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.sort_by) + + ::flyteidl::admin::Sort* temp = sort_by_; + sort_by_ = NULL; + return temp; +} +inline ::flyteidl::admin::Sort* TaskExecutionListRequest::mutable_sort_by() { + + if (sort_by_ == NULL) { + sort_by_ = new ::flyteidl::admin::Sort; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.sort_by) + return sort_by_; +} +inline void TaskExecutionListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); + } + if (sort_by) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sort_by = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sort_by, submessage_arena); + } + + } else { + + } + sort_by_ = sort_by; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.sort_by) +} + +// ------------------------------------------------------------------- + +// TaskExecution + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool TaskExecution::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecution::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecution::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecution::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.id) + return id_; +} +inline void TaskExecution::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.id) +} + +// string input_uri = 2; +inline void TaskExecution::clear_input_uri() { + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecution::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.input_uri) + return input_uri_.GetNoArena(); +} +inline void TaskExecution::set_input_uri(const ::std::string& value) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecution.input_uri) +} +#if LANG_CXX11 +inline void TaskExecution::set_input_uri(::std::string&& value) { + + input_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecution.input_uri) +} +#endif +inline void TaskExecution::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecution.input_uri) +} +inline void TaskExecution::set_input_uri(const char* value, size_t size) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecution.input_uri) +} +inline ::std::string* TaskExecution::mutable_input_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.input_uri) + return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecution::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.input_uri) + + return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecution::set_allocated_input_uri(::std::string* input_uri) { + if (input_uri != NULL) { + + } else { + + } + input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.input_uri) +} + +// .flyteidl.admin.TaskExecutionClosure closure = 3; +inline bool TaskExecution::has_closure() const { + return this != internal_default_instance() && closure_ != NULL; +} +inline void TaskExecution::clear_closure() { + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; +} +inline const ::flyteidl::admin::TaskExecutionClosure& TaskExecution::closure() const { + const ::flyteidl::admin::TaskExecutionClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.closure) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_TaskExecutionClosure_default_instance_); +} +inline ::flyteidl::admin::TaskExecutionClosure* TaskExecution::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.closure) + + ::flyteidl::admin::TaskExecutionClosure* temp = closure_; + closure_ = NULL; + return temp; +} +inline ::flyteidl::admin::TaskExecutionClosure* TaskExecution::mutable_closure() { + + if (closure_ == NULL) { + closure_ = new ::flyteidl::admin::TaskExecutionClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.closure) + return closure_; +} +inline void TaskExecution::set_allocated_closure(::flyteidl::admin::TaskExecutionClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.closure) +} + +// bool is_parent = 4; +inline void TaskExecution::clear_is_parent() { + is_parent_ = false; +} +inline bool TaskExecution::is_parent() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.is_parent) + return is_parent_; +} +inline void TaskExecution::set_is_parent(bool value) { + + is_parent_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecution.is_parent) +} + +// ------------------------------------------------------------------- + +// TaskExecutionList + +// repeated .flyteidl.admin.TaskExecution task_executions = 1; +inline int TaskExecutionList::task_executions_size() const { + return task_executions_.size(); +} +inline void TaskExecutionList::clear_task_executions() { + task_executions_.Clear(); +} +inline const ::flyteidl::admin::TaskExecution& TaskExecutionList::task_executions(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_.Get(index); +} +inline ::flyteidl::admin::TaskExecution* TaskExecutionList::mutable_task_executions(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_.Mutable(index); +} +inline ::flyteidl::admin::TaskExecution* TaskExecutionList::add_task_executions() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >* +TaskExecutionList::mutable_task_executions() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionList.task_executions) + return &task_executions_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >& +TaskExecutionList::task_executions() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionList.task_executions) + return task_executions_; +} + +// string token = 2; +inline void TaskExecutionList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionList.token) + return token_.GetNoArena(); +} +inline void TaskExecutionList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionList.token) +} +#if LANG_CXX11 +inline void TaskExecutionList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionList.token) +} +#endif +inline void TaskExecutionList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionList.token) +} +inline void TaskExecutionList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionList.token) +} +inline ::std::string* TaskExecutionList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionList.token) +} + +// ------------------------------------------------------------------- + +// TaskExecutionClosure + +// string output_uri = 1; +inline bool TaskExecutionClosure::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void TaskExecutionClosure::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void TaskExecutionClosure::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& TaskExecutionClosure::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TaskExecutionClosure::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) +} +#if LANG_CXX11 +inline void TaskExecutionClosure::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.output_uri) +} +#endif +inline void TaskExecutionClosure::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.output_uri) +} +inline void TaskExecutionClosure::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.output_uri) +} +inline ::std::string* TaskExecutionClosure::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionClosure::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void TaskExecutionClosure::set_allocated_output_uri(::std::string* output_uri) { + if (!has_output_uri()) { + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_output_result(); + if (output_uri != NULL) { + set_has_output_uri(); + output_result_.output_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.output_uri) +} + +// .flyteidl.core.ExecutionError error = 2; +inline bool TaskExecutionClosure::has_error() const { + return output_result_case() == kError; +} +inline void TaskExecutionClosure::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* TaskExecutionClosure::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ExecutionError& TaskExecutionClosure::error() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* TaskExecutionClosure::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = new ::flyteidl::core::ExecutionError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.error) + return output_result_.error_; +} + +// .flyteidl.core.TaskExecution.Phase phase = 3; +inline void TaskExecutionClosure::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::TaskExecution_Phase TaskExecutionClosure::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.phase) + return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); +} +inline void TaskExecutionClosure::set_phase(::flyteidl::core::TaskExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.phase) +} + +// repeated .flyteidl.core.TaskLog logs = 4; +inline int TaskExecutionClosure::logs_size() const { + return logs_.size(); +} +inline const ::flyteidl::core::TaskLog& TaskExecutionClosure::logs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.logs) + return logs_.Get(index); +} +inline ::flyteidl::core::TaskLog* TaskExecutionClosure::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.logs) + return logs_.Mutable(index); +} +inline ::flyteidl::core::TaskLog* TaskExecutionClosure::add_logs() { + // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionClosure.logs) + return logs_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +TaskExecutionClosure::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionClosure.logs) + return &logs_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +TaskExecutionClosure::logs() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionClosure.logs) + return logs_; +} + +// .google.protobuf.Timestamp started_at = 5; +inline bool TaskExecutionClosure::has_started_at() const { + return this != internal_default_instance() && started_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& TaskExecutionClosure::started_at() const { + const ::google::protobuf::Timestamp* p = started_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.started_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_started_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.started_at) + + ::google::protobuf::Timestamp* temp = started_at_; + started_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_started_at() { + + if (started_at_ == NULL) { + started_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.started_at) + return started_at_; +} +inline void TaskExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); + } + if (started_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(started_at)->GetArena(); + if (message_arena != submessage_arena) { + started_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, started_at, submessage_arena); + } + + } else { + + } + started_at_ = started_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.started_at) +} + +// .google.protobuf.Duration duration = 6; +inline bool TaskExecutionClosure::has_duration() const { + return this != internal_default_instance() && duration_ != NULL; +} +inline const ::google::protobuf::Duration& TaskExecutionClosure::duration() const { + const ::google::protobuf::Duration* p = duration_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.duration) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* TaskExecutionClosure::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.duration) + + ::google::protobuf::Duration* temp = duration_; + duration_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* TaskExecutionClosure::mutable_duration() { + + if (duration_ == NULL) { + duration_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.duration) + return duration_; +} +inline void TaskExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); + } + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + + } else { + + } + duration_ = duration; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.duration) +} + +// .google.protobuf.Timestamp created_at = 7; +inline bool TaskExecutionClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& TaskExecutionClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.created_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_created_at() { + + if (created_at_ == NULL) { + created_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.created_at) + return created_at_; +} +inline void TaskExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.created_at) +} + +// .google.protobuf.Timestamp updated_at = 8; +inline bool TaskExecutionClosure::has_updated_at() const { + return this != internal_default_instance() && updated_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& TaskExecutionClosure::updated_at() const { + const ::google::protobuf::Timestamp* p = updated_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.updated_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_updated_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.updated_at) + + ::google::protobuf::Timestamp* temp = updated_at_; + updated_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_updated_at() { + + if (updated_at_ == NULL) { + updated_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.updated_at) + return updated_at_; +} +inline void TaskExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); + } + if (updated_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at)->GetArena(); + if (message_arena != submessage_arena) { + updated_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, updated_at, submessage_arena); + } + + } else { + + } + updated_at_ = updated_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.updated_at) +} + +// .google.protobuf.Struct custom_info = 9; +inline bool TaskExecutionClosure::has_custom_info() const { + return this != internal_default_instance() && custom_info_ != NULL; +} +inline const ::google::protobuf::Struct& TaskExecutionClosure::custom_info() const { + const ::google::protobuf::Struct* p = custom_info_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.custom_info) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TaskExecutionClosure::release_custom_info() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.custom_info) + + ::google::protobuf::Struct* temp = custom_info_; + custom_info_ = NULL; + return temp; +} +inline ::google::protobuf::Struct* TaskExecutionClosure::mutable_custom_info() { + + if (custom_info_ == NULL) { + custom_info_ = new ::google::protobuf::Struct; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.custom_info) + return custom_info_; +} +inline void TaskExecutionClosure::set_allocated_custom_info(::google::protobuf::Struct* custom_info) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info_); + } + if (custom_info) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info)->GetArena(); + if (message_arena != submessage_arena) { + custom_info = ::google::protobuf::internal::GetOwnedMessage( + message_arena, custom_info, submessage_arena); + } + + } else { + + } + custom_info_ = custom_info; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.custom_info) +} + +inline bool TaskExecutionClosure::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void TaskExecutionClosure::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline TaskExecutionClosure::OutputResultCase TaskExecutionClosure::output_result_case() const { + return TaskExecutionClosure::OutputResultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// TaskExecutionGetDataRequest + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool TaskExecutionGetDataRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionGetDataRequest::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetDataRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataRequest.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetDataRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataRequest.id) + return id_; +} +inline void TaskExecutionGetDataRequest::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataRequest.id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionGetDataResponse + +// .flyteidl.admin.UrlBlob inputs = 1; +inline bool TaskExecutionGetDataResponse::has_inputs() const { + return this != internal_default_instance() && inputs_ != NULL; +} +inline const ::flyteidl::admin::UrlBlob& TaskExecutionGetDataResponse::inputs() const { + const ::flyteidl::admin::UrlBlob* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.inputs) + + ::flyteidl::admin::UrlBlob* temp = inputs_; + inputs_ = NULL; + return temp; +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::mutable_inputs() { + + if (inputs_ == NULL) { + inputs_ = new ::flyteidl::admin::UrlBlob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.inputs) + return inputs_; +} +inline void TaskExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.TaskExecutionGetDataResponse.inputs) +} + +// .flyteidl.admin.UrlBlob outputs = 2; +inline bool TaskExecutionGetDataResponse::has_outputs() const { + return this != internal_default_instance() && outputs_ != NULL; +} +inline const ::flyteidl::admin::UrlBlob& TaskExecutionGetDataResponse::outputs() const { + const ::flyteidl::admin::UrlBlob* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.outputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_UrlBlob_default_instance_); +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.outputs) + + ::flyteidl::admin::UrlBlob* temp = outputs_; + outputs_ = NULL; + return temp; +} +inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::mutable_outputs() { + + if (outputs_ == NULL) { + outputs_ = new ::flyteidl::admin::UrlBlob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.outputs) + return outputs_; +} +inline void TaskExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.outputs) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc new file mode 100644 index 0000000000..0688f7c8c3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/workflow.proto + +#include "flyteidl/admin/workflow.pb.h" +#include "flyteidl/admin/workflow.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace admin { + +} // namespace flyteidl +} // namespace admin + diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h new file mode 100644 index 0000000000..8359fd79c8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/admin/workflow.proto +#ifndef GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED +#define GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED + +#include "flyteidl/admin/workflow.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace admin { + +} // namespace admin +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc new file mode 100644 index 0000000000..cc572e89ad --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc @@ -0,0 +1,1995 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +#include "flyteidl/admin/workflow.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace admin { +class WorkflowCreateRequestDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowCreateRequest_default_instance_; +class WorkflowCreateResponseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowCreateResponse_default_instance_; +class WorkflowDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Workflow_default_instance_; +class WorkflowListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowList_default_instance_; +class WorkflowSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowSpec_default_instance_; +class WorkflowClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowClosure_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace protobuf_flyteidl_2fadmin_2fworkflow_2eproto { +void InitDefaultsWorkflowCreateRequestImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowSpec(); + { + void* ptr = &::flyteidl::admin::_WorkflowCreateRequest_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowCreateRequest(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowCreateRequest::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowCreateRequest() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowCreateRequestImpl); +} + +void InitDefaultsWorkflowCreateResponseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::admin::_WorkflowCreateResponse_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowCreateResponse(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowCreateResponse::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowCreateResponse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowCreateResponseImpl); +} + +void InitDefaultsWorkflowImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowClosure(); + { + void* ptr = &::flyteidl::admin::_Workflow_default_instance_; + new (ptr) ::flyteidl::admin::Workflow(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::Workflow::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflow() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowImpl); +} + +void InitDefaultsWorkflowListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflow(); + { + void* ptr = &::flyteidl::admin::_WorkflowList_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowList::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowListImpl); +} + +void InitDefaultsWorkflowSpecImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplate(); + { + void* ptr = &::flyteidl::admin::_WorkflowSpec_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowSpec::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowSpec() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowSpecImpl); +} + +void InitDefaultsWorkflowClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflowClosure(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + { + void* ptr = &::flyteidl::admin::_WorkflowClosure_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowClosure::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowClosureImpl); +} + +::google::protobuf::Metadata file_level_metadata[6]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, spec_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Workflow, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Workflow, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::Workflow, closure_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowList, workflows_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowList, token_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, template__), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, compiled_workflow_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, created_at_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::admin::WorkflowCreateRequest)}, + { 7, -1, sizeof(::flyteidl::admin::WorkflowCreateResponse)}, + { 12, -1, sizeof(::flyteidl::admin::Workflow)}, + { 19, -1, sizeof(::flyteidl::admin::WorkflowList)}, + { 26, -1, sizeof(::flyteidl::admin::WorkflowSpec)}, + { 32, -1, sizeof(::flyteidl::admin::WorkflowClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::admin::_WorkflowCreateRequest_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowCreateResponse_default_instance_), + reinterpret_cast(&::flyteidl::admin::_Workflow_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowList_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowSpec_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowClosure_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/admin/workflow.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\035flyteidl/admin/workflow.proto\022\016flyteid" + "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + "lyteidl/core/identifier.proto\032\034flyteidl/" + "core/workflow.proto\032\033flyteidl/admin/comm" + "on.proto\032\037google/protobuf/timestamp.prot" + "o\"j\n\025WorkflowCreateRequest\022%\n\002id\030\001 \001(\0132\031" + ".flyteidl.core.Identifier\022*\n\004spec\030\002 \001(\0132" + "\034.flyteidl.admin.WorkflowSpec\"\030\n\026Workflo" + "wCreateResponse\"c\n\010Workflow\022%\n\002id\030\001 \001(\0132" + "\031.flyteidl.core.Identifier\0220\n\007closure\030\002 " + "\001(\0132\037.flyteidl.admin.WorkflowClosure\"J\n\014" + "WorkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flytei" + "dl.admin.Workflow\022\r\n\005token\030\002 \001(\t\"A\n\014Work" + "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + "re.WorkflowTemplate\"\204\001\n\017WorkflowClosure\022" + "A\n\021compiled_workflow\030\001 \001(\0132&.flyteidl.co" + "re.CompiledWorkflowClosure\022.\n\ncreated_at" + "\030\002 \001(\0132\032.google.protobuf.TimestampB3Z1gi" + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + "l/adminb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 775); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/admin/workflow.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fadmin_2fworkflow_2eproto +namespace flyteidl { +namespace admin { + +// =================================================================== + +void WorkflowCreateRequest::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_WorkflowCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::WorkflowSpec*>( + ::flyteidl::admin::WorkflowSpec::internal_default_instance()); +} +void WorkflowCreateRequest::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowCreateRequest::kIdFieldNumber; +const int WorkflowCreateRequest::kSpecFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowCreateRequest::WorkflowCreateRequest() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowCreateRequest(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowCreateRequest) +} +WorkflowCreateRequest::WorkflowCreateRequest(const WorkflowCreateRequest& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_spec()) { + spec_ = new ::flyteidl::admin::WorkflowSpec(*from.spec_); + } else { + spec_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowCreateRequest) +} + +void WorkflowCreateRequest::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&spec_) - + reinterpret_cast(&id_)) + sizeof(spec_)); + _cached_size_ = 0; +} + +WorkflowCreateRequest::~WorkflowCreateRequest() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowCreateRequest) + SharedDtor(); +} + +void WorkflowCreateRequest::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete spec_; +} + +void WorkflowCreateRequest::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowCreateRequest::descriptor() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowCreateRequest& WorkflowCreateRequest::default_instance() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowCreateRequest(); + return *internal_default_instance(); +} + +WorkflowCreateRequest* WorkflowCreateRequest::New(::google::protobuf::Arena* arena) const { + WorkflowCreateRequest* n = new WorkflowCreateRequest; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowCreateRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowCreateRequest::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowCreateRequest) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_spec())); + } 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.WorkflowCreateRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowCreateRequest) + return false; +#undef DO_ +} + +void WorkflowCreateRequest::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + if (this->has_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->spec_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowCreateRequest) +} + +::google::protobuf::uint8* WorkflowCreateRequest::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + if (this->has_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->spec_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowCreateRequest) + return target; +} + +size_t WorkflowCreateRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowCreateRequest) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.WorkflowSpec spec = 2; + if (this->has_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowCreateRequest* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowCreateRequest) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowCreateRequest) + MergeFrom(*source); + } +} + +void WorkflowCreateRequest::MergeFrom(const WorkflowCreateRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowCreateRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_spec()) { + mutable_spec()->::flyteidl::admin::WorkflowSpec::MergeFrom(from.spec()); + } +} + +void WorkflowCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowCreateRequest::CopyFrom(const WorkflowCreateRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowCreateRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowCreateRequest::IsInitialized() const { + return true; +} + +void WorkflowCreateRequest::Swap(WorkflowCreateRequest* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowCreateRequest::InternalSwap(WorkflowCreateRequest* other) { + using std::swap; + swap(id_, other->id_); + swap(spec_, other->spec_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowCreateRequest::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowCreateResponse::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowCreateResponse::WorkflowCreateResponse() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowCreateResponse(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowCreateResponse) +} +WorkflowCreateResponse::WorkflowCreateResponse(const WorkflowCreateResponse& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowCreateResponse) +} + +void WorkflowCreateResponse::SharedCtor() { + _cached_size_ = 0; +} + +WorkflowCreateResponse::~WorkflowCreateResponse() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowCreateResponse) + SharedDtor(); +} + +void WorkflowCreateResponse::SharedDtor() { +} + +void WorkflowCreateResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowCreateResponse::descriptor() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowCreateResponse& WorkflowCreateResponse::default_instance() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowCreateResponse(); + return *internal_default_instance(); +} + +WorkflowCreateResponse* WorkflowCreateResponse::New(::google::protobuf::Arena* arena) const { + WorkflowCreateResponse* n = new WorkflowCreateResponse; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowCreateResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool WorkflowCreateResponse::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowCreateResponse) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowCreateResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowCreateResponse) + return false; +#undef DO_ +} + +void WorkflowCreateResponse::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowCreateResponse) +} + +::google::protobuf::uint8* WorkflowCreateResponse::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowCreateResponse) + return target; +} + +size_t WorkflowCreateResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowCreateResponse) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowCreateResponse* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowCreateResponse) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowCreateResponse) + MergeFrom(*source); + } +} + +void WorkflowCreateResponse::MergeFrom(const WorkflowCreateResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowCreateResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowCreateResponse::CopyFrom(const WorkflowCreateResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowCreateResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowCreateResponse::IsInitialized() const { + return true; +} + +void WorkflowCreateResponse::Swap(WorkflowCreateResponse* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowCreateResponse::InternalSwap(WorkflowCreateResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowCreateResponse::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Workflow::InitAsDefaultInstance() { + ::flyteidl::admin::_Workflow_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::admin::_Workflow_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::WorkflowClosure*>( + ::flyteidl::admin::WorkflowClosure::internal_default_instance()); +} +void Workflow::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Workflow::kIdFieldNumber; +const int Workflow::kClosureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Workflow::Workflow() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflow(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.Workflow) +} +Workflow::Workflow(const Workflow& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_closure()) { + closure_ = new ::flyteidl::admin::WorkflowClosure(*from.closure_); + } else { + closure_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Workflow) +} + +void Workflow::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&closure_) - + reinterpret_cast(&id_)) + sizeof(closure_)); + _cached_size_ = 0; +} + +Workflow::~Workflow() { + // @@protoc_insertion_point(destructor:flyteidl.admin.Workflow) + SharedDtor(); +} + +void Workflow::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete closure_; +} + +void Workflow::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Workflow::descriptor() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Workflow& Workflow::default_instance() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflow(); + return *internal_default_instance(); +} + +Workflow* Workflow::New(::google::protobuf::Arena* arena) const { + Workflow* n = new Workflow; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Workflow::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Workflow) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; + _internal_metadata_.Clear(); +} + +bool Workflow::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.Workflow) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_closure())); + } 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.Workflow) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.Workflow) + return false; +#undef DO_ +} + +void Workflow::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.Workflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + if (this->has_closure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->closure_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.Workflow) +} + +::google::protobuf::uint8* Workflow::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Workflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + if (this->has_closure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->closure_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.Workflow) + return target; +} + +size_t Workflow::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Workflow) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.admin.WorkflowClosure closure = 2; + if (this->has_closure()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->closure_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Workflow::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Workflow) + GOOGLE_DCHECK_NE(&from, this); + const Workflow* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Workflow) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Workflow) + MergeFrom(*source); + } +} + +void Workflow::MergeFrom(const Workflow& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Workflow) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_closure()) { + mutable_closure()->::flyteidl::admin::WorkflowClosure::MergeFrom(from.closure()); + } +} + +void Workflow::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Workflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Workflow::CopyFrom(const Workflow& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Workflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Workflow::IsInitialized() const { + return true; +} + +void Workflow::Swap(Workflow* other) { + if (other == this) return; + InternalSwap(other); +} +void Workflow::InternalSwap(Workflow* other) { + using std::swap; + swap(id_, other->id_); + swap(closure_, other->closure_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Workflow::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowList::kWorkflowsFieldNumber; +const int WorkflowList::kTokenFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowList::WorkflowList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowList) +} +WorkflowList::WorkflowList(const WorkflowList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + workflows_(from.workflows_), + _cached_size_(0) { + _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.WorkflowList) +} + +void WorkflowList::SharedCtor() { + token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +WorkflowList::~WorkflowList() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowList) + SharedDtor(); +} + +void WorkflowList::SharedDtor() { + token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkflowList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowList::descriptor() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowList& WorkflowList::default_instance() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowList(); + return *internal_default_instance(); +} + +WorkflowList* WorkflowList::New(::google::protobuf::Arena* arena) const { + WorkflowList* n = new WorkflowList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + workflows_.Clear(); + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool WorkflowList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowList) + 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.admin.Workflow workflows = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_workflows())); + } else { + goto handle_unusual; + } + break; + } + + // string token = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 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.WorkflowList.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.WorkflowList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowList) + return false; +#undef DO_ +} + +void WorkflowList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Workflow workflows = 1; + for (unsigned int i = 0, + n = static_cast(this->workflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->workflows(static_cast(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.WorkflowList.token"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->token(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowList) +} + +::google::protobuf::uint8* WorkflowList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.admin.Workflow workflows = 1; + for (unsigned int i = 0, + n = static_cast(this->workflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->workflows(static_cast(i)), deterministic, 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.WorkflowList.token"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->token(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowList) + return target; +} + +size_t WorkflowList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.admin.Workflow workflows = 1; + { + unsigned int count = static_cast(this->workflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->workflows(static_cast(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); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowList) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowList) + MergeFrom(*source); + } +} + +void WorkflowList::MergeFrom(const WorkflowList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + workflows_.MergeFrom(from.workflows_); + if (from.token().size() > 0) { + + token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); + } +} + +void WorkflowList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowList::CopyFrom(const WorkflowList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowList::IsInitialized() const { + return true; +} + +void WorkflowList::Swap(WorkflowList* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowList::InternalSwap(WorkflowList* other) { + using std::swap; + workflows_.InternalSwap(&other->workflows_); + token_.Swap(&other->token_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowList::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowSpec::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowSpec_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::WorkflowTemplate*>( + ::flyteidl::core::WorkflowTemplate::internal_default_instance()); +} +void WorkflowSpec::clear_template_() { + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowSpec::kTemplateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowSpec::WorkflowSpec() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowSpec(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowSpec) +} +WorkflowSpec::WorkflowSpec(const WorkflowSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::WorkflowTemplate(*from.template__); + } else { + template__ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowSpec) +} + +void WorkflowSpec::SharedCtor() { + template__ = NULL; + _cached_size_ = 0; +} + +WorkflowSpec::~WorkflowSpec() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowSpec) + SharedDtor(); +} + +void WorkflowSpec::SharedDtor() { + if (this != internal_default_instance()) delete template__; +} + +void WorkflowSpec::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowSpec::descriptor() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowSpec& WorkflowSpec::default_instance() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowSpec(); + return *internal_default_instance(); +} + +WorkflowSpec* WorkflowSpec::New(::google::protobuf::Arena* arena) const { + WorkflowSpec* n = new WorkflowSpec; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowSpec) + 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)) { + // .flyteidl.core.WorkflowTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } 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.WorkflowSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowSpec) + return false; +#undef DO_ +} + +void WorkflowSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->template__, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowSpec) +} + +::google::protobuf::uint8* WorkflowSpec::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->template__, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowSpec) + return target; +} + +size_t WorkflowSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowSpec) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->template__); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowSpec) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowSpec* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowSpec) + MergeFrom(*source); + } +} + +void WorkflowSpec::MergeFrom(const WorkflowSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.template_()); + } +} + +void WorkflowSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowSpec::CopyFrom(const WorkflowSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowSpec::IsInitialized() const { + return true; +} + +void WorkflowSpec::Swap(WorkflowSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowSpec::InternalSwap(WorkflowSpec* other) { + using std::swap; + swap(template__, other->template__); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowSpec::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowClosure::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowClosure_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( + ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); + ::flyteidl::admin::_WorkflowClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); +} +void WorkflowClosure::clear_compiled_workflow() { + if (GetArenaNoVirtual() == NULL && compiled_workflow_ != NULL) { + delete compiled_workflow_; + } + compiled_workflow_ = NULL; +} +void WorkflowClosure::clear_created_at() { + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowClosure::kCompiledWorkflowFieldNumber; +const int WorkflowClosure::kCreatedAtFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowClosure::WorkflowClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowClosure) +} +WorkflowClosure::WorkflowClosure(const WorkflowClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_compiled_workflow()) { + compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); + } else { + compiled_workflow_ = NULL; + } + if (from.has_created_at()) { + created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); + } else { + created_at_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowClosure) +} + +void WorkflowClosure::SharedCtor() { + ::memset(&compiled_workflow_, 0, static_cast( + reinterpret_cast(&created_at_) - + reinterpret_cast(&compiled_workflow_)) + sizeof(created_at_)); + _cached_size_ = 0; +} + +WorkflowClosure::~WorkflowClosure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowClosure) + SharedDtor(); +} + +void WorkflowClosure::SharedDtor() { + if (this != internal_default_instance()) delete compiled_workflow_; + if (this != internal_default_instance()) delete created_at_; +} + +void WorkflowClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowClosure::descriptor() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowClosure& WorkflowClosure::default_instance() { + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowClosure(); + return *internal_default_instance(); +} + +WorkflowClosure* WorkflowClosure::New(::google::protobuf::Arena* arena) const { + WorkflowClosure* n = new WorkflowClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && compiled_workflow_ != NULL) { + delete compiled_workflow_; + } + compiled_workflow_ = NULL; + if (GetArenaNoVirtual() == NULL && created_at_ != NULL) { + delete created_at_; + } + created_at_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowClosure) + 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)) { + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_compiled_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp created_at = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_created_at())); + } 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.WorkflowClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowClosure) + return false; +#undef DO_ +} + +void WorkflowClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + if (this->has_compiled_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->compiled_workflow_, output); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->created_at_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowClosure) +} + +::google::protobuf::uint8* WorkflowClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + if (this->has_compiled_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->compiled_workflow_, deterministic, target); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->created_at_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowClosure) + return target; +} + +size_t WorkflowClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + if (this->has_compiled_workflow()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->compiled_workflow_); + } + + // .google.protobuf.Timestamp created_at = 2; + if (this->has_created_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->created_at_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowClosure) + MergeFrom(*source); + } +} + +void WorkflowClosure::MergeFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_compiled_workflow()) { + mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); + } + if (from.has_created_at()) { + mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); + } +} + +void WorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowClosure::CopyFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowClosure::IsInitialized() const { + return true; +} + +void WorkflowClosure::Swap(WorkflowClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowClosure::InternalSwap(WorkflowClosure* other) { + using std::swap; + swap(compiled_workflow_, other->compiled_workflow_); + swap(created_at_, other->created_at_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { + protobuf_flyteidl_2fadmin_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h new file mode 100644 index 0000000000..da05c108b7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +#ifndef PROTOBUF_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/admin/common.pb.h" +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fadmin_2fworkflow_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[6]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsWorkflowCreateRequestImpl(); +void InitDefaultsWorkflowCreateRequest(); +void InitDefaultsWorkflowCreateResponseImpl(); +void InitDefaultsWorkflowCreateResponse(); +void InitDefaultsWorkflowImpl(); +void InitDefaultsWorkflow(); +void InitDefaultsWorkflowListImpl(); +void InitDefaultsWorkflowList(); +void InitDefaultsWorkflowSpecImpl(); +void InitDefaultsWorkflowSpec(); +void InitDefaultsWorkflowClosureImpl(); +void InitDefaultsWorkflowClosure(); +inline void InitDefaults() { + InitDefaultsWorkflowCreateRequest(); + InitDefaultsWorkflowCreateResponse(); + InitDefaultsWorkflow(); + InitDefaultsWorkflowList(); + InitDefaultsWorkflowSpec(); + InitDefaultsWorkflowClosure(); +} +} // namespace protobuf_flyteidl_2fadmin_2fworkflow_2eproto +namespace flyteidl { +namespace admin { +class Workflow; +class WorkflowDefaultTypeInternal; +extern WorkflowDefaultTypeInternal _Workflow_default_instance_; +class WorkflowClosure; +class WorkflowClosureDefaultTypeInternal; +extern WorkflowClosureDefaultTypeInternal _WorkflowClosure_default_instance_; +class WorkflowCreateRequest; +class WorkflowCreateRequestDefaultTypeInternal; +extern WorkflowCreateRequestDefaultTypeInternal _WorkflowCreateRequest_default_instance_; +class WorkflowCreateResponse; +class WorkflowCreateResponseDefaultTypeInternal; +extern WorkflowCreateResponseDefaultTypeInternal _WorkflowCreateResponse_default_instance_; +class WorkflowList; +class WorkflowListDefaultTypeInternal; +extern WorkflowListDefaultTypeInternal _WorkflowList_default_instance_; +class WorkflowSpec; +class WorkflowSpecDefaultTypeInternal; +extern WorkflowSpecDefaultTypeInternal _WorkflowSpec_default_instance_; +} // namespace admin +} // namespace flyteidl +namespace flyteidl { +namespace admin { + +// =================================================================== + +class WorkflowCreateRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowCreateRequest) */ { + public: + WorkflowCreateRequest(); + virtual ~WorkflowCreateRequest(); + + WorkflowCreateRequest(const WorkflowCreateRequest& from); + + inline WorkflowCreateRequest& operator=(const WorkflowCreateRequest& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowCreateRequest(WorkflowCreateRequest&& from) noexcept + : WorkflowCreateRequest() { + *this = ::std::move(from); + } + + inline WorkflowCreateRequest& operator=(WorkflowCreateRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowCreateRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowCreateRequest* internal_default_instance() { + return reinterpret_cast( + &_WorkflowCreateRequest_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(WorkflowCreateRequest* other); + friend void swap(WorkflowCreateRequest& a, WorkflowCreateRequest& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowCreateRequest* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowCreateRequest* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowCreateRequest& from); + void MergeFrom(const WorkflowCreateRequest& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowCreateRequest* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.WorkflowSpec spec = 2; + bool has_spec() const; + void clear_spec(); + static const int kSpecFieldNumber = 2; + const ::flyteidl::admin::WorkflowSpec& spec() const; + ::flyteidl::admin::WorkflowSpec* release_spec(); + ::flyteidl::admin::WorkflowSpec* mutable_spec(); + void set_allocated_spec(::flyteidl::admin::WorkflowSpec* spec); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::WorkflowSpec* spec_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowCreateRequestImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowCreateResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowCreateResponse) */ { + public: + WorkflowCreateResponse(); + virtual ~WorkflowCreateResponse(); + + WorkflowCreateResponse(const WorkflowCreateResponse& from); + + inline WorkflowCreateResponse& operator=(const WorkflowCreateResponse& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowCreateResponse(WorkflowCreateResponse&& from) noexcept + : WorkflowCreateResponse() { + *this = ::std::move(from); + } + + inline WorkflowCreateResponse& operator=(WorkflowCreateResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowCreateResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowCreateResponse* internal_default_instance() { + return reinterpret_cast( + &_WorkflowCreateResponse_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(WorkflowCreateResponse* other); + friend void swap(WorkflowCreateResponse& a, WorkflowCreateResponse& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowCreateResponse* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowCreateResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowCreateResponse& from); + void MergeFrom(const WorkflowCreateResponse& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowCreateResponse* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowCreateResponseImpl(); +}; +// ------------------------------------------------------------------- + +class Workflow : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Workflow) */ { + public: + Workflow(); + virtual ~Workflow(); + + Workflow(const Workflow& from); + + inline Workflow& operator=(const Workflow& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Workflow(Workflow&& from) noexcept + : Workflow() { + *this = ::std::move(from); + } + + inline Workflow& operator=(Workflow&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Workflow& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Workflow* internal_default_instance() { + return reinterpret_cast( + &_Workflow_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(Workflow* other); + friend void swap(Workflow& a, Workflow& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Workflow* New() const PROTOBUF_FINAL { return New(NULL); } + + Workflow* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Workflow& from); + void MergeFrom(const Workflow& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Workflow* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.admin.WorkflowClosure closure = 2; + bool has_closure() const; + void clear_closure(); + static const int kClosureFieldNumber = 2; + const ::flyteidl::admin::WorkflowClosure& closure() const; + ::flyteidl::admin::WorkflowClosure* release_closure(); + ::flyteidl::admin::WorkflowClosure* mutable_closure(); + void set_allocated_closure(::flyteidl::admin::WorkflowClosure* closure); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::admin::WorkflowClosure* closure_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowList) */ { + public: + WorkflowList(); + virtual ~WorkflowList(); + + WorkflowList(const WorkflowList& from); + + inline WorkflowList& operator=(const WorkflowList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowList(WorkflowList&& from) noexcept + : WorkflowList() { + *this = ::std::move(from); + } + + inline WorkflowList& operator=(WorkflowList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowList* internal_default_instance() { + return reinterpret_cast( + &_WorkflowList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(WorkflowList* other); + friend void swap(WorkflowList& a, WorkflowList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowList* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowList& from); + void MergeFrom(const WorkflowList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.admin.Workflow workflows = 1; + int workflows_size() const; + void clear_workflows(); + static const int kWorkflowsFieldNumber = 1; + const ::flyteidl::admin::Workflow& workflows(int index) const; + ::flyteidl::admin::Workflow* mutable_workflows(int index); + ::flyteidl::admin::Workflow* add_workflows(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >* + mutable_workflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >& + workflows() const; + + // 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.WorkflowList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow > workflows_; + ::google::protobuf::internal::ArenaStringPtr token_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowListImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowSpec : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowSpec) */ { + public: + WorkflowSpec(); + virtual ~WorkflowSpec(); + + WorkflowSpec(const WorkflowSpec& from); + + inline WorkflowSpec& operator=(const WorkflowSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowSpec(WorkflowSpec&& from) noexcept + : WorkflowSpec() { + *this = ::std::move(from); + } + + inline WorkflowSpec& operator=(WorkflowSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowSpec* internal_default_instance() { + return reinterpret_cast( + &_WorkflowSpec_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(WorkflowSpec* other); + friend void swap(WorkflowSpec& a, WorkflowSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowSpec* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowSpec* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowSpec& from); + void MergeFrom(const WorkflowSpec& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::WorkflowTemplate& template_() const; + ::flyteidl::core::WorkflowTemplate* release_template_(); + ::flyteidl::core::WorkflowTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowTemplate* template__; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowSpecImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowClosure) */ { + public: + WorkflowClosure(); + virtual ~WorkflowClosure(); + + WorkflowClosure(const WorkflowClosure& from); + + inline WorkflowClosure& operator=(const WorkflowClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowClosure(WorkflowClosure&& from) noexcept + : WorkflowClosure() { + *this = ::std::move(from); + } + + inline WorkflowClosure& operator=(WorkflowClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowClosure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(WorkflowClosure* other); + friend void swap(WorkflowClosure& a, WorkflowClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowClosure& from); + void MergeFrom(const WorkflowClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + bool has_compiled_workflow() const; + void clear_compiled_workflow(); + static const int kCompiledWorkflowFieldNumber = 1; + const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; + ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); + ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); + void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); + + // .google.protobuf.Timestamp created_at = 2; + bool has_created_at() const; + void clear_created_at(); + static const int kCreatedAtFieldNumber = 2; + const ::google::protobuf::Timestamp& created_at() const; + ::google::protobuf::Timestamp* release_created_at(); + ::google::protobuf::Timestamp* mutable_created_at(); + void set_allocated_created_at(::google::protobuf::Timestamp* created_at); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; + ::google::protobuf::Timestamp* created_at_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::InitDefaultsWorkflowClosureImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowCreateRequest + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowCreateRequest::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& WorkflowCreateRequest::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowCreateRequest.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowCreateRequest::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowCreateRequest.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowCreateRequest::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowCreateRequest.id) + return id_; +} +inline void WorkflowCreateRequest::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowCreateRequest.id) +} + +// .flyteidl.admin.WorkflowSpec spec = 2; +inline bool WorkflowCreateRequest::has_spec() const { + return this != internal_default_instance() && spec_ != NULL; +} +inline void WorkflowCreateRequest::clear_spec() { + if (GetArenaNoVirtual() == NULL && spec_ != NULL) { + delete spec_; + } + spec_ = NULL; +} +inline const ::flyteidl::admin::WorkflowSpec& WorkflowCreateRequest::spec() const { + const ::flyteidl::admin::WorkflowSpec* p = spec_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowCreateRequest.spec) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_WorkflowSpec_default_instance_); +} +inline ::flyteidl::admin::WorkflowSpec* WorkflowCreateRequest::release_spec() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowCreateRequest.spec) + + ::flyteidl::admin::WorkflowSpec* temp = spec_; + spec_ = NULL; + return temp; +} +inline ::flyteidl::admin::WorkflowSpec* WorkflowCreateRequest::mutable_spec() { + + if (spec_ == NULL) { + spec_ = new ::flyteidl::admin::WorkflowSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowCreateRequest.spec) + return spec_; +} +inline void WorkflowCreateRequest::set_allocated_spec(::flyteidl::admin::WorkflowSpec* spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete spec_; + } + if (spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, spec, submessage_arena); + } + + } else { + + } + spec_ = spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowCreateRequest.spec) +} + +// ------------------------------------------------------------------- + +// WorkflowCreateResponse + +// ------------------------------------------------------------------- + +// Workflow + +// .flyteidl.core.Identifier id = 1; +inline bool Workflow::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& Workflow::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* Workflow::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* Workflow::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.id) + return id_; +} +inline void Workflow::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.id) +} + +// .flyteidl.admin.WorkflowClosure closure = 2; +inline bool Workflow::has_closure() const { + return this != internal_default_instance() && closure_ != NULL; +} +inline void Workflow::clear_closure() { + if (GetArenaNoVirtual() == NULL && closure_ != NULL) { + delete closure_; + } + closure_ = NULL; +} +inline const ::flyteidl::admin::WorkflowClosure& Workflow::closure() const { + const ::flyteidl::admin::WorkflowClosure* p = closure_; + // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.closure) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::admin::_WorkflowClosure_default_instance_); +} +inline ::flyteidl::admin::WorkflowClosure* Workflow::release_closure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.closure) + + ::flyteidl::admin::WorkflowClosure* temp = closure_; + closure_ = NULL; + return temp; +} +inline ::flyteidl::admin::WorkflowClosure* Workflow::mutable_closure() { + + if (closure_ == NULL) { + closure_ = new ::flyteidl::admin::WorkflowClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.closure) + return closure_; +} +inline void Workflow::set_allocated_closure(::flyteidl::admin::WorkflowClosure* closure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete closure_; + } + if (closure) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + closure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, closure, submessage_arena); + } + + } else { + + } + closure_ = closure; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.closure) +} + +// ------------------------------------------------------------------- + +// WorkflowList + +// repeated .flyteidl.admin.Workflow workflows = 1; +inline int WorkflowList::workflows_size() const { + return workflows_.size(); +} +inline void WorkflowList::clear_workflows() { + workflows_.Clear(); +} +inline const ::flyteidl::admin::Workflow& WorkflowList::workflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowList.workflows) + return workflows_.Get(index); +} +inline ::flyteidl::admin::Workflow* WorkflowList::mutable_workflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowList.workflows) + return workflows_.Mutable(index); +} +inline ::flyteidl::admin::Workflow* WorkflowList::add_workflows() { + // @@protoc_insertion_point(field_add:flyteidl.admin.WorkflowList.workflows) + return workflows_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >* +WorkflowList::mutable_workflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.WorkflowList.workflows) + return &workflows_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >& +WorkflowList::workflows() const { + // @@protoc_insertion_point(field_list:flyteidl.admin.WorkflowList.workflows) + return workflows_; +} + +// string token = 2; +inline void WorkflowList::clear_token() { + token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowList::token() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowList.token) + return token_.GetNoArena(); +} +inline void WorkflowList::set_token(const ::std::string& value) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowList.token) +} +#if LANG_CXX11 +inline void WorkflowList::set_token(::std::string&& value) { + + token_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowList.token) +} +#endif +inline void WorkflowList::set_token(const char* value) { + GOOGLE_DCHECK(value != NULL); + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowList.token) +} +inline void WorkflowList::set_token(const char* value, size_t size) { + + token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowList.token) +} +inline ::std::string* WorkflowList::mutable_token() { + + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowList.token) + return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowList::release_token() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowList.token) + + return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowList::set_allocated_token(::std::string* token) { + if (token != NULL) { + + } else { + + } + token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowList.token) +} + +// ------------------------------------------------------------------- + +// WorkflowSpec + +// .flyteidl.core.WorkflowTemplate template = 1; +inline bool WorkflowSpec::has_template_() const { + return this != internal_default_instance() && template__ != NULL; +} +inline const ::flyteidl::core::WorkflowTemplate& WorkflowSpec::template_() const { + const ::flyteidl::core::WorkflowTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.template) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowTemplate_default_instance_); +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowSpec.template) + + ::flyteidl::core::WorkflowTemplate* temp = template__; + template__ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::mutable_template_() { + + if (template__ == NULL) { + template__ = new ::flyteidl::core::WorkflowTemplate; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.template) + return template__; +} +inline void WorkflowSpec::set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.WorkflowSpec.template) +} + +// ------------------------------------------------------------------- + +// WorkflowClosure + +// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; +inline bool WorkflowClosure::has_compiled_workflow() const { + return this != internal_default_instance() && compiled_workflow_ != NULL; +} +inline const ::flyteidl::core::CompiledWorkflowClosure& WorkflowClosure::compiled_workflow() const { + const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowClosure.compiled_workflow) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); +} +inline ::flyteidl::core::CompiledWorkflowClosure* WorkflowClosure::release_compiled_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowClosure.compiled_workflow) + + ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; + compiled_workflow_ = NULL; + return temp; +} +inline ::flyteidl::core::CompiledWorkflowClosure* WorkflowClosure::mutable_compiled_workflow() { + + if (compiled_workflow_ == NULL) { + compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowClosure.compiled_workflow) + return compiled_workflow_; +} +inline void WorkflowClosure::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); + } + if (compiled_workflow) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, compiled_workflow, submessage_arena); + } + + } else { + + } + compiled_workflow_ = compiled_workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowClosure.compiled_workflow) +} + +// .google.protobuf.Timestamp created_at = 2; +inline bool WorkflowClosure::has_created_at() const { + return this != internal_default_instance() && created_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& WorkflowClosure::created_at() const { + const ::google::protobuf::Timestamp* p = created_at_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowClosure.created_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* WorkflowClosure::release_created_at() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowClosure.created_at) + + ::google::protobuf::Timestamp* temp = created_at_; + created_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* WorkflowClosure::mutable_created_at() { + + if (created_at_ == NULL) { + created_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowClosure.created_at) + return created_at_; +} +inline void WorkflowClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); + } + if (created_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(created_at)->GetArena(); + if (message_arena != submessage_arena) { + created_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, created_at, submessage_arena); + } + + } else { + + } + created_at_ = created_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowClosure.created_at) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace admin +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc new file mode 100644 index 0000000000..64701e546a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/compiler.proto + +#include "flyteidl/core/compiler.pb.h" +#include "flyteidl/core/compiler.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h new file mode 100644 index 0000000000..71d842f2fd --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/compiler.proto +#ifndef GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED + +#include "flyteidl/core/compiler.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc new file mode 100644 index 0000000000..61b2c5cb93 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc @@ -0,0 +1,2027 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +#include "flyteidl/core/compiler.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class ConnectionSet_IdListDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConnectionSet_IdList_default_instance_; +class ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; +class ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; +class ConnectionSetDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConnectionSet_default_instance_; +class CompiledWorkflowDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CompiledWorkflow_default_instance_; +class CompiledTaskDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CompiledTask_default_instance_; +class CompiledWorkflowClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _CompiledWorkflowClosure_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fcompiler_2eproto { +void InitDefaultsConnectionSet_IdListImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_ConnectionSet_IdList_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet_IdList(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ConnectionSet_IdList::InitAsDefaultInstance(); +} + +void InitDefaultsConnectionSet_IdList() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConnectionSet_IdListImpl); +} + +void InitDefaultsConnectionSet_DownstreamEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_IdList(); + { + void* ptr = &::flyteidl::core::_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse(); + } + ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsConnectionSet_DownstreamEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConnectionSet_DownstreamEntry_DoNotUseImpl); +} + +void InitDefaultsConnectionSet_UpstreamEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_IdList(); + { + void* ptr = &::flyteidl::core::_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse(); + } + ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsConnectionSet_UpstreamEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConnectionSet_UpstreamEntry_DoNotUseImpl); +} + +void InitDefaultsConnectionSetImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_DownstreamEntry_DoNotUse(); + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_UpstreamEntry_DoNotUse(); + { + void* ptr = &::flyteidl::core::_ConnectionSet_default_instance_; + new (ptr) ::flyteidl::core::ConnectionSet(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ConnectionSet::InitAsDefaultInstance(); +} + +void InitDefaultsConnectionSet() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsConnectionSetImpl); +} + +void InitDefaultsCompiledWorkflowImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplate(); + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet(); + { + void* ptr = &::flyteidl::core::_CompiledWorkflow_default_instance_; + new (ptr) ::flyteidl::core::CompiledWorkflow(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CompiledWorkflow::InitAsDefaultInstance(); +} + +void InitDefaultsCompiledWorkflow() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCompiledWorkflowImpl); +} + +void InitDefaultsCompiledTaskImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplate(); + { + void* ptr = &::flyteidl::core::_CompiledTask_default_instance_; + new (ptr) ::flyteidl::core::CompiledTask(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CompiledTask::InitAsDefaultInstance(); +} + +void InitDefaultsCompiledTask() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCompiledTaskImpl); +} + +void InitDefaultsCompiledWorkflowClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflow(); + protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledTask(); + { + void* ptr = &::flyteidl::core::_CompiledWorkflowClosure_default_instance_; + new (ptr) ::flyteidl::core::CompiledWorkflowClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::CompiledWorkflowClosure::InitAsDefaultInstance(); +} + +void InitDefaultsCompiledWorkflowClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCompiledWorkflowClosureImpl); +} + +::google::protobuf::Metadata file_level_metadata[7]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_IdList, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_IdList, ids_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, value_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet, downstream_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConnectionSet, upstream_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, template__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, connections_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledTask, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledTask, template__), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, primary_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, sub_workflows_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, tasks_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::ConnectionSet_IdList)}, + { 6, 13, sizeof(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse)}, + { 15, 22, sizeof(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse)}, + { 24, -1, sizeof(::flyteidl::core::ConnectionSet)}, + { 31, -1, sizeof(::flyteidl::core::CompiledWorkflow)}, + { 38, -1, sizeof(::flyteidl::core::CompiledTask)}, + { 44, -1, sizeof(::flyteidl::core::CompiledWorkflowClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_ConnectionSet_IdList_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConnectionSet_default_instance_), + reinterpret_cast(&::flyteidl::core::_CompiledWorkflow_default_instance_), + reinterpret_cast(&::flyteidl::core::_CompiledTask_default_instance_), + reinterpret_cast(&::flyteidl::core::_CompiledWorkflowClosure_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/compiler.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\034flyteidl/core/compiler.proto\022\rflyteidl" + ".core\032\034flyteidl/core/workflow.proto\032\031fly" + "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + "iledTaskB2Z0github.com/lyft/flyteidl/gen" + "/pb-go/flyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 868); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/compiler.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fcompiler_2eproto +namespace flyteidl { +namespace core { + +// =================================================================== + +void ConnectionSet_IdList::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConnectionSet_IdList::kIdsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConnectionSet_IdList::ConnectionSet_IdList() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_IdList(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ConnectionSet.IdList) +} +ConnectionSet_IdList::ConnectionSet_IdList(const ConnectionSet_IdList& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + ids_(from.ids_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConnectionSet.IdList) +} + +void ConnectionSet_IdList::SharedCtor() { + _cached_size_ = 0; +} + +ConnectionSet_IdList::~ConnectionSet_IdList() { + // @@protoc_insertion_point(destructor:flyteidl.core.ConnectionSet.IdList) + SharedDtor(); +} + +void ConnectionSet_IdList::SharedDtor() { +} + +void ConnectionSet_IdList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConnectionSet_IdList::descriptor() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ConnectionSet_IdList& ConnectionSet_IdList::default_instance() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_IdList(); + return *internal_default_instance(); +} + +ConnectionSet_IdList* ConnectionSet_IdList::New(::google::protobuf::Arena* arena) const { + ConnectionSet_IdList* n = new ConnectionSet_IdList; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ConnectionSet_IdList::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ids_.Clear(); + _internal_metadata_.Clear(); +} + +bool ConnectionSet_IdList::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ConnectionSet.IdList) + 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 ids = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_ids())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ids(this->ids_size() - 1).data(), + static_cast(this->ids(this->ids_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.IdList.ids")); + } 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.ConnectionSet.IdList) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ConnectionSet.IdList) + return false; +#undef DO_ +} + +void ConnectionSet_IdList::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string ids = 1; + for (int i = 0, n = this->ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ids(i).data(), static_cast(this->ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.IdList.ids"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->ids(i), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ConnectionSet.IdList) +} + +::google::protobuf::uint8* ConnectionSet_IdList::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string ids = 1; + for (int i = 0, n = this->ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->ids(i).data(), static_cast(this->ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.IdList.ids"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(1, this->ids(i), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ConnectionSet.IdList) + return target; +} + +size_t ConnectionSet_IdList::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConnectionSet.IdList) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string ids = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->ids_size()); + for (int i = 0, n = this->ids_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->ids(i)); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ConnectionSet_IdList::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConnectionSet.IdList) + GOOGLE_DCHECK_NE(&from, this); + const ConnectionSet_IdList* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConnectionSet.IdList) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConnectionSet.IdList) + MergeFrom(*source); + } +} + +void ConnectionSet_IdList::MergeFrom(const ConnectionSet_IdList& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConnectionSet.IdList) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + ids_.MergeFrom(from.ids_); +} + +void ConnectionSet_IdList::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConnectionSet.IdList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConnectionSet_IdList::CopyFrom(const ConnectionSet_IdList& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConnectionSet.IdList) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionSet_IdList::IsInitialized() const { + return true; +} + +void ConnectionSet_IdList::Swap(ConnectionSet_IdList* other) { + if (other == this) return; + InternalSwap(other); +} +void ConnectionSet_IdList::InternalSwap(ConnectionSet_IdList* other) { + using std::swap; + ids_.InternalSwap(&other->ids_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ConnectionSet_IdList::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +ConnectionSet_DownstreamEntry_DoNotUse::ConnectionSet_DownstreamEntry_DoNotUse() {} +ConnectionSet_DownstreamEntry_DoNotUse::ConnectionSet_DownstreamEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void ConnectionSet_DownstreamEntry_DoNotUse::MergeFrom(const ConnectionSet_DownstreamEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ConnectionSet_DownstreamEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[1]; +} +void ConnectionSet_DownstreamEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +ConnectionSet_UpstreamEntry_DoNotUse::ConnectionSet_UpstreamEntry_DoNotUse() {} +ConnectionSet_UpstreamEntry_DoNotUse::ConnectionSet_UpstreamEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void ConnectionSet_UpstreamEntry_DoNotUse::MergeFrom(const ConnectionSet_UpstreamEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ConnectionSet_UpstreamEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[2]; +} +void ConnectionSet_UpstreamEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void ConnectionSet::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConnectionSet::kDownstreamFieldNumber; +const int ConnectionSet::kUpstreamFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConnectionSet::ConnectionSet() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ConnectionSet) +} +ConnectionSet::ConnectionSet(const ConnectionSet& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + downstream_.MergeFrom(from.downstream_); + upstream_.MergeFrom(from.upstream_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConnectionSet) +} + +void ConnectionSet::SharedCtor() { + _cached_size_ = 0; +} + +ConnectionSet::~ConnectionSet() { + // @@protoc_insertion_point(destructor:flyteidl.core.ConnectionSet) + SharedDtor(); +} + +void ConnectionSet::SharedDtor() { +} + +void ConnectionSet::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConnectionSet::descriptor() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ConnectionSet& ConnectionSet::default_instance() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet(); + return *internal_default_instance(); +} + +ConnectionSet* ConnectionSet::New(::google::protobuf::Arena* arena) const { + ConnectionSet* n = new ConnectionSet; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ConnectionSet::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConnectionSet) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + downstream_.Clear(); + upstream_.Clear(); + _internal_metadata_.Clear(); +} + +bool ConnectionSet::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ConnectionSet) + 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)) { + // map downstream = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + ConnectionSet_DownstreamEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ConnectionSet_DownstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList > > parser(&downstream_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key")); + } else { + goto handle_unusual; + } + break; + } + + // map upstream = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + ConnectionSet_UpstreamEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ConnectionSet_UpstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList > > parser(&upstream_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key")); + } 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.ConnectionSet) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ConnectionSet) + return false; +#undef DO_ +} + +void ConnectionSet::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ConnectionSet) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map downstream = 7; + if (!this->downstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->downstream().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->downstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(downstream_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it) { + entry.reset(downstream_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + // map upstream = 8; + if (!this->upstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->upstream().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->upstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(upstream_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it) { + entry.reset(upstream_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ConnectionSet) +} + +::google::protobuf::uint8* ConnectionSet::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConnectionSet) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map downstream = 7; + if (!this->downstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.DownstreamEntry.key"); + } + }; + + if (deterministic && + this->downstream().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->downstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(downstream_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 7, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it) { + entry.reset(downstream_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 7, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + // map upstream = 8; + if (!this->upstream().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ConnectionSet.UpstreamEntry.key"); + } + }; + + if (deterministic && + this->upstream().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->upstream().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(upstream_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 8, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it) { + entry.reset(upstream_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 8, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ConnectionSet) + return target; +} + +size_t ConnectionSet::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConnectionSet) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map downstream = 7; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->downstream_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->downstream().begin(); + it != this->downstream().end(); ++it) { + entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map upstream = 8; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->upstream_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator + it = this->upstream().begin(); + it != this->upstream().end(); ++it) { + entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ConnectionSet::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConnectionSet) + GOOGLE_DCHECK_NE(&from, this); + const ConnectionSet* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConnectionSet) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConnectionSet) + MergeFrom(*source); + } +} + +void ConnectionSet::MergeFrom(const ConnectionSet& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConnectionSet) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + downstream_.MergeFrom(from.downstream_); + upstream_.MergeFrom(from.upstream_); +} + +void ConnectionSet::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConnectionSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConnectionSet::CopyFrom(const ConnectionSet& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConnectionSet) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionSet::IsInitialized() const { + return true; +} + +void ConnectionSet::Swap(ConnectionSet* other) { + if (other == this) return; + InternalSwap(other); +} +void ConnectionSet::InternalSwap(ConnectionSet* other) { + using std::swap; + downstream_.Swap(&other->downstream_); + upstream_.Swap(&other->upstream_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ConnectionSet::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CompiledWorkflow::InitAsDefaultInstance() { + ::flyteidl::core::_CompiledWorkflow_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::WorkflowTemplate*>( + ::flyteidl::core::WorkflowTemplate::internal_default_instance()); + ::flyteidl::core::_CompiledWorkflow_default_instance_._instance.get_mutable()->connections_ = const_cast< ::flyteidl::core::ConnectionSet*>( + ::flyteidl::core::ConnectionSet::internal_default_instance()); +} +void CompiledWorkflow::clear_template_() { + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CompiledWorkflow::kTemplateFieldNumber; +const int CompiledWorkflow::kConnectionsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CompiledWorkflow::CompiledWorkflow() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflow(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CompiledWorkflow) +} +CompiledWorkflow::CompiledWorkflow(const CompiledWorkflow& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::WorkflowTemplate(*from.template__); + } else { + template__ = NULL; + } + if (from.has_connections()) { + connections_ = new ::flyteidl::core::ConnectionSet(*from.connections_); + } else { + connections_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledWorkflow) +} + +void CompiledWorkflow::SharedCtor() { + ::memset(&template__, 0, static_cast( + reinterpret_cast(&connections_) - + reinterpret_cast(&template__)) + sizeof(connections_)); + _cached_size_ = 0; +} + +CompiledWorkflow::~CompiledWorkflow() { + // @@protoc_insertion_point(destructor:flyteidl.core.CompiledWorkflow) + SharedDtor(); +} + +void CompiledWorkflow::SharedDtor() { + if (this != internal_default_instance()) delete template__; + if (this != internal_default_instance()) delete connections_; +} + +void CompiledWorkflow::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompiledWorkflow::descriptor() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CompiledWorkflow& CompiledWorkflow::default_instance() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflow(); + return *internal_default_instance(); +} + +CompiledWorkflow* CompiledWorkflow::New(::google::protobuf::Arena* arena) const { + CompiledWorkflow* n = new CompiledWorkflow; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void CompiledWorkflow::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledWorkflow) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; + if (GetArenaNoVirtual() == NULL && connections_ != NULL) { + delete connections_; + } + connections_ = NULL; + _internal_metadata_.Clear(); +} + +bool CompiledWorkflow::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CompiledWorkflow) + 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)) { + // .flyteidl.core.WorkflowTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ConnectionSet connections = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_connections())); + } 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.CompiledWorkflow) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledWorkflow) + return false; +#undef DO_ +} + +void CompiledWorkflow::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledWorkflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->template__, output); + } + + // .flyteidl.core.ConnectionSet connections = 2; + if (this->has_connections()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->connections_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledWorkflow) +} + +::google::protobuf::uint8* CompiledWorkflow::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledWorkflow) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->template__, deterministic, target); + } + + // .flyteidl.core.ConnectionSet connections = 2; + if (this->has_connections()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->connections_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CompiledWorkflow) + return target; +} + +size_t CompiledWorkflow::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledWorkflow) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->template__); + } + + // .flyteidl.core.ConnectionSet connections = 2; + if (this->has_connections()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->connections_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompiledWorkflow::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledWorkflow) + GOOGLE_DCHECK_NE(&from, this); + const CompiledWorkflow* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledWorkflow) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledWorkflow) + MergeFrom(*source); + } +} + +void CompiledWorkflow::MergeFrom(const CompiledWorkflow& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledWorkflow) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.template_()); + } + if (from.has_connections()) { + mutable_connections()->::flyteidl::core::ConnectionSet::MergeFrom(from.connections()); + } +} + +void CompiledWorkflow::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledWorkflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompiledWorkflow::CopyFrom(const CompiledWorkflow& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledWorkflow) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompiledWorkflow::IsInitialized() const { + return true; +} + +void CompiledWorkflow::Swap(CompiledWorkflow* other) { + if (other == this) return; + InternalSwap(other); +} +void CompiledWorkflow::InternalSwap(CompiledWorkflow* other) { + using std::swap; + swap(template__, other->template__); + swap(connections_, other->connections_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CompiledWorkflow::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CompiledTask::InitAsDefaultInstance() { + ::flyteidl::core::_CompiledTask_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( + ::flyteidl::core::TaskTemplate::internal_default_instance()); +} +void CompiledTask::clear_template_() { + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CompiledTask::kTemplateFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CompiledTask::CompiledTask() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledTask(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CompiledTask) +} +CompiledTask::CompiledTask(const CompiledTask& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_template_()) { + template__ = new ::flyteidl::core::TaskTemplate(*from.template__); + } else { + template__ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledTask) +} + +void CompiledTask::SharedCtor() { + template__ = NULL; + _cached_size_ = 0; +} + +CompiledTask::~CompiledTask() { + // @@protoc_insertion_point(destructor:flyteidl.core.CompiledTask) + SharedDtor(); +} + +void CompiledTask::SharedDtor() { + if (this != internal_default_instance()) delete template__; +} + +void CompiledTask::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompiledTask::descriptor() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CompiledTask& CompiledTask::default_instance() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledTask(); + return *internal_default_instance(); +} + +CompiledTask* CompiledTask::New(::google::protobuf::Arena* arena) const { + CompiledTask* n = new CompiledTask; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void CompiledTask::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledTask) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && template__ != NULL) { + delete template__; + } + template__ = NULL; + _internal_metadata_.Clear(); +} + +bool CompiledTask::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CompiledTask) + 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)) { + // .flyteidl.core.TaskTemplate template = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_template_())); + } 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.CompiledTask) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledTask) + return false; +#undef DO_ +} + +void CompiledTask::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->template__, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledTask) +} + +::google::protobuf::uint8* CompiledTask::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledTask) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->template__, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CompiledTask) + return target; +} + +size_t CompiledTask::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledTask) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.TaskTemplate template = 1; + if (this->has_template_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->template__); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompiledTask::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledTask) + GOOGLE_DCHECK_NE(&from, this); + const CompiledTask* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledTask) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledTask) + MergeFrom(*source); + } +} + +void CompiledTask::MergeFrom(const CompiledTask& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledTask) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_template_()) { + mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); + } +} + +void CompiledTask::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompiledTask::CopyFrom(const CompiledTask& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledTask) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompiledTask::IsInitialized() const { + return true; +} + +void CompiledTask::Swap(CompiledTask* other) { + if (other == this) return; + InternalSwap(other); +} +void CompiledTask::InternalSwap(CompiledTask* other) { + using std::swap; + swap(template__, other->template__); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CompiledTask::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void CompiledWorkflowClosure::InitAsDefaultInstance() { + ::flyteidl::core::_CompiledWorkflowClosure_default_instance_._instance.get_mutable()->primary_ = const_cast< ::flyteidl::core::CompiledWorkflow*>( + ::flyteidl::core::CompiledWorkflow::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CompiledWorkflowClosure::kPrimaryFieldNumber; +const int CompiledWorkflowClosure::kSubWorkflowsFieldNumber; +const int CompiledWorkflowClosure::kTasksFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CompiledWorkflowClosure::CompiledWorkflowClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflowClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.CompiledWorkflowClosure) +} +CompiledWorkflowClosure::CompiledWorkflowClosure(const CompiledWorkflowClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + sub_workflows_(from.sub_workflows_), + tasks_(from.tasks_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_primary()) { + primary_ = new ::flyteidl::core::CompiledWorkflow(*from.primary_); + } else { + primary_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledWorkflowClosure) +} + +void CompiledWorkflowClosure::SharedCtor() { + primary_ = NULL; + _cached_size_ = 0; +} + +CompiledWorkflowClosure::~CompiledWorkflowClosure() { + // @@protoc_insertion_point(destructor:flyteidl.core.CompiledWorkflowClosure) + SharedDtor(); +} + +void CompiledWorkflowClosure::SharedDtor() { + if (this != internal_default_instance()) delete primary_; +} + +void CompiledWorkflowClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* CompiledWorkflowClosure::descriptor() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const CompiledWorkflowClosure& CompiledWorkflowClosure::default_instance() { + ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflowClosure(); + return *internal_default_instance(); +} + +CompiledWorkflowClosure* CompiledWorkflowClosure::New(::google::protobuf::Arena* arena) const { + CompiledWorkflowClosure* n = new CompiledWorkflowClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void CompiledWorkflowClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + sub_workflows_.Clear(); + tasks_.Clear(); + if (GetArenaNoVirtual() == NULL && primary_ != NULL) { + delete primary_; + } + primary_ = NULL; + _internal_metadata_.Clear(); +} + +bool CompiledWorkflowClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.CompiledWorkflowClosure) + 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)) { + // .flyteidl.core.CompiledWorkflow primary = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_primary())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_sub_workflows())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tasks())); + } 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.CompiledWorkflowClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledWorkflowClosure) + return false; +#undef DO_ +} + +void CompiledWorkflowClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflow primary = 1; + if (this->has_primary()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->primary_, output); + } + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + for (unsigned int i = 0, + n = static_cast(this->sub_workflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->sub_workflows(static_cast(i)), output); + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->tasks(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledWorkflowClosure) +} + +::google::protobuf::uint8* CompiledWorkflowClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.CompiledWorkflow primary = 1; + if (this->has_primary()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->primary_, deterministic, target); + } + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + for (unsigned int i = 0, + n = static_cast(this->sub_workflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->sub_workflows(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->tasks(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.CompiledWorkflowClosure) + return target; +} + +size_t CompiledWorkflowClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledWorkflowClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + { + unsigned int count = static_cast(this->sub_workflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->sub_workflows(static_cast(i))); + } + } + + // repeated .flyteidl.core.CompiledTask tasks = 3; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // .flyteidl.core.CompiledWorkflow primary = 1; + if (this->has_primary()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->primary_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void CompiledWorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledWorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + const CompiledWorkflowClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledWorkflowClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledWorkflowClosure) + MergeFrom(*source); + } +} + +void CompiledWorkflowClosure::MergeFrom(const CompiledWorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledWorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + sub_workflows_.MergeFrom(from.sub_workflows_); + tasks_.MergeFrom(from.tasks_); + if (from.has_primary()) { + mutable_primary()->::flyteidl::core::CompiledWorkflow::MergeFrom(from.primary()); + } +} + +void CompiledWorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledWorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompiledWorkflowClosure::CopyFrom(const CompiledWorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledWorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompiledWorkflowClosure::IsInitialized() const { + return true; +} + +void CompiledWorkflowClosure::Swap(CompiledWorkflowClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void CompiledWorkflowClosure::InternalSwap(CompiledWorkflowClosure* other) { + using std::swap; + sub_workflows_.InternalSwap(&other->sub_workflows_); + tasks_.InternalSwap(&other->tasks_); + swap(primary_, other->primary_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata CompiledWorkflowClosure::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcompiler_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h new file mode 100644 index 0000000000..3a43b99d10 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h @@ -0,0 +1,1132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/tasks.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fcompiler_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[7]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsConnectionSet_IdListImpl(); +void InitDefaultsConnectionSet_IdList(); +void InitDefaultsConnectionSet_DownstreamEntry_DoNotUseImpl(); +void InitDefaultsConnectionSet_DownstreamEntry_DoNotUse(); +void InitDefaultsConnectionSet_UpstreamEntry_DoNotUseImpl(); +void InitDefaultsConnectionSet_UpstreamEntry_DoNotUse(); +void InitDefaultsConnectionSetImpl(); +void InitDefaultsConnectionSet(); +void InitDefaultsCompiledWorkflowImpl(); +void InitDefaultsCompiledWorkflow(); +void InitDefaultsCompiledTaskImpl(); +void InitDefaultsCompiledTask(); +void InitDefaultsCompiledWorkflowClosureImpl(); +void InitDefaultsCompiledWorkflowClosure(); +inline void InitDefaults() { + InitDefaultsConnectionSet_IdList(); + InitDefaultsConnectionSet_DownstreamEntry_DoNotUse(); + InitDefaultsConnectionSet_UpstreamEntry_DoNotUse(); + InitDefaultsConnectionSet(); + InitDefaultsCompiledWorkflow(); + InitDefaultsCompiledTask(); + InitDefaultsCompiledWorkflowClosure(); +} +} // namespace protobuf_flyteidl_2fcore_2fcompiler_2eproto +namespace flyteidl { +namespace core { +class CompiledTask; +class CompiledTaskDefaultTypeInternal; +extern CompiledTaskDefaultTypeInternal _CompiledTask_default_instance_; +class CompiledWorkflow; +class CompiledWorkflowDefaultTypeInternal; +extern CompiledWorkflowDefaultTypeInternal _CompiledWorkflow_default_instance_; +class CompiledWorkflowClosure; +class CompiledWorkflowClosureDefaultTypeInternal; +extern CompiledWorkflowClosureDefaultTypeInternal _CompiledWorkflowClosure_default_instance_; +class ConnectionSet; +class ConnectionSetDefaultTypeInternal; +extern ConnectionSetDefaultTypeInternal _ConnectionSet_default_instance_; +class ConnectionSet_DownstreamEntry_DoNotUse; +class ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal; +extern ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal _ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; +class ConnectionSet_IdList; +class ConnectionSet_IdListDefaultTypeInternal; +extern ConnectionSet_IdListDefaultTypeInternal _ConnectionSet_IdList_default_instance_; +class ConnectionSet_UpstreamEntry_DoNotUse; +class ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal; +extern ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal _ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +// =================================================================== + +class ConnectionSet_IdList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConnectionSet.IdList) */ { + public: + ConnectionSet_IdList(); + virtual ~ConnectionSet_IdList(); + + ConnectionSet_IdList(const ConnectionSet_IdList& from); + + inline ConnectionSet_IdList& operator=(const ConnectionSet_IdList& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ConnectionSet_IdList(ConnectionSet_IdList&& from) noexcept + : ConnectionSet_IdList() { + *this = ::std::move(from); + } + + inline ConnectionSet_IdList& operator=(ConnectionSet_IdList&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ConnectionSet_IdList& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConnectionSet_IdList* internal_default_instance() { + return reinterpret_cast( + &_ConnectionSet_IdList_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(ConnectionSet_IdList* other); + friend void swap(ConnectionSet_IdList& a, ConnectionSet_IdList& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ConnectionSet_IdList* New() const PROTOBUF_FINAL { return New(NULL); } + + ConnectionSet_IdList* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ConnectionSet_IdList& from); + void MergeFrom(const ConnectionSet_IdList& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ConnectionSet_IdList* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string ids = 1; + int ids_size() const; + void clear_ids(); + static const int kIdsFieldNumber = 1; + const ::std::string& ids(int index) const; + ::std::string* mutable_ids(int index); + void set_ids(int index, const ::std::string& value); + #if LANG_CXX11 + void set_ids(int index, ::std::string&& value); + #endif + void set_ids(int index, const char* value); + void set_ids(int index, const char* value, size_t size); + ::std::string* add_ids(); + void add_ids(const ::std::string& value); + #if LANG_CXX11 + void add_ids(::std::string&& value); + #endif + void add_ids(const char* value); + void add_ids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& ids() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_ids(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> ids_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSet_IdListImpl(); +}; +// ------------------------------------------------------------------- + +class ConnectionSet_DownstreamEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + ConnectionSet_DownstreamEntry_DoNotUse(); + ConnectionSet_DownstreamEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ConnectionSet_DownstreamEntry_DoNotUse& other); + static const ConnectionSet_DownstreamEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ConnectionSet_UpstreamEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + ConnectionSet_UpstreamEntry_DoNotUse(); + ConnectionSet_UpstreamEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ConnectionSet_UpstreamEntry_DoNotUse& other); + static const ConnectionSet_UpstreamEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ConnectionSet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConnectionSet) */ { + public: + ConnectionSet(); + virtual ~ConnectionSet(); + + ConnectionSet(const ConnectionSet& from); + + inline ConnectionSet& operator=(const ConnectionSet& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ConnectionSet(ConnectionSet&& from) noexcept + : ConnectionSet() { + *this = ::std::move(from); + } + + inline ConnectionSet& operator=(ConnectionSet&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ConnectionSet& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConnectionSet* internal_default_instance() { + return reinterpret_cast( + &_ConnectionSet_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(ConnectionSet* other); + friend void swap(ConnectionSet& a, ConnectionSet& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ConnectionSet* New() const PROTOBUF_FINAL { return New(NULL); } + + ConnectionSet* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ConnectionSet& from); + void MergeFrom(const ConnectionSet& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ConnectionSet* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef ConnectionSet_IdList IdList; + + // accessors ------------------------------------------------------- + + // map downstream = 7; + int downstream_size() const; + void clear_downstream(); + static const int kDownstreamFieldNumber = 7; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& + downstream() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* + mutable_downstream(); + + // map upstream = 8; + int upstream_size() const; + void clear_upstream(); + static const int kUpstreamFieldNumber = 8; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& + upstream() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* + mutable_upstream(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ConnectionSet_DownstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > downstream_; + ::google::protobuf::internal::MapField< + ConnectionSet_UpstreamEntry_DoNotUse, + ::std::string, ::flyteidl::core::ConnectionSet_IdList, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > upstream_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsConnectionSetImpl(); +}; +// ------------------------------------------------------------------- + +class CompiledWorkflow : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledWorkflow) */ { + public: + CompiledWorkflow(); + virtual ~CompiledWorkflow(); + + CompiledWorkflow(const CompiledWorkflow& from); + + inline CompiledWorkflow& operator=(const CompiledWorkflow& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CompiledWorkflow(CompiledWorkflow&& from) noexcept + : CompiledWorkflow() { + *this = ::std::move(from); + } + + inline CompiledWorkflow& operator=(CompiledWorkflow&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const CompiledWorkflow& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompiledWorkflow* internal_default_instance() { + return reinterpret_cast( + &_CompiledWorkflow_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(CompiledWorkflow* other); + friend void swap(CompiledWorkflow& a, CompiledWorkflow& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CompiledWorkflow* New() const PROTOBUF_FINAL { return New(NULL); } + + CompiledWorkflow* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const CompiledWorkflow& from); + void MergeFrom(const CompiledWorkflow& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(CompiledWorkflow* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::WorkflowTemplate& template_() const; + ::flyteidl::core::WorkflowTemplate* release_template_(); + ::flyteidl::core::WorkflowTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_); + + // .flyteidl.core.ConnectionSet connections = 2; + bool has_connections() const; + void clear_connections(); + static const int kConnectionsFieldNumber = 2; + const ::flyteidl::core::ConnectionSet& connections() const; + ::flyteidl::core::ConnectionSet* release_connections(); + ::flyteidl::core::ConnectionSet* mutable_connections(); + void set_allocated_connections(::flyteidl::core::ConnectionSet* connections); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowTemplate* template__; + ::flyteidl::core::ConnectionSet* connections_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflowImpl(); +}; +// ------------------------------------------------------------------- + +class CompiledTask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledTask) */ { + public: + CompiledTask(); + virtual ~CompiledTask(); + + CompiledTask(const CompiledTask& from); + + inline CompiledTask& operator=(const CompiledTask& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CompiledTask(CompiledTask&& from) noexcept + : CompiledTask() { + *this = ::std::move(from); + } + + inline CompiledTask& operator=(CompiledTask&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const CompiledTask& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompiledTask* internal_default_instance() { + return reinterpret_cast( + &_CompiledTask_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(CompiledTask* other); + friend void swap(CompiledTask& a, CompiledTask& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CompiledTask* New() const PROTOBUF_FINAL { return New(NULL); } + + CompiledTask* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const CompiledTask& from); + void MergeFrom(const CompiledTask& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(CompiledTask* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskTemplate template = 1; + bool has_template_() const; + void clear_template_(); + static const int kTemplateFieldNumber = 1; + const ::flyteidl::core::TaskTemplate& template_() const; + ::flyteidl::core::TaskTemplate* release_template_(); + ::flyteidl::core::TaskTemplate* mutable_template_(); + void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskTemplate* template__; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledTaskImpl(); +}; +// ------------------------------------------------------------------- + +class CompiledWorkflowClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledWorkflowClosure) */ { + public: + CompiledWorkflowClosure(); + virtual ~CompiledWorkflowClosure(); + + CompiledWorkflowClosure(const CompiledWorkflowClosure& from); + + inline CompiledWorkflowClosure& operator=(const CompiledWorkflowClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CompiledWorkflowClosure(CompiledWorkflowClosure&& from) noexcept + : CompiledWorkflowClosure() { + *this = ::std::move(from); + } + + inline CompiledWorkflowClosure& operator=(CompiledWorkflowClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const CompiledWorkflowClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompiledWorkflowClosure* internal_default_instance() { + return reinterpret_cast( + &_CompiledWorkflowClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(CompiledWorkflowClosure* other); + friend void swap(CompiledWorkflowClosure& a, CompiledWorkflowClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CompiledWorkflowClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + CompiledWorkflowClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const CompiledWorkflowClosure& from); + void MergeFrom(const CompiledWorkflowClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(CompiledWorkflowClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + int sub_workflows_size() const; + void clear_sub_workflows(); + static const int kSubWorkflowsFieldNumber = 2; + const ::flyteidl::core::CompiledWorkflow& sub_workflows(int index) const; + ::flyteidl::core::CompiledWorkflow* mutable_sub_workflows(int index); + ::flyteidl::core::CompiledWorkflow* add_sub_workflows(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >* + mutable_sub_workflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >& + sub_workflows() const; + + // repeated .flyteidl.core.CompiledTask tasks = 3; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 3; + const ::flyteidl::core::CompiledTask& tasks(int index) const; + ::flyteidl::core::CompiledTask* mutable_tasks(int index); + ::flyteidl::core::CompiledTask* add_tasks(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >* + mutable_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >& + tasks() const; + + // .flyteidl.core.CompiledWorkflow primary = 1; + bool has_primary() const; + void clear_primary(); + static const int kPrimaryFieldNumber = 1; + const ::flyteidl::core::CompiledWorkflow& primary() const; + ::flyteidl::core::CompiledWorkflow* release_primary(); + ::flyteidl::core::CompiledWorkflow* mutable_primary(); + void set_allocated_primary(::flyteidl::core::CompiledWorkflow* primary); + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow > sub_workflows_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask > tasks_; + ::flyteidl::core::CompiledWorkflow* primary_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcompiler_2eproto::InitDefaultsCompiledWorkflowClosureImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ConnectionSet_IdList + +// repeated string ids = 1; +inline int ConnectionSet_IdList::ids_size() const { + return ids_.size(); +} +inline void ConnectionSet_IdList::clear_ids() { + ids_.Clear(); +} +inline const ::std::string& ConnectionSet_IdList::ids(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.ConnectionSet.IdList.ids) + return ids_.Get(index); +} +inline ::std::string* ConnectionSet_IdList::mutable_ids(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.ConnectionSet.IdList.ids) + return ids_.Mutable(index); +} +inline void ConnectionSet_IdList::set_ids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.ConnectionSet.IdList.ids) + ids_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void ConnectionSet_IdList::set_ids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.ConnectionSet.IdList.ids) + ids_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void ConnectionSet_IdList::set_ids(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ConnectionSet.IdList.ids) +} +inline void ConnectionSet_IdList::set_ids(int index, const char* value, size_t size) { + ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ConnectionSet.IdList.ids) +} +inline ::std::string* ConnectionSet_IdList::add_ids() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.ConnectionSet.IdList.ids) + return ids_.Add(); +} +inline void ConnectionSet_IdList::add_ids(const ::std::string& value) { + ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.ConnectionSet.IdList.ids) +} +#if LANG_CXX11 +inline void ConnectionSet_IdList::add_ids(::std::string&& value) { + ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.ConnectionSet.IdList.ids) +} +#endif +inline void ConnectionSet_IdList::add_ids(const char* value) { + GOOGLE_DCHECK(value != NULL); + ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.ConnectionSet.IdList.ids) +} +inline void ConnectionSet_IdList::add_ids(const char* value, size_t size) { + ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.ConnectionSet.IdList.ids) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +ConnectionSet_IdList::ids() const { + // @@protoc_insertion_point(field_list:flyteidl.core.ConnectionSet.IdList.ids) + return ids_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +ConnectionSet_IdList::mutable_ids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.ConnectionSet.IdList.ids) + return &ids_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ConnectionSet + +// map downstream = 7; +inline int ConnectionSet::downstream_size() const { + return downstream_.size(); +} +inline void ConnectionSet::clear_downstream() { + downstream_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& +ConnectionSet::downstream() const { + // @@protoc_insertion_point(field_map:flyteidl.core.ConnectionSet.downstream) + return downstream_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* +ConnectionSet::mutable_downstream() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ConnectionSet.downstream) + return downstream_.MutableMap(); +} + +// map upstream = 8; +inline int ConnectionSet::upstream_size() const { + return upstream_.size(); +} +inline void ConnectionSet::clear_upstream() { + upstream_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& +ConnectionSet::upstream() const { + // @@protoc_insertion_point(field_map:flyteidl.core.ConnectionSet.upstream) + return upstream_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* +ConnectionSet::mutable_upstream() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ConnectionSet.upstream) + return upstream_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// CompiledWorkflow + +// .flyteidl.core.WorkflowTemplate template = 1; +inline bool CompiledWorkflow::has_template_() const { + return this != internal_default_instance() && template__ != NULL; +} +inline const ::flyteidl::core::WorkflowTemplate& CompiledWorkflow::template_() const { + const ::flyteidl::core::WorkflowTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflow.template) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowTemplate_default_instance_); +} +inline ::flyteidl::core::WorkflowTemplate* CompiledWorkflow::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflow.template) + + ::flyteidl::core::WorkflowTemplate* temp = template__; + template__ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowTemplate* CompiledWorkflow::mutable_template_() { + + if (template__ == NULL) { + template__ = new ::flyteidl::core::WorkflowTemplate; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflow.template) + return template__; +} +inline void CompiledWorkflow::set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.core.CompiledWorkflow.template) +} + +// .flyteidl.core.ConnectionSet connections = 2; +inline bool CompiledWorkflow::has_connections() const { + return this != internal_default_instance() && connections_ != NULL; +} +inline void CompiledWorkflow::clear_connections() { + if (GetArenaNoVirtual() == NULL && connections_ != NULL) { + delete connections_; + } + connections_ = NULL; +} +inline const ::flyteidl::core::ConnectionSet& CompiledWorkflow::connections() const { + const ::flyteidl::core::ConnectionSet* p = connections_; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflow.connections) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_ConnectionSet_default_instance_); +} +inline ::flyteidl::core::ConnectionSet* CompiledWorkflow::release_connections() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflow.connections) + + ::flyteidl::core::ConnectionSet* temp = connections_; + connections_ = NULL; + return temp; +} +inline ::flyteidl::core::ConnectionSet* CompiledWorkflow::mutable_connections() { + + if (connections_ == NULL) { + connections_ = new ::flyteidl::core::ConnectionSet; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflow.connections) + return connections_; +} +inline void CompiledWorkflow::set_allocated_connections(::flyteidl::core::ConnectionSet* connections) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete connections_; + } + if (connections) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + connections = ::google::protobuf::internal::GetOwnedMessage( + message_arena, connections, submessage_arena); + } + + } else { + + } + connections_ = connections; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflow.connections) +} + +// ------------------------------------------------------------------- + +// CompiledTask + +// .flyteidl.core.TaskTemplate template = 1; +inline bool CompiledTask::has_template_() const { + return this != internal_default_instance() && template__ != NULL; +} +inline const ::flyteidl::core::TaskTemplate& CompiledTask::template_() const { + const ::flyteidl::core::TaskTemplate* p = template__; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledTask.template) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskTemplate_default_instance_); +} +inline ::flyteidl::core::TaskTemplate* CompiledTask::release_template_() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledTask.template) + + ::flyteidl::core::TaskTemplate* temp = template__; + template__ = NULL; + return temp; +} +inline ::flyteidl::core::TaskTemplate* CompiledTask::mutable_template_() { + + if (template__ == NULL) { + template__ = new ::flyteidl::core::TaskTemplate; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledTask.template) + return template__; +} +inline void CompiledTask::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); + } + if (template_) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.core.CompiledTask.template) +} + +// ------------------------------------------------------------------- + +// CompiledWorkflowClosure + +// .flyteidl.core.CompiledWorkflow primary = 1; +inline bool CompiledWorkflowClosure::has_primary() const { + return this != internal_default_instance() && primary_ != NULL; +} +inline void CompiledWorkflowClosure::clear_primary() { + if (GetArenaNoVirtual() == NULL && primary_ != NULL) { + delete primary_; + } + primary_ = NULL; +} +inline const ::flyteidl::core::CompiledWorkflow& CompiledWorkflowClosure::primary() const { + const ::flyteidl::core::CompiledWorkflow* p = primary_; + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.primary) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_CompiledWorkflow_default_instance_); +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::release_primary() { + // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflowClosure.primary) + + ::flyteidl::core::CompiledWorkflow* temp = primary_; + primary_ = NULL; + return temp; +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::mutable_primary() { + + if (primary_ == NULL) { + primary_ = new ::flyteidl::core::CompiledWorkflow; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.primary) + return primary_; +} +inline void CompiledWorkflowClosure::set_allocated_primary(::flyteidl::core::CompiledWorkflow* primary) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete primary_; + } + if (primary) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + primary = ::google::protobuf::internal::GetOwnedMessage( + message_arena, primary, submessage_arena); + } + + } else { + + } + primary_ = primary; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflowClosure.primary) +} + +// repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; +inline int CompiledWorkflowClosure::sub_workflows_size() const { + return sub_workflows_.size(); +} +inline void CompiledWorkflowClosure::clear_sub_workflows() { + sub_workflows_.Clear(); +} +inline const ::flyteidl::core::CompiledWorkflow& CompiledWorkflowClosure::sub_workflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_.Get(index); +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::mutable_sub_workflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_.Mutable(index); +} +inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::add_sub_workflows() { + // @@protoc_insertion_point(field_add:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >* +CompiledWorkflowClosure::mutable_sub_workflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return &sub_workflows_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >& +CompiledWorkflowClosure::sub_workflows() const { + // @@protoc_insertion_point(field_list:flyteidl.core.CompiledWorkflowClosure.sub_workflows) + return sub_workflows_; +} + +// repeated .flyteidl.core.CompiledTask tasks = 3; +inline int CompiledWorkflowClosure::tasks_size() const { + return tasks_.size(); +} +inline void CompiledWorkflowClosure::clear_tasks() { + tasks_.Clear(); +} +inline const ::flyteidl::core::CompiledTask& CompiledWorkflowClosure::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::core::CompiledTask* CompiledWorkflowClosure::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_.Mutable(index); +} +inline ::flyteidl::core::CompiledTask* CompiledWorkflowClosure::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >* +CompiledWorkflowClosure::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.CompiledWorkflowClosure.tasks) + return &tasks_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >& +CompiledWorkflowClosure::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.core.CompiledWorkflowClosure.tasks) + return tasks_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc new file mode 100644 index 0000000000..29dc68dabc --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/condition.proto + +#include "flyteidl/core/condition.pb.h" +#include "flyteidl/core/condition.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h new file mode 100644 index 0000000000..c97687eb32 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/condition.proto +#ifndef GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED + +#include "flyteidl/core/condition.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc new file mode 100644 index 0000000000..fa8318b792 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc @@ -0,0 +1,1688 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +#include "flyteidl/core/condition.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class ComparisonExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ComparisonExpression_default_instance_; +class OperandDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Primitive* primitive_; + ::google::protobuf::internal::ArenaStringPtr var_; +} _Operand_default_instance_; +class BooleanExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::ConjunctionExpression* conjunction_; + const ::flyteidl::core::ComparisonExpression* comparison_; +} _BooleanExpression_default_instance_; +class ConjunctionExpressionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ConjunctionExpression_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fcondition_2eproto { +void InitDefaultsComparisonExpressionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsOperand(); + { + void* ptr = &::flyteidl::core::_ComparisonExpression_default_instance_; + new (ptr) ::flyteidl::core::ComparisonExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ComparisonExpression::InitAsDefaultInstance(); +} + +void InitDefaultsComparisonExpression() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsComparisonExpressionImpl); +} + +void InitDefaultsOperandImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsPrimitive(); + { + void* ptr = &::flyteidl::core::_Operand_default_instance_; + new (ptr) ::flyteidl::core::Operand(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Operand::InitAsDefaultInstance(); +} + +void InitDefaultsOperand() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOperandImpl); +} + +void InitDefaultsBooleanExpressionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsComparisonExpression(); + { + void* ptr = &::flyteidl::core::_BooleanExpression_default_instance_; + new (ptr) ::flyteidl::core::BooleanExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_ConjunctionExpression_default_instance_; + new (ptr) ::flyteidl::core::ConjunctionExpression(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BooleanExpression::InitAsDefaultInstance(); + ::flyteidl::core::ConjunctionExpression::InitAsDefaultInstance(); +} + +void InitDefaultsBooleanExpression() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBooleanExpressionImpl); +} + +::google::protobuf::Metadata file_level_metadata[4]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, operator__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, left_value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, right_value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Operand, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Operand, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::OperandDefaultTypeInternal, primitive_), + offsetof(::flyteidl::core::OperandDefaultTypeInternal, var_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Operand, val_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BooleanExpression, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BooleanExpression, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::BooleanExpressionDefaultTypeInternal, conjunction_), + offsetof(::flyteidl::core::BooleanExpressionDefaultTypeInternal, comparison_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BooleanExpression, expr_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, operator__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, left_expression_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, right_expression_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::ComparisonExpression)}, + { 8, -1, sizeof(::flyteidl::core::Operand)}, + { 16, -1, sizeof(::flyteidl::core::BooleanExpression)}, + { 24, -1, sizeof(::flyteidl::core::ConjunctionExpression)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_ComparisonExpression_default_instance_), + reinterpret_cast(&::flyteidl::core::_Operand_default_instance_), + reinterpret_cast(&::flyteidl::core::_BooleanExpression_default_instance_), + reinterpret_cast(&::flyteidl::core::_ConjunctionExpression_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/condition.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\035flyteidl/core/condition.proto\022\rflyteid" + "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + ",.flyteidl.core.ComparisonExpression.Ope" + "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"N\n" + "\007Operand\022-\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + "ore.PrimitiveH\000\022\r\n\003var\030\002 \001(\tH\000B\005\n\003val\"\223\001" + "\n\021BooleanExpression\022;\n\013conjunction\030\001 \001(\013" + "2$.flyteidl.core.ConjunctionExpressionH\000" + "\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.core.Com" + "parisonExpressionH\000B\006\n\004expr\"\372\001\n\025Conjunct" + "ionExpression\022F\n\010operator\030\001 \001(\01624.flytei" + "dl.core.ConjunctionExpression.LogicalOpe" + "rator\0229\n\017left_expression\030\002 \001(\0132 .flyteid" + "l.core.BooleanExpression\022:\n\020right_expres" + "sion\030\003 \001(\0132 .flyteidl.core.BooleanExpres" + "sion\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n\002OR\020\001" + "B2Z0github.com/lyft/flyteidl/gen/pb-go/f" + "lyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 860); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/condition.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fcondition_2eproto +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* ComparisonExpression_Operator_descriptor() { + protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_enum_descriptors[0]; +} +bool ComparisonExpression_Operator_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ComparisonExpression_Operator ComparisonExpression::EQ; +const ComparisonExpression_Operator ComparisonExpression::NEQ; +const ComparisonExpression_Operator ComparisonExpression::GT; +const ComparisonExpression_Operator ComparisonExpression::GTE; +const ComparisonExpression_Operator ComparisonExpression::LT; +const ComparisonExpression_Operator ComparisonExpression::LTE; +const ComparisonExpression_Operator ComparisonExpression::Operator_MIN; +const ComparisonExpression_Operator ComparisonExpression::Operator_MAX; +const int ComparisonExpression::Operator_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* ConjunctionExpression_LogicalOperator_descriptor() { + protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_enum_descriptors[1]; +} +bool ConjunctionExpression_LogicalOperator_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ConjunctionExpression_LogicalOperator ConjunctionExpression::AND; +const ConjunctionExpression_LogicalOperator ConjunctionExpression::OR; +const ConjunctionExpression_LogicalOperator ConjunctionExpression::LogicalOperator_MIN; +const ConjunctionExpression_LogicalOperator ConjunctionExpression::LogicalOperator_MAX; +const int ConjunctionExpression::LogicalOperator_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void ComparisonExpression::InitAsDefaultInstance() { + ::flyteidl::core::_ComparisonExpression_default_instance_._instance.get_mutable()->left_value_ = const_cast< ::flyteidl::core::Operand*>( + ::flyteidl::core::Operand::internal_default_instance()); + ::flyteidl::core::_ComparisonExpression_default_instance_._instance.get_mutable()->right_value_ = const_cast< ::flyteidl::core::Operand*>( + ::flyteidl::core::Operand::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ComparisonExpression::kOperatorFieldNumber; +const int ComparisonExpression::kLeftValueFieldNumber; +const int ComparisonExpression::kRightValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ComparisonExpression::ComparisonExpression() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsComparisonExpression(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ComparisonExpression) +} +ComparisonExpression::ComparisonExpression(const ComparisonExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_left_value()) { + left_value_ = new ::flyteidl::core::Operand(*from.left_value_); + } else { + left_value_ = NULL; + } + if (from.has_right_value()) { + right_value_ = new ::flyteidl::core::Operand(*from.right_value_); + } else { + right_value_ = NULL; + } + operator__ = from.operator__; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ComparisonExpression) +} + +void ComparisonExpression::SharedCtor() { + ::memset(&left_value_, 0, static_cast( + reinterpret_cast(&operator__) - + reinterpret_cast(&left_value_)) + sizeof(operator__)); + _cached_size_ = 0; +} + +ComparisonExpression::~ComparisonExpression() { + // @@protoc_insertion_point(destructor:flyteidl.core.ComparisonExpression) + SharedDtor(); +} + +void ComparisonExpression::SharedDtor() { + if (this != internal_default_instance()) delete left_value_; + if (this != internal_default_instance()) delete right_value_; +} + +void ComparisonExpression::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ComparisonExpression::descriptor() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ComparisonExpression& ComparisonExpression::default_instance() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsComparisonExpression(); + return *internal_default_instance(); +} + +ComparisonExpression* ComparisonExpression::New(::google::protobuf::Arena* arena) const { + ComparisonExpression* n = new ComparisonExpression; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ComparisonExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ComparisonExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && left_value_ != NULL) { + delete left_value_; + } + left_value_ = NULL; + if (GetArenaNoVirtual() == NULL && right_value_ != NULL) { + delete right_value_; + } + right_value_ = NULL; + operator__ = 0; + _internal_metadata_.Clear(); +} + +bool ComparisonExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ComparisonExpression) + 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)) { + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_operator_(static_cast< ::flyteidl::core::ComparisonExpression_Operator >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Operand left_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_left_value())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Operand right_value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_right_value())); + } 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.ComparisonExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ComparisonExpression) + return false; +#undef DO_ +} + +void ComparisonExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ComparisonExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operator_(), output); + } + + // .flyteidl.core.Operand left_value = 2; + if (this->has_left_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->left_value_, output); + } + + // .flyteidl.core.Operand right_value = 3; + if (this->has_right_value()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->right_value_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ComparisonExpression) +} + +::google::protobuf::uint8* ComparisonExpression::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ComparisonExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operator_(), target); + } + + // .flyteidl.core.Operand left_value = 2; + if (this->has_left_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->left_value_, deterministic, target); + } + + // .flyteidl.core.Operand right_value = 3; + if (this->has_right_value()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->right_value_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ComparisonExpression) + return target; +} + +size_t ComparisonExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ComparisonExpression) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Operand left_value = 2; + if (this->has_left_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->left_value_); + } + + // .flyteidl.core.Operand right_value = 3; + if (this->has_right_value()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->right_value_); + } + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ComparisonExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ComparisonExpression) + GOOGLE_DCHECK_NE(&from, this); + const ComparisonExpression* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ComparisonExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ComparisonExpression) + MergeFrom(*source); + } +} + +void ComparisonExpression::MergeFrom(const ComparisonExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ComparisonExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_left_value()) { + mutable_left_value()->::flyteidl::core::Operand::MergeFrom(from.left_value()); + } + if (from.has_right_value()) { + mutable_right_value()->::flyteidl::core::Operand::MergeFrom(from.right_value()); + } + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } +} + +void ComparisonExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ComparisonExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ComparisonExpression::CopyFrom(const ComparisonExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ComparisonExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ComparisonExpression::IsInitialized() const { + return true; +} + +void ComparisonExpression::Swap(ComparisonExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void ComparisonExpression::InternalSwap(ComparisonExpression* other) { + using std::swap; + swap(left_value_, other->left_value_); + swap(right_value_, other->right_value_); + swap(operator__, other->operator__); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ComparisonExpression::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Operand::InitAsDefaultInstance() { + ::flyteidl::core::_Operand_default_instance_.primitive_ = const_cast< ::flyteidl::core::Primitive*>( + ::flyteidl::core::Primitive::internal_default_instance()); + ::flyteidl::core::_Operand_default_instance_.var_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void Operand::set_allocated_primitive(::flyteidl::core::Primitive* primitive) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_val(); + if (primitive) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + primitive = ::google::protobuf::internal::GetOwnedMessage( + message_arena, primitive, submessage_arena); + } + set_has_primitive(); + val_.primitive_ = primitive; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.primitive) +} +void Operand::clear_primitive() { + if (has_primitive()) { + delete val_.primitive_; + clear_has_val(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Operand::kPrimitiveFieldNumber; +const int Operand::kVarFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Operand::Operand() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsOperand(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Operand) +} +Operand::Operand(const Operand& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_val(); + switch (from.val_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kVar: { + set_var(from.var()); + break; + } + case VAL_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Operand) +} + +void Operand::SharedCtor() { + clear_has_val(); + _cached_size_ = 0; +} + +Operand::~Operand() { + // @@protoc_insertion_point(destructor:flyteidl.core.Operand) + SharedDtor(); +} + +void Operand::SharedDtor() { + if (has_val()) { + clear_val(); + } +} + +void Operand::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Operand::descriptor() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Operand& Operand::default_instance() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsOperand(); + return *internal_default_instance(); +} + +Operand* Operand::New(::google::protobuf::Arena* arena) const { + Operand* n = new Operand; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Operand::clear_val() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Operand) + switch (val_case()) { + case kPrimitive: { + delete val_.primitive_; + break; + } + case kVar: { + val_.var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case VAL_NOT_SET: { + break; + } + } + _oneof_case_[0] = VAL_NOT_SET; +} + + +void Operand::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Operand) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_val(); + _internal_metadata_.Clear(); +} + +bool Operand::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Operand) + 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)) { + // .flyteidl.core.Primitive primitive = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_primitive())); + } else { + goto handle_unusual; + } + break; + } + + // string var = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Operand.var")); + } 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.Operand) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Operand) + return false; +#undef DO_ +} + +void Operand::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Operand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1; + if (has_primitive()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *val_.primitive_, output); + } + + // string var = 2; + if (has_var()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Operand.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->var(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Operand) +} + +::google::protobuf::uint8* Operand::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Operand) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1; + if (has_primitive()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *val_.primitive_, deterministic, target); + } + + // string var = 2; + if (has_var()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Operand.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->var(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Operand) + return target; +} + +size_t Operand::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Operand) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (val_case()) { + // .flyteidl.core.Primitive primitive = 1; + case kPrimitive: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *val_.primitive_); + break; + } + // string var = 2; + case kVar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + break; + } + case VAL_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Operand::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Operand) + GOOGLE_DCHECK_NE(&from, this); + const Operand* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Operand) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Operand) + MergeFrom(*source); + } +} + +void Operand::MergeFrom(const Operand& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Operand) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.val_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kVar: { + set_var(from.var()); + break; + } + case VAL_NOT_SET: { + break; + } + } +} + +void Operand::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Operand) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Operand::CopyFrom(const Operand& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Operand) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Operand::IsInitialized() const { + return true; +} + +void Operand::Swap(Operand* other) { + if (other == this) return; + InternalSwap(other); +} +void Operand::InternalSwap(Operand* other) { + using std::swap; + swap(val_, other->val_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Operand::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BooleanExpression::InitAsDefaultInstance() { + ::flyteidl::core::_BooleanExpression_default_instance_.conjunction_ = const_cast< ::flyteidl::core::ConjunctionExpression*>( + ::flyteidl::core::ConjunctionExpression::internal_default_instance()); + ::flyteidl::core::_BooleanExpression_default_instance_.comparison_ = const_cast< ::flyteidl::core::ComparisonExpression*>( + ::flyteidl::core::ComparisonExpression::internal_default_instance()); +} +void BooleanExpression::set_allocated_conjunction(::flyteidl::core::ConjunctionExpression* conjunction) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_expr(); + if (conjunction) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + conjunction = ::google::protobuf::internal::GetOwnedMessage( + message_arena, conjunction, submessage_arena); + } + set_has_conjunction(); + expr_.conjunction_ = conjunction; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BooleanExpression.conjunction) +} +void BooleanExpression::set_allocated_comparison(::flyteidl::core::ComparisonExpression* comparison) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_expr(); + if (comparison) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + comparison = ::google::protobuf::internal::GetOwnedMessage( + message_arena, comparison, submessage_arena); + } + set_has_comparison(); + expr_.comparison_ = comparison; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BooleanExpression.comparison) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BooleanExpression::kConjunctionFieldNumber; +const int BooleanExpression::kComparisonFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BooleanExpression::BooleanExpression() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpression(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BooleanExpression) +} +BooleanExpression::BooleanExpression(const BooleanExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_expr(); + switch (from.expr_case()) { + case kConjunction: { + mutable_conjunction()->::flyteidl::core::ConjunctionExpression::MergeFrom(from.conjunction()); + break; + } + case kComparison: { + mutable_comparison()->::flyteidl::core::ComparisonExpression::MergeFrom(from.comparison()); + break; + } + case EXPR_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BooleanExpression) +} + +void BooleanExpression::SharedCtor() { + clear_has_expr(); + _cached_size_ = 0; +} + +BooleanExpression::~BooleanExpression() { + // @@protoc_insertion_point(destructor:flyteidl.core.BooleanExpression) + SharedDtor(); +} + +void BooleanExpression::SharedDtor() { + if (has_expr()) { + clear_expr(); + } +} + +void BooleanExpression::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BooleanExpression::descriptor() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BooleanExpression& BooleanExpression::default_instance() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpression(); + return *internal_default_instance(); +} + +BooleanExpression* BooleanExpression::New(::google::protobuf::Arena* arena) const { + BooleanExpression* n = new BooleanExpression; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BooleanExpression::clear_expr() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.BooleanExpression) + switch (expr_case()) { + case kConjunction: { + delete expr_.conjunction_; + break; + } + case kComparison: { + delete expr_.comparison_; + break; + } + case EXPR_NOT_SET: { + break; + } + } + _oneof_case_[0] = EXPR_NOT_SET; +} + + +void BooleanExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BooleanExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_expr(); + _internal_metadata_.Clear(); +} + +bool BooleanExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BooleanExpression) + 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)) { + // .flyteidl.core.ConjunctionExpression conjunction = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_conjunction())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ComparisonExpression comparison = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_comparison())); + } 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.BooleanExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BooleanExpression) + return false; +#undef DO_ +} + +void BooleanExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BooleanExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression conjunction = 1; + if (has_conjunction()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *expr_.conjunction_, output); + } + + // .flyteidl.core.ComparisonExpression comparison = 2; + if (has_comparison()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *expr_.comparison_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BooleanExpression) +} + +::google::protobuf::uint8* BooleanExpression::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BooleanExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression conjunction = 1; + if (has_conjunction()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *expr_.conjunction_, deterministic, target); + } + + // .flyteidl.core.ComparisonExpression comparison = 2; + if (has_comparison()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *expr_.comparison_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BooleanExpression) + return target; +} + +size_t BooleanExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BooleanExpression) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (expr_case()) { + // .flyteidl.core.ConjunctionExpression conjunction = 1; + case kConjunction: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expr_.conjunction_); + break; + } + // .flyteidl.core.ComparisonExpression comparison = 2; + case kComparison: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *expr_.comparison_); + break; + } + case EXPR_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BooleanExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BooleanExpression) + GOOGLE_DCHECK_NE(&from, this); + const BooleanExpression* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BooleanExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BooleanExpression) + MergeFrom(*source); + } +} + +void BooleanExpression::MergeFrom(const BooleanExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BooleanExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.expr_case()) { + case kConjunction: { + mutable_conjunction()->::flyteidl::core::ConjunctionExpression::MergeFrom(from.conjunction()); + break; + } + case kComparison: { + mutable_comparison()->::flyteidl::core::ComparisonExpression::MergeFrom(from.comparison()); + break; + } + case EXPR_NOT_SET: { + break; + } + } +} + +void BooleanExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BooleanExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BooleanExpression::CopyFrom(const BooleanExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BooleanExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BooleanExpression::IsInitialized() const { + return true; +} + +void BooleanExpression::Swap(BooleanExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void BooleanExpression::InternalSwap(BooleanExpression* other) { + using std::swap; + swap(expr_, other->expr_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BooleanExpression::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ConjunctionExpression::InitAsDefaultInstance() { + ::flyteidl::core::_ConjunctionExpression_default_instance_._instance.get_mutable()->left_expression_ = const_cast< ::flyteidl::core::BooleanExpression*>( + ::flyteidl::core::BooleanExpression::internal_default_instance()); + ::flyteidl::core::_ConjunctionExpression_default_instance_._instance.get_mutable()->right_expression_ = const_cast< ::flyteidl::core::BooleanExpression*>( + ::flyteidl::core::BooleanExpression::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ConjunctionExpression::kOperatorFieldNumber; +const int ConjunctionExpression::kLeftExpressionFieldNumber; +const int ConjunctionExpression::kRightExpressionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ConjunctionExpression::ConjunctionExpression() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpression(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ConjunctionExpression) +} +ConjunctionExpression::ConjunctionExpression(const ConjunctionExpression& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_left_expression()) { + left_expression_ = new ::flyteidl::core::BooleanExpression(*from.left_expression_); + } else { + left_expression_ = NULL; + } + if (from.has_right_expression()) { + right_expression_ = new ::flyteidl::core::BooleanExpression(*from.right_expression_); + } else { + right_expression_ = NULL; + } + operator__ = from.operator__; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConjunctionExpression) +} + +void ConjunctionExpression::SharedCtor() { + ::memset(&left_expression_, 0, static_cast( + reinterpret_cast(&operator__) - + reinterpret_cast(&left_expression_)) + sizeof(operator__)); + _cached_size_ = 0; +} + +ConjunctionExpression::~ConjunctionExpression() { + // @@protoc_insertion_point(destructor:flyteidl.core.ConjunctionExpression) + SharedDtor(); +} + +void ConjunctionExpression::SharedDtor() { + if (this != internal_default_instance()) delete left_expression_; + if (this != internal_default_instance()) delete right_expression_; +} + +void ConjunctionExpression::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ConjunctionExpression::descriptor() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ConjunctionExpression& ConjunctionExpression::default_instance() { + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpression(); + return *internal_default_instance(); +} + +ConjunctionExpression* ConjunctionExpression::New(::google::protobuf::Arena* arena) const { + ConjunctionExpression* n = new ConjunctionExpression; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ConjunctionExpression::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConjunctionExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && left_expression_ != NULL) { + delete left_expression_; + } + left_expression_ = NULL; + if (GetArenaNoVirtual() == NULL && right_expression_ != NULL) { + delete right_expression_; + } + right_expression_ = NULL; + operator__ = 0; + _internal_metadata_.Clear(); +} + +bool ConjunctionExpression::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ConjunctionExpression) + 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)) { + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_operator_(static_cast< ::flyteidl::core::ConjunctionExpression_LogicalOperator >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BooleanExpression left_expression = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_left_expression())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_right_expression())); + } 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.ConjunctionExpression) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ConjunctionExpression) + return false; +#undef DO_ +} + +void ConjunctionExpression::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ConjunctionExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + if (this->operator_() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->operator_(), output); + } + + // .flyteidl.core.BooleanExpression left_expression = 2; + if (this->has_left_expression()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->left_expression_, output); + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + if (this->has_right_expression()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->right_expression_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ConjunctionExpression) +} + +::google::protobuf::uint8* ConjunctionExpression::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConjunctionExpression) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + if (this->operator_() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->operator_(), target); + } + + // .flyteidl.core.BooleanExpression left_expression = 2; + if (this->has_left_expression()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->left_expression_, deterministic, target); + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + if (this->has_right_expression()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->right_expression_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ConjunctionExpression) + return target; +} + +size_t ConjunctionExpression::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConjunctionExpression) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.BooleanExpression left_expression = 2; + if (this->has_left_expression()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->left_expression_); + } + + // .flyteidl.core.BooleanExpression right_expression = 3; + if (this->has_right_expression()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->right_expression_); + } + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + if (this->operator_() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ConjunctionExpression::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConjunctionExpression) + GOOGLE_DCHECK_NE(&from, this); + const ConjunctionExpression* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConjunctionExpression) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConjunctionExpression) + MergeFrom(*source); + } +} + +void ConjunctionExpression::MergeFrom(const ConjunctionExpression& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConjunctionExpression) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_left_expression()) { + mutable_left_expression()->::flyteidl::core::BooleanExpression::MergeFrom(from.left_expression()); + } + if (from.has_right_expression()) { + mutable_right_expression()->::flyteidl::core::BooleanExpression::MergeFrom(from.right_expression()); + } + if (from.operator_() != 0) { + set_operator_(from.operator_()); + } +} + +void ConjunctionExpression::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConjunctionExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ConjunctionExpression::CopyFrom(const ConjunctionExpression& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConjunctionExpression) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConjunctionExpression::IsInitialized() const { + return true; +} + +void ConjunctionExpression::Swap(ConjunctionExpression* other) { + if (other == this) return; + InternalSwap(other); +} +void ConjunctionExpression::InternalSwap(ConjunctionExpression* other) { + using std::swap; + swap(left_expression_, other->left_expression_); + swap(right_expression_, other->right_expression_); + swap(operator__, other->operator__); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ConjunctionExpression::GetMetadata() const { + protobuf_flyteidl_2fcore_2fcondition_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fcondition_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h new file mode 100644 index 0000000000..e87614acb9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h @@ -0,0 +1,1202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fcondition_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fcondition_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fcondition_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[4]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsComparisonExpressionImpl(); +void InitDefaultsComparisonExpression(); +void InitDefaultsOperandImpl(); +void InitDefaultsOperand(); +void InitDefaultsBooleanExpressionImpl(); +void InitDefaultsBooleanExpression(); +inline void InitDefaults() { + InitDefaultsComparisonExpression(); + InitDefaultsOperand(); + InitDefaultsBooleanExpression(); +} +} // namespace protobuf_flyteidl_2fcore_2fcondition_2eproto +namespace flyteidl { +namespace core { +class BooleanExpression; +class BooleanExpressionDefaultTypeInternal; +extern BooleanExpressionDefaultTypeInternal _BooleanExpression_default_instance_; +class ComparisonExpression; +class ComparisonExpressionDefaultTypeInternal; +extern ComparisonExpressionDefaultTypeInternal _ComparisonExpression_default_instance_; +class ConjunctionExpression; +class ConjunctionExpressionDefaultTypeInternal; +extern ConjunctionExpressionDefaultTypeInternal _ConjunctionExpression_default_instance_; +class Operand; +class OperandDefaultTypeInternal; +extern OperandDefaultTypeInternal _Operand_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +enum ComparisonExpression_Operator { + ComparisonExpression_Operator_EQ = 0, + ComparisonExpression_Operator_NEQ = 1, + ComparisonExpression_Operator_GT = 2, + ComparisonExpression_Operator_GTE = 3, + ComparisonExpression_Operator_LT = 4, + ComparisonExpression_Operator_LTE = 5, + ComparisonExpression_Operator_ComparisonExpression_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ComparisonExpression_Operator_ComparisonExpression_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool ComparisonExpression_Operator_IsValid(int value); +const ComparisonExpression_Operator ComparisonExpression_Operator_Operator_MIN = ComparisonExpression_Operator_EQ; +const ComparisonExpression_Operator ComparisonExpression_Operator_Operator_MAX = ComparisonExpression_Operator_LTE; +const int ComparisonExpression_Operator_Operator_ARRAYSIZE = ComparisonExpression_Operator_Operator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ComparisonExpression_Operator_descriptor(); +inline const ::std::string& ComparisonExpression_Operator_Name(ComparisonExpression_Operator value) { + return ::google::protobuf::internal::NameOfEnum( + ComparisonExpression_Operator_descriptor(), value); +} +inline bool ComparisonExpression_Operator_Parse( + const ::std::string& name, ComparisonExpression_Operator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ComparisonExpression_Operator_descriptor(), name, value); +} +enum ConjunctionExpression_LogicalOperator { + ConjunctionExpression_LogicalOperator_AND = 0, + ConjunctionExpression_LogicalOperator_OR = 1, + ConjunctionExpression_LogicalOperator_ConjunctionExpression_LogicalOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ConjunctionExpression_LogicalOperator_ConjunctionExpression_LogicalOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool ConjunctionExpression_LogicalOperator_IsValid(int value); +const ConjunctionExpression_LogicalOperator ConjunctionExpression_LogicalOperator_LogicalOperator_MIN = ConjunctionExpression_LogicalOperator_AND; +const ConjunctionExpression_LogicalOperator ConjunctionExpression_LogicalOperator_LogicalOperator_MAX = ConjunctionExpression_LogicalOperator_OR; +const int ConjunctionExpression_LogicalOperator_LogicalOperator_ARRAYSIZE = ConjunctionExpression_LogicalOperator_LogicalOperator_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ConjunctionExpression_LogicalOperator_descriptor(); +inline const ::std::string& ConjunctionExpression_LogicalOperator_Name(ConjunctionExpression_LogicalOperator value) { + return ::google::protobuf::internal::NameOfEnum( + ConjunctionExpression_LogicalOperator_descriptor(), value); +} +inline bool ConjunctionExpression_LogicalOperator_Parse( + const ::std::string& name, ConjunctionExpression_LogicalOperator* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ConjunctionExpression_LogicalOperator_descriptor(), name, value); +} +// =================================================================== + +class ComparisonExpression : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ComparisonExpression) */ { + public: + ComparisonExpression(); + virtual ~ComparisonExpression(); + + ComparisonExpression(const ComparisonExpression& from); + + inline ComparisonExpression& operator=(const ComparisonExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ComparisonExpression(ComparisonExpression&& from) noexcept + : ComparisonExpression() { + *this = ::std::move(from); + } + + inline ComparisonExpression& operator=(ComparisonExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ComparisonExpression& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ComparisonExpression* internal_default_instance() { + return reinterpret_cast( + &_ComparisonExpression_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(ComparisonExpression* other); + friend void swap(ComparisonExpression& a, ComparisonExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ComparisonExpression* New() const PROTOBUF_FINAL { return New(NULL); } + + ComparisonExpression* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ComparisonExpression& from); + void MergeFrom(const ComparisonExpression& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ComparisonExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef ComparisonExpression_Operator Operator; + static const Operator EQ = + ComparisonExpression_Operator_EQ; + static const Operator NEQ = + ComparisonExpression_Operator_NEQ; + static const Operator GT = + ComparisonExpression_Operator_GT; + static const Operator GTE = + ComparisonExpression_Operator_GTE; + static const Operator LT = + ComparisonExpression_Operator_LT; + static const Operator LTE = + ComparisonExpression_Operator_LTE; + static inline bool Operator_IsValid(int value) { + return ComparisonExpression_Operator_IsValid(value); + } + static const Operator Operator_MIN = + ComparisonExpression_Operator_Operator_MIN; + static const Operator Operator_MAX = + ComparisonExpression_Operator_Operator_MAX; + static const int Operator_ARRAYSIZE = + ComparisonExpression_Operator_Operator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Operator_descriptor() { + return ComparisonExpression_Operator_descriptor(); + } + static inline const ::std::string& Operator_Name(Operator value) { + return ComparisonExpression_Operator_Name(value); + } + static inline bool Operator_Parse(const ::std::string& name, + Operator* value) { + return ComparisonExpression_Operator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Operand left_value = 2; + bool has_left_value() const; + void clear_left_value(); + static const int kLeftValueFieldNumber = 2; + const ::flyteidl::core::Operand& left_value() const; + ::flyteidl::core::Operand* release_left_value(); + ::flyteidl::core::Operand* mutable_left_value(); + void set_allocated_left_value(::flyteidl::core::Operand* left_value); + + // .flyteidl.core.Operand right_value = 3; + bool has_right_value() const; + void clear_right_value(); + static const int kRightValueFieldNumber = 3; + const ::flyteidl::core::Operand& right_value() const; + ::flyteidl::core::Operand* release_right_value(); + ::flyteidl::core::Operand* mutable_right_value(); + void set_allocated_right_value(::flyteidl::core::Operand* right_value); + + // .flyteidl.core.ComparisonExpression.Operator operator = 1; + void clear_operator_(); + static const int kOperatorFieldNumber = 1; + ::flyteidl::core::ComparisonExpression_Operator operator_() const; + void set_operator_(::flyteidl::core::ComparisonExpression_Operator value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Operand* left_value_; + ::flyteidl::core::Operand* right_value_; + int operator__; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcondition_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsComparisonExpressionImpl(); +}; +// ------------------------------------------------------------------- + +class Operand : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Operand) */ { + public: + Operand(); + virtual ~Operand(); + + Operand(const Operand& from); + + inline Operand& operator=(const Operand& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Operand(Operand&& from) noexcept + : Operand() { + *this = ::std::move(from); + } + + inline Operand& operator=(Operand&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Operand& default_instance(); + + enum ValCase { + kPrimitive = 1, + kVar = 2, + VAL_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Operand* internal_default_instance() { + return reinterpret_cast( + &_Operand_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(Operand* other); + friend void swap(Operand& a, Operand& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Operand* New() const PROTOBUF_FINAL { return New(NULL); } + + Operand* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Operand& from); + void MergeFrom(const Operand& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Operand* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Primitive primitive = 1; + bool has_primitive() const; + void clear_primitive(); + static const int kPrimitiveFieldNumber = 1; + const ::flyteidl::core::Primitive& primitive() const; + ::flyteidl::core::Primitive* release_primitive(); + ::flyteidl::core::Primitive* mutable_primitive(); + void set_allocated_primitive(::flyteidl::core::Primitive* primitive); + + // string var = 2; + private: + bool has_var() const; + public: + void clear_var(); + static const int kVarFieldNumber = 2; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + ValCase val_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + private: + void set_has_primitive(); + void set_has_var(); + + inline bool has_val() const; + void clear_val(); + inline void clear_has_val(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValUnion { + ValUnion() {} + ::flyteidl::core::Primitive* primitive_; + ::google::protobuf::internal::ArenaStringPtr var_; + } val_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fcondition_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsOperandImpl(); +}; +// ------------------------------------------------------------------- + +class BooleanExpression : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BooleanExpression) */ { + public: + BooleanExpression(); + virtual ~BooleanExpression(); + + BooleanExpression(const BooleanExpression& from); + + inline BooleanExpression& operator=(const BooleanExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BooleanExpression(BooleanExpression&& from) noexcept + : BooleanExpression() { + *this = ::std::move(from); + } + + inline BooleanExpression& operator=(BooleanExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BooleanExpression& default_instance(); + + enum ExprCase { + kConjunction = 1, + kComparison = 2, + EXPR_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BooleanExpression* internal_default_instance() { + return reinterpret_cast( + &_BooleanExpression_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(BooleanExpression* other); + friend void swap(BooleanExpression& a, BooleanExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BooleanExpression* New() const PROTOBUF_FINAL { return New(NULL); } + + BooleanExpression* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BooleanExpression& from); + void MergeFrom(const BooleanExpression& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BooleanExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ConjunctionExpression conjunction = 1; + bool has_conjunction() const; + void clear_conjunction(); + static const int kConjunctionFieldNumber = 1; + const ::flyteidl::core::ConjunctionExpression& conjunction() const; + ::flyteidl::core::ConjunctionExpression* release_conjunction(); + ::flyteidl::core::ConjunctionExpression* mutable_conjunction(); + void set_allocated_conjunction(::flyteidl::core::ConjunctionExpression* conjunction); + + // .flyteidl.core.ComparisonExpression comparison = 2; + bool has_comparison() const; + void clear_comparison(); + static const int kComparisonFieldNumber = 2; + const ::flyteidl::core::ComparisonExpression& comparison() const; + ::flyteidl::core::ComparisonExpression* release_comparison(); + ::flyteidl::core::ComparisonExpression* mutable_comparison(); + void set_allocated_comparison(::flyteidl::core::ComparisonExpression* comparison); + + ExprCase expr_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + private: + void set_has_conjunction(); + void set_has_comparison(); + + inline bool has_expr() const; + void clear_expr(); + inline void clear_has_expr(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ExprUnion { + ExprUnion() {} + ::flyteidl::core::ConjunctionExpression* conjunction_; + ::flyteidl::core::ComparisonExpression* comparison_; + } expr_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fcondition_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpressionImpl(); +}; +// ------------------------------------------------------------------- + +class ConjunctionExpression : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConjunctionExpression) */ { + public: + ConjunctionExpression(); + virtual ~ConjunctionExpression(); + + ConjunctionExpression(const ConjunctionExpression& from); + + inline ConjunctionExpression& operator=(const ConjunctionExpression& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ConjunctionExpression(ConjunctionExpression&& from) noexcept + : ConjunctionExpression() { + *this = ::std::move(from); + } + + inline ConjunctionExpression& operator=(ConjunctionExpression&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ConjunctionExpression& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ConjunctionExpression* internal_default_instance() { + return reinterpret_cast( + &_ConjunctionExpression_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(ConjunctionExpression* other); + friend void swap(ConjunctionExpression& a, ConjunctionExpression& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ConjunctionExpression* New() const PROTOBUF_FINAL { return New(NULL); } + + ConjunctionExpression* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ConjunctionExpression& from); + void MergeFrom(const ConjunctionExpression& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ConjunctionExpression* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef ConjunctionExpression_LogicalOperator LogicalOperator; + static const LogicalOperator AND = + ConjunctionExpression_LogicalOperator_AND; + static const LogicalOperator OR = + ConjunctionExpression_LogicalOperator_OR; + static inline bool LogicalOperator_IsValid(int value) { + return ConjunctionExpression_LogicalOperator_IsValid(value); + } + static const LogicalOperator LogicalOperator_MIN = + ConjunctionExpression_LogicalOperator_LogicalOperator_MIN; + static const LogicalOperator LogicalOperator_MAX = + ConjunctionExpression_LogicalOperator_LogicalOperator_MAX; + static const int LogicalOperator_ARRAYSIZE = + ConjunctionExpression_LogicalOperator_LogicalOperator_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + LogicalOperator_descriptor() { + return ConjunctionExpression_LogicalOperator_descriptor(); + } + static inline const ::std::string& LogicalOperator_Name(LogicalOperator value) { + return ConjunctionExpression_LogicalOperator_Name(value); + } + static inline bool LogicalOperator_Parse(const ::std::string& name, + LogicalOperator* value) { + return ConjunctionExpression_LogicalOperator_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // .flyteidl.core.BooleanExpression left_expression = 2; + bool has_left_expression() const; + void clear_left_expression(); + static const int kLeftExpressionFieldNumber = 2; + const ::flyteidl::core::BooleanExpression& left_expression() const; + ::flyteidl::core::BooleanExpression* release_left_expression(); + ::flyteidl::core::BooleanExpression* mutable_left_expression(); + void set_allocated_left_expression(::flyteidl::core::BooleanExpression* left_expression); + + // .flyteidl.core.BooleanExpression right_expression = 3; + bool has_right_expression() const; + void clear_right_expression(); + static const int kRightExpressionFieldNumber = 3; + const ::flyteidl::core::BooleanExpression& right_expression() const; + ::flyteidl::core::BooleanExpression* release_right_expression(); + ::flyteidl::core::BooleanExpression* mutable_right_expression(); + void set_allocated_right_expression(::flyteidl::core::BooleanExpression* right_expression); + + // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + void clear_operator_(); + static const int kOperatorFieldNumber = 1; + ::flyteidl::core::ConjunctionExpression_LogicalOperator operator_() const; + void set_operator_(::flyteidl::core::ConjunctionExpression_LogicalOperator value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::BooleanExpression* left_expression_; + ::flyteidl::core::BooleanExpression* right_expression_; + int operator__; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fcondition_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpressionImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ComparisonExpression + +// .flyteidl.core.ComparisonExpression.Operator operator = 1; +inline void ComparisonExpression::clear_operator_() { + operator__ = 0; +} +inline ::flyteidl::core::ComparisonExpression_Operator ComparisonExpression::operator_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.operator) + return static_cast< ::flyteidl::core::ComparisonExpression_Operator >(operator__); +} +inline void ComparisonExpression::set_operator_(::flyteidl::core::ComparisonExpression_Operator value) { + + operator__ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ComparisonExpression.operator) +} + +// .flyteidl.core.Operand left_value = 2; +inline bool ComparisonExpression::has_left_value() const { + return this != internal_default_instance() && left_value_ != NULL; +} +inline void ComparisonExpression::clear_left_value() { + if (GetArenaNoVirtual() == NULL && left_value_ != NULL) { + delete left_value_; + } + left_value_ = NULL; +} +inline const ::flyteidl::core::Operand& ComparisonExpression::left_value() const { + const ::flyteidl::core::Operand* p = left_value_; + // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.left_value) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Operand_default_instance_); +} +inline ::flyteidl::core::Operand* ComparisonExpression::release_left_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.ComparisonExpression.left_value) + + ::flyteidl::core::Operand* temp = left_value_; + left_value_ = NULL; + return temp; +} +inline ::flyteidl::core::Operand* ComparisonExpression::mutable_left_value() { + + if (left_value_ == NULL) { + left_value_ = new ::flyteidl::core::Operand; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ComparisonExpression.left_value) + return left_value_; +} +inline void ComparisonExpression::set_allocated_left_value(::flyteidl::core::Operand* left_value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete left_value_; + } + if (left_value) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + left_value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, left_value, submessage_arena); + } + + } else { + + } + left_value_ = left_value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ComparisonExpression.left_value) +} + +// .flyteidl.core.Operand right_value = 3; +inline bool ComparisonExpression::has_right_value() const { + return this != internal_default_instance() && right_value_ != NULL; +} +inline void ComparisonExpression::clear_right_value() { + if (GetArenaNoVirtual() == NULL && right_value_ != NULL) { + delete right_value_; + } + right_value_ = NULL; +} +inline const ::flyteidl::core::Operand& ComparisonExpression::right_value() const { + const ::flyteidl::core::Operand* p = right_value_; + // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.right_value) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Operand_default_instance_); +} +inline ::flyteidl::core::Operand* ComparisonExpression::release_right_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.ComparisonExpression.right_value) + + ::flyteidl::core::Operand* temp = right_value_; + right_value_ = NULL; + return temp; +} +inline ::flyteidl::core::Operand* ComparisonExpression::mutable_right_value() { + + if (right_value_ == NULL) { + right_value_ = new ::flyteidl::core::Operand; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ComparisonExpression.right_value) + return right_value_; +} +inline void ComparisonExpression::set_allocated_right_value(::flyteidl::core::Operand* right_value) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete right_value_; + } + if (right_value) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + right_value = ::google::protobuf::internal::GetOwnedMessage( + message_arena, right_value, submessage_arena); + } + + } else { + + } + right_value_ = right_value; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ComparisonExpression.right_value) +} + +// ------------------------------------------------------------------- + +// Operand + +// .flyteidl.core.Primitive primitive = 1; +inline bool Operand::has_primitive() const { + return val_case() == kPrimitive; +} +inline void Operand::set_has_primitive() { + _oneof_case_[0] = kPrimitive; +} +inline ::flyteidl::core::Primitive* Operand::release_primitive() { + // @@protoc_insertion_point(field_release:flyteidl.core.Operand.primitive) + if (has_primitive()) { + clear_has_val(); + ::flyteidl::core::Primitive* temp = val_.primitive_; + val_.primitive_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Primitive& Operand::primitive() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Operand.primitive) + return has_primitive() + ? *val_.primitive_ + : *reinterpret_cast< ::flyteidl::core::Primitive*>(&::flyteidl::core::_Primitive_default_instance_); +} +inline ::flyteidl::core::Primitive* Operand::mutable_primitive() { + if (!has_primitive()) { + clear_val(); + set_has_primitive(); + val_.primitive_ = new ::flyteidl::core::Primitive; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.primitive) + return val_.primitive_; +} + +// string var = 2; +inline bool Operand::has_var() const { + return val_case() == kVar; +} +inline void Operand::set_has_var() { + _oneof_case_[0] = kVar; +} +inline void Operand::clear_var() { + if (has_var()) { + val_.var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_val(); + } +} +inline const ::std::string& Operand::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Operand.var) + if (has_var()) { + return val_.var_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Operand::set_var(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) +} +#if LANG_CXX11 +inline void Operand::set_var(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Operand.var) +} +#endif +inline void Operand::set_var(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Operand.var) +} +inline void Operand::set_var(const char* value, size_t size) { + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Operand.var) +} +inline ::std::string* Operand::mutable_var() { + if (!has_var()) { + clear_val(); + set_has_var(); + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.var) + return val_.var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Operand::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Operand.var) + if (has_var()) { + clear_has_val(); + return val_.var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void Operand::set_allocated_var(::std::string* var) { + if (!has_var()) { + val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_val(); + if (var != NULL) { + set_has_var(); + val_.var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + var); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.var) +} + +inline bool Operand::has_val() const { + return val_case() != VAL_NOT_SET; +} +inline void Operand::clear_has_val() { + _oneof_case_[0] = VAL_NOT_SET; +} +inline Operand::ValCase Operand::val_case() const { + return Operand::ValCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// BooleanExpression + +// .flyteidl.core.ConjunctionExpression conjunction = 1; +inline bool BooleanExpression::has_conjunction() const { + return expr_case() == kConjunction; +} +inline void BooleanExpression::set_has_conjunction() { + _oneof_case_[0] = kConjunction; +} +inline void BooleanExpression::clear_conjunction() { + if (has_conjunction()) { + delete expr_.conjunction_; + clear_has_expr(); + } +} +inline ::flyteidl::core::ConjunctionExpression* BooleanExpression::release_conjunction() { + // @@protoc_insertion_point(field_release:flyteidl.core.BooleanExpression.conjunction) + if (has_conjunction()) { + clear_has_expr(); + ::flyteidl::core::ConjunctionExpression* temp = expr_.conjunction_; + expr_.conjunction_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ConjunctionExpression& BooleanExpression::conjunction() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BooleanExpression.conjunction) + return has_conjunction() + ? *expr_.conjunction_ + : *reinterpret_cast< ::flyteidl::core::ConjunctionExpression*>(&::flyteidl::core::_ConjunctionExpression_default_instance_); +} +inline ::flyteidl::core::ConjunctionExpression* BooleanExpression::mutable_conjunction() { + if (!has_conjunction()) { + clear_expr(); + set_has_conjunction(); + expr_.conjunction_ = new ::flyteidl::core::ConjunctionExpression; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BooleanExpression.conjunction) + return expr_.conjunction_; +} + +// .flyteidl.core.ComparisonExpression comparison = 2; +inline bool BooleanExpression::has_comparison() const { + return expr_case() == kComparison; +} +inline void BooleanExpression::set_has_comparison() { + _oneof_case_[0] = kComparison; +} +inline void BooleanExpression::clear_comparison() { + if (has_comparison()) { + delete expr_.comparison_; + clear_has_expr(); + } +} +inline ::flyteidl::core::ComparisonExpression* BooleanExpression::release_comparison() { + // @@protoc_insertion_point(field_release:flyteidl.core.BooleanExpression.comparison) + if (has_comparison()) { + clear_has_expr(); + ::flyteidl::core::ComparisonExpression* temp = expr_.comparison_; + expr_.comparison_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ComparisonExpression& BooleanExpression::comparison() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BooleanExpression.comparison) + return has_comparison() + ? *expr_.comparison_ + : *reinterpret_cast< ::flyteidl::core::ComparisonExpression*>(&::flyteidl::core::_ComparisonExpression_default_instance_); +} +inline ::flyteidl::core::ComparisonExpression* BooleanExpression::mutable_comparison() { + if (!has_comparison()) { + clear_expr(); + set_has_comparison(); + expr_.comparison_ = new ::flyteidl::core::ComparisonExpression; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BooleanExpression.comparison) + return expr_.comparison_; +} + +inline bool BooleanExpression::has_expr() const { + return expr_case() != EXPR_NOT_SET; +} +inline void BooleanExpression::clear_has_expr() { + _oneof_case_[0] = EXPR_NOT_SET; +} +inline BooleanExpression::ExprCase BooleanExpression::expr_case() const { + return BooleanExpression::ExprCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ConjunctionExpression + +// .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; +inline void ConjunctionExpression::clear_operator_() { + operator__ = 0; +} +inline ::flyteidl::core::ConjunctionExpression_LogicalOperator ConjunctionExpression::operator_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.operator) + return static_cast< ::flyteidl::core::ConjunctionExpression_LogicalOperator >(operator__); +} +inline void ConjunctionExpression::set_operator_(::flyteidl::core::ConjunctionExpression_LogicalOperator value) { + + operator__ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ConjunctionExpression.operator) +} + +// .flyteidl.core.BooleanExpression left_expression = 2; +inline bool ConjunctionExpression::has_left_expression() const { + return this != internal_default_instance() && left_expression_ != NULL; +} +inline void ConjunctionExpression::clear_left_expression() { + if (GetArenaNoVirtual() == NULL && left_expression_ != NULL) { + delete left_expression_; + } + left_expression_ = NULL; +} +inline const ::flyteidl::core::BooleanExpression& ConjunctionExpression::left_expression() const { + const ::flyteidl::core::BooleanExpression* p = left_expression_; + // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.left_expression) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_BooleanExpression_default_instance_); +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::release_left_expression() { + // @@protoc_insertion_point(field_release:flyteidl.core.ConjunctionExpression.left_expression) + + ::flyteidl::core::BooleanExpression* temp = left_expression_; + left_expression_ = NULL; + return temp; +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::mutable_left_expression() { + + if (left_expression_ == NULL) { + left_expression_ = new ::flyteidl::core::BooleanExpression; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ConjunctionExpression.left_expression) + return left_expression_; +} +inline void ConjunctionExpression::set_allocated_left_expression(::flyteidl::core::BooleanExpression* left_expression) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete left_expression_; + } + if (left_expression) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + left_expression = ::google::protobuf::internal::GetOwnedMessage( + message_arena, left_expression, submessage_arena); + } + + } else { + + } + left_expression_ = left_expression; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ConjunctionExpression.left_expression) +} + +// .flyteidl.core.BooleanExpression right_expression = 3; +inline bool ConjunctionExpression::has_right_expression() const { + return this != internal_default_instance() && right_expression_ != NULL; +} +inline void ConjunctionExpression::clear_right_expression() { + if (GetArenaNoVirtual() == NULL && right_expression_ != NULL) { + delete right_expression_; + } + right_expression_ = NULL; +} +inline const ::flyteidl::core::BooleanExpression& ConjunctionExpression::right_expression() const { + const ::flyteidl::core::BooleanExpression* p = right_expression_; + // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.right_expression) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_BooleanExpression_default_instance_); +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::release_right_expression() { + // @@protoc_insertion_point(field_release:flyteidl.core.ConjunctionExpression.right_expression) + + ::flyteidl::core::BooleanExpression* temp = right_expression_; + right_expression_ = NULL; + return temp; +} +inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::mutable_right_expression() { + + if (right_expression_ == NULL) { + right_expression_ = new ::flyteidl::core::BooleanExpression; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ConjunctionExpression.right_expression) + return right_expression_; +} +inline void ConjunctionExpression::set_allocated_right_expression(::flyteidl::core::BooleanExpression* right_expression) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete right_expression_; + } + if (right_expression) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + right_expression = ::google::protobuf::internal::GetOwnedMessage( + message_arena, right_expression, submessage_arena); + } + + } else { + + } + right_expression_ = right_expression; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ConjunctionExpression.right_expression) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::ComparisonExpression_Operator> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ComparisonExpression_Operator>() { + return ::flyteidl::core::ComparisonExpression_Operator_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::ConjunctionExpression_LogicalOperator> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ConjunctionExpression_LogicalOperator>() { + return ::flyteidl::core::ConjunctionExpression_LogicalOperator_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fcondition_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc new file mode 100644 index 0000000000..8f3ae8650a --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/dynamic_job.proto + +#include "flyteidl/core/dynamic_job.pb.h" +#include "flyteidl/core/dynamic_job.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h new file mode 100644 index 0000000000..2894cb0b92 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/dynamic_job.proto +#ifndef GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED + +#include "flyteidl/core/dynamic_job.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc new file mode 100644 index 0000000000..d64c7cf80c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc @@ -0,0 +1,558 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +#include "flyteidl/core/dynamic_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class DynamicJobSpecDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _DynamicJobSpec_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto { +void InitDefaultsDynamicJobSpecImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinding(); + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplate(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplate(); + { + void* ptr = &::flyteidl::core::_DynamicJobSpec_default_instance_; + new (ptr) ::flyteidl::core::DynamicJobSpec(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::DynamicJobSpec::InitAsDefaultInstance(); +} + +void InitDefaultsDynamicJobSpec() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDynamicJobSpecImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, nodes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, min_successes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, tasks_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, subworkflows_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::DynamicJobSpec)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_DynamicJobSpec_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/dynamic_job.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\037flyteidl/core/dynamic_job.proto\022\rflyte" + "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + "teidl/core/workflow.proto\032\034flyteidl/core" + "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + "2\037.flyteidl.core.WorkflowTemplateB2Z0git" + "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + "/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 413); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/dynamic_job.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto +namespace flyteidl { +namespace core { + +// =================================================================== + +void DynamicJobSpec::InitAsDefaultInstance() { +} +void DynamicJobSpec::clear_nodes() { + nodes_.Clear(); +} +void DynamicJobSpec::clear_outputs() { + outputs_.Clear(); +} +void DynamicJobSpec::clear_tasks() { + tasks_.Clear(); +} +void DynamicJobSpec::clear_subworkflows() { + subworkflows_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int DynamicJobSpec::kNodesFieldNumber; +const int DynamicJobSpec::kMinSuccessesFieldNumber; +const int DynamicJobSpec::kOutputsFieldNumber; +const int DynamicJobSpec::kTasksFieldNumber; +const int DynamicJobSpec::kSubworkflowsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +DynamicJobSpec::DynamicJobSpec() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::InitDefaultsDynamicJobSpec(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.DynamicJobSpec) +} +DynamicJobSpec::DynamicJobSpec(const DynamicJobSpec& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + nodes_(from.nodes_), + outputs_(from.outputs_), + tasks_(from.tasks_), + subworkflows_(from.subworkflows_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + min_successes_ = from.min_successes_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.DynamicJobSpec) +} + +void DynamicJobSpec::SharedCtor() { + min_successes_ = GOOGLE_LONGLONG(0); + _cached_size_ = 0; +} + +DynamicJobSpec::~DynamicJobSpec() { + // @@protoc_insertion_point(destructor:flyteidl.core.DynamicJobSpec) + SharedDtor(); +} + +void DynamicJobSpec::SharedDtor() { +} + +void DynamicJobSpec::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DynamicJobSpec::descriptor() { + ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const DynamicJobSpec& DynamicJobSpec::default_instance() { + ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::InitDefaultsDynamicJobSpec(); + return *internal_default_instance(); +} + +DynamicJobSpec* DynamicJobSpec::New(::google::protobuf::Arena* arena) const { + DynamicJobSpec* n = new DynamicJobSpec; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void DynamicJobSpec::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.DynamicJobSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + nodes_.Clear(); + outputs_.Clear(); + tasks_.Clear(); + subworkflows_.Clear(); + min_successes_ = GOOGLE_LONGLONG(0); + _internal_metadata_.Clear(); +} + +bool DynamicJobSpec::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.DynamicJobSpec) + 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.Node nodes = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_nodes())); + } else { + goto handle_unusual; + } + break; + } + + // int64 min_successes = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &min_successes_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Binding outputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tasks())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_subworkflows())); + } 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.DynamicJobSpec) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.DynamicJobSpec) + return false; +#undef DO_ +} + +void DynamicJobSpec::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.DynamicJobSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Node nodes = 1; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->nodes(static_cast(i)), output); + } + + // int64 min_successes = 2; + if (this->min_successes() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_successes(), output); + } + + // repeated .flyteidl.core.Binding outputs = 3; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->outputs(static_cast(i)), output); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->tasks(static_cast(i)), output); + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + for (unsigned int i = 0, + n = static_cast(this->subworkflows_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->subworkflows(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.DynamicJobSpec) +} + +::google::protobuf::uint8* DynamicJobSpec::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.DynamicJobSpec) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Node nodes = 1; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->nodes(static_cast(i)), deterministic, target); + } + + // int64 min_successes = 2; + if (this->min_successes() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_successes(), target); + } + + // repeated .flyteidl.core.Binding outputs = 3; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->outputs(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->tasks(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + for (unsigned int i = 0, + n = static_cast(this->subworkflows_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->subworkflows(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.DynamicJobSpec) + return target; +} + +size_t DynamicJobSpec::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.DynamicJobSpec) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.Node nodes = 1; + { + unsigned int count = static_cast(this->nodes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->nodes(static_cast(i))); + } + } + + // repeated .flyteidl.core.Binding outputs = 3; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + { + unsigned int count = static_cast(this->subworkflows_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->subworkflows(static_cast(i))); + } + } + + // int64 min_successes = 2; + if (this->min_successes() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_successes()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DynamicJobSpec::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.DynamicJobSpec) + GOOGLE_DCHECK_NE(&from, this); + const DynamicJobSpec* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.DynamicJobSpec) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.DynamicJobSpec) + MergeFrom(*source); + } +} + +void DynamicJobSpec::MergeFrom(const DynamicJobSpec& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.DynamicJobSpec) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + nodes_.MergeFrom(from.nodes_); + outputs_.MergeFrom(from.outputs_); + tasks_.MergeFrom(from.tasks_); + subworkflows_.MergeFrom(from.subworkflows_); + if (from.min_successes() != 0) { + set_min_successes(from.min_successes()); + } +} + +void DynamicJobSpec::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.DynamicJobSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DynamicJobSpec::CopyFrom(const DynamicJobSpec& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.DynamicJobSpec) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DynamicJobSpec::IsInitialized() const { + return true; +} + +void DynamicJobSpec::Swap(DynamicJobSpec* other) { + if (other == this) return; + InternalSwap(other); +} +void DynamicJobSpec::InternalSwap(DynamicJobSpec* other) { + using std::swap; + nodes_.InternalSwap(&other->nodes_); + outputs_.InternalSwap(&other->outputs_); + tasks_.InternalSwap(&other->tasks_); + subworkflows_.InternalSwap(&other->subworkflows_); + swap(min_successes_, other->min_successes_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata DynamicJobSpec::GetMetadata() const { + protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h new file mode 100644 index 0000000000..ab17ea6180 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h @@ -0,0 +1,359 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsDynamicJobSpecImpl(); +void InitDefaultsDynamicJobSpec(); +inline void InitDefaults() { + InitDefaultsDynamicJobSpec(); +} +} // namespace protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto +namespace flyteidl { +namespace core { +class DynamicJobSpec; +class DynamicJobSpecDefaultTypeInternal; +extern DynamicJobSpecDefaultTypeInternal _DynamicJobSpec_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +// =================================================================== + +class DynamicJobSpec : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.DynamicJobSpec) */ { + public: + DynamicJobSpec(); + virtual ~DynamicJobSpec(); + + DynamicJobSpec(const DynamicJobSpec& from); + + inline DynamicJobSpec& operator=(const DynamicJobSpec& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + DynamicJobSpec(DynamicJobSpec&& from) noexcept + : DynamicJobSpec() { + *this = ::std::move(from); + } + + inline DynamicJobSpec& operator=(DynamicJobSpec&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const DynamicJobSpec& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DynamicJobSpec* internal_default_instance() { + return reinterpret_cast( + &_DynamicJobSpec_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(DynamicJobSpec* other); + friend void swap(DynamicJobSpec& a, DynamicJobSpec& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline DynamicJobSpec* New() const PROTOBUF_FINAL { return New(NULL); } + + DynamicJobSpec* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const DynamicJobSpec& from); + void MergeFrom(const DynamicJobSpec& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(DynamicJobSpec* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Node nodes = 1; + int nodes_size() const; + void clear_nodes(); + static const int kNodesFieldNumber = 1; + const ::flyteidl::core::Node& nodes(int index) const; + ::flyteidl::core::Node* mutable_nodes(int index); + ::flyteidl::core::Node* add_nodes(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* + mutable_nodes(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& + nodes() const; + + // repeated .flyteidl.core.Binding outputs = 3; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 3; + const ::flyteidl::core::Binding& outputs(int index) const; + ::flyteidl::core::Binding* mutable_outputs(int index); + ::flyteidl::core::Binding* add_outputs(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* + mutable_outputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& + outputs() const; + + // repeated .flyteidl.core.TaskTemplate tasks = 4; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 4; + const ::flyteidl::core::TaskTemplate& tasks(int index) const; + ::flyteidl::core::TaskTemplate* mutable_tasks(int index); + ::flyteidl::core::TaskTemplate* add_tasks(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* + mutable_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& + tasks() const; + + // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + int subworkflows_size() const; + void clear_subworkflows(); + static const int kSubworkflowsFieldNumber = 5; + const ::flyteidl::core::WorkflowTemplate& subworkflows(int index) const; + ::flyteidl::core::WorkflowTemplate* mutable_subworkflows(int index); + ::flyteidl::core::WorkflowTemplate* add_subworkflows(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* + mutable_subworkflows(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& + subworkflows() const; + + // int64 min_successes = 2; + void clear_min_successes(); + static const int kMinSuccessesFieldNumber = 2; + ::google::protobuf::int64 min_successes() const; + void set_min_successes(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node > nodes_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > outputs_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate > tasks_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate > subworkflows_; + ::google::protobuf::int64 min_successes_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fdynamic_5fjob_2eproto::InitDefaultsDynamicJobSpecImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// DynamicJobSpec + +// repeated .flyteidl.core.Node nodes = 1; +inline int DynamicJobSpec::nodes_size() const { + return nodes_.size(); +} +inline const ::flyteidl::core::Node& DynamicJobSpec::nodes(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.nodes) + return nodes_.Get(index); +} +inline ::flyteidl::core::Node* DynamicJobSpec::mutable_nodes(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.nodes) + return nodes_.Mutable(index); +} +inline ::flyteidl::core::Node* DynamicJobSpec::add_nodes() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.nodes) + return nodes_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* +DynamicJobSpec::mutable_nodes() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.nodes) + return &nodes_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& +DynamicJobSpec::nodes() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.nodes) + return nodes_; +} + +// int64 min_successes = 2; +inline void DynamicJobSpec::clear_min_successes() { + min_successes_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 DynamicJobSpec::min_successes() const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.min_successes) + return min_successes_; +} +inline void DynamicJobSpec::set_min_successes(::google::protobuf::int64 value) { + + min_successes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.DynamicJobSpec.min_successes) +} + +// repeated .flyteidl.core.Binding outputs = 3; +inline int DynamicJobSpec::outputs_size() const { + return outputs_.size(); +} +inline const ::flyteidl::core::Binding& DynamicJobSpec::outputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.outputs) + return outputs_.Get(index); +} +inline ::flyteidl::core::Binding* DynamicJobSpec::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.outputs) + return outputs_.Mutable(index); +} +inline ::flyteidl::core::Binding* DynamicJobSpec::add_outputs() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.outputs) + return outputs_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* +DynamicJobSpec::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.outputs) + return &outputs_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& +DynamicJobSpec::outputs() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.outputs) + return outputs_; +} + +// repeated .flyteidl.core.TaskTemplate tasks = 4; +inline int DynamicJobSpec::tasks_size() const { + return tasks_.size(); +} +inline const ::flyteidl::core::TaskTemplate& DynamicJobSpec::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::core::TaskTemplate* DynamicJobSpec::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.tasks) + return tasks_.Mutable(index); +} +inline ::flyteidl::core::TaskTemplate* DynamicJobSpec::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.tasks) + return tasks_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* +DynamicJobSpec::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.tasks) + return &tasks_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& +DynamicJobSpec::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.tasks) + return tasks_; +} + +// repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; +inline int DynamicJobSpec::subworkflows_size() const { + return subworkflows_.size(); +} +inline const ::flyteidl::core::WorkflowTemplate& DynamicJobSpec::subworkflows(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_.Get(index); +} +inline ::flyteidl::core::WorkflowTemplate* DynamicJobSpec::mutable_subworkflows(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_.Mutable(index); +} +inline ::flyteidl::core::WorkflowTemplate* DynamicJobSpec::add_subworkflows() { + // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* +DynamicJobSpec::mutable_subworkflows() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.subworkflows) + return &subworkflows_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& +DynamicJobSpec::subworkflows() const { + // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.subworkflows) + return subworkflows_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc new file mode 100644 index 0000000000..95c8f6e0e1 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/errors.proto + +#include "flyteidl/core/errors.pb.h" +#include "flyteidl/core/errors.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h new file mode 100644 index 0000000000..a5a60575f5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/errors.proto +#ifndef GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED + +#include "flyteidl/core/errors.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc new file mode 100644 index 0000000000..57866c32e7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc @@ -0,0 +1,788 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +#include "flyteidl/core/errors.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class ContainerErrorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ContainerError_default_instance_; +class ErrorDocumentDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ErrorDocument_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2ferrors_2eproto { +void InitDefaultsContainerErrorImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_ContainerError_default_instance_; + new (ptr) ::flyteidl::core::ContainerError(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ContainerError::InitAsDefaultInstance(); +} + +void InitDefaultsContainerError() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsContainerErrorImpl); +} + +void InitDefaultsErrorDocumentImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsContainerError(); + { + void* ptr = &::flyteidl::core::_ErrorDocument_default_instance_; + new (ptr) ::flyteidl::core::ErrorDocument(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ErrorDocument::InitAsDefaultInstance(); +} + +void InitDefaultsErrorDocument() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsErrorDocumentImpl); +} + +::google::protobuf::Metadata file_level_metadata[2]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ContainerError, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ContainerError, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ContainerError, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ContainerError, kind_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ErrorDocument, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ErrorDocument, error_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::ContainerError)}, + { 8, -1, sizeof(::flyteidl::core::ErrorDocument)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_ContainerError_default_instance_), + reinterpret_cast(&::flyteidl::core::_ErrorDocument_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/errors.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\032flyteidl/core/errors.proto\022\rflyteidl.c" + "ore\"\217\001\n\016ContainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007" + "message\030\002 \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.c" + "ore.ContainerError.Kind\",\n\004Kind\022\023\n\017NON_R" + "ECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n\rErrorDo" + "cument\022,\n\005error\030\001 \001(\0132\035.flyteidl.core.Co" + "ntainerErrorB2Z0github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 312); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/errors.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2ferrors_2eproto +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* ContainerError_Kind_descriptor() { + protobuf_flyteidl_2fcore_2ferrors_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2ferrors_2eproto::file_level_enum_descriptors[0]; +} +bool ContainerError_Kind_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ContainerError_Kind ContainerError::NON_RECOVERABLE; +const ContainerError_Kind ContainerError::RECOVERABLE; +const ContainerError_Kind ContainerError::Kind_MIN; +const ContainerError_Kind ContainerError::Kind_MAX; +const int ContainerError::Kind_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void ContainerError::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContainerError::kCodeFieldNumber; +const int ContainerError::kMessageFieldNumber; +const int ContainerError::kKindFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContainerError::ContainerError() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsContainerError(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ContainerError) +} +ContainerError::ContainerError(const ContainerError& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.code().size() > 0) { + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + kind_ = from.kind_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ContainerError) +} + +void ContainerError::SharedCtor() { + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kind_ = 0; + _cached_size_ = 0; +} + +ContainerError::~ContainerError() { + // @@protoc_insertion_point(destructor:flyteidl.core.ContainerError) + SharedDtor(); +} + +void ContainerError::SharedDtor() { + code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ContainerError::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ContainerError::descriptor() { + ::protobuf_flyteidl_2fcore_2ferrors_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ferrors_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ContainerError& ContainerError::default_instance() { + ::protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsContainerError(); + return *internal_default_instance(); +} + +ContainerError* ContainerError::New(::google::protobuf::Arena* arena) const { + ContainerError* n = new ContainerError; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ContainerError::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ContainerError) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + kind_ = 0; + _internal_metadata_.Clear(); +} + +bool ContainerError::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ContainerError) + 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 code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_code())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ContainerError.code")); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ContainerError.message")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_kind(static_cast< ::flyteidl::core::ContainerError_Kind >(value)); + } 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.ContainerError) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ContainerError) + return false; +#undef DO_ +} + +void ContainerError::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ContainerError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.code"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->code(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + if (this->kind() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->kind(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ContainerError) +} + +::google::protobuf::uint8* ContainerError::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ContainerError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.code"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->code(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ContainerError.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + if (this->kind() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->kind(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ContainerError) + return target; +} + +size_t ContainerError::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ContainerError) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string code = 1; + if (this->code().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->code()); + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // .flyteidl.core.ContainerError.Kind kind = 3; + if (this->kind() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ContainerError::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ContainerError) + GOOGLE_DCHECK_NE(&from, this); + const ContainerError* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ContainerError) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ContainerError) + MergeFrom(*source); + } +} + +void ContainerError::MergeFrom(const ContainerError& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ContainerError) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.code().size() > 0) { + + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.kind() != 0) { + set_kind(from.kind()); + } +} + +void ContainerError::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ContainerError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContainerError::CopyFrom(const ContainerError& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ContainerError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContainerError::IsInitialized() const { + return true; +} + +void ContainerError::Swap(ContainerError* other) { + if (other == this) return; + InternalSwap(other); +} +void ContainerError::InternalSwap(ContainerError* other) { + using std::swap; + code_.Swap(&other->code_); + message_.Swap(&other->message_); + swap(kind_, other->kind_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ContainerError::GetMetadata() const { + protobuf_flyteidl_2fcore_2ferrors_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ferrors_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ErrorDocument::InitAsDefaultInstance() { + ::flyteidl::core::_ErrorDocument_default_instance_._instance.get_mutable()->error_ = const_cast< ::flyteidl::core::ContainerError*>( + ::flyteidl::core::ContainerError::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ErrorDocument::kErrorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ErrorDocument::ErrorDocument() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsErrorDocument(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ErrorDocument) +} +ErrorDocument::ErrorDocument(const ErrorDocument& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_error()) { + error_ = new ::flyteidl::core::ContainerError(*from.error_); + } else { + error_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ErrorDocument) +} + +void ErrorDocument::SharedCtor() { + error_ = NULL; + _cached_size_ = 0; +} + +ErrorDocument::~ErrorDocument() { + // @@protoc_insertion_point(destructor:flyteidl.core.ErrorDocument) + SharedDtor(); +} + +void ErrorDocument::SharedDtor() { + if (this != internal_default_instance()) delete error_; +} + +void ErrorDocument::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ErrorDocument::descriptor() { + ::protobuf_flyteidl_2fcore_2ferrors_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ferrors_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ErrorDocument& ErrorDocument::default_instance() { + ::protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsErrorDocument(); + return *internal_default_instance(); +} + +ErrorDocument* ErrorDocument::New(::google::protobuf::Arena* arena) const { + ErrorDocument* n = new ErrorDocument; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ErrorDocument::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ErrorDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && error_ != NULL) { + delete error_; + } + error_ = NULL; + _internal_metadata_.Clear(); +} + +bool ErrorDocument::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ErrorDocument) + 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)) { + // .flyteidl.core.ContainerError error = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } 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.ErrorDocument) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ErrorDocument) + return false; +#undef DO_ +} + +void ErrorDocument::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ErrorDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ContainerError error = 1; + if (this->has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->error_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ErrorDocument) +} + +::google::protobuf::uint8* ErrorDocument::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ErrorDocument) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ContainerError error = 1; + if (this->has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->error_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ErrorDocument) + return target; +} + +size_t ErrorDocument::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ErrorDocument) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.ContainerError error = 1; + if (this->has_error()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->error_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ErrorDocument::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ErrorDocument) + GOOGLE_DCHECK_NE(&from, this); + const ErrorDocument* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ErrorDocument) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ErrorDocument) + MergeFrom(*source); + } +} + +void ErrorDocument::MergeFrom(const ErrorDocument& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ErrorDocument) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_error()) { + mutable_error()->::flyteidl::core::ContainerError::MergeFrom(from.error()); + } +} + +void ErrorDocument::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ErrorDocument) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ErrorDocument::CopyFrom(const ErrorDocument& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ErrorDocument) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorDocument::IsInitialized() const { + return true; +} + +void ErrorDocument::Swap(ErrorDocument* other) { + if (other == this) return; + InternalSwap(other); +} +void ErrorDocument::InternalSwap(ErrorDocument* other) { + using std::swap; + swap(error_, other->error_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ErrorDocument::GetMetadata() const { + protobuf_flyteidl_2fcore_2ferrors_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ferrors_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h new file mode 100644 index 0000000000..7bbc8dfe6e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h @@ -0,0 +1,556 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2ferrors_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2ferrors_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2ferrors_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[2]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsContainerErrorImpl(); +void InitDefaultsContainerError(); +void InitDefaultsErrorDocumentImpl(); +void InitDefaultsErrorDocument(); +inline void InitDefaults() { + InitDefaultsContainerError(); + InitDefaultsErrorDocument(); +} +} // namespace protobuf_flyteidl_2fcore_2ferrors_2eproto +namespace flyteidl { +namespace core { +class ContainerError; +class ContainerErrorDefaultTypeInternal; +extern ContainerErrorDefaultTypeInternal _ContainerError_default_instance_; +class ErrorDocument; +class ErrorDocumentDefaultTypeInternal; +extern ErrorDocumentDefaultTypeInternal _ErrorDocument_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +enum ContainerError_Kind { + ContainerError_Kind_NON_RECOVERABLE = 0, + ContainerError_Kind_RECOVERABLE = 1, + ContainerError_Kind_ContainerError_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ContainerError_Kind_ContainerError_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool ContainerError_Kind_IsValid(int value); +const ContainerError_Kind ContainerError_Kind_Kind_MIN = ContainerError_Kind_NON_RECOVERABLE; +const ContainerError_Kind ContainerError_Kind_Kind_MAX = ContainerError_Kind_RECOVERABLE; +const int ContainerError_Kind_Kind_ARRAYSIZE = ContainerError_Kind_Kind_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ContainerError_Kind_descriptor(); +inline const ::std::string& ContainerError_Kind_Name(ContainerError_Kind value) { + return ::google::protobuf::internal::NameOfEnum( + ContainerError_Kind_descriptor(), value); +} +inline bool ContainerError_Kind_Parse( + const ::std::string& name, ContainerError_Kind* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ContainerError_Kind_descriptor(), name, value); +} +// =================================================================== + +class ContainerError : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ContainerError) */ { + public: + ContainerError(); + virtual ~ContainerError(); + + ContainerError(const ContainerError& from); + + inline ContainerError& operator=(const ContainerError& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContainerError(ContainerError&& from) noexcept + : ContainerError() { + *this = ::std::move(from); + } + + inline ContainerError& operator=(ContainerError&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ContainerError& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContainerError* internal_default_instance() { + return reinterpret_cast( + &_ContainerError_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(ContainerError* other); + friend void swap(ContainerError& a, ContainerError& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContainerError* New() const PROTOBUF_FINAL { return New(NULL); } + + ContainerError* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ContainerError& from); + void MergeFrom(const ContainerError& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ContainerError* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef ContainerError_Kind Kind; + static const Kind NON_RECOVERABLE = + ContainerError_Kind_NON_RECOVERABLE; + static const Kind RECOVERABLE = + ContainerError_Kind_RECOVERABLE; + static inline bool Kind_IsValid(int value) { + return ContainerError_Kind_IsValid(value); + } + static const Kind Kind_MIN = + ContainerError_Kind_Kind_MIN; + static const Kind Kind_MAX = + ContainerError_Kind_Kind_MAX; + static const int Kind_ARRAYSIZE = + ContainerError_Kind_Kind_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Kind_descriptor() { + return ContainerError_Kind_descriptor(); + } + static inline const ::std::string& Kind_Name(Kind value) { + return ContainerError_Kind_Name(value); + } + static inline bool Kind_Parse(const ::std::string& name, + Kind* value) { + return ContainerError_Kind_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string code = 1; + void clear_code(); + static const int kCodeFieldNumber = 1; + const ::std::string& code() const; + void set_code(const ::std::string& value); + #if LANG_CXX11 + void set_code(::std::string&& value); + #endif + void set_code(const char* value); + void set_code(const char* value, size_t size); + ::std::string* mutable_code(); + ::std::string* release_code(); + void set_allocated_code(::std::string* code); + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // .flyteidl.core.ContainerError.Kind kind = 3; + void clear_kind(); + static const int kKindFieldNumber = 3; + ::flyteidl::core::ContainerError_Kind kind() const; + void set_kind(::flyteidl::core::ContainerError_Kind value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr code_; + ::google::protobuf::internal::ArenaStringPtr message_; + int kind_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ferrors_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsContainerErrorImpl(); +}; +// ------------------------------------------------------------------- + +class ErrorDocument : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ErrorDocument) */ { + public: + ErrorDocument(); + virtual ~ErrorDocument(); + + ErrorDocument(const ErrorDocument& from); + + inline ErrorDocument& operator=(const ErrorDocument& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ErrorDocument(ErrorDocument&& from) noexcept + : ErrorDocument() { + *this = ::std::move(from); + } + + inline ErrorDocument& operator=(ErrorDocument&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ErrorDocument& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ErrorDocument* internal_default_instance() { + return reinterpret_cast( + &_ErrorDocument_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(ErrorDocument* other); + friend void swap(ErrorDocument& a, ErrorDocument& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ErrorDocument* New() const PROTOBUF_FINAL { return New(NULL); } + + ErrorDocument* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ErrorDocument& from); + void MergeFrom(const ErrorDocument& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ErrorDocument* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.ContainerError error = 1; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 1; + const ::flyteidl::core::ContainerError& error() const; + ::flyteidl::core::ContainerError* release_error(); + ::flyteidl::core::ContainerError* mutable_error(); + void set_allocated_error(::flyteidl::core::ContainerError* error); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::ContainerError* error_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ferrors_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ferrors_2eproto::InitDefaultsErrorDocumentImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ContainerError + +// string code = 1; +inline void ContainerError::clear_code() { + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ContainerError::code() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.code) + return code_.GetNoArena(); +} +inline void ContainerError::set_code(const ::std::string& value) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.code) +} +#if LANG_CXX11 +inline void ContainerError::set_code(::std::string&& value) { + + code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ContainerError.code) +} +#endif +inline void ContainerError::set_code(const char* value) { + GOOGLE_DCHECK(value != NULL); + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ContainerError.code) +} +inline void ContainerError::set_code(const char* value, size_t size) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ContainerError.code) +} +inline ::std::string* ContainerError::mutable_code() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ContainerError.code) + return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ContainerError::release_code() { + // @@protoc_insertion_point(field_release:flyteidl.core.ContainerError.code) + + return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ContainerError::set_allocated_code(::std::string* code) { + if (code != NULL) { + + } else { + + } + code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ContainerError.code) +} + +// string message = 2; +inline void ContainerError::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ContainerError::message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.message) + return message_.GetNoArena(); +} +inline void ContainerError::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.message) +} +#if LANG_CXX11 +inline void ContainerError::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ContainerError.message) +} +#endif +inline void ContainerError::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ContainerError.message) +} +inline void ContainerError::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.core.ContainerError.message) +} +inline ::std::string* ContainerError::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ContainerError.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ContainerError::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.ContainerError.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ContainerError::set_allocated_message(::std::string* message) { + if (message != NULL) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ContainerError.message) +} + +// .flyteidl.core.ContainerError.Kind kind = 3; +inline void ContainerError::clear_kind() { + kind_ = 0; +} +inline ::flyteidl::core::ContainerError_Kind ContainerError::kind() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.kind) + return static_cast< ::flyteidl::core::ContainerError_Kind >(kind_); +} +inline void ContainerError::set_kind(::flyteidl::core::ContainerError_Kind value) { + + kind_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.kind) +} + +// ------------------------------------------------------------------- + +// ErrorDocument + +// .flyteidl.core.ContainerError error = 1; +inline bool ErrorDocument::has_error() const { + return this != internal_default_instance() && error_ != NULL; +} +inline void ErrorDocument::clear_error() { + if (GetArenaNoVirtual() == NULL && error_ != NULL) { + delete error_; + } + error_ = NULL; +} +inline const ::flyteidl::core::ContainerError& ErrorDocument::error() const { + const ::flyteidl::core::ContainerError* p = error_; + // @@protoc_insertion_point(field_get:flyteidl.core.ErrorDocument.error) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_ContainerError_default_instance_); +} +inline ::flyteidl::core::ContainerError* ErrorDocument::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.core.ErrorDocument.error) + + ::flyteidl::core::ContainerError* temp = error_; + error_ = NULL; + return temp; +} +inline ::flyteidl::core::ContainerError* ErrorDocument::mutable_error() { + + if (error_ == NULL) { + error_ = new ::flyteidl::core::ContainerError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.ErrorDocument.error) + return error_; +} +inline void ErrorDocument::set_allocated_error(::flyteidl::core::ContainerError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete error_; + } + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + + } else { + + } + error_ = error; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ErrorDocument.error) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::ContainerError_Kind> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ContainerError_Kind>() { + return ::flyteidl::core::ContainerError_Kind_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2ferrors_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc new file mode 100644 index 0000000000..49a5bfbc28 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/execution.proto + +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/execution.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h new file mode 100644 index 0000000000..aaac5cb977 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/execution.proto +#ifndef GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED + +#include "flyteidl/core/execution.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc new file mode 100644 index 0000000000..1841494cc9 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc @@ -0,0 +1,1765 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +#include "flyteidl/core/execution.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class WorkflowExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecution_default_instance_; +class NodeExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecution_default_instance_; +class TaskExecutionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecution_default_instance_; +class ExecutionErrorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ExecutionError_default_instance_; +class TaskLogDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskLog_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fexecution_2eproto { +void InitDefaultsWorkflowExecutionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_WorkflowExecution_default_instance_; + new (ptr) ::flyteidl::core::WorkflowExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowExecution::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecution() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionImpl); +} + +void InitDefaultsNodeExecutionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_NodeExecution_default_instance_; + new (ptr) ::flyteidl::core::NodeExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::NodeExecution::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecution() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionImpl); +} + +void InitDefaultsTaskExecutionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_TaskExecution_default_instance_; + new (ptr) ::flyteidl::core::TaskExecution(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskExecution::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecution() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionImpl); +} + +void InitDefaultsExecutionErrorImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_ExecutionError_default_instance_; + new (ptr) ::flyteidl::core::ExecutionError(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ExecutionError::InitAsDefaultInstance(); +} + +void InitDefaultsExecutionError() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsExecutionErrorImpl); +} + +void InitDefaultsTaskLogImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + { + void* ptr = &::flyteidl::core::_TaskLog_default_instance_; + new (ptr) ::flyteidl::core::TaskLog(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskLog::InitAsDefaultInstance(); +} + +void InitDefaultsTaskLog() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskLogImpl); +} + +::google::protobuf::Metadata file_level_metadata[5]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskExecution, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ExecutionError, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ExecutionError, code_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ExecutionError, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ExecutionError, error_uri_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskLog, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskLog, uri_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskLog, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskLog, message_format_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskLog, ttl_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::WorkflowExecution)}, + { 5, -1, sizeof(::flyteidl::core::NodeExecution)}, + { 10, -1, sizeof(::flyteidl::core::TaskExecution)}, + { 15, -1, sizeof(::flyteidl::core::ExecutionError)}, + { 23, -1, sizeof(::flyteidl::core::TaskLog)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_WorkflowExecution_default_instance_), + reinterpret_cast(&::flyteidl::core::_NodeExecution_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskExecution_default_instance_), + reinterpret_cast(&::flyteidl::core::_ExecutionError_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskLog_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/execution.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\035flyteidl/core/execution.proto\022\rflyteid" + "l.core\032\036google/protobuf/duration.proto\"\231" + "\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" + "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" + "odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" + "\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" + "\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" + "KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"h\n\rTaskExecution" + "\"W\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007" + "RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022\n\n" + "\006FAILED\020\005\"B\n\016ExecutionError\022\014\n\004code\030\001 \001(" + "\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030\003 \001(\t\"\273\001" + "\n\007TaskLog\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016" + "message_format\030\003 \001(\0162$.flyteidl.core.Tas" + "kLog.MessageFormat\022&\n\003ttl\030\004 \001(\0132\031.google" + ".protobuf.Duration\"/\n\rMessageFormat\022\013\n\007U" + "NKNOWN\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002B2Z0github.co" + "m/lyft/flyteidl/gen/pb-go/flyteidl/coreb" + "\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 807); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/execution.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fexecution_2eproto +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* WorkflowExecution_Phase_descriptor() { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_enum_descriptors[0]; +} +bool WorkflowExecution_Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const WorkflowExecution_Phase WorkflowExecution::UNDEFINED; +const WorkflowExecution_Phase WorkflowExecution::QUEUED; +const WorkflowExecution_Phase WorkflowExecution::RUNNING; +const WorkflowExecution_Phase WorkflowExecution::SUCCEEDING; +const WorkflowExecution_Phase WorkflowExecution::SUCCEEDED; +const WorkflowExecution_Phase WorkflowExecution::FAILING; +const WorkflowExecution_Phase WorkflowExecution::FAILED; +const WorkflowExecution_Phase WorkflowExecution::ABORTED; +const WorkflowExecution_Phase WorkflowExecution::TIMED_OUT; +const WorkflowExecution_Phase WorkflowExecution::Phase_MIN; +const WorkflowExecution_Phase WorkflowExecution::Phase_MAX; +const int WorkflowExecution::Phase_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* NodeExecution_Phase_descriptor() { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_enum_descriptors[1]; +} +bool NodeExecution_Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const NodeExecution_Phase NodeExecution::UNDEFINED; +const NodeExecution_Phase NodeExecution::QUEUED; +const NodeExecution_Phase NodeExecution::RUNNING; +const NodeExecution_Phase NodeExecution::SUCCEEDED; +const NodeExecution_Phase NodeExecution::FAILING; +const NodeExecution_Phase NodeExecution::FAILED; +const NodeExecution_Phase NodeExecution::ABORTED; +const NodeExecution_Phase NodeExecution::SKIPPED; +const NodeExecution_Phase NodeExecution::TIMED_OUT; +const NodeExecution_Phase NodeExecution::Phase_MIN; +const NodeExecution_Phase NodeExecution::Phase_MAX; +const int NodeExecution::Phase_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* TaskExecution_Phase_descriptor() { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_enum_descriptors[2]; +} +bool TaskExecution_Phase_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TaskExecution_Phase TaskExecution::UNDEFINED; +const TaskExecution_Phase TaskExecution::QUEUED; +const TaskExecution_Phase TaskExecution::RUNNING; +const TaskExecution_Phase TaskExecution::SUCCEEDED; +const TaskExecution_Phase TaskExecution::ABORTED; +const TaskExecution_Phase TaskExecution::FAILED; +const TaskExecution_Phase TaskExecution::Phase_MIN; +const TaskExecution_Phase TaskExecution::Phase_MAX; +const int TaskExecution::Phase_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* TaskLog_MessageFormat_descriptor() { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_enum_descriptors[3]; +} +bool TaskLog_MessageFormat_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const TaskLog_MessageFormat TaskLog::UNKNOWN; +const TaskLog_MessageFormat TaskLog::CSV; +const TaskLog_MessageFormat TaskLog::JSON; +const TaskLog_MessageFormat TaskLog::MessageFormat_MIN; +const TaskLog_MessageFormat TaskLog::MessageFormat_MAX; +const int TaskLog::MessageFormat_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void WorkflowExecution::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecution::WorkflowExecution() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsWorkflowExecution(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowExecution) +} +WorkflowExecution::WorkflowExecution(const WorkflowExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowExecution) +} + +void WorkflowExecution::SharedCtor() { + _cached_size_ = 0; +} + +WorkflowExecution::~WorkflowExecution() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowExecution) + SharedDtor(); +} + +void WorkflowExecution::SharedDtor() { +} + +void WorkflowExecution::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecution::descriptor() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecution& WorkflowExecution::default_instance() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsWorkflowExecution(); + return *internal_default_instance(); +} + +WorkflowExecution* WorkflowExecution::New(::google::protobuf::Arena* arena) const { + WorkflowExecution* n = new WorkflowExecution; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool WorkflowExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowExecution) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowExecution) + return false; +#undef DO_ +} + +void WorkflowExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowExecution) +} + +::google::protobuf::uint8* WorkflowExecution::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowExecution) + return target; +} + +size_t WorkflowExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowExecution) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowExecution) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecution* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowExecution) + MergeFrom(*source); + } +} + +void WorkflowExecution::MergeFrom(const WorkflowExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecution::CopyFrom(const WorkflowExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecution::IsInitialized() const { + return true; +} + +void WorkflowExecution::Swap(WorkflowExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecution::InternalSwap(WorkflowExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecution::GetMetadata() const { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecution::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecution::NodeExecution() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsNodeExecution(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.NodeExecution) +} +NodeExecution::NodeExecution(const NodeExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeExecution) +} + +void NodeExecution::SharedCtor() { + _cached_size_ = 0; +} + +NodeExecution::~NodeExecution() { + // @@protoc_insertion_point(destructor:flyteidl.core.NodeExecution) + SharedDtor(); +} + +void NodeExecution::SharedDtor() { +} + +void NodeExecution::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecution::descriptor() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecution& NodeExecution::default_instance() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsNodeExecution(); + return *internal_default_instance(); +} + +NodeExecution* NodeExecution::New(::google::protobuf::Arena* arena) const { + NodeExecution* n = new NodeExecution; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool NodeExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.NodeExecution) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.NodeExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeExecution) + return false; +#undef DO_ +} + +void NodeExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeExecution) +} + +::google::protobuf::uint8* NodeExecution::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.NodeExecution) + return target; +} + +size_t NodeExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeExecution) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecution* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeExecution) + MergeFrom(*source); + } +} + +void NodeExecution::MergeFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void NodeExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecution::CopyFrom(const NodeExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecution::IsInitialized() const { + return true; +} + +void NodeExecution::Swap(NodeExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecution::InternalSwap(NodeExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecution::GetMetadata() const { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecution::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecution::TaskExecution() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskExecution(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskExecution) +} +TaskExecution::TaskExecution(const TaskExecution& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskExecution) +} + +void TaskExecution::SharedCtor() { + _cached_size_ = 0; +} + +TaskExecution::~TaskExecution() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskExecution) + SharedDtor(); +} + +void TaskExecution::SharedDtor() { +} + +void TaskExecution::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecution::descriptor() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecution& TaskExecution::default_instance() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskExecution(); + return *internal_default_instance(); +} + +TaskExecution* TaskExecution::New(::google::protobuf::Arena* arena) const { + TaskExecution* n = new TaskExecution; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecution::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool TaskExecution::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskExecution) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.TaskExecution) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskExecution) + return false; +#undef DO_ +} + +void TaskExecution::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskExecution) +} + +::google::protobuf::uint8* TaskExecution::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskExecution) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskExecution) + return target; +} + +size_t TaskExecution::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskExecution) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecution::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecution* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskExecution) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskExecution) + MergeFrom(*source); + } +} + +void TaskExecution::MergeFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskExecution) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void TaskExecution::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecution::CopyFrom(const TaskExecution& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskExecution) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecution::IsInitialized() const { + return true; +} + +void TaskExecution::Swap(TaskExecution* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecution::InternalSwap(TaskExecution* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecution::GetMetadata() const { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ExecutionError::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ExecutionError::kCodeFieldNumber; +const int ExecutionError::kMessageFieldNumber; +const int ExecutionError::kErrorUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ExecutionError::ExecutionError() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ExecutionError) +} +ExecutionError::ExecutionError(const ExecutionError& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.code().size() > 0) { + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + error_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.error_uri().size() > 0) { + error_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_uri_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ExecutionError) +} + +void ExecutionError::SharedCtor() { + code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + error_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +ExecutionError::~ExecutionError() { + // @@protoc_insertion_point(destructor:flyteidl.core.ExecutionError) + SharedDtor(); +} + +void ExecutionError::SharedDtor() { + code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + error_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void ExecutionError::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ExecutionError::descriptor() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ExecutionError& ExecutionError::default_instance() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + return *internal_default_instance(); +} + +ExecutionError* ExecutionError::New(::google::protobuf::Arena* arena) const { + ExecutionError* n = new ExecutionError; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ExecutionError::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ExecutionError) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + error_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool ExecutionError::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ExecutionError) + 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 code = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_code())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionError.code")); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionError.message")); + } else { + goto handle_unusual; + } + break; + } + + // string error_uri = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_error_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->error_uri().data(), static_cast(this->error_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ExecutionError.error_uri")); + } 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.ExecutionError) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ExecutionError) + return false; +#undef DO_ +} + +void ExecutionError::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ExecutionError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.code"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->code(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + // string error_uri = 3; + if (this->error_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->error_uri().data(), static_cast(this->error_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.error_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->error_uri(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ExecutionError) +} + +::google::protobuf::uint8* ExecutionError::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ExecutionError) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string code = 1; + if (this->code().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->code().data(), static_cast(this->code().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.code"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->code(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + // string error_uri = 3; + if (this->error_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->error_uri().data(), static_cast(this->error_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ExecutionError.error_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->error_uri(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ExecutionError) + return target; +} + +size_t ExecutionError::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ExecutionError) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string code = 1; + if (this->code().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->code()); + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + // string error_uri = 3; + if (this->error_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->error_uri()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ExecutionError::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ExecutionError) + GOOGLE_DCHECK_NE(&from, this); + const ExecutionError* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ExecutionError) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ExecutionError) + MergeFrom(*source); + } +} + +void ExecutionError::MergeFrom(const ExecutionError& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ExecutionError) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.code().size() > 0) { + + code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); + } + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + if (from.error_uri().size() > 0) { + + error_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_uri_); + } +} + +void ExecutionError::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ExecutionError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ExecutionError::CopyFrom(const ExecutionError& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ExecutionError) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ExecutionError::IsInitialized() const { + return true; +} + +void ExecutionError::Swap(ExecutionError* other) { + if (other == this) return; + InternalSwap(other); +} +void ExecutionError::InternalSwap(ExecutionError* other) { + using std::swap; + code_.Swap(&other->code_); + message_.Swap(&other->message_); + error_uri_.Swap(&other->error_uri_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ExecutionError::GetMetadata() const { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskLog::InitAsDefaultInstance() { + ::flyteidl::core::_TaskLog_default_instance_._instance.get_mutable()->ttl_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +void TaskLog::clear_ttl() { + if (GetArenaNoVirtual() == NULL && ttl_ != NULL) { + delete ttl_; + } + ttl_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskLog::kUriFieldNumber; +const int TaskLog::kNameFieldNumber; +const int TaskLog::kMessageFormatFieldNumber; +const int TaskLog::kTtlFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskLog::TaskLog() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskLog(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskLog) +} +TaskLog::TaskLog(const TaskLog& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_ttl()) { + ttl_ = new ::google::protobuf::Duration(*from.ttl_); + } else { + ttl_ = NULL; + } + message_format_ = from.message_format_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskLog) +} + +void TaskLog::SharedCtor() { + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&ttl_, 0, static_cast( + reinterpret_cast(&message_format_) - + reinterpret_cast(&ttl_)) + sizeof(message_format_)); + _cached_size_ = 0; +} + +TaskLog::~TaskLog() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskLog) + SharedDtor(); +} + +void TaskLog::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete ttl_; +} + +void TaskLog::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskLog::descriptor() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskLog& TaskLog::default_instance() { + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskLog(); + return *internal_default_instance(); +} + +TaskLog* TaskLog::New(::google::protobuf::Arena* arena) const { + TaskLog* n = new TaskLog; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskLog::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskLog) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && ttl_ != NULL) { + delete ttl_; + } + ttl_ = NULL; + message_format_ = 0; + _internal_metadata_.Clear(); +} + +bool TaskLog::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskLog) + 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 uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskLog.uri")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskLog.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_message_format(static_cast< ::flyteidl::core::TaskLog_MessageFormat >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration ttl = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_ttl())); + } 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.TaskLog) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskLog) + return false; +#undef DO_ +} + +void TaskLog::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskLog) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->uri(), output); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->name(), output); + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + if (this->message_format() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->message_format(), output); + } + + // .google.protobuf.Duration ttl = 4; + if (this->has_ttl()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->ttl_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskLog) +} + +::google::protobuf::uint8* TaskLog::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskLog) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->uri(), target); + } + + // string name = 2; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskLog.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->name(), target); + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + if (this->message_format() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->message_format(), target); + } + + // .google.protobuf.Duration ttl = 4; + if (this->has_ttl()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->ttl_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskLog) + return target; +} + +size_t TaskLog::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskLog) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string uri = 1; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // string name = 2; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .google.protobuf.Duration ttl = 4; + if (this->has_ttl()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->ttl_); + } + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + if (this->message_format() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->message_format()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskLog::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskLog) + GOOGLE_DCHECK_NE(&from, this); + const TaskLog* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskLog) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskLog) + MergeFrom(*source); + } +} + +void TaskLog::MergeFrom(const TaskLog& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskLog) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_ttl()) { + mutable_ttl()->::google::protobuf::Duration::MergeFrom(from.ttl()); + } + if (from.message_format() != 0) { + set_message_format(from.message_format()); + } +} + +void TaskLog::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskLog) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskLog::CopyFrom(const TaskLog& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskLog) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskLog::IsInitialized() const { + return true; +} + +void TaskLog::Swap(TaskLog* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskLog::InternalSwap(TaskLog* other) { + using std::swap; + uri_.Swap(&other->uri_); + name_.Swap(&other->name_); + swap(ttl_, other->ttl_); + swap(message_format_, other->message_format_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskLog::GetMetadata() const { + protobuf_flyteidl_2fcore_2fexecution_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fexecution_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h new file mode 100644 index 0000000000..d557760822 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h @@ -0,0 +1,1281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fexecution_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fexecution_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fexecution_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[5]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsWorkflowExecutionImpl(); +void InitDefaultsWorkflowExecution(); +void InitDefaultsNodeExecutionImpl(); +void InitDefaultsNodeExecution(); +void InitDefaultsTaskExecutionImpl(); +void InitDefaultsTaskExecution(); +void InitDefaultsExecutionErrorImpl(); +void InitDefaultsExecutionError(); +void InitDefaultsTaskLogImpl(); +void InitDefaultsTaskLog(); +inline void InitDefaults() { + InitDefaultsWorkflowExecution(); + InitDefaultsNodeExecution(); + InitDefaultsTaskExecution(); + InitDefaultsExecutionError(); + InitDefaultsTaskLog(); +} +} // namespace protobuf_flyteidl_2fcore_2fexecution_2eproto +namespace flyteidl { +namespace core { +class ExecutionError; +class ExecutionErrorDefaultTypeInternal; +extern ExecutionErrorDefaultTypeInternal _ExecutionError_default_instance_; +class NodeExecution; +class NodeExecutionDefaultTypeInternal; +extern NodeExecutionDefaultTypeInternal _NodeExecution_default_instance_; +class TaskExecution; +class TaskExecutionDefaultTypeInternal; +extern TaskExecutionDefaultTypeInternal _TaskExecution_default_instance_; +class TaskLog; +class TaskLogDefaultTypeInternal; +extern TaskLogDefaultTypeInternal _TaskLog_default_instance_; +class WorkflowExecution; +class WorkflowExecutionDefaultTypeInternal; +extern WorkflowExecutionDefaultTypeInternal _WorkflowExecution_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +enum WorkflowExecution_Phase { + WorkflowExecution_Phase_UNDEFINED = 0, + WorkflowExecution_Phase_QUEUED = 1, + WorkflowExecution_Phase_RUNNING = 2, + WorkflowExecution_Phase_SUCCEEDING = 3, + WorkflowExecution_Phase_SUCCEEDED = 4, + WorkflowExecution_Phase_FAILING = 5, + WorkflowExecution_Phase_FAILED = 6, + WorkflowExecution_Phase_ABORTED = 7, + WorkflowExecution_Phase_TIMED_OUT = 8, + WorkflowExecution_Phase_WorkflowExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + WorkflowExecution_Phase_WorkflowExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool WorkflowExecution_Phase_IsValid(int value); +const WorkflowExecution_Phase WorkflowExecution_Phase_Phase_MIN = WorkflowExecution_Phase_UNDEFINED; +const WorkflowExecution_Phase WorkflowExecution_Phase_Phase_MAX = WorkflowExecution_Phase_TIMED_OUT; +const int WorkflowExecution_Phase_Phase_ARRAYSIZE = WorkflowExecution_Phase_Phase_MAX + 1; + +const ::google::protobuf::EnumDescriptor* WorkflowExecution_Phase_descriptor(); +inline const ::std::string& WorkflowExecution_Phase_Name(WorkflowExecution_Phase value) { + return ::google::protobuf::internal::NameOfEnum( + WorkflowExecution_Phase_descriptor(), value); +} +inline bool WorkflowExecution_Phase_Parse( + const ::std::string& name, WorkflowExecution_Phase* value) { + return ::google::protobuf::internal::ParseNamedEnum( + WorkflowExecution_Phase_descriptor(), name, value); +} +enum NodeExecution_Phase { + NodeExecution_Phase_UNDEFINED = 0, + NodeExecution_Phase_QUEUED = 1, + NodeExecution_Phase_RUNNING = 2, + NodeExecution_Phase_SUCCEEDED = 3, + NodeExecution_Phase_FAILING = 4, + NodeExecution_Phase_FAILED = 5, + NodeExecution_Phase_ABORTED = 6, + NodeExecution_Phase_SKIPPED = 7, + NodeExecution_Phase_TIMED_OUT = 8, + NodeExecution_Phase_NodeExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + NodeExecution_Phase_NodeExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool NodeExecution_Phase_IsValid(int value); +const NodeExecution_Phase NodeExecution_Phase_Phase_MIN = NodeExecution_Phase_UNDEFINED; +const NodeExecution_Phase NodeExecution_Phase_Phase_MAX = NodeExecution_Phase_TIMED_OUT; +const int NodeExecution_Phase_Phase_ARRAYSIZE = NodeExecution_Phase_Phase_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NodeExecution_Phase_descriptor(); +inline const ::std::string& NodeExecution_Phase_Name(NodeExecution_Phase value) { + return ::google::protobuf::internal::NameOfEnum( + NodeExecution_Phase_descriptor(), value); +} +inline bool NodeExecution_Phase_Parse( + const ::std::string& name, NodeExecution_Phase* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NodeExecution_Phase_descriptor(), name, value); +} +enum TaskExecution_Phase { + TaskExecution_Phase_UNDEFINED = 0, + TaskExecution_Phase_QUEUED = 1, + TaskExecution_Phase_RUNNING = 2, + TaskExecution_Phase_SUCCEEDED = 3, + TaskExecution_Phase_ABORTED = 4, + TaskExecution_Phase_FAILED = 5, + TaskExecution_Phase_TaskExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + TaskExecution_Phase_TaskExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool TaskExecution_Phase_IsValid(int value); +const TaskExecution_Phase TaskExecution_Phase_Phase_MIN = TaskExecution_Phase_UNDEFINED; +const TaskExecution_Phase TaskExecution_Phase_Phase_MAX = TaskExecution_Phase_FAILED; +const int TaskExecution_Phase_Phase_ARRAYSIZE = TaskExecution_Phase_Phase_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TaskExecution_Phase_descriptor(); +inline const ::std::string& TaskExecution_Phase_Name(TaskExecution_Phase value) { + return ::google::protobuf::internal::NameOfEnum( + TaskExecution_Phase_descriptor(), value); +} +inline bool TaskExecution_Phase_Parse( + const ::std::string& name, TaskExecution_Phase* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TaskExecution_Phase_descriptor(), name, value); +} +enum TaskLog_MessageFormat { + TaskLog_MessageFormat_UNKNOWN = 0, + TaskLog_MessageFormat_CSV = 1, + TaskLog_MessageFormat_JSON = 2, + TaskLog_MessageFormat_TaskLog_MessageFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + TaskLog_MessageFormat_TaskLog_MessageFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool TaskLog_MessageFormat_IsValid(int value); +const TaskLog_MessageFormat TaskLog_MessageFormat_MessageFormat_MIN = TaskLog_MessageFormat_UNKNOWN; +const TaskLog_MessageFormat TaskLog_MessageFormat_MessageFormat_MAX = TaskLog_MessageFormat_JSON; +const int TaskLog_MessageFormat_MessageFormat_ARRAYSIZE = TaskLog_MessageFormat_MessageFormat_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TaskLog_MessageFormat_descriptor(); +inline const ::std::string& TaskLog_MessageFormat_Name(TaskLog_MessageFormat value) { + return ::google::protobuf::internal::NameOfEnum( + TaskLog_MessageFormat_descriptor(), value); +} +inline bool TaskLog_MessageFormat_Parse( + const ::std::string& name, TaskLog_MessageFormat* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TaskLog_MessageFormat_descriptor(), name, value); +} +// =================================================================== + +class WorkflowExecution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowExecution) */ { + public: + WorkflowExecution(); + virtual ~WorkflowExecution(); + + WorkflowExecution(const WorkflowExecution& from); + + inline WorkflowExecution& operator=(const WorkflowExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecution(WorkflowExecution&& from) noexcept + : WorkflowExecution() { + *this = ::std::move(from); + } + + inline WorkflowExecution& operator=(WorkflowExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecution* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecution_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(WorkflowExecution* other); + friend void swap(WorkflowExecution& a, WorkflowExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecution* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecution* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecution& from); + void MergeFrom(const WorkflowExecution& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef WorkflowExecution_Phase Phase; + static const Phase UNDEFINED = + WorkflowExecution_Phase_UNDEFINED; + static const Phase QUEUED = + WorkflowExecution_Phase_QUEUED; + static const Phase RUNNING = + WorkflowExecution_Phase_RUNNING; + static const Phase SUCCEEDING = + WorkflowExecution_Phase_SUCCEEDING; + static const Phase SUCCEEDED = + WorkflowExecution_Phase_SUCCEEDED; + static const Phase FAILING = + WorkflowExecution_Phase_FAILING; + static const Phase FAILED = + WorkflowExecution_Phase_FAILED; + static const Phase ABORTED = + WorkflowExecution_Phase_ABORTED; + static const Phase TIMED_OUT = + WorkflowExecution_Phase_TIMED_OUT; + static inline bool Phase_IsValid(int value) { + return WorkflowExecution_Phase_IsValid(value); + } + static const Phase Phase_MIN = + WorkflowExecution_Phase_Phase_MIN; + static const Phase Phase_MAX = + WorkflowExecution_Phase_Phase_MAX; + static const int Phase_ARRAYSIZE = + WorkflowExecution_Phase_Phase_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Phase_descriptor() { + return WorkflowExecution_Phase_descriptor(); + } + static inline const ::std::string& Phase_Name(Phase value) { + return WorkflowExecution_Phase_Name(value); + } + static inline bool Phase_Parse(const ::std::string& name, + Phase* value) { + return WorkflowExecution_Phase_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsWorkflowExecutionImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeExecution) */ { + public: + NodeExecution(); + virtual ~NodeExecution(); + + NodeExecution(const NodeExecution& from); + + inline NodeExecution& operator=(const NodeExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecution(NodeExecution&& from) noexcept + : NodeExecution() { + *this = ::std::move(from); + } + + inline NodeExecution& operator=(NodeExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecution* internal_default_instance() { + return reinterpret_cast( + &_NodeExecution_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(NodeExecution* other); + friend void swap(NodeExecution& a, NodeExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecution* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecution* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecution& from); + void MergeFrom(const NodeExecution& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef NodeExecution_Phase Phase; + static const Phase UNDEFINED = + NodeExecution_Phase_UNDEFINED; + static const Phase QUEUED = + NodeExecution_Phase_QUEUED; + static const Phase RUNNING = + NodeExecution_Phase_RUNNING; + static const Phase SUCCEEDED = + NodeExecution_Phase_SUCCEEDED; + static const Phase FAILING = + NodeExecution_Phase_FAILING; + static const Phase FAILED = + NodeExecution_Phase_FAILED; + static const Phase ABORTED = + NodeExecution_Phase_ABORTED; + static const Phase SKIPPED = + NodeExecution_Phase_SKIPPED; + static const Phase TIMED_OUT = + NodeExecution_Phase_TIMED_OUT; + static inline bool Phase_IsValid(int value) { + return NodeExecution_Phase_IsValid(value); + } + static const Phase Phase_MIN = + NodeExecution_Phase_Phase_MIN; + static const Phase Phase_MAX = + NodeExecution_Phase_Phase_MAX; + static const int Phase_ARRAYSIZE = + NodeExecution_Phase_Phase_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Phase_descriptor() { + return NodeExecution_Phase_descriptor(); + } + static inline const ::std::string& Phase_Name(Phase value) { + return NodeExecution_Phase_Name(value); + } + static inline bool Phase_Parse(const ::std::string& name, + Phase* value) { + return NodeExecution_Phase_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsNodeExecutionImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskExecution) */ { + public: + TaskExecution(); + virtual ~TaskExecution(); + + TaskExecution(const TaskExecution& from); + + inline TaskExecution& operator=(const TaskExecution& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecution(TaskExecution&& from) noexcept + : TaskExecution() { + *this = ::std::move(from); + } + + inline TaskExecution& operator=(TaskExecution&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecution& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecution* internal_default_instance() { + return reinterpret_cast( + &_TaskExecution_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(TaskExecution* other); + friend void swap(TaskExecution& a, TaskExecution& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecution* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecution* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecution& from); + void MergeFrom(const TaskExecution& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecution* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef TaskExecution_Phase Phase; + static const Phase UNDEFINED = + TaskExecution_Phase_UNDEFINED; + static const Phase QUEUED = + TaskExecution_Phase_QUEUED; + static const Phase RUNNING = + TaskExecution_Phase_RUNNING; + static const Phase SUCCEEDED = + TaskExecution_Phase_SUCCEEDED; + static const Phase ABORTED = + TaskExecution_Phase_ABORTED; + static const Phase FAILED = + TaskExecution_Phase_FAILED; + static inline bool Phase_IsValid(int value) { + return TaskExecution_Phase_IsValid(value); + } + static const Phase Phase_MIN = + TaskExecution_Phase_Phase_MIN; + static const Phase Phase_MAX = + TaskExecution_Phase_Phase_MAX; + static const int Phase_ARRAYSIZE = + TaskExecution_Phase_Phase_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Phase_descriptor() { + return TaskExecution_Phase_descriptor(); + } + static inline const ::std::string& Phase_Name(Phase value) { + return TaskExecution_Phase_Name(value); + } + static inline bool Phase_Parse(const ::std::string& name, + Phase* value) { + return TaskExecution_Phase_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskExecutionImpl(); +}; +// ------------------------------------------------------------------- + +class ExecutionError : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ExecutionError) */ { + public: + ExecutionError(); + virtual ~ExecutionError(); + + ExecutionError(const ExecutionError& from); + + inline ExecutionError& operator=(const ExecutionError& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ExecutionError(ExecutionError&& from) noexcept + : ExecutionError() { + *this = ::std::move(from); + } + + inline ExecutionError& operator=(ExecutionError&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ExecutionError& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ExecutionError* internal_default_instance() { + return reinterpret_cast( + &_ExecutionError_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(ExecutionError* other); + friend void swap(ExecutionError& a, ExecutionError& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ExecutionError* New() const PROTOBUF_FINAL { return New(NULL); } + + ExecutionError* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ExecutionError& from); + void MergeFrom(const ExecutionError& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ExecutionError* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string code = 1; + void clear_code(); + static const int kCodeFieldNumber = 1; + const ::std::string& code() const; + void set_code(const ::std::string& value); + #if LANG_CXX11 + void set_code(::std::string&& value); + #endif + void set_code(const char* value); + void set_code(const char* value, size_t size); + ::std::string* mutable_code(); + ::std::string* release_code(); + void set_allocated_code(::std::string* code); + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // string error_uri = 3; + void clear_error_uri(); + static const int kErrorUriFieldNumber = 3; + const ::std::string& error_uri() const; + void set_error_uri(const ::std::string& value); + #if LANG_CXX11 + void set_error_uri(::std::string&& value); + #endif + void set_error_uri(const char* value); + void set_error_uri(const char* value, size_t size); + ::std::string* mutable_error_uri(); + ::std::string* release_error_uri(); + void set_allocated_error_uri(::std::string* error_uri); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr code_; + ::google::protobuf::internal::ArenaStringPtr message_; + ::google::protobuf::internal::ArenaStringPtr error_uri_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionErrorImpl(); +}; +// ------------------------------------------------------------------- + +class TaskLog : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskLog) */ { + public: + TaskLog(); + virtual ~TaskLog(); + + TaskLog(const TaskLog& from); + + inline TaskLog& operator=(const TaskLog& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskLog(TaskLog&& from) noexcept + : TaskLog() { + *this = ::std::move(from); + } + + inline TaskLog& operator=(TaskLog&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskLog& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskLog* internal_default_instance() { + return reinterpret_cast( + &_TaskLog_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(TaskLog* other); + friend void swap(TaskLog& a, TaskLog& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskLog* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskLog* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskLog& from); + void MergeFrom(const TaskLog& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskLog* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef TaskLog_MessageFormat MessageFormat; + static const MessageFormat UNKNOWN = + TaskLog_MessageFormat_UNKNOWN; + static const MessageFormat CSV = + TaskLog_MessageFormat_CSV; + static const MessageFormat JSON = + TaskLog_MessageFormat_JSON; + static inline bool MessageFormat_IsValid(int value) { + return TaskLog_MessageFormat_IsValid(value); + } + static const MessageFormat MessageFormat_MIN = + TaskLog_MessageFormat_MessageFormat_MIN; + static const MessageFormat MessageFormat_MAX = + TaskLog_MessageFormat_MessageFormat_MAX; + static const int MessageFormat_ARRAYSIZE = + TaskLog_MessageFormat_MessageFormat_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + MessageFormat_descriptor() { + return TaskLog_MessageFormat_descriptor(); + } + static inline const ::std::string& MessageFormat_Name(MessageFormat value) { + return TaskLog_MessageFormat_Name(value); + } + static inline bool MessageFormat_Parse(const ::std::string& name, + MessageFormat* value) { + return TaskLog_MessageFormat_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string uri = 1; + void clear_uri(); + static const int kUriFieldNumber = 1; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // string name = 2; + void clear_name(); + static const int kNameFieldNumber = 2; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .google.protobuf.Duration ttl = 4; + bool has_ttl() const; + void clear_ttl(); + static const int kTtlFieldNumber = 4; + const ::google::protobuf::Duration& ttl() const; + ::google::protobuf::Duration* release_ttl(); + ::google::protobuf::Duration* mutable_ttl(); + void set_allocated_ttl(::google::protobuf::Duration* ttl); + + // .flyteidl.core.TaskLog.MessageFormat message_format = 3; + void clear_message_format(); + static const int kMessageFormatFieldNumber = 3; + ::flyteidl::core::TaskLog_MessageFormat message_format() const; + void set_message_format(::flyteidl::core::TaskLog_MessageFormat value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::Duration* ttl_; + int message_format_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fexecution_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskLogImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowExecution + +// ------------------------------------------------------------------- + +// NodeExecution + +// ------------------------------------------------------------------- + +// TaskExecution + +// ------------------------------------------------------------------- + +// ExecutionError + +// string code = 1; +inline void ExecutionError::clear_code() { + code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionError::code() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.code) + return code_.GetNoArena(); +} +inline void ExecutionError::set_code(const ::std::string& value) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.code) +} +#if LANG_CXX11 +inline void ExecutionError::set_code(::std::string&& value) { + + code_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.code) +} +#endif +inline void ExecutionError::set_code(const char* value) { + GOOGLE_DCHECK(value != NULL); + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.code) +} +inline void ExecutionError::set_code(const char* value, size_t size) { + + code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.code) +} +inline ::std::string* ExecutionError::mutable_code() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.code) + return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionError::release_code() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.code) + + return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionError::set_allocated_code(::std::string* code) { + if (code != NULL) { + + } else { + + } + code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.code) +} + +// string message = 2; +inline void ExecutionError::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionError::message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.message) + return message_.GetNoArena(); +} +inline void ExecutionError::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.message) +} +#if LANG_CXX11 +inline void ExecutionError::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.message) +} +#endif +inline void ExecutionError::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.message) +} +inline void ExecutionError::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.core.ExecutionError.message) +} +inline ::std::string* ExecutionError::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionError::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionError::set_allocated_message(::std::string* message) { + if (message != NULL) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.message) +} + +// string error_uri = 3; +inline void ExecutionError::clear_error_uri() { + error_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& ExecutionError::error_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.error_uri) + return error_uri_.GetNoArena(); +} +inline void ExecutionError::set_error_uri(const ::std::string& value) { + + error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.error_uri) +} +#if LANG_CXX11 +inline void ExecutionError::set_error_uri(::std::string&& value) { + + error_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.error_uri) +} +#endif +inline void ExecutionError::set_error_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.error_uri) +} +inline void ExecutionError::set_error_uri(const char* value, size_t size) { + + error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.error_uri) +} +inline ::std::string* ExecutionError::mutable_error_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.error_uri) + return error_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* ExecutionError::release_error_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.error_uri) + + return error_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void ExecutionError::set_allocated_error_uri(::std::string* error_uri) { + if (error_uri != NULL) { + + } else { + + } + error_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.error_uri) +} + +// ------------------------------------------------------------------- + +// TaskLog + +// string uri = 1; +inline void TaskLog::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskLog::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.uri) + return uri_.GetNoArena(); +} +inline void TaskLog::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.uri) +} +#if LANG_CXX11 +inline void TaskLog::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskLog.uri) +} +#endif +inline void TaskLog::set_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskLog.uri) +} +inline void TaskLog::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskLog.uri) +} +inline ::std::string* TaskLog::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskLog::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskLog::set_allocated_uri(::std::string* uri) { + if (uri != NULL) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.uri) +} + +// string name = 2; +inline void TaskLog::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskLog::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.name) + return name_.GetNoArena(); +} +inline void TaskLog::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.name) +} +#if LANG_CXX11 +inline void TaskLog::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskLog.name) +} +#endif +inline void TaskLog::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskLog.name) +} +inline void TaskLog::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskLog.name) +} +inline ::std::string* TaskLog::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskLog::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskLog::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.name) +} + +// .flyteidl.core.TaskLog.MessageFormat message_format = 3; +inline void TaskLog::clear_message_format() { + message_format_ = 0; +} +inline ::flyteidl::core::TaskLog_MessageFormat TaskLog::message_format() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.message_format) + return static_cast< ::flyteidl::core::TaskLog_MessageFormat >(message_format_); +} +inline void TaskLog::set_message_format(::flyteidl::core::TaskLog_MessageFormat value) { + + message_format_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.message_format) +} + +// .google.protobuf.Duration ttl = 4; +inline bool TaskLog::has_ttl() const { + return this != internal_default_instance() && ttl_ != NULL; +} +inline const ::google::protobuf::Duration& TaskLog::ttl() const { + const ::google::protobuf::Duration* p = ttl_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.ttl) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* TaskLog::release_ttl() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.ttl) + + ::google::protobuf::Duration* temp = ttl_; + ttl_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* TaskLog::mutable_ttl() { + + if (ttl_ == NULL) { + ttl_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.ttl) + return ttl_; +} +inline void TaskLog::set_allocated_ttl(::google::protobuf::Duration* ttl) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(ttl_); + } + if (ttl) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(ttl)->GetArena(); + if (message_arena != submessage_arena) { + ttl = ::google::protobuf::internal::GetOwnedMessage( + message_arena, ttl, submessage_arena); + } + + } else { + + } + ttl_ = ttl; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.ttl) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::WorkflowExecution_Phase> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::WorkflowExecution_Phase>() { + return ::flyteidl::core::WorkflowExecution_Phase_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::NodeExecution_Phase> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::NodeExecution_Phase>() { + return ::flyteidl::core::NodeExecution_Phase_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::TaskExecution_Phase> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::TaskExecution_Phase>() { + return ::flyteidl::core::TaskExecution_Phase_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::TaskLog_MessageFormat> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::TaskLog_MessageFormat>() { + return ::flyteidl::core::TaskLog_MessageFormat_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc new file mode 100644 index 0000000000..9a6027fe85 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/identifier.proto + +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/identifier.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h new file mode 100644 index 0000000000..3b34dd9410 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/identifier.proto +#ifndef GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED + +#include "flyteidl/core/identifier.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc new file mode 100644 index 0000000000..b4baf9c429 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc @@ -0,0 +1,1748 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +#include "flyteidl/core/identifier.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class IdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Identifier_default_instance_; +class WorkflowExecutionIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowExecutionIdentifier_default_instance_; +class NodeExecutionIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeExecutionIdentifier_default_instance_; +class TaskExecutionIdentifierDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskExecutionIdentifier_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fidentifier_2eproto { +void InitDefaultsIdentifierImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_Identifier_default_instance_; + new (ptr) ::flyteidl::core::Identifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Identifier::InitAsDefaultInstance(); +} + +void InitDefaultsIdentifier() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsIdentifierImpl); +} + +void InitDefaultsWorkflowExecutionIdentifierImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_; + new (ptr) ::flyteidl::core::WorkflowExecutionIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowExecutionIdentifier::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionIdentifier() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionIdentifierImpl); +} + +void InitDefaultsNodeExecutionIdentifierImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::core::_NodeExecutionIdentifier_default_instance_; + new (ptr) ::flyteidl::core::NodeExecutionIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::NodeExecutionIdentifier::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionIdentifier() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionIdentifierImpl); +} + +void InitDefaultsTaskExecutionIdentifierImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + { + void* ptr = &::flyteidl::core::_TaskExecutionIdentifier_default_instance_; + new (ptr) ::flyteidl::core::TaskExecutionIdentifier(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskExecutionIdentifier::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionIdentifier() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionIdentifierImpl); +} + +::google::protobuf::Metadata file_level_metadata[4]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Identifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Identifier, resource_type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Identifier, project_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Identifier, domain_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Identifier, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Identifier, version_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, project_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, domain_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, name_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, node_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, execution_id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, task_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, node_execution_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, retry_attempt_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Identifier)}, + { 10, -1, sizeof(::flyteidl::core::WorkflowExecutionIdentifier)}, + { 18, -1, sizeof(::flyteidl::core::NodeExecutionIdentifier)}, + { 25, -1, sizeof(::flyteidl::core::TaskExecutionIdentifier)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Identifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/identifier.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\036flyteidl/core/identifier.proto\022\rflytei" + "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + "(\0132*.flyteidl.core.WorkflowExecutionIden" + "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + "pt\030\003 \001(\r*H\n\014ResourceType\022\017\n\013UNSPECIFIED\020" + "\000\022\010\n\004TASK\020\001\022\014\n\010WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN" + "\020\003B2Z0github.com/lyft/flyteidl/gen/pb-go" + "/flyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 662); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/identifier.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fidentifier_2eproto +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* ResourceType_descriptor() { + protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_enum_descriptors[0]; +} +bool ResourceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== + +void Identifier::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Identifier::kResourceTypeFieldNumber; +const int Identifier::kProjectFieldNumber; +const int Identifier::kDomainFieldNumber; +const int Identifier::kNameFieldNumber; +const int Identifier::kVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Identifier::Identifier() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Identifier) +} +Identifier::Identifier(const Identifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + resource_type_ = from.resource_type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Identifier) +} + +void Identifier::SharedCtor() { + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _cached_size_ = 0; +} + +Identifier::~Identifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.Identifier) + SharedDtor(); +} + +void Identifier::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Identifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Identifier::descriptor() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Identifier& Identifier::default_instance() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + return *internal_default_instance(); +} + +Identifier* Identifier::New(::google::protobuf::Arena* arena) const { + Identifier* n = new Identifier; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Identifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Identifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resource_type_ = 0; + _internal_metadata_.Clear(); +} + +bool Identifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Identifier) + 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)) { + // .flyteidl.core.ResourceType resource_type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string project = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.name")); + } else { + goto handle_unusual; + } + break; + } + + // string version = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Identifier.version")); + } 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.Identifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Identifier) + return false; +#undef DO_ +} + +void Identifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Identifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->resource_type(), output); + } + + // string project = 2; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->project(), output); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->domain(), output); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->name(), output); + } + + // string version = 5; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->version(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Identifier) +} + +::google::protobuf::uint8* Identifier::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Identifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->resource_type(), target); + } + + // string project = 2; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->project(), target); + } + + // string domain = 3; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->domain(), target); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->name(), target); + } + + // string version = 5; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Identifier.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->version(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Identifier) + return target; +} + +size_t Identifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Identifier) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string project = 2; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 3; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 4; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string version = 5; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // .flyteidl.core.ResourceType resource_type = 1; + if (this->resource_type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Identifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Identifier) + GOOGLE_DCHECK_NE(&from, this); + const Identifier* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Identifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Identifier) + MergeFrom(*source); + } +} + +void Identifier::MergeFrom(const Identifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Identifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.resource_type() != 0) { + set_resource_type(from.resource_type()); + } +} + +void Identifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Identifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Identifier::CopyFrom(const Identifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Identifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Identifier::IsInitialized() const { + return true; +} + +void Identifier::Swap(Identifier* other) { + if (other == this) return; + InternalSwap(other); +} +void Identifier::InternalSwap(Identifier* other) { + using std::swap; + project_.Swap(&other->project_); + domain_.Swap(&other->domain_); + name_.Swap(&other->name_); + version_.Swap(&other->version_); + swap(resource_type_, other->resource_type_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Identifier::GetMetadata() const { + protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowExecutionIdentifier::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionIdentifier::kProjectFieldNumber; +const int WorkflowExecutionIdentifier::kDomainFieldNumber; +const int WorkflowExecutionIdentifier::kNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionIdentifier::WorkflowExecutionIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowExecutionIdentifier) +} +WorkflowExecutionIdentifier::WorkflowExecutionIdentifier(const WorkflowExecutionIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.project().size() > 0) { + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.domain().size() > 0) { + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowExecutionIdentifier) +} + +void WorkflowExecutionIdentifier::SharedCtor() { + project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +WorkflowExecutionIdentifier::~WorkflowExecutionIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowExecutionIdentifier) + SharedDtor(); +} + +void WorkflowExecutionIdentifier::SharedDtor() { + project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void WorkflowExecutionIdentifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionIdentifier::descriptor() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionIdentifier& WorkflowExecutionIdentifier::default_instance() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + return *internal_default_instance(); +} + +WorkflowExecutionIdentifier* WorkflowExecutionIdentifier::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionIdentifier* n = new WorkflowExecutionIdentifier; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowExecutionIdentifier) + 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 project = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_project())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowExecutionIdentifier.project")); + } else { + goto handle_unusual; + } + break; + } + + // string domain = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_domain())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowExecutionIdentifier.domain")); + } else { + goto handle_unusual; + } + break; + } + + // string name = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.WorkflowExecutionIdentifier.name")); + } 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.WorkflowExecutionIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowExecutionIdentifier) + return false; +#undef DO_ +} + +void WorkflowExecutionIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.project"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->project(), output); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.domain"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->domain(), output); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 4, this->name(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowExecutionIdentifier) +} + +::google::protobuf::uint8* WorkflowExecutionIdentifier::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string project = 1; + if (this->project().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->project().data(), static_cast(this->project().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.project"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->project(), target); + } + + // string domain = 2; + if (this->domain().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->domain().data(), static_cast(this->domain().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.domain"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->domain(), target); + } + + // string name = 4; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.WorkflowExecutionIdentifier.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->name(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowExecutionIdentifier) + return target; +} + +size_t WorkflowExecutionIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowExecutionIdentifier) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string project = 1; + if (this->project().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->project()); + } + + // string domain = 2; + if (this->domain().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->domain()); + } + + // string name = 4; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionIdentifier* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowExecutionIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowExecutionIdentifier) + MergeFrom(*source); + } +} + +void WorkflowExecutionIdentifier::MergeFrom(const WorkflowExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.project().size() > 0) { + + project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); + } + if (from.domain().size() > 0) { + + domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); + } + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } +} + +void WorkflowExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionIdentifier::CopyFrom(const WorkflowExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionIdentifier::IsInitialized() const { + return true; +} + +void WorkflowExecutionIdentifier::Swap(WorkflowExecutionIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionIdentifier::InternalSwap(WorkflowExecutionIdentifier* other) { + using std::swap; + project_.Swap(&other->project_); + domain_.Swap(&other->domain_); + name_.Swap(&other->name_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionIdentifier::GetMetadata() const { + protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionIdentifier::InitAsDefaultInstance() { + ::flyteidl::core::_NodeExecutionIdentifier_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionIdentifier::kNodeIdFieldNumber; +const int NodeExecutionIdentifier::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionIdentifier::NodeExecutionIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.NodeExecutionIdentifier) +} +NodeExecutionIdentifier::NodeExecutionIdentifier(const NodeExecutionIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_id().size() > 0) { + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeExecutionIdentifier) +} + +void NodeExecutionIdentifier::SharedCtor() { + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + execution_id_ = NULL; + _cached_size_ = 0; +} + +NodeExecutionIdentifier::~NodeExecutionIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.NodeExecutionIdentifier) + SharedDtor(); +} + +void NodeExecutionIdentifier::SharedDtor() { + node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete execution_id_; +} + +void NodeExecutionIdentifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionIdentifier::descriptor() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionIdentifier& NodeExecutionIdentifier::default_instance() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + return *internal_default_instance(); +} + +NodeExecutionIdentifier* NodeExecutionIdentifier::New(::google::protobuf::Arena* arena) const { + NodeExecutionIdentifier* n = new NodeExecutionIdentifier; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && execution_id_ != NULL) { + delete execution_id_; + } + execution_id_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeExecutionIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.NodeExecutionIdentifier) + 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 node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.NodeExecutionIdentifier.node_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } 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.NodeExecutionIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeExecutionIdentifier) + return false; +#undef DO_ +} + +void NodeExecutionIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeExecutionIdentifier.node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->node_id(), output); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->execution_id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeExecutionIdentifier) +} + +::google::protobuf::uint8* NodeExecutionIdentifier::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeExecutionIdentifier.node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->node_id(), target); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->execution_id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.NodeExecutionIdentifier) + return target; +} + +size_t NodeExecutionIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeExecutionIdentifier) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string node_id = 1; + if (this->node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionIdentifier* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeExecutionIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeExecutionIdentifier) + MergeFrom(*source); + } +} + +void NodeExecutionIdentifier::MergeFrom(const NodeExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.node_id().size() > 0) { + + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } +} + +void NodeExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionIdentifier::CopyFrom(const NodeExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionIdentifier::IsInitialized() const { + return true; +} + +void NodeExecutionIdentifier::Swap(NodeExecutionIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionIdentifier::InternalSwap(NodeExecutionIdentifier* other) { + using std::swap; + node_id_.Swap(&other->node_id_); + swap(execution_id_, other->execution_id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionIdentifier::GetMetadata() const { + protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionIdentifier::InitAsDefaultInstance() { + ::flyteidl::core::_TaskExecutionIdentifier_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_TaskExecutionIdentifier_default_instance_._instance.get_mutable()->node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionIdentifier::kTaskIdFieldNumber; +const int TaskExecutionIdentifier::kNodeExecutionIdFieldNumber; +const int TaskExecutionIdentifier::kRetryAttemptFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionIdentifier::TaskExecutionIdentifier() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskExecutionIdentifier) +} +TaskExecutionIdentifier::TaskExecutionIdentifier(const TaskExecutionIdentifier& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_task_id()) { + task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); + } else { + task_id_ = NULL; + } + if (from.has_node_execution_id()) { + node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.node_execution_id_); + } else { + node_execution_id_ = NULL; + } + retry_attempt_ = from.retry_attempt_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskExecutionIdentifier) +} + +void TaskExecutionIdentifier::SharedCtor() { + ::memset(&task_id_, 0, static_cast( + reinterpret_cast(&retry_attempt_) - + reinterpret_cast(&task_id_)) + sizeof(retry_attempt_)); + _cached_size_ = 0; +} + +TaskExecutionIdentifier::~TaskExecutionIdentifier() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskExecutionIdentifier) + SharedDtor(); +} + +void TaskExecutionIdentifier::SharedDtor() { + if (this != internal_default_instance()) delete task_id_; + if (this != internal_default_instance()) delete node_execution_id_; +} + +void TaskExecutionIdentifier::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionIdentifier::descriptor() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionIdentifier& TaskExecutionIdentifier::default_instance() { + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + return *internal_default_instance(); +} + +TaskExecutionIdentifier* TaskExecutionIdentifier::New(::google::protobuf::Arena* arena) const { + TaskExecutionIdentifier* n = new TaskExecutionIdentifier; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionIdentifier::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && task_id_ != NULL) { + delete task_id_; + } + task_id_ = NULL; + if (GetArenaNoVirtual() == NULL && node_execution_id_ != NULL) { + delete node_execution_id_; + } + node_execution_id_ = NULL; + retry_attempt_ = 0u; + _internal_metadata_.Clear(); +} + +bool TaskExecutionIdentifier::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskExecutionIdentifier) + 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)) { + // .flyteidl.core.Identifier task_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retry_attempt = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retry_attempt_))); + } 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.TaskExecutionIdentifier) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskExecutionIdentifier) + return false; +#undef DO_ +} + +void TaskExecutionIdentifier::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->task_id_, output); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + if (this->has_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->node_execution_id_, output); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskExecutionIdentifier) +} + +::google::protobuf::uint8* TaskExecutionIdentifier::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->task_id_, deterministic, target); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + if (this->has_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->node_execution_id_, deterministic, target); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskExecutionIdentifier) + return target; +} + +size_t TaskExecutionIdentifier::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskExecutionIdentifier) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->task_id_); + } + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + if (this->has_node_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->node_execution_id_); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retry_attempt()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionIdentifier* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskExecutionIdentifier) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskExecutionIdentifier) + MergeFrom(*source); + } +} + +void TaskExecutionIdentifier::MergeFrom(const TaskExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskExecutionIdentifier) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_task_id()) { + mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); + } + if (from.has_node_execution_id()) { + mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); + } + if (from.retry_attempt() != 0) { + set_retry_attempt(from.retry_attempt()); + } +} + +void TaskExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionIdentifier::CopyFrom(const TaskExecutionIdentifier& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskExecutionIdentifier) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionIdentifier::IsInitialized() const { + return true; +} + +void TaskExecutionIdentifier::Swap(TaskExecutionIdentifier* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionIdentifier::InternalSwap(TaskExecutionIdentifier* other) { + using std::swap; + swap(task_id_, other->task_id_); + swap(node_execution_id_, other->node_execution_id_); + swap(retry_attempt_, other->retry_attempt_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionIdentifier::GetMetadata() const { + protobuf_flyteidl_2fcore_2fidentifier_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h new file mode 100644 index 0000000000..06d5b5d043 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h @@ -0,0 +1,1289 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fidentifier_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[4]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsIdentifierImpl(); +void InitDefaultsIdentifier(); +void InitDefaultsWorkflowExecutionIdentifierImpl(); +void InitDefaultsWorkflowExecutionIdentifier(); +void InitDefaultsNodeExecutionIdentifierImpl(); +void InitDefaultsNodeExecutionIdentifier(); +void InitDefaultsTaskExecutionIdentifierImpl(); +void InitDefaultsTaskExecutionIdentifier(); +inline void InitDefaults() { + InitDefaultsIdentifier(); + InitDefaultsWorkflowExecutionIdentifier(); + InitDefaultsNodeExecutionIdentifier(); + InitDefaultsTaskExecutionIdentifier(); +} +} // namespace protobuf_flyteidl_2fcore_2fidentifier_2eproto +namespace flyteidl { +namespace core { +class Identifier; +class IdentifierDefaultTypeInternal; +extern IdentifierDefaultTypeInternal _Identifier_default_instance_; +class NodeExecutionIdentifier; +class NodeExecutionIdentifierDefaultTypeInternal; +extern NodeExecutionIdentifierDefaultTypeInternal _NodeExecutionIdentifier_default_instance_; +class TaskExecutionIdentifier; +class TaskExecutionIdentifierDefaultTypeInternal; +extern TaskExecutionIdentifierDefaultTypeInternal _TaskExecutionIdentifier_default_instance_; +class WorkflowExecutionIdentifier; +class WorkflowExecutionIdentifierDefaultTypeInternal; +extern WorkflowExecutionIdentifierDefaultTypeInternal _WorkflowExecutionIdentifier_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +enum ResourceType { + UNSPECIFIED = 0, + TASK = 1, + WORKFLOW = 2, + LAUNCH_PLAN = 3, + ResourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + ResourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool ResourceType_IsValid(int value); +const ResourceType ResourceType_MIN = UNSPECIFIED; +const ResourceType ResourceType_MAX = LAUNCH_PLAN; +const int ResourceType_ARRAYSIZE = ResourceType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ResourceType_descriptor(); +inline const ::std::string& ResourceType_Name(ResourceType value) { + return ::google::protobuf::internal::NameOfEnum( + ResourceType_descriptor(), value); +} +inline bool ResourceType_Parse( + const ::std::string& name, ResourceType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ResourceType_descriptor(), name, value); +} +// =================================================================== + +class Identifier : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Identifier) */ { + public: + Identifier(); + virtual ~Identifier(); + + Identifier(const Identifier& from); + + inline Identifier& operator=(const Identifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Identifier(Identifier&& from) noexcept + : Identifier() { + *this = ::std::move(from); + } + + inline Identifier& operator=(Identifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Identifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Identifier* internal_default_instance() { + return reinterpret_cast( + &_Identifier_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Identifier* other); + friend void swap(Identifier& a, Identifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Identifier* New() const PROTOBUF_FINAL { return New(NULL); } + + Identifier* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Identifier& from); + void MergeFrom(const Identifier& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Identifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 2; + void clear_project(); + static const int kProjectFieldNumber = 2; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 3; + void clear_domain(); + static const int kDomainFieldNumber = 3; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 4; + void clear_name(); + static const int kNameFieldNumber = 4; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string version = 5; + void clear_version(); + static const int kVersionFieldNumber = 5; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // .flyteidl.core.ResourceType resource_type = 1; + void clear_resource_type(); + static const int kResourceTypeFieldNumber = 1; + ::flyteidl::core::ResourceType resource_type() const; + void set_resource_type(::flyteidl::core::ResourceType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr version_; + int resource_type_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifierImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowExecutionIdentifier : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowExecutionIdentifier) */ { + public: + WorkflowExecutionIdentifier(); + virtual ~WorkflowExecutionIdentifier(); + + WorkflowExecutionIdentifier(const WorkflowExecutionIdentifier& from); + + inline WorkflowExecutionIdentifier& operator=(const WorkflowExecutionIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionIdentifier(WorkflowExecutionIdentifier&& from) noexcept + : WorkflowExecutionIdentifier() { + *this = ::std::move(from); + } + + inline WorkflowExecutionIdentifier& operator=(WorkflowExecutionIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionIdentifier* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionIdentifier_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(WorkflowExecutionIdentifier* other); + friend void swap(WorkflowExecutionIdentifier& a, WorkflowExecutionIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionIdentifier* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionIdentifier* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionIdentifier& from); + void MergeFrom(const WorkflowExecutionIdentifier& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string project = 1; + void clear_project(); + static const int kProjectFieldNumber = 1; + const ::std::string& project() const; + void set_project(const ::std::string& value); + #if LANG_CXX11 + void set_project(::std::string&& value); + #endif + void set_project(const char* value); + void set_project(const char* value, size_t size); + ::std::string* mutable_project(); + ::std::string* release_project(); + void set_allocated_project(::std::string* project); + + // string domain = 2; + void clear_domain(); + static const int kDomainFieldNumber = 2; + const ::std::string& domain() const; + void set_domain(const ::std::string& value); + #if LANG_CXX11 + void set_domain(::std::string&& value); + #endif + void set_domain(const char* value); + void set_domain(const char* value, size_t size); + ::std::string* mutable_domain(); + ::std::string* release_domain(); + void set_allocated_domain(::std::string* domain); + + // string name = 4; + void clear_name(); + static const int kNameFieldNumber = 4; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr project_; + ::google::protobuf::internal::ArenaStringPtr domain_; + ::google::protobuf::internal::ArenaStringPtr name_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifierImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionIdentifier : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeExecutionIdentifier) */ { + public: + NodeExecutionIdentifier(); + virtual ~NodeExecutionIdentifier(); + + NodeExecutionIdentifier(const NodeExecutionIdentifier& from); + + inline NodeExecutionIdentifier& operator=(const NodeExecutionIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionIdentifier(NodeExecutionIdentifier&& from) noexcept + : NodeExecutionIdentifier() { + *this = ::std::move(from); + } + + inline NodeExecutionIdentifier& operator=(NodeExecutionIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionIdentifier* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionIdentifier_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(NodeExecutionIdentifier* other); + friend void swap(NodeExecutionIdentifier& a, NodeExecutionIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionIdentifier* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionIdentifier* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionIdentifier& from); + void MergeFrom(const NodeExecutionIdentifier& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string node_id = 1; + void clear_node_id(); + static const int kNodeIdFieldNumber = 1; + const ::std::string& node_id() const; + void set_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_node_id(::std::string&& value); + #endif + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + ::std::string* mutable_node_id(); + ::std::string* release_node_id(); + void set_allocated_node_id(::std::string* node_id); + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 2; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr node_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifierImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionIdentifier : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskExecutionIdentifier) */ { + public: + TaskExecutionIdentifier(); + virtual ~TaskExecutionIdentifier(); + + TaskExecutionIdentifier(const TaskExecutionIdentifier& from); + + inline TaskExecutionIdentifier& operator=(const TaskExecutionIdentifier& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionIdentifier(TaskExecutionIdentifier&& from) noexcept + : TaskExecutionIdentifier() { + *this = ::std::move(from); + } + + inline TaskExecutionIdentifier& operator=(TaskExecutionIdentifier&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionIdentifier& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionIdentifier* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionIdentifier_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(TaskExecutionIdentifier* other); + friend void swap(TaskExecutionIdentifier& a, TaskExecutionIdentifier& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionIdentifier* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionIdentifier* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionIdentifier& from); + void MergeFrom(const TaskExecutionIdentifier& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionIdentifier* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier task_id = 1; + bool has_task_id() const; + void clear_task_id(); + static const int kTaskIdFieldNumber = 1; + const ::flyteidl::core::Identifier& task_id() const; + ::flyteidl::core::Identifier* release_task_id(); + ::flyteidl::core::Identifier* mutable_task_id(); + void set_allocated_task_id(::flyteidl::core::Identifier* task_id); + + // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + bool has_node_execution_id() const; + void clear_node_execution_id(); + static const int kNodeExecutionIdFieldNumber = 2; + const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); + void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); + + // uint32 retry_attempt = 3; + void clear_retry_attempt(); + static const int kRetryAttemptFieldNumber = 3; + ::google::protobuf::uint32 retry_attempt() const; + void set_retry_attempt(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* task_id_; + ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; + ::google::protobuf::uint32 retry_attempt_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifierImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Identifier + +// .flyteidl.core.ResourceType resource_type = 1; +inline void Identifier::clear_resource_type() { + resource_type_ = 0; +} +inline ::flyteidl::core::ResourceType Identifier::resource_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.resource_type) + return static_cast< ::flyteidl::core::ResourceType >(resource_type_); +} +inline void Identifier::set_resource_type(::flyteidl::core::ResourceType value) { + + resource_type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.resource_type) +} + +// string project = 2; +inline void Identifier::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::project() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.project) + return project_.GetNoArena(); +} +inline void Identifier::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.project) +} +#if LANG_CXX11 +inline void Identifier::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.project) +} +#endif +inline void Identifier::set_project(const char* value) { + GOOGLE_DCHECK(value != NULL); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.project) +} +inline void Identifier::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.project) +} +inline ::std::string* Identifier::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_project(::std::string* project) { + if (project != NULL) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.project) +} + +// string domain = 3; +inline void Identifier::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.domain) + return domain_.GetNoArena(); +} +inline void Identifier::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.domain) +} +#if LANG_CXX11 +inline void Identifier::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.domain) +} +#endif +inline void Identifier::set_domain(const char* value) { + GOOGLE_DCHECK(value != NULL); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.domain) +} +inline void Identifier::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.domain) +} +inline ::std::string* Identifier::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_domain(::std::string* domain) { + if (domain != NULL) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.domain) +} + +// string name = 4; +inline void Identifier::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.name) + return name_.GetNoArena(); +} +inline void Identifier::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.name) +} +#if LANG_CXX11 +inline void Identifier::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.name) +} +#endif +inline void Identifier::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.name) +} +inline void Identifier::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.name) +} +inline ::std::string* Identifier::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.name) +} + +// string version = 5; +inline void Identifier::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Identifier::version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.version) + return version_.GetNoArena(); +} +inline void Identifier::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.version) +} +#if LANG_CXX11 +inline void Identifier::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.version) +} +#endif +inline void Identifier::set_version(const char* value) { + GOOGLE_DCHECK(value != NULL); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.version) +} +inline void Identifier::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.version) +} +inline ::std::string* Identifier::mutable_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Identifier::release_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Identifier::set_allocated_version(::std::string* version) { + if (version != NULL) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.version) +} + +// ------------------------------------------------------------------- + +// WorkflowExecutionIdentifier + +// string project = 1; +inline void WorkflowExecutionIdentifier::clear_project() { + project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionIdentifier::project() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.project) + return project_.GetNoArena(); +} +inline void WorkflowExecutionIdentifier::set_project(const ::std::string& value) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.project) +} +#if LANG_CXX11 +inline void WorkflowExecutionIdentifier::set_project(::std::string&& value) { + + project_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.project) +} +#endif +inline void WorkflowExecutionIdentifier::set_project(const char* value) { + GOOGLE_DCHECK(value != NULL); + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.project) +} +inline void WorkflowExecutionIdentifier::set_project(const char* value, size_t size) { + + project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.project) +} +inline ::std::string* WorkflowExecutionIdentifier::mutable_project() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.project) + return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionIdentifier::release_project() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.project) + + return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionIdentifier::set_allocated_project(::std::string* project) { + if (project != NULL) { + + } else { + + } + project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.project) +} + +// string domain = 2; +inline void WorkflowExecutionIdentifier::clear_domain() { + domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionIdentifier::domain() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.domain) + return domain_.GetNoArena(); +} +inline void WorkflowExecutionIdentifier::set_domain(const ::std::string& value) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +#if LANG_CXX11 +inline void WorkflowExecutionIdentifier::set_domain(::std::string&& value) { + + domain_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +#endif +inline void WorkflowExecutionIdentifier::set_domain(const char* value) { + GOOGLE_DCHECK(value != NULL); + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +inline void WorkflowExecutionIdentifier::set_domain(const char* value, size_t size) { + + domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.domain) +} +inline ::std::string* WorkflowExecutionIdentifier::mutable_domain() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.domain) + return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionIdentifier::release_domain() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.domain) + + return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionIdentifier::set_allocated_domain(::std::string* domain) { + if (domain != NULL) { + + } else { + + } + domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.domain) +} + +// string name = 4; +inline void WorkflowExecutionIdentifier::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionIdentifier::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.name) + return name_.GetNoArena(); +} +inline void WorkflowExecutionIdentifier::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.name) +} +#if LANG_CXX11 +inline void WorkflowExecutionIdentifier::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.name) +} +#endif +inline void WorkflowExecutionIdentifier::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.name) +} +inline void WorkflowExecutionIdentifier::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.name) +} +inline ::std::string* WorkflowExecutionIdentifier::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionIdentifier::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionIdentifier::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.name) +} + +// ------------------------------------------------------------------- + +// NodeExecutionIdentifier + +// string node_id = 1; +inline void NodeExecutionIdentifier::clear_node_id() { + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionIdentifier::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.NodeExecutionIdentifier.node_id) + return node_id_.GetNoArena(); +} +inline void NodeExecutionIdentifier::set_node_id(const ::std::string& value) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.NodeExecutionIdentifier.node_id) +} +#if LANG_CXX11 +inline void NodeExecutionIdentifier::set_node_id(::std::string&& value) { + + node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.NodeExecutionIdentifier.node_id) +} +#endif +inline void NodeExecutionIdentifier::set_node_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.NodeExecutionIdentifier.node_id) +} +inline void NodeExecutionIdentifier::set_node_id(const char* value, size_t size) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.NodeExecutionIdentifier.node_id) +} +inline ::std::string* NodeExecutionIdentifier::mutable_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeExecutionIdentifier.node_id) + return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionIdentifier::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeExecutionIdentifier.node_id) + + return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionIdentifier::set_allocated_node_id(::std::string* node_id) { + if (node_id != NULL) { + + } else { + + } + node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeExecutionIdentifier.node_id) +} + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; +inline bool NodeExecutionIdentifier::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != NULL; +} +inline void NodeExecutionIdentifier::clear_execution_id() { + if (GetArenaNoVirtual() == NULL && execution_id_ != NULL) { + delete execution_id_; + } + execution_id_ = NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& NodeExecutionIdentifier::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.NodeExecutionIdentifier.execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionIdentifier::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeExecutionIdentifier.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionIdentifier::mutable_execution_id() { + + if (execution_id_ == NULL) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeExecutionIdentifier.execution_id) + return execution_id_; +} +inline void NodeExecutionIdentifier::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete execution_id_; + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeExecutionIdentifier.execution_id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionIdentifier + +// .flyteidl.core.Identifier task_id = 1; +inline bool TaskExecutionIdentifier::has_task_id() const { + return this != internal_default_instance() && task_id_ != NULL; +} +inline void TaskExecutionIdentifier::clear_task_id() { + if (GetArenaNoVirtual() == NULL && task_id_ != NULL) { + delete task_id_; + } + task_id_ = NULL; +} +inline const ::flyteidl::core::Identifier& TaskExecutionIdentifier::task_id() const { + const ::flyteidl::core::Identifier* p = task_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.task_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskExecutionIdentifier::release_task_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskExecutionIdentifier.task_id) + + ::flyteidl::core::Identifier* temp = task_id_; + task_id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* TaskExecutionIdentifier::mutable_task_id() { + + if (task_id_ == NULL) { + task_id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskExecutionIdentifier.task_id) + return task_id_; +} +inline void TaskExecutionIdentifier::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete task_id_; + } + if (task_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + task_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_id, submessage_arena); + } + + } else { + + } + task_id_ = task_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskExecutionIdentifier.task_id) +} + +// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; +inline bool TaskExecutionIdentifier::has_node_execution_id() const { + return this != internal_default_instance() && node_execution_id_ != NULL; +} +inline void TaskExecutionIdentifier::clear_node_execution_id() { + if (GetArenaNoVirtual() == NULL && node_execution_id_ != NULL) { + delete node_execution_id_; + } + node_execution_id_ = NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionIdentifier::node_execution_id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = node_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.node_execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionIdentifier::release_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskExecutionIdentifier.node_execution_id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = node_execution_id_; + node_execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionIdentifier::mutable_node_execution_id() { + + if (node_execution_id_ == NULL) { + node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskExecutionIdentifier.node_execution_id) + return node_execution_id_; +} +inline void TaskExecutionIdentifier::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete node_execution_id_; + } + if (node_execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, node_execution_id, submessage_arena); + } + + } else { + + } + node_execution_id_ = node_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskExecutionIdentifier.node_execution_id) +} + +// uint32 retry_attempt = 3; +inline void TaskExecutionIdentifier::clear_retry_attempt() { + retry_attempt_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionIdentifier::retry_attempt() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.retry_attempt) + return retry_attempt_; +} +inline void TaskExecutionIdentifier::set_retry_attempt(::google::protobuf::uint32 value) { + + retry_attempt_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskExecutionIdentifier.retry_attempt) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::ResourceType> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ResourceType>() { + return ::flyteidl::core::ResourceType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc new file mode 100644 index 0000000000..d508478551 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/interface.proto + +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/interface.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h new file mode 100644 index 0000000000..10c214fd03 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/interface.proto +#ifndef GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED + +#include "flyteidl/core/interface.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc new file mode 100644 index 0000000000..49f2f83a1d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc @@ -0,0 +1,2089 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +#include "flyteidl/core/interface.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class VariableDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Variable_default_instance_; +class VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _VariableMap_VariablesEntry_DoNotUse_default_instance_; +class VariableMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _VariableMap_default_instance_; +class TypedInterfaceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TypedInterface_default_instance_; +class ParameterDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Literal* default__; + bool required_; +} _Parameter_default_instance_; +class ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ParameterMap_ParametersEntry_DoNotUse_default_instance_; +class ParameterMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ParameterMap_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2finterface_2eproto { +void InitDefaultsVariableImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsLiteralType(); + { + void* ptr = &::flyteidl::core::_Variable_default_instance_; + new (ptr) ::flyteidl::core::Variable(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Variable::InitAsDefaultInstance(); +} + +void InitDefaultsVariable() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVariableImpl); +} + +void InitDefaultsVariableMap_VariablesEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariable(); + { + void* ptr = &::flyteidl::core::_VariableMap_VariablesEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse(); + } + ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsVariableMap_VariablesEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVariableMap_VariablesEntry_DoNotUseImpl); +} + +void InitDefaultsVariableMapImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableMap_VariablesEntry_DoNotUse(); + { + void* ptr = &::flyteidl::core::_VariableMap_default_instance_; + new (ptr) ::flyteidl::core::VariableMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::VariableMap::InitAsDefaultInstance(); +} + +void InitDefaultsVariableMap() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVariableMapImpl); +} + +void InitDefaultsTypedInterfaceImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableMap(); + { + void* ptr = &::flyteidl::core::_TypedInterface_default_instance_; + new (ptr) ::flyteidl::core::TypedInterface(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TypedInterface::InitAsDefaultInstance(); +} + +void InitDefaultsTypedInterface() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTypedInterfaceImpl); +} + +void InitDefaultsParameterImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariable(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + { + void* ptr = &::flyteidl::core::_Parameter_default_instance_; + new (ptr) ::flyteidl::core::Parameter(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Parameter::InitAsDefaultInstance(); +} + +void InitDefaultsParameter() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParameterImpl); +} + +void InitDefaultsParameterMap_ParametersEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameter(); + { + void* ptr = &::flyteidl::core::_ParameterMap_ParametersEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse(); + } + ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsParameterMap_ParametersEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParameterMap_ParametersEntry_DoNotUseImpl); +} + +void InitDefaultsParameterMapImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterMap_ParametersEntry_DoNotUse(); + { + void* ptr = &::flyteidl::core::_ParameterMap_default_instance_; + new (ptr) ::flyteidl::core::ParameterMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ParameterMap::InitAsDefaultInstance(); +} + +void InitDefaultsParameterMap() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParameterMapImpl); +} + +::google::protobuf::Metadata file_level_metadata[7]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Variable, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Variable, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Variable, description_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::VariableMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::VariableMap, variables_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TypedInterface, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TypedInterface, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TypedInterface, outputs_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Parameter, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Parameter, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Parameter, var_), + offsetof(::flyteidl::core::ParameterDefaultTypeInternal, default__), + offsetof(::flyteidl::core::ParameterDefaultTypeInternal, required_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Parameter, behavior_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ParameterMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ParameterMap, parameters_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Variable)}, + { 7, 14, sizeof(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse)}, + { 16, -1, sizeof(::flyteidl::core::VariableMap)}, + { 22, -1, sizeof(::flyteidl::core::TypedInterface)}, + { 29, -1, sizeof(::flyteidl::core::Parameter)}, + { 38, 45, sizeof(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse)}, + { 47, -1, sizeof(::flyteidl::core::ParameterMap)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Variable_default_instance_), + reinterpret_cast(&::flyteidl::core::_VariableMap_VariablesEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_VariableMap_default_instance_), + reinterpret_cast(&::flyteidl::core::_TypedInterface_default_instance_), + reinterpret_cast(&::flyteidl::core::_Parameter_default_instance_), + reinterpret_cast(&::flyteidl::core::_ParameterMap_ParametersEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_ParameterMap_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/interface.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\035flyteidl/core/interface.proto\022\rflyteid" + "l.core\032\031flyteidl/core/types.proto\032\034flyte" + "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + "vior\"\234\001\n\014ParameterMap\022\?\n\nparameters\030\001 \003(" + "\0132+.flyteidl.core.ParameterMap.Parameter" + "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + "\0028\001B2Z0github.com/lyft/flyteidl/gen/pb-g" + "o/flyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 783); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/interface.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2finterface_2eproto +namespace flyteidl { +namespace core { + +// =================================================================== + +void Variable::InitAsDefaultInstance() { + ::flyteidl::core::_Variable_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); +} +void Variable::clear_type() { + if (GetArenaNoVirtual() == NULL && type_ != NULL) { + delete type_; + } + type_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Variable::kTypeFieldNumber; +const int Variable::kDescriptionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Variable::Variable() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariable(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Variable) +} +Variable::Variable(const Variable& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.description().size() > 0) { + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.has_type()) { + type_ = new ::flyteidl::core::LiteralType(*from.type_); + } else { + type_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Variable) +} + +void Variable::SharedCtor() { + description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = NULL; + _cached_size_ = 0; +} + +Variable::~Variable() { + // @@protoc_insertion_point(destructor:flyteidl.core.Variable) + SharedDtor(); +} + +void Variable::SharedDtor() { + description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete type_; +} + +void Variable::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Variable::descriptor() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Variable& Variable::default_instance() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariable(); + return *internal_default_instance(); +} + +Variable* Variable::New(::google::protobuf::Arena* arena) const { + Variable* n = new Variable; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Variable::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Variable) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && type_ != NULL) { + delete type_; + } + type_ = NULL; + _internal_metadata_.Clear(); +} + +bool Variable::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Variable) + 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)) { + // .flyteidl.core.LiteralType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } else { + goto handle_unusual; + } + break; + } + + // string description = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_description())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Variable.description")); + } 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.Variable) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Variable) + return false; +#undef DO_ +} + +void Variable::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Variable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralType type = 1; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->type_, output); + } + + // string description = 2; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Variable.description"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->description(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Variable) +} + +::google::protobuf::uint8* Variable::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Variable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.LiteralType type = 1; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->type_, deterministic, target); + } + + // string description = 2; + if (this->description().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->description().data(), static_cast(this->description().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Variable.description"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->description(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Variable) + return target; +} + +size_t Variable::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Variable) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string description = 2; + if (this->description().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->description()); + } + + // .flyteidl.core.LiteralType type = 1; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Variable::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Variable) + GOOGLE_DCHECK_NE(&from, this); + const Variable* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Variable) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Variable) + MergeFrom(*source); + } +} + +void Variable::MergeFrom(const Variable& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Variable) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.description().size() > 0) { + + description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); + } +} + +void Variable::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Variable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Variable::CopyFrom(const Variable& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Variable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Variable::IsInitialized() const { + return true; +} + +void Variable::Swap(Variable* other) { + if (other == this) return; + InternalSwap(other); +} +void Variable::InternalSwap(Variable* other) { + using std::swap; + description_.Swap(&other->description_); + swap(type_, other->type_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Variable::GetMetadata() const { + protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +VariableMap_VariablesEntry_DoNotUse::VariableMap_VariablesEntry_DoNotUse() {} +VariableMap_VariablesEntry_DoNotUse::VariableMap_VariablesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void VariableMap_VariablesEntry_DoNotUse::MergeFrom(const VariableMap_VariablesEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata VariableMap_VariablesEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[1]; +} +void VariableMap_VariablesEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void VariableMap::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int VariableMap::kVariablesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +VariableMap::VariableMap() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableMap(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.VariableMap) +} +VariableMap::VariableMap(const VariableMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + variables_.MergeFrom(from.variables_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.VariableMap) +} + +void VariableMap::SharedCtor() { + _cached_size_ = 0; +} + +VariableMap::~VariableMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.VariableMap) + SharedDtor(); +} + +void VariableMap::SharedDtor() { +} + +void VariableMap::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VariableMap::descriptor() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const VariableMap& VariableMap::default_instance() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableMap(); + return *internal_default_instance(); +} + +VariableMap* VariableMap::New(::google::protobuf::Arena* arena) const { + VariableMap* n = new VariableMap; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void VariableMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.VariableMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + variables_.Clear(); + _internal_metadata_.Clear(); +} + +bool VariableMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.VariableMap) + 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)) { + // map variables = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + VariableMap_VariablesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + VariableMap_VariablesEntry_DoNotUse, + ::std::string, ::flyteidl::core::Variable, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable > > parser(&variables_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.VariableMap.VariablesEntry.key")); + } 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.VariableMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.VariableMap) + return false; +#undef DO_ +} + +void VariableMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.VariableMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map variables = 1; + if (!this->variables().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.VariableMap.VariablesEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->variables().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->variables().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(variables_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it) { + entry.reset(variables_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.VariableMap) +} + +::google::protobuf::uint8* VariableMap::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.VariableMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map variables = 1; + if (!this->variables().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.VariableMap.VariablesEntry.key"); + } + }; + + if (deterministic && + this->variables().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->variables().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(variables_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it) { + entry.reset(variables_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.VariableMap) + return target; +} + +size_t VariableMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.VariableMap) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map variables = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->variables_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator + it = this->variables().begin(); + it != this->variables().end(); ++it) { + entry.reset(variables_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VariableMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.VariableMap) + GOOGLE_DCHECK_NE(&from, this); + const VariableMap* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.VariableMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.VariableMap) + MergeFrom(*source); + } +} + +void VariableMap::MergeFrom(const VariableMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.VariableMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + variables_.MergeFrom(from.variables_); +} + +void VariableMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.VariableMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VariableMap::CopyFrom(const VariableMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.VariableMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VariableMap::IsInitialized() const { + return true; +} + +void VariableMap::Swap(VariableMap* other) { + if (other == this) return; + InternalSwap(other); +} +void VariableMap::InternalSwap(VariableMap* other) { + using std::swap; + variables_.Swap(&other->variables_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata VariableMap::GetMetadata() const { + protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TypedInterface::InitAsDefaultInstance() { + ::flyteidl::core::_TypedInterface_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::VariableMap*>( + ::flyteidl::core::VariableMap::internal_default_instance()); + ::flyteidl::core::_TypedInterface_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::VariableMap*>( + ::flyteidl::core::VariableMap::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TypedInterface::kInputsFieldNumber; +const int TypedInterface::kOutputsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TypedInterface::TypedInterface() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsTypedInterface(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TypedInterface) +} +TypedInterface::TypedInterface(const TypedInterface& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_inputs()) { + inputs_ = new ::flyteidl::core::VariableMap(*from.inputs_); + } else { + inputs_ = NULL; + } + if (from.has_outputs()) { + outputs_ = new ::flyteidl::core::VariableMap(*from.outputs_); + } else { + outputs_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypedInterface) +} + +void TypedInterface::SharedCtor() { + ::memset(&inputs_, 0, static_cast( + reinterpret_cast(&outputs_) - + reinterpret_cast(&inputs_)) + sizeof(outputs_)); + _cached_size_ = 0; +} + +TypedInterface::~TypedInterface() { + // @@protoc_insertion_point(destructor:flyteidl.core.TypedInterface) + SharedDtor(); +} + +void TypedInterface::SharedDtor() { + if (this != internal_default_instance()) delete inputs_; + if (this != internal_default_instance()) delete outputs_; +} + +void TypedInterface::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TypedInterface::descriptor() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TypedInterface& TypedInterface::default_instance() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsTypedInterface(); + return *internal_default_instance(); +} + +TypedInterface* TypedInterface::New(::google::protobuf::Arena* arena) const { + TypedInterface* n = new TypedInterface; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TypedInterface::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypedInterface) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; + _internal_metadata_.Clear(); +} + +bool TypedInterface::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TypedInterface) + 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)) { + // .flyteidl.core.VariableMap inputs = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.VariableMap outputs = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_outputs())); + } 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.TypedInterface) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TypedInterface) + return false; +#undef DO_ +} + +void TypedInterface::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TypedInterface) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.VariableMap inputs = 1; + if (this->has_inputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->inputs_, output); + } + + // .flyteidl.core.VariableMap outputs = 2; + if (this->has_outputs()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->outputs_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TypedInterface) +} + +::google::protobuf::uint8* TypedInterface::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypedInterface) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.VariableMap inputs = 1; + if (this->has_inputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->inputs_, deterministic, target); + } + + // .flyteidl.core.VariableMap outputs = 2; + if (this->has_outputs()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->outputs_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TypedInterface) + return target; +} + +size_t TypedInterface::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypedInterface) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.VariableMap inputs = 1; + if (this->has_inputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->inputs_); + } + + // .flyteidl.core.VariableMap outputs = 2; + if (this->has_outputs()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->outputs_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TypedInterface::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypedInterface) + GOOGLE_DCHECK_NE(&from, this); + const TypedInterface* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypedInterface) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypedInterface) + MergeFrom(*source); + } +} + +void TypedInterface::MergeFrom(const TypedInterface& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypedInterface) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_inputs()) { + mutable_inputs()->::flyteidl::core::VariableMap::MergeFrom(from.inputs()); + } + if (from.has_outputs()) { + mutable_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.outputs()); + } +} + +void TypedInterface::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypedInterface) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TypedInterface::CopyFrom(const TypedInterface& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypedInterface) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TypedInterface::IsInitialized() const { + return true; +} + +void TypedInterface::Swap(TypedInterface* other) { + if (other == this) return; + InternalSwap(other); +} +void TypedInterface::InternalSwap(TypedInterface* other) { + using std::swap; + swap(inputs_, other->inputs_); + swap(outputs_, other->outputs_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TypedInterface::GetMetadata() const { + protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Parameter::InitAsDefaultInstance() { + ::flyteidl::core::_Parameter_default_instance_._instance.get_mutable()->var_ = const_cast< ::flyteidl::core::Variable*>( + ::flyteidl::core::Variable::internal_default_instance()); + ::flyteidl::core::_Parameter_default_instance_.default__ = const_cast< ::flyteidl::core::Literal*>( + ::flyteidl::core::Literal::internal_default_instance()); + ::flyteidl::core::_Parameter_default_instance_.required_ = false; +} +void Parameter::set_allocated_default_(::flyteidl::core::Literal* default_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_behavior(); + if (default_) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + default_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, default_, submessage_arena); + } + set_has_default_(); + behavior_.default__ = default_; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.default) +} +void Parameter::clear_default_() { + if (has_default_()) { + delete behavior_.default__; + clear_has_behavior(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Parameter::kVarFieldNumber; +const int Parameter::kDefaultFieldNumber; +const int Parameter::kRequiredFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Parameter::Parameter() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameter(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Parameter) +} +Parameter::Parameter(const Parameter& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_var()) { + var_ = new ::flyteidl::core::Variable(*from.var_); + } else { + var_ = NULL; + } + clear_has_behavior(); + switch (from.behavior_case()) { + case kDefault: { + mutable_default_()->::flyteidl::core::Literal::MergeFrom(from.default_()); + break; + } + case kRequired: { + set_required(from.required()); + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Parameter) +} + +void Parameter::SharedCtor() { + var_ = NULL; + clear_has_behavior(); + _cached_size_ = 0; +} + +Parameter::~Parameter() { + // @@protoc_insertion_point(destructor:flyteidl.core.Parameter) + SharedDtor(); +} + +void Parameter::SharedDtor() { + if (this != internal_default_instance()) delete var_; + if (has_behavior()) { + clear_behavior(); + } +} + +void Parameter::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Parameter::descriptor() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Parameter& Parameter::default_instance() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameter(); + return *internal_default_instance(); +} + +Parameter* Parameter::New(::google::protobuf::Arena* arena) const { + Parameter* n = new Parameter; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Parameter::clear_behavior() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Parameter) + switch (behavior_case()) { + case kDefault: { + delete behavior_.default__; + break; + } + case kRequired: { + // No need to clear + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + _oneof_case_[0] = BEHAVIOR_NOT_SET; +} + + +void Parameter::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && var_ != NULL) { + delete var_; + } + var_ = NULL; + clear_behavior(); + _internal_metadata_.Clear(); +} + +bool Parameter::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Parameter) + 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)) { + // .flyteidl.core.Variable var = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_var())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Literal default = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_default_())); + } else { + goto handle_unusual; + } + break; + } + + // bool required = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + clear_behavior(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &behavior_.required_))); + set_has_required(); + } 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.Parameter) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Parameter) + return false; +#undef DO_ +} + +void Parameter::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Variable var = 1; + if (this->has_var()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->var_, output); + } + + // .flyteidl.core.Literal default = 2; + if (has_default_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *behavior_.default__, output); + } + + // bool required = 3; + if (has_required()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->required(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Parameter) +} + +::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Parameter) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Variable var = 1; + if (this->has_var()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->var_, deterministic, target); + } + + // .flyteidl.core.Literal default = 2; + if (has_default_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *behavior_.default__, deterministic, target); + } + + // bool required = 3; + if (has_required()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->required(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Parameter) + return target; +} + +size_t Parameter::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Parameter) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.Variable var = 1; + if (this->has_var()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->var_); + } + + switch (behavior_case()) { + // .flyteidl.core.Literal default = 2; + case kDefault: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *behavior_.default__); + break; + } + // bool required = 3; + case kRequired: { + total_size += 1 + 1; + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Parameter::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Parameter) + GOOGLE_DCHECK_NE(&from, this); + const Parameter* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Parameter) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Parameter) + MergeFrom(*source); + } +} + +void Parameter::MergeFrom(const Parameter& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Parameter) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_var()) { + mutable_var()->::flyteidl::core::Variable::MergeFrom(from.var()); + } + switch (from.behavior_case()) { + case kDefault: { + mutable_default_()->::flyteidl::core::Literal::MergeFrom(from.default_()); + break; + } + case kRequired: { + set_required(from.required()); + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } +} + +void Parameter::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Parameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Parameter::CopyFrom(const Parameter& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Parameter) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Parameter::IsInitialized() const { + return true; +} + +void Parameter::Swap(Parameter* other) { + if (other == this) return; + InternalSwap(other); +} +void Parameter::InternalSwap(Parameter* other) { + using std::swap; + swap(var_, other->var_); + swap(behavior_, other->behavior_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Parameter::GetMetadata() const { + protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +ParameterMap_ParametersEntry_DoNotUse::ParameterMap_ParametersEntry_DoNotUse() {} +ParameterMap_ParametersEntry_DoNotUse::ParameterMap_ParametersEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void ParameterMap_ParametersEntry_DoNotUse::MergeFrom(const ParameterMap_ParametersEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata ParameterMap_ParametersEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[5]; +} +void ParameterMap_ParametersEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void ParameterMap::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParameterMap::kParametersFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParameterMap::ParameterMap() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterMap(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ParameterMap) +} +ParameterMap::ParameterMap(const ParameterMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + parameters_.MergeFrom(from.parameters_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ParameterMap) +} + +void ParameterMap::SharedCtor() { + _cached_size_ = 0; +} + +ParameterMap::~ParameterMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.ParameterMap) + SharedDtor(); +} + +void ParameterMap::SharedDtor() { +} + +void ParameterMap::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ParameterMap::descriptor() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ParameterMap& ParameterMap::default_instance() { + ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterMap(); + return *internal_default_instance(); +} + +ParameterMap* ParameterMap::New(::google::protobuf::Arena* arena) const { + ParameterMap* n = new ParameterMap; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ParameterMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ParameterMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + parameters_.Clear(); + _internal_metadata_.Clear(); +} + +bool ParameterMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ParameterMap) + 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)) { + // map parameters = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + ParameterMap_ParametersEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + ParameterMap_ParametersEntry_DoNotUse, + ::std::string, ::flyteidl::core::Parameter, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter > > parser(¶meters_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.ParameterMap.ParametersEntry.key")); + } 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.ParameterMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ParameterMap) + return false; +#undef DO_ +} + +void ParameterMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ParameterMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameters = 1; + if (!this->parameters().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ParameterMap.ParametersEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->parameters().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->parameters().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameters_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it) { + entry.reset(parameters_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ParameterMap) +} + +::google::protobuf::uint8* ParameterMap::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ParameterMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map parameters = 1; + if (!this->parameters().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.ParameterMap.ParametersEntry.key"); + } + }; + + if (deterministic && + this->parameters().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->parameters().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(parameters_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it) { + entry.reset(parameters_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ParameterMap) + return target; +} + +size_t ParameterMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ParameterMap) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map parameters = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->parameters_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator + it = this->parameters().begin(); + it != this->parameters().end(); ++it) { + entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ParameterMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ParameterMap) + GOOGLE_DCHECK_NE(&from, this); + const ParameterMap* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ParameterMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ParameterMap) + MergeFrom(*source); + } +} + +void ParameterMap::MergeFrom(const ParameterMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ParameterMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + parameters_.MergeFrom(from.parameters_); +} + +void ParameterMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ParameterMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParameterMap::CopyFrom(const ParameterMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ParameterMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParameterMap::IsInitialized() const { + return true; +} + +void ParameterMap::Swap(ParameterMap* other) { + if (other == this) return; + InternalSwap(other); +} +void ParameterMap::InternalSwap(ParameterMap* other) { + using std::swap; + parameters_.Swap(&other->parameters_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ParameterMap::GetMetadata() const { + protobuf_flyteidl_2fcore_2finterface_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2finterface_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h new file mode 100644 index 0000000000..5dbf0d61b8 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h @@ -0,0 +1,1138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2finterface_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2finterface_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include "flyteidl/core/types.pb.h" +#include "flyteidl/core/literals.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2finterface_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[7]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsVariableImpl(); +void InitDefaultsVariable(); +void InitDefaultsVariableMap_VariablesEntry_DoNotUseImpl(); +void InitDefaultsVariableMap_VariablesEntry_DoNotUse(); +void InitDefaultsVariableMapImpl(); +void InitDefaultsVariableMap(); +void InitDefaultsTypedInterfaceImpl(); +void InitDefaultsTypedInterface(); +void InitDefaultsParameterImpl(); +void InitDefaultsParameter(); +void InitDefaultsParameterMap_ParametersEntry_DoNotUseImpl(); +void InitDefaultsParameterMap_ParametersEntry_DoNotUse(); +void InitDefaultsParameterMapImpl(); +void InitDefaultsParameterMap(); +inline void InitDefaults() { + InitDefaultsVariable(); + InitDefaultsVariableMap_VariablesEntry_DoNotUse(); + InitDefaultsVariableMap(); + InitDefaultsTypedInterface(); + InitDefaultsParameter(); + InitDefaultsParameterMap_ParametersEntry_DoNotUse(); + InitDefaultsParameterMap(); +} +} // namespace protobuf_flyteidl_2fcore_2finterface_2eproto +namespace flyteidl { +namespace core { +class Parameter; +class ParameterDefaultTypeInternal; +extern ParameterDefaultTypeInternal _Parameter_default_instance_; +class ParameterMap; +class ParameterMapDefaultTypeInternal; +extern ParameterMapDefaultTypeInternal _ParameterMap_default_instance_; +class ParameterMap_ParametersEntry_DoNotUse; +class ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal; +extern ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal _ParameterMap_ParametersEntry_DoNotUse_default_instance_; +class TypedInterface; +class TypedInterfaceDefaultTypeInternal; +extern TypedInterfaceDefaultTypeInternal _TypedInterface_default_instance_; +class Variable; +class VariableDefaultTypeInternal; +extern VariableDefaultTypeInternal _Variable_default_instance_; +class VariableMap; +class VariableMapDefaultTypeInternal; +extern VariableMapDefaultTypeInternal _VariableMap_default_instance_; +class VariableMap_VariablesEntry_DoNotUse; +class VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal; +extern VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal _VariableMap_VariablesEntry_DoNotUse_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +// =================================================================== + +class Variable : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Variable) */ { + public: + Variable(); + virtual ~Variable(); + + Variable(const Variable& from); + + inline Variable& operator=(const Variable& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Variable(Variable&& from) noexcept + : Variable() { + *this = ::std::move(from); + } + + inline Variable& operator=(Variable&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Variable& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Variable* internal_default_instance() { + return reinterpret_cast( + &_Variable_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Variable* other); + friend void swap(Variable& a, Variable& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Variable* New() const PROTOBUF_FINAL { return New(NULL); } + + Variable* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Variable& from); + void MergeFrom(const Variable& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Variable* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string description = 2; + void clear_description(); + static const int kDescriptionFieldNumber = 2; + const ::std::string& description() const; + void set_description(const ::std::string& value); + #if LANG_CXX11 + void set_description(::std::string&& value); + #endif + void set_description(const char* value); + void set_description(const char* value, size_t size); + ::std::string* mutable_description(); + ::std::string* release_description(); + void set_allocated_description(::std::string* description); + + // .flyteidl.core.LiteralType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + const ::flyteidl::core::LiteralType& type() const; + ::flyteidl::core::LiteralType* release_type(); + ::flyteidl::core::LiteralType* mutable_type(); + void set_allocated_type(::flyteidl::core::LiteralType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr description_; + ::flyteidl::core::LiteralType* type_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2finterface_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableImpl(); +}; +// ------------------------------------------------------------------- + +class VariableMap_VariablesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + VariableMap_VariablesEntry_DoNotUse(); + VariableMap_VariablesEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const VariableMap_VariablesEntry_DoNotUse& other); + static const VariableMap_VariablesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_VariableMap_VariablesEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class VariableMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.VariableMap) */ { + public: + VariableMap(); + virtual ~VariableMap(); + + VariableMap(const VariableMap& from); + + inline VariableMap& operator=(const VariableMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + VariableMap(VariableMap&& from) noexcept + : VariableMap() { + *this = ::std::move(from); + } + + inline VariableMap& operator=(VariableMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const VariableMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const VariableMap* internal_default_instance() { + return reinterpret_cast( + &_VariableMap_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(VariableMap* other); + friend void swap(VariableMap& a, VariableMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline VariableMap* New() const PROTOBUF_FINAL { return New(NULL); } + + VariableMap* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const VariableMap& from); + void MergeFrom(const VariableMap& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(VariableMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map variables = 1; + int variables_size() const; + void clear_variables(); + static const int kVariablesFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >& + variables() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >* + mutable_variables(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + VariableMap_VariablesEntry_DoNotUse, + ::std::string, ::flyteidl::core::Variable, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > variables_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2finterface_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsVariableMapImpl(); +}; +// ------------------------------------------------------------------- + +class TypedInterface : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypedInterface) */ { + public: + TypedInterface(); + virtual ~TypedInterface(); + + TypedInterface(const TypedInterface& from); + + inline TypedInterface& operator=(const TypedInterface& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TypedInterface(TypedInterface&& from) noexcept + : TypedInterface() { + *this = ::std::move(from); + } + + inline TypedInterface& operator=(TypedInterface&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TypedInterface& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TypedInterface* internal_default_instance() { + return reinterpret_cast( + &_TypedInterface_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(TypedInterface* other); + friend void swap(TypedInterface& a, TypedInterface& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TypedInterface* New() const PROTOBUF_FINAL { return New(NULL); } + + TypedInterface* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TypedInterface& from); + void MergeFrom(const TypedInterface& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TypedInterface* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.VariableMap inputs = 1; + bool has_inputs() const; + void clear_inputs(); + static const int kInputsFieldNumber = 1; + const ::flyteidl::core::VariableMap& inputs() const; + ::flyteidl::core::VariableMap* release_inputs(); + ::flyteidl::core::VariableMap* mutable_inputs(); + void set_allocated_inputs(::flyteidl::core::VariableMap* inputs); + + // .flyteidl.core.VariableMap outputs = 2; + bool has_outputs() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 2; + const ::flyteidl::core::VariableMap& outputs() const; + ::flyteidl::core::VariableMap* release_outputs(); + ::flyteidl::core::VariableMap* mutable_outputs(); + void set_allocated_outputs(::flyteidl::core::VariableMap* outputs); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::VariableMap* inputs_; + ::flyteidl::core::VariableMap* outputs_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2finterface_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsTypedInterfaceImpl(); +}; +// ------------------------------------------------------------------- + +class Parameter : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Parameter) */ { + public: + Parameter(); + virtual ~Parameter(); + + Parameter(const Parameter& from); + + inline Parameter& operator=(const Parameter& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Parameter(Parameter&& from) noexcept + : Parameter() { + *this = ::std::move(from); + } + + inline Parameter& operator=(Parameter&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Parameter& default_instance(); + + enum BehaviorCase { + kDefault = 2, + kRequired = 3, + BEHAVIOR_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Parameter* internal_default_instance() { + return reinterpret_cast( + &_Parameter_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(Parameter* other); + friend void swap(Parameter& a, Parameter& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Parameter* New() const PROTOBUF_FINAL { return New(NULL); } + + Parameter* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Parameter& from); + void MergeFrom(const Parameter& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Parameter* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Variable var = 1; + bool has_var() const; + void clear_var(); + static const int kVarFieldNumber = 1; + const ::flyteidl::core::Variable& var() const; + ::flyteidl::core::Variable* release_var(); + ::flyteidl::core::Variable* mutable_var(); + void set_allocated_var(::flyteidl::core::Variable* var); + + // .flyteidl.core.Literal default = 2; + bool has_default_() const; + void clear_default_(); + static const int kDefaultFieldNumber = 2; + const ::flyteidl::core::Literal& default_() const; + ::flyteidl::core::Literal* release_default_(); + ::flyteidl::core::Literal* mutable_default_(); + void set_allocated_default_(::flyteidl::core::Literal* default_); + + // bool required = 3; + private: + bool has_required() const; + public: + void clear_required(); + static const int kRequiredFieldNumber = 3; + bool required() const; + void set_required(bool value); + + BehaviorCase behavior_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + private: + void set_has_default_(); + void set_has_required(); + + inline bool has_behavior() const; + void clear_behavior(); + inline void clear_has_behavior(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Variable* var_; + union BehaviorUnion { + BehaviorUnion() {} + ::flyteidl::core::Literal* default__; + bool required_; + } behavior_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2finterface_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterImpl(); +}; +// ------------------------------------------------------------------- + +class ParameterMap_ParametersEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + ParameterMap_ParametersEntry_DoNotUse(); + ParameterMap_ParametersEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const ParameterMap_ParametersEntry_DoNotUse& other); + static const ParameterMap_ParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterMap_ParametersEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class ParameterMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ParameterMap) */ { + public: + ParameterMap(); + virtual ~ParameterMap(); + + ParameterMap(const ParameterMap& from); + + inline ParameterMap& operator=(const ParameterMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParameterMap(ParameterMap&& from) noexcept + : ParameterMap() { + *this = ::std::move(from); + } + + inline ParameterMap& operator=(ParameterMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ParameterMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParameterMap* internal_default_instance() { + return reinterpret_cast( + &_ParameterMap_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(ParameterMap* other); + friend void swap(ParameterMap& a, ParameterMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParameterMap* New() const PROTOBUF_FINAL { return New(NULL); } + + ParameterMap* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ParameterMap& from); + void MergeFrom(const ParameterMap& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ParameterMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map parameters = 1; + int parameters_size() const; + void clear_parameters(); + static const int kParametersFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >& + parameters() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >* + mutable_parameters(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + ParameterMap_ParametersEntry_DoNotUse, + ::std::string, ::flyteidl::core::Parameter, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > parameters_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2finterface_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsParameterMapImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Variable + +// .flyteidl.core.LiteralType type = 1; +inline bool Variable::has_type() const { + return this != internal_default_instance() && type_ != NULL; +} +inline const ::flyteidl::core::LiteralType& Variable::type() const { + const ::flyteidl::core::LiteralType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.Variable.type) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* Variable::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Variable.type) + + ::flyteidl::core::LiteralType* temp = type_; + type_ = NULL; + return temp; +} +inline ::flyteidl::core::LiteralType* Variable::mutable_type() { + + if (type_ == NULL) { + type_ = new ::flyteidl::core::LiteralType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.type) + return type_; +} +inline void Variable::set_allocated_type(::flyteidl::core::LiteralType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.type) +} + +// string description = 2; +inline void Variable::clear_description() { + description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Variable::description() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Variable.description) + return description_.GetNoArena(); +} +inline void Variable::set_description(const ::std::string& value) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Variable.description) +} +#if LANG_CXX11 +inline void Variable::set_description(::std::string&& value) { + + description_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Variable.description) +} +#endif +inline void Variable::set_description(const char* value) { + GOOGLE_DCHECK(value != NULL); + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Variable.description) +} +inline void Variable::set_description(const char* value, size_t size) { + + description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Variable.description) +} +inline ::std::string* Variable::mutable_description() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.description) + return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Variable::release_description() { + // @@protoc_insertion_point(field_release:flyteidl.core.Variable.description) + + return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Variable::set_allocated_description(::std::string* description) { + if (description != NULL) { + + } else { + + } + description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.description) +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// VariableMap + +// map variables = 1; +inline int VariableMap::variables_size() const { + return variables_.size(); +} +inline void VariableMap::clear_variables() { + variables_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >& +VariableMap::variables() const { + // @@protoc_insertion_point(field_map:flyteidl.core.VariableMap.variables) + return variables_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >* +VariableMap::mutable_variables() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.VariableMap.variables) + return variables_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// TypedInterface + +// .flyteidl.core.VariableMap inputs = 1; +inline bool TypedInterface::has_inputs() const { + return this != internal_default_instance() && inputs_ != NULL; +} +inline void TypedInterface::clear_inputs() { + if (GetArenaNoVirtual() == NULL && inputs_ != NULL) { + delete inputs_; + } + inputs_ = NULL; +} +inline const ::flyteidl::core::VariableMap& TypedInterface::inputs() const { + const ::flyteidl::core::VariableMap* p = inputs_; + // @@protoc_insertion_point(field_get:flyteidl.core.TypedInterface.inputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_VariableMap_default_instance_); +} +inline ::flyteidl::core::VariableMap* TypedInterface::release_inputs() { + // @@protoc_insertion_point(field_release:flyteidl.core.TypedInterface.inputs) + + ::flyteidl::core::VariableMap* temp = inputs_; + inputs_ = NULL; + return temp; +} +inline ::flyteidl::core::VariableMap* TypedInterface::mutable_inputs() { + + if (inputs_ == NULL) { + inputs_ = new ::flyteidl::core::VariableMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TypedInterface.inputs) + return inputs_; +} +inline void TypedInterface::set_allocated_inputs(::flyteidl::core::VariableMap* inputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete inputs_; + } + if (inputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + 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.core.TypedInterface.inputs) +} + +// .flyteidl.core.VariableMap outputs = 2; +inline bool TypedInterface::has_outputs() const { + return this != internal_default_instance() && outputs_ != NULL; +} +inline void TypedInterface::clear_outputs() { + if (GetArenaNoVirtual() == NULL && outputs_ != NULL) { + delete outputs_; + } + outputs_ = NULL; +} +inline const ::flyteidl::core::VariableMap& TypedInterface::outputs() const { + const ::flyteidl::core::VariableMap* p = outputs_; + // @@protoc_insertion_point(field_get:flyteidl.core.TypedInterface.outputs) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_VariableMap_default_instance_); +} +inline ::flyteidl::core::VariableMap* TypedInterface::release_outputs() { + // @@protoc_insertion_point(field_release:flyteidl.core.TypedInterface.outputs) + + ::flyteidl::core::VariableMap* temp = outputs_; + outputs_ = NULL; + return temp; +} +inline ::flyteidl::core::VariableMap* TypedInterface::mutable_outputs() { + + if (outputs_ == NULL) { + outputs_ = new ::flyteidl::core::VariableMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TypedInterface.outputs) + return outputs_; +} +inline void TypedInterface::set_allocated_outputs(::flyteidl::core::VariableMap* outputs) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete outputs_; + } + if (outputs) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + outputs = ::google::protobuf::internal::GetOwnedMessage( + message_arena, outputs, submessage_arena); + } + + } else { + + } + outputs_ = outputs; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypedInterface.outputs) +} + +// ------------------------------------------------------------------- + +// Parameter + +// .flyteidl.core.Variable var = 1; +inline bool Parameter::has_var() const { + return this != internal_default_instance() && var_ != NULL; +} +inline void Parameter::clear_var() { + if (GetArenaNoVirtual() == NULL && var_ != NULL) { + delete var_; + } + var_ = NULL; +} +inline const ::flyteidl::core::Variable& Parameter::var() const { + const ::flyteidl::core::Variable* p = var_; + // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.var) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Variable_default_instance_); +} +inline ::flyteidl::core::Variable* Parameter::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.var) + + ::flyteidl::core::Variable* temp = var_; + var_ = NULL; + return temp; +} +inline ::flyteidl::core::Variable* Parameter::mutable_var() { + + if (var_ == NULL) { + var_ = new ::flyteidl::core::Variable; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.var) + return var_; +} +inline void Parameter::set_allocated_var(::flyteidl::core::Variable* var) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete var_; + } + if (var) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + var = ::google::protobuf::internal::GetOwnedMessage( + message_arena, var, submessage_arena); + } + + } else { + + } + var_ = var; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.var) +} + +// .flyteidl.core.Literal default = 2; +inline bool Parameter::has_default_() const { + return behavior_case() == kDefault; +} +inline void Parameter::set_has_default_() { + _oneof_case_[0] = kDefault; +} +inline ::flyteidl::core::Literal* Parameter::release_default_() { + // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.default) + if (has_default_()) { + clear_has_behavior(); + ::flyteidl::core::Literal* temp = behavior_.default__; + behavior_.default__ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Literal& Parameter::default_() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.default) + return has_default_() + ? *behavior_.default__ + : *reinterpret_cast< ::flyteidl::core::Literal*>(&::flyteidl::core::_Literal_default_instance_); +} +inline ::flyteidl::core::Literal* Parameter::mutable_default_() { + if (!has_default_()) { + clear_behavior(); + set_has_default_(); + behavior_.default__ = new ::flyteidl::core::Literal; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.default) + return behavior_.default__; +} + +// bool required = 3; +inline bool Parameter::has_required() const { + return behavior_case() == kRequired; +} +inline void Parameter::set_has_required() { + _oneof_case_[0] = kRequired; +} +inline void Parameter::clear_required() { + if (has_required()) { + behavior_.required_ = false; + clear_has_behavior(); + } +} +inline bool Parameter::required() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.required) + if (has_required()) { + return behavior_.required_; + } + return false; +} +inline void Parameter::set_required(bool value) { + if (!has_required()) { + clear_behavior(); + set_has_required(); + } + behavior_.required_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Parameter.required) +} + +inline bool Parameter::has_behavior() const { + return behavior_case() != BEHAVIOR_NOT_SET; +} +inline void Parameter::clear_has_behavior() { + _oneof_case_[0] = BEHAVIOR_NOT_SET; +} +inline Parameter::BehaviorCase Parameter::behavior_case() const { + return Parameter::BehaviorCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ParameterMap + +// map parameters = 1; +inline int ParameterMap::parameters_size() const { + return parameters_.size(); +} +inline void ParameterMap::clear_parameters() { + parameters_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >& +ParameterMap::parameters() const { + // @@protoc_insertion_point(field_map:flyteidl.core.ParameterMap.parameters) + return parameters_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >* +ParameterMap::mutable_parameters() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ParameterMap.parameters) + return parameters_.MutableMap(); +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2finterface_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc new file mode 100644 index 0000000000..8f0603fa05 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/literals.proto + +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/literals.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h new file mode 100644 index 0000000000..2a73454c0c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/literals.proto +#ifndef GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED + +#include "flyteidl/core/literals.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc new file mode 100644 index 0000000000..78ce55d37f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc @@ -0,0 +1,6284 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +#include "flyteidl/core/literals.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class PrimitiveDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::int64 integer_; + double float_value_; + ::google::protobuf::internal::ArenaStringPtr string_value_; + bool boolean_; + const ::google::protobuf::Timestamp* datetime_; + const ::google::protobuf::Duration* duration_; +} _Primitive_default_instance_; +class VoidDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Void_default_instance_; +class BlobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Blob_default_instance_; +class BlobMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BlobMetadata_default_instance_; +class BinaryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Binary_default_instance_; +class SchemaDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Schema_default_instance_; +class ScalarDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Primitive* primitive_; + const ::flyteidl::core::Blob* blob_; + const ::flyteidl::core::Binary* binary_; + const ::flyteidl::core::Schema* schema_; + const ::flyteidl::core::Void* none_type_; + const ::flyteidl::core::Error* error_; + const ::google::protobuf::Struct* generic_; +} _Scalar_default_instance_; +class LiteralDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Scalar* scalar_; + const ::flyteidl::core::LiteralCollection* collection_; + const ::flyteidl::core::LiteralMap* map_; +} _Literal_default_instance_; +class LiteralCollectionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiteralCollection_default_instance_; +class LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiteralMap_LiteralsEntry_DoNotUse_default_instance_; +class LiteralMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _LiteralMap_default_instance_; +class BindingDataCollectionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BindingDataCollection_default_instance_; +class BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BindingDataMap_BindingsEntry_DoNotUse_default_instance_; +class BindingDataMapDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BindingDataMap_default_instance_; +class BindingDataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Scalar* scalar_; + const ::flyteidl::core::BindingDataCollection* collection_; + const ::flyteidl::core::OutputReference* promise_; + const ::flyteidl::core::BindingDataMap* map_; +} _BindingData_default_instance_; +class BindingDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Binding_default_instance_; +class KeyValuePairDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _KeyValuePair_default_instance_; +class RetryStrategyDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RetryStrategy_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fliterals_2eproto { +void InitDefaultsPrimitiveImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + { + void* ptr = &::flyteidl::core::_Primitive_default_instance_; + new (ptr) ::flyteidl::core::Primitive(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Primitive::InitAsDefaultInstance(); +} + +void InitDefaultsPrimitive() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPrimitiveImpl); +} + +void InitDefaultsVoidImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_Void_default_instance_; + new (ptr) ::flyteidl::core::Void(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Void::InitAsDefaultInstance(); +} + +void InitDefaultsVoid() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsVoidImpl); +} + +void InitDefaultsBlobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlobMetadata(); + { + void* ptr = &::flyteidl::core::_Blob_default_instance_; + new (ptr) ::flyteidl::core::Blob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Blob::InitAsDefaultInstance(); +} + +void InitDefaultsBlob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobImpl); +} + +void InitDefaultsBlobMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsBlobType(); + { + void* ptr = &::flyteidl::core::_BlobMetadata_default_instance_; + new (ptr) ::flyteidl::core::BlobMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BlobMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsBlobMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobMetadataImpl); +} + +void InitDefaultsBinaryImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_Binary_default_instance_; + new (ptr) ::flyteidl::core::Binary(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Binary::InitAsDefaultInstance(); +} + +void InitDefaultsBinary() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBinaryImpl); +} + +void InitDefaultsSchemaImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType(); + { + void* ptr = &::flyteidl::core::_Schema_default_instance_; + new (ptr) ::flyteidl::core::Schema(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Schema::InitAsDefaultInstance(); +} + +void InitDefaultsSchema() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSchemaImpl); +} + +void InitDefaultsScalarImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsPrimitive(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlob(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinary(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsSchema(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsVoid(); + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsError(); + protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue(); + { + void* ptr = &::flyteidl::core::_Scalar_default_instance_; + new (ptr) ::flyteidl::core::Scalar(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Scalar::InitAsDefaultInstance(); +} + +void InitDefaultsScalar() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsScalarImpl); +} + +void InitDefaultsLiteralImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsScalar(); + { + void* ptr = &::flyteidl::core::_Literal_default_instance_; + new (ptr) ::flyteidl::core::Literal(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_LiteralCollection_default_instance_; + new (ptr) ::flyteidl::core::LiteralCollection(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_LiteralMap_LiteralsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse(); + } + { + void* ptr = &::flyteidl::core::_LiteralMap_default_instance_; + new (ptr) ::flyteidl::core::LiteralMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Literal::InitAsDefaultInstance(); + ::flyteidl::core::LiteralCollection::InitAsDefaultInstance(); + ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse::InitAsDefaultInstance(); + ::flyteidl::core::LiteralMap::InitAsDefaultInstance(); +} + +void InitDefaultsLiteral() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLiteralImpl); +} + +void InitDefaultsBindingDataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsScalar(); + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsOutputReference(); + { + void* ptr = &::flyteidl::core::_BindingDataCollection_default_instance_; + new (ptr) ::flyteidl::core::BindingDataCollection(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_BindingDataMap_BindingsEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse(); + } + { + void* ptr = &::flyteidl::core::_BindingDataMap_default_instance_; + new (ptr) ::flyteidl::core::BindingDataMap(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_BindingData_default_instance_; + new (ptr) ::flyteidl::core::BindingData(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BindingDataCollection::InitAsDefaultInstance(); + ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse::InitAsDefaultInstance(); + ::flyteidl::core::BindingDataMap::InitAsDefaultInstance(); + ::flyteidl::core::BindingData::InitAsDefaultInstance(); +} + +void InitDefaultsBindingData() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBindingDataImpl); +} + +void InitDefaultsBindingImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + { + void* ptr = &::flyteidl::core::_Binding_default_instance_; + new (ptr) ::flyteidl::core::Binding(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Binding::InitAsDefaultInstance(); +} + +void InitDefaultsBinding() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBindingImpl); +} + +void InitDefaultsKeyValuePairImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_KeyValuePair_default_instance_; + new (ptr) ::flyteidl::core::KeyValuePair(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::KeyValuePair::InitAsDefaultInstance(); +} + +void InitDefaultsKeyValuePair() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsKeyValuePairImpl); +} + +void InitDefaultsRetryStrategyImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_RetryStrategy_default_instance_; + new (ptr) ::flyteidl::core::RetryStrategy(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::RetryStrategy::InitAsDefaultInstance(); +} + +void InitDefaultsRetryStrategy() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRetryStrategyImpl); +} + +::google::protobuf::Metadata file_level_metadata[18]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Primitive, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Primitive, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, integer_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, float_value_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, string_value_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, boolean_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, datetime_), + offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, duration_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Primitive, value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Void, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Blob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Blob, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Blob, uri_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BlobMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BlobMetadata, type_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Binary, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Binary, value_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Binary, tag_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Schema, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Schema, uri_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Schema, type_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Scalar, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Scalar, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, primitive_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, blob_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, binary_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, schema_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, none_type_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, error_), + offsetof(::flyteidl::core::ScalarDefaultTypeInternal, generic_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Scalar, value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Literal, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Literal, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::LiteralDefaultTypeInternal, scalar_), + offsetof(::flyteidl::core::LiteralDefaultTypeInternal, collection_), + offsetof(::flyteidl::core::LiteralDefaultTypeInternal, map_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Literal, value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralCollection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralCollection, literals_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralMap, literals_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataCollection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataCollection, bindings_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingDataMap, bindings_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingData, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingData, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, scalar_), + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, collection_), + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, promise_), + offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, map_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BindingData, value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Binding, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Binding, var_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Binding, binding_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::KeyValuePair, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::KeyValuePair, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::KeyValuePair, value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::RetryStrategy, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::RetryStrategy, retries_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Primitive)}, + { 12, -1, sizeof(::flyteidl::core::Void)}, + { 17, -1, sizeof(::flyteidl::core::Blob)}, + { 24, -1, sizeof(::flyteidl::core::BlobMetadata)}, + { 30, -1, sizeof(::flyteidl::core::Binary)}, + { 37, -1, sizeof(::flyteidl::core::Schema)}, + { 44, -1, sizeof(::flyteidl::core::Scalar)}, + { 57, -1, sizeof(::flyteidl::core::Literal)}, + { 66, -1, sizeof(::flyteidl::core::LiteralCollection)}, + { 72, 79, sizeof(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse)}, + { 81, -1, sizeof(::flyteidl::core::LiteralMap)}, + { 87, -1, sizeof(::flyteidl::core::BindingDataCollection)}, + { 93, 100, sizeof(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse)}, + { 102, -1, sizeof(::flyteidl::core::BindingDataMap)}, + { 108, -1, sizeof(::flyteidl::core::BindingData)}, + { 118, -1, sizeof(::flyteidl::core::Binding)}, + { 125, -1, sizeof(::flyteidl::core::KeyValuePair)}, + { 132, -1, sizeof(::flyteidl::core::RetryStrategy)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Primitive_default_instance_), + reinterpret_cast(&::flyteidl::core::_Void_default_instance_), + reinterpret_cast(&::flyteidl::core::_Blob_default_instance_), + reinterpret_cast(&::flyteidl::core::_BlobMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_Binary_default_instance_), + reinterpret_cast(&::flyteidl::core::_Schema_default_instance_), + reinterpret_cast(&::flyteidl::core::_Scalar_default_instance_), + reinterpret_cast(&::flyteidl::core::_Literal_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralCollection_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralMap_LiteralsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralMap_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingDataCollection_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingDataMap_BindingsEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingDataMap_default_instance_), + reinterpret_cast(&::flyteidl::core::_BindingData_default_instance_), + reinterpret_cast(&::flyteidl::core::_Binding_default_instance_), + reinterpret_cast(&::flyteidl::core::_KeyValuePair_default_instance_), + reinterpret_cast(&::flyteidl::core::_RetryStrategy_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/literals.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 18); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\034flyteidl/core/literals.proto\022\rflyteidl" + ".core\032\037google/protobuf/timestamp.proto\032\036" + "google/protobuf/duration.proto\032\034google/p" + "rotobuf/struct.proto\032\031flyteidl/core/type" + "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + "ype\"\264\002\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030.flyt" + "eidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132\023.fl" + "yteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025.fly" + "teidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132\025.fl" + "yteidl.core.SchemaH\000\022(\n\tnone_type\030\005 \001(\0132" + "\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(\0132\024." + "flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001(\0132\027" + ".google.protobuf.StructH\000B\007\n\005value\"\235\001\n\007L" + "iteral\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.core.S" + "calarH\000\0226\n\ncollection\030\002 \001(\0132 .flyteidl.c" + "ore.LiteralCollectionH\000\022(\n\003map\030\003 \001(\0132\031.f" + "lyteidl.core.LiteralMapH\000B\007\n\005value\"=\n\021Li" + "teralCollection\022(\n\010literals\030\001 \003(\0132\026.flyt" + "eidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lite" + "rals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.Li" + "teralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001(" + "\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal" + ":\0028\001\"E\n\025BindingDataCollection\022,\n\010binding" + "s\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n\016" + "BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyte" + "idl.core.BindingDataMap.BindingsEntry\032K\n" + "\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" + "(\0132\032.flyteidl.core.BindingData:\0028\001\"\334\001\n\013B" + "indingData\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.co" + "re.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$.flytei" + "dl.core.BindingDataCollectionH\000\0221\n\007promi" + "se\030\003 \001(\0132\036.flyteidl.core.OutputReference" + "H\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.BindingD" + "ataMapH\000B\007\n\005value\"C\n\007Binding\022\013\n\003var\030\001 \001(" + "\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.core.Bindi" + "ngData\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007retries\030\005" + " \001(\rB2Z0github.com/lyft/flyteidl/gen/pb-" + "go/flyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1944); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/literals.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fliterals_2eproto +namespace flyteidl { +namespace core { + +// =================================================================== + +void Primitive::InitAsDefaultInstance() { + ::flyteidl::core::_Primitive_default_instance_.integer_ = GOOGLE_LONGLONG(0); + ::flyteidl::core::_Primitive_default_instance_.float_value_ = 0; + ::flyteidl::core::_Primitive_default_instance_.string_value_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::core::_Primitive_default_instance_.boolean_ = false; + ::flyteidl::core::_Primitive_default_instance_.datetime_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::core::_Primitive_default_instance_.duration_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); +} +void Primitive::set_allocated_datetime(::google::protobuf::Timestamp* datetime) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (datetime) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(datetime)->GetArena(); + if (message_arena != submessage_arena) { + datetime = ::google::protobuf::internal::GetOwnedMessage( + message_arena, datetime, submessage_arena); + } + set_has_datetime(); + value_.datetime_ = datetime; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.datetime) +} +void Primitive::clear_datetime() { + if (has_datetime()) { + delete value_.datetime_; + clear_has_value(); + } +} +void Primitive::set_allocated_duration(::google::protobuf::Duration* duration) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (duration) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(duration)->GetArena(); + if (message_arena != submessage_arena) { + duration = ::google::protobuf::internal::GetOwnedMessage( + message_arena, duration, submessage_arena); + } + set_has_duration(); + value_.duration_ = duration; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.duration) +} +void Primitive::clear_duration() { + if (has_duration()) { + delete value_.duration_; + clear_has_value(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Primitive::kIntegerFieldNumber; +const int Primitive::kFloatValueFieldNumber; +const int Primitive::kStringValueFieldNumber; +const int Primitive::kBooleanFieldNumber; +const int Primitive::kDatetimeFieldNumber; +const int Primitive::kDurationFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Primitive::Primitive() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsPrimitive(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Primitive) +} +Primitive::Primitive(const Primitive& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kInteger: { + set_integer(from.integer()); + break; + } + case kFloatValue: { + set_float_value(from.float_value()); + break; + } + case kStringValue: { + set_string_value(from.string_value()); + break; + } + case kBoolean: { + set_boolean(from.boolean()); + break; + } + case kDatetime: { + mutable_datetime()->::google::protobuf::Timestamp::MergeFrom(from.datetime()); + break; + } + case kDuration: { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Primitive) +} + +void Primitive::SharedCtor() { + clear_has_value(); + _cached_size_ = 0; +} + +Primitive::~Primitive() { + // @@protoc_insertion_point(destructor:flyteidl.core.Primitive) + SharedDtor(); +} + +void Primitive::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void Primitive::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Primitive::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Primitive& Primitive::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsPrimitive(); + return *internal_default_instance(); +} + +Primitive* Primitive::New(::google::protobuf::Arena* arena) const { + Primitive* n = new Primitive; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Primitive::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Primitive) + switch (value_case()) { + case kInteger: { + // No need to clear + break; + } + case kFloatValue: { + // No need to clear + break; + } + case kStringValue: { + value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kBoolean: { + // No need to clear + break; + } + case kDatetime: { + delete value_.datetime_; + break; + } + case kDuration: { + delete value_.duration_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Primitive::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Primitive) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +bool Primitive::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Primitive) + 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)) { + // int64 integer = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + clear_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &value_.integer_))); + set_has_integer(); + } else { + goto handle_unusual; + } + break; + } + + // double float_value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) { + clear_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + input, &value_.float_value_))); + set_has_float_value(); + } else { + goto handle_unusual; + } + break; + } + + // string string_value = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_string_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->string_value().data(), static_cast(this->string_value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Primitive.string_value")); + } else { + goto handle_unusual; + } + break; + } + + // bool boolean = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + clear_value(); + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &value_.boolean_))); + set_has_boolean(); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp datetime = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_datetime())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration duration = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_duration())); + } 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.Primitive) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Primitive) + return false; +#undef DO_ +} + +void Primitive::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Primitive) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 integer = 1; + if (has_integer()) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->integer(), output); + } + + // double float_value = 2; + if (has_float_value()) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->float_value(), output); + } + + // string string_value = 3; + if (has_string_value()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->string_value().data(), static_cast(this->string_value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Primitive.string_value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->string_value(), output); + } + + // bool boolean = 4; + if (has_boolean()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->boolean(), output); + } + + // .google.protobuf.Timestamp datetime = 5; + if (has_datetime()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *value_.datetime_, output); + } + + // .google.protobuf.Duration duration = 6; + if (has_duration()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *value_.duration_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Primitive) +} + +::google::protobuf::uint8* Primitive::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Primitive) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 integer = 1; + if (has_integer()) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->integer(), target); + } + + // double float_value = 2; + if (has_float_value()) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->float_value(), target); + } + + // string string_value = 3; + if (has_string_value()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->string_value().data(), static_cast(this->string_value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Primitive.string_value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->string_value(), target); + } + + // bool boolean = 4; + if (has_boolean()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->boolean(), target); + } + + // .google.protobuf.Timestamp datetime = 5; + if (has_datetime()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *value_.datetime_, deterministic, target); + } + + // .google.protobuf.Duration duration = 6; + if (has_duration()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *value_.duration_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Primitive) + return target; +} + +size_t Primitive::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Primitive) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (value_case()) { + // int64 integer = 1; + case kInteger: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->integer()); + break; + } + // double float_value = 2; + case kFloatValue: { + total_size += 1 + 8; + break; + } + // string string_value = 3; + case kStringValue: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->string_value()); + break; + } + // bool boolean = 4; + case kBoolean: { + total_size += 1 + 1; + break; + } + // .google.protobuf.Timestamp datetime = 5; + case kDatetime: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.datetime_); + break; + } + // .google.protobuf.Duration duration = 6; + case kDuration: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.duration_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Primitive::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Primitive) + GOOGLE_DCHECK_NE(&from, this); + const Primitive* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Primitive) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Primitive) + MergeFrom(*source); + } +} + +void Primitive::MergeFrom(const Primitive& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Primitive) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kInteger: { + set_integer(from.integer()); + break; + } + case kFloatValue: { + set_float_value(from.float_value()); + break; + } + case kStringValue: { + set_string_value(from.string_value()); + break; + } + case kBoolean: { + set_boolean(from.boolean()); + break; + } + case kDatetime: { + mutable_datetime()->::google::protobuf::Timestamp::MergeFrom(from.datetime()); + break; + } + case kDuration: { + mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void Primitive::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Primitive) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Primitive::CopyFrom(const Primitive& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Primitive) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Primitive::IsInitialized() const { + return true; +} + +void Primitive::Swap(Primitive* other) { + if (other == this) return; + InternalSwap(other); +} +void Primitive::InternalSwap(Primitive* other) { + using std::swap; + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Primitive::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Void::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Void::Void() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsVoid(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Void) +} +Void::Void(const Void& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Void) +} + +void Void::SharedCtor() { + _cached_size_ = 0; +} + +Void::~Void() { + // @@protoc_insertion_point(destructor:flyteidl.core.Void) + SharedDtor(); +} + +void Void::SharedDtor() { +} + +void Void::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Void::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Void& Void::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsVoid(); + return *internal_default_instance(); +} + +Void* Void::New(::google::protobuf::Arena* arena) const { + Void* n = new Void; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Void::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Void) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool Void::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Void) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.Void) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Void) + return false; +#undef DO_ +} + +void Void::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Void) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Void) +} + +::google::protobuf::uint8* Void::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Void) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Void) + return target; +} + +size_t Void::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Void) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Void::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Void) + GOOGLE_DCHECK_NE(&from, this); + const Void* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Void) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Void) + MergeFrom(*source); + } +} + +void Void::MergeFrom(const Void& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Void) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void Void::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Void) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Void::CopyFrom(const Void& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Void) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Void::IsInitialized() const { + return true; +} + +void Void::Swap(Void* other) { + if (other == this) return; + InternalSwap(other); +} +void Void::InternalSwap(Void* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Void::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Blob::InitAsDefaultInstance() { + ::flyteidl::core::_Blob_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::BlobMetadata*>( + ::flyteidl::core::BlobMetadata::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Blob::kMetadataFieldNumber; +const int Blob::kUriFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Blob::Blob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Blob) +} +Blob::Blob(const Blob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::BlobMetadata(*from.metadata_); + } else { + metadata_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Blob) +} + +void Blob::SharedCtor() { + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_ = NULL; + _cached_size_ = 0; +} + +Blob::~Blob() { + // @@protoc_insertion_point(destructor:flyteidl.core.Blob) + SharedDtor(); +} + +void Blob::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete metadata_; +} + +void Blob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Blob::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Blob& Blob::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlob(); + return *internal_default_instance(); +} + +Blob* Blob::New(::google::protobuf::Arena* arena) const { + Blob* n = new Blob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Blob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Blob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; + _internal_metadata_.Clear(); +} + +bool Blob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Blob) + 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)) { + // .flyteidl.core.BlobMetadata metadata = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // string uri = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Blob.uri")); + } 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.Blob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Blob) + return false; +#undef DO_ +} + +void Blob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Blob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobMetadata metadata = 1; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->metadata_, output); + } + + // string uri = 3; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Blob.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->uri(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Blob) +} + +::google::protobuf::uint8* Blob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Blob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobMetadata metadata = 1; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->metadata_, deterministic, target); + } + + // string uri = 3; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Blob.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->uri(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Blob) + return target; +} + +size_t Blob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Blob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string uri = 3; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // .flyteidl.core.BlobMetadata metadata = 1; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->metadata_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Blob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Blob) + GOOGLE_DCHECK_NE(&from, this); + const Blob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Blob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Blob) + MergeFrom(*source); + } +} + +void Blob::MergeFrom(const Blob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Blob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::BlobMetadata::MergeFrom(from.metadata()); + } +} + +void Blob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Blob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Blob::CopyFrom(const Blob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Blob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Blob::IsInitialized() const { + return true; +} + +void Blob::Swap(Blob* other) { + if (other == this) return; + InternalSwap(other); +} +void Blob::InternalSwap(Blob* other) { + using std::swap; + uri_.Swap(&other->uri_); + swap(metadata_, other->metadata_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Blob::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BlobMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_BlobMetadata_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::BlobType*>( + ::flyteidl::core::BlobType::internal_default_instance()); +} +void BlobMetadata::clear_type() { + if (GetArenaNoVirtual() == NULL && type_ != NULL) { + delete type_; + } + type_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobMetadata::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobMetadata::BlobMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlobMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BlobMetadata) +} +BlobMetadata::BlobMetadata(const BlobMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_type()) { + type_ = new ::flyteidl::core::BlobType(*from.type_); + } else { + type_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BlobMetadata) +} + +void BlobMetadata::SharedCtor() { + type_ = NULL; + _cached_size_ = 0; +} + +BlobMetadata::~BlobMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.BlobMetadata) + SharedDtor(); +} + +void BlobMetadata::SharedDtor() { + if (this != internal_default_instance()) delete type_; +} + +void BlobMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlobMetadata::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BlobMetadata& BlobMetadata::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlobMetadata(); + return *internal_default_instance(); +} + +BlobMetadata* BlobMetadata::New(::google::protobuf::Arena* arena) const { + BlobMetadata* n = new BlobMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BlobMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BlobMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && type_ != NULL) { + delete type_; + } + type_ = NULL; + _internal_metadata_.Clear(); +} + +bool BlobMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BlobMetadata) + 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)) { + // .flyteidl.core.BlobType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } 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.BlobMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BlobMetadata) + return false; +#undef DO_ +} + +void BlobMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BlobMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobType type = 1; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->type_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BlobMetadata) +} + +::google::protobuf::uint8* BlobMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BlobMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BlobType type = 1; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->type_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BlobMetadata) + return target; +} + +size_t BlobMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BlobMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.BlobType type = 1; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BlobMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BlobMetadata) + GOOGLE_DCHECK_NE(&from, this); + const BlobMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BlobMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BlobMetadata) + MergeFrom(*source); + } +} + +void BlobMetadata::MergeFrom(const BlobMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BlobMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_type()) { + mutable_type()->::flyteidl::core::BlobType::MergeFrom(from.type()); + } +} + +void BlobMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BlobMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobMetadata::CopyFrom(const BlobMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BlobMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobMetadata::IsInitialized() const { + return true; +} + +void BlobMetadata::Swap(BlobMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobMetadata::InternalSwap(BlobMetadata* other) { + using std::swap; + swap(type_, other->type_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlobMetadata::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Binary::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Binary::kValueFieldNumber; +const int Binary::kTagFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Binary::Binary() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinary(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Binary) +} +Binary::Binary(const Binary& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag().size() > 0) { + tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Binary) +} + +void Binary::SharedCtor() { + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +Binary::~Binary() { + // @@protoc_insertion_point(destructor:flyteidl.core.Binary) + SharedDtor(); +} + +void Binary::SharedDtor() { + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Binary::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Binary::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Binary& Binary::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinary(); + return *internal_default_instance(); +} + +Binary* Binary::New(::google::protobuf::Arena* arena) const { + Binary* n = new Binary; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Binary::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Binary) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool Binary::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Binary) + 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)) { + // bytes value = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_value())); + } else { + goto handle_unusual; + } + break; + } + + // string tag = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_tag())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Binary.tag")); + } 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.Binary) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Binary) + return false; +#undef DO_ +} + +void Binary::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Binary) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes value = 1; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( + 1, this->value(), output); + } + + // string tag = 2; + if (this->tag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binary.tag"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->tag(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Binary) +} + +::google::protobuf::uint8* Binary::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Binary) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bytes value = 1; + if (this->value().size() > 0) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->value(), target); + } + + // string tag = 2; + if (this->tag().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tag().data(), static_cast(this->tag().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binary.tag"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->tag(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Binary) + return target; +} + +size_t Binary::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Binary) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // bytes value = 1; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->value()); + } + + // string tag = 2; + if (this->tag().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->tag()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Binary::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Binary) + GOOGLE_DCHECK_NE(&from, this); + const Binary* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Binary) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Binary) + MergeFrom(*source); + } +} + +void Binary::MergeFrom(const Binary& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Binary) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.tag().size() > 0) { + + tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); + } +} + +void Binary::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Binary) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Binary::CopyFrom(const Binary& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Binary) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Binary::IsInitialized() const { + return true; +} + +void Binary::Swap(Binary* other) { + if (other == this) return; + InternalSwap(other); +} +void Binary::InternalSwap(Binary* other) { + using std::swap; + value_.Swap(&other->value_); + tag_.Swap(&other->tag_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Binary::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Schema::InitAsDefaultInstance() { + ::flyteidl::core::_Schema_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::SchemaType*>( + ::flyteidl::core::SchemaType::internal_default_instance()); +} +void Schema::clear_type() { + if (GetArenaNoVirtual() == NULL && type_ != NULL) { + delete type_; + } + type_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Schema::kUriFieldNumber; +const int Schema::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Schema::Schema() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsSchema(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Schema) +} +Schema::Schema(const Schema& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.uri().size() > 0) { + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_type()) { + type_ = new ::flyteidl::core::SchemaType(*from.type_); + } else { + type_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Schema) +} + +void Schema::SharedCtor() { + uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = NULL; + _cached_size_ = 0; +} + +Schema::~Schema() { + // @@protoc_insertion_point(destructor:flyteidl.core.Schema) + SharedDtor(); +} + +void Schema::SharedDtor() { + uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete type_; +} + +void Schema::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Schema::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Schema& Schema::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsSchema(); + return *internal_default_instance(); +} + +Schema* Schema::New(::google::protobuf::Arena* arena) const { + Schema* n = new Schema; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Schema::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Schema) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && type_ != NULL) { + delete type_; + } + type_ = NULL; + _internal_metadata_.Clear(); +} + +bool Schema::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Schema) + 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 uri = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Schema.uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SchemaType type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_type())); + } 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.Schema) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Schema) + return false; +#undef DO_ +} + +void Schema::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Schema) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Schema.uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->uri(), output); + } + + // .flyteidl.core.SchemaType type = 3; + if (this->has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->type_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Schema) +} + +::google::protobuf::uint8* Schema::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Schema) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string uri = 1; + if (this->uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->uri().data(), static_cast(this->uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Schema.uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->uri(), target); + } + + // .flyteidl.core.SchemaType type = 3; + if (this->has_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->type_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Schema) + return target; +} + +size_t Schema::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Schema) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string uri = 1; + if (this->uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->uri()); + } + + // .flyteidl.core.SchemaType type = 3; + if (this->has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->type_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Schema::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Schema) + GOOGLE_DCHECK_NE(&from, this); + const Schema* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Schema) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Schema) + MergeFrom(*source); + } +} + +void Schema::MergeFrom(const Schema& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Schema) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.uri().size() > 0) { + + uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); + } + if (from.has_type()) { + mutable_type()->::flyteidl::core::SchemaType::MergeFrom(from.type()); + } +} + +void Schema::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Schema) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Schema::CopyFrom(const Schema& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Schema) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Schema::IsInitialized() const { + return true; +} + +void Schema::Swap(Schema* other) { + if (other == this) return; + InternalSwap(other); +} +void Schema::InternalSwap(Schema* other) { + using std::swap; + uri_.Swap(&other->uri_); + swap(type_, other->type_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Schema::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Scalar::InitAsDefaultInstance() { + ::flyteidl::core::_Scalar_default_instance_.primitive_ = const_cast< ::flyteidl::core::Primitive*>( + ::flyteidl::core::Primitive::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.blob_ = const_cast< ::flyteidl::core::Blob*>( + ::flyteidl::core::Blob::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.binary_ = const_cast< ::flyteidl::core::Binary*>( + ::flyteidl::core::Binary::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.schema_ = const_cast< ::flyteidl::core::Schema*>( + ::flyteidl::core::Schema::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.none_type_ = const_cast< ::flyteidl::core::Void*>( + ::flyteidl::core::Void::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.error_ = const_cast< ::flyteidl::core::Error*>( + ::flyteidl::core::Error::internal_default_instance()); + ::flyteidl::core::_Scalar_default_instance_.generic_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +void Scalar::set_allocated_primitive(::flyteidl::core::Primitive* primitive) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (primitive) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + primitive = ::google::protobuf::internal::GetOwnedMessage( + message_arena, primitive, submessage_arena); + } + set_has_primitive(); + value_.primitive_ = primitive; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.primitive) +} +void Scalar::set_allocated_blob(::flyteidl::core::Blob* blob) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (blob) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + blob = ::google::protobuf::internal::GetOwnedMessage( + message_arena, blob, submessage_arena); + } + set_has_blob(); + value_.blob_ = blob; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.blob) +} +void Scalar::set_allocated_binary(::flyteidl::core::Binary* binary) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (binary) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + binary = ::google::protobuf::internal::GetOwnedMessage( + message_arena, binary, submessage_arena); + } + set_has_binary(); + value_.binary_ = binary; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.binary) +} +void Scalar::set_allocated_schema(::flyteidl::core::Schema* schema) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (schema) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + schema = ::google::protobuf::internal::GetOwnedMessage( + message_arena, schema, submessage_arena); + } + set_has_schema(); + value_.schema_ = schema; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.schema) +} +void Scalar::set_allocated_none_type(::flyteidl::core::Void* none_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (none_type) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + none_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, none_type, submessage_arena); + } + set_has_none_type(); + value_.none_type_ = none_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.none_type) +} +void Scalar::set_allocated_error(::flyteidl::core::Error* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + value_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.error) +} +void Scalar::clear_error() { + if (has_error()) { + delete value_.error_; + clear_has_value(); + } +} +void Scalar::set_allocated_generic(::google::protobuf::Struct* generic) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (generic) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(generic)->GetArena(); + if (message_arena != submessage_arena) { + generic = ::google::protobuf::internal::GetOwnedMessage( + message_arena, generic, submessage_arena); + } + set_has_generic(); + value_.generic_ = generic; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.generic) +} +void Scalar::clear_generic() { + if (has_generic()) { + delete value_.generic_; + clear_has_value(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Scalar::kPrimitiveFieldNumber; +const int Scalar::kBlobFieldNumber; +const int Scalar::kBinaryFieldNumber; +const int Scalar::kSchemaFieldNumber; +const int Scalar::kNoneTypeFieldNumber; +const int Scalar::kErrorFieldNumber; +const int Scalar::kGenericFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Scalar::Scalar() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsScalar(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Scalar) +} +Scalar::Scalar(const Scalar& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::Blob::MergeFrom(from.blob()); + break; + } + case kBinary: { + mutable_binary()->::flyteidl::core::Binary::MergeFrom(from.binary()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::Schema::MergeFrom(from.schema()); + break; + } + case kNoneType: { + mutable_none_type()->::flyteidl::core::Void::MergeFrom(from.none_type()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case kGeneric: { + mutable_generic()->::google::protobuf::Struct::MergeFrom(from.generic()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Scalar) +} + +void Scalar::SharedCtor() { + clear_has_value(); + _cached_size_ = 0; +} + +Scalar::~Scalar() { + // @@protoc_insertion_point(destructor:flyteidl.core.Scalar) + SharedDtor(); +} + +void Scalar::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void Scalar::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Scalar::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Scalar& Scalar::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsScalar(); + return *internal_default_instance(); +} + +Scalar* Scalar::New(::google::protobuf::Arena* arena) const { + Scalar* n = new Scalar; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Scalar::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Scalar) + switch (value_case()) { + case kPrimitive: { + delete value_.primitive_; + break; + } + case kBlob: { + delete value_.blob_; + break; + } + case kBinary: { + delete value_.binary_; + break; + } + case kSchema: { + delete value_.schema_; + break; + } + case kNoneType: { + delete value_.none_type_; + break; + } + case kError: { + delete value_.error_; + break; + } + case kGeneric: { + delete value_.generic_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Scalar::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Scalar) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +bool Scalar::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Scalar) + 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)) { + // .flyteidl.core.Primitive primitive = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_primitive())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Blob blob = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_blob())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Binary binary = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_binary())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Schema schema = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Void none_type = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_none_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Error error = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct generic = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_generic())); + } 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.Scalar) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Scalar) + return false; +#undef DO_ +} + +void Scalar::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Scalar) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1; + if (has_primitive()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *value_.primitive_, output); + } + + // .flyteidl.core.Blob blob = 2; + if (has_blob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *value_.blob_, output); + } + + // .flyteidl.core.Binary binary = 3; + if (has_binary()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *value_.binary_, output); + } + + // .flyteidl.core.Schema schema = 4; + if (has_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *value_.schema_, output); + } + + // .flyteidl.core.Void none_type = 5; + if (has_none_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *value_.none_type_, output); + } + + // .flyteidl.core.Error error = 6; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *value_.error_, output); + } + + // .google.protobuf.Struct generic = 7; + if (has_generic()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *value_.generic_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Scalar) +} + +::google::protobuf::uint8* Scalar::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Scalar) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Primitive primitive = 1; + if (has_primitive()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *value_.primitive_, deterministic, target); + } + + // .flyteidl.core.Blob blob = 2; + if (has_blob()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *value_.blob_, deterministic, target); + } + + // .flyteidl.core.Binary binary = 3; + if (has_binary()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *value_.binary_, deterministic, target); + } + + // .flyteidl.core.Schema schema = 4; + if (has_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *value_.schema_, deterministic, target); + } + + // .flyteidl.core.Void none_type = 5; + if (has_none_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *value_.none_type_, deterministic, target); + } + + // .flyteidl.core.Error error = 6; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *value_.error_, deterministic, target); + } + + // .google.protobuf.Struct generic = 7; + if (has_generic()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *value_.generic_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Scalar) + return target; +} + +size_t Scalar::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Scalar) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (value_case()) { + // .flyteidl.core.Primitive primitive = 1; + case kPrimitive: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.primitive_); + break; + } + // .flyteidl.core.Blob blob = 2; + case kBlob: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.blob_); + break; + } + // .flyteidl.core.Binary binary = 3; + case kBinary: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.binary_); + break; + } + // .flyteidl.core.Schema schema = 4; + case kSchema: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.schema_); + break; + } + // .flyteidl.core.Void none_type = 5; + case kNoneType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.none_type_); + break; + } + // .flyteidl.core.Error error = 6; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.error_); + break; + } + // .google.protobuf.Struct generic = 7; + case kGeneric: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.generic_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Scalar::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Scalar) + GOOGLE_DCHECK_NE(&from, this); + const Scalar* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Scalar) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Scalar) + MergeFrom(*source); + } +} + +void Scalar::MergeFrom(const Scalar& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Scalar) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kPrimitive: { + mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::Blob::MergeFrom(from.blob()); + break; + } + case kBinary: { + mutable_binary()->::flyteidl::core::Binary::MergeFrom(from.binary()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::Schema::MergeFrom(from.schema()); + break; + } + case kNoneType: { + mutable_none_type()->::flyteidl::core::Void::MergeFrom(from.none_type()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case kGeneric: { + mutable_generic()->::google::protobuf::Struct::MergeFrom(from.generic()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void Scalar::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Scalar) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Scalar::CopyFrom(const Scalar& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Scalar) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Scalar::IsInitialized() const { + return true; +} + +void Scalar::Swap(Scalar* other) { + if (other == this) return; + InternalSwap(other); +} +void Scalar::InternalSwap(Scalar* other) { + using std::swap; + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Scalar::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Literal::InitAsDefaultInstance() { + ::flyteidl::core::_Literal_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( + ::flyteidl::core::Scalar::internal_default_instance()); + ::flyteidl::core::_Literal_default_instance_.collection_ = const_cast< ::flyteidl::core::LiteralCollection*>( + ::flyteidl::core::LiteralCollection::internal_default_instance()); + ::flyteidl::core::_Literal_default_instance_.map_ = const_cast< ::flyteidl::core::LiteralMap*>( + ::flyteidl::core::LiteralMap::internal_default_instance()); +} +void Literal::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (scalar) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + scalar = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scalar, submessage_arena); + } + set_has_scalar(); + value_.scalar_ = scalar; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.scalar) +} +void Literal::set_allocated_collection(::flyteidl::core::LiteralCollection* collection) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (collection) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + collection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, collection, submessage_arena); + } + set_has_collection(); + value_.collection_ = collection; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.collection) +} +void Literal::set_allocated_map(::flyteidl::core::LiteralMap* map) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (map) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + map = ::google::protobuf::internal::GetOwnedMessage( + message_arena, map, submessage_arena); + } + set_has_map(); + value_.map_ = map; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.map) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Literal::kScalarFieldNumber; +const int Literal::kCollectionFieldNumber; +const int Literal::kMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Literal::Literal() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Literal) +} +Literal::Literal(const Literal& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::LiteralCollection::MergeFrom(from.collection()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::LiteralMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Literal) +} + +void Literal::SharedCtor() { + clear_has_value(); + _cached_size_ = 0; +} + +Literal::~Literal() { + // @@protoc_insertion_point(destructor:flyteidl.core.Literal) + SharedDtor(); +} + +void Literal::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void Literal::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Literal::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Literal& Literal::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + return *internal_default_instance(); +} + +Literal* Literal::New(::google::protobuf::Arena* arena) const { + Literal* n = new Literal; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Literal::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Literal) + switch (value_case()) { + case kScalar: { + delete value_.scalar_; + break; + } + case kCollection: { + delete value_.collection_; + break; + } + case kMap: { + delete value_.map_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void Literal::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Literal) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +bool Literal::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Literal) + 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)) { + // .flyteidl.core.Scalar scalar = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scalar())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralCollection collection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_collection())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralMap map = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_map())); + } 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.Literal) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Literal) + return false; +#undef DO_ +} + +void Literal::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Literal) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *value_.scalar_, output); + } + + // .flyteidl.core.LiteralCollection collection = 2; + if (has_collection()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *value_.collection_, output); + } + + // .flyteidl.core.LiteralMap map = 3; + if (has_map()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *value_.map_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Literal) +} + +::google::protobuf::uint8* Literal::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Literal) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *value_.scalar_, deterministic, target); + } + + // .flyteidl.core.LiteralCollection collection = 2; + if (has_collection()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *value_.collection_, deterministic, target); + } + + // .flyteidl.core.LiteralMap map = 3; + if (has_map()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *value_.map_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Literal) + return target; +} + +size_t Literal::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Literal) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (value_case()) { + // .flyteidl.core.Scalar scalar = 1; + case kScalar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.scalar_); + break; + } + // .flyteidl.core.LiteralCollection collection = 2; + case kCollection: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.collection_); + break; + } + // .flyteidl.core.LiteralMap map = 3; + case kMap: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.map_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Literal::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Literal) + GOOGLE_DCHECK_NE(&from, this); + const Literal* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Literal) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Literal) + MergeFrom(*source); + } +} + +void Literal::MergeFrom(const Literal& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Literal) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::LiteralCollection::MergeFrom(from.collection()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::LiteralMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void Literal::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Literal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Literal::CopyFrom(const Literal& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Literal) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Literal::IsInitialized() const { + return true; +} + +void Literal::Swap(Literal* other) { + if (other == this) return; + InternalSwap(other); +} +void Literal::InternalSwap(Literal* other) { + using std::swap; + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Literal::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiteralCollection::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralCollection::kLiteralsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralCollection::LiteralCollection() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.LiteralCollection) +} +LiteralCollection::LiteralCollection(const LiteralCollection& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + literals_(from.literals_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralCollection) +} + +void LiteralCollection::SharedCtor() { + _cached_size_ = 0; +} + +LiteralCollection::~LiteralCollection() { + // @@protoc_insertion_point(destructor:flyteidl.core.LiteralCollection) + SharedDtor(); +} + +void LiteralCollection::SharedDtor() { +} + +void LiteralCollection::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LiteralCollection::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiteralCollection& LiteralCollection::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + return *internal_default_instance(); +} + +LiteralCollection* LiteralCollection::New(::google::protobuf::Arena* arena) const { + LiteralCollection* n = new LiteralCollection; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LiteralCollection::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + literals_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiteralCollection::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.LiteralCollection) + 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.Literal literals = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_literals())); + } 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.LiteralCollection) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralCollection) + return false; +#undef DO_ +} + +void LiteralCollection::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Literal literals = 1; + for (unsigned int i = 0, + n = static_cast(this->literals_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->literals(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralCollection) +} + +::google::protobuf::uint8* LiteralCollection::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Literal literals = 1; + for (unsigned int i = 0, + n = static_cast(this->literals_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->literals(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.LiteralCollection) + return target; +} + +size_t LiteralCollection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralCollection) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.Literal literals = 1; + { + unsigned int count = static_cast(this->literals_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->literals(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LiteralCollection::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralCollection) + GOOGLE_DCHECK_NE(&from, this); + const LiteralCollection* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralCollection) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralCollection) + MergeFrom(*source); + } +} + +void LiteralCollection::MergeFrom(const LiteralCollection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralCollection) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + literals_.MergeFrom(from.literals_); +} + +void LiteralCollection::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralCollection::CopyFrom(const LiteralCollection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralCollection::IsInitialized() const { + return true; +} + +void LiteralCollection::Swap(LiteralCollection* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralCollection::InternalSwap(LiteralCollection* other) { + using std::swap; + literals_.InternalSwap(&other->literals_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LiteralCollection::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +LiteralMap_LiteralsEntry_DoNotUse::LiteralMap_LiteralsEntry_DoNotUse() {} +LiteralMap_LiteralsEntry_DoNotUse::LiteralMap_LiteralsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void LiteralMap_LiteralsEntry_DoNotUse::MergeFrom(const LiteralMap_LiteralsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata LiteralMap_LiteralsEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[9]; +} +void LiteralMap_LiteralsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void LiteralMap::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralMap::kLiteralsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralMap::LiteralMap() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.LiteralMap) +} +LiteralMap::LiteralMap(const LiteralMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + literals_.MergeFrom(from.literals_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralMap) +} + +void LiteralMap::SharedCtor() { + _cached_size_ = 0; +} + +LiteralMap::~LiteralMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.LiteralMap) + SharedDtor(); +} + +void LiteralMap::SharedDtor() { +} + +void LiteralMap::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LiteralMap::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiteralMap& LiteralMap::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteral(); + return *internal_default_instance(); +} + +LiteralMap* LiteralMap::New(::google::protobuf::Arena* arena) const { + LiteralMap* n = new LiteralMap; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LiteralMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + literals_.Clear(); + _internal_metadata_.Clear(); +} + +bool LiteralMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.LiteralMap) + 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)) { + // map literals = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + LiteralMap_LiteralsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + LiteralMap_LiteralsEntry_DoNotUse, + ::std::string, ::flyteidl::core::Literal, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal > > parser(&literals_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.LiteralMap.LiteralsEntry.key")); + } 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.LiteralMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralMap) + return false; +#undef DO_ +} + +void LiteralMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map literals = 1; + if (!this->literals().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.LiteralMap.LiteralsEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->literals().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->literals().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(literals_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it) { + entry.reset(literals_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralMap) +} + +::google::protobuf::uint8* LiteralMap::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map literals = 1; + if (!this->literals().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.LiteralMap.LiteralsEntry.key"); + } + }; + + if (deterministic && + this->literals().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->literals().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(literals_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it) { + entry.reset(literals_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.LiteralMap) + return target; +} + +size_t LiteralMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralMap) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map literals = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->literals_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator + it = this->literals().begin(); + it != this->literals().end(); ++it) { + entry.reset(literals_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LiteralMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralMap) + GOOGLE_DCHECK_NE(&from, this); + const LiteralMap* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralMap) + MergeFrom(*source); + } +} + +void LiteralMap::MergeFrom(const LiteralMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + literals_.MergeFrom(from.literals_); +} + +void LiteralMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralMap::CopyFrom(const LiteralMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralMap::IsInitialized() const { + return true; +} + +void LiteralMap::Swap(LiteralMap* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralMap::InternalSwap(LiteralMap* other) { + using std::swap; + literals_.Swap(&other->literals_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LiteralMap::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BindingDataCollection::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingDataCollection::kBindingsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingDataCollection::BindingDataCollection() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BindingDataCollection) +} +BindingDataCollection::BindingDataCollection(const BindingDataCollection& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + bindings_(from.bindings_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingDataCollection) +} + +void BindingDataCollection::SharedCtor() { + _cached_size_ = 0; +} + +BindingDataCollection::~BindingDataCollection() { + // @@protoc_insertion_point(destructor:flyteidl.core.BindingDataCollection) + SharedDtor(); +} + +void BindingDataCollection::SharedDtor() { +} + +void BindingDataCollection::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BindingDataCollection::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BindingDataCollection& BindingDataCollection::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + return *internal_default_instance(); +} + +BindingDataCollection* BindingDataCollection::New(::google::protobuf::Arena* arena) const { + BindingDataCollection* n = new BindingDataCollection; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BindingDataCollection::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingDataCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bindings_.Clear(); + _internal_metadata_.Clear(); +} + +bool BindingDataCollection::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BindingDataCollection) + 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.BindingData bindings = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_bindings())); + } 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.BindingDataCollection) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingDataCollection) + return false; +#undef DO_ +} + +void BindingDataCollection::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingDataCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.BindingData bindings = 1; + for (unsigned int i = 0, + n = static_cast(this->bindings_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->bindings(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingDataCollection) +} + +::google::protobuf::uint8* BindingDataCollection::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingDataCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.BindingData bindings = 1; + for (unsigned int i = 0, + n = static_cast(this->bindings_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->bindings(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BindingDataCollection) + return target; +} + +size_t BindingDataCollection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingDataCollection) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.BindingData bindings = 1; + { + unsigned int count = static_cast(this->bindings_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->bindings(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BindingDataCollection::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingDataCollection) + GOOGLE_DCHECK_NE(&from, this); + const BindingDataCollection* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingDataCollection) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingDataCollection) + MergeFrom(*source); + } +} + +void BindingDataCollection::MergeFrom(const BindingDataCollection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingDataCollection) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bindings_.MergeFrom(from.bindings_); +} + +void BindingDataCollection::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingDataCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingDataCollection::CopyFrom(const BindingDataCollection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingDataCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingDataCollection::IsInitialized() const { + return true; +} + +void BindingDataCollection::Swap(BindingDataCollection* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingDataCollection::InternalSwap(BindingDataCollection* other) { + using std::swap; + bindings_.InternalSwap(&other->bindings_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BindingDataCollection::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +BindingDataMap_BindingsEntry_DoNotUse::BindingDataMap_BindingsEntry_DoNotUse() {} +BindingDataMap_BindingsEntry_DoNotUse::BindingDataMap_BindingsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void BindingDataMap_BindingsEntry_DoNotUse::MergeFrom(const BindingDataMap_BindingsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata BindingDataMap_BindingsEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[12]; +} +void BindingDataMap_BindingsEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void BindingDataMap::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingDataMap::kBindingsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingDataMap::BindingDataMap() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BindingDataMap) +} +BindingDataMap::BindingDataMap(const BindingDataMap& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + bindings_.MergeFrom(from.bindings_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingDataMap) +} + +void BindingDataMap::SharedCtor() { + _cached_size_ = 0; +} + +BindingDataMap::~BindingDataMap() { + // @@protoc_insertion_point(destructor:flyteidl.core.BindingDataMap) + SharedDtor(); +} + +void BindingDataMap::SharedDtor() { +} + +void BindingDataMap::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BindingDataMap::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BindingDataMap& BindingDataMap::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + return *internal_default_instance(); +} + +BindingDataMap* BindingDataMap::New(::google::protobuf::Arena* arena) const { + BindingDataMap* n = new BindingDataMap; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BindingDataMap::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingDataMap) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + bindings_.Clear(); + _internal_metadata_.Clear(); +} + +bool BindingDataMap::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BindingDataMap) + 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)) { + // map bindings = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + BindingDataMap_BindingsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + BindingDataMap_BindingsEntry_DoNotUse, + ::std::string, ::flyteidl::core::BindingData, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 >, + ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData > > parser(&bindings_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.BindingDataMap.BindingsEntry.key")); + } 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.BindingDataMap) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingDataMap) + return false; +#undef DO_ +} + +void BindingDataMap::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingDataMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map bindings = 1; + if (!this->bindings().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BindingDataMap.BindingsEntry.key"); + } + }; + + if (output->IsSerializationDeterministic() && + this->bindings().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->bindings().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(bindings_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it) { + entry.reset(bindings_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingDataMap) +} + +::google::protobuf::uint8* BindingDataMap::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingDataMap) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // map bindings = 1; + if (!this->bindings().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BindingDataMap.BindingsEntry.key"); + } + }; + + if (deterministic && + this->bindings().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->bindings().size()]); + typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(bindings_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it) { + entry.reset(bindings_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 1, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BindingDataMap) + return target; +} + +size_t BindingDataMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingDataMap) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map bindings = 1; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->bindings_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator + it = this->bindings().begin(); + it != this->bindings().end(); ++it) { + entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BindingDataMap::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingDataMap) + GOOGLE_DCHECK_NE(&from, this); + const BindingDataMap* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingDataMap) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingDataMap) + MergeFrom(*source); + } +} + +void BindingDataMap::MergeFrom(const BindingDataMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingDataMap) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + bindings_.MergeFrom(from.bindings_); +} + +void BindingDataMap::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingDataMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingDataMap::CopyFrom(const BindingDataMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingDataMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingDataMap::IsInitialized() const { + return true; +} + +void BindingDataMap::Swap(BindingDataMap* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingDataMap::InternalSwap(BindingDataMap* other) { + using std::swap; + bindings_.Swap(&other->bindings_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BindingDataMap::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BindingData::InitAsDefaultInstance() { + ::flyteidl::core::_BindingData_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( + ::flyteidl::core::Scalar::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_.collection_ = const_cast< ::flyteidl::core::BindingDataCollection*>( + ::flyteidl::core::BindingDataCollection::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_.promise_ = const_cast< ::flyteidl::core::OutputReference*>( + ::flyteidl::core::OutputReference::internal_default_instance()); + ::flyteidl::core::_BindingData_default_instance_.map_ = const_cast< ::flyteidl::core::BindingDataMap*>( + ::flyteidl::core::BindingDataMap::internal_default_instance()); +} +void BindingData::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (scalar) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + scalar = ::google::protobuf::internal::GetOwnedMessage( + message_arena, scalar, submessage_arena); + } + set_has_scalar(); + value_.scalar_ = scalar; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.scalar) +} +void BindingData::set_allocated_collection(::flyteidl::core::BindingDataCollection* collection) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (collection) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + collection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, collection, submessage_arena); + } + set_has_collection(); + value_.collection_ = collection; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.collection) +} +void BindingData::set_allocated_promise(::flyteidl::core::OutputReference* promise) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (promise) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + promise = ::google::protobuf::internal::GetOwnedMessage( + message_arena, promise, submessage_arena); + } + set_has_promise(); + value_.promise_ = promise; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.promise) +} +void BindingData::clear_promise() { + if (has_promise()) { + delete value_.promise_; + clear_has_value(); + } +} +void BindingData::set_allocated_map(::flyteidl::core::BindingDataMap* map) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_value(); + if (map) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + map = ::google::protobuf::internal::GetOwnedMessage( + message_arena, map, submessage_arena); + } + set_has_map(); + value_.map_ = map; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.map) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BindingData::kScalarFieldNumber; +const int BindingData::kCollectionFieldNumber; +const int BindingData::kPromiseFieldNumber; +const int BindingData::kMapFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BindingData::BindingData() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BindingData) +} +BindingData::BindingData(const BindingData& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_value(); + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::BindingDataCollection::MergeFrom(from.collection()); + break; + } + case kPromise: { + mutable_promise()->::flyteidl::core::OutputReference::MergeFrom(from.promise()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::BindingDataMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingData) +} + +void BindingData::SharedCtor() { + clear_has_value(); + _cached_size_ = 0; +} + +BindingData::~BindingData() { + // @@protoc_insertion_point(destructor:flyteidl.core.BindingData) + SharedDtor(); +} + +void BindingData::SharedDtor() { + if (has_value()) { + clear_value(); + } +} + +void BindingData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BindingData::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BindingData& BindingData::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingData(); + return *internal_default_instance(); +} + +BindingData* BindingData::New(::google::protobuf::Arena* arena) const { + BindingData* n = new BindingData; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BindingData::clear_value() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.BindingData) + switch (value_case()) { + case kScalar: { + delete value_.scalar_; + break; + } + case kCollection: { + delete value_.collection_; + break; + } + case kPromise: { + delete value_.promise_; + break; + } + case kMap: { + delete value_.map_; + break; + } + case VALUE_NOT_SET: { + break; + } + } + _oneof_case_[0] = VALUE_NOT_SET; +} + + +void BindingData::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingData) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_value(); + _internal_metadata_.Clear(); +} + +bool BindingData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BindingData) + 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)) { + // .flyteidl.core.Scalar scalar = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_scalar())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BindingDataCollection collection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_collection())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.OutputReference promise = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_promise())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BindingDataMap map = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_map())); + } 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.BindingData) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingData) + return false; +#undef DO_ +} + +void BindingData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *value_.scalar_, output); + } + + // .flyteidl.core.BindingDataCollection collection = 2; + if (has_collection()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *value_.collection_, output); + } + + // .flyteidl.core.OutputReference promise = 3; + if (has_promise()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *value_.promise_, output); + } + + // .flyteidl.core.BindingDataMap map = 4; + if (has_map()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *value_.map_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingData) +} + +::google::protobuf::uint8* BindingData::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingData) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Scalar scalar = 1; + if (has_scalar()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *value_.scalar_, deterministic, target); + } + + // .flyteidl.core.BindingDataCollection collection = 2; + if (has_collection()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *value_.collection_, deterministic, target); + } + + // .flyteidl.core.OutputReference promise = 3; + if (has_promise()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *value_.promise_, deterministic, target); + } + + // .flyteidl.core.BindingDataMap map = 4; + if (has_map()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *value_.map_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BindingData) + return target; +} + +size_t BindingData::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingData) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (value_case()) { + // .flyteidl.core.Scalar scalar = 1; + case kScalar: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.scalar_); + break; + } + // .flyteidl.core.BindingDataCollection collection = 2; + case kCollection: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.collection_); + break; + } + // .flyteidl.core.OutputReference promise = 3; + case kPromise: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.promise_); + break; + } + // .flyteidl.core.BindingDataMap map = 4; + case kMap: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *value_.map_); + break; + } + case VALUE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BindingData::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingData) + GOOGLE_DCHECK_NE(&from, this); + const BindingData* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingData) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingData) + MergeFrom(*source); + } +} + +void BindingData::MergeFrom(const BindingData& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingData) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.value_case()) { + case kScalar: { + mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); + break; + } + case kCollection: { + mutable_collection()->::flyteidl::core::BindingDataCollection::MergeFrom(from.collection()); + break; + } + case kPromise: { + mutable_promise()->::flyteidl::core::OutputReference::MergeFrom(from.promise()); + break; + } + case kMap: { + mutable_map()->::flyteidl::core::BindingDataMap::MergeFrom(from.map()); + break; + } + case VALUE_NOT_SET: { + break; + } + } +} + +void BindingData::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BindingData::CopyFrom(const BindingData& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingData) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BindingData::IsInitialized() const { + return true; +} + +void BindingData::Swap(BindingData* other) { + if (other == this) return; + InternalSwap(other); +} +void BindingData::InternalSwap(BindingData* other) { + using std::swap; + swap(value_, other->value_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BindingData::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Binding::InitAsDefaultInstance() { + ::flyteidl::core::_Binding_default_instance_._instance.get_mutable()->binding_ = const_cast< ::flyteidl::core::BindingData*>( + ::flyteidl::core::BindingData::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Binding::kVarFieldNumber; +const int Binding::kBindingFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Binding::Binding() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinding(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Binding) +} +Binding::Binding(const Binding& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.var().size() > 0) { + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + if (from.has_binding()) { + binding_ = new ::flyteidl::core::BindingData(*from.binding_); + } else { + binding_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Binding) +} + +void Binding::SharedCtor() { + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + binding_ = NULL; + _cached_size_ = 0; +} + +Binding::~Binding() { + // @@protoc_insertion_point(destructor:flyteidl.core.Binding) + SharedDtor(); +} + +void Binding::SharedDtor() { + var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete binding_; +} + +void Binding::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Binding::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Binding& Binding::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinding(); + return *internal_default_instance(); +} + +Binding* Binding::New(::google::protobuf::Arena* arena) const { + Binding* n = new Binding; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Binding::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Binding) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && binding_ != NULL) { + delete binding_; + } + binding_ = NULL; + _internal_metadata_.Clear(); +} + +bool Binding::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Binding) + 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 var = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Binding.var")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BindingData binding = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_binding())); + } 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.Binding) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Binding) + return false; +#undef DO_ +} + +void Binding::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Binding) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binding.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->var(), output); + } + + // .flyteidl.core.BindingData binding = 2; + if (this->has_binding()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->binding_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Binding) +} + +::google::protobuf::uint8* Binding::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Binding) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Binding.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->var(), target); + } + + // .flyteidl.core.BindingData binding = 2; + if (this->has_binding()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->binding_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Binding) + return target; +} + +size_t Binding::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Binding) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string var = 1; + if (this->var().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + } + + // .flyteidl.core.BindingData binding = 2; + if (this->has_binding()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->binding_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Binding::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Binding) + GOOGLE_DCHECK_NE(&from, this); + const Binding* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Binding) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Binding) + MergeFrom(*source); + } +} + +void Binding::MergeFrom(const Binding& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Binding) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.var().size() > 0) { + + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + if (from.has_binding()) { + mutable_binding()->::flyteidl::core::BindingData::MergeFrom(from.binding()); + } +} + +void Binding::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Binding) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Binding::CopyFrom(const Binding& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Binding) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Binding::IsInitialized() const { + return true; +} + +void Binding::Swap(Binding* other) { + if (other == this) return; + InternalSwap(other); +} +void Binding::InternalSwap(Binding* other) { + using std::swap; + var_.Swap(&other->var_); + swap(binding_, other->binding_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Binding::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void KeyValuePair::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int KeyValuePair::kKeyFieldNumber; +const int KeyValuePair::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +KeyValuePair::KeyValuePair() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsKeyValuePair(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.KeyValuePair) +} +KeyValuePair::KeyValuePair(const KeyValuePair& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.key().size() > 0) { + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.KeyValuePair) +} + +void KeyValuePair::SharedCtor() { + key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +KeyValuePair::~KeyValuePair() { + // @@protoc_insertion_point(destructor:flyteidl.core.KeyValuePair) + SharedDtor(); +} + +void KeyValuePair::SharedDtor() { + key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void KeyValuePair::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* KeyValuePair::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const KeyValuePair& KeyValuePair::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsKeyValuePair(); + return *internal_default_instance(); +} + +KeyValuePair* KeyValuePair::New(::google::protobuf::Arena* arena) const { + KeyValuePair* n = new KeyValuePair; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void KeyValuePair::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool KeyValuePair::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.KeyValuePair) + 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 key = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_key())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.KeyValuePair.key")); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.KeyValuePair.value")); + } 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.KeyValuePair) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.KeyValuePair) + return false; +#undef DO_ +} + +void KeyValuePair::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.key"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->key(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.KeyValuePair) +} + +::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.KeyValuePair) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string key = 1; + if (this->key().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->key().data(), static_cast(this->key().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.key"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->key(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.KeyValuePair.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.KeyValuePair) + return target; +} + +size_t KeyValuePair::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.KeyValuePair) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string key = 1; + if (this->key().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->key()); + } + + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.KeyValuePair) + GOOGLE_DCHECK_NE(&from, this); + const KeyValuePair* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.KeyValuePair) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.KeyValuePair) + MergeFrom(*source); + } +} + +void KeyValuePair::MergeFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.KeyValuePair) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.key().size() > 0) { + + key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); + } + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } +} + +void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.KeyValuePair) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KeyValuePair::CopyFrom(const KeyValuePair& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.KeyValuePair) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KeyValuePair::IsInitialized() const { + return true; +} + +void KeyValuePair::Swap(KeyValuePair* other) { + if (other == this) return; + InternalSwap(other); +} +void KeyValuePair::InternalSwap(KeyValuePair* other) { + using std::swap; + key_.Swap(&other->key_); + value_.Swap(&other->value_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata KeyValuePair::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RetryStrategy::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RetryStrategy::kRetriesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RetryStrategy::RetryStrategy() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsRetryStrategy(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.RetryStrategy) +} +RetryStrategy::RetryStrategy(const RetryStrategy& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + retries_ = from.retries_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.RetryStrategy) +} + +void RetryStrategy::SharedCtor() { + retries_ = 0u; + _cached_size_ = 0; +} + +RetryStrategy::~RetryStrategy() { + // @@protoc_insertion_point(destructor:flyteidl.core.RetryStrategy) + SharedDtor(); +} + +void RetryStrategy::SharedDtor() { +} + +void RetryStrategy::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RetryStrategy::descriptor() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RetryStrategy& RetryStrategy::default_instance() { + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsRetryStrategy(); + return *internal_default_instance(); +} + +RetryStrategy* RetryStrategy::New(::google::protobuf::Arena* arena) const { + RetryStrategy* n = new RetryStrategy; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void RetryStrategy::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.RetryStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + retries_ = 0u; + _internal_metadata_.Clear(); +} + +bool RetryStrategy::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.RetryStrategy) + 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)) { + // uint32 retries = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retries_))); + } 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.RetryStrategy) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.RetryStrategy) + return false; +#undef DO_ +} + +void RetryStrategy::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.RetryStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 retries = 5; + if (this->retries() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->retries(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.RetryStrategy) +} + +::google::protobuf::uint8* RetryStrategy::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.RetryStrategy) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 retries = 5; + if (this->retries() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->retries(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.RetryStrategy) + return target; +} + +size_t RetryStrategy::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.RetryStrategy) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // uint32 retries = 5; + if (this->retries() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retries()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RetryStrategy::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.RetryStrategy) + GOOGLE_DCHECK_NE(&from, this); + const RetryStrategy* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.RetryStrategy) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.RetryStrategy) + MergeFrom(*source); + } +} + +void RetryStrategy::MergeFrom(const RetryStrategy& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.RetryStrategy) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.retries() != 0) { + set_retries(from.retries()); + } +} + +void RetryStrategy::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.RetryStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RetryStrategy::CopyFrom(const RetryStrategy& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.RetryStrategy) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RetryStrategy::IsInitialized() const { + return true; +} + +void RetryStrategy::Swap(RetryStrategy* other) { + if (other == this) return; + InternalSwap(other); +} +void RetryStrategy::InternalSwap(RetryStrategy* other) { + using std::swap; + swap(retries_, other->retries_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata RetryStrategy::GetMetadata() const { + protobuf_flyteidl_2fcore_2fliterals_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fliterals_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h new file mode 100644 index 0000000000..3a0c4a152b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h @@ -0,0 +1,3797 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fliterals_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fliterals_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +#include +#include +#include "flyteidl/core/types.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fliterals_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[18]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsPrimitiveImpl(); +void InitDefaultsPrimitive(); +void InitDefaultsVoidImpl(); +void InitDefaultsVoid(); +void InitDefaultsBlobImpl(); +void InitDefaultsBlob(); +void InitDefaultsBlobMetadataImpl(); +void InitDefaultsBlobMetadata(); +void InitDefaultsBinaryImpl(); +void InitDefaultsBinary(); +void InitDefaultsSchemaImpl(); +void InitDefaultsSchema(); +void InitDefaultsScalarImpl(); +void InitDefaultsScalar(); +void InitDefaultsLiteralImpl(); +void InitDefaultsLiteral(); +void InitDefaultsBindingDataImpl(); +void InitDefaultsBindingData(); +void InitDefaultsBindingImpl(); +void InitDefaultsBinding(); +void InitDefaultsKeyValuePairImpl(); +void InitDefaultsKeyValuePair(); +void InitDefaultsRetryStrategyImpl(); +void InitDefaultsRetryStrategy(); +inline void InitDefaults() { + InitDefaultsPrimitive(); + InitDefaultsVoid(); + InitDefaultsBlob(); + InitDefaultsBlobMetadata(); + InitDefaultsBinary(); + InitDefaultsSchema(); + InitDefaultsScalar(); + InitDefaultsLiteral(); + InitDefaultsBindingData(); + InitDefaultsBinding(); + InitDefaultsKeyValuePair(); + InitDefaultsRetryStrategy(); +} +} // namespace protobuf_flyteidl_2fcore_2fliterals_2eproto +namespace flyteidl { +namespace core { +class Binary; +class BinaryDefaultTypeInternal; +extern BinaryDefaultTypeInternal _Binary_default_instance_; +class Binding; +class BindingDefaultTypeInternal; +extern BindingDefaultTypeInternal _Binding_default_instance_; +class BindingData; +class BindingDataDefaultTypeInternal; +extern BindingDataDefaultTypeInternal _BindingData_default_instance_; +class BindingDataCollection; +class BindingDataCollectionDefaultTypeInternal; +extern BindingDataCollectionDefaultTypeInternal _BindingDataCollection_default_instance_; +class BindingDataMap; +class BindingDataMapDefaultTypeInternal; +extern BindingDataMapDefaultTypeInternal _BindingDataMap_default_instance_; +class BindingDataMap_BindingsEntry_DoNotUse; +class BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal; +extern BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal _BindingDataMap_BindingsEntry_DoNotUse_default_instance_; +class Blob; +class BlobDefaultTypeInternal; +extern BlobDefaultTypeInternal _Blob_default_instance_; +class BlobMetadata; +class BlobMetadataDefaultTypeInternal; +extern BlobMetadataDefaultTypeInternal _BlobMetadata_default_instance_; +class KeyValuePair; +class KeyValuePairDefaultTypeInternal; +extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; +class Literal; +class LiteralDefaultTypeInternal; +extern LiteralDefaultTypeInternal _Literal_default_instance_; +class LiteralCollection; +class LiteralCollectionDefaultTypeInternal; +extern LiteralCollectionDefaultTypeInternal _LiteralCollection_default_instance_; +class LiteralMap; +class LiteralMapDefaultTypeInternal; +extern LiteralMapDefaultTypeInternal _LiteralMap_default_instance_; +class LiteralMap_LiteralsEntry_DoNotUse; +class LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal; +extern LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal _LiteralMap_LiteralsEntry_DoNotUse_default_instance_; +class Primitive; +class PrimitiveDefaultTypeInternal; +extern PrimitiveDefaultTypeInternal _Primitive_default_instance_; +class RetryStrategy; +class RetryStrategyDefaultTypeInternal; +extern RetryStrategyDefaultTypeInternal _RetryStrategy_default_instance_; +class Scalar; +class ScalarDefaultTypeInternal; +extern ScalarDefaultTypeInternal _Scalar_default_instance_; +class Schema; +class SchemaDefaultTypeInternal; +extern SchemaDefaultTypeInternal _Schema_default_instance_; +class Void; +class VoidDefaultTypeInternal; +extern VoidDefaultTypeInternal _Void_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +// =================================================================== + +class Primitive : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Primitive) */ { + public: + Primitive(); + virtual ~Primitive(); + + Primitive(const Primitive& from); + + inline Primitive& operator=(const Primitive& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Primitive(Primitive&& from) noexcept + : Primitive() { + *this = ::std::move(from); + } + + inline Primitive& operator=(Primitive&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Primitive& default_instance(); + + enum ValueCase { + kInteger = 1, + kFloatValue = 2, + kStringValue = 3, + kBoolean = 4, + kDatetime = 5, + kDuration = 6, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Primitive* internal_default_instance() { + return reinterpret_cast( + &_Primitive_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Primitive* other); + friend void swap(Primitive& a, Primitive& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Primitive* New() const PROTOBUF_FINAL { return New(NULL); } + + Primitive* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Primitive& from); + void MergeFrom(const Primitive& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Primitive* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 integer = 1; + private: + bool has_integer() const; + public: + void clear_integer(); + static const int kIntegerFieldNumber = 1; + ::google::protobuf::int64 integer() const; + void set_integer(::google::protobuf::int64 value); + + // double float_value = 2; + private: + bool has_float_value() const; + public: + void clear_float_value(); + static const int kFloatValueFieldNumber = 2; + double float_value() const; + void set_float_value(double value); + + // string string_value = 3; + private: + bool has_string_value() const; + public: + void clear_string_value(); + static const int kStringValueFieldNumber = 3; + const ::std::string& string_value() const; + void set_string_value(const ::std::string& value); + #if LANG_CXX11 + void set_string_value(::std::string&& value); + #endif + void set_string_value(const char* value); + void set_string_value(const char* value, size_t size); + ::std::string* mutable_string_value(); + ::std::string* release_string_value(); + void set_allocated_string_value(::std::string* string_value); + + // bool boolean = 4; + private: + bool has_boolean() const; + public: + void clear_boolean(); + static const int kBooleanFieldNumber = 4; + bool boolean() const; + void set_boolean(bool value); + + // .google.protobuf.Timestamp datetime = 5; + bool has_datetime() const; + void clear_datetime(); + static const int kDatetimeFieldNumber = 5; + const ::google::protobuf::Timestamp& datetime() const; + ::google::protobuf::Timestamp* release_datetime(); + ::google::protobuf::Timestamp* mutable_datetime(); + void set_allocated_datetime(::google::protobuf::Timestamp* datetime); + + // .google.protobuf.Duration duration = 6; + bool has_duration() const; + void clear_duration(); + static const int kDurationFieldNumber = 6; + const ::google::protobuf::Duration& duration() const; + ::google::protobuf::Duration* release_duration(); + ::google::protobuf::Duration* mutable_duration(); + void set_allocated_duration(::google::protobuf::Duration* duration); + + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + private: + void set_has_integer(); + void set_has_float_value(); + void set_has_string_value(); + void set_has_boolean(); + void set_has_datetime(); + void set_has_duration(); + + inline bool has_value() const; + void clear_value(); + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValueUnion { + ValueUnion() {} + ::google::protobuf::int64 integer_; + double float_value_; + ::google::protobuf::internal::ArenaStringPtr string_value_; + bool boolean_; + ::google::protobuf::Timestamp* datetime_; + ::google::protobuf::Duration* duration_; + } value_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsPrimitiveImpl(); +}; +// ------------------------------------------------------------------- + +class Void : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Void) */ { + public: + Void(); + virtual ~Void(); + + Void(const Void& from); + + inline Void& operator=(const Void& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Void(Void&& from) noexcept + : Void() { + *this = ::std::move(from); + } + + inline Void& operator=(Void&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Void& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Void* internal_default_instance() { + return reinterpret_cast( + &_Void_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(Void* other); + friend void swap(Void& a, Void& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Void* New() const PROTOBUF_FINAL { return New(NULL); } + + Void* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Void& from); + void MergeFrom(const Void& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Void* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.Void) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsVoidImpl(); +}; +// ------------------------------------------------------------------- + +class Blob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Blob) */ { + public: + Blob(); + virtual ~Blob(); + + Blob(const Blob& from); + + inline Blob& operator=(const Blob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Blob(Blob&& from) noexcept + : Blob() { + *this = ::std::move(from); + } + + inline Blob& operator=(Blob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Blob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Blob* internal_default_instance() { + return reinterpret_cast( + &_Blob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(Blob* other); + friend void swap(Blob& a, Blob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Blob* New() const PROTOBUF_FINAL { return New(NULL); } + + Blob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Blob& from); + void MergeFrom(const Blob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Blob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string uri = 3; + void clear_uri(); + static const int kUriFieldNumber = 3; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // .flyteidl.core.BlobMetadata metadata = 1; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 1; + const ::flyteidl::core::BlobMetadata& metadata() const; + ::flyteidl::core::BlobMetadata* release_metadata(); + ::flyteidl::core::BlobMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::BlobMetadata* metadata); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::flyteidl::core::BlobMetadata* metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlobImpl(); +}; +// ------------------------------------------------------------------- + +class BlobMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BlobMetadata) */ { + public: + BlobMetadata(); + virtual ~BlobMetadata(); + + BlobMetadata(const BlobMetadata& from); + + inline BlobMetadata& operator=(const BlobMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BlobMetadata(BlobMetadata&& from) noexcept + : BlobMetadata() { + *this = ::std::move(from); + } + + inline BlobMetadata& operator=(BlobMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BlobMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobMetadata* internal_default_instance() { + return reinterpret_cast( + &_BlobMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(BlobMetadata* other); + friend void swap(BlobMetadata& a, BlobMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BlobMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + BlobMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BlobMetadata& from); + void MergeFrom(const BlobMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BlobMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.BlobType type = 1; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 1; + const ::flyteidl::core::BlobType& type() const; + ::flyteidl::core::BlobType* release_type(); + ::flyteidl::core::BlobType* mutable_type(); + void set_allocated_type(::flyteidl::core::BlobType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::BlobType* type_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBlobMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class Binary : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Binary) */ { + public: + Binary(); + virtual ~Binary(); + + Binary(const Binary& from); + + inline Binary& operator=(const Binary& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Binary(Binary&& from) noexcept + : Binary() { + *this = ::std::move(from); + } + + inline Binary& operator=(Binary&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Binary& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Binary* internal_default_instance() { + return reinterpret_cast( + &_Binary_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(Binary* other); + friend void swap(Binary& a, Binary& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Binary* New() const PROTOBUF_FINAL { return New(NULL); } + + Binary* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Binary& from); + void MergeFrom(const Binary& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Binary* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // bytes value = 1; + void clear_value(); + static const int kValueFieldNumber = 1; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const void* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // string tag = 2; + void clear_tag(); + static const int kTagFieldNumber = 2; + const ::std::string& tag() const; + void set_tag(const ::std::string& value); + #if LANG_CXX11 + void set_tag(::std::string&& value); + #endif + void set_tag(const char* value); + void set_tag(const char* value, size_t size); + ::std::string* mutable_tag(); + ::std::string* release_tag(); + void set_allocated_tag(::std::string* tag); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr value_; + ::google::protobuf::internal::ArenaStringPtr tag_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinaryImpl(); +}; +// ------------------------------------------------------------------- + +class Schema : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Schema) */ { + public: + Schema(); + virtual ~Schema(); + + Schema(const Schema& from); + + inline Schema& operator=(const Schema& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Schema(Schema&& from) noexcept + : Schema() { + *this = ::std::move(from); + } + + inline Schema& operator=(Schema&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Schema& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Schema* internal_default_instance() { + return reinterpret_cast( + &_Schema_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(Schema* other); + friend void swap(Schema& a, Schema& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Schema* New() const PROTOBUF_FINAL { return New(NULL); } + + Schema* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Schema& from); + void MergeFrom(const Schema& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Schema* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string uri = 1; + void clear_uri(); + static const int kUriFieldNumber = 1; + const ::std::string& uri() const; + void set_uri(const ::std::string& value); + #if LANG_CXX11 + void set_uri(::std::string&& value); + #endif + void set_uri(const char* value); + void set_uri(const char* value, size_t size); + ::std::string* mutable_uri(); + ::std::string* release_uri(); + void set_allocated_uri(::std::string* uri); + + // .flyteidl.core.SchemaType type = 3; + bool has_type() const; + void clear_type(); + static const int kTypeFieldNumber = 3; + const ::flyteidl::core::SchemaType& type() const; + ::flyteidl::core::SchemaType* release_type(); + ::flyteidl::core::SchemaType* mutable_type(); + void set_allocated_type(::flyteidl::core::SchemaType* type); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr uri_; + ::flyteidl::core::SchemaType* type_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsSchemaImpl(); +}; +// ------------------------------------------------------------------- + +class Scalar : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Scalar) */ { + public: + Scalar(); + virtual ~Scalar(); + + Scalar(const Scalar& from); + + inline Scalar& operator=(const Scalar& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Scalar(Scalar&& from) noexcept + : Scalar() { + *this = ::std::move(from); + } + + inline Scalar& operator=(Scalar&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Scalar& default_instance(); + + enum ValueCase { + kPrimitive = 1, + kBlob = 2, + kBinary = 3, + kSchema = 4, + kNoneType = 5, + kError = 6, + kGeneric = 7, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Scalar* internal_default_instance() { + return reinterpret_cast( + &_Scalar_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(Scalar* other); + friend void swap(Scalar& a, Scalar& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Scalar* New() const PROTOBUF_FINAL { return New(NULL); } + + Scalar* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Scalar& from); + void MergeFrom(const Scalar& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Scalar* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Primitive primitive = 1; + bool has_primitive() const; + void clear_primitive(); + static const int kPrimitiveFieldNumber = 1; + const ::flyteidl::core::Primitive& primitive() const; + ::flyteidl::core::Primitive* release_primitive(); + ::flyteidl::core::Primitive* mutable_primitive(); + void set_allocated_primitive(::flyteidl::core::Primitive* primitive); + + // .flyteidl.core.Blob blob = 2; + bool has_blob() const; + void clear_blob(); + static const int kBlobFieldNumber = 2; + const ::flyteidl::core::Blob& blob() const; + ::flyteidl::core::Blob* release_blob(); + ::flyteidl::core::Blob* mutable_blob(); + void set_allocated_blob(::flyteidl::core::Blob* blob); + + // .flyteidl.core.Binary binary = 3; + bool has_binary() const; + void clear_binary(); + static const int kBinaryFieldNumber = 3; + const ::flyteidl::core::Binary& binary() const; + ::flyteidl::core::Binary* release_binary(); + ::flyteidl::core::Binary* mutable_binary(); + void set_allocated_binary(::flyteidl::core::Binary* binary); + + // .flyteidl.core.Schema schema = 4; + bool has_schema() const; + void clear_schema(); + static const int kSchemaFieldNumber = 4; + const ::flyteidl::core::Schema& schema() const; + ::flyteidl::core::Schema* release_schema(); + ::flyteidl::core::Schema* mutable_schema(); + void set_allocated_schema(::flyteidl::core::Schema* schema); + + // .flyteidl.core.Void none_type = 5; + bool has_none_type() const; + void clear_none_type(); + static const int kNoneTypeFieldNumber = 5; + const ::flyteidl::core::Void& none_type() const; + ::flyteidl::core::Void* release_none_type(); + ::flyteidl::core::Void* mutable_none_type(); + void set_allocated_none_type(::flyteidl::core::Void* none_type); + + // .flyteidl.core.Error error = 6; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 6; + const ::flyteidl::core::Error& error() const; + ::flyteidl::core::Error* release_error(); + ::flyteidl::core::Error* mutable_error(); + void set_allocated_error(::flyteidl::core::Error* error); + + // .google.protobuf.Struct generic = 7; + bool has_generic() const; + void clear_generic(); + static const int kGenericFieldNumber = 7; + const ::google::protobuf::Struct& generic() const; + ::google::protobuf::Struct* release_generic(); + ::google::protobuf::Struct* mutable_generic(); + void set_allocated_generic(::google::protobuf::Struct* generic); + + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + private: + void set_has_primitive(); + void set_has_blob(); + void set_has_binary(); + void set_has_schema(); + void set_has_none_type(); + void set_has_error(); + void set_has_generic(); + + inline bool has_value() const; + void clear_value(); + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValueUnion { + ValueUnion() {} + ::flyteidl::core::Primitive* primitive_; + ::flyteidl::core::Blob* blob_; + ::flyteidl::core::Binary* binary_; + ::flyteidl::core::Schema* schema_; + ::flyteidl::core::Void* none_type_; + ::flyteidl::core::Error* error_; + ::google::protobuf::Struct* generic_; + } value_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsScalarImpl(); +}; +// ------------------------------------------------------------------- + +class Literal : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Literal) */ { + public: + Literal(); + virtual ~Literal(); + + Literal(const Literal& from); + + inline Literal& operator=(const Literal& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Literal(Literal&& from) noexcept + : Literal() { + *this = ::std::move(from); + } + + inline Literal& operator=(Literal&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Literal& default_instance(); + + enum ValueCase { + kScalar = 1, + kCollection = 2, + kMap = 3, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Literal* internal_default_instance() { + return reinterpret_cast( + &_Literal_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(Literal* other); + friend void swap(Literal& a, Literal& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Literal* New() const PROTOBUF_FINAL { return New(NULL); } + + Literal* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Literal& from); + void MergeFrom(const Literal& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Literal* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Scalar scalar = 1; + bool has_scalar() const; + void clear_scalar(); + static const int kScalarFieldNumber = 1; + const ::flyteidl::core::Scalar& scalar() const; + ::flyteidl::core::Scalar* release_scalar(); + ::flyteidl::core::Scalar* mutable_scalar(); + void set_allocated_scalar(::flyteidl::core::Scalar* scalar); + + // .flyteidl.core.LiteralCollection collection = 2; + bool has_collection() const; + void clear_collection(); + static const int kCollectionFieldNumber = 2; + const ::flyteidl::core::LiteralCollection& collection() const; + ::flyteidl::core::LiteralCollection* release_collection(); + ::flyteidl::core::LiteralCollection* mutable_collection(); + void set_allocated_collection(::flyteidl::core::LiteralCollection* collection); + + // .flyteidl.core.LiteralMap map = 3; + bool has_map() const; + void clear_map(); + static const int kMapFieldNumber = 3; + const ::flyteidl::core::LiteralMap& map() const; + ::flyteidl::core::LiteralMap* release_map(); + ::flyteidl::core::LiteralMap* mutable_map(); + void set_allocated_map(::flyteidl::core::LiteralMap* map); + + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + private: + void set_has_scalar(); + void set_has_collection(); + void set_has_map(); + + inline bool has_value() const; + void clear_value(); + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValueUnion { + ValueUnion() {} + ::flyteidl::core::Scalar* scalar_; + ::flyteidl::core::LiteralCollection* collection_; + ::flyteidl::core::LiteralMap* map_; + } value_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteralImpl(); +}; +// ------------------------------------------------------------------- + +class LiteralCollection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralCollection) */ { + public: + LiteralCollection(); + virtual ~LiteralCollection(); + + LiteralCollection(const LiteralCollection& from); + + inline LiteralCollection& operator=(const LiteralCollection& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralCollection(LiteralCollection&& from) noexcept + : LiteralCollection() { + *this = ::std::move(from); + } + + inline LiteralCollection& operator=(LiteralCollection&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LiteralCollection& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralCollection* internal_default_instance() { + return reinterpret_cast( + &_LiteralCollection_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; + + void Swap(LiteralCollection* other); + friend void swap(LiteralCollection& a, LiteralCollection& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralCollection* New() const PROTOBUF_FINAL { return New(NULL); } + + LiteralCollection* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LiteralCollection& from); + void MergeFrom(const LiteralCollection& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LiteralCollection* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Literal literals = 1; + int literals_size() const; + void clear_literals(); + static const int kLiteralsFieldNumber = 1; + const ::flyteidl::core::Literal& literals(int index) const; + ::flyteidl::core::Literal* mutable_literals(int index); + ::flyteidl::core::Literal* add_literals(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >* + mutable_literals(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >& + literals() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal > literals_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteralImpl(); +}; +// ------------------------------------------------------------------- + +class LiteralMap_LiteralsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + LiteralMap_LiteralsEntry_DoNotUse(); + LiteralMap_LiteralsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const LiteralMap_LiteralsEntry_DoNotUse& other); + static const LiteralMap_LiteralsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_LiteralMap_LiteralsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class LiteralMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralMap) */ { + public: + LiteralMap(); + virtual ~LiteralMap(); + + LiteralMap(const LiteralMap& from); + + inline LiteralMap& operator=(const LiteralMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralMap(LiteralMap&& from) noexcept + : LiteralMap() { + *this = ::std::move(from); + } + + inline LiteralMap& operator=(LiteralMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LiteralMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralMap* internal_default_instance() { + return reinterpret_cast( + &_LiteralMap_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 10; + + void Swap(LiteralMap* other); + friend void swap(LiteralMap& a, LiteralMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralMap* New() const PROTOBUF_FINAL { return New(NULL); } + + LiteralMap* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LiteralMap& from); + void MergeFrom(const LiteralMap& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LiteralMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map literals = 1; + int literals_size() const; + void clear_literals(); + static const int kLiteralsFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >& + literals() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >* + mutable_literals(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + LiteralMap_LiteralsEntry_DoNotUse, + ::std::string, ::flyteidl::core::Literal, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > literals_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsLiteralImpl(); +}; +// ------------------------------------------------------------------- + +class BindingDataCollection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingDataCollection) */ { + public: + BindingDataCollection(); + virtual ~BindingDataCollection(); + + BindingDataCollection(const BindingDataCollection& from); + + inline BindingDataCollection& operator=(const BindingDataCollection& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingDataCollection(BindingDataCollection&& from) noexcept + : BindingDataCollection() { + *this = ::std::move(from); + } + + inline BindingDataCollection& operator=(BindingDataCollection&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BindingDataCollection& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingDataCollection* internal_default_instance() { + return reinterpret_cast( + &_BindingDataCollection_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 11; + + void Swap(BindingDataCollection* other); + friend void swap(BindingDataCollection& a, BindingDataCollection& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingDataCollection* New() const PROTOBUF_FINAL { return New(NULL); } + + BindingDataCollection* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BindingDataCollection& from); + void MergeFrom(const BindingDataCollection& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BindingDataCollection* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.BindingData bindings = 1; + int bindings_size() const; + void clear_bindings(); + static const int kBindingsFieldNumber = 1; + const ::flyteidl::core::BindingData& bindings(int index) const; + ::flyteidl::core::BindingData* mutable_bindings(int index); + ::flyteidl::core::BindingData* add_bindings(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >* + mutable_bindings(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >& + bindings() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData > bindings_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingDataImpl(); +}; +// ------------------------------------------------------------------- + +class BindingDataMap_BindingsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + BindingDataMap_BindingsEntry_DoNotUse(); + BindingDataMap_BindingsEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const BindingDataMap_BindingsEntry_DoNotUse& other); + static const BindingDataMap_BindingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BindingDataMap_BindingsEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class BindingDataMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingDataMap) */ { + public: + BindingDataMap(); + virtual ~BindingDataMap(); + + BindingDataMap(const BindingDataMap& from); + + inline BindingDataMap& operator=(const BindingDataMap& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingDataMap(BindingDataMap&& from) noexcept + : BindingDataMap() { + *this = ::std::move(from); + } + + inline BindingDataMap& operator=(BindingDataMap&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BindingDataMap& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingDataMap* internal_default_instance() { + return reinterpret_cast( + &_BindingDataMap_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 13; + + void Swap(BindingDataMap* other); + friend void swap(BindingDataMap& a, BindingDataMap& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingDataMap* New() const PROTOBUF_FINAL { return New(NULL); } + + BindingDataMap* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BindingDataMap& from); + void MergeFrom(const BindingDataMap& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BindingDataMap* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map bindings = 1; + int bindings_size() const; + void clear_bindings(); + static const int kBindingsFieldNumber = 1; + const ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >& + bindings() const; + ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >* + mutable_bindings(); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + BindingDataMap_BindingsEntry_DoNotUse, + ::std::string, ::flyteidl::core::BindingData, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, + 0 > bindings_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingDataImpl(); +}; +// ------------------------------------------------------------------- + +class BindingData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingData) */ { + public: + BindingData(); + virtual ~BindingData(); + + BindingData(const BindingData& from); + + inline BindingData& operator=(const BindingData& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BindingData(BindingData&& from) noexcept + : BindingData() { + *this = ::std::move(from); + } + + inline BindingData& operator=(BindingData&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BindingData& default_instance(); + + enum ValueCase { + kScalar = 1, + kCollection = 2, + kPromise = 3, + kMap = 4, + VALUE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BindingData* internal_default_instance() { + return reinterpret_cast( + &_BindingData_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 14; + + void Swap(BindingData* other); + friend void swap(BindingData& a, BindingData& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BindingData* New() const PROTOBUF_FINAL { return New(NULL); } + + BindingData* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BindingData& from); + void MergeFrom(const BindingData& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BindingData* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Scalar scalar = 1; + bool has_scalar() const; + void clear_scalar(); + static const int kScalarFieldNumber = 1; + const ::flyteidl::core::Scalar& scalar() const; + ::flyteidl::core::Scalar* release_scalar(); + ::flyteidl::core::Scalar* mutable_scalar(); + void set_allocated_scalar(::flyteidl::core::Scalar* scalar); + + // .flyteidl.core.BindingDataCollection collection = 2; + bool has_collection() const; + void clear_collection(); + static const int kCollectionFieldNumber = 2; + const ::flyteidl::core::BindingDataCollection& collection() const; + ::flyteidl::core::BindingDataCollection* release_collection(); + ::flyteidl::core::BindingDataCollection* mutable_collection(); + void set_allocated_collection(::flyteidl::core::BindingDataCollection* collection); + + // .flyteidl.core.OutputReference promise = 3; + bool has_promise() const; + void clear_promise(); + static const int kPromiseFieldNumber = 3; + const ::flyteidl::core::OutputReference& promise() const; + ::flyteidl::core::OutputReference* release_promise(); + ::flyteidl::core::OutputReference* mutable_promise(); + void set_allocated_promise(::flyteidl::core::OutputReference* promise); + + // .flyteidl.core.BindingDataMap map = 4; + bool has_map() const; + void clear_map(); + static const int kMapFieldNumber = 4; + const ::flyteidl::core::BindingDataMap& map() const; + ::flyteidl::core::BindingDataMap* release_map(); + ::flyteidl::core::BindingDataMap* mutable_map(); + void set_allocated_map(::flyteidl::core::BindingDataMap* map); + + ValueCase value_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + private: + void set_has_scalar(); + void set_has_collection(); + void set_has_promise(); + void set_has_map(); + + inline bool has_value() const; + void clear_value(); + inline void clear_has_value(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ValueUnion { + ValueUnion() {} + ::flyteidl::core::Scalar* scalar_; + ::flyteidl::core::BindingDataCollection* collection_; + ::flyteidl::core::OutputReference* promise_; + ::flyteidl::core::BindingDataMap* map_; + } value_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingDataImpl(); +}; +// ------------------------------------------------------------------- + +class Binding : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Binding) */ { + public: + Binding(); + virtual ~Binding(); + + Binding(const Binding& from); + + inline Binding& operator=(const Binding& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Binding(Binding&& from) noexcept + : Binding() { + *this = ::std::move(from); + } + + inline Binding& operator=(Binding&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Binding& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Binding* internal_default_instance() { + return reinterpret_cast( + &_Binding_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 15; + + void Swap(Binding* other); + friend void swap(Binding& a, Binding& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Binding* New() const PROTOBUF_FINAL { return New(NULL); } + + Binding* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Binding& from); + void MergeFrom(const Binding& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Binding* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string var = 1; + void clear_var(); + static const int kVarFieldNumber = 1; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // .flyteidl.core.BindingData binding = 2; + bool has_binding() const; + void clear_binding(); + static const int kBindingFieldNumber = 2; + const ::flyteidl::core::BindingData& binding() const; + ::flyteidl::core::BindingData* release_binding(); + ::flyteidl::core::BindingData* mutable_binding(); + void set_allocated_binding(::flyteidl::core::BindingData* binding); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr var_; + ::flyteidl::core::BindingData* binding_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBindingImpl(); +}; +// ------------------------------------------------------------------- + +class KeyValuePair : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.KeyValuePair) */ { + public: + KeyValuePair(); + virtual ~KeyValuePair(); + + KeyValuePair(const KeyValuePair& from); + + inline KeyValuePair& operator=(const KeyValuePair& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + KeyValuePair(KeyValuePair&& from) noexcept + : KeyValuePair() { + *this = ::std::move(from); + } + + inline KeyValuePair& operator=(KeyValuePair&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const KeyValuePair& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const KeyValuePair* internal_default_instance() { + return reinterpret_cast( + &_KeyValuePair_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 16; + + void Swap(KeyValuePair* other); + friend void swap(KeyValuePair& a, KeyValuePair& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline KeyValuePair* New() const PROTOBUF_FINAL { return New(NULL); } + + KeyValuePair* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const KeyValuePair& from); + void MergeFrom(const KeyValuePair& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(KeyValuePair* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string key = 1; + void clear_key(); + static const int kKeyFieldNumber = 1; + const ::std::string& key() const; + void set_key(const ::std::string& value); + #if LANG_CXX11 + void set_key(::std::string&& value); + #endif + void set_key(const char* value); + void set_key(const char* value, size_t size); + ::std::string* mutable_key(); + ::std::string* release_key(); + void set_allocated_key(::std::string* key); + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr key_; + ::google::protobuf::internal::ArenaStringPtr value_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsKeyValuePairImpl(); +}; +// ------------------------------------------------------------------- + +class RetryStrategy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.RetryStrategy) */ { + public: + RetryStrategy(); + virtual ~RetryStrategy(); + + RetryStrategy(const RetryStrategy& from); + + inline RetryStrategy& operator=(const RetryStrategy& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RetryStrategy(RetryStrategy&& from) noexcept + : RetryStrategy() { + *this = ::std::move(from); + } + + inline RetryStrategy& operator=(RetryStrategy&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const RetryStrategy& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RetryStrategy* internal_default_instance() { + return reinterpret_cast( + &_RetryStrategy_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 17; + + void Swap(RetryStrategy* other); + friend void swap(RetryStrategy& a, RetryStrategy& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RetryStrategy* New() const PROTOBUF_FINAL { return New(NULL); } + + RetryStrategy* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const RetryStrategy& from); + void MergeFrom(const RetryStrategy& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(RetryStrategy* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 retries = 5; + void clear_retries(); + static const int kRetriesFieldNumber = 5; + ::google::protobuf::uint32 retries() const; + void set_retries(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 retries_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fliterals_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsRetryStrategyImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Primitive + +// int64 integer = 1; +inline bool Primitive::has_integer() const { + return value_case() == kInteger; +} +inline void Primitive::set_has_integer() { + _oneof_case_[0] = kInteger; +} +inline void Primitive::clear_integer() { + if (has_integer()) { + value_.integer_ = GOOGLE_LONGLONG(0); + clear_has_value(); + } +} +inline ::google::protobuf::int64 Primitive::integer() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.integer) + if (has_integer()) { + return value_.integer_; + } + return GOOGLE_LONGLONG(0); +} +inline void Primitive::set_integer(::google::protobuf::int64 value) { + if (!has_integer()) { + clear_value(); + set_has_integer(); + } + value_.integer_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.integer) +} + +// double float_value = 2; +inline bool Primitive::has_float_value() const { + return value_case() == kFloatValue; +} +inline void Primitive::set_has_float_value() { + _oneof_case_[0] = kFloatValue; +} +inline void Primitive::clear_float_value() { + if (has_float_value()) { + value_.float_value_ = 0; + clear_has_value(); + } +} +inline double Primitive::float_value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.float_value) + if (has_float_value()) { + return value_.float_value_; + } + return 0; +} +inline void Primitive::set_float_value(double value) { + if (!has_float_value()) { + clear_value(); + set_has_float_value(); + } + value_.float_value_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.float_value) +} + +// string string_value = 3; +inline bool Primitive::has_string_value() const { + return value_case() == kStringValue; +} +inline void Primitive::set_has_string_value() { + _oneof_case_[0] = kStringValue; +} +inline void Primitive::clear_string_value() { + if (has_string_value()) { + value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_value(); + } +} +inline const ::std::string& Primitive::string_value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.string_value) + if (has_string_value()) { + return value_.string_value_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void Primitive::set_string_value(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) +} +#if LANG_CXX11 +inline void Primitive::set_string_value(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Primitive.string_value) +} +#endif +inline void Primitive::set_string_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Primitive.string_value) +} +inline void Primitive::set_string_value(const char* value, size_t size) { + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Primitive.string_value) +} +inline ::std::string* Primitive::mutable_string_value() { + if (!has_string_value()) { + clear_value(); + set_has_string_value(); + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.string_value) + return value_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Primitive::release_string_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.string_value) + if (has_string_value()) { + clear_has_value(); + return value_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void Primitive::set_allocated_string_value(::std::string* string_value) { + if (!has_string_value()) { + value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_value(); + if (string_value != NULL) { + set_has_string_value(); + value_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + string_value); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.string_value) +} + +// bool boolean = 4; +inline bool Primitive::has_boolean() const { + return value_case() == kBoolean; +} +inline void Primitive::set_has_boolean() { + _oneof_case_[0] = kBoolean; +} +inline void Primitive::clear_boolean() { + if (has_boolean()) { + value_.boolean_ = false; + clear_has_value(); + } +} +inline bool Primitive::boolean() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.boolean) + if (has_boolean()) { + return value_.boolean_; + } + return false; +} +inline void Primitive::set_boolean(bool value) { + if (!has_boolean()) { + clear_value(); + set_has_boolean(); + } + value_.boolean_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.boolean) +} + +// .google.protobuf.Timestamp datetime = 5; +inline bool Primitive::has_datetime() const { + return value_case() == kDatetime; +} +inline void Primitive::set_has_datetime() { + _oneof_case_[0] = kDatetime; +} +inline ::google::protobuf::Timestamp* Primitive::release_datetime() { + // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.datetime) + if (has_datetime()) { + clear_has_value(); + ::google::protobuf::Timestamp* temp = value_.datetime_; + value_.datetime_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::google::protobuf::Timestamp& Primitive::datetime() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.datetime) + return has_datetime() + ? *value_.datetime_ + : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* Primitive::mutable_datetime() { + if (!has_datetime()) { + clear_value(); + set_has_datetime(); + value_.datetime_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.datetime) + return value_.datetime_; +} + +// .google.protobuf.Duration duration = 6; +inline bool Primitive::has_duration() const { + return value_case() == kDuration; +} +inline void Primitive::set_has_duration() { + _oneof_case_[0] = kDuration; +} +inline ::google::protobuf::Duration* Primitive::release_duration() { + // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.duration) + if (has_duration()) { + clear_has_value(); + ::google::protobuf::Duration* temp = value_.duration_; + value_.duration_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::google::protobuf::Duration& Primitive::duration() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.duration) + return has_duration() + ? *value_.duration_ + : *reinterpret_cast< ::google::protobuf::Duration*>(&::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* Primitive::mutable_duration() { + if (!has_duration()) { + clear_value(); + set_has_duration(); + value_.duration_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.duration) + return value_.duration_; +} + +inline bool Primitive::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Primitive::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Primitive::ValueCase Primitive::value_case() const { + return Primitive::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Void + +// ------------------------------------------------------------------- + +// Blob + +// .flyteidl.core.BlobMetadata metadata = 1; +inline bool Blob::has_metadata() const { + return this != internal_default_instance() && metadata_ != NULL; +} +inline void Blob::clear_metadata() { + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; +} +inline const ::flyteidl::core::BlobMetadata& Blob::metadata() const { + const ::flyteidl::core::BlobMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.Blob.metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_BlobMetadata_default_instance_); +} +inline ::flyteidl::core::BlobMetadata* Blob::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.Blob.metadata) + + ::flyteidl::core::BlobMetadata* temp = metadata_; + metadata_ = NULL; + return temp; +} +inline ::flyteidl::core::BlobMetadata* Blob::mutable_metadata() { + + if (metadata_ == NULL) { + metadata_ = new ::flyteidl::core::BlobMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Blob.metadata) + return metadata_; +} +inline void Blob::set_allocated_metadata(::flyteidl::core::BlobMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Blob.metadata) +} + +// string uri = 3; +inline void Blob::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Blob::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Blob.uri) + return uri_.GetNoArena(); +} +inline void Blob::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Blob.uri) +} +#if LANG_CXX11 +inline void Blob::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Blob.uri) +} +#endif +inline void Blob::set_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Blob.uri) +} +inline void Blob::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Blob.uri) +} +inline ::std::string* Blob::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Blob.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Blob::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.Blob.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Blob::set_allocated_uri(::std::string* uri) { + if (uri != NULL) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Blob.uri) +} + +// ------------------------------------------------------------------- + +// BlobMetadata + +// .flyteidl.core.BlobType type = 1; +inline bool BlobMetadata::has_type() const { + return this != internal_default_instance() && type_ != NULL; +} +inline const ::flyteidl::core::BlobType& BlobMetadata::type() const { + const ::flyteidl::core::BlobType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.BlobMetadata.type) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_BlobType_default_instance_); +} +inline ::flyteidl::core::BlobType* BlobMetadata::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.BlobMetadata.type) + + ::flyteidl::core::BlobType* temp = type_; + type_ = NULL; + return temp; +} +inline ::flyteidl::core::BlobType* BlobMetadata::mutable_type() { + + if (type_ == NULL) { + type_ = new ::flyteidl::core::BlobType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BlobMetadata.type) + return type_; +} +inline void BlobMetadata::set_allocated_type(::flyteidl::core::BlobType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BlobMetadata.type) +} + +// ------------------------------------------------------------------- + +// Binary + +// bytes value = 1; +inline void Binary::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Binary::value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Binary.value) + return value_.GetNoArena(); +} +inline void Binary::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Binary.value) +} +#if LANG_CXX11 +inline void Binary::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binary.value) +} +#endif +inline void Binary::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Binary.value) +} +inline void Binary::set_value(const void* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binary.value) +} +inline ::std::string* Binary::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binary.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Binary::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binary.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Binary::set_allocated_value(::std::string* value) { + if (value != NULL) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binary.value) +} + +// string tag = 2; +inline void Binary::clear_tag() { + tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Binary::tag() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Binary.tag) + return tag_.GetNoArena(); +} +inline void Binary::set_tag(const ::std::string& value) { + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Binary.tag) +} +#if LANG_CXX11 +inline void Binary::set_tag(::std::string&& value) { + + tag_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binary.tag) +} +#endif +inline void Binary::set_tag(const char* value) { + GOOGLE_DCHECK(value != NULL); + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Binary.tag) +} +inline void Binary::set_tag(const char* value, size_t size) { + + tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binary.tag) +} +inline ::std::string* Binary::mutable_tag() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binary.tag) + return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Binary::release_tag() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binary.tag) + + return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Binary::set_allocated_tag(::std::string* tag) { + if (tag != NULL) { + + } else { + + } + tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binary.tag) +} + +// ------------------------------------------------------------------- + +// Schema + +// string uri = 1; +inline void Schema::clear_uri() { + uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Schema::uri() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Schema.uri) + return uri_.GetNoArena(); +} +inline void Schema::set_uri(const ::std::string& value) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Schema.uri) +} +#if LANG_CXX11 +inline void Schema::set_uri(::std::string&& value) { + + uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Schema.uri) +} +#endif +inline void Schema::set_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Schema.uri) +} +inline void Schema::set_uri(const char* value, size_t size) { + + uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Schema.uri) +} +inline ::std::string* Schema::mutable_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Schema.uri) + return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Schema::release_uri() { + // @@protoc_insertion_point(field_release:flyteidl.core.Schema.uri) + + return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Schema::set_allocated_uri(::std::string* uri) { + if (uri != NULL) { + + } else { + + } + uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Schema.uri) +} + +// .flyteidl.core.SchemaType type = 3; +inline bool Schema::has_type() const { + return this != internal_default_instance() && type_ != NULL; +} +inline const ::flyteidl::core::SchemaType& Schema::type() const { + const ::flyteidl::core::SchemaType* p = type_; + // @@protoc_insertion_point(field_get:flyteidl.core.Schema.type) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_SchemaType_default_instance_); +} +inline ::flyteidl::core::SchemaType* Schema::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Schema.type) + + ::flyteidl::core::SchemaType* temp = type_; + type_ = NULL; + return temp; +} +inline ::flyteidl::core::SchemaType* Schema::mutable_type() { + + if (type_ == NULL) { + type_ = new ::flyteidl::core::SchemaType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Schema.type) + return type_; +} +inline void Schema::set_allocated_type(::flyteidl::core::SchemaType* type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); + } + if (type) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, type, submessage_arena); + } + + } else { + + } + type_ = type; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Schema.type) +} + +// ------------------------------------------------------------------- + +// Scalar + +// .flyteidl.core.Primitive primitive = 1; +inline bool Scalar::has_primitive() const { + return value_case() == kPrimitive; +} +inline void Scalar::set_has_primitive() { + _oneof_case_[0] = kPrimitive; +} +inline void Scalar::clear_primitive() { + if (has_primitive()) { + delete value_.primitive_; + clear_has_value(); + } +} +inline ::flyteidl::core::Primitive* Scalar::release_primitive() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.primitive) + if (has_primitive()) { + clear_has_value(); + ::flyteidl::core::Primitive* temp = value_.primitive_; + value_.primitive_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Primitive& Scalar::primitive() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.primitive) + return has_primitive() + ? *value_.primitive_ + : *reinterpret_cast< ::flyteidl::core::Primitive*>(&::flyteidl::core::_Primitive_default_instance_); +} +inline ::flyteidl::core::Primitive* Scalar::mutable_primitive() { + if (!has_primitive()) { + clear_value(); + set_has_primitive(); + value_.primitive_ = new ::flyteidl::core::Primitive; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.primitive) + return value_.primitive_; +} + +// .flyteidl.core.Blob blob = 2; +inline bool Scalar::has_blob() const { + return value_case() == kBlob; +} +inline void Scalar::set_has_blob() { + _oneof_case_[0] = kBlob; +} +inline void Scalar::clear_blob() { + if (has_blob()) { + delete value_.blob_; + clear_has_value(); + } +} +inline ::flyteidl::core::Blob* Scalar::release_blob() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.blob) + if (has_blob()) { + clear_has_value(); + ::flyteidl::core::Blob* temp = value_.blob_; + value_.blob_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Blob& Scalar::blob() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.blob) + return has_blob() + ? *value_.blob_ + : *reinterpret_cast< ::flyteidl::core::Blob*>(&::flyteidl::core::_Blob_default_instance_); +} +inline ::flyteidl::core::Blob* Scalar::mutable_blob() { + if (!has_blob()) { + clear_value(); + set_has_blob(); + value_.blob_ = new ::flyteidl::core::Blob; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.blob) + return value_.blob_; +} + +// .flyteidl.core.Binary binary = 3; +inline bool Scalar::has_binary() const { + return value_case() == kBinary; +} +inline void Scalar::set_has_binary() { + _oneof_case_[0] = kBinary; +} +inline void Scalar::clear_binary() { + if (has_binary()) { + delete value_.binary_; + clear_has_value(); + } +} +inline ::flyteidl::core::Binary* Scalar::release_binary() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.binary) + if (has_binary()) { + clear_has_value(); + ::flyteidl::core::Binary* temp = value_.binary_; + value_.binary_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Binary& Scalar::binary() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.binary) + return has_binary() + ? *value_.binary_ + : *reinterpret_cast< ::flyteidl::core::Binary*>(&::flyteidl::core::_Binary_default_instance_); +} +inline ::flyteidl::core::Binary* Scalar::mutable_binary() { + if (!has_binary()) { + clear_value(); + set_has_binary(); + value_.binary_ = new ::flyteidl::core::Binary; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.binary) + return value_.binary_; +} + +// .flyteidl.core.Schema schema = 4; +inline bool Scalar::has_schema() const { + return value_case() == kSchema; +} +inline void Scalar::set_has_schema() { + _oneof_case_[0] = kSchema; +} +inline void Scalar::clear_schema() { + if (has_schema()) { + delete value_.schema_; + clear_has_value(); + } +} +inline ::flyteidl::core::Schema* Scalar::release_schema() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.schema) + if (has_schema()) { + clear_has_value(); + ::flyteidl::core::Schema* temp = value_.schema_; + value_.schema_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Schema& Scalar::schema() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.schema) + return has_schema() + ? *value_.schema_ + : *reinterpret_cast< ::flyteidl::core::Schema*>(&::flyteidl::core::_Schema_default_instance_); +} +inline ::flyteidl::core::Schema* Scalar::mutable_schema() { + if (!has_schema()) { + clear_value(); + set_has_schema(); + value_.schema_ = new ::flyteidl::core::Schema; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.schema) + return value_.schema_; +} + +// .flyteidl.core.Void none_type = 5; +inline bool Scalar::has_none_type() const { + return value_case() == kNoneType; +} +inline void Scalar::set_has_none_type() { + _oneof_case_[0] = kNoneType; +} +inline void Scalar::clear_none_type() { + if (has_none_type()) { + delete value_.none_type_; + clear_has_value(); + } +} +inline ::flyteidl::core::Void* Scalar::release_none_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.none_type) + if (has_none_type()) { + clear_has_value(); + ::flyteidl::core::Void* temp = value_.none_type_; + value_.none_type_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Void& Scalar::none_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.none_type) + return has_none_type() + ? *value_.none_type_ + : *reinterpret_cast< ::flyteidl::core::Void*>(&::flyteidl::core::_Void_default_instance_); +} +inline ::flyteidl::core::Void* Scalar::mutable_none_type() { + if (!has_none_type()) { + clear_value(); + set_has_none_type(); + value_.none_type_ = new ::flyteidl::core::Void; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.none_type) + return value_.none_type_; +} + +// .flyteidl.core.Error error = 6; +inline bool Scalar::has_error() const { + return value_case() == kError; +} +inline void Scalar::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::Error* Scalar::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.error) + if (has_error()) { + clear_has_value(); + ::flyteidl::core::Error* temp = value_.error_; + value_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Error& Scalar::error() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.error) + return has_error() + ? *value_.error_ + : *reinterpret_cast< ::flyteidl::core::Error*>(&::flyteidl::core::_Error_default_instance_); +} +inline ::flyteidl::core::Error* Scalar::mutable_error() { + if (!has_error()) { + clear_value(); + set_has_error(); + value_.error_ = new ::flyteidl::core::Error; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.error) + return value_.error_; +} + +// .google.protobuf.Struct generic = 7; +inline bool Scalar::has_generic() const { + return value_case() == kGeneric; +} +inline void Scalar::set_has_generic() { + _oneof_case_[0] = kGeneric; +} +inline ::google::protobuf::Struct* Scalar::release_generic() { + // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.generic) + if (has_generic()) { + clear_has_value(); + ::google::protobuf::Struct* temp = value_.generic_; + value_.generic_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::google::protobuf::Struct& Scalar::generic() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.generic) + return has_generic() + ? *value_.generic_ + : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* Scalar::mutable_generic() { + if (!has_generic()) { + clear_value(); + set_has_generic(); + value_.generic_ = new ::google::protobuf::Struct; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.generic) + return value_.generic_; +} + +inline bool Scalar::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Scalar::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Scalar::ValueCase Scalar::value_case() const { + return Scalar::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Literal + +// .flyteidl.core.Scalar scalar = 1; +inline bool Literal::has_scalar() const { + return value_case() == kScalar; +} +inline void Literal::set_has_scalar() { + _oneof_case_[0] = kScalar; +} +inline void Literal::clear_scalar() { + if (has_scalar()) { + delete value_.scalar_; + clear_has_value(); + } +} +inline ::flyteidl::core::Scalar* Literal::release_scalar() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.scalar) + if (has_scalar()) { + clear_has_value(); + ::flyteidl::core::Scalar* temp = value_.scalar_; + value_.scalar_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Scalar& Literal::scalar() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.scalar) + return has_scalar() + ? *value_.scalar_ + : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); +} +inline ::flyteidl::core::Scalar* Literal::mutable_scalar() { + if (!has_scalar()) { + clear_value(); + set_has_scalar(); + value_.scalar_ = new ::flyteidl::core::Scalar; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.scalar) + return value_.scalar_; +} + +// .flyteidl.core.LiteralCollection collection = 2; +inline bool Literal::has_collection() const { + return value_case() == kCollection; +} +inline void Literal::set_has_collection() { + _oneof_case_[0] = kCollection; +} +inline void Literal::clear_collection() { + if (has_collection()) { + delete value_.collection_; + clear_has_value(); + } +} +inline ::flyteidl::core::LiteralCollection* Literal::release_collection() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.collection) + if (has_collection()) { + clear_has_value(); + ::flyteidl::core::LiteralCollection* temp = value_.collection_; + value_.collection_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::LiteralCollection& Literal::collection() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.collection) + return has_collection() + ? *value_.collection_ + : *reinterpret_cast< ::flyteidl::core::LiteralCollection*>(&::flyteidl::core::_LiteralCollection_default_instance_); +} +inline ::flyteidl::core::LiteralCollection* Literal::mutable_collection() { + if (!has_collection()) { + clear_value(); + set_has_collection(); + value_.collection_ = new ::flyteidl::core::LiteralCollection; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.collection) + return value_.collection_; +} + +// .flyteidl.core.LiteralMap map = 3; +inline bool Literal::has_map() const { + return value_case() == kMap; +} +inline void Literal::set_has_map() { + _oneof_case_[0] = kMap; +} +inline void Literal::clear_map() { + if (has_map()) { + delete value_.map_; + clear_has_value(); + } +} +inline ::flyteidl::core::LiteralMap* Literal::release_map() { + // @@protoc_insertion_point(field_release:flyteidl.core.Literal.map) + if (has_map()) { + clear_has_value(); + ::flyteidl::core::LiteralMap* temp = value_.map_; + value_.map_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::LiteralMap& Literal::map() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Literal.map) + return has_map() + ? *value_.map_ + : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); +} +inline ::flyteidl::core::LiteralMap* Literal::mutable_map() { + if (!has_map()) { + clear_value(); + set_has_map(); + value_.map_ = new ::flyteidl::core::LiteralMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.map) + return value_.map_; +} + +inline bool Literal::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void Literal::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline Literal::ValueCase Literal::value_case() const { + return Literal::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// LiteralCollection + +// repeated .flyteidl.core.Literal literals = 1; +inline int LiteralCollection::literals_size() const { + return literals_.size(); +} +inline void LiteralCollection::clear_literals() { + literals_.Clear(); +} +inline const ::flyteidl::core::Literal& LiteralCollection::literals(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralCollection.literals) + return literals_.Get(index); +} +inline ::flyteidl::core::Literal* LiteralCollection::mutable_literals(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralCollection.literals) + return literals_.Mutable(index); +} +inline ::flyteidl::core::Literal* LiteralCollection::add_literals() { + // @@protoc_insertion_point(field_add:flyteidl.core.LiteralCollection.literals) + return literals_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >* +LiteralCollection::mutable_literals() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.LiteralCollection.literals) + return &literals_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >& +LiteralCollection::literals() const { + // @@protoc_insertion_point(field_list:flyteidl.core.LiteralCollection.literals) + return literals_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// LiteralMap + +// map literals = 1; +inline int LiteralMap::literals_size() const { + return literals_.size(); +} +inline void LiteralMap::clear_literals() { + literals_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >& +LiteralMap::literals() const { + // @@protoc_insertion_point(field_map:flyteidl.core.LiteralMap.literals) + return literals_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >* +LiteralMap::mutable_literals() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.LiteralMap.literals) + return literals_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// BindingDataCollection + +// repeated .flyteidl.core.BindingData bindings = 1; +inline int BindingDataCollection::bindings_size() const { + return bindings_.size(); +} +inline void BindingDataCollection::clear_bindings() { + bindings_.Clear(); +} +inline const ::flyteidl::core::BindingData& BindingDataCollection::bindings(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingDataCollection.bindings) + return bindings_.Get(index); +} +inline ::flyteidl::core::BindingData* BindingDataCollection::mutable_bindings(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingDataCollection.bindings) + return bindings_.Mutable(index); +} +inline ::flyteidl::core::BindingData* BindingDataCollection::add_bindings() { + // @@protoc_insertion_point(field_add:flyteidl.core.BindingDataCollection.bindings) + return bindings_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >* +BindingDataCollection::mutable_bindings() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.BindingDataCollection.bindings) + return &bindings_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >& +BindingDataCollection::bindings() const { + // @@protoc_insertion_point(field_list:flyteidl.core.BindingDataCollection.bindings) + return bindings_; +} + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// BindingDataMap + +// map bindings = 1; +inline int BindingDataMap::bindings_size() const { + return bindings_.size(); +} +inline void BindingDataMap::clear_bindings() { + bindings_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >& +BindingDataMap::bindings() const { + // @@protoc_insertion_point(field_map:flyteidl.core.BindingDataMap.bindings) + return bindings_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >* +BindingDataMap::mutable_bindings() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.core.BindingDataMap.bindings) + return bindings_.MutableMap(); +} + +// ------------------------------------------------------------------- + +// BindingData + +// .flyteidl.core.Scalar scalar = 1; +inline bool BindingData::has_scalar() const { + return value_case() == kScalar; +} +inline void BindingData::set_has_scalar() { + _oneof_case_[0] = kScalar; +} +inline void BindingData::clear_scalar() { + if (has_scalar()) { + delete value_.scalar_; + clear_has_value(); + } +} +inline ::flyteidl::core::Scalar* BindingData::release_scalar() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.scalar) + if (has_scalar()) { + clear_has_value(); + ::flyteidl::core::Scalar* temp = value_.scalar_; + value_.scalar_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Scalar& BindingData::scalar() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.scalar) + return has_scalar() + ? *value_.scalar_ + : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); +} +inline ::flyteidl::core::Scalar* BindingData::mutable_scalar() { + if (!has_scalar()) { + clear_value(); + set_has_scalar(); + value_.scalar_ = new ::flyteidl::core::Scalar; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.scalar) + return value_.scalar_; +} + +// .flyteidl.core.BindingDataCollection collection = 2; +inline bool BindingData::has_collection() const { + return value_case() == kCollection; +} +inline void BindingData::set_has_collection() { + _oneof_case_[0] = kCollection; +} +inline void BindingData::clear_collection() { + if (has_collection()) { + delete value_.collection_; + clear_has_value(); + } +} +inline ::flyteidl::core::BindingDataCollection* BindingData::release_collection() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.collection) + if (has_collection()) { + clear_has_value(); + ::flyteidl::core::BindingDataCollection* temp = value_.collection_; + value_.collection_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::BindingDataCollection& BindingData::collection() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.collection) + return has_collection() + ? *value_.collection_ + : *reinterpret_cast< ::flyteidl::core::BindingDataCollection*>(&::flyteidl::core::_BindingDataCollection_default_instance_); +} +inline ::flyteidl::core::BindingDataCollection* BindingData::mutable_collection() { + if (!has_collection()) { + clear_value(); + set_has_collection(); + value_.collection_ = new ::flyteidl::core::BindingDataCollection; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.collection) + return value_.collection_; +} + +// .flyteidl.core.OutputReference promise = 3; +inline bool BindingData::has_promise() const { + return value_case() == kPromise; +} +inline void BindingData::set_has_promise() { + _oneof_case_[0] = kPromise; +} +inline ::flyteidl::core::OutputReference* BindingData::release_promise() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.promise) + if (has_promise()) { + clear_has_value(); + ::flyteidl::core::OutputReference* temp = value_.promise_; + value_.promise_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::OutputReference& BindingData::promise() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.promise) + return has_promise() + ? *value_.promise_ + : *reinterpret_cast< ::flyteidl::core::OutputReference*>(&::flyteidl::core::_OutputReference_default_instance_); +} +inline ::flyteidl::core::OutputReference* BindingData::mutable_promise() { + if (!has_promise()) { + clear_value(); + set_has_promise(); + value_.promise_ = new ::flyteidl::core::OutputReference; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.promise) + return value_.promise_; +} + +// .flyteidl.core.BindingDataMap map = 4; +inline bool BindingData::has_map() const { + return value_case() == kMap; +} +inline void BindingData::set_has_map() { + _oneof_case_[0] = kMap; +} +inline void BindingData::clear_map() { + if (has_map()) { + delete value_.map_; + clear_has_value(); + } +} +inline ::flyteidl::core::BindingDataMap* BindingData::release_map() { + // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.map) + if (has_map()) { + clear_has_value(); + ::flyteidl::core::BindingDataMap* temp = value_.map_; + value_.map_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::BindingDataMap& BindingData::map() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.map) + return has_map() + ? *value_.map_ + : *reinterpret_cast< ::flyteidl::core::BindingDataMap*>(&::flyteidl::core::_BindingDataMap_default_instance_); +} +inline ::flyteidl::core::BindingDataMap* BindingData::mutable_map() { + if (!has_map()) { + clear_value(); + set_has_map(); + value_.map_ = new ::flyteidl::core::BindingDataMap; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.map) + return value_.map_; +} + +inline bool BindingData::has_value() const { + return value_case() != VALUE_NOT_SET; +} +inline void BindingData::clear_has_value() { + _oneof_case_[0] = VALUE_NOT_SET; +} +inline BindingData::ValueCase BindingData::value_case() const { + return BindingData::ValueCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// Binding + +// string var = 1; +inline void Binding::clear_var() { + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Binding::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Binding.var) + return var_.GetNoArena(); +} +inline void Binding::set_var(const ::std::string& value) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Binding.var) +} +#if LANG_CXX11 +inline void Binding::set_var(::std::string&& value) { + + var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binding.var) +} +#endif +inline void Binding::set_var(const char* value) { + GOOGLE_DCHECK(value != NULL); + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Binding.var) +} +inline void Binding::set_var(const char* value, size_t size) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binding.var) +} +inline ::std::string* Binding::mutable_var() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binding.var) + return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Binding::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binding.var) + + return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Binding::set_allocated_var(::std::string* var) { + if (var != NULL) { + + } else { + + } + var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binding.var) +} + +// .flyteidl.core.BindingData binding = 2; +inline bool Binding::has_binding() const { + return this != internal_default_instance() && binding_ != NULL; +} +inline void Binding::clear_binding() { + if (GetArenaNoVirtual() == NULL && binding_ != NULL) { + delete binding_; + } + binding_ = NULL; +} +inline const ::flyteidl::core::BindingData& Binding::binding() const { + const ::flyteidl::core::BindingData* p = binding_; + // @@protoc_insertion_point(field_get:flyteidl.core.Binding.binding) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_BindingData_default_instance_); +} +inline ::flyteidl::core::BindingData* Binding::release_binding() { + // @@protoc_insertion_point(field_release:flyteidl.core.Binding.binding) + + ::flyteidl::core::BindingData* temp = binding_; + binding_ = NULL; + return temp; +} +inline ::flyteidl::core::BindingData* Binding::mutable_binding() { + + if (binding_ == NULL) { + binding_ = new ::flyteidl::core::BindingData; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Binding.binding) + return binding_; +} +inline void Binding::set_allocated_binding(::flyteidl::core::BindingData* binding) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete binding_; + } + if (binding) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + binding = ::google::protobuf::internal::GetOwnedMessage( + message_arena, binding, submessage_arena); + } + + } else { + + } + binding_ = binding; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binding.binding) +} + +// ------------------------------------------------------------------- + +// KeyValuePair + +// string key = 1; +inline void KeyValuePair::clear_key() { + key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& KeyValuePair::key() const { + // @@protoc_insertion_point(field_get:flyteidl.core.KeyValuePair.key) + return key_.GetNoArena(); +} +inline void KeyValuePair::set_key(const ::std::string& value) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.KeyValuePair.key) +} +#if LANG_CXX11 +inline void KeyValuePair::set_key(::std::string&& value) { + + key_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.KeyValuePair.key) +} +#endif +inline void KeyValuePair::set_key(const char* value) { + GOOGLE_DCHECK(value != NULL); + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.KeyValuePair.key) +} +inline void KeyValuePair::set_key(const char* value, size_t size) { + + key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.KeyValuePair.key) +} +inline ::std::string* KeyValuePair::mutable_key() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.KeyValuePair.key) + return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_key() { + // @@protoc_insertion_point(field_release:flyteidl.core.KeyValuePair.key) + + return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void KeyValuePair::set_allocated_key(::std::string* key) { + if (key != NULL) { + + } else { + + } + key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.KeyValuePair.key) +} + +// string value = 2; +inline void KeyValuePair::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& KeyValuePair::value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.KeyValuePair.value) + return value_.GetNoArena(); +} +inline void KeyValuePair::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.KeyValuePair.value) +} +#if LANG_CXX11 +inline void KeyValuePair::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.KeyValuePair.value) +} +#endif +inline void KeyValuePair::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.KeyValuePair.value) +} +inline void KeyValuePair::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.KeyValuePair.value) +} +inline ::std::string* KeyValuePair::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.KeyValuePair.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* KeyValuePair::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.KeyValuePair.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void KeyValuePair::set_allocated_value(::std::string* value) { + if (value != NULL) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.KeyValuePair.value) +} + +// ------------------------------------------------------------------- + +// RetryStrategy + +// uint32 retries = 5; +inline void RetryStrategy::clear_retries() { + retries_ = 0u; +} +inline ::google::protobuf::uint32 RetryStrategy::retries() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RetryStrategy.retries) + return retries_; +} +inline void RetryStrategy::set_retries(::google::protobuf::uint32 value) { + + retries_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.RetryStrategy.retries) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fliterals_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc new file mode 100644 index 0000000000..b0169c3064 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/tasks.proto + +#include "flyteidl/core/tasks.pb.h" +#include "flyteidl/core/tasks.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h new file mode 100644 index 0000000000..3396626158 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/tasks.proto +#ifndef GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED + +#include "flyteidl/core/tasks.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc new file mode 100644 index 0000000000..13b2a338a5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc @@ -0,0 +1,3236 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +#include "flyteidl/core/tasks.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class Resources_ResourceEntryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Resources_ResourceEntry_default_instance_; +class ResourcesDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Resources_default_instance_; +class RuntimeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _RuntimeMetadata_default_instance_; +class TaskMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _TaskMetadata_default_instance_; +class TaskTemplateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Container* container_; +} _TaskTemplate_default_instance_; +class ContainerPortDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ContainerPort_default_instance_; +class ContainerDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Container_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2ftasks_2eproto { +void InitDefaultsResources_ResourceEntryImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_Resources_ResourceEntry_default_instance_; + new (ptr) ::flyteidl::core::Resources_ResourceEntry(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Resources_ResourceEntry::InitAsDefaultInstance(); +} + +void InitDefaultsResources_ResourceEntry() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResources_ResourceEntryImpl); +} + +void InitDefaultsResourcesImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources_ResourceEntry(); + { + void* ptr = &::flyteidl::core::_Resources_default_instance_; + new (ptr) ::flyteidl::core::Resources(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Resources::InitAsDefaultInstance(); +} + +void InitDefaultsResources() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResourcesImpl); +} + +void InitDefaultsRuntimeMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_RuntimeMetadata_default_instance_; + new (ptr) ::flyteidl::core::RuntimeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::RuntimeMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsRuntimeMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRuntimeMetadataImpl); +} + +void InitDefaultsTaskMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsRuntimeMetadata(); + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsRetryStrategy(); + { + void* ptr = &::flyteidl::core::_TaskMetadata_default_instance_; + new (ptr) ::flyteidl::core::TaskMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsTaskMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskMetadataImpl); +} + +void InitDefaultsTaskTemplateImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskMetadata(); + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsTypedInterface(); + protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue(); + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainer(); + { + void* ptr = &::flyteidl::core::_TaskTemplate_default_instance_; + new (ptr) ::flyteidl::core::TaskTemplate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskTemplate::InitAsDefaultInstance(); +} + +void InitDefaultsTaskTemplate() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskTemplateImpl); +} + +void InitDefaultsContainerPortImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_ContainerPort_default_instance_; + new (ptr) ::flyteidl::core::ContainerPort(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::ContainerPort::InitAsDefaultInstance(); +} + +void InitDefaultsContainerPort() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsContainerPortImpl); +} + +void InitDefaultsContainerImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsKeyValuePair(); + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainerPort(); + { + void* ptr = &::flyteidl::core::_Container_default_instance_; + new (ptr) ::flyteidl::core::Container(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Container::InitAsDefaultInstance(); +} + +void InitDefaultsContainer() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsContainerImpl); +} + +::google::protobuf::Metadata file_level_metadata[7]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, value_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Resources, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Resources, requests_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Resources, limits_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, flavor_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, discoverable_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, runtime_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, timeout_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, retries_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, discovery_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskMetadata, deprecated_error_message_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, type_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, interface_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, custom_), + offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, container_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskTemplate, target_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ContainerPort, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::ContainerPort, container_port_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, image_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, command_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, args_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, resources_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, env_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, config_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Container, ports_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::Resources_ResourceEntry)}, + { 7, -1, sizeof(::flyteidl::core::Resources)}, + { 14, -1, sizeof(::flyteidl::core::RuntimeMetadata)}, + { 22, -1, sizeof(::flyteidl::core::TaskMetadata)}, + { 33, -1, sizeof(::flyteidl::core::TaskTemplate)}, + { 45, -1, sizeof(::flyteidl::core::ContainerPort)}, + { 51, -1, sizeof(::flyteidl::core::Container)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_Resources_ResourceEntry_default_instance_), + reinterpret_cast(&::flyteidl::core::_Resources_default_instance_), + reinterpret_cast(&::flyteidl::core::_RuntimeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskTemplate_default_instance_), + reinterpret_cast(&::flyteidl::core::_ContainerPort_default_instance_), + reinterpret_cast(&::flyteidl::core::_Container_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/tasks.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 7); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\031flyteidl/core/tasks.proto\022\rflyteidl.co" + "re\032\036flyteidl/core/identifier.proto\032\035flyt" + "eidl/core/interface.proto\032\034flyteidl/core" + "/literals.proto\032\036google/protobuf/duratio" + "n.proto\032\034google/protobuf/struct.proto\"\232\002" + "\n\tResources\0228\n\010requests\030\001 \003(\0132&.flyteidl" + ".core.Resources.ResourceEntry\0226\n\006limits\030" + "\002 \003(\0132&.flyteidl.core.Resources.Resource" + "Entry\032S\n\rResourceEntry\0223\n\004name\030\001 \001(\0162%.f" + "lyteidl.core.Resources.ResourceName\022\r\n\005v" + "alue\030\002 \001(\t\"F\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022" + "\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE" + "\020\004\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.f" + "lyteidl.core.RuntimeMetadata.RuntimeType" + "\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Run" + "timeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\355\001\n\014T" + "askMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007run" + "time\030\002 \001(\0132\036.flyteidl.core.RuntimeMetada" + "ta\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Du" + "ration\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core." + "RetryStrategy\022\031\n\021discovery_version\030\006 \001(\t" + "\022 \n\030deprecated_error_message\030\007 \001(\t\"\206\002\n\014T" + "askTemplate\022%\n\002id\030\001 \001(\0132\031.flyteidl.core." + "Identifier\022\014\n\004type\030\002 \001(\t\022-\n\010metadata\030\003 \001" + "(\0132\033.flyteidl.core.TaskMetadata\0220\n\tinter" + "face\030\004 \001(\0132\035.flyteidl.core.TypedInterfac" + "e\022\'\n\006custom\030\005 \001(\0132\027.google.protobuf.Stru" + "ct\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl.core.Co" + "ntainerH\000B\010\n\006target\"\'\n\rContainerPort\022\026\n\016" + "container_port\030\001 \001(\r\"\352\001\n\tContainer\022\r\n\005im" + "age\030\001 \001(\t\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t" + "\022+\n\tresources\030\004 \001(\0132\030.flyteidl.core.Reso" + "urces\022(\n\003env\030\005 \003(\0132\033.flyteidl.core.KeyVa" + "luePair\022+\n\006config\030\006 \003(\0132\033.flyteidl.core." + "KeyValuePair\022+\n\005ports\030\007 \003(\0132\034.flyteidl.c" + "ore.ContainerPortB2Z0github.com/lyft/fly" + "teidl/gen/pb-go/flyteidl/coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1477); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/tasks.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2finterface_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2ftasks_2eproto +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* Resources_ResourceName_descriptor() { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_enum_descriptors[0]; +} +bool Resources_ResourceName_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const Resources_ResourceName Resources::UNKNOWN; +const Resources_ResourceName Resources::CPU; +const Resources_ResourceName Resources::GPU; +const Resources_ResourceName Resources::MEMORY; +const Resources_ResourceName Resources::STORAGE; +const Resources_ResourceName Resources::ResourceName_MIN; +const Resources_ResourceName Resources::ResourceName_MAX; +const int Resources::ResourceName_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* RuntimeMetadata_RuntimeType_descriptor() { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_enum_descriptors[1]; +} +bool RuntimeMetadata_RuntimeType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const RuntimeMetadata_RuntimeType RuntimeMetadata::OTHER; +const RuntimeMetadata_RuntimeType RuntimeMetadata::FLYTE_SDK; +const RuntimeMetadata_RuntimeType RuntimeMetadata::RuntimeType_MIN; +const RuntimeMetadata_RuntimeType RuntimeMetadata::RuntimeType_MAX; +const int RuntimeMetadata::RuntimeType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void Resources_ResourceEntry::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Resources_ResourceEntry::kNameFieldNumber; +const int Resources_ResourceEntry::kValueFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Resources_ResourceEntry::Resources_ResourceEntry() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources_ResourceEntry(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Resources.ResourceEntry) +} +Resources_ResourceEntry::Resources_ResourceEntry(const Resources_ResourceEntry& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.value().size() > 0) { + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + name_ = from.name_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Resources.ResourceEntry) +} + +void Resources_ResourceEntry::SharedCtor() { + value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_ = 0; + _cached_size_ = 0; +} + +Resources_ResourceEntry::~Resources_ResourceEntry() { + // @@protoc_insertion_point(destructor:flyteidl.core.Resources.ResourceEntry) + SharedDtor(); +} + +void Resources_ResourceEntry::SharedDtor() { + value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Resources_ResourceEntry::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Resources_ResourceEntry::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Resources_ResourceEntry& Resources_ResourceEntry::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources_ResourceEntry(); + return *internal_default_instance(); +} + +Resources_ResourceEntry* Resources_ResourceEntry::New(::google::protobuf::Arena* arena) const { + Resources_ResourceEntry* n = new Resources_ResourceEntry; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Resources_ResourceEntry::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + name_ = 0; + _internal_metadata_.Clear(); +} + +bool Resources_ResourceEntry::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Resources.ResourceEntry) + 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)) { + // .flyteidl.core.Resources.ResourceName name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_name(static_cast< ::flyteidl::core::Resources_ResourceName >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string value = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_value())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Resources.ResourceEntry.value")); + } 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.Resources.ResourceEntry) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Resources.ResourceEntry) + return false; +#undef DO_ +} + +void Resources_ResourceEntry::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Resources.ResourceName name = 1; + if (this->name() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->name(), output); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Resources.ResourceEntry.value"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->value(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Resources.ResourceEntry) +} + +::google::protobuf::uint8* Resources_ResourceEntry::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Resources.ResourceName name = 1; + if (this->name() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->name(), target); + } + + // string value = 2; + if (this->value().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->value().data(), static_cast(this->value().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Resources.ResourceEntry.value"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->value(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Resources.ResourceEntry) + return target; +} + +size_t Resources_ResourceEntry::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Resources.ResourceEntry) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string value = 2; + if (this->value().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->value()); + } + + // .flyteidl.core.Resources.ResourceName name = 1; + if (this->name() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->name()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Resources_ResourceEntry::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Resources.ResourceEntry) + GOOGLE_DCHECK_NE(&from, this); + const Resources_ResourceEntry* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Resources.ResourceEntry) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Resources.ResourceEntry) + MergeFrom(*source); + } +} + +void Resources_ResourceEntry::MergeFrom(const Resources_ResourceEntry& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Resources.ResourceEntry) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.value().size() > 0) { + + value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); + } + if (from.name() != 0) { + set_name(from.name()); + } +} + +void Resources_ResourceEntry::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Resources.ResourceEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Resources_ResourceEntry::CopyFrom(const Resources_ResourceEntry& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Resources.ResourceEntry) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Resources_ResourceEntry::IsInitialized() const { + return true; +} + +void Resources_ResourceEntry::Swap(Resources_ResourceEntry* other) { + if (other == this) return; + InternalSwap(other); +} +void Resources_ResourceEntry::InternalSwap(Resources_ResourceEntry* other) { + using std::swap; + value_.Swap(&other->value_); + swap(name_, other->name_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Resources_ResourceEntry::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Resources::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Resources::kRequestsFieldNumber; +const int Resources::kLimitsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Resources::Resources() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Resources) +} +Resources::Resources(const Resources& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + requests_(from.requests_), + limits_(from.limits_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Resources) +} + +void Resources::SharedCtor() { + _cached_size_ = 0; +} + +Resources::~Resources() { + // @@protoc_insertion_point(destructor:flyteidl.core.Resources) + SharedDtor(); +} + +void Resources::SharedDtor() { +} + +void Resources::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Resources::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Resources& Resources::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources(); + return *internal_default_instance(); +} + +Resources* Resources::New(::google::protobuf::Arena* arena) const { + Resources* n = new Resources; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Resources::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Resources) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + requests_.Clear(); + limits_.Clear(); + _internal_metadata_.Clear(); +} + +bool Resources::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Resources) + 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.Resources.ResourceEntry requests = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_requests())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_limits())); + } 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.Resources) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Resources) + return false; +#undef DO_ +} + +void Resources::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Resources) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + for (unsigned int i = 0, + n = static_cast(this->requests_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->requests(static_cast(i)), output); + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + for (unsigned int i = 0, + n = static_cast(this->limits_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->limits(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Resources) +} + +::google::protobuf::uint8* Resources::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Resources) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + for (unsigned int i = 0, + n = static_cast(this->requests_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->requests(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + for (unsigned int i = 0, + n = static_cast(this->limits_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->limits(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Resources) + return target; +} + +size_t Resources::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Resources) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + { + unsigned int count = static_cast(this->requests_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->requests(static_cast(i))); + } + } + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + { + unsigned int count = static_cast(this->limits_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->limits(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Resources::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Resources) + GOOGLE_DCHECK_NE(&from, this); + const Resources* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Resources) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Resources) + MergeFrom(*source); + } +} + +void Resources::MergeFrom(const Resources& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Resources) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + requests_.MergeFrom(from.requests_); + limits_.MergeFrom(from.limits_); +} + +void Resources::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Resources) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Resources::CopyFrom(const Resources& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Resources) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Resources::IsInitialized() const { + return true; +} + +void Resources::Swap(Resources* other) { + if (other == this) return; + InternalSwap(other); +} +void Resources::InternalSwap(Resources* other) { + using std::swap; + requests_.InternalSwap(&other->requests_); + limits_.InternalSwap(&other->limits_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Resources::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void RuntimeMetadata::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int RuntimeMetadata::kTypeFieldNumber; +const int RuntimeMetadata::kVersionFieldNumber; +const int RuntimeMetadata::kFlavorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +RuntimeMetadata::RuntimeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsRuntimeMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.RuntimeMetadata) +} +RuntimeMetadata::RuntimeMetadata(const RuntimeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.version().size() > 0) { + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + flavor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.flavor().size() > 0) { + flavor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flavor_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.RuntimeMetadata) +} + +void RuntimeMetadata::SharedCtor() { + version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + flavor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _cached_size_ = 0; +} + +RuntimeMetadata::~RuntimeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.RuntimeMetadata) + SharedDtor(); +} + +void RuntimeMetadata::SharedDtor() { + version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + flavor_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void RuntimeMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RuntimeMetadata::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const RuntimeMetadata& RuntimeMetadata::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsRuntimeMetadata(); + return *internal_default_instance(); +} + +RuntimeMetadata* RuntimeMetadata::New(::google::protobuf::Arena* arena) const { + RuntimeMetadata* n = new RuntimeMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void RuntimeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.RuntimeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + flavor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +bool RuntimeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.RuntimeMetadata) + 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)) { + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyteidl::core::RuntimeMetadata_RuntimeType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string version = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.RuntimeMetadata.version")); + } else { + goto handle_unusual; + } + break; + } + + // string flavor = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_flavor())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flavor().data(), static_cast(this->flavor().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.RuntimeMetadata.flavor")); + } 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.RuntimeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.RuntimeMetadata) + return false; +#undef DO_ +} + +void RuntimeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.RuntimeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->type(), output); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->version(), output); + } + + // string flavor = 3; + if (this->flavor().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flavor().data(), static_cast(this->flavor().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.flavor"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->flavor(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.RuntimeMetadata) +} + +::google::protobuf::uint8* RuntimeMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.RuntimeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->type(), target); + } + + // string version = 2; + if (this->version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->version().data(), static_cast(this->version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->version(), target); + } + + // string flavor = 3; + if (this->flavor().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->flavor().data(), static_cast(this->flavor().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.RuntimeMetadata.flavor"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->flavor(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.RuntimeMetadata) + return target; +} + +size_t RuntimeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.RuntimeMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string version = 2; + if (this->version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->version()); + } + + // string flavor = 3; + if (this->flavor().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->flavor()); + } + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RuntimeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.RuntimeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const RuntimeMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.RuntimeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.RuntimeMetadata) + MergeFrom(*source); + } +} + +void RuntimeMetadata::MergeFrom(const RuntimeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.RuntimeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.version().size() > 0) { + + version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); + } + if (from.flavor().size() > 0) { + + flavor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flavor_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void RuntimeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.RuntimeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RuntimeMetadata::CopyFrom(const RuntimeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.RuntimeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RuntimeMetadata::IsInitialized() const { + return true; +} + +void RuntimeMetadata::Swap(RuntimeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void RuntimeMetadata::InternalSwap(RuntimeMetadata* other) { + using std::swap; + version_.Swap(&other->version_); + flavor_.Swap(&other->flavor_); + swap(type_, other->type_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata RuntimeMetadata::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->runtime_ = const_cast< ::flyteidl::core::RuntimeMetadata*>( + ::flyteidl::core::RuntimeMetadata::internal_default_instance()); + ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->timeout_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->retries_ = const_cast< ::flyteidl::core::RetryStrategy*>( + ::flyteidl::core::RetryStrategy::internal_default_instance()); +} +void TaskMetadata::clear_timeout() { + if (GetArenaNoVirtual() == NULL && timeout_ != NULL) { + delete timeout_; + } + timeout_ = NULL; +} +void TaskMetadata::clear_retries() { + if (GetArenaNoVirtual() == NULL && retries_ != NULL) { + delete retries_; + } + retries_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskMetadata::kDiscoverableFieldNumber; +const int TaskMetadata::kRuntimeFieldNumber; +const int TaskMetadata::kTimeoutFieldNumber; +const int TaskMetadata::kRetriesFieldNumber; +const int TaskMetadata::kDiscoveryVersionFieldNumber; +const int TaskMetadata::kDeprecatedErrorMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskMetadata::TaskMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskMetadata) +} +TaskMetadata::TaskMetadata(const TaskMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + discovery_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.discovery_version().size() > 0) { + discovery_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.discovery_version_); + } + deprecated_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.deprecated_error_message().size() > 0) { + deprecated_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_error_message_); + } + if (from.has_runtime()) { + runtime_ = new ::flyteidl::core::RuntimeMetadata(*from.runtime_); + } else { + runtime_ = NULL; + } + if (from.has_timeout()) { + timeout_ = new ::google::protobuf::Duration(*from.timeout_); + } else { + timeout_ = NULL; + } + if (from.has_retries()) { + retries_ = new ::flyteidl::core::RetryStrategy(*from.retries_); + } else { + retries_ = NULL; + } + discoverable_ = from.discoverable_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskMetadata) +} + +void TaskMetadata::SharedCtor() { + discovery_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deprecated_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&runtime_, 0, static_cast( + reinterpret_cast(&discoverable_) - + reinterpret_cast(&runtime_)) + sizeof(discoverable_)); + _cached_size_ = 0; +} + +TaskMetadata::~TaskMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskMetadata) + SharedDtor(); +} + +void TaskMetadata::SharedDtor() { + discovery_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deprecated_error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete runtime_; + if (this != internal_default_instance()) delete timeout_; + if (this != internal_default_instance()) delete retries_; +} + +void TaskMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskMetadata::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskMetadata& TaskMetadata::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskMetadata(); + return *internal_default_instance(); +} + +TaskMetadata* TaskMetadata::New(::google::protobuf::Arena* arena) const { + TaskMetadata* n = new TaskMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + discovery_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + deprecated_error_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && runtime_ != NULL) { + delete runtime_; + } + runtime_ = NULL; + if (GetArenaNoVirtual() == NULL && timeout_ != NULL) { + delete timeout_; + } + timeout_ = NULL; + if (GetArenaNoVirtual() == NULL && retries_ != NULL) { + delete retries_; + } + retries_ = NULL; + discoverable_ = false; + _internal_metadata_.Clear(); +} + +bool TaskMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskMetadata) + 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)) { + // bool discoverable = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &discoverable_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_runtime())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration timeout = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_timeout())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.RetryStrategy retries = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_retries())); + } else { + goto handle_unusual; + } + break; + } + + // string discovery_version = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_discovery_version())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->discovery_version().data(), static_cast(this->discovery_version().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.discovery_version")); + } else { + goto handle_unusual; + } + break; + } + + // string deprecated_error_message = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_deprecated_error_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskMetadata.deprecated_error_message")); + } 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.TaskMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskMetadata) + return false; +#undef DO_ +} + +void TaskMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool discoverable = 1; + if (this->discoverable() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->discoverable(), output); + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + if (this->has_runtime()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->runtime_, output); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->timeout_, output); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->retries_, output); + } + + // string discovery_version = 6; + if (this->discovery_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->discovery_version().data(), static_cast(this->discovery_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.discovery_version"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->discovery_version(), output); + } + + // string deprecated_error_message = 7; + if (this->deprecated_error_message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.deprecated_error_message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 7, this->deprecated_error_message(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskMetadata) +} + +::google::protobuf::uint8* TaskMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // bool discoverable = 1; + if (this->discoverable() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->discoverable(), target); + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + if (this->has_runtime()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->runtime_, deterministic, target); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->timeout_, deterministic, target); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->retries_, deterministic, target); + } + + // string discovery_version = 6; + if (this->discovery_version().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->discovery_version().data(), static_cast(this->discovery_version().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.discovery_version"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->discovery_version(), target); + } + + // string deprecated_error_message = 7; + if (this->deprecated_error_message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskMetadata.deprecated_error_message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 7, this->deprecated_error_message(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskMetadata) + return target; +} + +size_t TaskMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string discovery_version = 6; + if (this->discovery_version().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->discovery_version()); + } + + // string deprecated_error_message = 7; + if (this->deprecated_error_message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->deprecated_error_message()); + } + + // .flyteidl.core.RuntimeMetadata runtime = 2; + if (this->has_runtime()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->runtime_); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->timeout_); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->retries_); + } + + // bool discoverable = 1; + if (this->discoverable() != 0) { + total_size += 1 + 1; + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskMetadata) + GOOGLE_DCHECK_NE(&from, this); + const TaskMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskMetadata) + MergeFrom(*source); + } +} + +void TaskMetadata::MergeFrom(const TaskMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.discovery_version().size() > 0) { + + discovery_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.discovery_version_); + } + if (from.deprecated_error_message().size() > 0) { + + deprecated_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_error_message_); + } + if (from.has_runtime()) { + mutable_runtime()->::flyteidl::core::RuntimeMetadata::MergeFrom(from.runtime()); + } + if (from.has_timeout()) { + mutable_timeout()->::google::protobuf::Duration::MergeFrom(from.timeout()); + } + if (from.has_retries()) { + mutable_retries()->::flyteidl::core::RetryStrategy::MergeFrom(from.retries()); + } + if (from.discoverable() != 0) { + set_discoverable(from.discoverable()); + } +} + +void TaskMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskMetadata::CopyFrom(const TaskMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskMetadata::IsInitialized() const { + return true; +} + +void TaskMetadata::Swap(TaskMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskMetadata::InternalSwap(TaskMetadata* other) { + using std::swap; + discovery_version_.Swap(&other->discovery_version_); + deprecated_error_message_.Swap(&other->deprecated_error_message_); + swap(runtime_, other->runtime_); + swap(timeout_, other->timeout_); + swap(retries_, other->retries_); + swap(discoverable_, other->discoverable_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskMetadata::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskTemplate::InitAsDefaultInstance() { + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::TaskMetadata*>( + ::flyteidl::core::TaskMetadata::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->interface_ = const_cast< ::flyteidl::core::TypedInterface*>( + ::flyteidl::core::TypedInterface::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->custom_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); + ::flyteidl::core::_TaskTemplate_default_instance_.container_ = const_cast< ::flyteidl::core::Container*>( + ::flyteidl::core::Container::internal_default_instance()); +} +void TaskTemplate::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +void TaskTemplate::clear_interface() { + if (GetArenaNoVirtual() == NULL && interface_ != NULL) { + delete interface_; + } + interface_ = NULL; +} +void TaskTemplate::clear_custom() { + if (GetArenaNoVirtual() == NULL && custom_ != NULL) { + delete custom_; + } + custom_ = NULL; +} +void TaskTemplate::set_allocated_container(::flyteidl::core::Container* container) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (container) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + container = ::google::protobuf::internal::GetOwnedMessage( + message_arena, container, submessage_arena); + } + set_has_container(); + target_.container_ = container; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.container) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskTemplate::kIdFieldNumber; +const int TaskTemplate::kTypeFieldNumber; +const int TaskTemplate::kMetadataFieldNumber; +const int TaskTemplate::kInterfaceFieldNumber; +const int TaskTemplate::kCustomFieldNumber; +const int TaskTemplate::kContainerFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskTemplate::TaskTemplate() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplate(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskTemplate) +} +TaskTemplate::TaskTemplate(const TaskTemplate& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.type().size() > 0) { + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::TaskMetadata(*from.metadata_); + } else { + metadata_ = NULL; + } + if (from.has_interface()) { + interface_ = new ::flyteidl::core::TypedInterface(*from.interface_); + } else { + interface_ = NULL; + } + if (from.has_custom()) { + custom_ = new ::google::protobuf::Struct(*from.custom_); + } else { + custom_ = NULL; + } + clear_has_target(); + switch (from.target_case()) { + case kContainer: { + mutable_container()->::flyteidl::core::Container::MergeFrom(from.container()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskTemplate) +} + +void TaskTemplate::SharedCtor() { + type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&custom_) - + reinterpret_cast(&id_)) + sizeof(custom_)); + clear_has_target(); + _cached_size_ = 0; +} + +TaskTemplate::~TaskTemplate() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskTemplate) + SharedDtor(); +} + +void TaskTemplate::SharedDtor() { + type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete interface_; + if (this != internal_default_instance()) delete custom_; + if (has_target()) { + clear_target(); + } +} + +void TaskTemplate::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskTemplate::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskTemplate& TaskTemplate::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplate(); + return *internal_default_instance(); +} + +TaskTemplate* TaskTemplate::New(::google::protobuf::Arena* arena) const { + TaskTemplate* n = new TaskTemplate; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskTemplate::clear_target() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskTemplate) + switch (target_case()) { + case kContainer: { + delete target_.container_; + break; + } + case TARGET_NOT_SET: { + break; + } + } + _oneof_case_[0] = TARGET_NOT_SET; +} + + +void TaskTemplate::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; + if (GetArenaNoVirtual() == NULL && interface_ != NULL) { + delete interface_; + } + interface_ = NULL; + if (GetArenaNoVirtual() == NULL && custom_ != NULL) { + delete custom_; + } + custom_ = NULL; + clear_target(); + _internal_metadata_.Clear(); +} + +bool TaskTemplate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskTemplate) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_type())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.TaskTemplate.type")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskMetadata metadata = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TypedInterface interface = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interface())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct custom = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_custom())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Container container = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_container())); + } 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.TaskTemplate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskTemplate) + return false; +#undef DO_ +} + +void TaskTemplate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // string type = 2; + if (this->type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.type"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->type(), output); + } + + // .flyteidl.core.TaskMetadata metadata = 3; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->metadata_, output); + } + + // .flyteidl.core.TypedInterface interface = 4; + if (this->has_interface()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->interface_, output); + } + + // .google.protobuf.Struct custom = 5; + if (this->has_custom()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->custom_, output); + } + + // .flyteidl.core.Container container = 6; + if (has_container()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *target_.container_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskTemplate) +} + +::google::protobuf::uint8* TaskTemplate::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // string type = 2; + if (this->type().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->type().data(), static_cast(this->type().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.TaskTemplate.type"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->type(), target); + } + + // .flyteidl.core.TaskMetadata metadata = 3; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->metadata_, deterministic, target); + } + + // .flyteidl.core.TypedInterface interface = 4; + if (this->has_interface()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->interface_, deterministic, target); + } + + // .google.protobuf.Struct custom = 5; + if (this->has_custom()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->custom_, deterministic, target); + } + + // .flyteidl.core.Container container = 6; + if (has_container()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *target_.container_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskTemplate) + return target; +} + +size_t TaskTemplate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskTemplate) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string type = 2; + if (this->type().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->type()); + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.core.TaskMetadata metadata = 3; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->metadata_); + } + + // .flyteidl.core.TypedInterface interface = 4; + if (this->has_interface()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->interface_); + } + + // .google.protobuf.Struct custom = 5; + if (this->has_custom()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->custom_); + } + + switch (target_case()) { + // .flyteidl.core.Container container = 6; + case kContainer: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.container_); + break; + } + case TARGET_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskTemplate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskTemplate) + GOOGLE_DCHECK_NE(&from, this); + const TaskTemplate* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskTemplate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskTemplate) + MergeFrom(*source); + } +} + +void TaskTemplate::MergeFrom(const TaskTemplate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskTemplate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.type().size() > 0) { + + type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::TaskMetadata::MergeFrom(from.metadata()); + } + if (from.has_interface()) { + mutable_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.interface()); + } + if (from.has_custom()) { + mutable_custom()->::google::protobuf::Struct::MergeFrom(from.custom()); + } + switch (from.target_case()) { + case kContainer: { + mutable_container()->::flyteidl::core::Container::MergeFrom(from.container()); + break; + } + case TARGET_NOT_SET: { + break; + } + } +} + +void TaskTemplate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskTemplate::CopyFrom(const TaskTemplate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskTemplate::IsInitialized() const { + return true; +} + +void TaskTemplate::Swap(TaskTemplate* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskTemplate::InternalSwap(TaskTemplate* other) { + using std::swap; + type_.Swap(&other->type_); + swap(id_, other->id_); + swap(metadata_, other->metadata_); + swap(interface_, other->interface_); + swap(custom_, other->custom_); + swap(target_, other->target_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskTemplate::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ContainerPort::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ContainerPort::kContainerPortFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ContainerPort::ContainerPort() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainerPort(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.ContainerPort) +} +ContainerPort::ContainerPort(const ContainerPort& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + container_port_ = from.container_port_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.ContainerPort) +} + +void ContainerPort::SharedCtor() { + container_port_ = 0u; + _cached_size_ = 0; +} + +ContainerPort::~ContainerPort() { + // @@protoc_insertion_point(destructor:flyteidl.core.ContainerPort) + SharedDtor(); +} + +void ContainerPort::SharedDtor() { +} + +void ContainerPort::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ContainerPort::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ContainerPort& ContainerPort::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainerPort(); + return *internal_default_instance(); +} + +ContainerPort* ContainerPort::New(::google::protobuf::Arena* arena) const { + ContainerPort* n = new ContainerPort; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ContainerPort::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.ContainerPort) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + container_port_ = 0u; + _internal_metadata_.Clear(); +} + +bool ContainerPort::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.ContainerPort) + 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)) { + // uint32 container_port = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &container_port_))); + } 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.ContainerPort) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.ContainerPort) + return false; +#undef DO_ +} + +void ContainerPort::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.ContainerPort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 container_port = 1; + if (this->container_port() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->container_port(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.ContainerPort) +} + +::google::protobuf::uint8* ContainerPort::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ContainerPort) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 container_port = 1; + if (this->container_port() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->container_port(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.ContainerPort) + return target; +} + +size_t ContainerPort::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ContainerPort) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // uint32 container_port = 1; + if (this->container_port() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->container_port()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ContainerPort::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ContainerPort) + GOOGLE_DCHECK_NE(&from, this); + const ContainerPort* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ContainerPort) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ContainerPort) + MergeFrom(*source); + } +} + +void ContainerPort::MergeFrom(const ContainerPort& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ContainerPort) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.container_port() != 0) { + set_container_port(from.container_port()); + } +} + +void ContainerPort::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ContainerPort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ContainerPort::CopyFrom(const ContainerPort& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ContainerPort) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ContainerPort::IsInitialized() const { + return true; +} + +void ContainerPort::Swap(ContainerPort* other) { + if (other == this) return; + InternalSwap(other); +} +void ContainerPort::InternalSwap(ContainerPort* other) { + using std::swap; + swap(container_port_, other->container_port_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ContainerPort::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Container::InitAsDefaultInstance() { + ::flyteidl::core::_Container_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( + ::flyteidl::core::Resources::internal_default_instance()); +} +void Container::clear_env() { + env_.Clear(); +} +void Container::clear_config() { + config_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Container::kImageFieldNumber; +const int Container::kCommandFieldNumber; +const int Container::kArgsFieldNumber; +const int Container::kResourcesFieldNumber; +const int Container::kEnvFieldNumber; +const int Container::kConfigFieldNumber; +const int Container::kPortsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Container::Container() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainer(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Container) +} +Container::Container(const Container& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + command_(from.command_), + args_(from.args_), + env_(from.env_), + config_(from.config_), + ports_(from.ports_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.image().size() > 0) { + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + resources_ = new ::flyteidl::core::Resources(*from.resources_); + } else { + resources_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Container) +} + +void Container::SharedCtor() { + image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + resources_ = NULL; + _cached_size_ = 0; +} + +Container::~Container() { + // @@protoc_insertion_point(destructor:flyteidl.core.Container) + SharedDtor(); +} + +void Container::SharedDtor() { + image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete resources_; +} + +void Container::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Container::descriptor() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Container& Container::default_instance() { + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainer(); + return *internal_default_instance(); +} + +Container* Container::New(::google::protobuf::Arena* arena) const { + Container* n = new Container; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Container::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Container) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + command_.Clear(); + args_.Clear(); + env_.Clear(); + config_.Clear(); + ports_.Clear(); + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && resources_ != NULL) { + delete resources_; + } + resources_ = NULL; + _internal_metadata_.Clear(); +} + +bool Container::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Container) + 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 image = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_image())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Container.image")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string command = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_command())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(this->command_size() - 1).data(), + static_cast(this->command(this->command_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Container.command")); + } else { + goto handle_unusual; + } + break; + } + + // repeated string args = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_args())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->args(this->args_size() - 1).data(), + static_cast(this->args(this->args_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Container.args")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Resources resources = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_resources())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_env())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.KeyValuePair config = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_config())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_ports())); + } 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.Container) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Container) + return false; +#undef DO_ +} + +void Container::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Container) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.image"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->image(), output); + } + + // repeated string command = 2; + for (int i = 0, n = this->command_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(i).data(), static_cast(this->command(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.command"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->command(i), output); + } + + // repeated string args = 3; + for (int i = 0, n = this->args_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->args(i).data(), static_cast(this->args(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.args"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->args(i), output); + } + + // .flyteidl.core.Resources resources = 4; + if (this->has_resources()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->resources_, output); + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + for (unsigned int i = 0, + n = static_cast(this->env_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->env(static_cast(i)), output); + } + + // repeated .flyteidl.core.KeyValuePair config = 6; + for (unsigned int i = 0, + n = static_cast(this->config_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->config(static_cast(i)), output); + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + for (unsigned int i = 0, + n = static_cast(this->ports_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->ports(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Container) +} + +::google::protobuf::uint8* Container::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Container) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string image = 1; + if (this->image().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->image().data(), static_cast(this->image().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.image"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->image(), target); + } + + // repeated string command = 2; + for (int i = 0, n = this->command_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->command(i).data(), static_cast(this->command(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.command"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(2, this->command(i), target); + } + + // repeated string args = 3; + for (int i = 0, n = this->args_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->args(i).data(), static_cast(this->args(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Container.args"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->args(i), target); + } + + // .flyteidl.core.Resources resources = 4; + if (this->has_resources()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->resources_, deterministic, target); + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + for (unsigned int i = 0, + n = static_cast(this->env_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->env(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.KeyValuePair config = 6; + for (unsigned int i = 0, + n = static_cast(this->config_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->config(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + for (unsigned int i = 0, + n = static_cast(this->ports_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, this->ports(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Container) + return target; +} + +size_t Container::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Container) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string command = 2; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->command_size()); + for (int i = 0, n = this->command_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->command(i)); + } + + // repeated string args = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->args_size()); + for (int i = 0, n = this->args_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->args(i)); + } + + // repeated .flyteidl.core.KeyValuePair env = 5; + { + unsigned int count = static_cast(this->env_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->env(static_cast(i))); + } + } + + // repeated .flyteidl.core.KeyValuePair config = 6; + { + unsigned int count = static_cast(this->config_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->config(static_cast(i))); + } + } + + // repeated .flyteidl.core.ContainerPort ports = 7; + { + unsigned int count = static_cast(this->ports_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->ports(static_cast(i))); + } + } + + // string image = 1; + if (this->image().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->image()); + } + + // .flyteidl.core.Resources resources = 4; + if (this->has_resources()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->resources_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Container::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Container) + GOOGLE_DCHECK_NE(&from, this); + const Container* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Container) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Container) + MergeFrom(*source); + } +} + +void Container::MergeFrom(const Container& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Container) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + command_.MergeFrom(from.command_); + args_.MergeFrom(from.args_); + env_.MergeFrom(from.env_); + config_.MergeFrom(from.config_); + ports_.MergeFrom(from.ports_); + if (from.image().size() > 0) { + + image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); + } + if (from.has_resources()) { + mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); + } +} + +void Container::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Container) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Container::CopyFrom(const Container& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Container) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Container::IsInitialized() const { + return true; +} + +void Container::Swap(Container* other) { + if (other == this) return; + InternalSwap(other); +} +void Container::InternalSwap(Container* other) { + using std::swap; + command_.InternalSwap(&other->command_); + args_.InternalSwap(&other->args_); + env_.InternalSwap(&other->env_); + config_.InternalSwap(&other->config_); + ports_.InternalSwap(&other->ports_); + image_.Swap(&other->image_); + swap(resources_, other->resources_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Container::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftasks_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftasks_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h new file mode 100644 index 0000000000..fe768399cb --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h @@ -0,0 +1,2407 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2ftasks_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2ftasks_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/literals.pb.h" +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2ftasks_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[7]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsResources_ResourceEntryImpl(); +void InitDefaultsResources_ResourceEntry(); +void InitDefaultsResourcesImpl(); +void InitDefaultsResources(); +void InitDefaultsRuntimeMetadataImpl(); +void InitDefaultsRuntimeMetadata(); +void InitDefaultsTaskMetadataImpl(); +void InitDefaultsTaskMetadata(); +void InitDefaultsTaskTemplateImpl(); +void InitDefaultsTaskTemplate(); +void InitDefaultsContainerPortImpl(); +void InitDefaultsContainerPort(); +void InitDefaultsContainerImpl(); +void InitDefaultsContainer(); +inline void InitDefaults() { + InitDefaultsResources_ResourceEntry(); + InitDefaultsResources(); + InitDefaultsRuntimeMetadata(); + InitDefaultsTaskMetadata(); + InitDefaultsTaskTemplate(); + InitDefaultsContainerPort(); + InitDefaultsContainer(); +} +} // namespace protobuf_flyteidl_2fcore_2ftasks_2eproto +namespace flyteidl { +namespace core { +class Container; +class ContainerDefaultTypeInternal; +extern ContainerDefaultTypeInternal _Container_default_instance_; +class ContainerPort; +class ContainerPortDefaultTypeInternal; +extern ContainerPortDefaultTypeInternal _ContainerPort_default_instance_; +class Resources; +class ResourcesDefaultTypeInternal; +extern ResourcesDefaultTypeInternal _Resources_default_instance_; +class Resources_ResourceEntry; +class Resources_ResourceEntryDefaultTypeInternal; +extern Resources_ResourceEntryDefaultTypeInternal _Resources_ResourceEntry_default_instance_; +class RuntimeMetadata; +class RuntimeMetadataDefaultTypeInternal; +extern RuntimeMetadataDefaultTypeInternal _RuntimeMetadata_default_instance_; +class TaskMetadata; +class TaskMetadataDefaultTypeInternal; +extern TaskMetadataDefaultTypeInternal _TaskMetadata_default_instance_; +class TaskTemplate; +class TaskTemplateDefaultTypeInternal; +extern TaskTemplateDefaultTypeInternal _TaskTemplate_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +enum Resources_ResourceName { + Resources_ResourceName_UNKNOWN = 0, + Resources_ResourceName_CPU = 1, + Resources_ResourceName_GPU = 2, + Resources_ResourceName_MEMORY = 3, + Resources_ResourceName_STORAGE = 4, + Resources_ResourceName_Resources_ResourceName_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + Resources_ResourceName_Resources_ResourceName_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool Resources_ResourceName_IsValid(int value); +const Resources_ResourceName Resources_ResourceName_ResourceName_MIN = Resources_ResourceName_UNKNOWN; +const Resources_ResourceName Resources_ResourceName_ResourceName_MAX = Resources_ResourceName_STORAGE; +const int Resources_ResourceName_ResourceName_ARRAYSIZE = Resources_ResourceName_ResourceName_MAX + 1; + +const ::google::protobuf::EnumDescriptor* Resources_ResourceName_descriptor(); +inline const ::std::string& Resources_ResourceName_Name(Resources_ResourceName value) { + return ::google::protobuf::internal::NameOfEnum( + Resources_ResourceName_descriptor(), value); +} +inline bool Resources_ResourceName_Parse( + const ::std::string& name, Resources_ResourceName* value) { + return ::google::protobuf::internal::ParseNamedEnum( + Resources_ResourceName_descriptor(), name, value); +} +enum RuntimeMetadata_RuntimeType { + RuntimeMetadata_RuntimeType_OTHER = 0, + RuntimeMetadata_RuntimeType_FLYTE_SDK = 1, + RuntimeMetadata_RuntimeType_RuntimeMetadata_RuntimeType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + RuntimeMetadata_RuntimeType_RuntimeMetadata_RuntimeType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool RuntimeMetadata_RuntimeType_IsValid(int value); +const RuntimeMetadata_RuntimeType RuntimeMetadata_RuntimeType_RuntimeType_MIN = RuntimeMetadata_RuntimeType_OTHER; +const RuntimeMetadata_RuntimeType RuntimeMetadata_RuntimeType_RuntimeType_MAX = RuntimeMetadata_RuntimeType_FLYTE_SDK; +const int RuntimeMetadata_RuntimeType_RuntimeType_ARRAYSIZE = RuntimeMetadata_RuntimeType_RuntimeType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RuntimeMetadata_RuntimeType_descriptor(); +inline const ::std::string& RuntimeMetadata_RuntimeType_Name(RuntimeMetadata_RuntimeType value) { + return ::google::protobuf::internal::NameOfEnum( + RuntimeMetadata_RuntimeType_descriptor(), value); +} +inline bool RuntimeMetadata_RuntimeType_Parse( + const ::std::string& name, RuntimeMetadata_RuntimeType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RuntimeMetadata_RuntimeType_descriptor(), name, value); +} +// =================================================================== + +class Resources_ResourceEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Resources.ResourceEntry) */ { + public: + Resources_ResourceEntry(); + virtual ~Resources_ResourceEntry(); + + Resources_ResourceEntry(const Resources_ResourceEntry& from); + + inline Resources_ResourceEntry& operator=(const Resources_ResourceEntry& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Resources_ResourceEntry(Resources_ResourceEntry&& from) noexcept + : Resources_ResourceEntry() { + *this = ::std::move(from); + } + + inline Resources_ResourceEntry& operator=(Resources_ResourceEntry&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Resources_ResourceEntry& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Resources_ResourceEntry* internal_default_instance() { + return reinterpret_cast( + &_Resources_ResourceEntry_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Resources_ResourceEntry* other); + friend void swap(Resources_ResourceEntry& a, Resources_ResourceEntry& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Resources_ResourceEntry* New() const PROTOBUF_FINAL { return New(NULL); } + + Resources_ResourceEntry* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Resources_ResourceEntry& from); + void MergeFrom(const Resources_ResourceEntry& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Resources_ResourceEntry* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string value = 2; + void clear_value(); + static const int kValueFieldNumber = 2; + const ::std::string& value() const; + void set_value(const ::std::string& value); + #if LANG_CXX11 + void set_value(::std::string&& value); + #endif + void set_value(const char* value); + void set_value(const char* value, size_t size); + ::std::string* mutable_value(); + ::std::string* release_value(); + void set_allocated_value(::std::string* value); + + // .flyteidl.core.Resources.ResourceName name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + ::flyteidl::core::Resources_ResourceName name() const; + void set_name(::flyteidl::core::Resources_ResourceName value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr value_; + int name_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResources_ResourceEntryImpl(); +}; +// ------------------------------------------------------------------- + +class Resources : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Resources) */ { + public: + Resources(); + virtual ~Resources(); + + Resources(const Resources& from); + + inline Resources& operator=(const Resources& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Resources(Resources&& from) noexcept + : Resources() { + *this = ::std::move(from); + } + + inline Resources& operator=(Resources&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Resources& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Resources* internal_default_instance() { + return reinterpret_cast( + &_Resources_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(Resources* other); + friend void swap(Resources& a, Resources& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Resources* New() const PROTOBUF_FINAL { return New(NULL); } + + Resources* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Resources& from); + void MergeFrom(const Resources& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Resources* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef Resources_ResourceEntry ResourceEntry; + + typedef Resources_ResourceName ResourceName; + static const ResourceName UNKNOWN = + Resources_ResourceName_UNKNOWN; + static const ResourceName CPU = + Resources_ResourceName_CPU; + static const ResourceName GPU = + Resources_ResourceName_GPU; + static const ResourceName MEMORY = + Resources_ResourceName_MEMORY; + static const ResourceName STORAGE = + Resources_ResourceName_STORAGE; + static inline bool ResourceName_IsValid(int value) { + return Resources_ResourceName_IsValid(value); + } + static const ResourceName ResourceName_MIN = + Resources_ResourceName_ResourceName_MIN; + static const ResourceName ResourceName_MAX = + Resources_ResourceName_ResourceName_MAX; + static const int ResourceName_ARRAYSIZE = + Resources_ResourceName_ResourceName_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ResourceName_descriptor() { + return Resources_ResourceName_descriptor(); + } + static inline const ::std::string& ResourceName_Name(ResourceName value) { + return Resources_ResourceName_Name(value); + } + static inline bool ResourceName_Parse(const ::std::string& name, + ResourceName* value) { + return Resources_ResourceName_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + int requests_size() const; + void clear_requests(); + static const int kRequestsFieldNumber = 1; + const ::flyteidl::core::Resources_ResourceEntry& requests(int index) const; + ::flyteidl::core::Resources_ResourceEntry* mutable_requests(int index); + ::flyteidl::core::Resources_ResourceEntry* add_requests(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* + mutable_requests(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& + requests() const; + + // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + int limits_size() const; + void clear_limits(); + static const int kLimitsFieldNumber = 2; + const ::flyteidl::core::Resources_ResourceEntry& limits(int index) const; + ::flyteidl::core::Resources_ResourceEntry* mutable_limits(int index); + ::flyteidl::core::Resources_ResourceEntry* add_limits(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* + mutable_limits(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& + limits() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry > requests_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry > limits_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsResourcesImpl(); +}; +// ------------------------------------------------------------------- + +class RuntimeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.RuntimeMetadata) */ { + public: + RuntimeMetadata(); + virtual ~RuntimeMetadata(); + + RuntimeMetadata(const RuntimeMetadata& from); + + inline RuntimeMetadata& operator=(const RuntimeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + RuntimeMetadata(RuntimeMetadata&& from) noexcept + : RuntimeMetadata() { + *this = ::std::move(from); + } + + inline RuntimeMetadata& operator=(RuntimeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const RuntimeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const RuntimeMetadata* internal_default_instance() { + return reinterpret_cast( + &_RuntimeMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(RuntimeMetadata* other); + friend void swap(RuntimeMetadata& a, RuntimeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline RuntimeMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + RuntimeMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const RuntimeMetadata& from); + void MergeFrom(const RuntimeMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(RuntimeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef RuntimeMetadata_RuntimeType RuntimeType; + static const RuntimeType OTHER = + RuntimeMetadata_RuntimeType_OTHER; + static const RuntimeType FLYTE_SDK = + RuntimeMetadata_RuntimeType_FLYTE_SDK; + static inline bool RuntimeType_IsValid(int value) { + return RuntimeMetadata_RuntimeType_IsValid(value); + } + static const RuntimeType RuntimeType_MIN = + RuntimeMetadata_RuntimeType_RuntimeType_MIN; + static const RuntimeType RuntimeType_MAX = + RuntimeMetadata_RuntimeType_RuntimeType_MAX; + static const int RuntimeType_ARRAYSIZE = + RuntimeMetadata_RuntimeType_RuntimeType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RuntimeType_descriptor() { + return RuntimeMetadata_RuntimeType_descriptor(); + } + static inline const ::std::string& RuntimeType_Name(RuntimeType value) { + return RuntimeMetadata_RuntimeType_Name(value); + } + static inline bool RuntimeType_Parse(const ::std::string& name, + RuntimeType* value) { + return RuntimeMetadata_RuntimeType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string version = 2; + void clear_version(); + static const int kVersionFieldNumber = 2; + const ::std::string& version() const; + void set_version(const ::std::string& value); + #if LANG_CXX11 + void set_version(::std::string&& value); + #endif + void set_version(const char* value); + void set_version(const char* value, size_t size); + ::std::string* mutable_version(); + ::std::string* release_version(); + void set_allocated_version(::std::string* version); + + // string flavor = 3; + void clear_flavor(); + static const int kFlavorFieldNumber = 3; + const ::std::string& flavor() const; + void set_flavor(const ::std::string& value); + #if LANG_CXX11 + void set_flavor(::std::string&& value); + #endif + void set_flavor(const char* value); + void set_flavor(const char* value, size_t size); + ::std::string* mutable_flavor(); + ::std::string* release_flavor(); + void set_allocated_flavor(::std::string* flavor); + + // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + void clear_type(); + static const int kTypeFieldNumber = 1; + ::flyteidl::core::RuntimeMetadata_RuntimeType type() const; + void set_type(::flyteidl::core::RuntimeMetadata_RuntimeType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr version_; + ::google::protobuf::internal::ArenaStringPtr flavor_; + int type_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsRuntimeMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class TaskMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskMetadata) */ { + public: + TaskMetadata(); + virtual ~TaskMetadata(); + + TaskMetadata(const TaskMetadata& from); + + inline TaskMetadata& operator=(const TaskMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskMetadata(TaskMetadata&& from) noexcept + : TaskMetadata() { + *this = ::std::move(from); + } + + inline TaskMetadata& operator=(TaskMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskMetadata* internal_default_instance() { + return reinterpret_cast( + &_TaskMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(TaskMetadata* other); + friend void swap(TaskMetadata& a, TaskMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskMetadata& from); + void MergeFrom(const TaskMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string discovery_version = 6; + void clear_discovery_version(); + static const int kDiscoveryVersionFieldNumber = 6; + const ::std::string& discovery_version() const; + void set_discovery_version(const ::std::string& value); + #if LANG_CXX11 + void set_discovery_version(::std::string&& value); + #endif + void set_discovery_version(const char* value); + void set_discovery_version(const char* value, size_t size); + ::std::string* mutable_discovery_version(); + ::std::string* release_discovery_version(); + void set_allocated_discovery_version(::std::string* discovery_version); + + // string deprecated_error_message = 7; + void clear_deprecated_error_message(); + static const int kDeprecatedErrorMessageFieldNumber = 7; + const ::std::string& deprecated_error_message() const; + void set_deprecated_error_message(const ::std::string& value); + #if LANG_CXX11 + void set_deprecated_error_message(::std::string&& value); + #endif + void set_deprecated_error_message(const char* value); + void set_deprecated_error_message(const char* value, size_t size); + ::std::string* mutable_deprecated_error_message(); + ::std::string* release_deprecated_error_message(); + void set_allocated_deprecated_error_message(::std::string* deprecated_error_message); + + // .flyteidl.core.RuntimeMetadata runtime = 2; + bool has_runtime() const; + void clear_runtime(); + static const int kRuntimeFieldNumber = 2; + const ::flyteidl::core::RuntimeMetadata& runtime() const; + ::flyteidl::core::RuntimeMetadata* release_runtime(); + ::flyteidl::core::RuntimeMetadata* mutable_runtime(); + void set_allocated_runtime(::flyteidl::core::RuntimeMetadata* runtime); + + // .google.protobuf.Duration timeout = 4; + bool has_timeout() const; + void clear_timeout(); + static const int kTimeoutFieldNumber = 4; + const ::google::protobuf::Duration& timeout() const; + ::google::protobuf::Duration* release_timeout(); + ::google::protobuf::Duration* mutable_timeout(); + void set_allocated_timeout(::google::protobuf::Duration* timeout); + + // .flyteidl.core.RetryStrategy retries = 5; + bool has_retries() const; + void clear_retries(); + static const int kRetriesFieldNumber = 5; + const ::flyteidl::core::RetryStrategy& retries() const; + ::flyteidl::core::RetryStrategy* release_retries(); + ::flyteidl::core::RetryStrategy* mutable_retries(); + void set_allocated_retries(::flyteidl::core::RetryStrategy* retries); + + // bool discoverable = 1; + void clear_discoverable(); + static const int kDiscoverableFieldNumber = 1; + bool discoverable() const; + void set_discoverable(bool value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr discovery_version_; + ::google::protobuf::internal::ArenaStringPtr deprecated_error_message_; + ::flyteidl::core::RuntimeMetadata* runtime_; + ::google::protobuf::Duration* timeout_; + ::flyteidl::core::RetryStrategy* retries_; + bool discoverable_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class TaskTemplate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskTemplate) */ { + public: + TaskTemplate(); + virtual ~TaskTemplate(); + + TaskTemplate(const TaskTemplate& from); + + inline TaskTemplate& operator=(const TaskTemplate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskTemplate(TaskTemplate&& from) noexcept + : TaskTemplate() { + *this = ::std::move(from); + } + + inline TaskTemplate& operator=(TaskTemplate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskTemplate& default_instance(); + + enum TargetCase { + kContainer = 6, + TARGET_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskTemplate* internal_default_instance() { + return reinterpret_cast( + &_TaskTemplate_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(TaskTemplate* other); + friend void swap(TaskTemplate& a, TaskTemplate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskTemplate* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskTemplate* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskTemplate& from); + void MergeFrom(const TaskTemplate& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskTemplate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string type = 2; + void clear_type(); + static const int kTypeFieldNumber = 2; + const ::std::string& type() const; + void set_type(const ::std::string& value); + #if LANG_CXX11 + void set_type(::std::string&& value); + #endif + void set_type(const char* value); + void set_type(const char* value, size_t size); + ::std::string* mutable_type(); + ::std::string* release_type(); + void set_allocated_type(::std::string* type); + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.core.TaskMetadata metadata = 3; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 3; + const ::flyteidl::core::TaskMetadata& metadata() const; + ::flyteidl::core::TaskMetadata* release_metadata(); + ::flyteidl::core::TaskMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::TaskMetadata* metadata); + + // .flyteidl.core.TypedInterface interface = 4; + bool has_interface() const; + void clear_interface(); + static const int kInterfaceFieldNumber = 4; + const ::flyteidl::core::TypedInterface& interface() const; + ::flyteidl::core::TypedInterface* release_interface(); + ::flyteidl::core::TypedInterface* mutable_interface(); + void set_allocated_interface(::flyteidl::core::TypedInterface* interface); + + // .google.protobuf.Struct custom = 5; + bool has_custom() const; + void clear_custom(); + static const int kCustomFieldNumber = 5; + const ::google::protobuf::Struct& custom() const; + ::google::protobuf::Struct* release_custom(); + ::google::protobuf::Struct* mutable_custom(); + void set_allocated_custom(::google::protobuf::Struct* custom); + + // .flyteidl.core.Container container = 6; + bool has_container() const; + void clear_container(); + static const int kContainerFieldNumber = 6; + const ::flyteidl::core::Container& container() const; + ::flyteidl::core::Container* release_container(); + ::flyteidl::core::Container* mutable_container(); + void set_allocated_container(::flyteidl::core::Container* container); + + TargetCase target_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + private: + void set_has_container(); + + inline bool has_target() const; + void clear_target(); + inline void clear_has_target(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr type_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::core::TaskMetadata* metadata_; + ::flyteidl::core::TypedInterface* interface_; + ::google::protobuf::Struct* custom_; + union TargetUnion { + TargetUnion() {} + ::flyteidl::core::Container* container_; + } target_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplateImpl(); +}; +// ------------------------------------------------------------------- + +class ContainerPort : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ContainerPort) */ { + public: + ContainerPort(); + virtual ~ContainerPort(); + + ContainerPort(const ContainerPort& from); + + inline ContainerPort& operator=(const ContainerPort& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ContainerPort(ContainerPort&& from) noexcept + : ContainerPort() { + *this = ::std::move(from); + } + + inline ContainerPort& operator=(ContainerPort&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ContainerPort& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ContainerPort* internal_default_instance() { + return reinterpret_cast( + &_ContainerPort_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(ContainerPort* other); + friend void swap(ContainerPort& a, ContainerPort& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ContainerPort* New() const PROTOBUF_FINAL { return New(NULL); } + + ContainerPort* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ContainerPort& from); + void MergeFrom(const ContainerPort& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ContainerPort* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // uint32 container_port = 1; + void clear_container_port(); + static const int kContainerPortFieldNumber = 1; + ::google::protobuf::uint32 container_port() const; + void set_container_port(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::uint32 container_port_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainerPortImpl(); +}; +// ------------------------------------------------------------------- + +class Container : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Container) */ { + public: + Container(); + virtual ~Container(); + + Container(const Container& from); + + inline Container& operator=(const Container& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Container(Container&& from) noexcept + : Container() { + *this = ::std::move(from); + } + + inline Container& operator=(Container&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Container& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Container* internal_default_instance() { + return reinterpret_cast( + &_Container_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(Container* other); + friend void swap(Container& a, Container& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Container* New() const PROTOBUF_FINAL { return New(NULL); } + + Container* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Container& from); + void MergeFrom(const Container& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Container* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string command = 2; + int command_size() const; + void clear_command(); + static const int kCommandFieldNumber = 2; + const ::std::string& command(int index) const; + ::std::string* mutable_command(int index); + void set_command(int index, const ::std::string& value); + #if LANG_CXX11 + void set_command(int index, ::std::string&& value); + #endif + void set_command(int index, const char* value); + void set_command(int index, const char* value, size_t size); + ::std::string* add_command(); + void add_command(const ::std::string& value); + #if LANG_CXX11 + void add_command(::std::string&& value); + #endif + void add_command(const char* value); + void add_command(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& command() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_command(); + + // repeated string args = 3; + int args_size() const; + void clear_args(); + static const int kArgsFieldNumber = 3; + const ::std::string& args(int index) const; + ::std::string* mutable_args(int index); + void set_args(int index, const ::std::string& value); + #if LANG_CXX11 + void set_args(int index, ::std::string&& value); + #endif + void set_args(int index, const char* value); + void set_args(int index, const char* value, size_t size); + ::std::string* add_args(); + void add_args(const ::std::string& value); + #if LANG_CXX11 + void add_args(::std::string&& value); + #endif + void add_args(const char* value); + void add_args(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& args() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_args(); + + // repeated .flyteidl.core.KeyValuePair env = 5; + int env_size() const; + void clear_env(); + static const int kEnvFieldNumber = 5; + const ::flyteidl::core::KeyValuePair& env(int index) const; + ::flyteidl::core::KeyValuePair* mutable_env(int index); + ::flyteidl::core::KeyValuePair* add_env(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* + mutable_env(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& + env() const; + + // repeated .flyteidl.core.KeyValuePair config = 6; + int config_size() const; + void clear_config(); + static const int kConfigFieldNumber = 6; + const ::flyteidl::core::KeyValuePair& config(int index) const; + ::flyteidl::core::KeyValuePair* mutable_config(int index); + ::flyteidl::core::KeyValuePair* add_config(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* + mutable_config(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& + config() const; + + // repeated .flyteidl.core.ContainerPort ports = 7; + int ports_size() const; + void clear_ports(); + static const int kPortsFieldNumber = 7; + const ::flyteidl::core::ContainerPort& ports(int index) const; + ::flyteidl::core::ContainerPort* mutable_ports(int index); + ::flyteidl::core::ContainerPort* add_ports(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >* + mutable_ports(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >& + ports() const; + + // string image = 1; + void clear_image(); + static const int kImageFieldNumber = 1; + const ::std::string& image() const; + void set_image(const ::std::string& value); + #if LANG_CXX11 + void set_image(::std::string&& value); + #endif + void set_image(const char* value); + void set_image(const char* value, size_t size); + ::std::string* mutable_image(); + ::std::string* release_image(); + void set_allocated_image(::std::string* image); + + // .flyteidl.core.Resources resources = 4; + bool has_resources() const; + void clear_resources(); + static const int kResourcesFieldNumber = 4; + const ::flyteidl::core::Resources& resources() const; + ::flyteidl::core::Resources* release_resources(); + ::flyteidl::core::Resources* mutable_resources(); + void set_allocated_resources(::flyteidl::core::Resources* resources); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Container) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> command_; + ::google::protobuf::RepeatedPtrField< ::std::string> args_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > env_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > config_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort > ports_; + ::google::protobuf::internal::ArenaStringPtr image_; + ::flyteidl::core::Resources* resources_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftasks_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsContainerImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Resources_ResourceEntry + +// .flyteidl.core.Resources.ResourceName name = 1; +inline void Resources_ResourceEntry::clear_name() { + name_ = 0; +} +inline ::flyteidl::core::Resources_ResourceName Resources_ResourceEntry::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.ResourceEntry.name) + return static_cast< ::flyteidl::core::Resources_ResourceName >(name_); +} +inline void Resources_ResourceEntry::set_name(::flyteidl::core::Resources_ResourceName value) { + + name_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.Resources.ResourceEntry.name) +} + +// string value = 2; +inline void Resources_ResourceEntry::clear_value() { + value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Resources_ResourceEntry::value() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.ResourceEntry.value) + return value_.GetNoArena(); +} +inline void Resources_ResourceEntry::set_value(const ::std::string& value) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Resources.ResourceEntry.value) +} +#if LANG_CXX11 +inline void Resources_ResourceEntry::set_value(::std::string&& value) { + + value_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Resources.ResourceEntry.value) +} +#endif +inline void Resources_ResourceEntry::set_value(const char* value) { + GOOGLE_DCHECK(value != NULL); + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Resources.ResourceEntry.value) +} +inline void Resources_ResourceEntry::set_value(const char* value, size_t size) { + + value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Resources.ResourceEntry.value) +} +inline ::std::string* Resources_ResourceEntry::mutable_value() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.ResourceEntry.value) + return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Resources_ResourceEntry::release_value() { + // @@protoc_insertion_point(field_release:flyteidl.core.Resources.ResourceEntry.value) + + return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Resources_ResourceEntry::set_allocated_value(::std::string* value) { + if (value != NULL) { + + } else { + + } + value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Resources.ResourceEntry.value) +} + +// ------------------------------------------------------------------- + +// Resources + +// repeated .flyteidl.core.Resources.ResourceEntry requests = 1; +inline int Resources::requests_size() const { + return requests_.size(); +} +inline void Resources::clear_requests() { + requests_.Clear(); +} +inline const ::flyteidl::core::Resources_ResourceEntry& Resources::requests(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.requests) + return requests_.Get(index); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::mutable_requests(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.requests) + return requests_.Mutable(index); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::add_requests() { + // @@protoc_insertion_point(field_add:flyteidl.core.Resources.requests) + return requests_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* +Resources::mutable_requests() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Resources.requests) + return &requests_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& +Resources::requests() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Resources.requests) + return requests_; +} + +// repeated .flyteidl.core.Resources.ResourceEntry limits = 2; +inline int Resources::limits_size() const { + return limits_.size(); +} +inline void Resources::clear_limits() { + limits_.Clear(); +} +inline const ::flyteidl::core::Resources_ResourceEntry& Resources::limits(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Resources.limits) + return limits_.Get(index); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::mutable_limits(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.limits) + return limits_.Mutable(index); +} +inline ::flyteidl::core::Resources_ResourceEntry* Resources::add_limits() { + // @@protoc_insertion_point(field_add:flyteidl.core.Resources.limits) + return limits_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* +Resources::mutable_limits() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Resources.limits) + return &limits_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& +Resources::limits() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Resources.limits) + return limits_; +} + +// ------------------------------------------------------------------- + +// RuntimeMetadata + +// .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; +inline void RuntimeMetadata::clear_type() { + type_ = 0; +} +inline ::flyteidl::core::RuntimeMetadata_RuntimeType RuntimeMetadata::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.type) + return static_cast< ::flyteidl::core::RuntimeMetadata_RuntimeType >(type_); +} +inline void RuntimeMetadata::set_type(::flyteidl::core::RuntimeMetadata_RuntimeType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.type) +} + +// string version = 2; +inline void RuntimeMetadata::clear_version() { + version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& RuntimeMetadata::version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.version) + return version_.GetNoArena(); +} +inline void RuntimeMetadata::set_version(const ::std::string& value) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.version) +} +#if LANG_CXX11 +inline void RuntimeMetadata::set_version(::std::string&& value) { + + version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.RuntimeMetadata.version) +} +#endif +inline void RuntimeMetadata::set_version(const char* value) { + GOOGLE_DCHECK(value != NULL); + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.RuntimeMetadata.version) +} +inline void RuntimeMetadata::set_version(const char* value, size_t size) { + + version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.RuntimeMetadata.version) +} +inline ::std::string* RuntimeMetadata::mutable_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.RuntimeMetadata.version) + return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RuntimeMetadata::release_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.RuntimeMetadata.version) + + return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RuntimeMetadata::set_allocated_version(::std::string* version) { + if (version != NULL) { + + } else { + + } + version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.RuntimeMetadata.version) +} + +// string flavor = 3; +inline void RuntimeMetadata::clear_flavor() { + flavor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& RuntimeMetadata::flavor() const { + // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.flavor) + return flavor_.GetNoArena(); +} +inline void RuntimeMetadata::set_flavor(const ::std::string& value) { + + flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.flavor) +} +#if LANG_CXX11 +inline void RuntimeMetadata::set_flavor(::std::string&& value) { + + flavor_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.RuntimeMetadata.flavor) +} +#endif +inline void RuntimeMetadata::set_flavor(const char* value) { + GOOGLE_DCHECK(value != NULL); + + flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.RuntimeMetadata.flavor) +} +inline void RuntimeMetadata::set_flavor(const char* value, size_t size) { + + flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.RuntimeMetadata.flavor) +} +inline ::std::string* RuntimeMetadata::mutable_flavor() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.RuntimeMetadata.flavor) + return flavor_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* RuntimeMetadata::release_flavor() { + // @@protoc_insertion_point(field_release:flyteidl.core.RuntimeMetadata.flavor) + + return flavor_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void RuntimeMetadata::set_allocated_flavor(::std::string* flavor) { + if (flavor != NULL) { + + } else { + + } + flavor_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), flavor); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.RuntimeMetadata.flavor) +} + +// ------------------------------------------------------------------- + +// TaskMetadata + +// bool discoverable = 1; +inline void TaskMetadata::clear_discoverable() { + discoverable_ = false; +} +inline bool TaskMetadata::discoverable() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.discoverable) + return discoverable_; +} +inline void TaskMetadata::set_discoverable(bool value) { + + discoverable_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.discoverable) +} + +// .flyteidl.core.RuntimeMetadata runtime = 2; +inline bool TaskMetadata::has_runtime() const { + return this != internal_default_instance() && runtime_ != NULL; +} +inline void TaskMetadata::clear_runtime() { + if (GetArenaNoVirtual() == NULL && runtime_ != NULL) { + delete runtime_; + } + runtime_ = NULL; +} +inline const ::flyteidl::core::RuntimeMetadata& TaskMetadata::runtime() const { + const ::flyteidl::core::RuntimeMetadata* p = runtime_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.runtime) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_RuntimeMetadata_default_instance_); +} +inline ::flyteidl::core::RuntimeMetadata* TaskMetadata::release_runtime() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.runtime) + + ::flyteidl::core::RuntimeMetadata* temp = runtime_; + runtime_ = NULL; + return temp; +} +inline ::flyteidl::core::RuntimeMetadata* TaskMetadata::mutable_runtime() { + + if (runtime_ == NULL) { + runtime_ = new ::flyteidl::core::RuntimeMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.runtime) + return runtime_; +} +inline void TaskMetadata::set_allocated_runtime(::flyteidl::core::RuntimeMetadata* runtime) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete runtime_; + } + if (runtime) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + runtime = ::google::protobuf::internal::GetOwnedMessage( + message_arena, runtime, submessage_arena); + } + + } else { + + } + runtime_ = runtime; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.runtime) +} + +// .google.protobuf.Duration timeout = 4; +inline bool TaskMetadata::has_timeout() const { + return this != internal_default_instance() && timeout_ != NULL; +} +inline const ::google::protobuf::Duration& TaskMetadata::timeout() const { + const ::google::protobuf::Duration* p = timeout_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.timeout) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* TaskMetadata::release_timeout() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.timeout) + + ::google::protobuf::Duration* temp = timeout_; + timeout_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* TaskMetadata::mutable_timeout() { + + if (timeout_ == NULL) { + timeout_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.timeout) + return timeout_; +} +inline void TaskMetadata::set_allocated_timeout(::google::protobuf::Duration* timeout) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeout_); + } + if (timeout) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(timeout)->GetArena(); + if (message_arena != submessage_arena) { + timeout = ::google::protobuf::internal::GetOwnedMessage( + message_arena, timeout, submessage_arena); + } + + } else { + + } + timeout_ = timeout; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.timeout) +} + +// .flyteidl.core.RetryStrategy retries = 5; +inline bool TaskMetadata::has_retries() const { + return this != internal_default_instance() && retries_ != NULL; +} +inline const ::flyteidl::core::RetryStrategy& TaskMetadata::retries() const { + const ::flyteidl::core::RetryStrategy* p = retries_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.retries) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_RetryStrategy_default_instance_); +} +inline ::flyteidl::core::RetryStrategy* TaskMetadata::release_retries() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.retries) + + ::flyteidl::core::RetryStrategy* temp = retries_; + retries_ = NULL; + return temp; +} +inline ::flyteidl::core::RetryStrategy* TaskMetadata::mutable_retries() { + + if (retries_ == NULL) { + retries_ = new ::flyteidl::core::RetryStrategy; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.retries) + return retries_; +} +inline void TaskMetadata::set_allocated_retries(::flyteidl::core::RetryStrategy* retries) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(retries_); + } + if (retries) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + retries = ::google::protobuf::internal::GetOwnedMessage( + message_arena, retries, submessage_arena); + } + + } else { + + } + retries_ = retries; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.retries) +} + +// string discovery_version = 6; +inline void TaskMetadata::clear_discovery_version() { + discovery_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskMetadata::discovery_version() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.discovery_version) + return discovery_version_.GetNoArena(); +} +inline void TaskMetadata::set_discovery_version(const ::std::string& value) { + + discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.discovery_version) +} +#if LANG_CXX11 +inline void TaskMetadata::set_discovery_version(::std::string&& value) { + + discovery_version_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.discovery_version) +} +#endif +inline void TaskMetadata::set_discovery_version(const char* value) { + GOOGLE_DCHECK(value != NULL); + + discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.discovery_version) +} +inline void TaskMetadata::set_discovery_version(const char* value, size_t size) { + + discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.discovery_version) +} +inline ::std::string* TaskMetadata::mutable_discovery_version() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.discovery_version) + return discovery_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskMetadata::release_discovery_version() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.discovery_version) + + return discovery_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskMetadata::set_allocated_discovery_version(::std::string* discovery_version) { + if (discovery_version != NULL) { + + } else { + + } + discovery_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), discovery_version); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.discovery_version) +} + +// string deprecated_error_message = 7; +inline void TaskMetadata::clear_deprecated_error_message() { + deprecated_error_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskMetadata::deprecated_error_message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.deprecated_error_message) + return deprecated_error_message_.GetNoArena(); +} +inline void TaskMetadata::set_deprecated_error_message(const ::std::string& value) { + + deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.deprecated_error_message) +} +#if LANG_CXX11 +inline void TaskMetadata::set_deprecated_error_message(::std::string&& value) { + + deprecated_error_message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.deprecated_error_message) +} +#endif +inline void TaskMetadata::set_deprecated_error_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + + deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.deprecated_error_message) +} +inline void TaskMetadata::set_deprecated_error_message(const char* value, size_t size) { + + deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.deprecated_error_message) +} +inline ::std::string* TaskMetadata::mutable_deprecated_error_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.deprecated_error_message) + return deprecated_error_message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskMetadata::release_deprecated_error_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.deprecated_error_message) + + return deprecated_error_message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskMetadata::set_allocated_deprecated_error_message(::std::string* deprecated_error_message) { + if (deprecated_error_message != NULL) { + + } else { + + } + deprecated_error_message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deprecated_error_message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.deprecated_error_message) +} + +// ------------------------------------------------------------------- + +// TaskTemplate + +// .flyteidl.core.Identifier id = 1; +inline bool TaskTemplate::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& TaskTemplate::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskTemplate::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* TaskTemplate::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.id) + return id_; +} +inline void TaskTemplate::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.id) +} + +// string type = 2; +inline void TaskTemplate::clear_type() { + type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskTemplate::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.type) + return type_.GetNoArena(); +} +inline void TaskTemplate::set_type(const ::std::string& value) { + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.TaskTemplate.type) +} +#if LANG_CXX11 +inline void TaskTemplate::set_type(::std::string&& value) { + + type_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskTemplate.type) +} +#endif +inline void TaskTemplate::set_type(const char* value) { + GOOGLE_DCHECK(value != NULL); + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskTemplate.type) +} +inline void TaskTemplate::set_type(const char* value, size_t size) { + + type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskTemplate.type) +} +inline ::std::string* TaskTemplate::mutable_type() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.type) + return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskTemplate::release_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.type) + + return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskTemplate::set_allocated_type(::std::string* type) { + if (type != NULL) { + + } else { + + } + type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.type) +} + +// .flyteidl.core.TaskMetadata metadata = 3; +inline bool TaskTemplate::has_metadata() const { + return this != internal_default_instance() && metadata_ != NULL; +} +inline void TaskTemplate::clear_metadata() { + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; +} +inline const ::flyteidl::core::TaskMetadata& TaskTemplate::metadata() const { + const ::flyteidl::core::TaskMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskMetadata_default_instance_); +} +inline ::flyteidl::core::TaskMetadata* TaskTemplate::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.metadata) + + ::flyteidl::core::TaskMetadata* temp = metadata_; + metadata_ = NULL; + return temp; +} +inline ::flyteidl::core::TaskMetadata* TaskTemplate::mutable_metadata() { + + if (metadata_ == NULL) { + metadata_ = new ::flyteidl::core::TaskMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.metadata) + return metadata_; +} +inline void TaskTemplate::set_allocated_metadata(::flyteidl::core::TaskMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.metadata) +} + +// .flyteidl.core.TypedInterface interface = 4; +inline bool TaskTemplate::has_interface() const { + return this != internal_default_instance() && interface_ != NULL; +} +inline const ::flyteidl::core::TypedInterface& TaskTemplate::interface() const { + const ::flyteidl::core::TypedInterface* p = interface_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.interface) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TypedInterface_default_instance_); +} +inline ::flyteidl::core::TypedInterface* TaskTemplate::release_interface() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.interface) + + ::flyteidl::core::TypedInterface* temp = interface_; + interface_ = NULL; + return temp; +} +inline ::flyteidl::core::TypedInterface* TaskTemplate::mutable_interface() { + + if (interface_ == NULL) { + interface_ = new ::flyteidl::core::TypedInterface; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.interface) + return interface_; +} +inline void TaskTemplate::set_allocated_interface(::flyteidl::core::TypedInterface* interface) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interface_); + } + if (interface) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + interface = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interface, submessage_arena); + } + + } else { + + } + interface_ = interface; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.interface) +} + +// .google.protobuf.Struct custom = 5; +inline bool TaskTemplate::has_custom() const { + return this != internal_default_instance() && custom_ != NULL; +} +inline const ::google::protobuf::Struct& TaskTemplate::custom() const { + const ::google::protobuf::Struct* p = custom_; + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.custom) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TaskTemplate::release_custom() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.custom) + + ::google::protobuf::Struct* temp = custom_; + custom_ = NULL; + return temp; +} +inline ::google::protobuf::Struct* TaskTemplate::mutable_custom() { + + if (custom_ == NULL) { + custom_ = new ::google::protobuf::Struct; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.custom) + return custom_; +} +inline void TaskTemplate::set_allocated_custom(::google::protobuf::Struct* custom) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_); + } + if (custom) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(custom)->GetArena(); + if (message_arena != submessage_arena) { + custom = ::google::protobuf::internal::GetOwnedMessage( + message_arena, custom, submessage_arena); + } + + } else { + + } + custom_ = custom; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.custom) +} + +// .flyteidl.core.Container container = 6; +inline bool TaskTemplate::has_container() const { + return target_case() == kContainer; +} +inline void TaskTemplate::set_has_container() { + _oneof_case_[0] = kContainer; +} +inline void TaskTemplate::clear_container() { + if (has_container()) { + delete target_.container_; + clear_has_target(); + } +} +inline ::flyteidl::core::Container* TaskTemplate::release_container() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.container) + if (has_container()) { + clear_has_target(); + ::flyteidl::core::Container* temp = target_.container_; + target_.container_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Container& TaskTemplate::container() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.container) + return has_container() + ? *target_.container_ + : *reinterpret_cast< ::flyteidl::core::Container*>(&::flyteidl::core::_Container_default_instance_); +} +inline ::flyteidl::core::Container* TaskTemplate::mutable_container() { + if (!has_container()) { + clear_target(); + set_has_container(); + target_.container_ = new ::flyteidl::core::Container; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.container) + return target_.container_; +} + +inline bool TaskTemplate::has_target() const { + return target_case() != TARGET_NOT_SET; +} +inline void TaskTemplate::clear_has_target() { + _oneof_case_[0] = TARGET_NOT_SET; +} +inline TaskTemplate::TargetCase TaskTemplate::target_case() const { + return TaskTemplate::TargetCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// ContainerPort + +// uint32 container_port = 1; +inline void ContainerPort::clear_container_port() { + container_port_ = 0u; +} +inline ::google::protobuf::uint32 ContainerPort::container_port() const { + // @@protoc_insertion_point(field_get:flyteidl.core.ContainerPort.container_port) + return container_port_; +} +inline void ContainerPort::set_container_port(::google::protobuf::uint32 value) { + + container_port_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.ContainerPort.container_port) +} + +// ------------------------------------------------------------------- + +// Container + +// string image = 1; +inline void Container::clear_image() { + image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Container::image() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.image) + return image_.GetNoArena(); +} +inline void Container::set_image(const ::std::string& value) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Container.image) +} +#if LANG_CXX11 +inline void Container::set_image(::std::string&& value) { + + image_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Container.image) +} +#endif +inline void Container::set_image(const char* value) { + GOOGLE_DCHECK(value != NULL); + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.image) +} +inline void Container::set_image(const char* value, size_t size) { + + image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.image) +} +inline ::std::string* Container::mutable_image() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.image) + return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Container::release_image() { + // @@protoc_insertion_point(field_release:flyteidl.core.Container.image) + + return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Container::set_allocated_image(::std::string* image) { + if (image != NULL) { + + } else { + + } + image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.image) +} + +// repeated string command = 2; +inline int Container::command_size() const { + return command_.size(); +} +inline void Container::clear_command() { + command_.Clear(); +} +inline const ::std::string& Container::command(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.command) + return command_.Get(index); +} +inline ::std::string* Container::mutable_command(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.command) + return command_.Mutable(index); +} +inline void Container::set_command(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.command) + command_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Container::set_command(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.command) + command_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Container::set_command(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + command_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.command) +} +inline void Container::set_command(int index, const char* value, size_t size) { + command_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.command) +} +inline ::std::string* Container::add_command() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Container.command) + return command_.Add(); +} +inline void Container::add_command(const ::std::string& value) { + command_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.command) +} +#if LANG_CXX11 +inline void Container::add_command(::std::string&& value) { + command_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.command) +} +#endif +inline void Container::add_command(const char* value) { + GOOGLE_DCHECK(value != NULL); + command_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.Container.command) +} +inline void Container::add_command(const char* value, size_t size) { + command_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Container.command) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +Container::command() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.command) + return command_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +Container::mutable_command() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.command) + return &command_; +} + +// repeated string args = 3; +inline int Container::args_size() const { + return args_.size(); +} +inline void Container::clear_args() { + args_.Clear(); +} +inline const ::std::string& Container::args(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.args) + return args_.Get(index); +} +inline ::std::string* Container::mutable_args(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.args) + return args_.Mutable(index); +} +inline void Container::set_args(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.args) + args_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Container::set_args(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Container.args) + args_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Container::set_args(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + args_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.args) +} +inline void Container::set_args(int index, const char* value, size_t size) { + args_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.args) +} +inline ::std::string* Container::add_args() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Container.args) + return args_.Add(); +} +inline void Container::add_args(const ::std::string& value) { + args_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.args) +} +#if LANG_CXX11 +inline void Container::add_args(::std::string&& value) { + args_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.Container.args) +} +#endif +inline void Container::add_args(const char* value) { + GOOGLE_DCHECK(value != NULL); + args_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.Container.args) +} +inline void Container::add_args(const char* value, size_t size) { + args_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Container.args) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +Container::args() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.args) + return args_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +Container::mutable_args() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.args) + return &args_; +} + +// .flyteidl.core.Resources resources = 4; +inline bool Container::has_resources() const { + return this != internal_default_instance() && resources_ != NULL; +} +inline void Container::clear_resources() { + if (GetArenaNoVirtual() == NULL && resources_ != NULL) { + delete resources_; + } + resources_ = NULL; +} +inline const ::flyteidl::core::Resources& Container::resources() const { + const ::flyteidl::core::Resources* p = resources_; + // @@protoc_insertion_point(field_get:flyteidl.core.Container.resources) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Resources_default_instance_); +} +inline ::flyteidl::core::Resources* Container::release_resources() { + // @@protoc_insertion_point(field_release:flyteidl.core.Container.resources) + + ::flyteidl::core::Resources* temp = resources_; + resources_ = NULL; + return temp; +} +inline ::flyteidl::core::Resources* Container::mutable_resources() { + + if (resources_ == NULL) { + resources_ = new ::flyteidl::core::Resources; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.resources) + return resources_; +} +inline void Container::set_allocated_resources(::flyteidl::core::Resources* resources) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete resources_; + } + if (resources) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + resources = ::google::protobuf::internal::GetOwnedMessage( + message_arena, resources, submessage_arena); + } + + } else { + + } + resources_ = resources; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.resources) +} + +// repeated .flyteidl.core.KeyValuePair env = 5; +inline int Container::env_size() const { + return env_.size(); +} +inline const ::flyteidl::core::KeyValuePair& Container::env(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.env) + return env_.Get(index); +} +inline ::flyteidl::core::KeyValuePair* Container::mutable_env(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.env) + return env_.Mutable(index); +} +inline ::flyteidl::core::KeyValuePair* Container::add_env() { + // @@protoc_insertion_point(field_add:flyteidl.core.Container.env) + return env_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* +Container::mutable_env() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.env) + return &env_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& +Container::env() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.env) + return env_; +} + +// repeated .flyteidl.core.KeyValuePair config = 6; +inline int Container::config_size() const { + return config_.size(); +} +inline const ::flyteidl::core::KeyValuePair& Container::config(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.config) + return config_.Get(index); +} +inline ::flyteidl::core::KeyValuePair* Container::mutable_config(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.config) + return config_.Mutable(index); +} +inline ::flyteidl::core::KeyValuePair* Container::add_config() { + // @@protoc_insertion_point(field_add:flyteidl.core.Container.config) + return config_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* +Container::mutable_config() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.config) + return &config_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& +Container::config() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.config) + return config_; +} + +// repeated .flyteidl.core.ContainerPort ports = 7; +inline int Container::ports_size() const { + return ports_.size(); +} +inline void Container::clear_ports() { + ports_.Clear(); +} +inline const ::flyteidl::core::ContainerPort& Container::ports(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Container.ports) + return ports_.Get(index); +} +inline ::flyteidl::core::ContainerPort* Container::mutable_ports(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.ports) + return ports_.Mutable(index); +} +inline ::flyteidl::core::ContainerPort* Container::add_ports() { + // @@protoc_insertion_point(field_add:flyteidl.core.Container.ports) + return ports_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >* +Container::mutable_ports() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.ports) + return &ports_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >& +Container::ports() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Container.ports) + return ports_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::Resources_ResourceName> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Resources_ResourceName>() { + return ::flyteidl::core::Resources_ResourceName_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::RuntimeMetadata_RuntimeType> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::RuntimeMetadata_RuntimeType>() { + return ::flyteidl::core::RuntimeMetadata_RuntimeType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2ftasks_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc new file mode 100644 index 0000000000..a1419eea8d --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/types.proto + +#include "flyteidl/core/types.pb.h" +#include "flyteidl/core/types.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h new file mode 100644 index 0000000000..03c4378b2c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/types.proto +#ifndef GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED + +#include "flyteidl/core/types.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc new file mode 100644 index 0000000000..ff90f81593 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc @@ -0,0 +1,2450 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +#include "flyteidl/core/types.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class SchemaType_SchemaColumnDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SchemaType_SchemaColumn_default_instance_; +class SchemaTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SchemaType_default_instance_; +class BlobTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BlobType_default_instance_; +class LiteralTypeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + int simple_; + const ::flyteidl::core::SchemaType* schema_; + const ::flyteidl::core::LiteralType* collection_type_; + const ::flyteidl::core::LiteralType* map_value_type_; + const ::flyteidl::core::BlobType* blob_; +} _LiteralType_default_instance_; +class OutputReferenceDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _OutputReference_default_instance_; +class ErrorDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Error_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2ftypes_2eproto { +void InitDefaultsSchemaType_SchemaColumnImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_SchemaType_SchemaColumn_default_instance_; + new (ptr) ::flyteidl::core::SchemaType_SchemaColumn(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SchemaType_SchemaColumn::InitAsDefaultInstance(); +} + +void InitDefaultsSchemaType_SchemaColumn() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSchemaType_SchemaColumnImpl); +} + +void InitDefaultsSchemaTypeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType_SchemaColumn(); + { + void* ptr = &::flyteidl::core::_SchemaType_default_instance_; + new (ptr) ::flyteidl::core::SchemaType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::SchemaType::InitAsDefaultInstance(); +} + +void InitDefaultsSchemaType() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSchemaTypeImpl); +} + +void InitDefaultsBlobTypeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_BlobType_default_instance_; + new (ptr) ::flyteidl::core::BlobType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::BlobType::InitAsDefaultInstance(); +} + +void InitDefaultsBlobType() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBlobTypeImpl); +} + +void InitDefaultsLiteralTypeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType(); + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsBlobType(); + protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue(); + { + void* ptr = &::flyteidl::core::_LiteralType_default_instance_; + new (ptr) ::flyteidl::core::LiteralType(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::LiteralType::InitAsDefaultInstance(); +} + +void InitDefaultsLiteralType() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLiteralTypeImpl); +} + +void InitDefaultsOutputReferenceImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_OutputReference_default_instance_; + new (ptr) ::flyteidl::core::OutputReference(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::OutputReference::InitAsDefaultInstance(); +} + +void InitDefaultsOutputReference() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsOutputReferenceImpl); +} + +void InitDefaultsErrorImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_Error_default_instance_; + new (ptr) ::flyteidl::core::Error(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Error::InitAsDefaultInstance(); +} + +void InitDefaultsError() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsErrorImpl); +} + +::google::protobuf::Metadata file_level_metadata[6]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, type_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::SchemaType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::SchemaType, columns_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BlobType, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BlobType, format_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BlobType, dimensionality_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralType, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralType, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, simple_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, schema_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, collection_type_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, map_value_type_), + offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, blob_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralType, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::LiteralType, type_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::OutputReference, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::OutputReference, node_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::OutputReference, var_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Error, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Error, failed_node_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Error, message_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::SchemaType_SchemaColumn)}, + { 7, -1, sizeof(::flyteidl::core::SchemaType)}, + { 13, -1, sizeof(::flyteidl::core::BlobType)}, + { 20, -1, sizeof(::flyteidl::core::LiteralType)}, + { 32, -1, sizeof(::flyteidl::core::OutputReference)}, + { 39, -1, sizeof(::flyteidl::core::Error)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_SchemaType_SchemaColumn_default_instance_), + reinterpret_cast(&::flyteidl::core::_SchemaType_default_instance_), + reinterpret_cast(&::flyteidl::core::_BlobType_default_instance_), + reinterpret_cast(&::flyteidl::core::_LiteralType_default_instance_), + reinterpret_cast(&::flyteidl::core::_OutputReference_default_instance_), + reinterpret_cast(&::flyteidl::core::_Error_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/types.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\031flyteidl/core/types.proto\022\rflyteidl.co" + "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + ".core.SchemaType.SchemaColumn.SchemaColu" + "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + "ATETIME\020\004\022\014\n\010DURATION\020\005\"\217\001\n\010BlobType\022\016\n\006" + "format\030\001 \001(\t\022B\n\016dimensionality\030\002 \001(\0162*.f" + "lyteidl.core.BlobType.BlobDimensionality" + "\"/\n\022BlobDimensionality\022\n\n\006SINGLE\020\000\022\r\n\tMU" + "LTIPART\020\001\"\260\002\n\013LiteralType\022+\n\006simple\030\001 \001(" + "\0162\031.flyteidl.core.SimpleTypeH\000\022+\n\006schema" + "\030\002 \001(\0132\031.flyteidl.core.SchemaTypeH\000\0225\n\017c" + "ollection_type\030\003 \001(\0132\032.flyteidl.core.Lit" + "eralTypeH\000\0224\n\016map_value_type\030\004 \001(\0132\032.fly" + "teidl.core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027" + ".flyteidl.core.BlobTypeH\000\022)\n\010metadata\030\006 " + "\001(\0132\027.google.protobuf.StructB\006\n\004type\"/\n\017" + "OutputReference\022\017\n\007node_id\030\001 \001(\t\022\013\n\003var\030" + "\002 \001(\t\"0\n\005Error\022\026\n\016failed_node_id\030\001 \001(\t\022\017" + "\n\007message\030\002 \001(\t*\206\001\n\nSimpleType\022\010\n\004NONE\020\000" + "\022\013\n\007INTEGER\020\001\022\t\n\005FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007" + "BOOLEAN\020\004\022\014\n\010DATETIME\020\005\022\014\n\010DURATION\020\006\022\n\n" + "\006BINARY\020\007\022\t\n\005ERROR\020\010\022\n\n\006STRUCT\020\tB2Z0gith" + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + "coreb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1092); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/types.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2ftypes_2eproto +namespace flyteidl { +namespace core { +const ::google::protobuf::EnumDescriptor* SchemaType_SchemaColumn_SchemaColumnType_descriptor() { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_enum_descriptors[0]; +} +bool SchemaType_SchemaColumn_SchemaColumnType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::INTEGER; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::FLOAT; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::STRING; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::BOOLEAN; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::DATETIME; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::DURATION; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::SchemaColumnType_MIN; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::SchemaColumnType_MAX; +const int SchemaType_SchemaColumn::SchemaColumnType_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* BlobType_BlobDimensionality_descriptor() { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_enum_descriptors[1]; +} +bool BlobType_BlobDimensionality_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const BlobType_BlobDimensionality BlobType::SINGLE; +const BlobType_BlobDimensionality BlobType::MULTIPART; +const BlobType_BlobDimensionality BlobType::BlobDimensionality_MIN; +const BlobType_BlobDimensionality BlobType::BlobDimensionality_MAX; +const int BlobType::BlobDimensionality_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 +const ::google::protobuf::EnumDescriptor* SimpleType_descriptor() { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_enum_descriptors[2]; +} +bool SimpleType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + return true; + default: + return false; + } +} + + +// =================================================================== + +void SchemaType_SchemaColumn::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SchemaType_SchemaColumn::kNameFieldNumber; +const int SchemaType_SchemaColumn::kTypeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SchemaType_SchemaColumn::SchemaType_SchemaColumn() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType_SchemaColumn(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SchemaType.SchemaColumn) +} +SchemaType_SchemaColumn::SchemaType_SchemaColumn(const SchemaType_SchemaColumn& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + type_ = from.type_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SchemaType.SchemaColumn) +} + +void SchemaType_SchemaColumn::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _cached_size_ = 0; +} + +SchemaType_SchemaColumn::~SchemaType_SchemaColumn() { + // @@protoc_insertion_point(destructor:flyteidl.core.SchemaType.SchemaColumn) + SharedDtor(); +} + +void SchemaType_SchemaColumn::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SchemaType_SchemaColumn::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SchemaType_SchemaColumn::descriptor() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SchemaType_SchemaColumn& SchemaType_SchemaColumn::default_instance() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType_SchemaColumn(); + return *internal_default_instance(); +} + +SchemaType_SchemaColumn* SchemaType_SchemaColumn::New(::google::protobuf::Arena* arena) const { + SchemaType_SchemaColumn* n = new SchemaType_SchemaColumn; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SchemaType_SchemaColumn::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + type_ = 0; + _internal_metadata_.Clear(); +} + +bool SchemaType_SchemaColumn::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SchemaType.SchemaColumn) + 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 name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.SchemaType.SchemaColumn.name")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_type(static_cast< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType >(value)); + } 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.SchemaType.SchemaColumn) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SchemaType.SchemaColumn) + return false; +#undef DO_ +} + +void SchemaType_SchemaColumn::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SchemaType.SchemaColumn.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + if (this->type() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->type(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SchemaType.SchemaColumn) +} + +::google::protobuf::uint8* SchemaType_SchemaColumn::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.SchemaType.SchemaColumn.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + if (this->type() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->type(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SchemaType.SchemaColumn) + return target; +} + +size_t SchemaType_SchemaColumn::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SchemaType.SchemaColumn) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + if (this->type() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SchemaType_SchemaColumn::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SchemaType.SchemaColumn) + GOOGLE_DCHECK_NE(&from, this); + const SchemaType_SchemaColumn* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SchemaType.SchemaColumn) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SchemaType.SchemaColumn) + MergeFrom(*source); + } +} + +void SchemaType_SchemaColumn::MergeFrom(const SchemaType_SchemaColumn& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SchemaType.SchemaColumn) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.type() != 0) { + set_type(from.type()); + } +} + +void SchemaType_SchemaColumn::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SchemaType.SchemaColumn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SchemaType_SchemaColumn::CopyFrom(const SchemaType_SchemaColumn& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SchemaType.SchemaColumn) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SchemaType_SchemaColumn::IsInitialized() const { + return true; +} + +void SchemaType_SchemaColumn::Swap(SchemaType_SchemaColumn* other) { + if (other == this) return; + InternalSwap(other); +} +void SchemaType_SchemaColumn::InternalSwap(SchemaType_SchemaColumn* other) { + using std::swap; + name_.Swap(&other->name_); + swap(type_, other->type_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SchemaType_SchemaColumn::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void SchemaType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SchemaType::kColumnsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SchemaType::SchemaType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.SchemaType) +} +SchemaType::SchemaType(const SchemaType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + columns_(from.columns_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.SchemaType) +} + +void SchemaType::SharedCtor() { + _cached_size_ = 0; +} + +SchemaType::~SchemaType() { + // @@protoc_insertion_point(destructor:flyteidl.core.SchemaType) + SharedDtor(); +} + +void SchemaType::SharedDtor() { +} + +void SchemaType::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SchemaType::descriptor() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SchemaType& SchemaType::default_instance() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType(); + return *internal_default_instance(); +} + +SchemaType* SchemaType::New(::google::protobuf::Arena* arena) const { + SchemaType* n = new SchemaType; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SchemaType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.SchemaType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + columns_.Clear(); + _internal_metadata_.Clear(); +} + +bool SchemaType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.SchemaType) + 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.SchemaType.SchemaColumn columns = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_columns())); + } 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.SchemaType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.SchemaType) + return false; +#undef DO_ +} + +void SchemaType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.SchemaType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + for (unsigned int i = 0, + n = static_cast(this->columns_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->columns(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.SchemaType) +} + +::google::protobuf::uint8* SchemaType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SchemaType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + for (unsigned int i = 0, + n = static_cast(this->columns_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->columns(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.SchemaType) + return target; +} + +size_t SchemaType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SchemaType) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + { + unsigned int count = static_cast(this->columns_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->columns(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SchemaType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SchemaType) + GOOGLE_DCHECK_NE(&from, this); + const SchemaType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SchemaType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SchemaType) + MergeFrom(*source); + } +} + +void SchemaType::MergeFrom(const SchemaType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SchemaType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + columns_.MergeFrom(from.columns_); +} + +void SchemaType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SchemaType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SchemaType::CopyFrom(const SchemaType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SchemaType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SchemaType::IsInitialized() const { + return true; +} + +void SchemaType::Swap(SchemaType* other) { + if (other == this) return; + InternalSwap(other); +} +void SchemaType::InternalSwap(SchemaType* other) { + using std::swap; + columns_.InternalSwap(&other->columns_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SchemaType::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BlobType::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BlobType::kFormatFieldNumber; +const int BlobType::kDimensionalityFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BlobType::BlobType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsBlobType(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BlobType) +} +BlobType::BlobType(const BlobType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.format().size() > 0) { + format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); + } + dimensionality_ = from.dimensionality_; + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BlobType) +} + +void BlobType::SharedCtor() { + format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dimensionality_ = 0; + _cached_size_ = 0; +} + +BlobType::~BlobType() { + // @@protoc_insertion_point(destructor:flyteidl.core.BlobType) + SharedDtor(); +} + +void BlobType::SharedDtor() { + format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void BlobType::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BlobType::descriptor() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BlobType& BlobType::default_instance() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsBlobType(); + return *internal_default_instance(); +} + +BlobType* BlobType::New(::google::protobuf::Arena* arena) const { + BlobType* n = new BlobType; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BlobType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BlobType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dimensionality_ = 0; + _internal_metadata_.Clear(); +} + +bool BlobType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BlobType) + 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 format = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_format())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.BlobType.format")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_dimensionality(static_cast< ::flyteidl::core::BlobType_BlobDimensionality >(value)); + } 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.BlobType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BlobType) + return false; +#undef DO_ +} + +void BlobType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BlobType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string format = 1; + if (this->format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BlobType.format"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->format(), output); + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + if (this->dimensionality() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->dimensionality(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BlobType) +} + +::google::protobuf::uint8* BlobType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BlobType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string format = 1; + if (this->format().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->format().data(), static_cast(this->format().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.BlobType.format"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->format(), target); + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + if (this->dimensionality() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->dimensionality(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BlobType) + return target; +} + +size_t BlobType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BlobType) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string format = 1; + if (this->format().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->format()); + } + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + if (this->dimensionality() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->dimensionality()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BlobType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BlobType) + GOOGLE_DCHECK_NE(&from, this); + const BlobType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BlobType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BlobType) + MergeFrom(*source); + } +} + +void BlobType::MergeFrom(const BlobType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BlobType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.format().size() > 0) { + + format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); + } + if (from.dimensionality() != 0) { + set_dimensionality(from.dimensionality()); + } +} + +void BlobType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BlobType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BlobType::CopyFrom(const BlobType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BlobType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BlobType::IsInitialized() const { + return true; +} + +void BlobType::Swap(BlobType* other) { + if (other == this) return; + InternalSwap(other); +} +void BlobType::InternalSwap(BlobType* other) { + using std::swap; + format_.Swap(&other->format_); + swap(dimensionality_, other->dimensionality_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BlobType::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void LiteralType::InitAsDefaultInstance() { + ::flyteidl::core::_LiteralType_default_instance_.simple_ = 0; + ::flyteidl::core::_LiteralType_default_instance_.schema_ = const_cast< ::flyteidl::core::SchemaType*>( + ::flyteidl::core::SchemaType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.collection_type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.map_value_type_ = const_cast< ::flyteidl::core::LiteralType*>( + ::flyteidl::core::LiteralType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_.blob_ = const_cast< ::flyteidl::core::BlobType*>( + ::flyteidl::core::BlobType::internal_default_instance()); + ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +void LiteralType::set_allocated_schema(::flyteidl::core::SchemaType* schema) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (schema) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + schema = ::google::protobuf::internal::GetOwnedMessage( + message_arena, schema, submessage_arena); + } + set_has_schema(); + type_.schema_ = schema; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.schema) +} +void LiteralType::set_allocated_collection_type(::flyteidl::core::LiteralType* collection_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (collection_type) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + collection_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, collection_type, submessage_arena); + } + set_has_collection_type(); + type_.collection_type_ = collection_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.collection_type) +} +void LiteralType::set_allocated_map_value_type(::flyteidl::core::LiteralType* map_value_type) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (map_value_type) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + map_value_type = ::google::protobuf::internal::GetOwnedMessage( + message_arena, map_value_type, submessage_arena); + } + set_has_map_value_type(); + type_.map_value_type_ = map_value_type; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.map_value_type) +} +void LiteralType::set_allocated_blob(::flyteidl::core::BlobType* blob) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_type(); + if (blob) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + blob = ::google::protobuf::internal::GetOwnedMessage( + message_arena, blob, submessage_arena); + } + set_has_blob(); + type_.blob_ = blob; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.blob) +} +void LiteralType::clear_metadata() { + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int LiteralType::kSimpleFieldNumber; +const int LiteralType::kSchemaFieldNumber; +const int LiteralType::kCollectionTypeFieldNumber; +const int LiteralType::kMapValueTypeFieldNumber; +const int LiteralType::kBlobFieldNumber; +const int LiteralType::kMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +LiteralType::LiteralType() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsLiteralType(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.LiteralType) +} +LiteralType::LiteralType(const LiteralType& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_metadata()) { + metadata_ = new ::google::protobuf::Struct(*from.metadata_); + } else { + metadata_ = NULL; + } + clear_has_type(); + switch (from.type_case()) { + case kSimple: { + set_simple(from.simple()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::SchemaType::MergeFrom(from.schema()); + break; + } + case kCollectionType: { + mutable_collection_type()->::flyteidl::core::LiteralType::MergeFrom(from.collection_type()); + break; + } + case kMapValueType: { + mutable_map_value_type()->::flyteidl::core::LiteralType::MergeFrom(from.map_value_type()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::BlobType::MergeFrom(from.blob()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralType) +} + +void LiteralType::SharedCtor() { + metadata_ = NULL; + clear_has_type(); + _cached_size_ = 0; +} + +LiteralType::~LiteralType() { + // @@protoc_insertion_point(destructor:flyteidl.core.LiteralType) + SharedDtor(); +} + +void LiteralType::SharedDtor() { + if (this != internal_default_instance()) delete metadata_; + if (has_type()) { + clear_type(); + } +} + +void LiteralType::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LiteralType::descriptor() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const LiteralType& LiteralType::default_instance() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsLiteralType(); + return *internal_default_instance(); +} + +LiteralType* LiteralType::New(::google::protobuf::Arena* arena) const { + LiteralType* n = new LiteralType; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void LiteralType::clear_type() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.LiteralType) + switch (type_case()) { + case kSimple: { + // No need to clear + break; + } + case kSchema: { + delete type_.schema_; + break; + } + case kCollectionType: { + delete type_.collection_type_; + break; + } + case kMapValueType: { + delete type_.map_value_type_; + break; + } + case kBlob: { + delete type_.blob_; + break; + } + case TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = TYPE_NOT_SET; +} + + +void LiteralType::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralType) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; + clear_type(); + _internal_metadata_.Clear(); +} + +bool LiteralType::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.LiteralType) + 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)) { + // .flyteidl.core.SimpleType simple = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_simple(static_cast< ::flyteidl::core::SimpleType >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.SchemaType schema = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType collection_type = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_collection_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.LiteralType map_value_type = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_map_value_type())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BlobType blob = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_blob())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct metadata = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } 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.LiteralType) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralType) + return false; +#undef DO_ +} + +void LiteralType::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SimpleType simple = 1; + if (has_simple()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->simple(), output); + } + + // .flyteidl.core.SchemaType schema = 2; + if (has_schema()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *type_.schema_, output); + } + + // .flyteidl.core.LiteralType collection_type = 3; + if (has_collection_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *type_.collection_type_, output); + } + + // .flyteidl.core.LiteralType map_value_type = 4; + if (has_map_value_type()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *type_.map_value_type_, output); + } + + // .flyteidl.core.BlobType blob = 5; + if (has_blob()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *type_.blob_, output); + } + + // .google.protobuf.Struct metadata = 6; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->metadata_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralType) +} + +::google::protobuf::uint8* LiteralType::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralType) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.SimpleType simple = 1; + if (has_simple()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->simple(), target); + } + + // .flyteidl.core.SchemaType schema = 2; + if (has_schema()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *type_.schema_, deterministic, target); + } + + // .flyteidl.core.LiteralType collection_type = 3; + if (has_collection_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *type_.collection_type_, deterministic, target); + } + + // .flyteidl.core.LiteralType map_value_type = 4; + if (has_map_value_type()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *type_.map_value_type_, deterministic, target); + } + + // .flyteidl.core.BlobType blob = 5; + if (has_blob()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *type_.blob_, deterministic, target); + } + + // .google.protobuf.Struct metadata = 6; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->metadata_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.LiteralType) + return target; +} + +size_t LiteralType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralType) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .google.protobuf.Struct metadata = 6; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->metadata_); + } + + switch (type_case()) { + // .flyteidl.core.SimpleType simple = 1; + case kSimple: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->simple()); + break; + } + // .flyteidl.core.SchemaType schema = 2; + case kSchema: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.schema_); + break; + } + // .flyteidl.core.LiteralType collection_type = 3; + case kCollectionType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.collection_type_); + break; + } + // .flyteidl.core.LiteralType map_value_type = 4; + case kMapValueType: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.map_value_type_); + break; + } + // .flyteidl.core.BlobType blob = 5; + case kBlob: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *type_.blob_); + break; + } + case TYPE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LiteralType::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralType) + GOOGLE_DCHECK_NE(&from, this); + const LiteralType* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralType) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralType) + MergeFrom(*source); + } +} + +void LiteralType::MergeFrom(const LiteralType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_metadata()) { + mutable_metadata()->::google::protobuf::Struct::MergeFrom(from.metadata()); + } + switch (from.type_case()) { + case kSimple: { + set_simple(from.simple()); + break; + } + case kSchema: { + mutable_schema()->::flyteidl::core::SchemaType::MergeFrom(from.schema()); + break; + } + case kCollectionType: { + mutable_collection_type()->::flyteidl::core::LiteralType::MergeFrom(from.collection_type()); + break; + } + case kMapValueType: { + mutable_map_value_type()->::flyteidl::core::LiteralType::MergeFrom(from.map_value_type()); + break; + } + case kBlob: { + mutable_blob()->::flyteidl::core::BlobType::MergeFrom(from.blob()); + break; + } + case TYPE_NOT_SET: { + break; + } + } +} + +void LiteralType::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LiteralType::CopyFrom(const LiteralType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralType) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LiteralType::IsInitialized() const { + return true; +} + +void LiteralType::Swap(LiteralType* other) { + if (other == this) return; + InternalSwap(other); +} +void LiteralType::InternalSwap(LiteralType* other) { + using std::swap; + swap(metadata_, other->metadata_); + swap(type_, other->type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata LiteralType::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void OutputReference::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int OutputReference::kNodeIdFieldNumber; +const int OutputReference::kVarFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +OutputReference::OutputReference() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsOutputReference(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.OutputReference) +} +OutputReference::OutputReference(const OutputReference& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.node_id().size() > 0) { + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.var().size() > 0) { + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.OutputReference) +} + +void OutputReference::SharedCtor() { + node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +OutputReference::~OutputReference() { + // @@protoc_insertion_point(destructor:flyteidl.core.OutputReference) + SharedDtor(); +} + +void OutputReference::SharedDtor() { + node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void OutputReference::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* OutputReference::descriptor() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const OutputReference& OutputReference::default_instance() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsOutputReference(); + return *internal_default_instance(); +} + +OutputReference* OutputReference::New(::google::protobuf::Arena* arena) const { + OutputReference* n = new OutputReference; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void OutputReference::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.OutputReference) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool OutputReference::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.OutputReference) + 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 node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OutputReference.node_id")); + } else { + goto handle_unusual; + } + break; + } + + // string var = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.OutputReference.var")); + } 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.OutputReference) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.OutputReference) + return false; +#undef DO_ +} + +void OutputReference::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.OutputReference) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->node_id(), output); + } + + // string var = 2; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->var(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.OutputReference) +} + +::google::protobuf::uint8* OutputReference::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OutputReference) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string node_id = 1; + if (this->node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->node_id().data(), static_cast(this->node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->node_id(), target); + } + + // string var = 2; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.OutputReference.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->var(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.OutputReference) + return target; +} + +size_t OutputReference::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OutputReference) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string node_id = 1; + if (this->node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->node_id()); + } + + // string var = 2; + if (this->var().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void OutputReference::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OutputReference) + GOOGLE_DCHECK_NE(&from, this); + const OutputReference* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OutputReference) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OutputReference) + MergeFrom(*source); + } +} + +void OutputReference::MergeFrom(const OutputReference& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OutputReference) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.node_id().size() > 0) { + + node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); + } + if (from.var().size() > 0) { + + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } +} + +void OutputReference::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OutputReference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void OutputReference::CopyFrom(const OutputReference& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OutputReference) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool OutputReference::IsInitialized() const { + return true; +} + +void OutputReference::Swap(OutputReference* other) { + if (other == this) return; + InternalSwap(other); +} +void OutputReference::InternalSwap(OutputReference* other) { + using std::swap; + node_id_.Swap(&other->node_id_); + var_.Swap(&other->var_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata OutputReference::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Error::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Error::kFailedNodeIdFieldNumber; +const int Error::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Error::Error() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsError(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Error) +} +Error::Error(const Error& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + failed_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.failed_node_id().size() > 0) { + failed_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.failed_node_id_); + } + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.message().size() > 0) { + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Error) +} + +void Error::SharedCtor() { + failed_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +Error::~Error() { + // @@protoc_insertion_point(destructor:flyteidl.core.Error) + SharedDtor(); +} + +void Error::SharedDtor() { + failed_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Error::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Error::descriptor() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Error& Error::default_instance() { + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsError(); + return *internal_default_instance(); +} + +Error* Error::New(::google::protobuf::Arena* arena) const { + Error* n = new Error; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Error::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Error) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + failed_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool Error::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Error) + 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 failed_node_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_failed_node_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->failed_node_id().data(), static_cast(this->failed_node_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Error.failed_node_id")); + } else { + goto handle_unusual; + } + break; + } + + // string message = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_message())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Error.message")); + } 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.Error) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Error) + return false; +#undef DO_ +} + +void Error::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Error) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string failed_node_id = 1; + if (this->failed_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->failed_node_id().data(), static_cast(this->failed_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.failed_node_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->failed_node_id(), output); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.message"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->message(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Error) +} + +::google::protobuf::uint8* Error::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Error) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string failed_node_id = 1; + if (this->failed_node_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->failed_node_id().data(), static_cast(this->failed_node_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.failed_node_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->failed_node_id(), target); + } + + // string message = 2; + if (this->message().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->message().data(), static_cast(this->message().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Error.message"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->message(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Error) + return target; +} + +size_t Error::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Error) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string failed_node_id = 1; + if (this->failed_node_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->failed_node_id()); + } + + // string message = 2; + if (this->message().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->message()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Error::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Error) + GOOGLE_DCHECK_NE(&from, this); + const Error* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Error) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Error) + MergeFrom(*source); + } +} + +void Error::MergeFrom(const Error& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Error) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.failed_node_id().size() > 0) { + + failed_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.failed_node_id_); + } + if (from.message().size() > 0) { + + message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); + } +} + +void Error::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Error) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Error::CopyFrom(const Error& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Error) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Error::IsInitialized() const { + return true; +} + +void Error::Swap(Error* other) { + if (other == this) return; + InternalSwap(other); +} +void Error::InternalSwap(Error* other) { + using std::swap; + failed_node_id_.Swap(&other->failed_node_id_); + message_.Swap(&other->message_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Error::GetMetadata() const { + protobuf_flyteidl_2fcore_2ftypes_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2ftypes_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h new file mode 100644 index 0000000000..03a4428768 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h @@ -0,0 +1,1676 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2ftypes_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2ftypes_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2ftypes_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[6]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsSchemaType_SchemaColumnImpl(); +void InitDefaultsSchemaType_SchemaColumn(); +void InitDefaultsSchemaTypeImpl(); +void InitDefaultsSchemaType(); +void InitDefaultsBlobTypeImpl(); +void InitDefaultsBlobType(); +void InitDefaultsLiteralTypeImpl(); +void InitDefaultsLiteralType(); +void InitDefaultsOutputReferenceImpl(); +void InitDefaultsOutputReference(); +void InitDefaultsErrorImpl(); +void InitDefaultsError(); +inline void InitDefaults() { + InitDefaultsSchemaType_SchemaColumn(); + InitDefaultsSchemaType(); + InitDefaultsBlobType(); + InitDefaultsLiteralType(); + InitDefaultsOutputReference(); + InitDefaultsError(); +} +} // namespace protobuf_flyteidl_2fcore_2ftypes_2eproto +namespace flyteidl { +namespace core { +class BlobType; +class BlobTypeDefaultTypeInternal; +extern BlobTypeDefaultTypeInternal _BlobType_default_instance_; +class Error; +class ErrorDefaultTypeInternal; +extern ErrorDefaultTypeInternal _Error_default_instance_; +class LiteralType; +class LiteralTypeDefaultTypeInternal; +extern LiteralTypeDefaultTypeInternal _LiteralType_default_instance_; +class OutputReference; +class OutputReferenceDefaultTypeInternal; +extern OutputReferenceDefaultTypeInternal _OutputReference_default_instance_; +class SchemaType; +class SchemaTypeDefaultTypeInternal; +extern SchemaTypeDefaultTypeInternal _SchemaType_default_instance_; +class SchemaType_SchemaColumn; +class SchemaType_SchemaColumnDefaultTypeInternal; +extern SchemaType_SchemaColumnDefaultTypeInternal _SchemaType_SchemaColumn_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +enum SchemaType_SchemaColumn_SchemaColumnType { + SchemaType_SchemaColumn_SchemaColumnType_INTEGER = 0, + SchemaType_SchemaColumn_SchemaColumnType_FLOAT = 1, + SchemaType_SchemaColumn_SchemaColumnType_STRING = 2, + SchemaType_SchemaColumn_SchemaColumnType_BOOLEAN = 3, + SchemaType_SchemaColumn_SchemaColumnType_DATETIME = 4, + SchemaType_SchemaColumn_SchemaColumnType_DURATION = 5, + SchemaType_SchemaColumn_SchemaColumnType_SchemaType_SchemaColumn_SchemaColumnType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + SchemaType_SchemaColumn_SchemaColumnType_SchemaType_SchemaColumn_SchemaColumnType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool SchemaType_SchemaColumn_SchemaColumnType_IsValid(int value); +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MIN = SchemaType_SchemaColumn_SchemaColumnType_INTEGER; +const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX = SchemaType_SchemaColumn_SchemaColumnType_DURATION; +const int SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_ARRAYSIZE = SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SchemaType_SchemaColumn_SchemaColumnType_descriptor(); +inline const ::std::string& SchemaType_SchemaColumn_SchemaColumnType_Name(SchemaType_SchemaColumn_SchemaColumnType value) { + return ::google::protobuf::internal::NameOfEnum( + SchemaType_SchemaColumn_SchemaColumnType_descriptor(), value); +} +inline bool SchemaType_SchemaColumn_SchemaColumnType_Parse( + const ::std::string& name, SchemaType_SchemaColumn_SchemaColumnType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SchemaType_SchemaColumn_SchemaColumnType_descriptor(), name, value); +} +enum BlobType_BlobDimensionality { + BlobType_BlobDimensionality_SINGLE = 0, + BlobType_BlobDimensionality_MULTIPART = 1, + BlobType_BlobDimensionality_BlobType_BlobDimensionality_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + BlobType_BlobDimensionality_BlobType_BlobDimensionality_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool BlobType_BlobDimensionality_IsValid(int value); +const BlobType_BlobDimensionality BlobType_BlobDimensionality_BlobDimensionality_MIN = BlobType_BlobDimensionality_SINGLE; +const BlobType_BlobDimensionality BlobType_BlobDimensionality_BlobDimensionality_MAX = BlobType_BlobDimensionality_MULTIPART; +const int BlobType_BlobDimensionality_BlobDimensionality_ARRAYSIZE = BlobType_BlobDimensionality_BlobDimensionality_MAX + 1; + +const ::google::protobuf::EnumDescriptor* BlobType_BlobDimensionality_descriptor(); +inline const ::std::string& BlobType_BlobDimensionality_Name(BlobType_BlobDimensionality value) { + return ::google::protobuf::internal::NameOfEnum( + BlobType_BlobDimensionality_descriptor(), value); +} +inline bool BlobType_BlobDimensionality_Parse( + const ::std::string& name, BlobType_BlobDimensionality* value) { + return ::google::protobuf::internal::ParseNamedEnum( + BlobType_BlobDimensionality_descriptor(), name, value); +} +enum SimpleType { + NONE = 0, + INTEGER = 1, + FLOAT = 2, + STRING = 3, + BOOLEAN = 4, + DATETIME = 5, + DURATION = 6, + BINARY = 7, + ERROR = 8, + STRUCT = 9, + SimpleType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + SimpleType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool SimpleType_IsValid(int value); +const SimpleType SimpleType_MIN = NONE; +const SimpleType SimpleType_MAX = STRUCT; +const int SimpleType_ARRAYSIZE = SimpleType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SimpleType_descriptor(); +inline const ::std::string& SimpleType_Name(SimpleType value) { + return ::google::protobuf::internal::NameOfEnum( + SimpleType_descriptor(), value); +} +inline bool SimpleType_Parse( + const ::std::string& name, SimpleType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SimpleType_descriptor(), name, value); +} +// =================================================================== + +class SchemaType_SchemaColumn : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SchemaType.SchemaColumn) */ { + public: + SchemaType_SchemaColumn(); + virtual ~SchemaType_SchemaColumn(); + + SchemaType_SchemaColumn(const SchemaType_SchemaColumn& from); + + inline SchemaType_SchemaColumn& operator=(const SchemaType_SchemaColumn& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SchemaType_SchemaColumn(SchemaType_SchemaColumn&& from) noexcept + : SchemaType_SchemaColumn() { + *this = ::std::move(from); + } + + inline SchemaType_SchemaColumn& operator=(SchemaType_SchemaColumn&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SchemaType_SchemaColumn& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SchemaType_SchemaColumn* internal_default_instance() { + return reinterpret_cast( + &_SchemaType_SchemaColumn_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(SchemaType_SchemaColumn* other); + friend void swap(SchemaType_SchemaColumn& a, SchemaType_SchemaColumn& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SchemaType_SchemaColumn* New() const PROTOBUF_FINAL { return New(NULL); } + + SchemaType_SchemaColumn* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SchemaType_SchemaColumn& from); + void MergeFrom(const SchemaType_SchemaColumn& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SchemaType_SchemaColumn* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef SchemaType_SchemaColumn_SchemaColumnType SchemaColumnType; + static const SchemaColumnType INTEGER = + SchemaType_SchemaColumn_SchemaColumnType_INTEGER; + static const SchemaColumnType FLOAT = + SchemaType_SchemaColumn_SchemaColumnType_FLOAT; + static const SchemaColumnType STRING = + SchemaType_SchemaColumn_SchemaColumnType_STRING; + static const SchemaColumnType BOOLEAN = + SchemaType_SchemaColumn_SchemaColumnType_BOOLEAN; + static const SchemaColumnType DATETIME = + SchemaType_SchemaColumn_SchemaColumnType_DATETIME; + static const SchemaColumnType DURATION = + SchemaType_SchemaColumn_SchemaColumnType_DURATION; + static inline bool SchemaColumnType_IsValid(int value) { + return SchemaType_SchemaColumn_SchemaColumnType_IsValid(value); + } + static const SchemaColumnType SchemaColumnType_MIN = + SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MIN; + static const SchemaColumnType SchemaColumnType_MAX = + SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX; + static const int SchemaColumnType_ARRAYSIZE = + SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SchemaColumnType_descriptor() { + return SchemaType_SchemaColumn_SchemaColumnType_descriptor(); + } + static inline const ::std::string& SchemaColumnType_Name(SchemaColumnType value) { + return SchemaType_SchemaColumn_SchemaColumnType_Name(value); + } + static inline bool SchemaColumnType_Parse(const ::std::string& name, + SchemaColumnType* value) { + return SchemaType_SchemaColumn_SchemaColumnType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + void clear_type(); + static const int kTypeFieldNumber = 2; + ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType type() const; + void set_type(::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + int type_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftypes_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaType_SchemaColumnImpl(); +}; +// ------------------------------------------------------------------- + +class SchemaType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SchemaType) */ { + public: + SchemaType(); + virtual ~SchemaType(); + + SchemaType(const SchemaType& from); + + inline SchemaType& operator=(const SchemaType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SchemaType(SchemaType&& from) noexcept + : SchemaType() { + *this = ::std::move(from); + } + + inline SchemaType& operator=(SchemaType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SchemaType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SchemaType* internal_default_instance() { + return reinterpret_cast( + &_SchemaType_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(SchemaType* other); + friend void swap(SchemaType& a, SchemaType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SchemaType* New() const PROTOBUF_FINAL { return New(NULL); } + + SchemaType* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SchemaType& from); + void MergeFrom(const SchemaType& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SchemaType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef SchemaType_SchemaColumn SchemaColumn; + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + int columns_size() const; + void clear_columns(); + static const int kColumnsFieldNumber = 3; + const ::flyteidl::core::SchemaType_SchemaColumn& columns(int index) const; + ::flyteidl::core::SchemaType_SchemaColumn* mutable_columns(int index); + ::flyteidl::core::SchemaType_SchemaColumn* add_columns(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >* + mutable_columns(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >& + columns() const; + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn > columns_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftypes_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsSchemaTypeImpl(); +}; +// ------------------------------------------------------------------- + +class BlobType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BlobType) */ { + public: + BlobType(); + virtual ~BlobType(); + + BlobType(const BlobType& from); + + inline BlobType& operator=(const BlobType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BlobType(BlobType&& from) noexcept + : BlobType() { + *this = ::std::move(from); + } + + inline BlobType& operator=(BlobType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BlobType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BlobType* internal_default_instance() { + return reinterpret_cast( + &_BlobType_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(BlobType* other); + friend void swap(BlobType& a, BlobType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BlobType* New() const PROTOBUF_FINAL { return New(NULL); } + + BlobType* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BlobType& from); + void MergeFrom(const BlobType& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BlobType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef BlobType_BlobDimensionality BlobDimensionality; + static const BlobDimensionality SINGLE = + BlobType_BlobDimensionality_SINGLE; + static const BlobDimensionality MULTIPART = + BlobType_BlobDimensionality_MULTIPART; + static inline bool BlobDimensionality_IsValid(int value) { + return BlobType_BlobDimensionality_IsValid(value); + } + static const BlobDimensionality BlobDimensionality_MIN = + BlobType_BlobDimensionality_BlobDimensionality_MIN; + static const BlobDimensionality BlobDimensionality_MAX = + BlobType_BlobDimensionality_BlobDimensionality_MAX; + static const int BlobDimensionality_ARRAYSIZE = + BlobType_BlobDimensionality_BlobDimensionality_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + BlobDimensionality_descriptor() { + return BlobType_BlobDimensionality_descriptor(); + } + static inline const ::std::string& BlobDimensionality_Name(BlobDimensionality value) { + return BlobType_BlobDimensionality_Name(value); + } + static inline bool BlobDimensionality_Parse(const ::std::string& name, + BlobDimensionality* value) { + return BlobType_BlobDimensionality_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // string format = 1; + void clear_format(); + static const int kFormatFieldNumber = 1; + const ::std::string& format() const; + void set_format(const ::std::string& value); + #if LANG_CXX11 + void set_format(::std::string&& value); + #endif + void set_format(const char* value); + void set_format(const char* value, size_t size); + ::std::string* mutable_format(); + ::std::string* release_format(); + void set_allocated_format(::std::string* format); + + // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + void clear_dimensionality(); + static const int kDimensionalityFieldNumber = 2; + ::flyteidl::core::BlobType_BlobDimensionality dimensionality() const; + void set_dimensionality(::flyteidl::core::BlobType_BlobDimensionality value); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr format_; + int dimensionality_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftypes_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsBlobTypeImpl(); +}; +// ------------------------------------------------------------------- + +class LiteralType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralType) */ { + public: + LiteralType(); + virtual ~LiteralType(); + + LiteralType(const LiteralType& from); + + inline LiteralType& operator=(const LiteralType& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + LiteralType(LiteralType&& from) noexcept + : LiteralType() { + *this = ::std::move(from); + } + + inline LiteralType& operator=(LiteralType&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const LiteralType& default_instance(); + + enum TypeCase { + kSimple = 1, + kSchema = 2, + kCollectionType = 3, + kMapValueType = 4, + kBlob = 5, + TYPE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const LiteralType* internal_default_instance() { + return reinterpret_cast( + &_LiteralType_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(LiteralType* other); + friend void swap(LiteralType& a, LiteralType& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline LiteralType* New() const PROTOBUF_FINAL { return New(NULL); } + + LiteralType* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const LiteralType& from); + void MergeFrom(const LiteralType& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(LiteralType* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .google.protobuf.Struct metadata = 6; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 6; + const ::google::protobuf::Struct& metadata() const; + ::google::protobuf::Struct* release_metadata(); + ::google::protobuf::Struct* mutable_metadata(); + void set_allocated_metadata(::google::protobuf::Struct* metadata); + + // .flyteidl.core.SimpleType simple = 1; + private: + bool has_simple() const; + public: + void clear_simple(); + static const int kSimpleFieldNumber = 1; + ::flyteidl::core::SimpleType simple() const; + void set_simple(::flyteidl::core::SimpleType value); + + // .flyteidl.core.SchemaType schema = 2; + bool has_schema() const; + void clear_schema(); + static const int kSchemaFieldNumber = 2; + const ::flyteidl::core::SchemaType& schema() const; + ::flyteidl::core::SchemaType* release_schema(); + ::flyteidl::core::SchemaType* mutable_schema(); + void set_allocated_schema(::flyteidl::core::SchemaType* schema); + + // .flyteidl.core.LiteralType collection_type = 3; + bool has_collection_type() const; + void clear_collection_type(); + static const int kCollectionTypeFieldNumber = 3; + const ::flyteidl::core::LiteralType& collection_type() const; + ::flyteidl::core::LiteralType* release_collection_type(); + ::flyteidl::core::LiteralType* mutable_collection_type(); + void set_allocated_collection_type(::flyteidl::core::LiteralType* collection_type); + + // .flyteidl.core.LiteralType map_value_type = 4; + bool has_map_value_type() const; + void clear_map_value_type(); + static const int kMapValueTypeFieldNumber = 4; + const ::flyteidl::core::LiteralType& map_value_type() const; + ::flyteidl::core::LiteralType* release_map_value_type(); + ::flyteidl::core::LiteralType* mutable_map_value_type(); + void set_allocated_map_value_type(::flyteidl::core::LiteralType* map_value_type); + + // .flyteidl.core.BlobType blob = 5; + bool has_blob() const; + void clear_blob(); + static const int kBlobFieldNumber = 5; + const ::flyteidl::core::BlobType& blob() const; + ::flyteidl::core::BlobType* release_blob(); + ::flyteidl::core::BlobType* mutable_blob(); + void set_allocated_blob(::flyteidl::core::BlobType* blob); + + TypeCase type_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + private: + void set_has_simple(); + void set_has_schema(); + void set_has_collection_type(); + void set_has_map_value_type(); + void set_has_blob(); + + inline bool has_type() const; + void clear_type(); + inline void clear_has_type(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::Struct* metadata_; + union TypeUnion { + TypeUnion() {} + int simple_; + ::flyteidl::core::SchemaType* schema_; + ::flyteidl::core::LiteralType* collection_type_; + ::flyteidl::core::LiteralType* map_value_type_; + ::flyteidl::core::BlobType* blob_; + } type_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2ftypes_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsLiteralTypeImpl(); +}; +// ------------------------------------------------------------------- + +class OutputReference : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OutputReference) */ { + public: + OutputReference(); + virtual ~OutputReference(); + + OutputReference(const OutputReference& from); + + inline OutputReference& operator=(const OutputReference& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + OutputReference(OutputReference&& from) noexcept + : OutputReference() { + *this = ::std::move(from); + } + + inline OutputReference& operator=(OutputReference&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const OutputReference& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const OutputReference* internal_default_instance() { + return reinterpret_cast( + &_OutputReference_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(OutputReference* other); + friend void swap(OutputReference& a, OutputReference& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline OutputReference* New() const PROTOBUF_FINAL { return New(NULL); } + + OutputReference* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const OutputReference& from); + void MergeFrom(const OutputReference& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(OutputReference* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string node_id = 1; + void clear_node_id(); + static const int kNodeIdFieldNumber = 1; + const ::std::string& node_id() const; + void set_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_node_id(::std::string&& value); + #endif + void set_node_id(const char* value); + void set_node_id(const char* value, size_t size); + ::std::string* mutable_node_id(); + ::std::string* release_node_id(); + void set_allocated_node_id(::std::string* node_id); + + // string var = 2; + void clear_var(); + static const int kVarFieldNumber = 2; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr node_id_; + ::google::protobuf::internal::ArenaStringPtr var_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftypes_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsOutputReferenceImpl(); +}; +// ------------------------------------------------------------------- + +class Error : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Error) */ { + public: + Error(); + virtual ~Error(); + + Error(const Error& from); + + inline Error& operator=(const Error& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Error(Error&& from) noexcept + : Error() { + *this = ::std::move(from); + } + + inline Error& operator=(Error&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Error& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Error* internal_default_instance() { + return reinterpret_cast( + &_Error_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(Error* other); + friend void swap(Error& a, Error& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Error* New() const PROTOBUF_FINAL { return New(NULL); } + + Error* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Error& from); + void MergeFrom(const Error& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Error* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string failed_node_id = 1; + void clear_failed_node_id(); + static const int kFailedNodeIdFieldNumber = 1; + const ::std::string& failed_node_id() const; + void set_failed_node_id(const ::std::string& value); + #if LANG_CXX11 + void set_failed_node_id(::std::string&& value); + #endif + void set_failed_node_id(const char* value); + void set_failed_node_id(const char* value, size_t size); + ::std::string* mutable_failed_node_id(); + ::std::string* release_failed_node_id(); + void set_allocated_failed_node_id(::std::string* failed_node_id); + + // string message = 2; + void clear_message(); + static const int kMessageFieldNumber = 2; + const ::std::string& message() const; + void set_message(const ::std::string& value); + #if LANG_CXX11 + void set_message(::std::string&& value); + #endif + void set_message(const char* value); + void set_message(const char* value, size_t size); + ::std::string* mutable_message(); + ::std::string* release_message(); + void set_allocated_message(::std::string* message); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Error) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr failed_node_id_; + ::google::protobuf::internal::ArenaStringPtr message_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2ftypes_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsErrorImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SchemaType_SchemaColumn + +// string name = 1; +inline void SchemaType_SchemaColumn::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SchemaType_SchemaColumn::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.SchemaColumn.name) + return name_.GetNoArena(); +} +inline void SchemaType_SchemaColumn::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.SchemaType.SchemaColumn.name) +} +#if LANG_CXX11 +inline void SchemaType_SchemaColumn::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SchemaType.SchemaColumn.name) +} +#endif +inline void SchemaType_SchemaColumn::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.SchemaType.SchemaColumn.name) +} +inline void SchemaType_SchemaColumn::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SchemaType.SchemaColumn.name) +} +inline ::std::string* SchemaType_SchemaColumn::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.SchemaType.SchemaColumn.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SchemaType_SchemaColumn::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.SchemaType.SchemaColumn.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SchemaType_SchemaColumn::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SchemaType.SchemaColumn.name) +} + +// .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; +inline void SchemaType_SchemaColumn::clear_type() { + type_ = 0; +} +inline ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.SchemaColumn.type) + return static_cast< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType >(type_); +} +inline void SchemaType_SchemaColumn::set_type(::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType value) { + + type_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.SchemaType.SchemaColumn.type) +} + +// ------------------------------------------------------------------- + +// SchemaType + +// repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; +inline int SchemaType::columns_size() const { + return columns_.size(); +} +inline void SchemaType::clear_columns() { + columns_.Clear(); +} +inline const ::flyteidl::core::SchemaType_SchemaColumn& SchemaType::columns(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.columns) + return columns_.Get(index); +} +inline ::flyteidl::core::SchemaType_SchemaColumn* SchemaType::mutable_columns(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.SchemaType.columns) + return columns_.Mutable(index); +} +inline ::flyteidl::core::SchemaType_SchemaColumn* SchemaType::add_columns() { + // @@protoc_insertion_point(field_add:flyteidl.core.SchemaType.columns) + return columns_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >* +SchemaType::mutable_columns() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SchemaType.columns) + return &columns_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >& +SchemaType::columns() const { + // @@protoc_insertion_point(field_list:flyteidl.core.SchemaType.columns) + return columns_; +} + +// ------------------------------------------------------------------- + +// BlobType + +// string format = 1; +inline void BlobType::clear_format() { + format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& BlobType::format() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BlobType.format) + return format_.GetNoArena(); +} +inline void BlobType::set_format(const ::std::string& value) { + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.BlobType.format) +} +#if LANG_CXX11 +inline void BlobType::set_format(::std::string&& value) { + + format_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.BlobType.format) +} +#endif +inline void BlobType::set_format(const char* value) { + GOOGLE_DCHECK(value != NULL); + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.BlobType.format) +} +inline void BlobType::set_format(const char* value, size_t size) { + + format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.BlobType.format) +} +inline ::std::string* BlobType::mutable_format() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.BlobType.format) + return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* BlobType::release_format() { + // @@protoc_insertion_point(field_release:flyteidl.core.BlobType.format) + + return format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void BlobType::set_allocated_format(::std::string* format) { + if (format != NULL) { + + } else { + + } + format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BlobType.format) +} + +// .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; +inline void BlobType::clear_dimensionality() { + dimensionality_ = 0; +} +inline ::flyteidl::core::BlobType_BlobDimensionality BlobType::dimensionality() const { + // @@protoc_insertion_point(field_get:flyteidl.core.BlobType.dimensionality) + return static_cast< ::flyteidl::core::BlobType_BlobDimensionality >(dimensionality_); +} +inline void BlobType::set_dimensionality(::flyteidl::core::BlobType_BlobDimensionality value) { + + dimensionality_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.BlobType.dimensionality) +} + +// ------------------------------------------------------------------- + +// LiteralType + +// .flyteidl.core.SimpleType simple = 1; +inline bool LiteralType::has_simple() const { + return type_case() == kSimple; +} +inline void LiteralType::set_has_simple() { + _oneof_case_[0] = kSimple; +} +inline void LiteralType::clear_simple() { + if (has_simple()) { + type_.simple_ = 0; + clear_has_type(); + } +} +inline ::flyteidl::core::SimpleType LiteralType::simple() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.simple) + if (has_simple()) { + return static_cast< ::flyteidl::core::SimpleType >(type_.simple_); + } + return static_cast< ::flyteidl::core::SimpleType >(0); +} +inline void LiteralType::set_simple(::flyteidl::core::SimpleType value) { + if (!has_simple()) { + clear_type(); + set_has_simple(); + } + type_.simple_ = value; + // @@protoc_insertion_point(field_set:flyteidl.core.LiteralType.simple) +} + +// .flyteidl.core.SchemaType schema = 2; +inline bool LiteralType::has_schema() const { + return type_case() == kSchema; +} +inline void LiteralType::set_has_schema() { + _oneof_case_[0] = kSchema; +} +inline void LiteralType::clear_schema() { + if (has_schema()) { + delete type_.schema_; + clear_has_type(); + } +} +inline ::flyteidl::core::SchemaType* LiteralType::release_schema() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.schema) + if (has_schema()) { + clear_has_type(); + ::flyteidl::core::SchemaType* temp = type_.schema_; + type_.schema_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::SchemaType& LiteralType::schema() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.schema) + return has_schema() + ? *type_.schema_ + : *reinterpret_cast< ::flyteidl::core::SchemaType*>(&::flyteidl::core::_SchemaType_default_instance_); +} +inline ::flyteidl::core::SchemaType* LiteralType::mutable_schema() { + if (!has_schema()) { + clear_type(); + set_has_schema(); + type_.schema_ = new ::flyteidl::core::SchemaType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.schema) + return type_.schema_; +} + +// .flyteidl.core.LiteralType collection_type = 3; +inline bool LiteralType::has_collection_type() const { + return type_case() == kCollectionType; +} +inline void LiteralType::set_has_collection_type() { + _oneof_case_[0] = kCollectionType; +} +inline void LiteralType::clear_collection_type() { + if (has_collection_type()) { + delete type_.collection_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::LiteralType* LiteralType::release_collection_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.collection_type) + if (has_collection_type()) { + clear_has_type(); + ::flyteidl::core::LiteralType* temp = type_.collection_type_; + type_.collection_type_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::LiteralType& LiteralType::collection_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.collection_type) + return has_collection_type() + ? *type_.collection_type_ + : *reinterpret_cast< ::flyteidl::core::LiteralType*>(&::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* LiteralType::mutable_collection_type() { + if (!has_collection_type()) { + clear_type(); + set_has_collection_type(); + type_.collection_type_ = new ::flyteidl::core::LiteralType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.collection_type) + return type_.collection_type_; +} + +// .flyteidl.core.LiteralType map_value_type = 4; +inline bool LiteralType::has_map_value_type() const { + return type_case() == kMapValueType; +} +inline void LiteralType::set_has_map_value_type() { + _oneof_case_[0] = kMapValueType; +} +inline void LiteralType::clear_map_value_type() { + if (has_map_value_type()) { + delete type_.map_value_type_; + clear_has_type(); + } +} +inline ::flyteidl::core::LiteralType* LiteralType::release_map_value_type() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.map_value_type) + if (has_map_value_type()) { + clear_has_type(); + ::flyteidl::core::LiteralType* temp = type_.map_value_type_; + type_.map_value_type_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::LiteralType& LiteralType::map_value_type() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.map_value_type) + return has_map_value_type() + ? *type_.map_value_type_ + : *reinterpret_cast< ::flyteidl::core::LiteralType*>(&::flyteidl::core::_LiteralType_default_instance_); +} +inline ::flyteidl::core::LiteralType* LiteralType::mutable_map_value_type() { + if (!has_map_value_type()) { + clear_type(); + set_has_map_value_type(); + type_.map_value_type_ = new ::flyteidl::core::LiteralType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.map_value_type) + return type_.map_value_type_; +} + +// .flyteidl.core.BlobType blob = 5; +inline bool LiteralType::has_blob() const { + return type_case() == kBlob; +} +inline void LiteralType::set_has_blob() { + _oneof_case_[0] = kBlob; +} +inline void LiteralType::clear_blob() { + if (has_blob()) { + delete type_.blob_; + clear_has_type(); + } +} +inline ::flyteidl::core::BlobType* LiteralType::release_blob() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.blob) + if (has_blob()) { + clear_has_type(); + ::flyteidl::core::BlobType* temp = type_.blob_; + type_.blob_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::BlobType& LiteralType::blob() const { + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.blob) + return has_blob() + ? *type_.blob_ + : *reinterpret_cast< ::flyteidl::core::BlobType*>(&::flyteidl::core::_BlobType_default_instance_); +} +inline ::flyteidl::core::BlobType* LiteralType::mutable_blob() { + if (!has_blob()) { + clear_type(); + set_has_blob(); + type_.blob_ = new ::flyteidl::core::BlobType; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.blob) + return type_.blob_; +} + +// .google.protobuf.Struct metadata = 6; +inline bool LiteralType::has_metadata() const { + return this != internal_default_instance() && metadata_ != NULL; +} +inline const ::google::protobuf::Struct& LiteralType::metadata() const { + const ::google::protobuf::Struct* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.metadata) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* LiteralType::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.metadata) + + ::google::protobuf::Struct* temp = metadata_; + metadata_ = NULL; + return temp; +} +inline ::google::protobuf::Struct* LiteralType::mutable_metadata() { + + if (metadata_ == NULL) { + metadata_ = new ::google::protobuf::Struct; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.metadata) + return metadata_; +} +inline void LiteralType::set_allocated_metadata(::google::protobuf::Struct* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_); + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(metadata)->GetArena(); + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.metadata) +} + +inline bool LiteralType::has_type() const { + return type_case() != TYPE_NOT_SET; +} +inline void LiteralType::clear_has_type() { + _oneof_case_[0] = TYPE_NOT_SET; +} +inline LiteralType::TypeCase LiteralType::type_case() const { + return LiteralType::TypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// OutputReference + +// string node_id = 1; +inline void OutputReference::clear_node_id() { + node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OutputReference::node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.node_id) + return node_id_.GetNoArena(); +} +inline void OutputReference::set_node_id(const ::std::string& value) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OutputReference.node_id) +} +#if LANG_CXX11 +inline void OutputReference::set_node_id(::std::string&& value) { + + node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OutputReference.node_id) +} +#endif +inline void OutputReference::set_node_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OutputReference.node_id) +} +inline void OutputReference::set_node_id(const char* value, size_t size) { + + node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OutputReference.node_id) +} +inline ::std::string* OutputReference::mutable_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.node_id) + return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OutputReference::release_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.OutputReference.node_id) + + return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OutputReference::set_allocated_node_id(::std::string* node_id) { + if (node_id != NULL) { + + } else { + + } + node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OutputReference.node_id) +} + +// string var = 2; +inline void OutputReference::clear_var() { + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& OutputReference::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.var) + return var_.GetNoArena(); +} +inline void OutputReference::set_var(const ::std::string& value) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.OutputReference.var) +} +#if LANG_CXX11 +inline void OutputReference::set_var(::std::string&& value) { + + var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OutputReference.var) +} +#endif +inline void OutputReference::set_var(const char* value) { + GOOGLE_DCHECK(value != NULL); + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.OutputReference.var) +} +inline void OutputReference::set_var(const char* value, size_t size) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OutputReference.var) +} +inline ::std::string* OutputReference::mutable_var() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.var) + return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* OutputReference::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.OutputReference.var) + + return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void OutputReference::set_allocated_var(::std::string* var) { + if (var != NULL) { + + } else { + + } + var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OutputReference.var) +} + +// ------------------------------------------------------------------- + +// Error + +// string failed_node_id = 1; +inline void Error::clear_failed_node_id() { + failed_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Error::failed_node_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Error.failed_node_id) + return failed_node_id_.GetNoArena(); +} +inline void Error::set_failed_node_id(const ::std::string& value) { + + failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Error.failed_node_id) +} +#if LANG_CXX11 +inline void Error::set_failed_node_id(::std::string&& value) { + + failed_node_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Error.failed_node_id) +} +#endif +inline void Error::set_failed_node_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Error.failed_node_id) +} +inline void Error::set_failed_node_id(const char* value, size_t size) { + + failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Error.failed_node_id) +} +inline ::std::string* Error::mutable_failed_node_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Error.failed_node_id) + return failed_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Error::release_failed_node_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Error.failed_node_id) + + return failed_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Error::set_allocated_failed_node_id(::std::string* failed_node_id) { + if (failed_node_id != NULL) { + + } else { + + } + failed_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), failed_node_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Error.failed_node_id) +} + +// string message = 2; +inline void Error::clear_message() { + message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Error::message() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Error.message) + return message_.GetNoArena(); +} +inline void Error::set_message(const ::std::string& value) { + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Error.message) +} +#if LANG_CXX11 +inline void Error::set_message(::std::string&& value) { + + message_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Error.message) +} +#endif +inline void Error::set_message(const char* value) { + GOOGLE_DCHECK(value != NULL); + + message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Error.message) +} +inline void Error::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.core.Error.message) +} +inline ::std::string* Error::mutable_message() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Error.message) + return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Error::release_message() { + // @@protoc_insertion_point(field_release:flyteidl.core.Error.message) + + return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Error::set_allocated_message(::std::string* message) { + if (message != NULL) { + + } else { + + } + message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Error.message) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType>() { + return ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::BlobType_BlobDimensionality> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::BlobType_BlobDimensionality>() { + return ::flyteidl::core::BlobType_BlobDimensionality_descriptor(); +} +template <> struct is_proto_enum< ::flyteidl::core::SimpleType> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::SimpleType>() { + return ::flyteidl::core::SimpleType_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2ftypes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc new file mode 100644 index 0000000000..4ab0bb6036 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow.proto + +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/workflow.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h new file mode 100644 index 0000000000..734cd7df26 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow.proto +#ifndef GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED + +#include "flyteidl/core/workflow.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc new file mode 100644 index 0000000000..c01a52e51b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc @@ -0,0 +1,4182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +#include "flyteidl/core/workflow.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class IfBlockDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _IfBlock_default_instance_; +class IfElseBlockDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Node* else_node_; + const ::flyteidl::core::Error* error_; +} _IfElseBlock_default_instance_; +class BranchNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _BranchNode_default_instance_; +class TaskNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Identifier* reference_id_; +} _TaskNode_default_instance_; +class WorkflowNodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::Identifier* launchplan_ref_; + const ::flyteidl::core::Identifier* sub_workflow_ref_; +} _WorkflowNode_default_instance_; +class NodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _NodeMetadata_default_instance_; +class AliasDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Alias_default_instance_; +class NodeDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + const ::flyteidl::core::TaskNode* task_node_; + const ::flyteidl::core::WorkflowNode* workflow_node_; + const ::flyteidl::core::BranchNode* branch_node_; +} _Node_default_instance_; +class WorkflowMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowMetadata_default_instance_; +class WorkflowTemplateDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowTemplate_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fworkflow_2eproto { +void InitDefaultsBranchNodeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fcondition_2eproto::InitDefaultsBooleanExpression(); + protobuf_flyteidl_2fcore_2ftypes_2eproto::InitDefaultsError(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsNodeMetadata(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinding(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsAlias(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsTaskNode(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowNode(); + { + void* ptr = &::flyteidl::core::_IfBlock_default_instance_; + new (ptr) ::flyteidl::core::IfBlock(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_IfElseBlock_default_instance_; + new (ptr) ::flyteidl::core::IfElseBlock(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_BranchNode_default_instance_; + new (ptr) ::flyteidl::core::BranchNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::flyteidl::core::_Node_default_instance_; + new (ptr) ::flyteidl::core::Node(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::IfBlock::InitAsDefaultInstance(); + ::flyteidl::core::IfElseBlock::InitAsDefaultInstance(); + ::flyteidl::core::BranchNode::InitAsDefaultInstance(); + ::flyteidl::core::Node::InitAsDefaultInstance(); +} + +void InitDefaultsBranchNode() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsBranchNodeImpl); +} + +void InitDefaultsTaskNodeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + { + void* ptr = &::flyteidl::core::_TaskNode_default_instance_; + new (ptr) ::flyteidl::core::TaskNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::TaskNode::InitAsDefaultInstance(); +} + +void InitDefaultsTaskNode() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskNodeImpl); +} + +void InitDefaultsWorkflowNodeImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + { + void* ptr = &::flyteidl::core::_WorkflowNode_default_instance_; + new (ptr) ::flyteidl::core::WorkflowNode(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowNode::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowNode() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowNodeImpl); +} + +void InitDefaultsNodeMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_google_2fprotobuf_2fduration_2eproto::InitDefaultsDuration(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsRetryStrategy(); + { + void* ptr = &::flyteidl::core::_NodeMetadata_default_instance_; + new (ptr) ::flyteidl::core::NodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::NodeMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsNodeMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeMetadataImpl); +} + +void InitDefaultsAliasImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_Alias_default_instance_; + new (ptr) ::flyteidl::core::Alias(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::Alias::InitAsDefaultInstance(); +} + +void InitDefaultsAlias() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAliasImpl); +} + +void InitDefaultsWorkflowMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::core::_WorkflowMetadata_default_instance_; + new (ptr) ::flyteidl::core::WorkflowMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowMetadataImpl); +} + +void InitDefaultsWorkflowTemplateImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowMetadata(); + protobuf_flyteidl_2fcore_2finterface_2eproto::InitDefaultsTypedInterface(); + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + protobuf_flyteidl_2fcore_2fliterals_2eproto::InitDefaultsBinding(); + { + void* ptr = &::flyteidl::core::_WorkflowTemplate_default_instance_; + new (ptr) ::flyteidl::core::WorkflowTemplate(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowTemplate::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowTemplate() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowTemplateImpl); +} + +::google::protobuf::Metadata file_level_metadata[10]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfBlock, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfBlock, condition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfBlock, then_node_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfElseBlock, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfElseBlock, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfElseBlock, case__), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfElseBlock, other_), + offsetof(::flyteidl::core::IfElseBlockDefaultTypeInternal, else_node_), + offsetof(::flyteidl::core::IfElseBlockDefaultTypeInternal, error_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::IfElseBlock, default_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BranchNode, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::BranchNode, if_else_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskNode, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskNode, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::TaskNodeDefaultTypeInternal, reference_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::TaskNode, reference_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowNode, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowNode, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::core::WorkflowNodeDefaultTypeInternal, launchplan_ref_), + offsetof(::flyteidl::core::WorkflowNodeDefaultTypeInternal, sub_workflow_ref_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowNode, reference_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeMetadata, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeMetadata, timeout_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::NodeMetadata, retries_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Alias, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Alias, var_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Alias, alias_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, inputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, upstream_node_ids_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, output_aliases_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, task_node_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, workflow_node_), + offsetof(::flyteidl::core::NodeDefaultTypeInternal, branch_node_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::Node, target_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, interface_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, nodes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, outputs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, failure_node_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::IfBlock)}, + { 7, -1, sizeof(::flyteidl::core::IfElseBlock)}, + { 17, -1, sizeof(::flyteidl::core::BranchNode)}, + { 23, -1, sizeof(::flyteidl::core::TaskNode)}, + { 30, -1, sizeof(::flyteidl::core::WorkflowNode)}, + { 38, -1, sizeof(::flyteidl::core::NodeMetadata)}, + { 46, -1, sizeof(::flyteidl::core::Alias)}, + { 53, -1, sizeof(::flyteidl::core::Node)}, + { 67, -1, sizeof(::flyteidl::core::WorkflowMetadata)}, + { 72, -1, sizeof(::flyteidl::core::WorkflowTemplate)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_IfBlock_default_instance_), + reinterpret_cast(&::flyteidl::core::_IfElseBlock_default_instance_), + reinterpret_cast(&::flyteidl::core::_BranchNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_TaskNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowNode_default_instance_), + reinterpret_cast(&::flyteidl::core::_NodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_Alias_default_instance_), + reinterpret_cast(&::flyteidl::core::_Node_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowMetadata_default_instance_), + reinterpret_cast(&::flyteidl::core::_WorkflowTemplate_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/workflow.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\034flyteidl/core/workflow.proto\022\rflyteidl" + ".core\032\035flyteidl/core/condition.proto\032\036fl" + "yteidl/core/identifier.proto\032\035flyteidl/c" + "ore/interface.proto\032\034flyteidl/core/liter" + "als.proto\032\031flyteidl/core/types.proto\032\036go" + "ogle/protobuf/duration.proto\"f\n\007IfBlock\022" + "3\n\tcondition\030\001 \001(\0132 .flyteidl.core.Boole" + "anExpression\022&\n\tthen_node\030\002 \001(\0132\023.flytei" + "dl.core.Node\"\266\001\n\013IfElseBlock\022$\n\004case\030\001 \001" + "(\0132\026.flyteidl.core.IfBlock\022%\n\005other\030\002 \003(" + "\0132\026.flyteidl.core.IfBlock\022(\n\telse_node\030\003" + " \001(\0132\023.flyteidl.core.NodeH\000\022%\n\005error\030\004 \001" + "(\0132\024.flyteidl.core.ErrorH\000B\t\n\007default\"9\n" + "\nBranchNode\022+\n\007if_else\030\001 \001(\0132\032.flyteidl." + "core.IfElseBlock\"J\n\010TaskNode\0221\n\014referenc" + "e_id\030\001 \001(\0132\031.flyteidl.core.IdentifierH\000B" + "\013\n\treference\"\207\001\n\014WorkflowNode\0223\n\016launchp" + "lan_ref\030\001 \001(\0132\031.flyteidl.core.Identifier" + "H\000\0225\n\020sub_workflow_ref\030\002 \001(\0132\031.flyteidl." + "core.IdentifierH\000B\013\n\treference\"w\n\014NodeMe" + "tadata\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031." + "google.protobuf.Duration\022-\n\007retries\030\005 \001(" + "\0132\034.flyteidl.core.RetryStrategy\"#\n\005Alias" + "\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\322\002\n\004Node\022\n\n" + "\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl.c" + "ore.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.flyte" + "idl.core.Binding\022\031\n\021upstream_node_ids\030\004 " + "\003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl.c" + "ore.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteidl." + "core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\0132\033" + ".flyteidl.core.WorkflowNodeH\000\0220\n\013branch_" + "node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH\000B" + "\010\n\006target\"\022\n\020WorkflowMetadata\"\226\002\n\020Workfl" + "owTemplate\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.I" + "dentifier\0221\n\010metadata\030\002 \001(\0132\037.flyteidl.c" + "ore.WorkflowMetadata\0220\n\tinterface\030\003 \001(\0132" + "\035.flyteidl.core.TypedInterface\022\"\n\005nodes\030" + "\004 \003(\0132\023.flyteidl.core.Node\022\'\n\007outputs\030\005 " + "\003(\0132\026.flyteidl.core.Binding\022)\n\014failure_n" + "ode\030\006 \001(\0132\023.flyteidl.core.NodeB2Z0github" + ".com/lyft/flyteidl/gen/pb-go/flyteidl/co" + "reb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1650); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/workflow.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fcondition_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2finterface_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fliterals_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2ftypes_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fworkflow_2eproto +namespace flyteidl { +namespace core { + +// =================================================================== + +void IfBlock::InitAsDefaultInstance() { + ::flyteidl::core::_IfBlock_default_instance_._instance.get_mutable()->condition_ = const_cast< ::flyteidl::core::BooleanExpression*>( + ::flyteidl::core::BooleanExpression::internal_default_instance()); + ::flyteidl::core::_IfBlock_default_instance_._instance.get_mutable()->then_node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); +} +void IfBlock::clear_condition() { + if (GetArenaNoVirtual() == NULL && condition_ != NULL) { + delete condition_; + } + condition_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IfBlock::kConditionFieldNumber; +const int IfBlock::kThenNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IfBlock::IfBlock() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.IfBlock) +} +IfBlock::IfBlock(const IfBlock& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_condition()) { + condition_ = new ::flyteidl::core::BooleanExpression(*from.condition_); + } else { + condition_ = NULL; + } + if (from.has_then_node()) { + then_node_ = new ::flyteidl::core::Node(*from.then_node_); + } else { + then_node_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.IfBlock) +} + +void IfBlock::SharedCtor() { + ::memset(&condition_, 0, static_cast( + reinterpret_cast(&then_node_) - + reinterpret_cast(&condition_)) + sizeof(then_node_)); + _cached_size_ = 0; +} + +IfBlock::~IfBlock() { + // @@protoc_insertion_point(destructor:flyteidl.core.IfBlock) + SharedDtor(); +} + +void IfBlock::SharedDtor() { + if (this != internal_default_instance()) delete condition_; + if (this != internal_default_instance()) delete then_node_; +} + +void IfBlock::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IfBlock::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const IfBlock& IfBlock::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + return *internal_default_instance(); +} + +IfBlock* IfBlock::New(::google::protobuf::Arena* arena) const { + IfBlock* n = new IfBlock; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void IfBlock::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.IfBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && condition_ != NULL) { + delete condition_; + } + condition_ = NULL; + if (GetArenaNoVirtual() == NULL && then_node_ != NULL) { + delete then_node_; + } + then_node_ = NULL; + _internal_metadata_.Clear(); +} + +bool IfBlock::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.IfBlock) + 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)) { + // .flyteidl.core.BooleanExpression condition = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_condition())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Node then_node = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_then_node())); + } 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.IfBlock) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.IfBlock) + return false; +#undef DO_ +} + +void IfBlock::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.IfBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BooleanExpression condition = 1; + if (this->has_condition()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->condition_, output); + } + + // .flyteidl.core.Node then_node = 2; + if (this->has_then_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->then_node_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.IfBlock) +} + +::google::protobuf::uint8* IfBlock::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IfBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.BooleanExpression condition = 1; + if (this->has_condition()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->condition_, deterministic, target); + } + + // .flyteidl.core.Node then_node = 2; + if (this->has_then_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->then_node_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.IfBlock) + return target; +} + +size_t IfBlock::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IfBlock) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.BooleanExpression condition = 1; + if (this->has_condition()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->condition_); + } + + // .flyteidl.core.Node then_node = 2; + if (this->has_then_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->then_node_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IfBlock::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IfBlock) + GOOGLE_DCHECK_NE(&from, this); + const IfBlock* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IfBlock) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IfBlock) + MergeFrom(*source); + } +} + +void IfBlock::MergeFrom(const IfBlock& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IfBlock) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_condition()) { + mutable_condition()->::flyteidl::core::BooleanExpression::MergeFrom(from.condition()); + } + if (from.has_then_node()) { + mutable_then_node()->::flyteidl::core::Node::MergeFrom(from.then_node()); + } +} + +void IfBlock::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IfBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IfBlock::CopyFrom(const IfBlock& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IfBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IfBlock::IsInitialized() const { + return true; +} + +void IfBlock::Swap(IfBlock* other) { + if (other == this) return; + InternalSwap(other); +} +void IfBlock::InternalSwap(IfBlock* other) { + using std::swap; + swap(condition_, other->condition_); + swap(then_node_, other->then_node_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata IfBlock::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void IfElseBlock::InitAsDefaultInstance() { + ::flyteidl::core::_IfElseBlock_default_instance_._instance.get_mutable()->case__ = const_cast< ::flyteidl::core::IfBlock*>( + ::flyteidl::core::IfBlock::internal_default_instance()); + ::flyteidl::core::_IfElseBlock_default_instance_.else_node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); + ::flyteidl::core::_IfElseBlock_default_instance_.error_ = const_cast< ::flyteidl::core::Error*>( + ::flyteidl::core::Error::internal_default_instance()); +} +void IfElseBlock::set_allocated_else_node(::flyteidl::core::Node* else_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_default(); + if (else_node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + else_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, else_node, submessage_arena); + } + set_has_else_node(); + default_.else_node_ = else_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.else_node) +} +void IfElseBlock::set_allocated_error(::flyteidl::core::Error* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_default(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + default_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.error) +} +void IfElseBlock::clear_error() { + if (has_error()) { + delete default_.error_; + clear_has_default(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int IfElseBlock::kCaseFieldNumber; +const int IfElseBlock::kOtherFieldNumber; +const int IfElseBlock::kElseNodeFieldNumber; +const int IfElseBlock::kErrorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +IfElseBlock::IfElseBlock() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.IfElseBlock) +} +IfElseBlock::IfElseBlock(const IfElseBlock& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + other_(from.other_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_case_()) { + case__ = new ::flyteidl::core::IfBlock(*from.case__); + } else { + case__ = NULL; + } + clear_has_default(); + switch (from.default_case()) { + case kElseNode: { + mutable_else_node()->::flyteidl::core::Node::MergeFrom(from.else_node()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.IfElseBlock) +} + +void IfElseBlock::SharedCtor() { + case__ = NULL; + clear_has_default(); + _cached_size_ = 0; +} + +IfElseBlock::~IfElseBlock() { + // @@protoc_insertion_point(destructor:flyteidl.core.IfElseBlock) + SharedDtor(); +} + +void IfElseBlock::SharedDtor() { + if (this != internal_default_instance()) delete case__; + if (has_default()) { + clear_default(); + } +} + +void IfElseBlock::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* IfElseBlock::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const IfElseBlock& IfElseBlock::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + return *internal_default_instance(); +} + +IfElseBlock* IfElseBlock::New(::google::protobuf::Arena* arena) const { + IfElseBlock* n = new IfElseBlock; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void IfElseBlock::clear_default() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.IfElseBlock) + switch (default_case()) { + case kElseNode: { + delete default_.else_node_; + break; + } + case kError: { + delete default_.error_; + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = DEFAULT_NOT_SET; +} + + +void IfElseBlock::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.IfElseBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + other_.Clear(); + if (GetArenaNoVirtual() == NULL && case__ != NULL) { + delete case__; + } + case__ = NULL; + clear_default(); + _internal_metadata_.Clear(); +} + +bool IfElseBlock::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.IfElseBlock) + 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)) { + // .flyteidl.core.IfBlock case = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_case_())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.IfBlock other = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_other())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Node else_node = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_else_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Error error = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } 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.IfElseBlock) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.IfElseBlock) + return false; +#undef DO_ +} + +void IfElseBlock::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.IfElseBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfBlock case = 1; + if (this->has_case_()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->case__, output); + } + + // repeated .flyteidl.core.IfBlock other = 2; + for (unsigned int i = 0, + n = static_cast(this->other_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->other(static_cast(i)), output); + } + + // .flyteidl.core.Node else_node = 3; + if (has_else_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *default_.else_node_, output); + } + + // .flyteidl.core.Error error = 4; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *default_.error_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.IfElseBlock) +} + +::google::protobuf::uint8* IfElseBlock::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IfElseBlock) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfBlock case = 1; + if (this->has_case_()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->case__, deterministic, target); + } + + // repeated .flyteidl.core.IfBlock other = 2; + for (unsigned int i = 0, + n = static_cast(this->other_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->other(static_cast(i)), deterministic, target); + } + + // .flyteidl.core.Node else_node = 3; + if (has_else_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *default_.else_node_, deterministic, target); + } + + // .flyteidl.core.Error error = 4; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *default_.error_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.IfElseBlock) + return target; +} + +size_t IfElseBlock::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IfElseBlock) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.IfBlock other = 2; + { + unsigned int count = static_cast(this->other_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->other(static_cast(i))); + } + } + + // .flyteidl.core.IfBlock case = 1; + if (this->has_case_()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->case__); + } + + switch (default_case()) { + // .flyteidl.core.Node else_node = 3; + case kElseNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *default_.else_node_); + break; + } + // .flyteidl.core.Error error = 4; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *default_.error_); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void IfElseBlock::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IfElseBlock) + GOOGLE_DCHECK_NE(&from, this); + const IfElseBlock* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IfElseBlock) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IfElseBlock) + MergeFrom(*source); + } +} + +void IfElseBlock::MergeFrom(const IfElseBlock& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IfElseBlock) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + other_.MergeFrom(from.other_); + if (from.has_case_()) { + mutable_case_()->::flyteidl::core::IfBlock::MergeFrom(from.case_()); + } + switch (from.default_case()) { + case kElseNode: { + mutable_else_node()->::flyteidl::core::Node::MergeFrom(from.else_node()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } +} + +void IfElseBlock::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IfElseBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IfElseBlock::CopyFrom(const IfElseBlock& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IfElseBlock) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IfElseBlock::IsInitialized() const { + return true; +} + +void IfElseBlock::Swap(IfElseBlock* other) { + if (other == this) return; + InternalSwap(other); +} +void IfElseBlock::InternalSwap(IfElseBlock* other) { + using std::swap; + other_.InternalSwap(&other->other_); + swap(case__, other->case__); + swap(default_, other->default_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata IfElseBlock::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void BranchNode::InitAsDefaultInstance() { + ::flyteidl::core::_BranchNode_default_instance_._instance.get_mutable()->if_else_ = const_cast< ::flyteidl::core::IfElseBlock*>( + ::flyteidl::core::IfElseBlock::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int BranchNode::kIfElseFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +BranchNode::BranchNode() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.BranchNode) +} +BranchNode::BranchNode(const BranchNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_if_else()) { + if_else_ = new ::flyteidl::core::IfElseBlock(*from.if_else_); + } else { + if_else_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.BranchNode) +} + +void BranchNode::SharedCtor() { + if_else_ = NULL; + _cached_size_ = 0; +} + +BranchNode::~BranchNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.BranchNode) + SharedDtor(); +} + +void BranchNode::SharedDtor() { + if (this != internal_default_instance()) delete if_else_; +} + +void BranchNode::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* BranchNode::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const BranchNode& BranchNode::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + return *internal_default_instance(); +} + +BranchNode* BranchNode::New(::google::protobuf::Arena* arena) const { + BranchNode* n = new BranchNode; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void BranchNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.BranchNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && if_else_ != NULL) { + delete if_else_; + } + if_else_ = NULL; + _internal_metadata_.Clear(); +} + +bool BranchNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.BranchNode) + 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)) { + // .flyteidl.core.IfElseBlock if_else = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_if_else())); + } 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.BranchNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.BranchNode) + return false; +#undef DO_ +} + +void BranchNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.BranchNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfElseBlock if_else = 1; + if (this->has_if_else()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->if_else_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.BranchNode) +} + +::google::protobuf::uint8* BranchNode::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BranchNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.IfElseBlock if_else = 1; + if (this->has_if_else()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->if_else_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.BranchNode) + return target; +} + +size_t BranchNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BranchNode) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.IfElseBlock if_else = 1; + if (this->has_if_else()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->if_else_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void BranchNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BranchNode) + GOOGLE_DCHECK_NE(&from, this); + const BranchNode* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BranchNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BranchNode) + MergeFrom(*source); + } +} + +void BranchNode::MergeFrom(const BranchNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BranchNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_if_else()) { + mutable_if_else()->::flyteidl::core::IfElseBlock::MergeFrom(from.if_else()); + } +} + +void BranchNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BranchNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BranchNode::CopyFrom(const BranchNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BranchNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BranchNode::IsInitialized() const { + return true; +} + +void BranchNode::Swap(BranchNode* other) { + if (other == this) return; + InternalSwap(other); +} +void BranchNode::InternalSwap(BranchNode* other) { + using std::swap; + swap(if_else_, other->if_else_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata BranchNode::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskNode::InitAsDefaultInstance() { + ::flyteidl::core::_TaskNode_default_instance_.reference_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +void TaskNode::set_allocated_reference_id(::flyteidl::core::Identifier* reference_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reference(); + if (reference_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + reference_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, reference_id, submessage_arena); + } + set_has_reference_id(); + reference_.reference_id_ = reference_id; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNode.reference_id) +} +void TaskNode::clear_reference_id() { + if (has_reference_id()) { + delete reference_.reference_id_; + clear_has_reference(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskNode::kReferenceIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskNode::TaskNode() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsTaskNode(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.TaskNode) +} +TaskNode::TaskNode(const TaskNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reference(); + switch (from.reference_case()) { + case kReferenceId: { + mutable_reference_id()->::flyteidl::core::Identifier::MergeFrom(from.reference_id()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskNode) +} + +void TaskNode::SharedCtor() { + clear_has_reference(); + _cached_size_ = 0; +} + +TaskNode::~TaskNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.TaskNode) + SharedDtor(); +} + +void TaskNode::SharedDtor() { + if (has_reference()) { + clear_reference(); + } +} + +void TaskNode::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskNode::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskNode& TaskNode::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsTaskNode(); + return *internal_default_instance(); +} + +TaskNode* TaskNode::New(::google::protobuf::Arena* arena) const { + TaskNode* n = new TaskNode; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskNode::clear_reference() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskNode) + switch (reference_case()) { + case kReferenceId: { + delete reference_.reference_id_; + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + _oneof_case_[0] = REFERENCE_NOT_SET; +} + + +void TaskNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reference(); + _internal_metadata_.Clear(); +} + +bool TaskNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.TaskNode) + 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)) { + // .flyteidl.core.Identifier reference_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_reference_id())); + } 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.TaskNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskNode) + return false; +#undef DO_ +} + +void TaskNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier reference_id = 1; + if (has_reference_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *reference_.reference_id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskNode) +} + +::google::protobuf::uint8* TaskNode::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier reference_id = 1; + if (has_reference_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *reference_.reference_id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.TaskNode) + return target; +} + +size_t TaskNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskNode) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (reference_case()) { + // .flyteidl.core.Identifier reference_id = 1; + case kReferenceId: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_.reference_id_); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskNode) + GOOGLE_DCHECK_NE(&from, this); + const TaskNode* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskNode) + MergeFrom(*source); + } +} + +void TaskNode::MergeFrom(const TaskNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reference_case()) { + case kReferenceId: { + mutable_reference_id()->::flyteidl::core::Identifier::MergeFrom(from.reference_id()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } +} + +void TaskNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskNode::CopyFrom(const TaskNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskNode::IsInitialized() const { + return true; +} + +void TaskNode::Swap(TaskNode* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskNode::InternalSwap(TaskNode* other) { + using std::swap; + swap(reference_, other->reference_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskNode::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowNode::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowNode_default_instance_.launchplan_ref_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_WorkflowNode_default_instance_.sub_workflow_ref_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +void WorkflowNode::set_allocated_launchplan_ref(::flyteidl::core::Identifier* launchplan_ref) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reference(); + if (launchplan_ref) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + launchplan_ref = ::google::protobuf::internal::GetOwnedMessage( + message_arena, launchplan_ref, submessage_arena); + } + set_has_launchplan_ref(); + reference_.launchplan_ref_ = launchplan_ref; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowNode.launchplan_ref) +} +void WorkflowNode::clear_launchplan_ref() { + if (has_launchplan_ref()) { + delete reference_.launchplan_ref_; + clear_has_reference(); + } +} +void WorkflowNode::set_allocated_sub_workflow_ref(::flyteidl::core::Identifier* sub_workflow_ref) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reference(); + if (sub_workflow_ref) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + sub_workflow_ref = ::google::protobuf::internal::GetOwnedMessage( + message_arena, sub_workflow_ref, submessage_arena); + } + set_has_sub_workflow_ref(); + reference_.sub_workflow_ref_ = sub_workflow_ref; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowNode.sub_workflow_ref) +} +void WorkflowNode::clear_sub_workflow_ref() { + if (has_sub_workflow_ref()) { + delete reference_.sub_workflow_ref_; + clear_has_reference(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowNode::kLaunchplanRefFieldNumber; +const int WorkflowNode::kSubWorkflowRefFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowNode::WorkflowNode() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowNode(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowNode) +} +WorkflowNode::WorkflowNode(const WorkflowNode& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reference(); + switch (from.reference_case()) { + case kLaunchplanRef: { + mutable_launchplan_ref()->::flyteidl::core::Identifier::MergeFrom(from.launchplan_ref()); + break; + } + case kSubWorkflowRef: { + mutable_sub_workflow_ref()->::flyteidl::core::Identifier::MergeFrom(from.sub_workflow_ref()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowNode) +} + +void WorkflowNode::SharedCtor() { + clear_has_reference(); + _cached_size_ = 0; +} + +WorkflowNode::~WorkflowNode() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowNode) + SharedDtor(); +} + +void WorkflowNode::SharedDtor() { + if (has_reference()) { + clear_reference(); + } +} + +void WorkflowNode::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowNode::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowNode& WorkflowNode::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowNode(); + return *internal_default_instance(); +} + +WorkflowNode* WorkflowNode::New(::google::protobuf::Arena* arena) const { + WorkflowNode* n = new WorkflowNode; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowNode::clear_reference() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.WorkflowNode) + switch (reference_case()) { + case kLaunchplanRef: { + delete reference_.launchplan_ref_; + break; + } + case kSubWorkflowRef: { + delete reference_.sub_workflow_ref_; + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + _oneof_case_[0] = REFERENCE_NOT_SET; +} + + +void WorkflowNode::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowNode) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reference(); + _internal_metadata_.Clear(); +} + +bool WorkflowNode::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowNode) + 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)) { + // .flyteidl.core.Identifier launchplan_ref = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_launchplan_ref())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_sub_workflow_ref())); + } 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.WorkflowNode) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowNode) + return false; +#undef DO_ +} + +void WorkflowNode::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launchplan_ref = 1; + if (has_launchplan_ref()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *reference_.launchplan_ref_, output); + } + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + if (has_sub_workflow_ref()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *reference_.sub_workflow_ref_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowNode) +} + +::google::protobuf::uint8* WorkflowNode::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowNode) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier launchplan_ref = 1; + if (has_launchplan_ref()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *reference_.launchplan_ref_, deterministic, target); + } + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + if (has_sub_workflow_ref()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *reference_.sub_workflow_ref_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowNode) + return target; +} + +size_t WorkflowNode::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowNode) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + switch (reference_case()) { + // .flyteidl.core.Identifier launchplan_ref = 1; + case kLaunchplanRef: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_.launchplan_ref_); + break; + } + // .flyteidl.core.Identifier sub_workflow_ref = 2; + case kSubWorkflowRef: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reference_.sub_workflow_ref_); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowNode::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowNode) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowNode* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowNode) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowNode) + MergeFrom(*source); + } +} + +void WorkflowNode::MergeFrom(const WorkflowNode& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowNode) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reference_case()) { + case kLaunchplanRef: { + mutable_launchplan_ref()->::flyteidl::core::Identifier::MergeFrom(from.launchplan_ref()); + break; + } + case kSubWorkflowRef: { + mutable_sub_workflow_ref()->::flyteidl::core::Identifier::MergeFrom(from.sub_workflow_ref()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } +} + +void WorkflowNode::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowNode::CopyFrom(const WorkflowNode& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowNode) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowNode::IsInitialized() const { + return true; +} + +void WorkflowNode::Swap(WorkflowNode* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowNode::InternalSwap(WorkflowNode* other) { + using std::swap; + swap(reference_, other->reference_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowNode::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeMetadata::InitAsDefaultInstance() { + ::flyteidl::core::_NodeMetadata_default_instance_._instance.get_mutable()->timeout_ = const_cast< ::google::protobuf::Duration*>( + ::google::protobuf::Duration::internal_default_instance()); + ::flyteidl::core::_NodeMetadata_default_instance_._instance.get_mutable()->retries_ = const_cast< ::flyteidl::core::RetryStrategy*>( + ::flyteidl::core::RetryStrategy::internal_default_instance()); +} +void NodeMetadata::clear_timeout() { + if (GetArenaNoVirtual() == NULL && timeout_ != NULL) { + delete timeout_; + } + timeout_ = NULL; +} +void NodeMetadata::clear_retries() { + if (GetArenaNoVirtual() == NULL && retries_ != NULL) { + delete retries_; + } + retries_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeMetadata::kNameFieldNumber; +const int NodeMetadata::kTimeoutFieldNumber; +const int NodeMetadata::kRetriesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeMetadata::NodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsNodeMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.NodeMetadata) +} +NodeMetadata::NodeMetadata(const NodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_timeout()) { + timeout_ = new ::google::protobuf::Duration(*from.timeout_); + } else { + timeout_ = NULL; + } + if (from.has_retries()) { + retries_ = new ::flyteidl::core::RetryStrategy(*from.retries_); + } else { + retries_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeMetadata) +} + +void NodeMetadata::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&timeout_, 0, static_cast( + reinterpret_cast(&retries_) - + reinterpret_cast(&timeout_)) + sizeof(retries_)); + _cached_size_ = 0; +} + +NodeMetadata::~NodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.NodeMetadata) + SharedDtor(); +} + +void NodeMetadata::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete timeout_; + if (this != internal_default_instance()) delete retries_; +} + +void NodeMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeMetadata::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeMetadata& NodeMetadata::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsNodeMetadata(); + return *internal_default_instance(); +} + +NodeMetadata* NodeMetadata::New(::google::protobuf::Arena* arena) const { + NodeMetadata* n = new NodeMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && timeout_ != NULL) { + delete timeout_; + } + timeout_ = NULL; + if (GetArenaNoVirtual() == NULL && retries_ != NULL) { + delete retries_; + } + retries_ = NULL; + _internal_metadata_.Clear(); +} + +bool NodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.NodeMetadata) + 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 name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.NodeMetadata.name")); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Duration timeout = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_timeout())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.RetryStrategy retries = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_retries())); + } 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.NodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeMetadata) + return false; +#undef DO_ +} + +void NodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeMetadata.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->timeout_, output); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *this->retries_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeMetadata) +} + +::google::protobuf::uint8* NodeMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.NodeMetadata.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->timeout_, deterministic, target); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, *this->retries_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.NodeMetadata) + return target; +} + +size_t NodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // .google.protobuf.Duration timeout = 4; + if (this->has_timeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->timeout_); + } + + // .flyteidl.core.RetryStrategy retries = 5; + if (this->has_retries()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->retries_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const NodeMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeMetadata) + MergeFrom(*source); + } +} + +void NodeMetadata::MergeFrom(const NodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.has_timeout()) { + mutable_timeout()->::google::protobuf::Duration::MergeFrom(from.timeout()); + } + if (from.has_retries()) { + mutable_retries()->::flyteidl::core::RetryStrategy::MergeFrom(from.retries()); + } +} + +void NodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeMetadata::CopyFrom(const NodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeMetadata::IsInitialized() const { + return true; +} + +void NodeMetadata::Swap(NodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeMetadata::InternalSwap(NodeMetadata* other) { + using std::swap; + name_.Swap(&other->name_); + swap(timeout_, other->timeout_); + swap(retries_, other->retries_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeMetadata::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Alias::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Alias::kVarFieldNumber; +const int Alias::kAliasFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Alias::Alias() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsAlias(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Alias) +} +Alias::Alias(const Alias& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.var().size() > 0) { + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.alias().size() > 0) { + alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Alias) +} + +void Alias::SharedCtor() { + var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _cached_size_ = 0; +} + +Alias::~Alias() { + // @@protoc_insertion_point(destructor:flyteidl.core.Alias) + SharedDtor(); +} + +void Alias::SharedDtor() { + var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Alias::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Alias::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Alias& Alias::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsAlias(); + return *internal_default_instance(); +} + +Alias* Alias::New(::google::protobuf::Arena* arena) const { + Alias* n = new Alias; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Alias::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Alias) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool Alias::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Alias) + 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 var = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_var())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Alias.var")); + } else { + goto handle_unusual; + } + break; + } + + // string alias = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_alias())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->alias().data(), static_cast(this->alias().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Alias.alias")); + } 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.Alias) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Alias) + return false; +#undef DO_ +} + +void Alias::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Alias) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.var"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->var(), output); + } + + // string alias = 2; + if (this->alias().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->alias().data(), static_cast(this->alias().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.alias"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->alias(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Alias) +} + +::google::protobuf::uint8* Alias::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Alias) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string var = 1; + if (this->var().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->var().data(), static_cast(this->var().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.var"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->var(), target); + } + + // string alias = 2; + if (this->alias().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->alias().data(), static_cast(this->alias().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Alias.alias"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->alias(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Alias) + return target; +} + +size_t Alias::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Alias) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string var = 1; + if (this->var().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->var()); + } + + // string alias = 2; + if (this->alias().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->alias()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Alias::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Alias) + GOOGLE_DCHECK_NE(&from, this); + const Alias* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Alias) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Alias) + MergeFrom(*source); + } +} + +void Alias::MergeFrom(const Alias& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Alias) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.var().size() > 0) { + + var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); + } + if (from.alias().size() > 0) { + + alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); + } +} + +void Alias::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Alias) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Alias::CopyFrom(const Alias& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Alias) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Alias::IsInitialized() const { + return true; +} + +void Alias::Swap(Alias* other) { + if (other == this) return; + InternalSwap(other); +} +void Alias::InternalSwap(Alias* other) { + using std::swap; + var_.Swap(&other->var_); + alias_.Swap(&other->alias_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Alias::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void Node::InitAsDefaultInstance() { + ::flyteidl::core::_Node_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::NodeMetadata*>( + ::flyteidl::core::NodeMetadata::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.task_node_ = const_cast< ::flyteidl::core::TaskNode*>( + ::flyteidl::core::TaskNode::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.workflow_node_ = const_cast< ::flyteidl::core::WorkflowNode*>( + ::flyteidl::core::WorkflowNode::internal_default_instance()); + ::flyteidl::core::_Node_default_instance_.branch_node_ = const_cast< ::flyteidl::core::BranchNode*>( + ::flyteidl::core::BranchNode::internal_default_instance()); +} +void Node::clear_inputs() { + inputs_.Clear(); +} +void Node::set_allocated_task_node(::flyteidl::core::TaskNode* task_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (task_node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + task_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_node, submessage_arena); + } + set_has_task_node(); + target_.task_node_ = task_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.task_node) +} +void Node::set_allocated_workflow_node(::flyteidl::core::WorkflowNode* workflow_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (workflow_node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_node, submessage_arena); + } + set_has_workflow_node(); + target_.workflow_node_ = workflow_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.workflow_node) +} +void Node::set_allocated_branch_node(::flyteidl::core::BranchNode* branch_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target(); + if (branch_node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + branch_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, branch_node, submessage_arena); + } + set_has_branch_node(); + target_.branch_node_ = branch_node; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.branch_node) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Node::kIdFieldNumber; +const int Node::kMetadataFieldNumber; +const int Node::kInputsFieldNumber; +const int Node::kUpstreamNodeIdsFieldNumber; +const int Node::kOutputAliasesFieldNumber; +const int Node::kTaskNodeFieldNumber; +const int Node::kWorkflowNodeFieldNumber; +const int Node::kBranchNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Node::Node() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.Node) +} +Node::Node(const Node& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + inputs_(from.inputs_), + upstream_node_ids_(from.upstream_node_ids_), + output_aliases_(from.output_aliases_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.id().size() > 0) { + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::NodeMetadata(*from.metadata_); + } else { + metadata_ = NULL; + } + clear_has_target(); + switch (from.target_case()) { + case kTaskNode: { + mutable_task_node()->::flyteidl::core::TaskNode::MergeFrom(from.task_node()); + break; + } + case kWorkflowNode: { + mutable_workflow_node()->::flyteidl::core::WorkflowNode::MergeFrom(from.workflow_node()); + break; + } + case kBranchNode: { + mutable_branch_node()->::flyteidl::core::BranchNode::MergeFrom(from.branch_node()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.Node) +} + +void Node::SharedCtor() { + id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + metadata_ = NULL; + clear_has_target(); + _cached_size_ = 0; +} + +Node::~Node() { + // @@protoc_insertion_point(destructor:flyteidl.core.Node) + SharedDtor(); +} + +void Node::SharedDtor() { + id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete metadata_; + if (has_target()) { + clear_target(); + } +} + +void Node::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Node::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Node& Node::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNode(); + return *internal_default_instance(); +} + +Node* Node::New(::google::protobuf::Arena* arena) const { + Node* n = new Node; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Node::clear_target() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Node) + switch (target_case()) { + case kTaskNode: { + delete target_.task_node_; + break; + } + case kWorkflowNode: { + delete target_.workflow_node_; + break; + } + case kBranchNode: { + delete target_.branch_node_; + break; + } + case TARGET_NOT_SET: { + break; + } + } + _oneof_case_[0] = TARGET_NOT_SET; +} + + +void Node::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + inputs_.Clear(); + upstream_node_ids_.Clear(); + output_aliases_.Clear(); + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; + clear_target(); + _internal_metadata_.Clear(); +} + +bool Node::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.Node) + 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 id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Node.id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeMetadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Binding inputs = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_inputs())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string upstream_node_ids = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_upstream_node_ids())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->upstream_node_ids(this->upstream_node_ids_size() - 1).data(), + static_cast(this->upstream_node_ids(this->upstream_node_ids_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.core.Node.upstream_node_ids")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_output_aliases())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskNode task_node = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowNode workflow_node = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_node())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.BranchNode branch_node = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_branch_node())); + } 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.Node) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.Node) + return false; +#undef DO_ +} + +void Node::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->id(), output); + } + + // .flyteidl.core.NodeMetadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->metadata_, output); + } + + // repeated .flyteidl.core.Binding inputs = 3; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->inputs(static_cast(i)), output); + } + + // repeated string upstream_node_ids = 4; + for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->upstream_node_ids(i).data(), static_cast(this->upstream_node_ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.upstream_node_ids"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->upstream_node_ids(i), output); + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + for (unsigned int i = 0, + n = static_cast(this->output_aliases_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->output_aliases(static_cast(i)), output); + } + + // .flyteidl.core.TaskNode task_node = 6; + if (has_task_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *target_.task_node_, output); + } + + // .flyteidl.core.WorkflowNode workflow_node = 7; + if (has_workflow_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *target_.workflow_node_, output); + } + + // .flyteidl.core.BranchNode branch_node = 8; + if (has_branch_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *target_.branch_node_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.Node) +} + +::google::protobuf::uint8* Node::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Node) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string id = 1; + if (this->id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->id().data(), static_cast(this->id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->id(), target); + } + + // .flyteidl.core.NodeMetadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->metadata_, deterministic, target); + } + + // repeated .flyteidl.core.Binding inputs = 3; + for (unsigned int i = 0, + n = static_cast(this->inputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->inputs(static_cast(i)), deterministic, target); + } + + // repeated string upstream_node_ids = 4; + for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->upstream_node_ids(i).data(), static_cast(this->upstream_node_ids(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.core.Node.upstream_node_ids"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(4, this->upstream_node_ids(i), target); + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + for (unsigned int i = 0, + n = static_cast(this->output_aliases_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->output_aliases(static_cast(i)), deterministic, target); + } + + // .flyteidl.core.TaskNode task_node = 6; + if (has_task_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *target_.task_node_, deterministic, target); + } + + // .flyteidl.core.WorkflowNode workflow_node = 7; + if (has_workflow_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *target_.workflow_node_, deterministic, target); + } + + // .flyteidl.core.BranchNode branch_node = 8; + if (has_branch_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *target_.branch_node_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.Node) + return target; +} + +size_t Node::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Node) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.Binding inputs = 3; + { + unsigned int count = static_cast(this->inputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->inputs(static_cast(i))); + } + } + + // repeated string upstream_node_ids = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->upstream_node_ids_size()); + for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->upstream_node_ids(i)); + } + + // repeated .flyteidl.core.Alias output_aliases = 5; + { + unsigned int count = static_cast(this->output_aliases_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->output_aliases(static_cast(i))); + } + } + + // string id = 1; + if (this->id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->id()); + } + + // .flyteidl.core.NodeMetadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->metadata_); + } + + switch (target_case()) { + // .flyteidl.core.TaskNode task_node = 6; + case kTaskNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.task_node_); + break; + } + // .flyteidl.core.WorkflowNode workflow_node = 7; + case kWorkflowNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.workflow_node_); + break; + } + // .flyteidl.core.BranchNode branch_node = 8; + case kBranchNode: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_.branch_node_); + break; + } + case TARGET_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Node::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Node) + GOOGLE_DCHECK_NE(&from, this); + const Node* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Node) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Node) + MergeFrom(*source); + } +} + +void Node::MergeFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Node) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + inputs_.MergeFrom(from.inputs_); + upstream_node_ids_.MergeFrom(from.upstream_node_ids_); + output_aliases_.MergeFrom(from.output_aliases_); + if (from.id().size() > 0) { + + id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::NodeMetadata::MergeFrom(from.metadata()); + } + switch (from.target_case()) { + case kTaskNode: { + mutable_task_node()->::flyteidl::core::TaskNode::MergeFrom(from.task_node()); + break; + } + case kWorkflowNode: { + mutable_workflow_node()->::flyteidl::core::WorkflowNode::MergeFrom(from.workflow_node()); + break; + } + case kBranchNode: { + mutable_branch_node()->::flyteidl::core::BranchNode::MergeFrom(from.branch_node()); + break; + } + case TARGET_NOT_SET: { + break; + } + } +} + +void Node::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Node) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Node::CopyFrom(const Node& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Node) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Node::IsInitialized() const { + return true; +} + +void Node::Swap(Node* other) { + if (other == this) return; + InternalSwap(other); +} +void Node::InternalSwap(Node* other) { + using std::swap; + inputs_.InternalSwap(&other->inputs_); + upstream_node_ids_.InternalSwap(&other->upstream_node_ids_); + output_aliases_.InternalSwap(&other->output_aliases_); + id_.Swap(&other->id_); + swap(metadata_, other->metadata_); + swap(target_, other->target_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Node::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowMetadata::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowMetadata::WorkflowMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowMetadata) +} +WorkflowMetadata::WorkflowMetadata(const WorkflowMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowMetadata) +} + +void WorkflowMetadata::SharedCtor() { + _cached_size_ = 0; +} + +WorkflowMetadata::~WorkflowMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowMetadata) + SharedDtor(); +} + +void WorkflowMetadata::SharedDtor() { +} + +void WorkflowMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowMetadata::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowMetadata& WorkflowMetadata::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowMetadata(); + return *internal_default_instance(); +} + +WorkflowMetadata* WorkflowMetadata::New(::google::protobuf::Arena* arena) const { + WorkflowMetadata* n = new WorkflowMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool WorkflowMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowMetadata) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowMetadata) + return false; +#undef DO_ +} + +void WorkflowMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowMetadata) +} + +::google::protobuf::uint8* WorkflowMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowMetadata) + return target; +} + +size_t WorkflowMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowMetadata) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowMetadata) + MergeFrom(*source); + } +} + +void WorkflowMetadata::MergeFrom(const WorkflowMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void WorkflowMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowMetadata::CopyFrom(const WorkflowMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowMetadata::IsInitialized() const { + return true; +} + +void WorkflowMetadata::Swap(WorkflowMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowMetadata::InternalSwap(WorkflowMetadata* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowMetadata::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowTemplate::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::WorkflowMetadata*>( + ::flyteidl::core::WorkflowMetadata::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->interface_ = const_cast< ::flyteidl::core::TypedInterface*>( + ::flyteidl::core::TypedInterface::internal_default_instance()); + ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->failure_node_ = const_cast< ::flyteidl::core::Node*>( + ::flyteidl::core::Node::internal_default_instance()); +} +void WorkflowTemplate::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +void WorkflowTemplate::clear_interface() { + if (GetArenaNoVirtual() == NULL && interface_ != NULL) { + delete interface_; + } + interface_ = NULL; +} +void WorkflowTemplate::clear_outputs() { + outputs_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowTemplate::kIdFieldNumber; +const int WorkflowTemplate::kMetadataFieldNumber; +const int WorkflowTemplate::kInterfaceFieldNumber; +const int WorkflowTemplate::kNodesFieldNumber; +const int WorkflowTemplate::kOutputsFieldNumber; +const int WorkflowTemplate::kFailureNodeFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowTemplate::WorkflowTemplate() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplate(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowTemplate) +} +WorkflowTemplate::WorkflowTemplate(const WorkflowTemplate& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + nodes_(from.nodes_), + outputs_(from.outputs_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_metadata()) { + metadata_ = new ::flyteidl::core::WorkflowMetadata(*from.metadata_); + } else { + metadata_ = NULL; + } + if (from.has_interface()) { + interface_ = new ::flyteidl::core::TypedInterface(*from.interface_); + } else { + interface_ = NULL; + } + if (from.has_failure_node()) { + failure_node_ = new ::flyteidl::core::Node(*from.failure_node_); + } else { + failure_node_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowTemplate) +} + +void WorkflowTemplate::SharedCtor() { + ::memset(&id_, 0, static_cast( + reinterpret_cast(&failure_node_) - + reinterpret_cast(&id_)) + sizeof(failure_node_)); + _cached_size_ = 0; +} + +WorkflowTemplate::~WorkflowTemplate() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowTemplate) + SharedDtor(); +} + +void WorkflowTemplate::SharedDtor() { + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete metadata_; + if (this != internal_default_instance()) delete interface_; + if (this != internal_default_instance()) delete failure_node_; +} + +void WorkflowTemplate::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowTemplate::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowTemplate& WorkflowTemplate::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplate(); + return *internal_default_instance(); +} + +WorkflowTemplate* WorkflowTemplate::New(::google::protobuf::Arena* arena) const { + WorkflowTemplate* n = new WorkflowTemplate; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowTemplate::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + nodes_.Clear(); + outputs_.Clear(); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; + if (GetArenaNoVirtual() == NULL && interface_ != NULL) { + delete interface_; + } + interface_ = NULL; + if (GetArenaNoVirtual() == NULL && failure_node_ != NULL) { + delete failure_node_; + } + failure_node_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowTemplate::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowTemplate) + 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)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TypedInterface interface = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_interface())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Node nodes = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_nodes())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.Binding outputs = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_outputs())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.Node failure_node = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_failure_node())); + } 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.WorkflowTemplate) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowTemplate) + return false; +#undef DO_ +} + +void WorkflowTemplate::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + if (this->has_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->metadata_, output); + } + + // .flyteidl.core.TypedInterface interface = 3; + if (this->has_interface()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, *this->interface_, output); + } + + // repeated .flyteidl.core.Node nodes = 4; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->nodes(static_cast(i)), output); + } + + // repeated .flyteidl.core.Binding outputs = 5; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->outputs(static_cast(i)), output); + } + + // .flyteidl.core.Node failure_node = 6; + if (this->has_failure_node()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *this->failure_node_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowTemplate) +} + +::google::protobuf::uint8* WorkflowTemplate::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowTemplate) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + if (this->has_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->metadata_, deterministic, target); + } + + // .flyteidl.core.TypedInterface interface = 3; + if (this->has_interface()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, *this->interface_, deterministic, target); + } + + // repeated .flyteidl.core.Node nodes = 4; + for (unsigned int i = 0, + n = static_cast(this->nodes_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->nodes(static_cast(i)), deterministic, target); + } + + // repeated .flyteidl.core.Binding outputs = 5; + for (unsigned int i = 0, + n = static_cast(this->outputs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->outputs(static_cast(i)), deterministic, target); + } + + // .flyteidl.core.Node failure_node = 6; + if (this->has_failure_node()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *this->failure_node_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowTemplate) + return target; +} + +size_t WorkflowTemplate::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowTemplate) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.Node nodes = 4; + { + unsigned int count = static_cast(this->nodes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->nodes(static_cast(i))); + } + } + + // repeated .flyteidl.core.Binding outputs = 5; + { + unsigned int count = static_cast(this->outputs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->outputs(static_cast(i))); + } + } + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .flyteidl.core.WorkflowMetadata metadata = 2; + if (this->has_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->metadata_); + } + + // .flyteidl.core.TypedInterface interface = 3; + if (this->has_interface()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->interface_); + } + + // .flyteidl.core.Node failure_node = 6; + if (this->has_failure_node()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->failure_node_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowTemplate::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowTemplate) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowTemplate* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowTemplate) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowTemplate) + MergeFrom(*source); + } +} + +void WorkflowTemplate::MergeFrom(const WorkflowTemplate& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowTemplate) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + nodes_.MergeFrom(from.nodes_); + outputs_.MergeFrom(from.outputs_); + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } + if (from.has_metadata()) { + mutable_metadata()->::flyteidl::core::WorkflowMetadata::MergeFrom(from.metadata()); + } + if (from.has_interface()) { + mutable_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.interface()); + } + if (from.has_failure_node()) { + mutable_failure_node()->::flyteidl::core::Node::MergeFrom(from.failure_node()); + } +} + +void WorkflowTemplate::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowTemplate::CopyFrom(const WorkflowTemplate& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowTemplate) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowTemplate::IsInitialized() const { + return true; +} + +void WorkflowTemplate::Swap(WorkflowTemplate* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowTemplate::InternalSwap(WorkflowTemplate* other) { + using std::swap; + nodes_.InternalSwap(&other->nodes_); + outputs_.InternalSwap(&other->outputs_); + swap(id_, other->id_); + swap(metadata_, other->metadata_); + swap(interface_, other->interface_); + swap(failure_node_, other->failure_node_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowTemplate::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h new file mode 100644 index 0000000000..6b1989e1d5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h @@ -0,0 +1,2796 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/condition.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include "flyteidl/core/interface.pb.h" +#include "flyteidl/core/literals.pb.h" +#include "flyteidl/core/types.pb.h" +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fworkflow_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[10]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsBranchNodeImpl(); +void InitDefaultsBranchNode(); +void InitDefaultsTaskNodeImpl(); +void InitDefaultsTaskNode(); +void InitDefaultsWorkflowNodeImpl(); +void InitDefaultsWorkflowNode(); +void InitDefaultsNodeMetadataImpl(); +void InitDefaultsNodeMetadata(); +void InitDefaultsAliasImpl(); +void InitDefaultsAlias(); +void InitDefaultsWorkflowMetadataImpl(); +void InitDefaultsWorkflowMetadata(); +void InitDefaultsWorkflowTemplateImpl(); +void InitDefaultsWorkflowTemplate(); +inline void InitDefaults() { + InitDefaultsBranchNode(); + InitDefaultsTaskNode(); + InitDefaultsWorkflowNode(); + InitDefaultsNodeMetadata(); + InitDefaultsAlias(); + InitDefaultsWorkflowMetadata(); + InitDefaultsWorkflowTemplate(); +} +} // namespace protobuf_flyteidl_2fcore_2fworkflow_2eproto +namespace flyteidl { +namespace core { +class Alias; +class AliasDefaultTypeInternal; +extern AliasDefaultTypeInternal _Alias_default_instance_; +class BranchNode; +class BranchNodeDefaultTypeInternal; +extern BranchNodeDefaultTypeInternal _BranchNode_default_instance_; +class IfBlock; +class IfBlockDefaultTypeInternal; +extern IfBlockDefaultTypeInternal _IfBlock_default_instance_; +class IfElseBlock; +class IfElseBlockDefaultTypeInternal; +extern IfElseBlockDefaultTypeInternal _IfElseBlock_default_instance_; +class Node; +class NodeDefaultTypeInternal; +extern NodeDefaultTypeInternal _Node_default_instance_; +class NodeMetadata; +class NodeMetadataDefaultTypeInternal; +extern NodeMetadataDefaultTypeInternal _NodeMetadata_default_instance_; +class TaskNode; +class TaskNodeDefaultTypeInternal; +extern TaskNodeDefaultTypeInternal _TaskNode_default_instance_; +class WorkflowMetadata; +class WorkflowMetadataDefaultTypeInternal; +extern WorkflowMetadataDefaultTypeInternal _WorkflowMetadata_default_instance_; +class WorkflowNode; +class WorkflowNodeDefaultTypeInternal; +extern WorkflowNodeDefaultTypeInternal _WorkflowNode_default_instance_; +class WorkflowTemplate; +class WorkflowTemplateDefaultTypeInternal; +extern WorkflowTemplateDefaultTypeInternal _WorkflowTemplate_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +// =================================================================== + +class IfBlock : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IfBlock) */ { + public: + IfBlock(); + virtual ~IfBlock(); + + IfBlock(const IfBlock& from); + + inline IfBlock& operator=(const IfBlock& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IfBlock(IfBlock&& from) noexcept + : IfBlock() { + *this = ::std::move(from); + } + + inline IfBlock& operator=(IfBlock&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const IfBlock& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IfBlock* internal_default_instance() { + return reinterpret_cast( + &_IfBlock_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(IfBlock* other); + friend void swap(IfBlock& a, IfBlock& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IfBlock* New() const PROTOBUF_FINAL { return New(NULL); } + + IfBlock* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const IfBlock& from); + void MergeFrom(const IfBlock& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(IfBlock* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.BooleanExpression condition = 1; + bool has_condition() const; + void clear_condition(); + static const int kConditionFieldNumber = 1; + const ::flyteidl::core::BooleanExpression& condition() const; + ::flyteidl::core::BooleanExpression* release_condition(); + ::flyteidl::core::BooleanExpression* mutable_condition(); + void set_allocated_condition(::flyteidl::core::BooleanExpression* condition); + + // .flyteidl.core.Node then_node = 2; + bool has_then_node() const; + void clear_then_node(); + static const int kThenNodeFieldNumber = 2; + const ::flyteidl::core::Node& then_node() const; + ::flyteidl::core::Node* release_then_node(); + ::flyteidl::core::Node* mutable_then_node(); + void set_allocated_then_node(::flyteidl::core::Node* then_node); + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::BooleanExpression* condition_; + ::flyteidl::core::Node* then_node_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNodeImpl(); +}; +// ------------------------------------------------------------------- + +class IfElseBlock : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IfElseBlock) */ { + public: + IfElseBlock(); + virtual ~IfElseBlock(); + + IfElseBlock(const IfElseBlock& from); + + inline IfElseBlock& operator=(const IfElseBlock& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + IfElseBlock(IfElseBlock&& from) noexcept + : IfElseBlock() { + *this = ::std::move(from); + } + + inline IfElseBlock& operator=(IfElseBlock&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const IfElseBlock& default_instance(); + + enum DefaultCase { + kElseNode = 3, + kError = 4, + DEFAULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IfElseBlock* internal_default_instance() { + return reinterpret_cast( + &_IfElseBlock_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(IfElseBlock* other); + friend void swap(IfElseBlock& a, IfElseBlock& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline IfElseBlock* New() const PROTOBUF_FINAL { return New(NULL); } + + IfElseBlock* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const IfElseBlock& from); + void MergeFrom(const IfElseBlock& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(IfElseBlock* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.IfBlock other = 2; + int other_size() const; + void clear_other(); + static const int kOtherFieldNumber = 2; + const ::flyteidl::core::IfBlock& other(int index) const; + ::flyteidl::core::IfBlock* mutable_other(int index); + ::flyteidl::core::IfBlock* add_other(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >* + mutable_other(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >& + other() const; + + // .flyteidl.core.IfBlock case = 1; + bool has_case_() const; + void clear_case_(); + static const int kCaseFieldNumber = 1; + const ::flyteidl::core::IfBlock& case_() const; + ::flyteidl::core::IfBlock* release_case_(); + ::flyteidl::core::IfBlock* mutable_case_(); + void set_allocated_case_(::flyteidl::core::IfBlock* case_); + + // .flyteidl.core.Node else_node = 3; + bool has_else_node() const; + void clear_else_node(); + static const int kElseNodeFieldNumber = 3; + const ::flyteidl::core::Node& else_node() const; + ::flyteidl::core::Node* release_else_node(); + ::flyteidl::core::Node* mutable_else_node(); + void set_allocated_else_node(::flyteidl::core::Node* else_node); + + // .flyteidl.core.Error error = 4; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 4; + const ::flyteidl::core::Error& error() const; + ::flyteidl::core::Error* release_error(); + ::flyteidl::core::Error* mutable_error(); + void set_allocated_error(::flyteidl::core::Error* error); + + DefaultCase default_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + private: + void set_has_else_node(); + void set_has_error(); + + inline bool has_default() const; + void clear_default(); + inline void clear_has_default(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock > other_; + ::flyteidl::core::IfBlock* case__; + union DefaultUnion { + DefaultUnion() {} + ::flyteidl::core::Node* else_node_; + ::flyteidl::core::Error* error_; + } default_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNodeImpl(); +}; +// ------------------------------------------------------------------- + +class BranchNode : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BranchNode) */ { + public: + BranchNode(); + virtual ~BranchNode(); + + BranchNode(const BranchNode& from); + + inline BranchNode& operator=(const BranchNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + BranchNode(BranchNode&& from) noexcept + : BranchNode() { + *this = ::std::move(from); + } + + inline BranchNode& operator=(BranchNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const BranchNode& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BranchNode* internal_default_instance() { + return reinterpret_cast( + &_BranchNode_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(BranchNode* other); + friend void swap(BranchNode& a, BranchNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline BranchNode* New() const PROTOBUF_FINAL { return New(NULL); } + + BranchNode* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const BranchNode& from); + void MergeFrom(const BranchNode& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(BranchNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.IfElseBlock if_else = 1; + bool has_if_else() const; + void clear_if_else(); + static const int kIfElseFieldNumber = 1; + const ::flyteidl::core::IfElseBlock& if_else() const; + ::flyteidl::core::IfElseBlock* release_if_else(); + ::flyteidl::core::IfElseBlock* mutable_if_else(); + void set_allocated_if_else(::flyteidl::core::IfElseBlock* if_else); + + // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::IfElseBlock* if_else_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNodeImpl(); +}; +// ------------------------------------------------------------------- + +class TaskNode : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskNode) */ { + public: + TaskNode(); + virtual ~TaskNode(); + + TaskNode(const TaskNode& from); + + inline TaskNode& operator=(const TaskNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskNode(TaskNode&& from) noexcept + : TaskNode() { + *this = ::std::move(from); + } + + inline TaskNode& operator=(TaskNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskNode& default_instance(); + + enum ReferenceCase { + kReferenceId = 1, + REFERENCE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskNode* internal_default_instance() { + return reinterpret_cast( + &_TaskNode_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(TaskNode* other); + friend void swap(TaskNode& a, TaskNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskNode* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskNode* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskNode& from); + void MergeFrom(const TaskNode& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier reference_id = 1; + bool has_reference_id() const; + void clear_reference_id(); + static const int kReferenceIdFieldNumber = 1; + const ::flyteidl::core::Identifier& reference_id() const; + ::flyteidl::core::Identifier* release_reference_id(); + ::flyteidl::core::Identifier* mutable_reference_id(); + void set_allocated_reference_id(::flyteidl::core::Identifier* reference_id); + + ReferenceCase reference_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + private: + void set_has_reference_id(); + + inline bool has_reference() const; + void clear_reference(); + inline void clear_has_reference(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReferenceUnion { + ReferenceUnion() {} + ::flyteidl::core::Identifier* reference_id_; + } reference_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsTaskNodeImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowNode : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowNode) */ { + public: + WorkflowNode(); + virtual ~WorkflowNode(); + + WorkflowNode(const WorkflowNode& from); + + inline WorkflowNode& operator=(const WorkflowNode& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowNode(WorkflowNode&& from) noexcept + : WorkflowNode() { + *this = ::std::move(from); + } + + inline WorkflowNode& operator=(WorkflowNode&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowNode& default_instance(); + + enum ReferenceCase { + kLaunchplanRef = 1, + kSubWorkflowRef = 2, + REFERENCE_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowNode* internal_default_instance() { + return reinterpret_cast( + &_WorkflowNode_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(WorkflowNode* other); + friend void swap(WorkflowNode& a, WorkflowNode& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowNode* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowNode* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowNode& from); + void MergeFrom(const WorkflowNode& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowNode* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier launchplan_ref = 1; + bool has_launchplan_ref() const; + void clear_launchplan_ref(); + static const int kLaunchplanRefFieldNumber = 1; + const ::flyteidl::core::Identifier& launchplan_ref() const; + ::flyteidl::core::Identifier* release_launchplan_ref(); + ::flyteidl::core::Identifier* mutable_launchplan_ref(); + void set_allocated_launchplan_ref(::flyteidl::core::Identifier* launchplan_ref); + + // .flyteidl.core.Identifier sub_workflow_ref = 2; + bool has_sub_workflow_ref() const; + void clear_sub_workflow_ref(); + static const int kSubWorkflowRefFieldNumber = 2; + const ::flyteidl::core::Identifier& sub_workflow_ref() const; + ::flyteidl::core::Identifier* release_sub_workflow_ref(); + ::flyteidl::core::Identifier* mutable_sub_workflow_ref(); + void set_allocated_sub_workflow_ref(::flyteidl::core::Identifier* sub_workflow_ref); + + ReferenceCase reference_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + private: + void set_has_launchplan_ref(); + void set_has_sub_workflow_ref(); + + inline bool has_reference() const; + void clear_reference(); + inline void clear_has_reference(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReferenceUnion { + ReferenceUnion() {} + ::flyteidl::core::Identifier* launchplan_ref_; + ::flyteidl::core::Identifier* sub_workflow_ref_; + } reference_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowNodeImpl(); +}; +// ------------------------------------------------------------------- + +class NodeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeMetadata) */ { + public: + NodeMetadata(); + virtual ~NodeMetadata(); + + NodeMetadata(const NodeMetadata& from); + + inline NodeMetadata& operator=(const NodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeMetadata(NodeMetadata&& from) noexcept + : NodeMetadata() { + *this = ::std::move(from); + } + + inline NodeMetadata& operator=(NodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_NodeMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 5; + + void Swap(NodeMetadata* other); + friend void swap(NodeMetadata& a, NodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeMetadata& from); + void MergeFrom(const NodeMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // .google.protobuf.Duration timeout = 4; + bool has_timeout() const; + void clear_timeout(); + static const int kTimeoutFieldNumber = 4; + const ::google::protobuf::Duration& timeout() const; + ::google::protobuf::Duration* release_timeout(); + ::google::protobuf::Duration* mutable_timeout(); + void set_allocated_timeout(::google::protobuf::Duration* timeout); + + // .flyteidl.core.RetryStrategy retries = 5; + bool has_retries() const; + void clear_retries(); + static const int kRetriesFieldNumber = 5; + const ::flyteidl::core::RetryStrategy& retries() const; + ::flyteidl::core::RetryStrategy* release_retries(); + ::flyteidl::core::RetryStrategy* mutable_retries(); + void set_allocated_retries(::flyteidl::core::RetryStrategy* retries); + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::Duration* timeout_; + ::flyteidl::core::RetryStrategy* retries_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsNodeMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class Alias : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Alias) */ { + public: + Alias(); + virtual ~Alias(); + + Alias(const Alias& from); + + inline Alias& operator=(const Alias& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Alias(Alias&& from) noexcept + : Alias() { + *this = ::std::move(from); + } + + inline Alias& operator=(Alias&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Alias& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Alias* internal_default_instance() { + return reinterpret_cast( + &_Alias_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 6; + + void Swap(Alias* other); + friend void swap(Alias& a, Alias& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Alias* New() const PROTOBUF_FINAL { return New(NULL); } + + Alias* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Alias& from); + void MergeFrom(const Alias& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Alias* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string var = 1; + void clear_var(); + static const int kVarFieldNumber = 1; + const ::std::string& var() const; + void set_var(const ::std::string& value); + #if LANG_CXX11 + void set_var(::std::string&& value); + #endif + void set_var(const char* value); + void set_var(const char* value, size_t size); + ::std::string* mutable_var(); + ::std::string* release_var(); + void set_allocated_var(::std::string* var); + + // string alias = 2; + void clear_alias(); + static const int kAliasFieldNumber = 2; + const ::std::string& alias() const; + void set_alias(const ::std::string& value); + #if LANG_CXX11 + void set_alias(::std::string&& value); + #endif + void set_alias(const char* value); + void set_alias(const char* value, size_t size); + ::std::string* mutable_alias(); + ::std::string* release_alias(); + void set_allocated_alias(::std::string* alias); + + // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr var_; + ::google::protobuf::internal::ArenaStringPtr alias_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsAliasImpl(); +}; +// ------------------------------------------------------------------- + +class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Node) */ { + public: + Node(); + virtual ~Node(); + + Node(const Node& from); + + inline Node& operator=(const Node& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Node(Node&& from) noexcept + : Node() { + *this = ::std::move(from); + } + + inline Node& operator=(Node&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Node& default_instance(); + + enum TargetCase { + kTaskNode = 6, + kWorkflowNode = 7, + kBranchNode = 8, + TARGET_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Node* internal_default_instance() { + return reinterpret_cast( + &_Node_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 7; + + void Swap(Node* other); + friend void swap(Node& a, Node& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Node* New() const PROTOBUF_FINAL { return New(NULL); } + + Node* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Node& from); + void MergeFrom(const Node& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Node* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Binding inputs = 3; + int inputs_size() const; + void clear_inputs(); + static const int kInputsFieldNumber = 3; + const ::flyteidl::core::Binding& inputs(int index) const; + ::flyteidl::core::Binding* mutable_inputs(int index); + ::flyteidl::core::Binding* add_inputs(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* + mutable_inputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& + inputs() const; + + // repeated string upstream_node_ids = 4; + int upstream_node_ids_size() const; + void clear_upstream_node_ids(); + static const int kUpstreamNodeIdsFieldNumber = 4; + const ::std::string& upstream_node_ids(int index) const; + ::std::string* mutable_upstream_node_ids(int index); + void set_upstream_node_ids(int index, const ::std::string& value); + #if LANG_CXX11 + void set_upstream_node_ids(int index, ::std::string&& value); + #endif + void set_upstream_node_ids(int index, const char* value); + void set_upstream_node_ids(int index, const char* value, size_t size); + ::std::string* add_upstream_node_ids(); + void add_upstream_node_ids(const ::std::string& value); + #if LANG_CXX11 + void add_upstream_node_ids(::std::string&& value); + #endif + void add_upstream_node_ids(const char* value); + void add_upstream_node_ids(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& upstream_node_ids() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_upstream_node_ids(); + + // repeated .flyteidl.core.Alias output_aliases = 5; + int output_aliases_size() const; + void clear_output_aliases(); + static const int kOutputAliasesFieldNumber = 5; + const ::flyteidl::core::Alias& output_aliases(int index) const; + ::flyteidl::core::Alias* mutable_output_aliases(int index); + ::flyteidl::core::Alias* add_output_aliases(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >* + mutable_output_aliases(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >& + output_aliases() const; + + // string id = 1; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::std::string& id() const; + void set_id(const ::std::string& value); + #if LANG_CXX11 + void set_id(::std::string&& value); + #endif + void set_id(const char* value); + void set_id(const char* value, size_t size); + ::std::string* mutable_id(); + ::std::string* release_id(); + void set_allocated_id(::std::string* id); + + // .flyteidl.core.NodeMetadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::flyteidl::core::NodeMetadata& metadata() const; + ::flyteidl::core::NodeMetadata* release_metadata(); + ::flyteidl::core::NodeMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::NodeMetadata* metadata); + + // .flyteidl.core.TaskNode task_node = 6; + bool has_task_node() const; + void clear_task_node(); + static const int kTaskNodeFieldNumber = 6; + const ::flyteidl::core::TaskNode& task_node() const; + ::flyteidl::core::TaskNode* release_task_node(); + ::flyteidl::core::TaskNode* mutable_task_node(); + void set_allocated_task_node(::flyteidl::core::TaskNode* task_node); + + // .flyteidl.core.WorkflowNode workflow_node = 7; + bool has_workflow_node() const; + void clear_workflow_node(); + static const int kWorkflowNodeFieldNumber = 7; + const ::flyteidl::core::WorkflowNode& workflow_node() const; + ::flyteidl::core::WorkflowNode* release_workflow_node(); + ::flyteidl::core::WorkflowNode* mutable_workflow_node(); + void set_allocated_workflow_node(::flyteidl::core::WorkflowNode* workflow_node); + + // .flyteidl.core.BranchNode branch_node = 8; + bool has_branch_node() const; + void clear_branch_node(); + static const int kBranchNodeFieldNumber = 8; + const ::flyteidl::core::BranchNode& branch_node() const; + ::flyteidl::core::BranchNode* release_branch_node(); + ::flyteidl::core::BranchNode* mutable_branch_node(); + void set_allocated_branch_node(::flyteidl::core::BranchNode* branch_node); + + TargetCase target_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.core.Node) + private: + void set_has_task_node(); + void set_has_workflow_node(); + void set_has_branch_node(); + + inline bool has_target() const; + void clear_target(); + inline void clear_has_target(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > inputs_; + ::google::protobuf::RepeatedPtrField< ::std::string> upstream_node_ids_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias > output_aliases_; + ::google::protobuf::internal::ArenaStringPtr id_; + ::flyteidl::core::NodeMetadata* metadata_; + union TargetUnion { + TargetUnion() {} + ::flyteidl::core::TaskNode* task_node_; + ::flyteidl::core::WorkflowNode* workflow_node_; + ::flyteidl::core::BranchNode* branch_node_; + } target_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsBranchNodeImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowMetadata) */ { + public: + WorkflowMetadata(); + virtual ~WorkflowMetadata(); + + WorkflowMetadata(const WorkflowMetadata& from); + + inline WorkflowMetadata& operator=(const WorkflowMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowMetadata(WorkflowMetadata&& from) noexcept + : WorkflowMetadata() { + *this = ::std::move(from); + } + + inline WorkflowMetadata& operator=(WorkflowMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowMetadata* internal_default_instance() { + return reinterpret_cast( + &_WorkflowMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 8; + + void Swap(WorkflowMetadata* other); + friend void swap(WorkflowMetadata& a, WorkflowMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowMetadata& from); + void MergeFrom(const WorkflowMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowTemplate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowTemplate) */ { + public: + WorkflowTemplate(); + virtual ~WorkflowTemplate(); + + WorkflowTemplate(const WorkflowTemplate& from); + + inline WorkflowTemplate& operator=(const WorkflowTemplate& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowTemplate(WorkflowTemplate&& from) noexcept + : WorkflowTemplate() { + *this = ::std::move(from); + } + + inline WorkflowTemplate& operator=(WorkflowTemplate&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowTemplate& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowTemplate* internal_default_instance() { + return reinterpret_cast( + &_WorkflowTemplate_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 9; + + void Swap(WorkflowTemplate* other); + friend void swap(WorkflowTemplate& a, WorkflowTemplate& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowTemplate* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowTemplate* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowTemplate& from); + void MergeFrom(const WorkflowTemplate& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowTemplate* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.Node nodes = 4; + int nodes_size() const; + void clear_nodes(); + static const int kNodesFieldNumber = 4; + const ::flyteidl::core::Node& nodes(int index) const; + ::flyteidl::core::Node* mutable_nodes(int index); + ::flyteidl::core::Node* add_nodes(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* + mutable_nodes(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& + nodes() const; + + // repeated .flyteidl.core.Binding outputs = 5; + int outputs_size() const; + void clear_outputs(); + static const int kOutputsFieldNumber = 5; + const ::flyteidl::core::Binding& outputs(int index) const; + ::flyteidl::core::Binding* mutable_outputs(int index); + ::flyteidl::core::Binding* add_outputs(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* + mutable_outputs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& + outputs() const; + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // .flyteidl.core.WorkflowMetadata metadata = 2; + bool has_metadata() const; + void clear_metadata(); + static const int kMetadataFieldNumber = 2; + const ::flyteidl::core::WorkflowMetadata& metadata() const; + ::flyteidl::core::WorkflowMetadata* release_metadata(); + ::flyteidl::core::WorkflowMetadata* mutable_metadata(); + void set_allocated_metadata(::flyteidl::core::WorkflowMetadata* metadata); + + // .flyteidl.core.TypedInterface interface = 3; + bool has_interface() const; + void clear_interface(); + static const int kInterfaceFieldNumber = 3; + const ::flyteidl::core::TypedInterface& interface() const; + ::flyteidl::core::TypedInterface* release_interface(); + ::flyteidl::core::TypedInterface* mutable_interface(); + void set_allocated_interface(::flyteidl::core::TypedInterface* interface); + + // .flyteidl.core.Node failure_node = 6; + bool has_failure_node() const; + void clear_failure_node(); + static const int kFailureNodeFieldNumber = 6; + const ::flyteidl::core::Node& failure_node() const; + ::flyteidl::core::Node* release_failure_node(); + ::flyteidl::core::Node* mutable_failure_node(); + void set_allocated_failure_node(::flyteidl::core::Node* failure_node); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node > nodes_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > outputs_; + ::flyteidl::core::Identifier* id_; + ::flyteidl::core::WorkflowMetadata* metadata_; + ::flyteidl::core::TypedInterface* interface_; + ::flyteidl::core::Node* failure_node_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplateImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// IfBlock + +// .flyteidl.core.BooleanExpression condition = 1; +inline bool IfBlock::has_condition() const { + return this != internal_default_instance() && condition_ != NULL; +} +inline const ::flyteidl::core::BooleanExpression& IfBlock::condition() const { + const ::flyteidl::core::BooleanExpression* p = condition_; + // @@protoc_insertion_point(field_get:flyteidl.core.IfBlock.condition) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_BooleanExpression_default_instance_); +} +inline ::flyteidl::core::BooleanExpression* IfBlock::release_condition() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfBlock.condition) + + ::flyteidl::core::BooleanExpression* temp = condition_; + condition_ = NULL; + return temp; +} +inline ::flyteidl::core::BooleanExpression* IfBlock::mutable_condition() { + + if (condition_ == NULL) { + condition_ = new ::flyteidl::core::BooleanExpression; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfBlock.condition) + return condition_; +} +inline void IfBlock::set_allocated_condition(::flyteidl::core::BooleanExpression* condition) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(condition_); + } + if (condition) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + condition = ::google::protobuf::internal::GetOwnedMessage( + message_arena, condition, submessage_arena); + } + + } else { + + } + condition_ = condition; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfBlock.condition) +} + +// .flyteidl.core.Node then_node = 2; +inline bool IfBlock::has_then_node() const { + return this != internal_default_instance() && then_node_ != NULL; +} +inline void IfBlock::clear_then_node() { + if (GetArenaNoVirtual() == NULL && then_node_ != NULL) { + delete then_node_; + } + then_node_ = NULL; +} +inline const ::flyteidl::core::Node& IfBlock::then_node() const { + const ::flyteidl::core::Node* p = then_node_; + // @@protoc_insertion_point(field_get:flyteidl.core.IfBlock.then_node) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* IfBlock::release_then_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfBlock.then_node) + + ::flyteidl::core::Node* temp = then_node_; + then_node_ = NULL; + return temp; +} +inline ::flyteidl::core::Node* IfBlock::mutable_then_node() { + + if (then_node_ == NULL) { + then_node_ = new ::flyteidl::core::Node; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfBlock.then_node) + return then_node_; +} +inline void IfBlock::set_allocated_then_node(::flyteidl::core::Node* then_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete then_node_; + } + if (then_node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + then_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, then_node, submessage_arena); + } + + } else { + + } + then_node_ = then_node; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfBlock.then_node) +} + +// ------------------------------------------------------------------- + +// IfElseBlock + +// .flyteidl.core.IfBlock case = 1; +inline bool IfElseBlock::has_case_() const { + return this != internal_default_instance() && case__ != NULL; +} +inline void IfElseBlock::clear_case_() { + if (GetArenaNoVirtual() == NULL && case__ != NULL) { + delete case__; + } + case__ = NULL; +} +inline const ::flyteidl::core::IfBlock& IfElseBlock::case_() const { + const ::flyteidl::core::IfBlock* p = case__; + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.case) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_IfBlock_default_instance_); +} +inline ::flyteidl::core::IfBlock* IfElseBlock::release_case_() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.case) + + ::flyteidl::core::IfBlock* temp = case__; + case__ = NULL; + return temp; +} +inline ::flyteidl::core::IfBlock* IfElseBlock::mutable_case_() { + + if (case__ == NULL) { + case__ = new ::flyteidl::core::IfBlock; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.case) + return case__; +} +inline void IfElseBlock::set_allocated_case_(::flyteidl::core::IfBlock* case_) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete case__; + } + if (case_) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + case_ = ::google::protobuf::internal::GetOwnedMessage( + message_arena, case_, submessage_arena); + } + + } else { + + } + case__ = case_; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.case) +} + +// repeated .flyteidl.core.IfBlock other = 2; +inline int IfElseBlock::other_size() const { + return other_.size(); +} +inline void IfElseBlock::clear_other() { + other_.Clear(); +} +inline const ::flyteidl::core::IfBlock& IfElseBlock::other(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.other) + return other_.Get(index); +} +inline ::flyteidl::core::IfBlock* IfElseBlock::mutable_other(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.other) + return other_.Mutable(index); +} +inline ::flyteidl::core::IfBlock* IfElseBlock::add_other() { + // @@protoc_insertion_point(field_add:flyteidl.core.IfElseBlock.other) + return other_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >* +IfElseBlock::mutable_other() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.IfElseBlock.other) + return &other_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >& +IfElseBlock::other() const { + // @@protoc_insertion_point(field_list:flyteidl.core.IfElseBlock.other) + return other_; +} + +// .flyteidl.core.Node else_node = 3; +inline bool IfElseBlock::has_else_node() const { + return default_case() == kElseNode; +} +inline void IfElseBlock::set_has_else_node() { + _oneof_case_[0] = kElseNode; +} +inline void IfElseBlock::clear_else_node() { + if (has_else_node()) { + delete default_.else_node_; + clear_has_default(); + } +} +inline ::flyteidl::core::Node* IfElseBlock::release_else_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.else_node) + if (has_else_node()) { + clear_has_default(); + ::flyteidl::core::Node* temp = default_.else_node_; + default_.else_node_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Node& IfElseBlock::else_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.else_node) + return has_else_node() + ? *default_.else_node_ + : *reinterpret_cast< ::flyteidl::core::Node*>(&::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* IfElseBlock::mutable_else_node() { + if (!has_else_node()) { + clear_default(); + set_has_else_node(); + default_.else_node_ = new ::flyteidl::core::Node; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.else_node) + return default_.else_node_; +} + +// .flyteidl.core.Error error = 4; +inline bool IfElseBlock::has_error() const { + return default_case() == kError; +} +inline void IfElseBlock::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::Error* IfElseBlock::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.error) + if (has_error()) { + clear_has_default(); + ::flyteidl::core::Error* temp = default_.error_; + default_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Error& IfElseBlock::error() const { + // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.error) + return has_error() + ? *default_.error_ + : *reinterpret_cast< ::flyteidl::core::Error*>(&::flyteidl::core::_Error_default_instance_); +} +inline ::flyteidl::core::Error* IfElseBlock::mutable_error() { + if (!has_error()) { + clear_default(); + set_has_error(); + default_.error_ = new ::flyteidl::core::Error; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.error) + return default_.error_; +} + +inline bool IfElseBlock::has_default() const { + return default_case() != DEFAULT_NOT_SET; +} +inline void IfElseBlock::clear_has_default() { + _oneof_case_[0] = DEFAULT_NOT_SET; +} +inline IfElseBlock::DefaultCase IfElseBlock::default_case() const { + return IfElseBlock::DefaultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// BranchNode + +// .flyteidl.core.IfElseBlock if_else = 1; +inline bool BranchNode::has_if_else() const { + return this != internal_default_instance() && if_else_ != NULL; +} +inline void BranchNode::clear_if_else() { + if (GetArenaNoVirtual() == NULL && if_else_ != NULL) { + delete if_else_; + } + if_else_ = NULL; +} +inline const ::flyteidl::core::IfElseBlock& BranchNode::if_else() const { + const ::flyteidl::core::IfElseBlock* p = if_else_; + // @@protoc_insertion_point(field_get:flyteidl.core.BranchNode.if_else) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_IfElseBlock_default_instance_); +} +inline ::flyteidl::core::IfElseBlock* BranchNode::release_if_else() { + // @@protoc_insertion_point(field_release:flyteidl.core.BranchNode.if_else) + + ::flyteidl::core::IfElseBlock* temp = if_else_; + if_else_ = NULL; + return temp; +} +inline ::flyteidl::core::IfElseBlock* BranchNode::mutable_if_else() { + + if (if_else_ == NULL) { + if_else_ = new ::flyteidl::core::IfElseBlock; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.BranchNode.if_else) + return if_else_; +} +inline void BranchNode::set_allocated_if_else(::flyteidl::core::IfElseBlock* if_else) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete if_else_; + } + if (if_else) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + if_else = ::google::protobuf::internal::GetOwnedMessage( + message_arena, if_else, submessage_arena); + } + + } else { + + } + if_else_ = if_else; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BranchNode.if_else) +} + +// ------------------------------------------------------------------- + +// TaskNode + +// .flyteidl.core.Identifier reference_id = 1; +inline bool TaskNode::has_reference_id() const { + return reference_case() == kReferenceId; +} +inline void TaskNode::set_has_reference_id() { + _oneof_case_[0] = kReferenceId; +} +inline ::flyteidl::core::Identifier* TaskNode::release_reference_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.TaskNode.reference_id) + if (has_reference_id()) { + clear_has_reference(); + ::flyteidl::core::Identifier* temp = reference_.reference_id_; + reference_.reference_id_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Identifier& TaskNode::reference_id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.TaskNode.reference_id) + return has_reference_id() + ? *reference_.reference_id_ + : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskNode::mutable_reference_id() { + if (!has_reference_id()) { + clear_reference(); + set_has_reference_id(); + reference_.reference_id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNode.reference_id) + return reference_.reference_id_; +} + +inline bool TaskNode::has_reference() const { + return reference_case() != REFERENCE_NOT_SET; +} +inline void TaskNode::clear_has_reference() { + _oneof_case_[0] = REFERENCE_NOT_SET; +} +inline TaskNode::ReferenceCase TaskNode::reference_case() const { + return TaskNode::ReferenceCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// WorkflowNode + +// .flyteidl.core.Identifier launchplan_ref = 1; +inline bool WorkflowNode::has_launchplan_ref() const { + return reference_case() == kLaunchplanRef; +} +inline void WorkflowNode::set_has_launchplan_ref() { + _oneof_case_[0] = kLaunchplanRef; +} +inline ::flyteidl::core::Identifier* WorkflowNode::release_launchplan_ref() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowNode.launchplan_ref) + if (has_launchplan_ref()) { + clear_has_reference(); + ::flyteidl::core::Identifier* temp = reference_.launchplan_ref_; + reference_.launchplan_ref_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Identifier& WorkflowNode::launchplan_ref() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowNode.launchplan_ref) + return has_launchplan_ref() + ? *reference_.launchplan_ref_ + : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowNode::mutable_launchplan_ref() { + if (!has_launchplan_ref()) { + clear_reference(); + set_has_launchplan_ref(); + reference_.launchplan_ref_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowNode.launchplan_ref) + return reference_.launchplan_ref_; +} + +// .flyteidl.core.Identifier sub_workflow_ref = 2; +inline bool WorkflowNode::has_sub_workflow_ref() const { + return reference_case() == kSubWorkflowRef; +} +inline void WorkflowNode::set_has_sub_workflow_ref() { + _oneof_case_[0] = kSubWorkflowRef; +} +inline ::flyteidl::core::Identifier* WorkflowNode::release_sub_workflow_ref() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowNode.sub_workflow_ref) + if (has_sub_workflow_ref()) { + clear_has_reference(); + ::flyteidl::core::Identifier* temp = reference_.sub_workflow_ref_; + reference_.sub_workflow_ref_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::Identifier& WorkflowNode::sub_workflow_ref() const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowNode.sub_workflow_ref) + return has_sub_workflow_ref() + ? *reference_.sub_workflow_ref_ + : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowNode::mutable_sub_workflow_ref() { + if (!has_sub_workflow_ref()) { + clear_reference(); + set_has_sub_workflow_ref(); + reference_.sub_workflow_ref_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowNode.sub_workflow_ref) + return reference_.sub_workflow_ref_; +} + +inline bool WorkflowNode::has_reference() const { + return reference_case() != REFERENCE_NOT_SET; +} +inline void WorkflowNode::clear_has_reference() { + _oneof_case_[0] = REFERENCE_NOT_SET; +} +inline WorkflowNode::ReferenceCase WorkflowNode::reference_case() const { + return WorkflowNode::ReferenceCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// NodeMetadata + +// string name = 1; +inline void NodeMetadata::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeMetadata::name() const { + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.name) + return name_.GetNoArena(); +} +inline void NodeMetadata::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.NodeMetadata.name) +} +#if LANG_CXX11 +inline void NodeMetadata::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.NodeMetadata.name) +} +#endif +inline void NodeMetadata::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.NodeMetadata.name) +} +inline void NodeMetadata::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.NodeMetadata.name) +} +inline ::std::string* NodeMetadata::mutable_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeMetadata::release_name() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeMetadata::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.name) +} + +// .google.protobuf.Duration timeout = 4; +inline bool NodeMetadata::has_timeout() const { + return this != internal_default_instance() && timeout_ != NULL; +} +inline const ::google::protobuf::Duration& NodeMetadata::timeout() const { + const ::google::protobuf::Duration* p = timeout_; + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.timeout) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Duration_default_instance_); +} +inline ::google::protobuf::Duration* NodeMetadata::release_timeout() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.timeout) + + ::google::protobuf::Duration* temp = timeout_; + timeout_ = NULL; + return temp; +} +inline ::google::protobuf::Duration* NodeMetadata::mutable_timeout() { + + if (timeout_ == NULL) { + timeout_ = new ::google::protobuf::Duration; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.timeout) + return timeout_; +} +inline void NodeMetadata::set_allocated_timeout(::google::protobuf::Duration* timeout) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeout_); + } + if (timeout) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(timeout)->GetArena(); + if (message_arena != submessage_arena) { + timeout = ::google::protobuf::internal::GetOwnedMessage( + message_arena, timeout, submessage_arena); + } + + } else { + + } + timeout_ = timeout; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.timeout) +} + +// .flyteidl.core.RetryStrategy retries = 5; +inline bool NodeMetadata::has_retries() const { + return this != internal_default_instance() && retries_ != NULL; +} +inline const ::flyteidl::core::RetryStrategy& NodeMetadata::retries() const { + const ::flyteidl::core::RetryStrategy* p = retries_; + // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.retries) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_RetryStrategy_default_instance_); +} +inline ::flyteidl::core::RetryStrategy* NodeMetadata::release_retries() { + // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.retries) + + ::flyteidl::core::RetryStrategy* temp = retries_; + retries_ = NULL; + return temp; +} +inline ::flyteidl::core::RetryStrategy* NodeMetadata::mutable_retries() { + + if (retries_ == NULL) { + retries_ = new ::flyteidl::core::RetryStrategy; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.retries) + return retries_; +} +inline void NodeMetadata::set_allocated_retries(::flyteidl::core::RetryStrategy* retries) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(retries_); + } + if (retries) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + retries = ::google::protobuf::internal::GetOwnedMessage( + message_arena, retries, submessage_arena); + } + + } else { + + } + retries_ = retries; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.retries) +} + +// ------------------------------------------------------------------- + +// Alias + +// string var = 1; +inline void Alias::clear_var() { + var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Alias::var() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Alias.var) + return var_.GetNoArena(); +} +inline void Alias::set_var(const ::std::string& value) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Alias.var) +} +#if LANG_CXX11 +inline void Alias::set_var(::std::string&& value) { + + var_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Alias.var) +} +#endif +inline void Alias::set_var(const char* value) { + GOOGLE_DCHECK(value != NULL); + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Alias.var) +} +inline void Alias::set_var(const char* value, size_t size) { + + var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Alias.var) +} +inline ::std::string* Alias::mutable_var() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Alias.var) + return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Alias::release_var() { + // @@protoc_insertion_point(field_release:flyteidl.core.Alias.var) + + return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Alias::set_allocated_var(::std::string* var) { + if (var != NULL) { + + } else { + + } + var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Alias.var) +} + +// string alias = 2; +inline void Alias::clear_alias() { + alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Alias::alias() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Alias.alias) + return alias_.GetNoArena(); +} +inline void Alias::set_alias(const ::std::string& value) { + + alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Alias.alias) +} +#if LANG_CXX11 +inline void Alias::set_alias(::std::string&& value) { + + alias_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Alias.alias) +} +#endif +inline void Alias::set_alias(const char* value) { + GOOGLE_DCHECK(value != NULL); + + alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Alias.alias) +} +inline void Alias::set_alias(const char* value, size_t size) { + + alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Alias.alias) +} +inline ::std::string* Alias::mutable_alias() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Alias.alias) + return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Alias::release_alias() { + // @@protoc_insertion_point(field_release:flyteidl.core.Alias.alias) + + return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Alias::set_allocated_alias(::std::string* alias) { + if (alias != NULL) { + + } else { + + } + alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Alias.alias) +} + +// ------------------------------------------------------------------- + +// Node + +// string id = 1; +inline void Node::clear_id() { + id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Node::id() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.id) + return id_.GetNoArena(); +} +inline void Node::set_id(const ::std::string& value) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.core.Node.id) +} +#if LANG_CXX11 +inline void Node::set_id(::std::string&& value) { + + id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Node.id) +} +#endif +inline void Node::set_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Node.id) +} +inline void Node::set_id(const char* value, size_t size) { + + id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Node.id) +} +inline ::std::string* Node::mutable_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.id) + return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Node::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.id) + + return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Node::set_allocated_id(::std::string* id) { + if (id != NULL) { + + } else { + + } + id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.id) +} + +// .flyteidl.core.NodeMetadata metadata = 2; +inline bool Node::has_metadata() const { + return this != internal_default_instance() && metadata_ != NULL; +} +inline void Node::clear_metadata() { + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; +} +inline const ::flyteidl::core::NodeMetadata& Node::metadata() const { + const ::flyteidl::core::NodeMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.Node.metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeMetadata_default_instance_); +} +inline ::flyteidl::core::NodeMetadata* Node::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.metadata) + + ::flyteidl::core::NodeMetadata* temp = metadata_; + metadata_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeMetadata* Node::mutable_metadata() { + + if (metadata_ == NULL) { + metadata_ = new ::flyteidl::core::NodeMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.metadata) + return metadata_; +} +inline void Node::set_allocated_metadata(::flyteidl::core::NodeMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.metadata) +} + +// repeated .flyteidl.core.Binding inputs = 3; +inline int Node::inputs_size() const { + return inputs_.size(); +} +inline const ::flyteidl::core::Binding& Node::inputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.inputs) + return inputs_.Get(index); +} +inline ::flyteidl::core::Binding* Node::mutable_inputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.inputs) + return inputs_.Mutable(index); +} +inline ::flyteidl::core::Binding* Node::add_inputs() { + // @@protoc_insertion_point(field_add:flyteidl.core.Node.inputs) + return inputs_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* +Node::mutable_inputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.inputs) + return &inputs_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& +Node::inputs() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Node.inputs) + return inputs_; +} + +// repeated string upstream_node_ids = 4; +inline int Node::upstream_node_ids_size() const { + return upstream_node_ids_.size(); +} +inline void Node::clear_upstream_node_ids() { + upstream_node_ids_.Clear(); +} +inline const ::std::string& Node::upstream_node_ids(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_.Get(index); +} +inline ::std::string* Node::mutable_upstream_node_ids(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_.Mutable(index); +} +inline void Node::set_upstream_node_ids(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Node.upstream_node_ids) + upstream_node_ids_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void Node::set_upstream_node_ids(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.core.Node.upstream_node_ids) + upstream_node_ids_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void Node::set_upstream_node_ids(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + upstream_node_ids_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.core.Node.upstream_node_ids) +} +inline void Node::set_upstream_node_ids(int index, const char* value, size_t size) { + upstream_node_ids_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Node.upstream_node_ids) +} +inline ::std::string* Node::add_upstream_node_ids() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_.Add(); +} +inline void Node::add_upstream_node_ids(const ::std::string& value) { + upstream_node_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.core.Node.upstream_node_ids) +} +#if LANG_CXX11 +inline void Node::add_upstream_node_ids(::std::string&& value) { + upstream_node_ids_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.core.Node.upstream_node_ids) +} +#endif +inline void Node::add_upstream_node_ids(const char* value) { + GOOGLE_DCHECK(value != NULL); + upstream_node_ids_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.core.Node.upstream_node_ids) +} +inline void Node::add_upstream_node_ids(const char* value, size_t size) { + upstream_node_ids_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Node.upstream_node_ids) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +Node::upstream_node_ids() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Node.upstream_node_ids) + return upstream_node_ids_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +Node::mutable_upstream_node_ids() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.upstream_node_ids) + return &upstream_node_ids_; +} + +// repeated .flyteidl.core.Alias output_aliases = 5; +inline int Node::output_aliases_size() const { + return output_aliases_.size(); +} +inline void Node::clear_output_aliases() { + output_aliases_.Clear(); +} +inline const ::flyteidl::core::Alias& Node::output_aliases(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.output_aliases) + return output_aliases_.Get(index); +} +inline ::flyteidl::core::Alias* Node::mutable_output_aliases(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.output_aliases) + return output_aliases_.Mutable(index); +} +inline ::flyteidl::core::Alias* Node::add_output_aliases() { + // @@protoc_insertion_point(field_add:flyteidl.core.Node.output_aliases) + return output_aliases_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >* +Node::mutable_output_aliases() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.output_aliases) + return &output_aliases_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >& +Node::output_aliases() const { + // @@protoc_insertion_point(field_list:flyteidl.core.Node.output_aliases) + return output_aliases_; +} + +// .flyteidl.core.TaskNode task_node = 6; +inline bool Node::has_task_node() const { + return target_case() == kTaskNode; +} +inline void Node::set_has_task_node() { + _oneof_case_[0] = kTaskNode; +} +inline void Node::clear_task_node() { + if (has_task_node()) { + delete target_.task_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::TaskNode* Node::release_task_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.task_node) + if (has_task_node()) { + clear_has_target(); + ::flyteidl::core::TaskNode* temp = target_.task_node_; + target_.task_node_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::TaskNode& Node::task_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.task_node) + return has_task_node() + ? *target_.task_node_ + : *reinterpret_cast< ::flyteidl::core::TaskNode*>(&::flyteidl::core::_TaskNode_default_instance_); +} +inline ::flyteidl::core::TaskNode* Node::mutable_task_node() { + if (!has_task_node()) { + clear_target(); + set_has_task_node(); + target_.task_node_ = new ::flyteidl::core::TaskNode; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.task_node) + return target_.task_node_; +} + +// .flyteidl.core.WorkflowNode workflow_node = 7; +inline bool Node::has_workflow_node() const { + return target_case() == kWorkflowNode; +} +inline void Node::set_has_workflow_node() { + _oneof_case_[0] = kWorkflowNode; +} +inline void Node::clear_workflow_node() { + if (has_workflow_node()) { + delete target_.workflow_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::WorkflowNode* Node::release_workflow_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.workflow_node) + if (has_workflow_node()) { + clear_has_target(); + ::flyteidl::core::WorkflowNode* temp = target_.workflow_node_; + target_.workflow_node_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::WorkflowNode& Node::workflow_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.workflow_node) + return has_workflow_node() + ? *target_.workflow_node_ + : *reinterpret_cast< ::flyteidl::core::WorkflowNode*>(&::flyteidl::core::_WorkflowNode_default_instance_); +} +inline ::flyteidl::core::WorkflowNode* Node::mutable_workflow_node() { + if (!has_workflow_node()) { + clear_target(); + set_has_workflow_node(); + target_.workflow_node_ = new ::flyteidl::core::WorkflowNode; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.workflow_node) + return target_.workflow_node_; +} + +// .flyteidl.core.BranchNode branch_node = 8; +inline bool Node::has_branch_node() const { + return target_case() == kBranchNode; +} +inline void Node::set_has_branch_node() { + _oneof_case_[0] = kBranchNode; +} +inline void Node::clear_branch_node() { + if (has_branch_node()) { + delete target_.branch_node_; + clear_has_target(); + } +} +inline ::flyteidl::core::BranchNode* Node::release_branch_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.Node.branch_node) + if (has_branch_node()) { + clear_has_target(); + ::flyteidl::core::BranchNode* temp = target_.branch_node_; + target_.branch_node_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::BranchNode& Node::branch_node() const { + // @@protoc_insertion_point(field_get:flyteidl.core.Node.branch_node) + return has_branch_node() + ? *target_.branch_node_ + : *reinterpret_cast< ::flyteidl::core::BranchNode*>(&::flyteidl::core::_BranchNode_default_instance_); +} +inline ::flyteidl::core::BranchNode* Node::mutable_branch_node() { + if (!has_branch_node()) { + clear_target(); + set_has_branch_node(); + target_.branch_node_ = new ::flyteidl::core::BranchNode; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.branch_node) + return target_.branch_node_; +} + +inline bool Node::has_target() const { + return target_case() != TARGET_NOT_SET; +} +inline void Node::clear_has_target() { + _oneof_case_[0] = TARGET_NOT_SET; +} +inline Node::TargetCase Node::target_case() const { + return Node::TargetCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// WorkflowMetadata + +// ------------------------------------------------------------------- + +// WorkflowTemplate + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowTemplate::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::Identifier& WorkflowTemplate::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowTemplate::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowTemplate::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.id) + return id_; +} +inline void WorkflowTemplate::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.id) +} + +// .flyteidl.core.WorkflowMetadata metadata = 2; +inline bool WorkflowTemplate::has_metadata() const { + return this != internal_default_instance() && metadata_ != NULL; +} +inline void WorkflowTemplate::clear_metadata() { + if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { + delete metadata_; + } + metadata_ = NULL; +} +inline const ::flyteidl::core::WorkflowMetadata& WorkflowTemplate::metadata() const { + const ::flyteidl::core::WorkflowMetadata* p = metadata_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowMetadata_default_instance_); +} +inline ::flyteidl::core::WorkflowMetadata* WorkflowTemplate::release_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.metadata) + + ::flyteidl::core::WorkflowMetadata* temp = metadata_; + metadata_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowMetadata* WorkflowTemplate::mutable_metadata() { + + if (metadata_ == NULL) { + metadata_ = new ::flyteidl::core::WorkflowMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.metadata) + return metadata_; +} +inline void WorkflowTemplate::set_allocated_metadata(::flyteidl::core::WorkflowMetadata* metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete metadata_; + } + if (metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, metadata, submessage_arena); + } + + } else { + + } + metadata_ = metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.metadata) +} + +// .flyteidl.core.TypedInterface interface = 3; +inline bool WorkflowTemplate::has_interface() const { + return this != internal_default_instance() && interface_ != NULL; +} +inline const ::flyteidl::core::TypedInterface& WorkflowTemplate::interface() const { + const ::flyteidl::core::TypedInterface* p = interface_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.interface) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TypedInterface_default_instance_); +} +inline ::flyteidl::core::TypedInterface* WorkflowTemplate::release_interface() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.interface) + + ::flyteidl::core::TypedInterface* temp = interface_; + interface_ = NULL; + return temp; +} +inline ::flyteidl::core::TypedInterface* WorkflowTemplate::mutable_interface() { + + if (interface_ == NULL) { + interface_ = new ::flyteidl::core::TypedInterface; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.interface) + return interface_; +} +inline void WorkflowTemplate::set_allocated_interface(::flyteidl::core::TypedInterface* interface) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(interface_); + } + if (interface) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + interface = ::google::protobuf::internal::GetOwnedMessage( + message_arena, interface, submessage_arena); + } + + } else { + + } + interface_ = interface; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.interface) +} + +// repeated .flyteidl.core.Node nodes = 4; +inline int WorkflowTemplate::nodes_size() const { + return nodes_.size(); +} +inline void WorkflowTemplate::clear_nodes() { + nodes_.Clear(); +} +inline const ::flyteidl::core::Node& WorkflowTemplate::nodes(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.nodes) + return nodes_.Get(index); +} +inline ::flyteidl::core::Node* WorkflowTemplate::mutable_nodes(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.nodes) + return nodes_.Mutable(index); +} +inline ::flyteidl::core::Node* WorkflowTemplate::add_nodes() { + // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowTemplate.nodes) + return nodes_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* +WorkflowTemplate::mutable_nodes() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowTemplate.nodes) + return &nodes_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& +WorkflowTemplate::nodes() const { + // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowTemplate.nodes) + return nodes_; +} + +// repeated .flyteidl.core.Binding outputs = 5; +inline int WorkflowTemplate::outputs_size() const { + return outputs_.size(); +} +inline const ::flyteidl::core::Binding& WorkflowTemplate::outputs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.outputs) + return outputs_.Get(index); +} +inline ::flyteidl::core::Binding* WorkflowTemplate::mutable_outputs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.outputs) + return outputs_.Mutable(index); +} +inline ::flyteidl::core::Binding* WorkflowTemplate::add_outputs() { + // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowTemplate.outputs) + return outputs_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* +WorkflowTemplate::mutable_outputs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowTemplate.outputs) + return &outputs_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& +WorkflowTemplate::outputs() const { + // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowTemplate.outputs) + return outputs_; +} + +// .flyteidl.core.Node failure_node = 6; +inline bool WorkflowTemplate::has_failure_node() const { + return this != internal_default_instance() && failure_node_ != NULL; +} +inline void WorkflowTemplate::clear_failure_node() { + if (GetArenaNoVirtual() == NULL && failure_node_ != NULL) { + delete failure_node_; + } + failure_node_ = NULL; +} +inline const ::flyteidl::core::Node& WorkflowTemplate::failure_node() const { + const ::flyteidl::core::Node* p = failure_node_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.failure_node) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Node_default_instance_); +} +inline ::flyteidl::core::Node* WorkflowTemplate::release_failure_node() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.failure_node) + + ::flyteidl::core::Node* temp = failure_node_; + failure_node_ = NULL; + return temp; +} +inline ::flyteidl::core::Node* WorkflowTemplate::mutable_failure_node() { + + if (failure_node_ == NULL) { + failure_node_ = new ::flyteidl::core::Node; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.failure_node) + return failure_node_; +} +inline void WorkflowTemplate::set_allocated_failure_node(::flyteidl::core::Node* failure_node) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete failure_node_; + } + if (failure_node) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + failure_node = ::google::protobuf::internal::GetOwnedMessage( + message_arena, failure_node, submessage_arena); + } + + } else { + + } + failure_node_ = failure_node; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.failure_node) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc new file mode 100644 index 0000000000..b2a86222ab --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow_closure.proto + +#include "flyteidl/core/workflow_closure.pb.h" +#include "flyteidl/core/workflow_closure.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace core { + +} // namespace flyteidl +} // namespace core + diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h new file mode 100644 index 0000000000..98c5992477 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/core/workflow_closure.proto +#ifndef GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED +#define GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED + +#include "flyteidl/core/workflow_closure.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace core { + +} // namespace core +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc new file mode 100644 index 0000000000..5afe6710bf --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc @@ -0,0 +1,431 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +#include "flyteidl/core/workflow_closure.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace core { +class WorkflowClosureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowClosure_default_instance_; +} // namespace core +} // namespace flyteidl +namespace protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto { +void InitDefaultsWorkflowClosureImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fworkflow_2eproto::InitDefaultsWorkflowTemplate(); + protobuf_flyteidl_2fcore_2ftasks_2eproto::InitDefaultsTaskTemplate(); + { + void* ptr = &::flyteidl::core::_WorkflowClosure_default_instance_; + new (ptr) ::flyteidl::core::WorkflowClosure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::core::WorkflowClosure::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowClosure() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowClosureImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, workflow_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, tasks_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::core::WorkflowClosure)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::core::_WorkflowClosure_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/core/workflow_closure.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n$flyteidl/core/workflow_closure.proto\022\r" + "flyteidl.core\032\034flyteidl/core/workflow.pr" + "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + "yteidl.core.TaskTemplateB2Z0github.com/l" + "yft/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + "oto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 284); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/core/workflow_closure.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fworkflow_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto +namespace flyteidl { +namespace core { + +// =================================================================== + +void WorkflowClosure::InitAsDefaultInstance() { + ::flyteidl::core::_WorkflowClosure_default_instance_._instance.get_mutable()->workflow_ = const_cast< ::flyteidl::core::WorkflowTemplate*>( + ::flyteidl::core::WorkflowTemplate::internal_default_instance()); +} +void WorkflowClosure::clear_workflow() { + if (GetArenaNoVirtual() == NULL && workflow_ != NULL) { + delete workflow_; + } + workflow_ = NULL; +} +void WorkflowClosure::clear_tasks() { + tasks_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowClosure::kWorkflowFieldNumber; +const int WorkflowClosure::kTasksFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowClosure::WorkflowClosure() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::InitDefaultsWorkflowClosure(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowClosure) +} +WorkflowClosure::WorkflowClosure(const WorkflowClosure& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + tasks_(from.tasks_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_workflow()) { + workflow_ = new ::flyteidl::core::WorkflowTemplate(*from.workflow_); + } else { + workflow_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowClosure) +} + +void WorkflowClosure::SharedCtor() { + workflow_ = NULL; + _cached_size_ = 0; +} + +WorkflowClosure::~WorkflowClosure() { + // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowClosure) + SharedDtor(); +} + +void WorkflowClosure::SharedDtor() { + if (this != internal_default_instance()) delete workflow_; +} + +void WorkflowClosure::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowClosure::descriptor() { + ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowClosure& WorkflowClosure::default_instance() { + ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::InitDefaultsWorkflowClosure(); + return *internal_default_instance(); +} + +WorkflowClosure* WorkflowClosure::New(::google::protobuf::Arena* arena) const { + WorkflowClosure* n = new WorkflowClosure; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowClosure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tasks_.Clear(); + if (GetArenaNoVirtual() == NULL && workflow_ != NULL) { + delete workflow_; + } + workflow_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowClosure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.core.WorkflowClosure) + 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)) { + // .flyteidl.core.WorkflowTemplate workflow = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tasks())); + } 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.WorkflowClosure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowClosure) + return false; +#undef DO_ +} + +void WorkflowClosure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate workflow = 1; + if (this->has_workflow()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->workflow_, output); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->tasks(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowClosure) +} + +::google::protobuf::uint8* WorkflowClosure::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowClosure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowTemplate workflow = 1; + if (this->has_workflow()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->workflow_, deterministic, target); + } + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + for (unsigned int i = 0, + n = static_cast(this->tasks_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->tasks(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.core.WorkflowClosure) + return target; +} + +size_t WorkflowClosure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowClosure) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.TaskTemplate tasks = 2; + { + unsigned int count = static_cast(this->tasks_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->tasks(static_cast(i))); + } + } + + // .flyteidl.core.WorkflowTemplate workflow = 1; + if (this->has_workflow()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->workflow_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowClosure* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowClosure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowClosure) + MergeFrom(*source); + } +} + +void WorkflowClosure::MergeFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowClosure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tasks_.MergeFrom(from.tasks_); + if (from.has_workflow()) { + mutable_workflow()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.workflow()); + } +} + +void WorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowClosure::CopyFrom(const WorkflowClosure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowClosure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowClosure::IsInitialized() const { + return true; +} + +void WorkflowClosure::Swap(WorkflowClosure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowClosure::InternalSwap(WorkflowClosure* other) { + using std::swap; + tasks_.InternalSwap(&other->tasks_); + swap(workflow_, other->workflow_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { + protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h new file mode 100644 index 0000000000..ca0bbb8e24 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h @@ -0,0 +1,271 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +#ifndef PROTOBUF_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/workflow.pb.h" +#include "flyteidl/core/tasks.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsWorkflowClosureImpl(); +void InitDefaultsWorkflowClosure(); +inline void InitDefaults() { + InitDefaultsWorkflowClosure(); +} +} // namespace protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto +namespace flyteidl { +namespace core { +class WorkflowClosure; +class WorkflowClosureDefaultTypeInternal; +extern WorkflowClosureDefaultTypeInternal _WorkflowClosure_default_instance_; +} // namespace core +} // namespace flyteidl +namespace flyteidl { +namespace core { + +// =================================================================== + +class WorkflowClosure : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowClosure) */ { + public: + WorkflowClosure(); + virtual ~WorkflowClosure(); + + WorkflowClosure(const WorkflowClosure& from); + + inline WorkflowClosure& operator=(const WorkflowClosure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowClosure(WorkflowClosure&& from) noexcept + : WorkflowClosure() { + *this = ::std::move(from); + } + + inline WorkflowClosure& operator=(WorkflowClosure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowClosure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowClosure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowClosure_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(WorkflowClosure* other); + friend void swap(WorkflowClosure& a, WorkflowClosure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowClosure* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowClosure* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowClosure& from); + void MergeFrom(const WorkflowClosure& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowClosure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskTemplate tasks = 2; + int tasks_size() const; + void clear_tasks(); + static const int kTasksFieldNumber = 2; + const ::flyteidl::core::TaskTemplate& tasks(int index) const; + ::flyteidl::core::TaskTemplate* mutable_tasks(int index); + ::flyteidl::core::TaskTemplate* add_tasks(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* + mutable_tasks(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& + tasks() const; + + // .flyteidl.core.WorkflowTemplate workflow = 1; + bool has_workflow() const; + void clear_workflow(); + static const int kWorkflowFieldNumber = 1; + const ::flyteidl::core::WorkflowTemplate& workflow() const; + ::flyteidl::core::WorkflowTemplate* release_workflow(); + ::flyteidl::core::WorkflowTemplate* mutable_workflow(); + void set_allocated_workflow(::flyteidl::core::WorkflowTemplate* workflow); + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate > tasks_; + ::flyteidl::core::WorkflowTemplate* workflow_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::InitDefaultsWorkflowClosureImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowClosure + +// .flyteidl.core.WorkflowTemplate workflow = 1; +inline bool WorkflowClosure::has_workflow() const { + return this != internal_default_instance() && workflow_ != NULL; +} +inline const ::flyteidl::core::WorkflowTemplate& WorkflowClosure::workflow() const { + const ::flyteidl::core::WorkflowTemplate* p = workflow_; + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowClosure.workflow) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowTemplate_default_instance_); +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowClosure::release_workflow() { + // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowClosure.workflow) + + ::flyteidl::core::WorkflowTemplate* temp = workflow_; + workflow_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowTemplate* WorkflowClosure::mutable_workflow() { + + if (workflow_ == NULL) { + workflow_ = new ::flyteidl::core::WorkflowTemplate; + } + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowClosure.workflow) + return workflow_; +} +inline void WorkflowClosure::set_allocated_workflow(::flyteidl::core::WorkflowTemplate* workflow) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_); + } + if (workflow) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow, submessage_arena); + } + + } else { + + } + workflow_ = workflow; + // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowClosure.workflow) +} + +// repeated .flyteidl.core.TaskTemplate tasks = 2; +inline int WorkflowClosure::tasks_size() const { + return tasks_.size(); +} +inline const ::flyteidl::core::TaskTemplate& WorkflowClosure::tasks(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowClosure.tasks) + return tasks_.Get(index); +} +inline ::flyteidl::core::TaskTemplate* WorkflowClosure::mutable_tasks(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowClosure.tasks) + return tasks_.Mutable(index); +} +inline ::flyteidl::core::TaskTemplate* WorkflowClosure::add_tasks() { + // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowClosure.tasks) + return tasks_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* +WorkflowClosure::mutable_tasks() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowClosure.tasks) + return &tasks_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& +WorkflowClosure::tasks() const { + // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowClosure.tasks) + return tasks_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace core +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc new file mode 100644 index 0000000000..5b039162cb --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/event/event.proto + +#include "flyteidl/event/event.pb.h" +#include "flyteidl/event/event.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace event { + +} // namespace flyteidl +} // namespace event + diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h new file mode 100644 index 0000000000..c51bdf4322 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/event/event.proto +#ifndef GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED +#define GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED + +#include "flyteidl/event/event.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace event { + +} // namespace event +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc new file mode 100644 index 0000000000..a7775a9a0b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc @@ -0,0 +1,3056 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +#include "flyteidl/event/event.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace event { +class WorkflowExecutionEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; +} _WorkflowExecutionEvent_default_instance_; +class NodeExecutionEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; + const ::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata_; +} _NodeExecutionEvent_default_instance_; +class WorkflowNodeMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _WorkflowNodeMetadata_default_instance_; +class ParentTaskExecutionMetadataDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ParentTaskExecutionMetadata_default_instance_; +class TaskExecutionEventDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; + ::google::protobuf::internal::ArenaStringPtr output_uri_; + const ::flyteidl::core::ExecutionError* error_; +} _TaskExecutionEvent_default_instance_; +} // namespace event +} // namespace flyteidl +namespace protobuf_flyteidl_2fevent_2fevent_2eproto { +void InitDefaultsWorkflowExecutionEventImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + { + void* ptr = &::flyteidl::event::_WorkflowExecutionEvent_default_instance_; + new (ptr) ::flyteidl::event::WorkflowExecutionEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::WorkflowExecutionEvent::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowExecutionEvent() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowExecutionEventImpl); +} + +void InitDefaultsNodeExecutionEventImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowNodeMetadata(); + protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsParentTaskExecutionMetadata(); + { + void* ptr = &::flyteidl::event::_NodeExecutionEvent_default_instance_; + new (ptr) ::flyteidl::event::NodeExecutionEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::NodeExecutionEvent::InitAsDefaultInstance(); +} + +void InitDefaultsNodeExecutionEvent() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeExecutionEventImpl); +} + +void InitDefaultsWorkflowNodeMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::event::_WorkflowNodeMetadata_default_instance_; + new (ptr) ::flyteidl::event::WorkflowNodeMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::WorkflowNodeMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsWorkflowNodeMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWorkflowNodeMetadataImpl); +} + +void InitDefaultsParentTaskExecutionMetadataImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsTaskExecutionIdentifier(); + { + void* ptr = &::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_; + new (ptr) ::flyteidl::event::ParentTaskExecutionMetadata(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::ParentTaskExecutionMetadata::InitAsDefaultInstance(); +} + +void InitDefaultsParentTaskExecutionMetadata() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsParentTaskExecutionMetadataImpl); +} + +void InitDefaultsTaskExecutionEventImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsIdentifier(); + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsNodeExecutionIdentifier(); + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsTaskLog(); + protobuf_google_2fprotobuf_2ftimestamp_2eproto::InitDefaultsTimestamp(); + protobuf_flyteidl_2fcore_2fexecution_2eproto::InitDefaultsExecutionError(); + protobuf_google_2fprotobuf_2fstruct_2eproto::InitDefaultsListValue(); + { + void* ptr = &::flyteidl::event::_TaskExecutionEvent_default_instance_; + new (ptr) ::flyteidl::event::TaskExecutionEvent(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::event::TaskExecutionEvent::InitAsDefaultInstance(); +} + +void InitDefaultsTaskExecutionEvent() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTaskExecutionEventImpl); +} + +::google::protobuf::Metadata file_level_metadata[5]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, execution_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, producer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, occurred_at_), + offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, error_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, output_result_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, producer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, occurred_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, input_uri_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, error_), + offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, workflow_node_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, parent_task_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, output_result_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, target_metadata_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowNodeMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::WorkflowNodeMetadata, execution_id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::ParentTaskExecutionMetadata, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::ParentTaskExecutionMetadata, id_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, _internal_metadata_), + ~0u, // no _extensions_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, task_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, parent_node_execution_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, retry_attempt_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, producer_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, logs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, occurred_at_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, input_uri_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, output_uri_), + offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, error_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, custom_info_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, phase_version_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, output_result_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::event::WorkflowExecutionEvent)}, + { 12, -1, sizeof(::flyteidl::event::NodeExecutionEvent)}, + { 28, -1, sizeof(::flyteidl::event::WorkflowNodeMetadata)}, + { 34, -1, sizeof(::flyteidl::event::ParentTaskExecutionMetadata)}, + { 40, -1, sizeof(::flyteidl::event::TaskExecutionEvent)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::event::_WorkflowExecutionEvent_default_instance_), + reinterpret_cast(&::flyteidl::event::_NodeExecutionEvent_default_instance_), + reinterpret_cast(&::flyteidl::event::_WorkflowNodeMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_), + reinterpret_cast(&::flyteidl::event::_TaskExecutionEvent_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/event/event.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\032flyteidl/event/event.proto\022\016flyteidl.e" + "vent\032\035flyteidl/core/execution.proto\032\036fly" + "teidl/core/identifier.proto\032\037google/prot" + "obuf/timestamp.proto\032\034google/protobuf/st" + "ruct.proto\"\256\002\n\026WorkflowExecutionEvent\022@\n" + "\014execution_id\030\001 \001(\0132*.flyteidl.core.Work" + "flowExecutionIdentifier\022\023\n\013producer_id\030\002" + " \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl.core.Work" + "flowExecution.Phase\022/\n\013occurred_at\030\004 \001(\013" + "2\032.google.protobuf.Timestamp\022\024\n\noutput_u" + "ri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.flyteidl.cor" + "e.ExecutionErrorH\000B\017\n\routput_result\"\321\003\n\022" + "NodeExecutionEvent\0222\n\002id\030\001 \001(\0132&.flyteid" + "l.core.NodeExecutionIdentifier\022\023\n\013produc" + "er_id\030\002 \001(\t\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + "re.NodeExecution.Phase\022/\n\013occurred_at\030\004 " + "\001(\0132\032.google.protobuf.Timestamp\022\021\n\tinput" + "_uri\030\005 \001(\t\022\024\n\noutput_uri\030\006 \001(\tH\000\022.\n\005erro" + "r\030\007 \001(\0132\035.flyteidl.core.ExecutionErrorH\000" + "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + "idl.event.WorkflowNodeMetadataH\001\022I\n\024pare" + "nt_task_metadata\030\t \001(\0132+.flyteidl.event." + "ParentTaskExecutionMetadataB\017\n\routput_re" + "sultB\021\n\017target_metadata\"X\n\024WorkflowNodeM" + "etadata\022@\n\014execution_id\030\001 \001(\0132*.flyteidl" + ".core.WorkflowExecutionIdentifier\"Q\n\033Par" + "entTaskExecutionMetadata\0222\n\002id\030\001 \001(\0132&.f" + "lyteidl.core.TaskExecutionIdentifier\"\357\003\n" + "\022TaskExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.f" + "lyteidl.core.Identifier\022H\n\030parent_node_e" + "xecution_id\030\002 \001(\0132&.flyteidl.core.NodeEx" + "ecutionIdentifier\022\025\n\rretry_attempt\030\003 \001(\r" + "\0221\n\005phase\030\004 \001(\0162\".flyteidl.core.TaskExec" + "ution.Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs" + "\030\006 \003(\0132\026.flyteidl.core.TaskLog\022/\n\013occurr" + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + "\021\n\tinput_uri\030\010 \001(\t\022\024\n\noutput_uri\030\t \001(\tH\000" + "\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Executio" + "nErrorH\000\022,\n\013custom_info\030\013 \001(\0132\027.google.p" + "rotobuf.Struct\022\025\n\rphase_version\030\014 \001(\rB\017\n" + "\routput_resultB3Z1github.com/lyft/flytei" + "dl/gen/pb-go/flyteidl/eventb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 1675); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/event/event.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fstruct_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fevent_2fevent_2eproto +namespace flyteidl { +namespace event { + +// =================================================================== + +void WorkflowExecutionEvent::InitAsDefaultInstance() { + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); +} +void WorkflowExecutionEvent::clear_execution_id() { + if (GetArenaNoVirtual() == NULL && execution_id_ != NULL) { + delete execution_id_; + } + execution_id_ = NULL; +} +void WorkflowExecutionEvent::clear_occurred_at() { + if (GetArenaNoVirtual() == NULL && occurred_at_ != NULL) { + delete occurred_at_; + } + occurred_at_ = NULL; +} +void WorkflowExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.error) +} +void WorkflowExecutionEvent::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowExecutionEvent::kExecutionIdFieldNumber; +const int WorkflowExecutionEvent::kProducerIdFieldNumber; +const int WorkflowExecutionEvent::kPhaseFieldNumber; +const int WorkflowExecutionEvent::kOccurredAtFieldNumber; +const int WorkflowExecutionEvent::kOutputUriFieldNumber; +const int WorkflowExecutionEvent::kErrorFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowExecutionEvent::WorkflowExecutionEvent() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowExecutionEvent(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.WorkflowExecutionEvent) +} +WorkflowExecutionEvent::WorkflowExecutionEvent(const WorkflowExecutionEvent& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.producer_id().size() > 0) { + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = NULL; + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = NULL; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.WorkflowExecutionEvent) +} + +void WorkflowExecutionEvent::SharedCtor() { + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&execution_id_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&execution_id_)) + sizeof(phase_)); + clear_has_output_result(); + _cached_size_ = 0; +} + +WorkflowExecutionEvent::~WorkflowExecutionEvent() { + // @@protoc_insertion_point(destructor:flyteidl.event.WorkflowExecutionEvent) + SharedDtor(); +} + +void WorkflowExecutionEvent::SharedDtor() { + producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete execution_id_; + if (this != internal_default_instance()) delete occurred_at_; + if (has_output_result()) { + clear_output_result(); + } +} + +void WorkflowExecutionEvent::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowExecutionEvent::descriptor() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowExecutionEvent& WorkflowExecutionEvent::default_instance() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowExecutionEvent(); + return *internal_default_instance(); +} + +WorkflowExecutionEvent* WorkflowExecutionEvent::New(::google::protobuf::Arena* arena) const { + WorkflowExecutionEvent* n = new WorkflowExecutionEvent; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowExecutionEvent::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.WorkflowExecutionEvent) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void WorkflowExecutionEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && execution_id_ != NULL) { + delete execution_id_; + } + execution_id_ = NULL; + if (GetArenaNoVirtual() == NULL && occurred_at_ != NULL) { + delete occurred_at_; + } + occurred_at_ = NULL; + phase_ = 0; + clear_output_result(); + _internal_metadata_.Clear(); +} + +bool WorkflowExecutionEvent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.WorkflowExecutionEvent) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // string producer_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_producer_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.WorkflowExecutionEvent.producer_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string output_uri = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.WorkflowExecutionEvent.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } 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.event.WorkflowExecutionEvent) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.WorkflowExecutionEvent) + return false; +#undef DO_ +} + +void WorkflowExecutionEvent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->execution_id_, output); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.producer_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->producer_id(), output); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->occurred_at_, output); + } + + // string output_uri = 5; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 6; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, *output_result_.error_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.WorkflowExecutionEvent) +} + +::google::protobuf::uint8* WorkflowExecutionEvent::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->execution_id_, deterministic, target); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.producer_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->producer_id(), target); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->occurred_at_, deterministic, target); + } + + // string output_uri = 5; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.WorkflowExecutionEvent.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 6; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, *output_result_.error_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.WorkflowExecutionEvent) + return target; +} + +size_t WorkflowExecutionEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.WorkflowExecutionEvent) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string producer_id = 2; + if (this->producer_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->producer_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->execution_id_); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->occurred_at_); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // string output_uri = 5; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 6; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.WorkflowExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowExecutionEvent* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.WorkflowExecutionEvent) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.WorkflowExecutionEvent) + MergeFrom(*source); + } +} + +void WorkflowExecutionEvent::MergeFrom(const WorkflowExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.WorkflowExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.producer_id().size() > 0) { + + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void WorkflowExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.WorkflowExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowExecutionEvent::CopyFrom(const WorkflowExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.WorkflowExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowExecutionEvent::IsInitialized() const { + return true; +} + +void WorkflowExecutionEvent::Swap(WorkflowExecutionEvent* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowExecutionEvent::InternalSwap(WorkflowExecutionEvent* other) { + using std::swap; + producer_id_.Swap(&other->producer_id_); + swap(execution_id_, other->execution_id_); + swap(occurred_at_, other->occurred_at_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowExecutionEvent::GetMetadata() const { + protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void NodeExecutionEvent::InitAsDefaultInstance() { + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_.workflow_node_metadata_ = const_cast< ::flyteidl::event::WorkflowNodeMetadata*>( + ::flyteidl::event::WorkflowNodeMetadata::internal_default_instance()); + ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->parent_task_metadata_ = const_cast< ::flyteidl::event::ParentTaskExecutionMetadata*>( + ::flyteidl::event::ParentTaskExecutionMetadata::internal_default_instance()); +} +void NodeExecutionEvent::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +void NodeExecutionEvent::clear_occurred_at() { + if (GetArenaNoVirtual() == NULL && occurred_at_ != NULL) { + delete occurred_at_; + } + occurred_at_ = NULL; +} +void NodeExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.error) +} +void NodeExecutionEvent::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void NodeExecutionEvent::set_allocated_workflow_node_metadata(::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_target_metadata(); + if (workflow_node_metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + workflow_node_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, workflow_node_metadata, submessage_arena); + } + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = workflow_node_metadata; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int NodeExecutionEvent::kIdFieldNumber; +const int NodeExecutionEvent::kProducerIdFieldNumber; +const int NodeExecutionEvent::kPhaseFieldNumber; +const int NodeExecutionEvent::kOccurredAtFieldNumber; +const int NodeExecutionEvent::kInputUriFieldNumber; +const int NodeExecutionEvent::kOutputUriFieldNumber; +const int NodeExecutionEvent::kErrorFieldNumber; +const int NodeExecutionEvent::kWorkflowNodeMetadataFieldNumber; +const int NodeExecutionEvent::kParentTaskMetadataFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +NodeExecutionEvent::NodeExecutionEvent() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsNodeExecutionEvent(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.NodeExecutionEvent) +} +NodeExecutionEvent::NodeExecutionEvent(const NodeExecutionEvent& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.producer_id().size() > 0) { + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_uri().size() > 0) { + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = NULL; + } + if (from.has_parent_task_metadata()) { + parent_task_metadata_ = new ::flyteidl::event::ParentTaskExecutionMetadata(*from.parent_task_metadata_); + } else { + parent_task_metadata_ = NULL; + } + phase_ = from.phase_; + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + clear_has_target_metadata(); + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::event::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.NodeExecutionEvent) +} + +void NodeExecutionEvent::SharedCtor() { + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&id_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&id_)) + sizeof(phase_)); + clear_has_output_result(); + clear_has_target_metadata(); + _cached_size_ = 0; +} + +NodeExecutionEvent::~NodeExecutionEvent() { + // @@protoc_insertion_point(destructor:flyteidl.event.NodeExecutionEvent) + SharedDtor(); +} + +void NodeExecutionEvent::SharedDtor() { + producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete id_; + if (this != internal_default_instance()) delete occurred_at_; + if (this != internal_default_instance()) delete parent_task_metadata_; + if (has_output_result()) { + clear_output_result(); + } + if (has_target_metadata()) { + clear_target_metadata(); + } +} + +void NodeExecutionEvent::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NodeExecutionEvent::descriptor() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const NodeExecutionEvent& NodeExecutionEvent::default_instance() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsNodeExecutionEvent(); + return *internal_default_instance(); +} + +NodeExecutionEvent* NodeExecutionEvent::New(::google::protobuf::Arena* arena) const { + NodeExecutionEvent* n = new NodeExecutionEvent; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void NodeExecutionEvent::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + +void NodeExecutionEvent::clear_target_metadata() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) + switch (target_metadata_case()) { + case kWorkflowNodeMetadata: { + delete target_metadata_.workflow_node_metadata_; + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + _oneof_case_[1] = TARGET_METADATA_NOT_SET; +} + + +void NodeExecutionEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + if (GetArenaNoVirtual() == NULL && occurred_at_ != NULL) { + delete occurred_at_; + } + occurred_at_ = NULL; + if (GetArenaNoVirtual() == NULL && parent_task_metadata_ != NULL) { + delete parent_task_metadata_; + } + parent_task_metadata_ = NULL; + phase_ = 0; + clear_output_result(); + clear_target_metadata(); + _internal_metadata_.Clear(); +} + +bool NodeExecutionEvent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.NodeExecutionEvent) + 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)) { + // .flyteidl.core.NodeExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + // string producer_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_producer_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.producer_id")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::NodeExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // string output_uri = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.NodeExecutionEvent.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_workflow_node_metadata())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_task_metadata())); + } 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.event.NodeExecutionEvent) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.NodeExecutionEvent) + return false; +#undef DO_ +} + +void NodeExecutionEvent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.producer_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->producer_id(), output); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->phase(), output); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *this->occurred_at_, output); + } + + // string input_uri = 5; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->input_uri(), output); + } + + // string output_uri = 6; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 7; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *output_result_.error_, output); + } + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, *target_metadata_.workflow_node_metadata_, output); + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + if (this->has_parent_task_metadata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, *this->parent_task_metadata_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.NodeExecutionEvent) +} + +::google::protobuf::uint8* NodeExecutionEvent::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + // string producer_id = 2; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.producer_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->producer_id(), target); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->phase(), target); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, *this->occurred_at_, deterministic, target); + } + + // string input_uri = 5; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->input_uri(), target); + } + + // string output_uri = 6; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.NodeExecutionEvent.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 7; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *output_result_.error_, deterministic, target); + } + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + if (has_workflow_node_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 8, *target_metadata_.workflow_node_metadata_, deterministic, target); + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + if (this->has_parent_task_metadata()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 9, *this->parent_task_metadata_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.NodeExecutionEvent) + return target; +} + +size_t NodeExecutionEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.NodeExecutionEvent) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string producer_id = 2; + if (this->producer_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->producer_id()); + } + + // string input_uri = 5; + if (this->input_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + } + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + // .google.protobuf.Timestamp occurred_at = 4; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->occurred_at_); + } + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + if (this->has_parent_task_metadata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->parent_task_metadata_); + } + + // .flyteidl.core.NodeExecution.Phase phase = 3; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + switch (output_result_case()) { + // string output_uri = 6; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 7; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (target_metadata_case()) { + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + case kWorkflowNodeMetadata: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *target_metadata_.workflow_node_metadata_); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NodeExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.NodeExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + const NodeExecutionEvent* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.NodeExecutionEvent) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.NodeExecutionEvent) + MergeFrom(*source); + } +} + +void NodeExecutionEvent::MergeFrom(const NodeExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.NodeExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.producer_id().size() > 0) { + + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.input_uri().size() > 0) { + + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_id()) { + mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.has_parent_task_metadata()) { + mutable_parent_task_metadata()->::flyteidl::event::ParentTaskExecutionMetadata::MergeFrom(from.parent_task_metadata()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + switch (from.target_metadata_case()) { + case kWorkflowNodeMetadata: { + mutable_workflow_node_metadata()->::flyteidl::event::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); + break; + } + case TARGET_METADATA_NOT_SET: { + break; + } + } +} + +void NodeExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.NodeExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NodeExecutionEvent::CopyFrom(const NodeExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.NodeExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NodeExecutionEvent::IsInitialized() const { + return true; +} + +void NodeExecutionEvent::Swap(NodeExecutionEvent* other) { + if (other == this) return; + InternalSwap(other); +} +void NodeExecutionEvent::InternalSwap(NodeExecutionEvent* other) { + using std::swap; + producer_id_.Swap(&other->producer_id_); + input_uri_.Swap(&other->input_uri_); + swap(id_, other->id_); + swap(occurred_at_, other->occurred_at_); + swap(parent_task_metadata_, other->parent_task_metadata_); + swap(phase_, other->phase_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + swap(target_metadata_, other->target_metadata_); + swap(_oneof_case_[1], other->_oneof_case_[1]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata NodeExecutionEvent::GetMetadata() const { + protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowNodeMetadata::InitAsDefaultInstance() { + ::flyteidl::event::_WorkflowNodeMetadata_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void WorkflowNodeMetadata::clear_execution_id() { + if (GetArenaNoVirtual() == NULL && execution_id_ != NULL) { + delete execution_id_; + } + execution_id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowNodeMetadata::kExecutionIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowNodeMetadata::WorkflowNodeMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowNodeMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.WorkflowNodeMetadata) +} +WorkflowNodeMetadata::WorkflowNodeMetadata(const WorkflowNodeMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_execution_id()) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); + } else { + execution_id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.WorkflowNodeMetadata) +} + +void WorkflowNodeMetadata::SharedCtor() { + execution_id_ = NULL; + _cached_size_ = 0; +} + +WorkflowNodeMetadata::~WorkflowNodeMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.WorkflowNodeMetadata) + SharedDtor(); +} + +void WorkflowNodeMetadata::SharedDtor() { + if (this != internal_default_instance()) delete execution_id_; +} + +void WorkflowNodeMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* WorkflowNodeMetadata::descriptor() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const WorkflowNodeMetadata& WorkflowNodeMetadata::default_instance() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowNodeMetadata(); + return *internal_default_instance(); +} + +WorkflowNodeMetadata* WorkflowNodeMetadata::New(::google::protobuf::Arena* arena) const { + WorkflowNodeMetadata* n = new WorkflowNodeMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void WorkflowNodeMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && execution_id_ != NULL) { + delete execution_id_; + } + execution_id_ = NULL; + _internal_metadata_.Clear(); +} + +bool WorkflowNodeMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.WorkflowNodeMetadata) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_execution_id())); + } 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.event.WorkflowNodeMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.WorkflowNodeMetadata) + return false; +#undef DO_ +} + +void WorkflowNodeMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->execution_id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.WorkflowNodeMetadata) +} + +::google::protobuf::uint8* WorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->execution_id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.WorkflowNodeMetadata) + return target; +} + +size_t WorkflowNodeMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.WorkflowNodeMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + if (this->has_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->execution_id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void WorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowNodeMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.WorkflowNodeMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.WorkflowNodeMetadata) + MergeFrom(*source); + } +} + +void WorkflowNodeMetadata::MergeFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.WorkflowNodeMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_execution_id()) { + mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); + } +} + +void WorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowNodeMetadata::CopyFrom(const WorkflowNodeMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.WorkflowNodeMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowNodeMetadata::IsInitialized() const { + return true; +} + +void WorkflowNodeMetadata::Swap(WorkflowNodeMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowNodeMetadata::InternalSwap(WorkflowNodeMetadata* other) { + using std::swap; + swap(execution_id_, other->execution_id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata WorkflowNodeMetadata::GetMetadata() const { + protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void ParentTaskExecutionMetadata::InitAsDefaultInstance() { + ::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( + ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); +} +void ParentTaskExecutionMetadata::clear_id() { + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ParentTaskExecutionMetadata::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ParentTaskExecutionMetadata::ParentTaskExecutionMetadata() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsParentTaskExecutionMetadata(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.ParentTaskExecutionMetadata) +} +ParentTaskExecutionMetadata::ParentTaskExecutionMetadata(const ParentTaskExecutionMetadata& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); + } else { + id_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.ParentTaskExecutionMetadata) +} + +void ParentTaskExecutionMetadata::SharedCtor() { + id_ = NULL; + _cached_size_ = 0; +} + +ParentTaskExecutionMetadata::~ParentTaskExecutionMetadata() { + // @@protoc_insertion_point(destructor:flyteidl.event.ParentTaskExecutionMetadata) + SharedDtor(); +} + +void ParentTaskExecutionMetadata::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void ParentTaskExecutionMetadata::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ParentTaskExecutionMetadata::descriptor() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ParentTaskExecutionMetadata& ParentTaskExecutionMetadata::default_instance() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsParentTaskExecutionMetadata(); + return *internal_default_instance(); +} + +ParentTaskExecutionMetadata* ParentTaskExecutionMetadata::New(::google::protobuf::Arena* arena) const { + ParentTaskExecutionMetadata* n = new ParentTaskExecutionMetadata; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ParentTaskExecutionMetadata::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == NULL && id_ != NULL) { + delete id_; + } + id_ = NULL; + _internal_metadata_.Clear(); +} + +bool ParentTaskExecutionMetadata::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.ParentTaskExecutionMetadata) + 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)) { + // .flyteidl.core.TaskExecutionIdentifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } 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.event.ParentTaskExecutionMetadata) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.ParentTaskExecutionMetadata) + return false; +#undef DO_ +} + +void ParentTaskExecutionMetadata::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->id_, output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.ParentTaskExecutionMetadata) +} + +::google::protobuf::uint8* ParentTaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->id_, deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.ParentTaskExecutionMetadata) + return target; +} + +size_t ParentTaskExecutionMetadata::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ParentTaskExecutionMetadata) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // .flyteidl.core.TaskExecutionIdentifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ParentTaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ParentTaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + const ParentTaskExecutionMetadata* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ParentTaskExecutionMetadata) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ParentTaskExecutionMetadata) + MergeFrom(*source); + } +} + +void ParentTaskExecutionMetadata::MergeFrom(const ParentTaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ParentTaskExecutionMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); + } +} + +void ParentTaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ParentTaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ParentTaskExecutionMetadata::CopyFrom(const ParentTaskExecutionMetadata& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ParentTaskExecutionMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ParentTaskExecutionMetadata::IsInitialized() const { + return true; +} + +void ParentTaskExecutionMetadata::Swap(ParentTaskExecutionMetadata* other) { + if (other == this) return; + InternalSwap(other); +} +void ParentTaskExecutionMetadata::InternalSwap(ParentTaskExecutionMetadata* other) { + using std::swap; + swap(id_, other->id_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ParentTaskExecutionMetadata::GetMetadata() const { + protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void TaskExecutionEvent::InitAsDefaultInstance() { + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->parent_node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( + ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( + ::google::protobuf::Timestamp::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( + &::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( + ::flyteidl::core::ExecutionError::internal_default_instance()); + ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->custom_info_ = const_cast< ::google::protobuf::Struct*>( + ::google::protobuf::Struct::internal_default_instance()); +} +void TaskExecutionEvent::clear_task_id() { + if (GetArenaNoVirtual() == NULL && task_id_ != NULL) { + delete task_id_; + } + task_id_ = NULL; +} +void TaskExecutionEvent::clear_parent_node_execution_id() { + if (GetArenaNoVirtual() == NULL && parent_node_execution_id_ != NULL) { + delete parent_node_execution_id_; + } + parent_node_execution_id_ = NULL; +} +void TaskExecutionEvent::clear_logs() { + logs_.Clear(); +} +void TaskExecutionEvent::clear_occurred_at() { + if (GetArenaNoVirtual() == NULL && occurred_at_ != NULL) { + delete occurred_at_; + } + occurred_at_ = NULL; +} +void TaskExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_output_result(); + if (error) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + error = ::google::protobuf::internal::GetOwnedMessage( + message_arena, error, submessage_arena); + } + set_has_error(); + output_result_.error_ = error; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.error) +} +void TaskExecutionEvent::clear_error() { + if (has_error()) { + delete output_result_.error_; + clear_has_output_result(); + } +} +void TaskExecutionEvent::clear_custom_info() { + if (GetArenaNoVirtual() == NULL && custom_info_ != NULL) { + delete custom_info_; + } + custom_info_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int TaskExecutionEvent::kTaskIdFieldNumber; +const int TaskExecutionEvent::kParentNodeExecutionIdFieldNumber; +const int TaskExecutionEvent::kRetryAttemptFieldNumber; +const int TaskExecutionEvent::kPhaseFieldNumber; +const int TaskExecutionEvent::kProducerIdFieldNumber; +const int TaskExecutionEvent::kLogsFieldNumber; +const int TaskExecutionEvent::kOccurredAtFieldNumber; +const int TaskExecutionEvent::kInputUriFieldNumber; +const int TaskExecutionEvent::kOutputUriFieldNumber; +const int TaskExecutionEvent::kErrorFieldNumber; +const int TaskExecutionEvent::kCustomInfoFieldNumber; +const int TaskExecutionEvent::kPhaseVersionFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +TaskExecutionEvent::TaskExecutionEvent() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsTaskExecutionEvent(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.event.TaskExecutionEvent) +} +TaskExecutionEvent::TaskExecutionEvent(const TaskExecutionEvent& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + logs_(from.logs_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.producer_id().size() > 0) { + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.input_uri().size() > 0) { + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_task_id()) { + task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); + } else { + task_id_ = NULL; + } + if (from.has_parent_node_execution_id()) { + parent_node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_id_); + } else { + parent_node_execution_id_ = NULL; + } + if (from.has_occurred_at()) { + occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); + } else { + occurred_at_ = NULL; + } + if (from.has_custom_info()) { + custom_info_ = new ::google::protobuf::Struct(*from.custom_info_); + } else { + custom_info_ = NULL; + } + ::memcpy(&retry_attempt_, &from.retry_attempt_, + static_cast(reinterpret_cast(&phase_version_) - + reinterpret_cast(&retry_attempt_)) + sizeof(phase_version_)); + clear_has_output_result(); + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskExecutionEvent) +} + +void TaskExecutionEvent::SharedCtor() { + producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&task_id_, 0, static_cast( + reinterpret_cast(&phase_version_) - + reinterpret_cast(&task_id_)) + sizeof(phase_version_)); + clear_has_output_result(); + _cached_size_ = 0; +} + +TaskExecutionEvent::~TaskExecutionEvent() { + // @@protoc_insertion_point(destructor:flyteidl.event.TaskExecutionEvent) + SharedDtor(); +} + +void TaskExecutionEvent::SharedDtor() { + producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete task_id_; + if (this != internal_default_instance()) delete parent_node_execution_id_; + if (this != internal_default_instance()) delete occurred_at_; + if (this != internal_default_instance()) delete custom_info_; + if (has_output_result()) { + clear_output_result(); + } +} + +void TaskExecutionEvent::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TaskExecutionEvent::descriptor() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const TaskExecutionEvent& TaskExecutionEvent::default_instance() { + ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsTaskExecutionEvent(); + return *internal_default_instance(); +} + +TaskExecutionEvent* TaskExecutionEvent::New(::google::protobuf::Arena* arena) const { + TaskExecutionEvent* n = new TaskExecutionEvent; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void TaskExecutionEvent::clear_output_result() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.TaskExecutionEvent) + switch (output_result_case()) { + case kOutputUri: { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + break; + } + case kError: { + delete output_result_.error_; + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} + + +void TaskExecutionEvent::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + logs_.Clear(); + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && task_id_ != NULL) { + delete task_id_; + } + task_id_ = NULL; + if (GetArenaNoVirtual() == NULL && parent_node_execution_id_ != NULL) { + delete parent_node_execution_id_; + } + parent_node_execution_id_ = NULL; + if (GetArenaNoVirtual() == NULL && occurred_at_ != NULL) { + delete occurred_at_; + } + occurred_at_ = NULL; + if (GetArenaNoVirtual() == NULL && custom_info_ != NULL) { + delete custom_info_; + } + custom_info_ = NULL; + ::memset(&retry_attempt_, 0, static_cast( + reinterpret_cast(&phase_version_) - + reinterpret_cast(&retry_attempt_)) + sizeof(phase_version_)); + clear_output_result(); + _internal_metadata_.Clear(); +} + +bool TaskExecutionEvent::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.event.TaskExecutionEvent) + 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)) { + // .flyteidl.core.Identifier task_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_task_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_parent_node_execution_id())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retry_attempt = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retry_attempt_))); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string producer_id = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_producer_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.producer_id")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .flyteidl.core.TaskLog logs = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_logs())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Timestamp occurred_at = 7; + case 7: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_occurred_at())); + } else { + goto handle_unusual; + } + break; + } + + // string input_uri = 8; + case 8: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_input_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.input_uri")); + } else { + goto handle_unusual; + } + break; + } + + // string output_uri = 9; + case 9: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_output_uri())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.event.TaskExecutionEvent.output_uri")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.ExecutionError error = 10; + case 10: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_error())); + } else { + goto handle_unusual; + } + break; + } + + // .google.protobuf.Struct custom_info = 11; + case 11: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_custom_info())); + } else { + goto handle_unusual; + } + break; + } + + // uint32 phase_version = 12; + case 12: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &phase_version_))); + } 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.event.TaskExecutionEvent) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskExecutionEvent) + return false; +#undef DO_ +} + +void TaskExecutionEvent::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->task_id_, output); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + if (this->has_parent_node_execution_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->parent_node_execution_id_, output); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->phase(), output); + } + + // string producer_id = 5; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.producer_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->producer_id(), output); + } + + // repeated .flyteidl.core.TaskLog logs = 6; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->logs(static_cast(i)), output); + } + + // .google.protobuf.Timestamp occurred_at = 7; + if (this->has_occurred_at()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, *this->occurred_at_, output); + } + + // string input_uri = 8; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.input_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 8, this->input_uri(), output); + } + + // string output_uri = 9; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.output_uri"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 9, this->output_uri(), output); + } + + // .flyteidl.core.ExecutionError error = 10; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, *output_result_.error_, output); + } + + // .google.protobuf.Struct custom_info = 11; + if (this->has_custom_info()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, *this->custom_info_, output); + } + + // uint32 phase_version = 12; + if (this->phase_version() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->phase_version(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskExecutionEvent) +} + +::google::protobuf::uint8* TaskExecutionEvent::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->task_id_, deterministic, target); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + if (this->has_parent_node_execution_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->parent_node_execution_id_, deterministic, target); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->phase(), target); + } + + // string producer_id = 5; + if (this->producer_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->producer_id().data(), static_cast(this->producer_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.producer_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->producer_id(), target); + } + + // repeated .flyteidl.core.TaskLog logs = 6; + for (unsigned int i = 0, + n = static_cast(this->logs_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, this->logs(static_cast(i)), deterministic, target); + } + + // .google.protobuf.Timestamp occurred_at = 7; + if (this->has_occurred_at()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 7, *this->occurred_at_, deterministic, target); + } + + // string input_uri = 8; + if (this->input_uri().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->input_uri().data(), static_cast(this->input_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.input_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 8, this->input_uri(), target); + } + + // string output_uri = 9; + if (has_output_uri()) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->output_uri().data(), static_cast(this->output_uri().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.event.TaskExecutionEvent.output_uri"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 9, this->output_uri(), target); + } + + // .flyteidl.core.ExecutionError error = 10; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, *output_result_.error_, deterministic, target); + } + + // .google.protobuf.Struct custom_info = 11; + if (this->has_custom_info()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 11, *this->custom_info_, deterministic, target); + } + + // uint32 phase_version = 12; + if (this->phase_version() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->phase_version(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.event.TaskExecutionEvent) + return target; +} + +size_t TaskExecutionEvent::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskExecutionEvent) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.core.TaskLog logs = 6; + { + unsigned int count = static_cast(this->logs_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->logs(static_cast(i))); + } + } + + // string producer_id = 5; + if (this->producer_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->producer_id()); + } + + // string input_uri = 8; + if (this->input_uri().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->input_uri()); + } + + // .flyteidl.core.Identifier task_id = 1; + if (this->has_task_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->task_id_); + } + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + if (this->has_parent_node_execution_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->parent_node_execution_id_); + } + + // .google.protobuf.Timestamp occurred_at = 7; + if (this->has_occurred_at()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->occurred_at_); + } + + // .google.protobuf.Struct custom_info = 11; + if (this->has_custom_info()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->custom_info_); + } + + // uint32 retry_attempt = 3; + if (this->retry_attempt() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retry_attempt()); + } + + // .flyteidl.core.TaskExecution.Phase phase = 4; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + // uint32 phase_version = 12; + if (this->phase_version() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->phase_version()); + } + + switch (output_result_case()) { + // string output_uri = 9; + case kOutputUri: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->output_uri()); + break; + } + // .flyteidl.core.ExecutionError error = 10; + case kError: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *output_result_.error_); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TaskExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + const TaskExecutionEvent* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskExecutionEvent) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskExecutionEvent) + MergeFrom(*source); + } +} + +void TaskExecutionEvent::MergeFrom(const TaskExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskExecutionEvent) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + logs_.MergeFrom(from.logs_); + if (from.producer_id().size() > 0) { + + producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); + } + if (from.input_uri().size() > 0) { + + input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); + } + if (from.has_task_id()) { + mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); + } + if (from.has_parent_node_execution_id()) { + mutable_parent_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution_id()); + } + if (from.has_occurred_at()) { + mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); + } + if (from.has_custom_info()) { + mutable_custom_info()->::google::protobuf::Struct::MergeFrom(from.custom_info()); + } + if (from.retry_attempt() != 0) { + set_retry_attempt(from.retry_attempt()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } + if (from.phase_version() != 0) { + set_phase_version(from.phase_version()); + } + switch (from.output_result_case()) { + case kOutputUri: { + set_output_uri(from.output_uri()); + break; + } + case kError: { + mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); + break; + } + case OUTPUT_RESULT_NOT_SET: { + break; + } + } +} + +void TaskExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TaskExecutionEvent::CopyFrom(const TaskExecutionEvent& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskExecutionEvent) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TaskExecutionEvent::IsInitialized() const { + return true; +} + +void TaskExecutionEvent::Swap(TaskExecutionEvent* other) { + if (other == this) return; + InternalSwap(other); +} +void TaskExecutionEvent::InternalSwap(TaskExecutionEvent* other) { + using std::swap; + logs_.InternalSwap(&other->logs_); + producer_id_.Swap(&other->producer_id_); + input_uri_.Swap(&other->input_uri_); + swap(task_id_, other->task_id_); + swap(parent_node_execution_id_, other->parent_node_execution_id_); + swap(occurred_at_, other->occurred_at_); + swap(custom_info_, other->custom_info_); + swap(retry_attempt_, other->retry_attempt_); + swap(phase_, other->phase_); + swap(phase_version_, other->phase_version_); + swap(output_result_, other->output_result_); + swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata TaskExecutionEvent::GetMetadata() const { + protobuf_flyteidl_2fevent_2fevent_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fevent_2fevent_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace event +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h new file mode 100644 index 0000000000..c047228bd4 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h @@ -0,0 +1,2309 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +#ifndef PROTOBUF_flyteidl_2fevent_2fevent_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fevent_2fevent_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fevent_2fevent_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[5]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsWorkflowExecutionEventImpl(); +void InitDefaultsWorkflowExecutionEvent(); +void InitDefaultsNodeExecutionEventImpl(); +void InitDefaultsNodeExecutionEvent(); +void InitDefaultsWorkflowNodeMetadataImpl(); +void InitDefaultsWorkflowNodeMetadata(); +void InitDefaultsParentTaskExecutionMetadataImpl(); +void InitDefaultsParentTaskExecutionMetadata(); +void InitDefaultsTaskExecutionEventImpl(); +void InitDefaultsTaskExecutionEvent(); +inline void InitDefaults() { + InitDefaultsWorkflowExecutionEvent(); + InitDefaultsNodeExecutionEvent(); + InitDefaultsWorkflowNodeMetadata(); + InitDefaultsParentTaskExecutionMetadata(); + InitDefaultsTaskExecutionEvent(); +} +} // namespace protobuf_flyteidl_2fevent_2fevent_2eproto +namespace flyteidl { +namespace event { +class NodeExecutionEvent; +class NodeExecutionEventDefaultTypeInternal; +extern NodeExecutionEventDefaultTypeInternal _NodeExecutionEvent_default_instance_; +class ParentTaskExecutionMetadata; +class ParentTaskExecutionMetadataDefaultTypeInternal; +extern ParentTaskExecutionMetadataDefaultTypeInternal _ParentTaskExecutionMetadata_default_instance_; +class TaskExecutionEvent; +class TaskExecutionEventDefaultTypeInternal; +extern TaskExecutionEventDefaultTypeInternal _TaskExecutionEvent_default_instance_; +class WorkflowExecutionEvent; +class WorkflowExecutionEventDefaultTypeInternal; +extern WorkflowExecutionEventDefaultTypeInternal _WorkflowExecutionEvent_default_instance_; +class WorkflowNodeMetadata; +class WorkflowNodeMetadataDefaultTypeInternal; +extern WorkflowNodeMetadataDefaultTypeInternal _WorkflowNodeMetadata_default_instance_; +} // namespace event +} // namespace flyteidl +namespace flyteidl { +namespace event { + +// =================================================================== + +class WorkflowExecutionEvent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.WorkflowExecutionEvent) */ { + public: + WorkflowExecutionEvent(); + virtual ~WorkflowExecutionEvent(); + + WorkflowExecutionEvent(const WorkflowExecutionEvent& from); + + inline WorkflowExecutionEvent& operator=(const WorkflowExecutionEvent& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowExecutionEvent(WorkflowExecutionEvent&& from) noexcept + : WorkflowExecutionEvent() { + *this = ::std::move(from); + } + + inline WorkflowExecutionEvent& operator=(WorkflowExecutionEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowExecutionEvent& default_instance(); + + enum OutputResultCase { + kOutputUri = 5, + kError = 6, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowExecutionEvent* internal_default_instance() { + return reinterpret_cast( + &_WorkflowExecutionEvent_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(WorkflowExecutionEvent* other); + friend void swap(WorkflowExecutionEvent& a, WorkflowExecutionEvent& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowExecutionEvent* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowExecutionEvent* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowExecutionEvent& from); + void MergeFrom(const WorkflowExecutionEvent& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowExecutionEvent* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string producer_id = 2; + void clear_producer_id(); + static const int kProducerIdFieldNumber = 2; + const ::std::string& producer_id() const; + void set_producer_id(const ::std::string& value); + #if LANG_CXX11 + void set_producer_id(::std::string&& value); + #endif + void set_producer_id(const char* value); + void set_producer_id(const char* value, size_t size); + ::std::string* mutable_producer_id(); + ::std::string* release_producer_id(); + void set_allocated_producer_id(::std::string* producer_id); + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // .google.protobuf.Timestamp occurred_at = 4; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 4; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .flyteidl.core.WorkflowExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::WorkflowExecution_Phase phase() const; + void set_phase(::flyteidl::core::WorkflowExecution_Phase value); + + // string output_uri = 5; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 5; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 6; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 6; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + private: + void set_has_output_uri(); + void set_has_error(); + + inline bool has_output_result() const; + void clear_output_result(); + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr producer_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + ::google::protobuf::Timestamp* occurred_at_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + } output_result_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fevent_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowExecutionEventImpl(); +}; +// ------------------------------------------------------------------- + +class NodeExecutionEvent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.NodeExecutionEvent) */ { + public: + NodeExecutionEvent(); + virtual ~NodeExecutionEvent(); + + NodeExecutionEvent(const NodeExecutionEvent& from); + + inline NodeExecutionEvent& operator=(const NodeExecutionEvent& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + NodeExecutionEvent(NodeExecutionEvent&& from) noexcept + : NodeExecutionEvent() { + *this = ::std::move(from); + } + + inline NodeExecutionEvent& operator=(NodeExecutionEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const NodeExecutionEvent& default_instance(); + + enum OutputResultCase { + kOutputUri = 6, + kError = 7, + OUTPUT_RESULT_NOT_SET = 0, + }; + + enum TargetMetadataCase { + kWorkflowNodeMetadata = 8, + TARGET_METADATA_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const NodeExecutionEvent* internal_default_instance() { + return reinterpret_cast( + &_NodeExecutionEvent_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(NodeExecutionEvent* other); + friend void swap(NodeExecutionEvent& a, NodeExecutionEvent& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline NodeExecutionEvent* New() const PROTOBUF_FINAL { return New(NULL); } + + NodeExecutionEvent* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const NodeExecutionEvent& from); + void MergeFrom(const NodeExecutionEvent& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(NodeExecutionEvent* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string producer_id = 2; + void clear_producer_id(); + static const int kProducerIdFieldNumber = 2; + const ::std::string& producer_id() const; + void set_producer_id(const ::std::string& value); + #if LANG_CXX11 + void set_producer_id(::std::string&& value); + #endif + void set_producer_id(const char* value); + void set_producer_id(const char* value, size_t size); + ::std::string* mutable_producer_id(); + ::std::string* release_producer_id(); + void set_allocated_producer_id(::std::string* producer_id); + + // string input_uri = 5; + void clear_input_uri(); + static const int kInputUriFieldNumber = 5; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.NodeExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::NodeExecutionIdentifier& id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); + + // .google.protobuf.Timestamp occurred_at = 4; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 4; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + bool has_parent_task_metadata() const; + void clear_parent_task_metadata(); + static const int kParentTaskMetadataFieldNumber = 9; + const ::flyteidl::event::ParentTaskExecutionMetadata& parent_task_metadata() const; + ::flyteidl::event::ParentTaskExecutionMetadata* release_parent_task_metadata(); + ::flyteidl::event::ParentTaskExecutionMetadata* mutable_parent_task_metadata(); + void set_allocated_parent_task_metadata(::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata); + + // .flyteidl.core.NodeExecution.Phase phase = 3; + void clear_phase(); + static const int kPhaseFieldNumber = 3; + ::flyteidl::core::NodeExecution_Phase phase() const; + void set_phase(::flyteidl::core::NodeExecution_Phase value); + + // string output_uri = 6; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 6; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 7; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 7; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + bool has_workflow_node_metadata() const; + void clear_workflow_node_metadata(); + static const int kWorkflowNodeMetadataFieldNumber = 8; + const ::flyteidl::event::WorkflowNodeMetadata& workflow_node_metadata() const; + ::flyteidl::event::WorkflowNodeMetadata* release_workflow_node_metadata(); + ::flyteidl::event::WorkflowNodeMetadata* mutable_workflow_node_metadata(); + void set_allocated_workflow_node_metadata(::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata); + + OutputResultCase output_result_case() const; + TargetMetadataCase target_metadata_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + private: + void set_has_output_uri(); + void set_has_error(); + void set_has_workflow_node_metadata(); + + inline bool has_output_result() const; + void clear_output_result(); + inline void clear_has_output_result(); + + inline bool has_target_metadata() const; + void clear_target_metadata(); + inline void clear_has_target_metadata(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr producer_id_; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::NodeExecutionIdentifier* id_; + ::google::protobuf::Timestamp* occurred_at_; + ::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata_; + int phase_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + } output_result_; + union TargetMetadataUnion { + TargetMetadataUnion() {} + ::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata_; + } target_metadata_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[2]; + + friend struct ::protobuf_flyteidl_2fevent_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsNodeExecutionEventImpl(); +}; +// ------------------------------------------------------------------- + +class WorkflowNodeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.WorkflowNodeMetadata) */ { + public: + WorkflowNodeMetadata(); + virtual ~WorkflowNodeMetadata(); + + WorkflowNodeMetadata(const WorkflowNodeMetadata& from); + + inline WorkflowNodeMetadata& operator=(const WorkflowNodeMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowNodeMetadata(WorkflowNodeMetadata&& from) noexcept + : WorkflowNodeMetadata() { + *this = ::std::move(from); + } + + inline WorkflowNodeMetadata& operator=(WorkflowNodeMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const WorkflowNodeMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowNodeMetadata* internal_default_instance() { + return reinterpret_cast( + &_WorkflowNodeMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(WorkflowNodeMetadata* other); + friend void swap(WorkflowNodeMetadata& a, WorkflowNodeMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowNodeMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + WorkflowNodeMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const WorkflowNodeMetadata& from); + void MergeFrom(const WorkflowNodeMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(WorkflowNodeMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + bool has_execution_id() const; + void clear_execution_id(); + static const int kExecutionIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); + void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fevent_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsWorkflowNodeMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class ParentTaskExecutionMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ParentTaskExecutionMetadata) */ { + public: + ParentTaskExecutionMetadata(); + virtual ~ParentTaskExecutionMetadata(); + + ParentTaskExecutionMetadata(const ParentTaskExecutionMetadata& from); + + inline ParentTaskExecutionMetadata& operator=(const ParentTaskExecutionMetadata& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ParentTaskExecutionMetadata(ParentTaskExecutionMetadata&& from) noexcept + : ParentTaskExecutionMetadata() { + *this = ::std::move(from); + } + + inline ParentTaskExecutionMetadata& operator=(ParentTaskExecutionMetadata&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ParentTaskExecutionMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ParentTaskExecutionMetadata* internal_default_instance() { + return reinterpret_cast( + &_ParentTaskExecutionMetadata_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(ParentTaskExecutionMetadata* other); + friend void swap(ParentTaskExecutionMetadata& a, ParentTaskExecutionMetadata& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ParentTaskExecutionMetadata* New() const PROTOBUF_FINAL { return New(NULL); } + + ParentTaskExecutionMetadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ParentTaskExecutionMetadata& from); + void MergeFrom(const ParentTaskExecutionMetadata& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ParentTaskExecutionMetadata* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.TaskExecutionIdentifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::TaskExecutionIdentifier& id() const; + ::flyteidl::core::TaskExecutionIdentifier* release_id(); + ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); + void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::TaskExecutionIdentifier* id_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fevent_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsParentTaskExecutionMetadataImpl(); +}; +// ------------------------------------------------------------------- + +class TaskExecutionEvent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskExecutionEvent) */ { + public: + TaskExecutionEvent(); + virtual ~TaskExecutionEvent(); + + TaskExecutionEvent(const TaskExecutionEvent& from); + + inline TaskExecutionEvent& operator=(const TaskExecutionEvent& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + TaskExecutionEvent(TaskExecutionEvent&& from) noexcept + : TaskExecutionEvent() { + *this = ::std::move(from); + } + + inline TaskExecutionEvent& operator=(TaskExecutionEvent&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const TaskExecutionEvent& default_instance(); + + enum OutputResultCase { + kOutputUri = 9, + kError = 10, + OUTPUT_RESULT_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const TaskExecutionEvent* internal_default_instance() { + return reinterpret_cast( + &_TaskExecutionEvent_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 4; + + void Swap(TaskExecutionEvent* other); + friend void swap(TaskExecutionEvent& a, TaskExecutionEvent& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline TaskExecutionEvent* New() const PROTOBUF_FINAL { return New(NULL); } + + TaskExecutionEvent* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const TaskExecutionEvent& from); + void MergeFrom(const TaskExecutionEvent& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(TaskExecutionEvent* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.core.TaskLog logs = 6; + int logs_size() const; + void clear_logs(); + static const int kLogsFieldNumber = 6; + const ::flyteidl::core::TaskLog& logs(int index) const; + ::flyteidl::core::TaskLog* mutable_logs(int index); + ::flyteidl::core::TaskLog* add_logs(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* + mutable_logs(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& + logs() const; + + // string producer_id = 5; + void clear_producer_id(); + static const int kProducerIdFieldNumber = 5; + const ::std::string& producer_id() const; + void set_producer_id(const ::std::string& value); + #if LANG_CXX11 + void set_producer_id(::std::string&& value); + #endif + void set_producer_id(const char* value); + void set_producer_id(const char* value, size_t size); + ::std::string* mutable_producer_id(); + ::std::string* release_producer_id(); + void set_allocated_producer_id(::std::string* producer_id); + + // string input_uri = 8; + void clear_input_uri(); + static const int kInputUriFieldNumber = 8; + const ::std::string& input_uri() const; + void set_input_uri(const ::std::string& value); + #if LANG_CXX11 + void set_input_uri(::std::string&& value); + #endif + void set_input_uri(const char* value); + void set_input_uri(const char* value, size_t size); + ::std::string* mutable_input_uri(); + ::std::string* release_input_uri(); + void set_allocated_input_uri(::std::string* input_uri); + + // .flyteidl.core.Identifier task_id = 1; + bool has_task_id() const; + void clear_task_id(); + static const int kTaskIdFieldNumber = 1; + const ::flyteidl::core::Identifier& task_id() const; + ::flyteidl::core::Identifier* release_task_id(); + ::flyteidl::core::Identifier* mutable_task_id(); + void set_allocated_task_id(::flyteidl::core::Identifier* task_id); + + // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + bool has_parent_node_execution_id() const; + void clear_parent_node_execution_id(); + static const int kParentNodeExecutionIdFieldNumber = 2; + const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution_id() const; + ::flyteidl::core::NodeExecutionIdentifier* release_parent_node_execution_id(); + ::flyteidl::core::NodeExecutionIdentifier* mutable_parent_node_execution_id(); + void set_allocated_parent_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id); + + // .google.protobuf.Timestamp occurred_at = 7; + bool has_occurred_at() const; + void clear_occurred_at(); + static const int kOccurredAtFieldNumber = 7; + const ::google::protobuf::Timestamp& occurred_at() const; + ::google::protobuf::Timestamp* release_occurred_at(); + ::google::protobuf::Timestamp* mutable_occurred_at(); + void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); + + // .google.protobuf.Struct custom_info = 11; + bool has_custom_info() const; + void clear_custom_info(); + static const int kCustomInfoFieldNumber = 11; + const ::google::protobuf::Struct& custom_info() const; + ::google::protobuf::Struct* release_custom_info(); + ::google::protobuf::Struct* mutable_custom_info(); + void set_allocated_custom_info(::google::protobuf::Struct* custom_info); + + // uint32 retry_attempt = 3; + void clear_retry_attempt(); + static const int kRetryAttemptFieldNumber = 3; + ::google::protobuf::uint32 retry_attempt() const; + void set_retry_attempt(::google::protobuf::uint32 value); + + // .flyteidl.core.TaskExecution.Phase phase = 4; + void clear_phase(); + static const int kPhaseFieldNumber = 4; + ::flyteidl::core::TaskExecution_Phase phase() const; + void set_phase(::flyteidl::core::TaskExecution_Phase value); + + // uint32 phase_version = 12; + void clear_phase_version(); + static const int kPhaseVersionFieldNumber = 12; + ::google::protobuf::uint32 phase_version() const; + void set_phase_version(::google::protobuf::uint32 value); + + // string output_uri = 9; + private: + bool has_output_uri() const; + public: + void clear_output_uri(); + static const int kOutputUriFieldNumber = 9; + const ::std::string& output_uri() const; + void set_output_uri(const ::std::string& value); + #if LANG_CXX11 + void set_output_uri(::std::string&& value); + #endif + void set_output_uri(const char* value); + void set_output_uri(const char* value, size_t size); + ::std::string* mutable_output_uri(); + ::std::string* release_output_uri(); + void set_allocated_output_uri(::std::string* output_uri); + + // .flyteidl.core.ExecutionError error = 10; + bool has_error() const; + void clear_error(); + static const int kErrorFieldNumber = 10; + const ::flyteidl::core::ExecutionError& error() const; + ::flyteidl::core::ExecutionError* release_error(); + ::flyteidl::core::ExecutionError* mutable_error(); + void set_allocated_error(::flyteidl::core::ExecutionError* error); + + OutputResultCase output_result_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + private: + void set_has_output_uri(); + void set_has_error(); + + inline bool has_output_result() const; + void clear_output_result(); + inline void clear_has_output_result(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; + ::google::protobuf::internal::ArenaStringPtr producer_id_; + ::google::protobuf::internal::ArenaStringPtr input_uri_; + ::flyteidl::core::Identifier* task_id_; + ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id_; + ::google::protobuf::Timestamp* occurred_at_; + ::google::protobuf::Struct* custom_info_; + ::google::protobuf::uint32 retry_attempt_; + int phase_; + ::google::protobuf::uint32 phase_version_; + union OutputResultUnion { + OutputResultUnion() {} + ::google::protobuf::internal::ArenaStringPtr output_uri_; + ::flyteidl::core::ExecutionError* error_; + } output_result_; + mutable int _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::protobuf_flyteidl_2fevent_2fevent_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fevent_2fevent_2eproto::InitDefaultsTaskExecutionEventImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// WorkflowExecutionEvent + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; +inline bool WorkflowExecutionEvent::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionEvent::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionEvent::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionEvent::mutable_execution_id() { + + if (execution_id_ == NULL) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.execution_id) + return execution_id_; +} +inline void WorkflowExecutionEvent::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.execution_id) +} + +// string producer_id = 2; +inline void WorkflowExecutionEvent::clear_producer_id() { + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& WorkflowExecutionEvent::producer_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.producer_id) + return producer_id_.GetNoArena(); +} +inline void WorkflowExecutionEvent::set_producer_id(const ::std::string& value) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +#if LANG_CXX11 +inline void WorkflowExecutionEvent::set_producer_id(::std::string&& value) { + + producer_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +#endif +inline void WorkflowExecutionEvent::set_producer_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +inline void WorkflowExecutionEvent::set_producer_id(const char* value, size_t size) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.WorkflowExecutionEvent.producer_id) +} +inline ::std::string* WorkflowExecutionEvent::mutable_producer_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.producer_id) + return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionEvent::release_producer_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.producer_id) + + return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void WorkflowExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { + if (producer_id != NULL) { + + } else { + + } + producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.producer_id) +} + +// .flyteidl.core.WorkflowExecution.Phase phase = 3; +inline void WorkflowExecutionEvent::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::WorkflowExecution_Phase WorkflowExecutionEvent::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.phase) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); +} +inline void WorkflowExecutionEvent::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.phase) +} + +// .google.protobuf.Timestamp occurred_at = 4; +inline bool WorkflowExecutionEvent::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& WorkflowExecutionEvent::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.occurred_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* WorkflowExecutionEvent::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* WorkflowExecutionEvent::mutable_occurred_at() { + + if (occurred_at_ == NULL) { + occurred_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.occurred_at) + return occurred_at_; +} +inline void WorkflowExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.occurred_at) +} + +// string output_uri = 5; +inline bool WorkflowExecutionEvent::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void WorkflowExecutionEvent::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void WorkflowExecutionEvent::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& WorkflowExecutionEvent::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void WorkflowExecutionEvent::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +#if LANG_CXX11 +inline void WorkflowExecutionEvent::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +#endif +inline void WorkflowExecutionEvent::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +inline void WorkflowExecutionEvent::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.WorkflowExecutionEvent.output_uri) +} +inline ::std::string* WorkflowExecutionEvent::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* WorkflowExecutionEvent::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void WorkflowExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { + if (!has_output_uri()) { + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_output_result(); + if (output_uri != NULL) { + set_has_output_uri(); + output_result_.output_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.output_uri) +} + +// .flyteidl.core.ExecutionError error = 6; +inline bool WorkflowExecutionEvent::has_error() const { + return output_result_case() == kError; +} +inline void WorkflowExecutionEvent::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* WorkflowExecutionEvent::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ExecutionError& WorkflowExecutionEvent::error() const { + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* WorkflowExecutionEvent::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = new ::flyteidl::core::ExecutionError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.error) + return output_result_.error_; +} + +inline bool WorkflowExecutionEvent::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void WorkflowExecutionEvent::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline WorkflowExecutionEvent::OutputResultCase WorkflowExecutionEvent::output_result_case() const { + return WorkflowExecutionEvent::OutputResultCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// NodeExecutionEvent + +// .flyteidl.core.NodeExecutionIdentifier id = 1; +inline bool NodeExecutionEvent::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionEvent::id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionEvent::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionEvent::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.id) + return id_; +} +inline void NodeExecutionEvent::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.id) +} + +// string producer_id = 2; +inline void NodeExecutionEvent::clear_producer_id() { + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::producer_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.producer_id) + return producer_id_.GetNoArena(); +} +inline void NodeExecutionEvent::set_producer_id(const ::std::string& value) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.producer_id) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_producer_id(::std::string&& value) { + + producer_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.producer_id) +} +#endif +inline void NodeExecutionEvent::set_producer_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.producer_id) +} +inline void NodeExecutionEvent::set_producer_id(const char* value, size_t size) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.producer_id) +} +inline ::std::string* NodeExecutionEvent::mutable_producer_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.producer_id) + return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_producer_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.producer_id) + + return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { + if (producer_id != NULL) { + + } else { + + } + producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.producer_id) +} + +// .flyteidl.core.NodeExecution.Phase phase = 3; +inline void NodeExecutionEvent::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::NodeExecution_Phase NodeExecutionEvent::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.phase) + return static_cast< ::flyteidl::core::NodeExecution_Phase >(phase_); +} +inline void NodeExecutionEvent::set_phase(::flyteidl::core::NodeExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.phase) +} + +// .google.protobuf.Timestamp occurred_at = 4; +inline bool NodeExecutionEvent::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& NodeExecutionEvent::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.occurred_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* NodeExecutionEvent::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* NodeExecutionEvent::mutable_occurred_at() { + + if (occurred_at_ == NULL) { + occurred_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.occurred_at) + return occurred_at_; +} +inline void NodeExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.occurred_at) +} + +// string input_uri = 5; +inline void NodeExecutionEvent::clear_input_uri() { + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& NodeExecutionEvent::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.input_uri) + return input_uri_.GetNoArena(); +} +inline void NodeExecutionEvent::set_input_uri(const ::std::string& value) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_input_uri(::std::string&& value) { + + input_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.input_uri) +} +#endif +inline void NodeExecutionEvent::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.input_uri) +} +inline void NodeExecutionEvent::set_input_uri(const char* value, size_t size) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.input_uri) +} +inline ::std::string* NodeExecutionEvent::mutable_input_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.input_uri) + return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.input_uri) + + return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void NodeExecutionEvent::set_allocated_input_uri(::std::string* input_uri) { + if (input_uri != NULL) { + + } else { + + } + input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.input_uri) +} + +// string output_uri = 6; +inline bool NodeExecutionEvent::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void NodeExecutionEvent::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void NodeExecutionEvent::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& NodeExecutionEvent::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void NodeExecutionEvent::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) +} +#if LANG_CXX11 +inline void NodeExecutionEvent::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.output_uri) +} +#endif +inline void NodeExecutionEvent::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.output_uri) +} +inline void NodeExecutionEvent::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.output_uri) +} +inline ::std::string* NodeExecutionEvent::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* NodeExecutionEvent::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void NodeExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { + if (!has_output_uri()) { + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_output_result(); + if (output_uri != NULL) { + set_has_output_uri(); + output_result_.output_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.output_uri) +} + +// .flyteidl.core.ExecutionError error = 7; +inline bool NodeExecutionEvent::has_error() const { + return output_result_case() == kError; +} +inline void NodeExecutionEvent::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* NodeExecutionEvent::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ExecutionError& NodeExecutionEvent::error() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* NodeExecutionEvent::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = new ::flyteidl::core::ExecutionError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.error) + return output_result_.error_; +} + +// .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; +inline bool NodeExecutionEvent::has_workflow_node_metadata() const { + return target_metadata_case() == kWorkflowNodeMetadata; +} +inline void NodeExecutionEvent::set_has_workflow_node_metadata() { + _oneof_case_[1] = kWorkflowNodeMetadata; +} +inline void NodeExecutionEvent::clear_workflow_node_metadata() { + if (has_workflow_node_metadata()) { + delete target_metadata_.workflow_node_metadata_; + clear_has_target_metadata(); + } +} +inline ::flyteidl::event::WorkflowNodeMetadata* NodeExecutionEvent::release_workflow_node_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) + if (has_workflow_node_metadata()) { + clear_has_target_metadata(); + ::flyteidl::event::WorkflowNodeMetadata* temp = target_metadata_.workflow_node_metadata_; + target_metadata_.workflow_node_metadata_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::event::WorkflowNodeMetadata& NodeExecutionEvent::workflow_node_metadata() const { + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) + return has_workflow_node_metadata() + ? *target_metadata_.workflow_node_metadata_ + : *reinterpret_cast< ::flyteidl::event::WorkflowNodeMetadata*>(&::flyteidl::event::_WorkflowNodeMetadata_default_instance_); +} +inline ::flyteidl::event::WorkflowNodeMetadata* NodeExecutionEvent::mutable_workflow_node_metadata() { + if (!has_workflow_node_metadata()) { + clear_target_metadata(); + set_has_workflow_node_metadata(); + target_metadata_.workflow_node_metadata_ = new ::flyteidl::event::WorkflowNodeMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) + return target_metadata_.workflow_node_metadata_; +} + +// .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; +inline bool NodeExecutionEvent::has_parent_task_metadata() const { + return this != internal_default_instance() && parent_task_metadata_ != NULL; +} +inline void NodeExecutionEvent::clear_parent_task_metadata() { + if (GetArenaNoVirtual() == NULL && parent_task_metadata_ != NULL) { + delete parent_task_metadata_; + } + parent_task_metadata_ = NULL; +} +inline const ::flyteidl::event::ParentTaskExecutionMetadata& NodeExecutionEvent::parent_task_metadata() const { + const ::flyteidl::event::ParentTaskExecutionMetadata* p = parent_task_metadata_; + // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.parent_task_metadata) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_); +} +inline ::flyteidl::event::ParentTaskExecutionMetadata* NodeExecutionEvent::release_parent_task_metadata() { + // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.parent_task_metadata) + + ::flyteidl::event::ParentTaskExecutionMetadata* temp = parent_task_metadata_; + parent_task_metadata_ = NULL; + return temp; +} +inline ::flyteidl::event::ParentTaskExecutionMetadata* NodeExecutionEvent::mutable_parent_task_metadata() { + + if (parent_task_metadata_ == NULL) { + parent_task_metadata_ = new ::flyteidl::event::ParentTaskExecutionMetadata; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.parent_task_metadata) + return parent_task_metadata_; +} +inline void NodeExecutionEvent::set_allocated_parent_task_metadata(::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete parent_task_metadata_; + } + if (parent_task_metadata) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + parent_task_metadata = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_task_metadata, submessage_arena); + } + + } else { + + } + parent_task_metadata_ = parent_task_metadata; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.parent_task_metadata) +} + +inline bool NodeExecutionEvent::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void NodeExecutionEvent::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline bool NodeExecutionEvent::has_target_metadata() const { + return target_metadata_case() != TARGET_METADATA_NOT_SET; +} +inline void NodeExecutionEvent::clear_has_target_metadata() { + _oneof_case_[1] = TARGET_METADATA_NOT_SET; +} +inline NodeExecutionEvent::OutputResultCase NodeExecutionEvent::output_result_case() const { + return NodeExecutionEvent::OutputResultCase(_oneof_case_[0]); +} +inline NodeExecutionEvent::TargetMetadataCase NodeExecutionEvent::target_metadata_case() const { + return NodeExecutionEvent::TargetMetadataCase(_oneof_case_[1]); +} +// ------------------------------------------------------------------- + +// WorkflowNodeMetadata + +// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; +inline bool WorkflowNodeMetadata::has_execution_id() const { + return this != internal_default_instance() && execution_id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowNodeMetadata::execution_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowNodeMetadata.execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::release_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowNodeMetadata.execution_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; + execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::mutable_execution_id() { + + if (execution_id_ == NULL) { + execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowNodeMetadata.execution_id) + return execution_id_; +} +inline void WorkflowNodeMetadata::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); + } + if (execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, execution_id, submessage_arena); + } + + } else { + + } + execution_id_ = execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowNodeMetadata.execution_id) +} + +// ------------------------------------------------------------------- + +// ParentTaskExecutionMetadata + +// .flyteidl.core.TaskExecutionIdentifier id = 1; +inline bool ParentTaskExecutionMetadata::has_id() const { + return this != internal_default_instance() && id_ != NULL; +} +inline const ::flyteidl::core::TaskExecutionIdentifier& ParentTaskExecutionMetadata::id() const { + const ::flyteidl::core::TaskExecutionIdentifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.event.ParentTaskExecutionMetadata.id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::TaskExecutionIdentifier* ParentTaskExecutionMetadata::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.ParentTaskExecutionMetadata.id) + + ::flyteidl::core::TaskExecutionIdentifier* temp = id_; + id_ = NULL; + return temp; +} +inline ::flyteidl::core::TaskExecutionIdentifier* ParentTaskExecutionMetadata::mutable_id() { + + if (id_ == NULL) { + id_ = new ::flyteidl::core::TaskExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.ParentTaskExecutionMetadata.id) + return id_; +} +inline void ParentTaskExecutionMetadata::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ParentTaskExecutionMetadata.id) +} + +// ------------------------------------------------------------------- + +// TaskExecutionEvent + +// .flyteidl.core.Identifier task_id = 1; +inline bool TaskExecutionEvent::has_task_id() const { + return this != internal_default_instance() && task_id_ != NULL; +} +inline const ::flyteidl::core::Identifier& TaskExecutionEvent::task_id() const { + const ::flyteidl::core::Identifier* p = task_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.task_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* TaskExecutionEvent::release_task_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.task_id) + + ::flyteidl::core::Identifier* temp = task_id_; + task_id_ = NULL; + return temp; +} +inline ::flyteidl::core::Identifier* TaskExecutionEvent::mutable_task_id() { + + if (task_id_ == NULL) { + task_id_ = new ::flyteidl::core::Identifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.task_id) + return task_id_; +} +inline void TaskExecutionEvent::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_id_); + } + if (task_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + task_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, task_id, submessage_arena); + } + + } else { + + } + task_id_ = task_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.task_id) +} + +// .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; +inline bool TaskExecutionEvent::has_parent_node_execution_id() const { + return this != internal_default_instance() && parent_node_execution_id_ != NULL; +} +inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionEvent::parent_node_execution_id() const { + const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_id_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionEvent::release_parent_node_execution_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) + + ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_id_; + parent_node_execution_id_ = NULL; + return temp; +} +inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionEvent::mutable_parent_node_execution_id() { + + if (parent_node_execution_id_ == NULL) { + parent_node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) + return parent_node_execution_id_; +} +inline void TaskExecutionEvent::set_allocated_parent_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_node_execution_id_); + } + if (parent_node_execution_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + parent_node_execution_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, parent_node_execution_id, submessage_arena); + } + + } else { + + } + parent_node_execution_id_ = parent_node_execution_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) +} + +// uint32 retry_attempt = 3; +inline void TaskExecutionEvent::clear_retry_attempt() { + retry_attempt_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionEvent::retry_attempt() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.retry_attempt) + return retry_attempt_; +} +inline void TaskExecutionEvent::set_retry_attempt(::google::protobuf::uint32 value) { + + retry_attempt_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.retry_attempt) +} + +// .flyteidl.core.TaskExecution.Phase phase = 4; +inline void TaskExecutionEvent::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::TaskExecution_Phase TaskExecutionEvent::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.phase) + return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); +} +inline void TaskExecutionEvent::set_phase(::flyteidl::core::TaskExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.phase) +} + +// string producer_id = 5; +inline void TaskExecutionEvent::clear_producer_id() { + producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEvent::producer_id() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.producer_id) + return producer_id_.GetNoArena(); +} +inline void TaskExecutionEvent::set_producer_id(const ::std::string& value) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.producer_id) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_producer_id(::std::string&& value) { + + producer_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.producer_id) +} +#endif +inline void TaskExecutionEvent::set_producer_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.producer_id) +} +inline void TaskExecutionEvent::set_producer_id(const char* value, size_t size) { + + producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.producer_id) +} +inline ::std::string* TaskExecutionEvent::mutable_producer_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.producer_id) + return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_producer_id() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.producer_id) + + return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { + if (producer_id != NULL) { + + } else { + + } + producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.producer_id) +} + +// repeated .flyteidl.core.TaskLog logs = 6; +inline int TaskExecutionEvent::logs_size() const { + return logs_.size(); +} +inline const ::flyteidl::core::TaskLog& TaskExecutionEvent::logs(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.logs) + return logs_.Get(index); +} +inline ::flyteidl::core::TaskLog* TaskExecutionEvent::mutable_logs(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.logs) + return logs_.Mutable(index); +} +inline ::flyteidl::core::TaskLog* TaskExecutionEvent::add_logs() { + // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionEvent.logs) + return logs_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* +TaskExecutionEvent::mutable_logs() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionEvent.logs) + return &logs_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& +TaskExecutionEvent::logs() const { + // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionEvent.logs) + return logs_; +} + +// .google.protobuf.Timestamp occurred_at = 7; +inline bool TaskExecutionEvent::has_occurred_at() const { + return this != internal_default_instance() && occurred_at_ != NULL; +} +inline const ::google::protobuf::Timestamp& TaskExecutionEvent::occurred_at() const { + const ::google::protobuf::Timestamp* p = occurred_at_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.occurred_at) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Timestamp_default_instance_); +} +inline ::google::protobuf::Timestamp* TaskExecutionEvent::release_occurred_at() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.occurred_at) + + ::google::protobuf::Timestamp* temp = occurred_at_; + occurred_at_ = NULL; + return temp; +} +inline ::google::protobuf::Timestamp* TaskExecutionEvent::mutable_occurred_at() { + + if (occurred_at_ == NULL) { + occurred_at_ = new ::google::protobuf::Timestamp; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.occurred_at) + return occurred_at_; +} +inline void TaskExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); + } + if (occurred_at) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at)->GetArena(); + if (message_arena != submessage_arena) { + occurred_at = ::google::protobuf::internal::GetOwnedMessage( + message_arena, occurred_at, submessage_arena); + } + + } else { + + } + occurred_at_ = occurred_at; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.occurred_at) +} + +// string input_uri = 8; +inline void TaskExecutionEvent::clear_input_uri() { + input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& TaskExecutionEvent::input_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.input_uri) + return input_uri_.GetNoArena(); +} +inline void TaskExecutionEvent::set_input_uri(const ::std::string& value) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_input_uri(::std::string&& value) { + + input_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.input_uri) +} +#endif +inline void TaskExecutionEvent::set_input_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.input_uri) +} +inline void TaskExecutionEvent::set_input_uri(const char* value, size_t size) { + + input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.input_uri) +} +inline ::std::string* TaskExecutionEvent::mutable_input_uri() { + + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.input_uri) + return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_input_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.input_uri) + + return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void TaskExecutionEvent::set_allocated_input_uri(::std::string* input_uri) { + if (input_uri != NULL) { + + } else { + + } + input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.input_uri) +} + +// string output_uri = 9; +inline bool TaskExecutionEvent::has_output_uri() const { + return output_result_case() == kOutputUri; +} +inline void TaskExecutionEvent::set_has_output_uri() { + _oneof_case_[0] = kOutputUri; +} +inline void TaskExecutionEvent::clear_output_uri() { + if (has_output_uri()) { + output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + clear_has_output_result(); + } +} +inline const ::std::string& TaskExecutionEvent::output_uri() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.output_uri) + if (has_output_uri()) { + return output_result_.output_uri_.GetNoArena(); + } + return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); +} +inline void TaskExecutionEvent::set_output_uri(const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) +} +#if LANG_CXX11 +inline void TaskExecutionEvent::set_output_uri(::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.output_uri) +} +#endif +inline void TaskExecutionEvent::set_output_uri(const char* value) { + GOOGLE_DCHECK(value != NULL); + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.output_uri) +} +inline void TaskExecutionEvent::set_output_uri(const char* value, size_t size) { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.output_uri) +} +inline ::std::string* TaskExecutionEvent::mutable_output_uri() { + if (!has_output_uri()) { + clear_output_result(); + set_has_output_uri(); + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.output_uri) + return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* TaskExecutionEvent::release_output_uri() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.output_uri) + if (has_output_uri()) { + clear_has_output_result(); + return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } else { + return NULL; + } +} +inline void TaskExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { + if (!has_output_uri()) { + output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + clear_output_result(); + if (output_uri != NULL) { + set_has_output_uri(); + output_result_.output_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + output_uri); + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.output_uri) +} + +// .flyteidl.core.ExecutionError error = 10; +inline bool TaskExecutionEvent::has_error() const { + return output_result_case() == kError; +} +inline void TaskExecutionEvent::set_has_error() { + _oneof_case_[0] = kError; +} +inline ::flyteidl::core::ExecutionError* TaskExecutionEvent::release_error() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.error) + if (has_error()) { + clear_has_output_result(); + ::flyteidl::core::ExecutionError* temp = output_result_.error_; + output_result_.error_ = NULL; + return temp; + } else { + return NULL; + } +} +inline const ::flyteidl::core::ExecutionError& TaskExecutionEvent::error() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.error) + return has_error() + ? *output_result_.error_ + : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); +} +inline ::flyteidl::core::ExecutionError* TaskExecutionEvent::mutable_error() { + if (!has_error()) { + clear_output_result(); + set_has_error(); + output_result_.error_ = new ::flyteidl::core::ExecutionError; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.error) + return output_result_.error_; +} + +// .google.protobuf.Struct custom_info = 11; +inline bool TaskExecutionEvent::has_custom_info() const { + return this != internal_default_instance() && custom_info_ != NULL; +} +inline const ::google::protobuf::Struct& TaskExecutionEvent::custom_info() const { + const ::google::protobuf::Struct* p = custom_info_; + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.custom_info) + return p != NULL ? *p : *reinterpret_cast( + &::google::protobuf::_Struct_default_instance_); +} +inline ::google::protobuf::Struct* TaskExecutionEvent::release_custom_info() { + // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.custom_info) + + ::google::protobuf::Struct* temp = custom_info_; + custom_info_ = NULL; + return temp; +} +inline ::google::protobuf::Struct* TaskExecutionEvent::mutable_custom_info() { + + if (custom_info_ == NULL) { + custom_info_ = new ::google::protobuf::Struct; + } + // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.custom_info) + return custom_info_; +} +inline void TaskExecutionEvent::set_allocated_custom_info(::google::protobuf::Struct* custom_info) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info_); + } + if (custom_info) { + ::google::protobuf::Arena* submessage_arena = + reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info)->GetArena(); + if (message_arena != submessage_arena) { + custom_info = ::google::protobuf::internal::GetOwnedMessage( + message_arena, custom_info, submessage_arena); + } + + } else { + + } + custom_info_ = custom_info; + // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.custom_info) +} + +// uint32 phase_version = 12; +inline void TaskExecutionEvent::clear_phase_version() { + phase_version_ = 0u; +} +inline ::google::protobuf::uint32 TaskExecutionEvent::phase_version() const { + // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.phase_version) + return phase_version_; +} +inline void TaskExecutionEvent::set_phase_version(::google::protobuf::uint32 value) { + + phase_version_ = value; + // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.phase_version) +} + +inline bool TaskExecutionEvent::has_output_result() const { + return output_result_case() != OUTPUT_RESULT_NOT_SET; +} +inline void TaskExecutionEvent::clear_has_output_result() { + _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; +} +inline TaskExecutionEvent::OutputResultCase TaskExecutionEvent::output_result_case() const { + return TaskExecutionEvent::OutputResultCase(_oneof_case_[0]); +} +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace event +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fevent_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc new file mode 100644 index 0000000000..5cebedf36e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/array_job.proto + +#include "flyteidl/plugins/array_job.pb.h" +#include "flyteidl/plugins/array_job.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h new file mode 100644 index 0000000000..00be172d98 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/array_job.proto +#ifndef GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED + +#include "flyteidl/plugins/array_job.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc new file mode 100644 index 0000000000..b78883d7e5 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +#include "flyteidl/plugins/array_job.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace plugins { +class ArrayJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _ArrayJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto { +void InitDefaultsArrayJobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::plugins::_ArrayJob_default_instance_; + new (ptr) ::flyteidl::plugins::ArrayJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::ArrayJob::InitAsDefaultInstance(); +} + +void InitDefaultsArrayJob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArrayJobImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, parallelism_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, size_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, min_successes_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::ArrayJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_ArrayJob_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/plugins/array_job.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n flyteidl/plugins/array_job.proto\022\020flyt" + "eidl.plugins\"D\n\010ArrayJob\022\023\n\013parallelism\030" + "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\025\n\rmin_successes\030\003 \001" + "(\003B5Z3github.com/lyft/flyteidl/gen/pb-go" + "/flyteidl/pluginsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 185); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/plugins/array_job.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void ArrayJob::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ArrayJob::kParallelismFieldNumber; +const int ArrayJob::kSizeFieldNumber; +const int ArrayJob::kMinSuccessesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +ArrayJob::ArrayJob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::InitDefaultsArrayJob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.ArrayJob) +} +ArrayJob::ArrayJob(const ArrayJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(¶llelism_, &from.parallelism_, + static_cast(reinterpret_cast(&min_successes_) - + reinterpret_cast(¶llelism_)) + sizeof(min_successes_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.ArrayJob) +} + +void ArrayJob::SharedCtor() { + ::memset(¶llelism_, 0, static_cast( + reinterpret_cast(&min_successes_) - + reinterpret_cast(¶llelism_)) + sizeof(min_successes_)); + _cached_size_ = 0; +} + +ArrayJob::~ArrayJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.ArrayJob) + SharedDtor(); +} + +void ArrayJob::SharedDtor() { +} + +void ArrayJob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ArrayJob::descriptor() { + ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const ArrayJob& ArrayJob::default_instance() { + ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::InitDefaultsArrayJob(); + return *internal_default_instance(); +} + +ArrayJob* ArrayJob::New(::google::protobuf::Arena* arena) const { + ArrayJob* n = new ArrayJob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void ArrayJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.ArrayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(¶llelism_, 0, static_cast( + reinterpret_cast(&min_successes_) - + reinterpret_cast(¶llelism_)) + sizeof(min_successes_)); + _internal_metadata_.Clear(); +} + +bool ArrayJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.ArrayJob) + 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)) { + // int64 parallelism = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, ¶llelism_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 size = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &size_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 min_successes = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &min_successes_))); + } 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.plugins.ArrayJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.ArrayJob) + return false; +#undef DO_ +} + +void ArrayJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.ArrayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 parallelism = 1; + if (this->parallelism() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->parallelism(), output); + } + + // int64 size = 2; + if (this->size() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->size(), output); + } + + // int64 min_successes = 3; + if (this->min_successes() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->min_successes(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.ArrayJob) +} + +::google::protobuf::uint8* ArrayJob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.ArrayJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 parallelism = 1; + if (this->parallelism() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->parallelism(), target); + } + + // int64 size = 2; + if (this->size() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->size(), target); + } + + // int64 min_successes = 3; + if (this->min_successes() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->min_successes(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.ArrayJob) + return target; +} + +size_t ArrayJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.ArrayJob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // int64 parallelism = 1; + if (this->parallelism() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->parallelism()); + } + + // int64 size = 2; + if (this->size() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->size()); + } + + // int64 min_successes = 3; + if (this->min_successes() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->min_successes()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ArrayJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.ArrayJob) + GOOGLE_DCHECK_NE(&from, this); + const ArrayJob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.ArrayJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.ArrayJob) + MergeFrom(*source); + } +} + +void ArrayJob::MergeFrom(const ArrayJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.ArrayJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.parallelism() != 0) { + set_parallelism(from.parallelism()); + } + if (from.size() != 0) { + set_size(from.size()); + } + if (from.min_successes() != 0) { + set_min_successes(from.min_successes()); + } +} + +void ArrayJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.ArrayJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ArrayJob::CopyFrom(const ArrayJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.ArrayJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ArrayJob::IsInitialized() const { + return true; +} + +void ArrayJob::Swap(ArrayJob* other) { + if (other == this) return; + InternalSwap(other); +} +void ArrayJob::InternalSwap(ArrayJob* other) { + using std::swap; + swap(parallelism_, other->parallelism_); + swap(size_, other->size_); + swap(min_successes_, other->min_successes_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata ArrayJob::GetMetadata() const { + protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h new file mode 100644 index 0000000000..dae72e9e15 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h @@ -0,0 +1,238 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +#ifndef PROTOBUF_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsArrayJobImpl(); +void InitDefaultsArrayJob(); +inline void InitDefaults() { + InitDefaultsArrayJob(); +} +} // namespace protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto +namespace flyteidl { +namespace plugins { +class ArrayJob; +class ArrayJobDefaultTypeInternal; +extern ArrayJobDefaultTypeInternal _ArrayJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class ArrayJob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.ArrayJob) */ { + public: + ArrayJob(); + virtual ~ArrayJob(); + + ArrayJob(const ArrayJob& from); + + inline ArrayJob& operator=(const ArrayJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + ArrayJob(ArrayJob&& from) noexcept + : ArrayJob() { + *this = ::std::move(from); + } + + inline ArrayJob& operator=(ArrayJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const ArrayJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const ArrayJob* internal_default_instance() { + return reinterpret_cast( + &_ArrayJob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(ArrayJob* other); + friend void swap(ArrayJob& a, ArrayJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline ArrayJob* New() const PROTOBUF_FINAL { return New(NULL); } + + ArrayJob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const ArrayJob& from); + void MergeFrom(const ArrayJob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(ArrayJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // int64 parallelism = 1; + void clear_parallelism(); + static const int kParallelismFieldNumber = 1; + ::google::protobuf::int64 parallelism() const; + void set_parallelism(::google::protobuf::int64 value); + + // int64 size = 2; + void clear_size(); + static const int kSizeFieldNumber = 2; + ::google::protobuf::int64 size() const; + void set_size(::google::protobuf::int64 value); + + // int64 min_successes = 3; + void clear_min_successes(); + static const int kMinSuccessesFieldNumber = 3; + ::google::protobuf::int64 min_successes() const; + void set_min_successes(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 parallelism_; + ::google::protobuf::int64 size_; + ::google::protobuf::int64 min_successes_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2farray_5fjob_2eproto::InitDefaultsArrayJobImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// ArrayJob + +// int64 parallelism = 1; +inline void ArrayJob::clear_parallelism() { + parallelism_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 ArrayJob::parallelism() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.parallelism) + return parallelism_; +} +inline void ArrayJob::set_parallelism(::google::protobuf::int64 value) { + + parallelism_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.parallelism) +} + +// int64 size = 2; +inline void ArrayJob::clear_size() { + size_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 ArrayJob::size() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.size) + return size_; +} +inline void ArrayJob::set_size(::google::protobuf::int64 value) { + + size_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.size) +} + +// int64 min_successes = 3; +inline void ArrayJob::clear_min_successes() { + min_successes_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 ArrayJob::min_successes() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.min_successes) + return min_successes_; +} +inline void ArrayJob::set_min_successes(::google::protobuf::int64 value) { + + min_successes_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.min_successes) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc new file mode 100644 index 0000000000..0fa8fa71f2 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/qubole.proto + +#include "flyteidl/plugins/qubole.pb.h" +#include "flyteidl/plugins/qubole.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h new file mode 100644 index 0000000000..ea77df7186 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/qubole.proto +#ifndef GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED + +#include "flyteidl/plugins/qubole.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc new file mode 100644 index 0000000000..ee794aff61 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc @@ -0,0 +1,1137 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +#include "flyteidl/plugins/qubole.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace plugins { +class HiveQueryDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HiveQuery_default_instance_; +class HiveQueryCollectionDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _HiveQueryCollection_default_instance_; +class QuboleHiveJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _QuboleHiveJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace protobuf_flyteidl_2fplugins_2fqubole_2eproto { +void InitDefaultsHiveQueryImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::plugins::_HiveQuery_default_instance_; + new (ptr) ::flyteidl::plugins::HiveQuery(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::HiveQuery::InitAsDefaultInstance(); +} + +void InitDefaultsHiveQuery() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHiveQueryImpl); +} + +void InitDefaultsHiveQueryCollectionImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQuery(); + { + void* ptr = &::flyteidl::plugins::_HiveQueryCollection_default_instance_; + new (ptr) ::flyteidl::plugins::HiveQueryCollection(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::HiveQueryCollection::InitAsDefaultInstance(); +} + +void InitDefaultsHiveQueryCollection() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsHiveQueryCollectionImpl); +} + +void InitDefaultsQuboleHiveJobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQueryCollection(); + { + void* ptr = &::flyteidl::plugins::_QuboleHiveJob_default_instance_; + new (ptr) ::flyteidl::plugins::QuboleHiveJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::QuboleHiveJob::InitAsDefaultInstance(); +} + +void InitDefaultsQuboleHiveJob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsQuboleHiveJobImpl); +} + +::google::protobuf::Metadata file_level_metadata[3]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, query_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, timeout_sec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, retrycount_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::HiveQueryCollection, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::HiveQueryCollection, queries_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, cluster_label_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, query_collection_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, tags_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::HiveQuery)}, + { 8, -1, sizeof(::flyteidl::plugins::HiveQueryCollection)}, + { 14, -1, sizeof(::flyteidl::plugins::QuboleHiveJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_HiveQuery_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_HiveQueryCollection_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_QuboleHiveJob_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/plugins/qubole.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\035flyteidl/plugins/qubole.proto\022\020flyteid" + "l.plugins\032\031flyteidl/core/tasks.proto\"C\n\t" + "HiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n\013timeout_sec\030" + "\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C\n\023HiveQueryCo" + "llection\022,\n\007queries\030\002 \003(\0132\033.flyteidl.plu" + "gins.HiveQuery\"u\n\rQuboleHiveJob\022\025\n\rclust" + "er_label\030\001 \001(\t\022\?\n\020query_collection\030\002 \001(\013" + "2%.flyteidl.plugins.HiveQueryCollection\022" + "\014\n\004tags\030\003 \003(\tB5Z3github.com/lyft/flyteid" + "l/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 396); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/plugins/qubole.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2ftasks_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fplugins_2fqubole_2eproto +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void HiveQuery::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HiveQuery::kQueryFieldNumber; +const int HiveQuery::kTimeoutSecFieldNumber; +const int HiveQuery::kRetryCountFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HiveQuery::HiveQuery() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQuery(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.HiveQuery) +} +HiveQuery::HiveQuery(const HiveQuery& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.query().size() > 0) { + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); + } + ::memcpy(&timeout_sec_, &from.timeout_sec_, + static_cast(reinterpret_cast(&retrycount_) - + reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HiveQuery) +} + +void HiveQuery::SharedCtor() { + query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&timeout_sec_, 0, static_cast( + reinterpret_cast(&retrycount_) - + reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); + _cached_size_ = 0; +} + +HiveQuery::~HiveQuery() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.HiveQuery) + SharedDtor(); +} + +void HiveQuery::SharedDtor() { + query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void HiveQuery::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HiveQuery::descriptor() { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HiveQuery& HiveQuery::default_instance() { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQuery(); + return *internal_default_instance(); +} + +HiveQuery* HiveQuery::New(::google::protobuf::Arena* arena) const { + HiveQuery* n = new HiveQuery; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void HiveQuery::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HiveQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&timeout_sec_, 0, static_cast( + reinterpret_cast(&retrycount_) - + reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); + _internal_metadata_.Clear(); +} + +bool HiveQuery::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.HiveQuery) + 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 query = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_query())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), static_cast(this->query().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.HiveQuery.query")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 timeout_sec = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &timeout_sec_))); + } else { + goto handle_unusual; + } + break; + } + + // uint32 retryCount = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &retrycount_))); + } 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.plugins.HiveQuery) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HiveQuery) + return false; +#undef DO_ +} + +void HiveQuery::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HiveQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), static_cast(this->query().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HiveQuery.query"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->query(), output); + } + + // uint32 timeout_sec = 2; + if (this->timeout_sec() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->timeout_sec(), output); + } + + // uint32 retryCount = 3; + if (this->retrycount() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retrycount(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HiveQuery) +} + +::google::protobuf::uint8* HiveQuery::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HiveQuery) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string query = 1; + if (this->query().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->query().data(), static_cast(this->query().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.HiveQuery.query"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->query(), target); + } + + // uint32 timeout_sec = 2; + if (this->timeout_sec() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->timeout_sec(), target); + } + + // uint32 retryCount = 3; + if (this->retrycount() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retrycount(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.HiveQuery) + return target; +} + +size_t HiveQuery::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HiveQuery) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string query = 1; + if (this->query().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->query()); + } + + // uint32 timeout_sec = 2; + if (this->timeout_sec() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->timeout_sec()); + } + + // uint32 retryCount = 3; + if (this->retrycount() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->retrycount()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HiveQuery::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HiveQuery) + GOOGLE_DCHECK_NE(&from, this); + const HiveQuery* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HiveQuery) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HiveQuery) + MergeFrom(*source); + } +} + +void HiveQuery::MergeFrom(const HiveQuery& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HiveQuery) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.query().size() > 0) { + + query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); + } + if (from.timeout_sec() != 0) { + set_timeout_sec(from.timeout_sec()); + } + if (from.retrycount() != 0) { + set_retrycount(from.retrycount()); + } +} + +void HiveQuery::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HiveQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HiveQuery::CopyFrom(const HiveQuery& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HiveQuery) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HiveQuery::IsInitialized() const { + return true; +} + +void HiveQuery::Swap(HiveQuery* other) { + if (other == this) return; + InternalSwap(other); +} +void HiveQuery::InternalSwap(HiveQuery* other) { + using std::swap; + query_.Swap(&other->query_); + swap(timeout_sec_, other->timeout_sec_); + swap(retrycount_, other->retrycount_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata HiveQuery::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fqubole_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void HiveQueryCollection::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int HiveQueryCollection::kQueriesFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +HiveQueryCollection::HiveQueryCollection() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQueryCollection(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.HiveQueryCollection) +} +HiveQueryCollection::HiveQueryCollection(const HiveQueryCollection& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + queries_(from.queries_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HiveQueryCollection) +} + +void HiveQueryCollection::SharedCtor() { + _cached_size_ = 0; +} + +HiveQueryCollection::~HiveQueryCollection() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.HiveQueryCollection) + SharedDtor(); +} + +void HiveQueryCollection::SharedDtor() { +} + +void HiveQueryCollection::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HiveQueryCollection::descriptor() { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const HiveQueryCollection& HiveQueryCollection::default_instance() { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQueryCollection(); + return *internal_default_instance(); +} + +HiveQueryCollection* HiveQueryCollection::New(::google::protobuf::Arena* arena) const { + HiveQueryCollection* n = new HiveQueryCollection; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void HiveQueryCollection::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + queries_.Clear(); + _internal_metadata_.Clear(); +} + +bool HiveQueryCollection::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.HiveQueryCollection) + 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.plugins.HiveQuery queries = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_queries())); + } 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.plugins.HiveQueryCollection) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HiveQueryCollection) + return false; +#undef DO_ +} + +void HiveQueryCollection::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + for (unsigned int i = 0, + n = static_cast(this->queries_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->queries(static_cast(i)), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HiveQueryCollection) +} + +::google::protobuf::uint8* HiveQueryCollection::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + for (unsigned int i = 0, + n = static_cast(this->queries_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, this->queries(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.HiveQueryCollection) + return target; +} + +size_t HiveQueryCollection::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HiveQueryCollection) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .flyteidl.plugins.HiveQuery queries = 2; + { + unsigned int count = static_cast(this->queries_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->queries(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HiveQueryCollection::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HiveQueryCollection) + GOOGLE_DCHECK_NE(&from, this); + const HiveQueryCollection* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HiveQueryCollection) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HiveQueryCollection) + MergeFrom(*source); + } +} + +void HiveQueryCollection::MergeFrom(const HiveQueryCollection& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HiveQueryCollection) + 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_); +} + +void HiveQueryCollection::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HiveQueryCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HiveQueryCollection::CopyFrom(const HiveQueryCollection& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HiveQueryCollection) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HiveQueryCollection::IsInitialized() const { + return true; +} + +void HiveQueryCollection::Swap(HiveQueryCollection* other) { + if (other == this) return; + InternalSwap(other); +} +void HiveQueryCollection::InternalSwap(HiveQueryCollection* other) { + using std::swap; + queries_.InternalSwap(&other->queries_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata HiveQueryCollection::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fqubole_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void QuboleHiveJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_QuboleHiveJob_default_instance_._instance.get_mutable()->query_collection_ = const_cast< ::flyteidl::plugins::HiveQueryCollection*>( + ::flyteidl::plugins::HiveQueryCollection::internal_default_instance()); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int QuboleHiveJob::kClusterLabelFieldNumber; +const int QuboleHiveJob::kQueryCollectionFieldNumber; +const int QuboleHiveJob::kTagsFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +QuboleHiveJob::QuboleHiveJob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsQuboleHiveJob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.QuboleHiveJob) +} +QuboleHiveJob::QuboleHiveJob(const QuboleHiveJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + tags_(from.tags_), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + cluster_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.cluster_label().size() > 0) { + cluster_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_label_); + } + if (from.has_query_collection()) { + query_collection_ = new ::flyteidl::plugins::HiveQueryCollection(*from.query_collection_); + } else { + query_collection_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.QuboleHiveJob) +} + +void QuboleHiveJob::SharedCtor() { + cluster_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + query_collection_ = NULL; + _cached_size_ = 0; +} + +QuboleHiveJob::~QuboleHiveJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.QuboleHiveJob) + SharedDtor(); +} + +void QuboleHiveJob::SharedDtor() { + cluster_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete query_collection_; +} + +void QuboleHiveJob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* QuboleHiveJob::descriptor() { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const QuboleHiveJob& QuboleHiveJob::default_instance() { + ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsQuboleHiveJob(); + return *internal_default_instance(); +} + +QuboleHiveJob* QuboleHiveJob::New(::google::protobuf::Arena* arena) const { + QuboleHiveJob* n = new QuboleHiveJob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void QuboleHiveJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + tags_.Clear(); + cluster_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && query_collection_ != NULL) { + delete query_collection_; + } + query_collection_ = NULL; + _internal_metadata_.Clear(); +} + +bool QuboleHiveJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.QuboleHiveJob) + 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 cluster_label = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_cluster_label())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_label().data(), static_cast(this->cluster_label().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.QuboleHiveJob.cluster_label")); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_query_collection())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string tags = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->add_tags())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(this->tags_size() - 1).data(), + static_cast(this->tags(this->tags_size() - 1).length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.QuboleHiveJob.tags")); + } 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.plugins.QuboleHiveJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.QuboleHiveJob) + return false; +#undef DO_ +} + +void QuboleHiveJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster_label = 1; + if (this->cluster_label().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_label().data(), static_cast(this->cluster_label().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.cluster_label"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->cluster_label(), output); + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2; + if (this->has_query_collection()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, *this->query_collection_, output); + } + + // repeated string tags = 3; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.tags"); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->tags(i), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.QuboleHiveJob) +} + +::google::protobuf::uint8* QuboleHiveJob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string cluster_label = 1; + if (this->cluster_label().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->cluster_label().data(), static_cast(this->cluster_label().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.cluster_label"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->cluster_label(), target); + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2; + if (this->has_query_collection()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, *this->query_collection_, deterministic, target); + } + + // repeated string tags = 3; + for (int i = 0, n = this->tags_size(); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->tags(i).data(), static_cast(this->tags(i).length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.QuboleHiveJob.tags"); + target = ::google::protobuf::internal::WireFormatLite:: + WriteStringToArray(3, this->tags(i), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.QuboleHiveJob) + return target; +} + +size_t QuboleHiveJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.QuboleHiveJob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated string tags = 3; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->tags_size()); + for (int i = 0, n = this->tags_size(); i < n; i++) { + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + this->tags(i)); + } + + // string cluster_label = 1; + if (this->cluster_label().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->cluster_label()); + } + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2; + if (this->has_query_collection()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->query_collection_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void QuboleHiveJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.QuboleHiveJob) + GOOGLE_DCHECK_NE(&from, this); + const QuboleHiveJob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.QuboleHiveJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.QuboleHiveJob) + MergeFrom(*source); + } +} + +void QuboleHiveJob::MergeFrom(const QuboleHiveJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.QuboleHiveJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + tags_.MergeFrom(from.tags_); + if (from.cluster_label().size() > 0) { + + cluster_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_label_); + } + if (from.has_query_collection()) { + mutable_query_collection()->::flyteidl::plugins::HiveQueryCollection::MergeFrom(from.query_collection()); + } +} + +void QuboleHiveJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.QuboleHiveJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void QuboleHiveJob::CopyFrom(const QuboleHiveJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.QuboleHiveJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool QuboleHiveJob::IsInitialized() const { + return true; +} + +void QuboleHiveJob::Swap(QuboleHiveJob* other) { + if (other == this) return; + InternalSwap(other); +} +void QuboleHiveJob::InternalSwap(QuboleHiveJob* other) { + using std::swap; + tags_.InternalSwap(&other->tags_); + cluster_label_.Swap(&other->cluster_label_); + swap(query_collection_, other->query_collection_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata QuboleHiveJob::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fqubole_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h new file mode 100644 index 0000000000..4f1c11ac8c --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h @@ -0,0 +1,757 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +#ifndef PROTOBUF_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/tasks.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fplugins_2fqubole_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[3]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsHiveQueryImpl(); +void InitDefaultsHiveQuery(); +void InitDefaultsHiveQueryCollectionImpl(); +void InitDefaultsHiveQueryCollection(); +void InitDefaultsQuboleHiveJobImpl(); +void InitDefaultsQuboleHiveJob(); +inline void InitDefaults() { + InitDefaultsHiveQuery(); + InitDefaultsHiveQueryCollection(); + InitDefaultsQuboleHiveJob(); +} +} // namespace protobuf_flyteidl_2fplugins_2fqubole_2eproto +namespace flyteidl { +namespace plugins { +class HiveQuery; +class HiveQueryDefaultTypeInternal; +extern HiveQueryDefaultTypeInternal _HiveQuery_default_instance_; +class HiveQueryCollection; +class HiveQueryCollectionDefaultTypeInternal; +extern HiveQueryCollectionDefaultTypeInternal _HiveQueryCollection_default_instance_; +class QuboleHiveJob; +class QuboleHiveJobDefaultTypeInternal; +extern QuboleHiveJobDefaultTypeInternal _QuboleHiveJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class HiveQuery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HiveQuery) */ { + public: + HiveQuery(); + virtual ~HiveQuery(); + + HiveQuery(const HiveQuery& from); + + inline HiveQuery& operator=(const HiveQuery& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HiveQuery(HiveQuery&& from) noexcept + : HiveQuery() { + *this = ::std::move(from); + } + + inline HiveQuery& operator=(HiveQuery&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const HiveQuery& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HiveQuery* internal_default_instance() { + return reinterpret_cast( + &_HiveQuery_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(HiveQuery* other); + friend void swap(HiveQuery& a, HiveQuery& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HiveQuery* New() const PROTOBUF_FINAL { return New(NULL); } + + HiveQuery* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const HiveQuery& from); + void MergeFrom(const HiveQuery& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(HiveQuery* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string query = 1; + void clear_query(); + static const int kQueryFieldNumber = 1; + const ::std::string& query() const; + void set_query(const ::std::string& value); + #if LANG_CXX11 + void set_query(::std::string&& value); + #endif + void set_query(const char* value); + void set_query(const char* value, size_t size); + ::std::string* mutable_query(); + ::std::string* release_query(); + void set_allocated_query(::std::string* query); + + // uint32 timeout_sec = 2; + void clear_timeout_sec(); + static const int kTimeoutSecFieldNumber = 2; + ::google::protobuf::uint32 timeout_sec() const; + void set_timeout_sec(::google::protobuf::uint32 value); + + // uint32 retryCount = 3; + void clear_retrycount(); + static const int kRetryCountFieldNumber = 3; + ::google::protobuf::uint32 retrycount() const; + void set_retrycount(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr query_; + ::google::protobuf::uint32 timeout_sec_; + ::google::protobuf::uint32 retrycount_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQueryImpl(); +}; +// ------------------------------------------------------------------- + +class HiveQueryCollection : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HiveQueryCollection) */ { + public: + HiveQueryCollection(); + virtual ~HiveQueryCollection(); + + HiveQueryCollection(const HiveQueryCollection& from); + + inline HiveQueryCollection& operator=(const HiveQueryCollection& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + HiveQueryCollection(HiveQueryCollection&& from) noexcept + : HiveQueryCollection() { + *this = ::std::move(from); + } + + inline HiveQueryCollection& operator=(HiveQueryCollection&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const HiveQueryCollection& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const HiveQueryCollection* internal_default_instance() { + return reinterpret_cast( + &_HiveQueryCollection_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 1; + + void Swap(HiveQueryCollection* other); + friend void swap(HiveQueryCollection& a, HiveQueryCollection& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline HiveQueryCollection* New() const PROTOBUF_FINAL { return New(NULL); } + + HiveQueryCollection* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const HiveQueryCollection& from); + void MergeFrom(const HiveQueryCollection& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(HiveQueryCollection* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .flyteidl.plugins.HiveQuery queries = 2; + int queries_size() const; + void clear_queries(); + static const int kQueriesFieldNumber = 2; + const ::flyteidl::plugins::HiveQuery& queries(int index) const; + ::flyteidl::plugins::HiveQuery* mutable_queries(int index); + ::flyteidl::plugins::HiveQuery* add_queries(); + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >* + mutable_queries(); + const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >& + queries() const; + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery > queries_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsHiveQueryCollectionImpl(); +}; +// ------------------------------------------------------------------- + +class QuboleHiveJob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.QuboleHiveJob) */ { + public: + QuboleHiveJob(); + virtual ~QuboleHiveJob(); + + QuboleHiveJob(const QuboleHiveJob& from); + + inline QuboleHiveJob& operator=(const QuboleHiveJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + QuboleHiveJob(QuboleHiveJob&& from) noexcept + : QuboleHiveJob() { + *this = ::std::move(from); + } + + inline QuboleHiveJob& operator=(QuboleHiveJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const QuboleHiveJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const QuboleHiveJob* internal_default_instance() { + return reinterpret_cast( + &_QuboleHiveJob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 2; + + void Swap(QuboleHiveJob* other); + friend void swap(QuboleHiveJob& a, QuboleHiveJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline QuboleHiveJob* New() const PROTOBUF_FINAL { return New(NULL); } + + QuboleHiveJob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const QuboleHiveJob& from); + void MergeFrom(const QuboleHiveJob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(QuboleHiveJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated string tags = 3; + int tags_size() const; + void clear_tags(); + static const int kTagsFieldNumber = 3; + const ::std::string& tags(int index) const; + ::std::string* mutable_tags(int index); + void set_tags(int index, const ::std::string& value); + #if LANG_CXX11 + void set_tags(int index, ::std::string&& value); + #endif + void set_tags(int index, const char* value); + void set_tags(int index, const char* value, size_t size); + ::std::string* add_tags(); + void add_tags(const ::std::string& value); + #if LANG_CXX11 + void add_tags(::std::string&& value); + #endif + void add_tags(const char* value); + void add_tags(const char* value, size_t size); + const ::google::protobuf::RepeatedPtrField< ::std::string>& tags() const; + ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_tags(); + + // string cluster_label = 1; + void clear_cluster_label(); + static const int kClusterLabelFieldNumber = 1; + const ::std::string& cluster_label() const; + void set_cluster_label(const ::std::string& value); + #if LANG_CXX11 + void set_cluster_label(::std::string&& value); + #endif + void set_cluster_label(const char* value); + void set_cluster_label(const char* value, size_t size); + ::std::string* mutable_cluster_label(); + ::std::string* release_cluster_label(); + void set_allocated_cluster_label(::std::string* cluster_label); + + // .flyteidl.plugins.HiveQueryCollection query_collection = 2; + bool has_query_collection() const; + void clear_query_collection(); + static const int kQueryCollectionFieldNumber = 2; + const ::flyteidl::plugins::HiveQueryCollection& query_collection() const; + ::flyteidl::plugins::HiveQueryCollection* release_query_collection(); + ::flyteidl::plugins::HiveQueryCollection* mutable_query_collection(); + void set_allocated_query_collection(::flyteidl::plugins::HiveQueryCollection* query_collection); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::std::string> tags_; + ::google::protobuf::internal::ArenaStringPtr cluster_label_; + ::flyteidl::plugins::HiveQueryCollection* query_collection_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fqubole_2eproto::InitDefaultsQuboleHiveJobImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// HiveQuery + +// string query = 1; +inline void HiveQuery::clear_query() { + query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& HiveQuery::query() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.query) + return query_.GetNoArena(); +} +inline void HiveQuery::set_query(const ::std::string& value) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.query) +} +#if LANG_CXX11 +inline void HiveQuery::set_query(::std::string&& value) { + + query_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.HiveQuery.query) +} +#endif +inline void HiveQuery::set_query(const char* value) { + GOOGLE_DCHECK(value != NULL); + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.HiveQuery.query) +} +inline void HiveQuery::set_query(const char* value, size_t size) { + + query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.HiveQuery.query) +} +inline ::std::string* HiveQuery::mutable_query() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.HiveQuery.query) + return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* HiveQuery::release_query() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.HiveQuery.query) + + return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void HiveQuery::set_allocated_query(::std::string* query) { + if (query != NULL) { + + } else { + + } + query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.HiveQuery.query) +} + +// uint32 timeout_sec = 2; +inline void HiveQuery::clear_timeout_sec() { + timeout_sec_ = 0u; +} +inline ::google::protobuf::uint32 HiveQuery::timeout_sec() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.timeout_sec) + return timeout_sec_; +} +inline void HiveQuery::set_timeout_sec(::google::protobuf::uint32 value) { + + timeout_sec_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.timeout_sec) +} + +// uint32 retryCount = 3; +inline void HiveQuery::clear_retrycount() { + retrycount_ = 0u; +} +inline ::google::protobuf::uint32 HiveQuery::retrycount() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.retryCount) + return retrycount_; +} +inline void HiveQuery::set_retrycount(::google::protobuf::uint32 value) { + + retrycount_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.retryCount) +} + +// ------------------------------------------------------------------- + +// HiveQueryCollection + +// repeated .flyteidl.plugins.HiveQuery queries = 2; +inline int HiveQueryCollection::queries_size() const { + return queries_.size(); +} +inline void HiveQueryCollection::clear_queries() { + queries_.Clear(); +} +inline const ::flyteidl::plugins::HiveQuery& HiveQueryCollection::queries(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQueryCollection.queries) + return queries_.Get(index); +} +inline ::flyteidl::plugins::HiveQuery* HiveQueryCollection::mutable_queries(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.HiveQueryCollection.queries) + return queries_.Mutable(index); +} +inline ::flyteidl::plugins::HiveQuery* HiveQueryCollection::add_queries() { + // @@protoc_insertion_point(field_add:flyteidl.plugins.HiveQueryCollection.queries) + return queries_.Add(); +} +inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >* +HiveQueryCollection::mutable_queries() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.HiveQueryCollection.queries) + return &queries_; +} +inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >& +HiveQueryCollection::queries() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.HiveQueryCollection.queries) + return queries_; +} + +// ------------------------------------------------------------------- + +// QuboleHiveJob + +// string cluster_label = 1; +inline void QuboleHiveJob::clear_cluster_label() { + cluster_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& QuboleHiveJob::cluster_label() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.cluster_label) + return cluster_label_.GetNoArena(); +} +inline void QuboleHiveJob::set_cluster_label(const ::std::string& value) { + + cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +#if LANG_CXX11 +inline void QuboleHiveJob::set_cluster_label(::std::string&& value) { + + cluster_label_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +#endif +inline void QuboleHiveJob::set_cluster_label(const char* value) { + GOOGLE_DCHECK(value != NULL); + + cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +inline void QuboleHiveJob::set_cluster_label(const char* value, size_t size) { + + cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.QuboleHiveJob.cluster_label) +} +inline ::std::string* QuboleHiveJob::mutable_cluster_label() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.cluster_label) + return cluster_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* QuboleHiveJob::release_cluster_label() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.cluster_label) + + return cluster_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void QuboleHiveJob::set_allocated_cluster_label(::std::string* cluster_label) { + if (cluster_label != NULL) { + + } else { + + } + cluster_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_label); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.cluster_label) +} + +// .flyteidl.plugins.HiveQueryCollection query_collection = 2; +inline bool QuboleHiveJob::has_query_collection() const { + return this != internal_default_instance() && query_collection_ != NULL; +} +inline void QuboleHiveJob::clear_query_collection() { + if (GetArenaNoVirtual() == NULL && query_collection_ != NULL) { + delete query_collection_; + } + query_collection_ = NULL; +} +inline const ::flyteidl::plugins::HiveQueryCollection& QuboleHiveJob::query_collection() const { + const ::flyteidl::plugins::HiveQueryCollection* p = query_collection_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.query_collection) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::plugins::_HiveQueryCollection_default_instance_); +} +inline ::flyteidl::plugins::HiveQueryCollection* QuboleHiveJob::release_query_collection() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.query_collection) + + ::flyteidl::plugins::HiveQueryCollection* temp = query_collection_; + query_collection_ = NULL; + return temp; +} +inline ::flyteidl::plugins::HiveQueryCollection* QuboleHiveJob::mutable_query_collection() { + + if (query_collection_ == NULL) { + query_collection_ = new ::flyteidl::plugins::HiveQueryCollection; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.query_collection) + return query_collection_; +} +inline void QuboleHiveJob::set_allocated_query_collection(::flyteidl::plugins::HiveQueryCollection* query_collection) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete query_collection_; + } + if (query_collection) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + query_collection = ::google::protobuf::internal::GetOwnedMessage( + message_arena, query_collection, submessage_arena); + } + + } else { + + } + query_collection_ = query_collection; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.query_collection) +} + +// repeated string tags = 3; +inline int QuboleHiveJob::tags_size() const { + return tags_.size(); +} +inline void QuboleHiveJob::clear_tags() { + tags_.Clear(); +} +inline const ::std::string& QuboleHiveJob::tags(int index) const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.tags) + return tags_.Get(index); +} +inline ::std::string* QuboleHiveJob::mutable_tags(int index) { + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.tags) + return tags_.Mutable(index); +} +inline void QuboleHiveJob::set_tags(int index, const ::std::string& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.tags) + tags_.Mutable(index)->assign(value); +} +#if LANG_CXX11 +inline void QuboleHiveJob::set_tags(int index, ::std::string&& value) { + // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.tags) + tags_.Mutable(index)->assign(std::move(value)); +} +#endif +inline void QuboleHiveJob::set_tags(int index, const char* value) { + GOOGLE_DCHECK(value != NULL); + tags_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.QuboleHiveJob.tags) +} +inline void QuboleHiveJob::set_tags(int index, const char* value, size_t size) { + tags_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.QuboleHiveJob.tags) +} +inline ::std::string* QuboleHiveJob::add_tags() { + // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.QuboleHiveJob.tags) + return tags_.Add(); +} +inline void QuboleHiveJob::add_tags(const ::std::string& value) { + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add:flyteidl.plugins.QuboleHiveJob.tags) +} +#if LANG_CXX11 +inline void QuboleHiveJob::add_tags(::std::string&& value) { + tags_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:flyteidl.plugins.QuboleHiveJob.tags) +} +#endif +inline void QuboleHiveJob::add_tags(const char* value) { + GOOGLE_DCHECK(value != NULL); + tags_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:flyteidl.plugins.QuboleHiveJob.tags) +} +inline void QuboleHiveJob::add_tags(const char* value, size_t size) { + tags_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.QuboleHiveJob.tags) +} +inline const ::google::protobuf::RepeatedPtrField< ::std::string>& +QuboleHiveJob::tags() const { + // @@protoc_insertion_point(field_list:flyteidl.plugins.QuboleHiveJob.tags) + return tags_; +} +inline ::google::protobuf::RepeatedPtrField< ::std::string>* +QuboleHiveJob::mutable_tags() { + // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.QuboleHiveJob.tags) + return &tags_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.cc new file mode 100644 index 0000000000..c01243ceaa --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sidecar.proto + +#include "flyteidl/plugins/sidecar.pb.h" +#include "flyteidl/plugins/sidecar.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.h new file mode 100644 index 0000000000..be5e20ff9b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/sidecar.proto +#ifndef GRPC_flyteidl_2fplugins_2fsidecar_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fsidecar_2eproto__INCLUDED + +#include "flyteidl/plugins/sidecar.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fsidecar_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.cc new file mode 100644 index 0000000000..1416c53e54 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.cc @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sidecar.proto + +#include "flyteidl/plugins/sidecar.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace plugins { +class SidecarJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SidecarJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace protobuf_flyteidl_2fplugins_2fsidecar_2eproto { +void InitDefaultsSidecarJobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_k8s_2eio_2fapi_2fcore_2fv1_2fgenerated_2eproto::InitDefaultsPodSpec(); + { + void* ptr = &::flyteidl::plugins::_SidecarJob_default_instance_; + new (ptr) ::flyteidl::plugins::SidecarJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::SidecarJob::InitAsDefaultInstance(); +} + +void InitDefaultsSidecarJob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSidecarJobImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SidecarJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SidecarJob, pod_spec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SidecarJob, primary_container_name_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::SidecarJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_SidecarJob_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/plugins/sidecar.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\036flyteidl/plugins/sidecar.proto\022\020flytei" + "dl.plugins\032\"k8s.io/api/core/v1/generated" + ".proto\"[\n\nSidecarJob\022-\n\010pod_spec\030\001 \001(\0132\033" + ".k8s.io.api.core.v1.PodSpec\022\036\n\026primary_c" + "ontainer_name\030\002 \001(\tB5Z3github.com/lyft/f" + "lyteidl/gen/pb-go/flyteidl/pluginsb\006prot" + "o3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 242); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/plugins/sidecar.proto", &protobuf_RegisterTypes); + ::protobuf_k8s_2eio_2fapi_2fcore_2fv1_2fgenerated_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fplugins_2fsidecar_2eproto +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void SidecarJob::InitAsDefaultInstance() { + ::flyteidl::plugins::_SidecarJob_default_instance_._instance.get_mutable()->pod_spec_ = const_cast< ::k8s::io::api::core::v1::PodSpec*>( + ::k8s::io::api::core::v1::PodSpec::internal_default_instance()); +} +void SidecarJob::clear_pod_spec() { + if (GetArenaNoVirtual() == NULL && pod_spec_ != NULL) { + delete pod_spec_; + } + pod_spec_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SidecarJob::kPodSpecFieldNumber; +const int SidecarJob::kPrimaryContainerNameFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SidecarJob::SidecarJob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::InitDefaultsSidecarJob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.SidecarJob) +} +SidecarJob::SidecarJob(const SidecarJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + primary_container_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.primary_container_name().size() > 0) { + primary_container_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_container_name_); + } + if (from.has_pod_spec()) { + pod_spec_ = new ::k8s::io::api::core::v1::PodSpec(*from.pod_spec_); + } else { + pod_spec_ = NULL; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SidecarJob) +} + +void SidecarJob::SharedCtor() { + primary_container_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + pod_spec_ = NULL; + _cached_size_ = 0; +} + +SidecarJob::~SidecarJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.SidecarJob) + SharedDtor(); +} + +void SidecarJob::SharedDtor() { + primary_container_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete pod_spec_; +} + +void SidecarJob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SidecarJob::descriptor() { + ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SidecarJob& SidecarJob::default_instance() { + ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::InitDefaultsSidecarJob(); + return *internal_default_instance(); +} + +SidecarJob* SidecarJob::New(::google::protobuf::Arena* arena) const { + SidecarJob* n = new SidecarJob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SidecarJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SidecarJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + primary_container_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && pod_spec_ != NULL) { + delete pod_spec_; + } + pod_spec_ = NULL; + _internal_metadata_.Clear(); +} + +bool SidecarJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.SidecarJob) + 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)) { + // .k8s.io.api.core.v1.PodSpec pod_spec = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_pod_spec())); + } else { + goto handle_unusual; + } + break; + } + + // string primary_container_name = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_primary_container_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->primary_container_name().data(), static_cast(this->primary_container_name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SidecarJob.primary_container_name")); + } 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.plugins.SidecarJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SidecarJob) + return false; +#undef DO_ +} + +void SidecarJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SidecarJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .k8s.io.api.core.v1.PodSpec pod_spec = 1; + if (this->has_pod_spec()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->pod_spec_, output); + } + + // string primary_container_name = 2; + if (this->primary_container_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->primary_container_name().data(), static_cast(this->primary_container_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SidecarJob.primary_container_name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->primary_container_name(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SidecarJob) +} + +::google::protobuf::uint8* SidecarJob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SidecarJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .k8s.io.api.core.v1.PodSpec pod_spec = 1; + if (this->has_pod_spec()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->pod_spec_, deterministic, target); + } + + // string primary_container_name = 2; + if (this->primary_container_name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->primary_container_name().data(), static_cast(this->primary_container_name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SidecarJob.primary_container_name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->primary_container_name(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.SidecarJob) + return target; +} + +size_t SidecarJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SidecarJob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string primary_container_name = 2; + if (this->primary_container_name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->primary_container_name()); + } + + // .k8s.io.api.core.v1.PodSpec pod_spec = 1; + if (this->has_pod_spec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->pod_spec_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SidecarJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SidecarJob) + GOOGLE_DCHECK_NE(&from, this); + const SidecarJob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SidecarJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SidecarJob) + MergeFrom(*source); + } +} + +void SidecarJob::MergeFrom(const SidecarJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SidecarJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.primary_container_name().size() > 0) { + + primary_container_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_container_name_); + } + if (from.has_pod_spec()) { + mutable_pod_spec()->::k8s::io::api::core::v1::PodSpec::MergeFrom(from.pod_spec()); + } +} + +void SidecarJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SidecarJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SidecarJob::CopyFrom(const SidecarJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SidecarJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SidecarJob::IsInitialized() const { + return true; +} + +void SidecarJob::Swap(SidecarJob* other) { + if (other == this) return; + InternalSwap(other); +} +void SidecarJob::InternalSwap(SidecarJob* other) { + using std::swap; + primary_container_name_.Swap(&other->primary_container_name_); + swap(pod_spec_, other->pod_spec_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SidecarJob::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fsidecar_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.h new file mode 100644 index 0000000000..4f6be12c9f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/sidecar.pb.h @@ -0,0 +1,298 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sidecar.proto + +#ifndef PROTOBUF_flyteidl_2fplugins_2fsidecar_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fplugins_2fsidecar_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "k8s.io/api/core/v1/generated.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fplugins_2fsidecar_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsSidecarJobImpl(); +void InitDefaultsSidecarJob(); +inline void InitDefaults() { + InitDefaultsSidecarJob(); +} +} // namespace protobuf_flyteidl_2fplugins_2fsidecar_2eproto +namespace flyteidl { +namespace plugins { +class SidecarJob; +class SidecarJobDefaultTypeInternal; +extern SidecarJobDefaultTypeInternal _SidecarJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class SidecarJob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SidecarJob) */ { + public: + SidecarJob(); + virtual ~SidecarJob(); + + SidecarJob(const SidecarJob& from); + + inline SidecarJob& operator=(const SidecarJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SidecarJob(SidecarJob&& from) noexcept + : SidecarJob() { + *this = ::std::move(from); + } + + inline SidecarJob& operator=(SidecarJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SidecarJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SidecarJob* internal_default_instance() { + return reinterpret_cast( + &_SidecarJob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(SidecarJob* other); + friend void swap(SidecarJob& a, SidecarJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SidecarJob* New() const PROTOBUF_FINAL { return New(NULL); } + + SidecarJob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SidecarJob& from); + void MergeFrom(const SidecarJob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SidecarJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string primary_container_name = 2; + void clear_primary_container_name(); + static const int kPrimaryContainerNameFieldNumber = 2; + const ::std::string& primary_container_name() const; + void set_primary_container_name(const ::std::string& value); + #if LANG_CXX11 + void set_primary_container_name(::std::string&& value); + #endif + void set_primary_container_name(const char* value); + void set_primary_container_name(const char* value, size_t size); + ::std::string* mutable_primary_container_name(); + ::std::string* release_primary_container_name(); + void set_allocated_primary_container_name(::std::string* primary_container_name); + + // .k8s.io.api.core.v1.PodSpec pod_spec = 1; + bool has_pod_spec() const; + void clear_pod_spec(); + static const int kPodSpecFieldNumber = 1; + const ::k8s::io::api::core::v1::PodSpec& pod_spec() const; + ::k8s::io::api::core::v1::PodSpec* release_pod_spec(); + ::k8s::io::api::core::v1::PodSpec* mutable_pod_spec(); + void set_allocated_pod_spec(::k8s::io::api::core::v1::PodSpec* pod_spec); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr primary_container_name_; + ::k8s::io::api::core::v1::PodSpec* pod_spec_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fsidecar_2eproto::InitDefaultsSidecarJobImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SidecarJob + +// .k8s.io.api.core.v1.PodSpec pod_spec = 1; +inline bool SidecarJob::has_pod_spec() const { + return this != internal_default_instance() && pod_spec_ != NULL; +} +inline const ::k8s::io::api::core::v1::PodSpec& SidecarJob::pod_spec() const { + const ::k8s::io::api::core::v1::PodSpec* p = pod_spec_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.SidecarJob.pod_spec) + return p != NULL ? *p : *reinterpret_cast( + &::k8s::io::api::core::v1::_PodSpec_default_instance_); +} +inline ::k8s::io::api::core::v1::PodSpec* SidecarJob::release_pod_spec() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SidecarJob.pod_spec) + + ::k8s::io::api::core::v1::PodSpec* temp = pod_spec_; + pod_spec_ = NULL; + return temp; +} +inline ::k8s::io::api::core::v1::PodSpec* SidecarJob::mutable_pod_spec() { + + if (pod_spec_ == NULL) { + pod_spec_ = new ::k8s::io::api::core::v1::PodSpec; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SidecarJob.pod_spec) + return pod_spec_; +} +inline void SidecarJob::set_allocated_pod_spec(::k8s::io::api::core::v1::PodSpec* pod_spec) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(pod_spec_); + } + if (pod_spec) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + pod_spec = ::google::protobuf::internal::GetOwnedMessage( + message_arena, pod_spec, submessage_arena); + } + + } else { + + } + pod_spec_ = pod_spec; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SidecarJob.pod_spec) +} + +// string primary_container_name = 2; +inline void SidecarJob::clear_primary_container_name() { + primary_container_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SidecarJob::primary_container_name() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SidecarJob.primary_container_name) + return primary_container_name_.GetNoArena(); +} +inline void SidecarJob::set_primary_container_name(const ::std::string& value) { + + primary_container_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SidecarJob.primary_container_name) +} +#if LANG_CXX11 +inline void SidecarJob::set_primary_container_name(::std::string&& value) { + + primary_container_name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SidecarJob.primary_container_name) +} +#endif +inline void SidecarJob::set_primary_container_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + primary_container_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SidecarJob.primary_container_name) +} +inline void SidecarJob::set_primary_container_name(const char* value, size_t size) { + + primary_container_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SidecarJob.primary_container_name) +} +inline ::std::string* SidecarJob::mutable_primary_container_name() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SidecarJob.primary_container_name) + return primary_container_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SidecarJob::release_primary_container_name() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SidecarJob.primary_container_name) + + return primary_container_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SidecarJob::set_allocated_primary_container_name(::std::string* primary_container_name) { + if (primary_container_name != NULL) { + + } else { + + } + primary_container_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), primary_container_name); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SidecarJob.primary_container_name) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fplugins_2fsidecar_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc new file mode 100644 index 0000000000..7747963e98 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/spark.proto + +#include "flyteidl/plugins/spark.pb.h" +#include "flyteidl/plugins/spark.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h new file mode 100644 index 0000000000..71821043cf --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/spark.proto +#ifndef GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED + +#include "flyteidl/plugins/spark.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc new file mode 100644 index 0000000000..766fdc78d3 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc @@ -0,0 +1,1221 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +#include "flyteidl/plugins/spark.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace plugins { +class SparkApplicationDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SparkApplication_default_instance_; +class SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SparkJob_SparkConfEntry_DoNotUse_default_instance_; +class SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SparkJob_HadoopConfEntry_DoNotUse_default_instance_; +class SparkJobDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _SparkJob_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace protobuf_flyteidl_2fplugins_2fspark_2eproto { +void InitDefaultsSparkApplicationImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::plugins::_SparkApplication_default_instance_; + new (ptr) ::flyteidl::plugins::SparkApplication(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::SparkApplication::InitAsDefaultInstance(); +} + +void InitDefaultsSparkApplication() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSparkApplicationImpl); +} + +void InitDefaultsSparkJob_SparkConfEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::plugins::_SparkJob_SparkConfEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse(); + } + ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsSparkJob_SparkConfEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSparkJob_SparkConfEntry_DoNotUseImpl); +} + +void InitDefaultsSparkJob_HadoopConfEntry_DoNotUseImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + { + void* ptr = &::flyteidl::plugins::_SparkJob_HadoopConfEntry_DoNotUse_default_instance_; + new (ptr) ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse(); + } + ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse::InitAsDefaultInstance(); +} + +void InitDefaultsSparkJob_HadoopConfEntry_DoNotUse() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSparkJob_HadoopConfEntry_DoNotUseImpl); +} + +void InitDefaultsSparkJobImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkJob_SparkConfEntry_DoNotUse(); + protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkJob_HadoopConfEntry_DoNotUse(); + { + void* ptr = &::flyteidl::plugins::_SparkJob_default_instance_; + new (ptr) ::flyteidl::plugins::SparkJob(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::SparkJob::InitAsDefaultInstance(); +} + +void InitDefaultsSparkJob() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsSparkJobImpl); +} + +::google::protobuf::Metadata file_level_metadata[4]; +const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkApplication, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, value_), + 0, + 1, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, _has_bits_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, key_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, applicationtype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, mainapplicationfile_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, mainclass_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, sparkconf_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, hadoopconf_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::SparkJob, executorpath_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::SparkApplication)}, + { 5, 12, sizeof(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse)}, + { 14, 21, sizeof(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse)}, + { 23, -1, sizeof(::flyteidl::plugins::SparkJob)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_SparkApplication_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_SparkJob_SparkConfEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_SparkJob_HadoopConfEntry_DoNotUse_default_instance_), + reinterpret_cast(&::flyteidl::plugins::_SparkJob_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/plugins/spark.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, file_level_enum_descriptors, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\034flyteidl/plugins/spark.proto\022\020flyteidl" + ".plugins\"B\n\020SparkApplication\".\n\004Type\022\n\n\006" + "PYTHON\020\000\022\010\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\365\002\n" + "\010SparkJob\022@\n\017applicationType\030\001 \001(\0162\'.fly" + "teidl.plugins.SparkApplication.Type\022\033\n\023m" + "ainApplicationFile\030\002 \001(\t\022\021\n\tmainClass\030\003 " + "\001(\t\022<\n\tsparkConf\030\004 \003(\0132).flyteidl.plugin" + "s.SparkJob.SparkConfEntry\022>\n\nhadoopConf\030" + "\005 \003(\0132*.flyteidl.plugins.SparkJob.Hadoop" + "ConfEntry\022\024\n\014executorPath\030\006 \001(\t\0320\n\016Spark" + "ConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + "\001\0321\n\017HadoopConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001B5Z3github.com/lyft/flyteidl" + "/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 555); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/plugins/spark.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fplugins_2fspark_2eproto +namespace flyteidl { +namespace plugins { +const ::google::protobuf::EnumDescriptor* SparkApplication_Type_descriptor() { + protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_enum_descriptors[0]; +} +bool SparkApplication_Type_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const SparkApplication_Type SparkApplication::PYTHON; +const SparkApplication_Type SparkApplication::JAVA; +const SparkApplication_Type SparkApplication::SCALA; +const SparkApplication_Type SparkApplication::R; +const SparkApplication_Type SparkApplication::Type_MIN; +const SparkApplication_Type SparkApplication::Type_MAX; +const int SparkApplication::Type_ARRAYSIZE; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +// =================================================================== + +void SparkApplication::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SparkApplication::SparkApplication() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkApplication(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.SparkApplication) +} +SparkApplication::SparkApplication(const SparkApplication& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SparkApplication) +} + +void SparkApplication::SharedCtor() { + _cached_size_ = 0; +} + +SparkApplication::~SparkApplication() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.SparkApplication) + SharedDtor(); +} + +void SparkApplication::SharedDtor() { +} + +void SparkApplication::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SparkApplication::descriptor() { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SparkApplication& SparkApplication::default_instance() { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkApplication(); + return *internal_default_instance(); +} + +SparkApplication* SparkApplication::New(::google::protobuf::Arena* arena) const { + SparkApplication* n = new SparkApplication; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SparkApplication::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SparkApplication) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _internal_metadata_.Clear(); +} + +bool SparkApplication::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.SparkApplication) + for (;;) { + ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.plugins.SparkApplication) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SparkApplication) + return false; +#undef DO_ +} + +void SparkApplication::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SparkApplication) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SparkApplication) +} + +::google::protobuf::uint8* SparkApplication::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SparkApplication) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.SparkApplication) + return target; +} + +size_t SparkApplication::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SparkApplication) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SparkApplication::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SparkApplication) + GOOGLE_DCHECK_NE(&from, this); + const SparkApplication* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SparkApplication) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SparkApplication) + MergeFrom(*source); + } +} + +void SparkApplication::MergeFrom(const SparkApplication& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SparkApplication) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + +} + +void SparkApplication::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SparkApplication) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SparkApplication::CopyFrom(const SparkApplication& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SparkApplication) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SparkApplication::IsInitialized() const { + return true; +} + +void SparkApplication::Swap(SparkApplication* other) { + if (other == this) return; + InternalSwap(other); +} +void SparkApplication::InternalSwap(SparkApplication* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SparkApplication::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +SparkJob_SparkConfEntry_DoNotUse::SparkJob_SparkConfEntry_DoNotUse() {} +SparkJob_SparkConfEntry_DoNotUse::SparkJob_SparkConfEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void SparkJob_SparkConfEntry_DoNotUse::MergeFrom(const SparkJob_SparkConfEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata SparkJob_SparkConfEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_metadata[1]; +} +void SparkJob_SparkConfEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +SparkJob_HadoopConfEntry_DoNotUse::SparkJob_HadoopConfEntry_DoNotUse() {} +SparkJob_HadoopConfEntry_DoNotUse::SparkJob_HadoopConfEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} +void SparkJob_HadoopConfEntry_DoNotUse::MergeFrom(const SparkJob_HadoopConfEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::google::protobuf::Metadata SparkJob_HadoopConfEntry_DoNotUse::GetMetadata() const { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_metadata[2]; +} +void SparkJob_HadoopConfEntry_DoNotUse::MergeFrom( + const ::google::protobuf::Message& other) { + ::google::protobuf::Message::MergeFrom(other); +} + + +// =================================================================== + +void SparkJob::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int SparkJob::kApplicationTypeFieldNumber; +const int SparkJob::kMainApplicationFileFieldNumber; +const int SparkJob::kMainClassFieldNumber; +const int SparkJob::kSparkConfFieldNumber; +const int SparkJob::kHadoopConfFieldNumber; +const int SparkJob::kExecutorPathFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +SparkJob::SparkJob() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkJob(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.SparkJob) +} +SparkJob::SparkJob(const SparkJob& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + sparkconf_.MergeFrom(from.sparkconf_); + hadoopconf_.MergeFrom(from.hadoopconf_); + mainapplicationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.mainapplicationfile().size() > 0) { + mainapplicationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainapplicationfile_); + } + mainclass_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.mainclass().size() > 0) { + mainclass_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainclass_); + } + executorpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.executorpath().size() > 0) { + executorpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.executorpath_); + } + applicationtype_ = from.applicationtype_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SparkJob) +} + +void SparkJob::SharedCtor() { + mainapplicationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mainclass_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + executorpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + applicationtype_ = 0; + _cached_size_ = 0; +} + +SparkJob::~SparkJob() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.SparkJob) + SharedDtor(); +} + +void SparkJob::SharedDtor() { + mainapplicationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mainclass_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + executorpath_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void SparkJob::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SparkJob::descriptor() { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const SparkJob& SparkJob::default_instance() { + ::protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkJob(); + return *internal_default_instance(); +} + +SparkJob* SparkJob::New(::google::protobuf::Arena* arena) const { + SparkJob* n = new SparkJob; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void SparkJob::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SparkJob) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + sparkconf_.Clear(); + hadoopconf_.Clear(); + mainapplicationfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + mainclass_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + executorpath_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + applicationtype_ = 0; + _internal_metadata_.Clear(); +} + +bool SparkJob::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.SparkJob) + 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)) { + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_applicationtype(static_cast< ::flyteidl::plugins::SparkApplication_Type >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string mainApplicationFile = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mainapplicationfile())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.mainApplicationFile")); + } else { + goto handle_unusual; + } + break; + } + + // string mainClass = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_mainclass())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainclass().data(), static_cast(this->mainclass().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.mainClass")); + } else { + goto handle_unusual; + } + break; + } + + // map sparkConf = 4; + case 4: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { + SparkJob_SparkConfEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + SparkJob_SparkConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&sparkconf_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // map hadoopConf = 5; + case 5: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + SparkJob_HadoopConfEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< + SparkJob_HadoopConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 >, + ::google::protobuf::Map< ::std::string, ::std::string > > parser(&hadoopconf_); + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, &parser)); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.key().data(), static_cast(parser.key().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key")); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + parser.value().data(), static_cast(parser.value().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value")); + } else { + goto handle_unusual; + } + break; + } + + // string executorPath = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_executorpath())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->executorpath().data(), static_cast(this->executorpath().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.SparkJob.executorPath")); + } 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.plugins.SparkJob) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SparkJob) + return false; +#undef DO_ +} + +void SparkJob::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SparkJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + if (this->applicationtype() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->applicationtype(), output); + } + + // string mainApplicationFile = 2; + if (this->mainapplicationfile().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainApplicationFile"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->mainapplicationfile(), output); + } + + // string mainClass = 3; + if (this->mainclass().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainclass().data(), static_cast(this->mainclass().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainClass"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->mainclass(), output); + } + + // map sparkConf = 4; + if (!this->sparkconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->sparkconf().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->sparkconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(sparkconf_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it) { + entry.reset(sparkconf_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + // map hadoopConf = 5; + if (!this->hadoopconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value"); + } + }; + + if (output->IsSerializationDeterministic() && + this->hadoopconf().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->hadoopconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(hadoopconf_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *entry, output); + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it) { + entry.reset(hadoopconf_.NewEntryWrapper( + it->first, it->second)); + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, *entry, output); + Utf8Check::Check(&*it); + } + } + } + + // string executorPath = 6; + if (this->executorpath().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->executorpath().data(), static_cast(this->executorpath().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.executorPath"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 6, this->executorpath(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SparkJob) +} + +::google::protobuf::uint8* SparkJob::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SparkJob) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + if (this->applicationtype() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->applicationtype(), target); + } + + // string mainApplicationFile = 2; + if (this->mainapplicationfile().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainApplicationFile"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->mainapplicationfile(), target); + } + + // string mainClass = 3; + if (this->mainclass().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->mainclass().data(), static_cast(this->mainclass().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.mainClass"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->mainclass(), target); + } + + // map sparkConf = 4; + if (!this->sparkconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.SparkConfEntry.value"); + } + }; + + if (deterministic && + this->sparkconf().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->sparkconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(sparkconf_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it) { + entry.reset(sparkconf_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 4, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + // map hadoopConf = 5; + if (!this->hadoopconf().empty()) { + typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer + ConstPtr; + typedef ConstPtr SortItem; + typedef ::google::protobuf::internal::CompareByDerefFirst Less; + struct Utf8Check { + static void Check(ConstPtr p) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->first.data(), static_cast(p->first.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.key"); + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + p->second.data(), static_cast(p->second.length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.HadoopConfEntry.value"); + } + }; + + if (deterministic && + this->hadoopconf().size() > 1) { + ::google::protobuf::scoped_array items( + new SortItem[this->hadoopconf().size()]); + typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; + size_type n = 0; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it, ++n) { + items[static_cast(n)] = SortItem(&*it); + } + ::std::sort(&items[0], &items[static_cast(n)], Less()); + ::google::protobuf::scoped_ptr entry; + for (size_type i = 0; i < n; i++) { + entry.reset(hadoopconf_.NewEntryWrapper( + items[static_cast(i)]->first, items[static_cast(i)]->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 5, *entry, deterministic, target); +; + Utf8Check::Check(items[static_cast(i)]); + } + } else { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it) { + entry.reset(hadoopconf_.NewEntryWrapper( + it->first, it->second)); + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageNoVirtualToArray( + 5, *entry, deterministic, target); +; + Utf8Check::Check(&*it); + } + } + } + + // string executorPath = 6; + if (this->executorpath().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->executorpath().data(), static_cast(this->executorpath().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.SparkJob.executorPath"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->executorpath(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.SparkJob) + return target; +} + +size_t SparkJob::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SparkJob) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // map sparkConf = 4; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->sparkconf_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->sparkconf().begin(); + it != this->sparkconf().end(); ++it) { + entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // map hadoopConf = 5; + total_size += 1 * + ::google::protobuf::internal::FromIntSize(this->hadoopconf_size()); + { + ::google::protobuf::scoped_ptr entry; + for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator + it = this->hadoopconf().begin(); + it != this->hadoopconf().end(); ++it) { + entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); + total_size += ::google::protobuf::internal::WireFormatLite:: + MessageSizeNoVirtual(*entry); + } + } + + // string mainApplicationFile = 2; + if (this->mainapplicationfile().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mainapplicationfile()); + } + + // string mainClass = 3; + if (this->mainclass().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->mainclass()); + } + + // string executorPath = 6; + if (this->executorpath().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->executorpath()); + } + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + if (this->applicationtype() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->applicationtype()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SparkJob::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SparkJob) + GOOGLE_DCHECK_NE(&from, this); + const SparkJob* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SparkJob) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SparkJob) + MergeFrom(*source); + } +} + +void SparkJob::MergeFrom(const SparkJob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SparkJob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + sparkconf_.MergeFrom(from.sparkconf_); + hadoopconf_.MergeFrom(from.hadoopconf_); + if (from.mainapplicationfile().size() > 0) { + + mainapplicationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainapplicationfile_); + } + if (from.mainclass().size() > 0) { + + mainclass_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainclass_); + } + if (from.executorpath().size() > 0) { + + executorpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.executorpath_); + } + if (from.applicationtype() != 0) { + set_applicationtype(from.applicationtype()); + } +} + +void SparkJob::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SparkJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SparkJob::CopyFrom(const SparkJob& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SparkJob) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SparkJob::IsInitialized() const { + return true; +} + +void SparkJob::Swap(SparkJob* other) { + if (other == this) return; + InternalSwap(other); +} +void SparkJob::InternalSwap(SparkJob* other) { + using std::swap; + sparkconf_.Swap(&other->sparkconf_); + hadoopconf_.Swap(&other->hadoopconf_); + mainapplicationfile_.Swap(&other->mainapplicationfile_); + mainclass_.Swap(&other->mainclass_); + executorpath_.Swap(&other->executorpath_); + swap(applicationtype_, other->applicationtype_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata SparkJob::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fspark_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fspark_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h new file mode 100644 index 0000000000..43ea3b586b --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h @@ -0,0 +1,702 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +#ifndef PROTOBUF_flyteidl_2fplugins_2fspark_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fplugins_2fspark_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fplugins_2fspark_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[4]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsSparkApplicationImpl(); +void InitDefaultsSparkApplication(); +void InitDefaultsSparkJob_SparkConfEntry_DoNotUseImpl(); +void InitDefaultsSparkJob_SparkConfEntry_DoNotUse(); +void InitDefaultsSparkJob_HadoopConfEntry_DoNotUseImpl(); +void InitDefaultsSparkJob_HadoopConfEntry_DoNotUse(); +void InitDefaultsSparkJobImpl(); +void InitDefaultsSparkJob(); +inline void InitDefaults() { + InitDefaultsSparkApplication(); + InitDefaultsSparkJob_SparkConfEntry_DoNotUse(); + InitDefaultsSparkJob_HadoopConfEntry_DoNotUse(); + InitDefaultsSparkJob(); +} +} // namespace protobuf_flyteidl_2fplugins_2fspark_2eproto +namespace flyteidl { +namespace plugins { +class SparkApplication; +class SparkApplicationDefaultTypeInternal; +extern SparkApplicationDefaultTypeInternal _SparkApplication_default_instance_; +class SparkJob; +class SparkJobDefaultTypeInternal; +extern SparkJobDefaultTypeInternal _SparkJob_default_instance_; +class SparkJob_HadoopConfEntry_DoNotUse; +class SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal; +extern SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal _SparkJob_HadoopConfEntry_DoNotUse_default_instance_; +class SparkJob_SparkConfEntry_DoNotUse; +class SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal; +extern SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal _SparkJob_SparkConfEntry_DoNotUse_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace flyteidl { +namespace plugins { + +enum SparkApplication_Type { + SparkApplication_Type_PYTHON = 0, + SparkApplication_Type_JAVA = 1, + SparkApplication_Type_SCALA = 2, + SparkApplication_Type_R = 3, + SparkApplication_Type_SparkApplication_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, + SparkApplication_Type_SparkApplication_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max +}; +bool SparkApplication_Type_IsValid(int value); +const SparkApplication_Type SparkApplication_Type_Type_MIN = SparkApplication_Type_PYTHON; +const SparkApplication_Type SparkApplication_Type_Type_MAX = SparkApplication_Type_R; +const int SparkApplication_Type_Type_ARRAYSIZE = SparkApplication_Type_Type_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SparkApplication_Type_descriptor(); +inline const ::std::string& SparkApplication_Type_Name(SparkApplication_Type value) { + return ::google::protobuf::internal::NameOfEnum( + SparkApplication_Type_descriptor(), value); +} +inline bool SparkApplication_Type_Parse( + const ::std::string& name, SparkApplication_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SparkApplication_Type_descriptor(), name, value); +} +// =================================================================== + +class SparkApplication : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SparkApplication) */ { + public: + SparkApplication(); + virtual ~SparkApplication(); + + SparkApplication(const SparkApplication& from); + + inline SparkApplication& operator=(const SparkApplication& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SparkApplication(SparkApplication&& from) noexcept + : SparkApplication() { + *this = ::std::move(from); + } + + inline SparkApplication& operator=(SparkApplication&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SparkApplication& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SparkApplication* internal_default_instance() { + return reinterpret_cast( + &_SparkApplication_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(SparkApplication* other); + friend void swap(SparkApplication& a, SparkApplication& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SparkApplication* New() const PROTOBUF_FINAL { return New(NULL); } + + SparkApplication* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SparkApplication& from); + void MergeFrom(const SparkApplication& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SparkApplication* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + typedef SparkApplication_Type Type; + static const Type PYTHON = + SparkApplication_Type_PYTHON; + static const Type JAVA = + SparkApplication_Type_JAVA; + static const Type SCALA = + SparkApplication_Type_SCALA; + static const Type R = + SparkApplication_Type_R; + static inline bool Type_IsValid(int value) { + return SparkApplication_Type_IsValid(value); + } + static const Type Type_MIN = + SparkApplication_Type_Type_MIN; + static const Type Type_MAX = + SparkApplication_Type_Type_MAX; + static const int Type_ARRAYSIZE = + SparkApplication_Type_Type_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + Type_descriptor() { + return SparkApplication_Type_descriptor(); + } + static inline const ::std::string& Type_Name(Type value) { + return SparkApplication_Type_Name(value); + } + static inline bool Type_Parse(const ::std::string& name, + Type* value) { + return SparkApplication_Type_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fspark_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkApplicationImpl(); +}; +// ------------------------------------------------------------------- + +class SparkJob_SparkConfEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + SparkJob_SparkConfEntry_DoNotUse(); + SparkJob_SparkConfEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const SparkJob_SparkConfEntry_DoNotUse& other); + static const SparkJob_SparkConfEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SparkJob_SparkConfEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class SparkJob_HadoopConfEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { +public: + typedef ::google::protobuf::internal::MapEntry SuperType; + SparkJob_HadoopConfEntry_DoNotUse(); + SparkJob_HadoopConfEntry_DoNotUse(::google::protobuf::Arena* arena); + void MergeFrom(const SparkJob_HadoopConfEntry_DoNotUse& other); + static const SparkJob_HadoopConfEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SparkJob_HadoopConfEntry_DoNotUse_default_instance_); } + void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const; +}; + +// ------------------------------------------------------------------- + +class SparkJob : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SparkJob) */ { + public: + SparkJob(); + virtual ~SparkJob(); + + SparkJob(const SparkJob& from); + + inline SparkJob& operator=(const SparkJob& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + SparkJob(SparkJob&& from) noexcept + : SparkJob() { + *this = ::std::move(from); + } + + inline SparkJob& operator=(SparkJob&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const SparkJob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const SparkJob* internal_default_instance() { + return reinterpret_cast( + &_SparkJob_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 3; + + void Swap(SparkJob* other); + friend void swap(SparkJob& a, SparkJob& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline SparkJob* New() const PROTOBUF_FINAL { return New(NULL); } + + SparkJob* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const SparkJob& from); + void MergeFrom(const SparkJob& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(SparkJob* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + + // accessors ------------------------------------------------------- + + // map sparkConf = 4; + int sparkconf_size() const; + void clear_sparkconf(); + static const int kSparkConfFieldNumber = 4; + const ::google::protobuf::Map< ::std::string, ::std::string >& + sparkconf() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_sparkconf(); + + // map hadoopConf = 5; + int hadoopconf_size() const; + void clear_hadoopconf(); + static const int kHadoopConfFieldNumber = 5; + const ::google::protobuf::Map< ::std::string, ::std::string >& + hadoopconf() const; + ::google::protobuf::Map< ::std::string, ::std::string >* + mutable_hadoopconf(); + + // string mainApplicationFile = 2; + void clear_mainapplicationfile(); + static const int kMainApplicationFileFieldNumber = 2; + const ::std::string& mainapplicationfile() const; + void set_mainapplicationfile(const ::std::string& value); + #if LANG_CXX11 + void set_mainapplicationfile(::std::string&& value); + #endif + void set_mainapplicationfile(const char* value); + void set_mainapplicationfile(const char* value, size_t size); + ::std::string* mutable_mainapplicationfile(); + ::std::string* release_mainapplicationfile(); + void set_allocated_mainapplicationfile(::std::string* mainapplicationfile); + + // string mainClass = 3; + void clear_mainclass(); + static const int kMainClassFieldNumber = 3; + const ::std::string& mainclass() const; + void set_mainclass(const ::std::string& value); + #if LANG_CXX11 + void set_mainclass(::std::string&& value); + #endif + void set_mainclass(const char* value); + void set_mainclass(const char* value, size_t size); + ::std::string* mutable_mainclass(); + ::std::string* release_mainclass(); + void set_allocated_mainclass(::std::string* mainclass); + + // string executorPath = 6; + void clear_executorpath(); + static const int kExecutorPathFieldNumber = 6; + const ::std::string& executorpath() const; + void set_executorpath(const ::std::string& value); + #if LANG_CXX11 + void set_executorpath(::std::string&& value); + #endif + void set_executorpath(const char* value); + void set_executorpath(const char* value, size_t size); + ::std::string* mutable_executorpath(); + ::std::string* release_executorpath(); + void set_allocated_executorpath(::std::string* executorpath); + + // .flyteidl.plugins.SparkApplication.Type applicationType = 1; + void clear_applicationtype(); + static const int kApplicationTypeFieldNumber = 1; + ::flyteidl::plugins::SparkApplication_Type applicationtype() const; + void set_applicationtype(::flyteidl::plugins::SparkApplication_Type value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::MapField< + SparkJob_SparkConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > sparkconf_; + ::google::protobuf::internal::MapField< + SparkJob_HadoopConfEntry_DoNotUse, + ::std::string, ::std::string, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + ::google::protobuf::internal::WireFormatLite::TYPE_STRING, + 0 > hadoopconf_; + ::google::protobuf::internal::ArenaStringPtr mainapplicationfile_; + ::google::protobuf::internal::ArenaStringPtr mainclass_; + ::google::protobuf::internal::ArenaStringPtr executorpath_; + int applicationtype_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fspark_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fspark_2eproto::InitDefaultsSparkJobImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// SparkApplication + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// SparkJob + +// .flyteidl.plugins.SparkApplication.Type applicationType = 1; +inline void SparkJob::clear_applicationtype() { + applicationtype_ = 0; +} +inline ::flyteidl::plugins::SparkApplication_Type SparkJob::applicationtype() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.applicationType) + return static_cast< ::flyteidl::plugins::SparkApplication_Type >(applicationtype_); +} +inline void SparkJob::set_applicationtype(::flyteidl::plugins::SparkApplication_Type value) { + + applicationtype_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.applicationType) +} + +// string mainApplicationFile = 2; +inline void SparkJob::clear_mainapplicationfile() { + mainapplicationfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::mainapplicationfile() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.mainApplicationFile) + return mainapplicationfile_.GetNoArena(); +} +inline void SparkJob::set_mainapplicationfile(const ::std::string& value) { + + mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.mainApplicationFile) +} +#if LANG_CXX11 +inline void SparkJob::set_mainapplicationfile(::std::string&& value) { + + mainapplicationfile_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.mainApplicationFile) +} +#endif +inline void SparkJob::set_mainapplicationfile(const char* value) { + GOOGLE_DCHECK(value != NULL); + + mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.mainApplicationFile) +} +inline void SparkJob::set_mainapplicationfile(const char* value, size_t size) { + + mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.mainApplicationFile) +} +inline ::std::string* SparkJob::mutable_mainapplicationfile() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.mainApplicationFile) + return mainapplicationfile_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_mainapplicationfile() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.mainApplicationFile) + + return mainapplicationfile_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_mainapplicationfile(::std::string* mainapplicationfile) { + if (mainapplicationfile != NULL) { + + } else { + + } + mainapplicationfile_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mainapplicationfile); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.mainApplicationFile) +} + +// string mainClass = 3; +inline void SparkJob::clear_mainclass() { + mainclass_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::mainclass() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.mainClass) + return mainclass_.GetNoArena(); +} +inline void SparkJob::set_mainclass(const ::std::string& value) { + + mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.mainClass) +} +#if LANG_CXX11 +inline void SparkJob::set_mainclass(::std::string&& value) { + + mainclass_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.mainClass) +} +#endif +inline void SparkJob::set_mainclass(const char* value) { + GOOGLE_DCHECK(value != NULL); + + mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.mainClass) +} +inline void SparkJob::set_mainclass(const char* value, size_t size) { + + mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.mainClass) +} +inline ::std::string* SparkJob::mutable_mainclass() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.mainClass) + return mainclass_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_mainclass() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.mainClass) + + return mainclass_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_mainclass(::std::string* mainclass) { + if (mainclass != NULL) { + + } else { + + } + mainclass_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mainclass); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.mainClass) +} + +// map sparkConf = 4; +inline int SparkJob::sparkconf_size() const { + return sparkconf_.size(); +} +inline void SparkJob::clear_sparkconf() { + sparkconf_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +SparkJob::sparkconf() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.SparkJob.sparkConf) + return sparkconf_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +SparkJob::mutable_sparkconf() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.SparkJob.sparkConf) + return sparkconf_.MutableMap(); +} + +// map hadoopConf = 5; +inline int SparkJob::hadoopconf_size() const { + return hadoopconf_.size(); +} +inline void SparkJob::clear_hadoopconf() { + hadoopconf_.Clear(); +} +inline const ::google::protobuf::Map< ::std::string, ::std::string >& +SparkJob::hadoopconf() const { + // @@protoc_insertion_point(field_map:flyteidl.plugins.SparkJob.hadoopConf) + return hadoopconf_.GetMap(); +} +inline ::google::protobuf::Map< ::std::string, ::std::string >* +SparkJob::mutable_hadoopconf() { + // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.SparkJob.hadoopConf) + return hadoopconf_.MutableMap(); +} + +// string executorPath = 6; +inline void SparkJob::clear_executorpath() { + executorpath_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& SparkJob::executorpath() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.executorPath) + return executorpath_.GetNoArena(); +} +inline void SparkJob::set_executorpath(const ::std::string& value) { + + executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.executorPath) +} +#if LANG_CXX11 +inline void SparkJob::set_executorpath(::std::string&& value) { + + executorpath_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.executorPath) +} +#endif +inline void SparkJob::set_executorpath(const char* value) { + GOOGLE_DCHECK(value != NULL); + + executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.executorPath) +} +inline void SparkJob::set_executorpath(const char* value, size_t size) { + + executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.executorPath) +} +inline ::std::string* SparkJob::mutable_executorpath() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.executorPath) + return executorpath_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* SparkJob::release_executorpath() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.executorPath) + + return executorpath_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void SparkJob::set_allocated_executorpath(::std::string* executorpath) { + if (executorpath != NULL) { + + } else { + + } + executorpath_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), executorpath); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.executorPath) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +namespace google { +namespace protobuf { + +template <> struct is_proto_enum< ::flyteidl::plugins::SparkApplication_Type> : ::google::protobuf::internal::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::SparkApplication_Type>() { + return ::flyteidl::plugins::SparkApplication_Type_descriptor(); +} + +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fplugins_2fspark_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc new file mode 100644 index 0000000000..29788b5dee --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc @@ -0,0 +1,21 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/waitable.proto + +#include "flyteidl/plugins/waitable.pb.h" +#include "flyteidl/plugins/waitable.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace plugins { + +} // namespace flyteidl +} // namespace plugins + diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h new file mode 100644 index 0000000000..b8208281cf --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h @@ -0,0 +1,34 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/plugins/waitable.proto +#ifndef GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED +#define GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED + +#include "flyteidl/plugins/waitable.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace plugins { + +} // namespace plugins +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc new file mode 100644 index 0000000000..e092dafbdf --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc @@ -0,0 +1,486 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +#include "flyteidl/plugins/waitable.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace plugins { +class WaitableDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Waitable_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace protobuf_flyteidl_2fplugins_2fwaitable_2eproto { +void InitDefaultsWaitableImpl() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + ::google::protobuf::internal::InitProtobufDefaultsForceUnique(); +#else + ::google::protobuf::internal::InitProtobufDefaults(); +#endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS + protobuf_flyteidl_2fcore_2fidentifier_2eproto::InitDefaultsWorkflowExecutionIdentifier(); + { + void* ptr = &::flyteidl::plugins::_Waitable_default_instance_; + new (ptr) ::flyteidl::plugins::Waitable(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::plugins::Waitable::InitAsDefaultInstance(); +} + +void InitDefaultsWaitable() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsWaitableImpl); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::Waitable, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::Waitable, wf_exec_id_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::Waitable, phase_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::flyteidl::plugins::Waitable, workflow_id_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::flyteidl::plugins::Waitable)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::flyteidl::plugins::_Waitable_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/plugins/waitable.proto", schemas, file_default_instances, TableStruct::offsets, factory, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\037flyteidl/plugins/waitable.proto\022\020flyte" + "idl.plugins\032\035flyteidl/core/execution.pro" + "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + "ore.WorkflowExecutionIdentifier\0225\n\005phase" + "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + ".Phase\022\023\n\013workflow_id\030\003 \001(\tB5Z3github.co" + "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + "nsb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 330); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/plugins/waitable.proto", &protobuf_RegisterTypes); + ::protobuf_flyteidl_2fcore_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fcore_2fidentifier_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fplugins_2fwaitable_2eproto +namespace flyteidl { +namespace plugins { + +// =================================================================== + +void Waitable::InitAsDefaultInstance() { + ::flyteidl::plugins::_Waitable_default_instance_._instance.get_mutable()->wf_exec_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( + ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); +} +void Waitable::clear_wf_exec_id() { + if (GetArenaNoVirtual() == NULL && wf_exec_id_ != NULL) { + delete wf_exec_id_; + } + wf_exec_id_ = NULL; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Waitable::kWfExecIdFieldNumber; +const int Waitable::kPhaseFieldNumber; +const int Waitable::kWorkflowIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Waitable::Waitable() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { + ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::InitDefaultsWaitable(); + } + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.plugins.Waitable) +} +Waitable::Waitable(const Waitable& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + _cached_size_(0) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + workflow_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.workflow_id().size() > 0) { + workflow_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_id_); + } + if (from.has_wf_exec_id()) { + wf_exec_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.wf_exec_id_); + } else { + wf_exec_id_ = NULL; + } + phase_ = from.phase_; + // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.Waitable) +} + +void Waitable::SharedCtor() { + workflow_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(&wf_exec_id_, 0, static_cast( + reinterpret_cast(&phase_) - + reinterpret_cast(&wf_exec_id_)) + sizeof(phase_)); + _cached_size_ = 0; +} + +Waitable::~Waitable() { + // @@protoc_insertion_point(destructor:flyteidl.plugins.Waitable) + SharedDtor(); +} + +void Waitable::SharedDtor() { + workflow_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete wf_exec_id_; +} + +void Waitable::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* Waitable::descriptor() { + ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Waitable& Waitable::default_instance() { + ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::InitDefaultsWaitable(); + return *internal_default_instance(); +} + +Waitable* Waitable::New(::google::protobuf::Arena* arena) const { + Waitable* n = new Waitable; + if (arena != NULL) { + arena->Own(n); + } + return n; +} + +void Waitable::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.Waitable) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + workflow_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == NULL && wf_exec_id_ != NULL) { + delete wf_exec_id_; + } + wf_exec_id_ = NULL; + phase_ = 0; + _internal_metadata_.Clear(); +} + +bool Waitable::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.plugins.Waitable) + 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)) { + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_wf_exec_id())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); + } else { + goto handle_unusual; + } + break; + } + + // string workflow_id = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_workflow_id())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow_id().data(), static_cast(this->workflow_id().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "flyteidl.plugins.Waitable.workflow_id")); + } 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.plugins.Waitable) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.plugins.Waitable) + return false; +#undef DO_ +} + +void Waitable::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.plugins.Waitable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + if (this->has_wf_exec_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, *this->wf_exec_id_, output); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + if (this->phase() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->phase(), output); + } + + // string workflow_id = 3; + if (this->workflow_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow_id().data(), static_cast(this->workflow_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.Waitable.workflow_id"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->workflow_id(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.plugins.Waitable) +} + +::google::protobuf::uint8* Waitable::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.Waitable) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + if (this->has_wf_exec_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, *this->wf_exec_id_, deterministic, target); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + if (this->phase() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->phase(), target); + } + + // string workflow_id = 3; + if (this->workflow_id().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->workflow_id().data(), static_cast(this->workflow_id().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "flyteidl.plugins.Waitable.workflow_id"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->workflow_id(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.plugins.Waitable) + return target; +} + +size_t Waitable::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.Waitable) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string workflow_id = 3; + if (this->workflow_id().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->workflow_id()); + } + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + if (this->has_wf_exec_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *this->wf_exec_id_); + } + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + if (this->phase() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = cached_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void Waitable::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.Waitable) + GOOGLE_DCHECK_NE(&from, this); + const Waitable* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.Waitable) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.Waitable) + MergeFrom(*source); + } +} + +void Waitable::MergeFrom(const Waitable& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.Waitable) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.workflow_id().size() > 0) { + + workflow_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_id_); + } + if (from.has_wf_exec_id()) { + mutable_wf_exec_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.wf_exec_id()); + } + if (from.phase() != 0) { + set_phase(from.phase()); + } +} + +void Waitable::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.Waitable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Waitable::CopyFrom(const Waitable& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.Waitable) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Waitable::IsInitialized() const { + return true; +} + +void Waitable::Swap(Waitable* other) { + if (other == this) return; + InternalSwap(other); +} +void Waitable::InternalSwap(Waitable* other) { + using std::swap; + workflow_id_.Swap(&other->workflow_id_); + swap(wf_exec_id_, other->wf_exec_id_); + swap(phase_, other->phase_); + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(_cached_size_, other->_cached_size_); +} + +::google::protobuf::Metadata Waitable::GetMetadata() const { + protobuf_flyteidl_2fplugins_2fwaitable_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h new file mode 100644 index 0000000000..ca12c37887 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h @@ -0,0 +1,320 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +#ifndef PROTOBUF_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "flyteidl/core/execution.pb.h" +#include "flyteidl/core/identifier.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fplugins_2fwaitable_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +void InitDefaultsWaitableImpl(); +void InitDefaultsWaitable(); +inline void InitDefaults() { + InitDefaultsWaitable(); +} +} // namespace protobuf_flyteidl_2fplugins_2fwaitable_2eproto +namespace flyteidl { +namespace plugins { +class Waitable; +class WaitableDefaultTypeInternal; +extern WaitableDefaultTypeInternal _Waitable_default_instance_; +} // namespace plugins +} // namespace flyteidl +namespace flyteidl { +namespace plugins { + +// =================================================================== + +class Waitable : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.Waitable) */ { + public: + Waitable(); + virtual ~Waitable(); + + Waitable(const Waitable& from); + + inline Waitable& operator=(const Waitable& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Waitable(Waitable&& from) noexcept + : Waitable() { + *this = ::std::move(from); + } + + inline Waitable& operator=(Waitable&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Waitable& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Waitable* internal_default_instance() { + return reinterpret_cast( + &_Waitable_default_instance_); + } + static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + 0; + + void Swap(Waitable* other); + friend void swap(Waitable& a, Waitable& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Waitable* New() const PROTOBUF_FINAL { return New(NULL); } + + Waitable* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; + void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + void CopyFrom(const Waitable& from); + void MergeFrom(const Waitable& from); + void Clear() PROTOBUF_FINAL; + bool IsInitialized() const PROTOBUF_FINAL; + + size_t ByteSizeLong() const PROTOBUF_FINAL; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; + int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const PROTOBUF_FINAL; + void InternalSwap(Waitable* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string workflow_id = 3; + void clear_workflow_id(); + static const int kWorkflowIdFieldNumber = 3; + const ::std::string& workflow_id() const; + void set_workflow_id(const ::std::string& value); + #if LANG_CXX11 + void set_workflow_id(::std::string&& value); + #endif + void set_workflow_id(const char* value); + void set_workflow_id(const char* value, size_t size); + ::std::string* mutable_workflow_id(); + ::std::string* release_workflow_id(); + void set_allocated_workflow_id(::std::string* workflow_id); + + // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + bool has_wf_exec_id() const; + void clear_wf_exec_id(); + static const int kWfExecIdFieldNumber = 1; + const ::flyteidl::core::WorkflowExecutionIdentifier& wf_exec_id() const; + ::flyteidl::core::WorkflowExecutionIdentifier* release_wf_exec_id(); + ::flyteidl::core::WorkflowExecutionIdentifier* mutable_wf_exec_id(); + void set_allocated_wf_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id); + + // .flyteidl.core.WorkflowExecution.Phase phase = 2; + void clear_phase(); + static const int kPhaseFieldNumber = 2; + ::flyteidl::core::WorkflowExecution_Phase phase() const; + void set_phase(::flyteidl::core::WorkflowExecution_Phase value); + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr workflow_id_; + ::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id_; + int phase_; + mutable int _cached_size_; + friend struct ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::TableStruct; + friend void ::protobuf_flyteidl_2fplugins_2fwaitable_2eproto::InitDefaultsWaitableImpl(); +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Waitable + +// .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; +inline bool Waitable::has_wf_exec_id() const { + return this != internal_default_instance() && wf_exec_id_ != NULL; +} +inline const ::flyteidl::core::WorkflowExecutionIdentifier& Waitable::wf_exec_id() const { + const ::flyteidl::core::WorkflowExecutionIdentifier* p = wf_exec_id_; + // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.wf_exec_id) + return p != NULL ? *p : *reinterpret_cast( + &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Waitable::release_wf_exec_id() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.Waitable.wf_exec_id) + + ::flyteidl::core::WorkflowExecutionIdentifier* temp = wf_exec_id_; + wf_exec_id_ = NULL; + return temp; +} +inline ::flyteidl::core::WorkflowExecutionIdentifier* Waitable::mutable_wf_exec_id() { + + if (wf_exec_id_ == NULL) { + wf_exec_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier; + } + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.Waitable.wf_exec_id) + return wf_exec_id_; +} +inline void Waitable::set_allocated_wf_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == NULL) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(wf_exec_id_); + } + if (wf_exec_id) { + ::google::protobuf::Arena* submessage_arena = NULL; + if (message_arena != submessage_arena) { + wf_exec_id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, wf_exec_id, submessage_arena); + } + + } else { + + } + wf_exec_id_ = wf_exec_id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.Waitable.wf_exec_id) +} + +// .flyteidl.core.WorkflowExecution.Phase phase = 2; +inline void Waitable::clear_phase() { + phase_ = 0; +} +inline ::flyteidl::core::WorkflowExecution_Phase Waitable::phase() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.phase) + return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); +} +inline void Waitable::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { + + phase_ = value; + // @@protoc_insertion_point(field_set:flyteidl.plugins.Waitable.phase) +} + +// string workflow_id = 3; +inline void Waitable::clear_workflow_id() { + workflow_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Waitable::workflow_id() const { + // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.workflow_id) + return workflow_id_.GetNoArena(); +} +inline void Waitable::set_workflow_id(const ::std::string& value) { + + workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:flyteidl.plugins.Waitable.workflow_id) +} +#if LANG_CXX11 +inline void Waitable::set_workflow_id(::std::string&& value) { + + workflow_id_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.Waitable.workflow_id) +} +#endif +inline void Waitable::set_workflow_id(const char* value) { + GOOGLE_DCHECK(value != NULL); + + workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:flyteidl.plugins.Waitable.workflow_id) +} +inline void Waitable::set_workflow_id(const char* value, size_t size) { + + workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.Waitable.workflow_id) +} +inline ::std::string* Waitable::mutable_workflow_id() { + + // @@protoc_insertion_point(field_mutable:flyteidl.plugins.Waitable.workflow_id) + return workflow_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Waitable::release_workflow_id() { + // @@protoc_insertion_point(field_release:flyteidl.plugins.Waitable.workflow_id) + + return workflow_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Waitable::set_allocated_workflow_id(::std::string* workflow_id) { + if (workflow_id != NULL) { + + } else { + + } + workflow_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow_id); + // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.Waitable.workflow_id) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace plugins +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc new file mode 100644 index 0000000000..2a3188259e --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc @@ -0,0 +1,846 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/admin.proto + +#include "flyteidl/service/admin.pb.h" +#include "flyteidl/service/admin.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +namespace flyteidl { +namespace service { + +static const char* AdminService_method_names[] = { + "/flyteidl.service.AdminService/CreateTask", + "/flyteidl.service.AdminService/GetTask", + "/flyteidl.service.AdminService/ListTaskIds", + "/flyteidl.service.AdminService/ListTasks", + "/flyteidl.service.AdminService/CreateWorkflow", + "/flyteidl.service.AdminService/GetWorkflow", + "/flyteidl.service.AdminService/ListWorkflowIds", + "/flyteidl.service.AdminService/ListWorkflows", + "/flyteidl.service.AdminService/CreateLaunchPlan", + "/flyteidl.service.AdminService/GetLaunchPlan", + "/flyteidl.service.AdminService/ListLaunchPlanIds", + "/flyteidl.service.AdminService/ListLaunchPlans", + "/flyteidl.service.AdminService/UpdateLaunchPlan", + "/flyteidl.service.AdminService/CreateExecution", + "/flyteidl.service.AdminService/RelaunchExecution", + "/flyteidl.service.AdminService/GetExecution", + "/flyteidl.service.AdminService/GetExecutionData", + "/flyteidl.service.AdminService/ListExecutions", + "/flyteidl.service.AdminService/TerminateExecution", + "/flyteidl.service.AdminService/GetNodeExecution", + "/flyteidl.service.AdminService/ListNodeExecutions", + "/flyteidl.service.AdminService/ListNodeExecutionsForTask", + "/flyteidl.service.AdminService/GetNodeExecutionData", + "/flyteidl.service.AdminService/RegisterProject", + "/flyteidl.service.AdminService/ListProjects", + "/flyteidl.service.AdminService/CreateWorkflowEvent", + "/flyteidl.service.AdminService/CreateNodeEvent", + "/flyteidl.service.AdminService/CreateTaskEvent", + "/flyteidl.service.AdminService/GetTaskExecution", + "/flyteidl.service.AdminService/ListTaskExecutions", + "/flyteidl.service.AdminService/GetTaskExecutionData", +}; + +std::unique_ptr< AdminService::Stub> AdminService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AdminService::Stub> stub(new AdminService::Stub(channel)); + return stub; +} + +AdminService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) + : channel_(channel), rpcmethod_CreateTask_(AdminService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTask_(AdminService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTaskIds_(AdminService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTasks_(AdminService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateWorkflow_(AdminService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetWorkflow_(AdminService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListWorkflowIds_(AdminService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListWorkflows_(AdminService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateLaunchPlan_(AdminService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetLaunchPlan_(AdminService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListLaunchPlanIds_(AdminService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListLaunchPlans_(AdminService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UpdateLaunchPlan_(AdminService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateExecution_(AdminService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RelaunchExecution_(AdminService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetExecution_(AdminService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetExecutionData_(AdminService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListExecutions_(AdminService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_TerminateExecution_(AdminService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetNodeExecution_(AdminService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListNodeExecutions_(AdminService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListNodeExecutionsForTask_(AdminService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetNodeExecutionData_(AdminService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_RegisterProject_(AdminService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListProjects_(AdminService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateWorkflowEvent_(AdminService_method_names[25], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateNodeEvent_(AdminService_method_names[26], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CreateTaskEvent_(AdminService_method_names[27], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTaskExecution_(AdminService_method_names[28], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ListTaskExecutions_(AdminService_method_names[29], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetTaskExecutionData_(AdminService_method_names[30], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::Status AdminService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AdminService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AdminService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AdminService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Task>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AdminService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Task>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTaskIds_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListTaskIds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListTaskIds_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTasks_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AdminService::Stub::AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskList>::Create(channel_.get(), cq, rpcmethod_ListTasks_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AdminService::Stub::PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskList>::Create(channel_.get(), cq, rpcmethod_ListTasks_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateWorkflow_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AdminService::Stub::AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflow_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AdminService::Stub::PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflow_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetWorkflow_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AdminService::Stub::AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Workflow>::Create(channel_.get(), cq, rpcmethod_GetWorkflow_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AdminService::Stub::PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Workflow>::Create(channel_.get(), cq, rpcmethod_GetWorkflow_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListWorkflowIds_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListWorkflowIds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListWorkflowIds_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListWorkflows_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AdminService::Stub::AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowList>::Create(channel_.get(), cq, rpcmethod_ListWorkflows_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AdminService::Stub::PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowList>::Create(channel_.get(), cq, rpcmethod_ListWorkflows_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateLaunchPlan_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AdminService::Stub::AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AdminService::Stub::PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLaunchPlan_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLaunchPlanIds_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlanIds_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlanIds_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLaunchPlans_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlans_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlans_, context, request, false); +} + +::grpc::Status AdminService::Stub::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateLaunchPlan_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AdminService::Stub::AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLaunchPlan_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLaunchPlan_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateExecution_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RelaunchExecution_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RelaunchExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RelaunchExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecution_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AdminService::Stub::AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Execution>::Create(channel_.get(), cq, rpcmethod_GetExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AdminService::Stub::PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Execution>::Create(channel_.get(), cq, rpcmethod_GetExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecutionData_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AdminService::Stub::AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionData_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListExecutions_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AdminService::Stub::AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionList>::Create(channel_.get(), cq, rpcmethod_ListExecutions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AdminService::Stub::PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionList>::Create(channel_.get(), cq, rpcmethod_ListExecutions_, context, request, false); +} + +::grpc::Status AdminService::Stub::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TerminateExecution_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AdminService::Stub::AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionTerminateResponse>::Create(channel_.get(), cq, rpcmethod_TerminateExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AdminService::Stub::PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionTerminateResponse>::Create(channel_.get(), cq, rpcmethod_TerminateExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNodeExecution_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AdminService::Stub::AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecution>::Create(channel_.get(), cq, rpcmethod_GetNodeExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AdminService::Stub::PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecution>::Create(channel_.get(), cq, rpcmethod_GetNodeExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNodeExecutions_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutions_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNodeExecutionsForTask_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutionsForTask_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutionsForTask_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNodeExecutionData_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AdminService::Stub::AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetNodeExecutionData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetNodeExecutionData_, context, request, false); +} + +::grpc::Status AdminService::Stub::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterProject_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AdminService::Stub::AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectRegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProject_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AdminService::Stub::PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectRegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProject_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListProjects_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AdminService::Stub::AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Projects>::Create(channel_.get(), cq, rpcmethod_ListProjects_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AdminService::Stub::PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Projects>::Create(channel_.get(), cq, rpcmethod_ListProjects_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateWorkflowEvent_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AdminService::Stub::AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflowEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflowEvent_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateNodeEvent_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AdminService::Stub::AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateNodeEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateNodeEvent_, context, request, false); +} + +::grpc::Status AdminService::Stub::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTaskEvent_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AdminService::Stub::AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateTaskEvent_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateTaskEvent_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskExecution_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AdminService::Stub::AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecution>::Create(channel_.get(), cq, rpcmethod_GetTaskExecution_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AdminService::Stub::PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecution>::Create(channel_.get(), cq, rpcmethod_GetTaskExecution_, context, request, false); +} + +::grpc::Status AdminService::Stub::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTaskExecutions_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AdminService::Stub::AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionList>::Create(channel_.get(), cq, rpcmethod_ListTaskExecutions_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AdminService::Stub::PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionList>::Create(channel_.get(), cq, rpcmethod_ListTaskExecutions_, context, request, false); +} + +::grpc::Status AdminService::Stub::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskExecutionData_, context, request, response); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AdminService::Stub::AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskExecutionData_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskExecutionData_, context, request, false); +} + +AdminService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[0], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>( + std::mem_fn(&AdminService::Service::CreateTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>( + std::mem_fn(&AdminService::Service::GetTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + std::mem_fn(&AdminService::Service::ListTaskIds), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>( + std::mem_fn(&AdminService::Service::ListTasks), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>( + std::mem_fn(&AdminService::Service::CreateWorkflow), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>( + std::mem_fn(&AdminService::Service::GetWorkflow), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[6], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + std::mem_fn(&AdminService::Service::ListWorkflowIds), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[7], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>( + std::mem_fn(&AdminService::Service::ListWorkflows), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>( + std::mem_fn(&AdminService::Service::CreateLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>( + std::mem_fn(&AdminService::Service::GetLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( + std::mem_fn(&AdminService::Service::ListLaunchPlanIds), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>( + std::mem_fn(&AdminService::Service::ListLaunchPlans), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[12], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>( + std::mem_fn(&AdminService::Service::UpdateLaunchPlan), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[13], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>( + std::mem_fn(&AdminService::Service::CreateExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[14], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>( + std::mem_fn(&AdminService::Service::RelaunchExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[15], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>( + std::mem_fn(&AdminService::Service::GetExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[16], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>( + std::mem_fn(&AdminService::Service::GetExecutionData), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[17], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>( + std::mem_fn(&AdminService::Service::ListExecutions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[18], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>( + std::mem_fn(&AdminService::Service::TerminateExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[19], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>( + std::mem_fn(&AdminService::Service::GetNodeExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[20], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>( + std::mem_fn(&AdminService::Service::ListNodeExecutions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[21], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>( + std::mem_fn(&AdminService::Service::ListNodeExecutionsForTask), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[22], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>( + std::mem_fn(&AdminService::Service::GetNodeExecutionData), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[23], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>( + std::mem_fn(&AdminService::Service::RegisterProject), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[24], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>( + std::mem_fn(&AdminService::Service::ListProjects), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[25], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>( + std::mem_fn(&AdminService::Service::CreateWorkflowEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[26], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>( + std::mem_fn(&AdminService::Service::CreateNodeEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[27], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>( + std::mem_fn(&AdminService::Service::CreateTaskEvent), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[28], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>( + std::mem_fn(&AdminService::Service::GetTaskExecution), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[29], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>( + std::mem_fn(&AdminService::Service::ListTaskExecutions), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AdminService_method_names[30], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>( + std::mem_fn(&AdminService::Service::GetTaskExecutionData), this))); +} + +AdminService::Service::~Service() { +} + +::grpc::Status AdminService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AdminService::Service::GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace flyteidl +} // namespace service + diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h new file mode 100644 index 0000000000..bf58676f98 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h @@ -0,0 +1,3071 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: flyteidl/service/admin.proto +#ifndef GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED +#define GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED + +#include "flyteidl/service/admin.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace grpc { +class CompletionQueue; +class Channel; +class ServerCompletionQueue; +class ServerContext; +} // namespace grpc + +namespace flyteidl { +namespace service { + +class AdminService final { + public: + static constexpr char const* service_full_name() { + return "flyteidl.service.AdminService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + virtual ::grpc::Status ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListTaskIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListTaskIdsRaw(context, request, cq)); + } + virtual ::grpc::Status ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>> AsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>>(AsyncListTasksRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>> PrepareAsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>>(PrepareAsyncListTasksRaw(context, request, cq)); + } + virtual ::grpc::Status CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>> AsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>>(AsyncCreateWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>> PrepareAsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>>(PrepareAsyncCreateWorkflowRaw(context, request, cq)); + } + virtual ::grpc::Status GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>> AsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>>(AsyncGetWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>> PrepareAsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>>(PrepareAsyncGetWorkflowRaw(context, request, cq)); + } + virtual ::grpc::Status ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListWorkflowIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListWorkflowIdsRaw(context, request, cq)); + } + virtual ::grpc::Status ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>> AsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>>(AsyncListWorkflowsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>> PrepareAsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>>(PrepareAsyncListWorkflowsRaw(context, request, cq)); + } + virtual ::grpc::Status CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>> AsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>>(AsyncCreateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>> PrepareAsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>>(PrepareAsyncCreateLaunchPlanRaw(context, request, cq)); + } + virtual ::grpc::Status GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> AsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(AsyncGetLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetLaunchPlanRaw(context, request, cq)); + } + virtual ::grpc::Status ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListLaunchPlanIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListLaunchPlanIdsRaw(context, request, cq)); + } + virtual ::grpc::Status ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> AsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(AsyncListLaunchPlansRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListLaunchPlansRaw(context, request, cq)); + } + virtual ::grpc::Status UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>> AsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>>(AsyncUpdateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>> PrepareAsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>>(PrepareAsyncUpdateLaunchPlanRaw(context, request, cq)); + } + virtual ::grpc::Status CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncCreateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncCreateExecutionRaw(context, request, cq)); + } + virtual ::grpc::Status RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRelaunchExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRelaunchExecutionRaw(context, request, cq)); + } + virtual ::grpc::Status GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>> AsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>>(AsyncGetExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>> PrepareAsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>>(PrepareAsyncGetExecutionRaw(context, request, cq)); + } + virtual ::grpc::Status GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> AsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(AsyncGetExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> PrepareAsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(PrepareAsyncGetExecutionDataRaw(context, request, cq)); + } + virtual ::grpc::Status ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>> AsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>>(AsyncListExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>> PrepareAsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>>(PrepareAsyncListExecutionsRaw(context, request, cq)); + } + virtual ::grpc::Status TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>> AsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>>(AsyncTerminateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>> PrepareAsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>>(PrepareAsyncTerminateExecutionRaw(context, request, cq)); + } + virtual ::grpc::Status GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>> AsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>>(AsyncGetNodeExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>> PrepareAsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>>(PrepareAsyncGetNodeExecutionRaw(context, request, cq)); + } + virtual ::grpc::Status ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsRaw(context, request, cq)); + } + virtual ::grpc::Status ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + virtual ::grpc::Status GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>> AsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>>(AsyncGetNodeExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>> PrepareAsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>>(PrepareAsyncGetNodeExecutionDataRaw(context, request, cq)); + } + virtual ::grpc::Status RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>> AsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>>(AsyncRegisterProjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>> PrepareAsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>>(PrepareAsyncRegisterProjectRaw(context, request, cq)); + } + virtual ::grpc::Status ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>> AsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>>(AsyncListProjectsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>> PrepareAsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>>(PrepareAsyncListProjectsRaw(context, request, cq)); + } + virtual ::grpc::Status CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>> AsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>>(AsyncCreateWorkflowEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>> PrepareAsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>>(PrepareAsyncCreateWorkflowEventRaw(context, request, cq)); + } + virtual ::grpc::Status CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>> AsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>>(AsyncCreateNodeEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>> PrepareAsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>>(PrepareAsyncCreateNodeEventRaw(context, request, cq)); + } + virtual ::grpc::Status CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>> AsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>>(AsyncCreateTaskEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>> PrepareAsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>>(PrepareAsyncCreateTaskEventRaw(context, request, cq)); + } + virtual ::grpc::Status GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>> AsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>>(AsyncGetTaskExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>> PrepareAsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>>(PrepareAsyncGetTaskExecutionRaw(context, request, cq)); + } + virtual ::grpc::Status ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>> AsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>>(AsyncListTaskExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>> PrepareAsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>>(PrepareAsyncListTaskExecutionsRaw(context, request, cq)); + } + virtual ::grpc::Status GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>> AsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>>(AsyncGetTaskExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>> PrepareAsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>>(PrepareAsyncGetTaskExecutionDataRaw(context, request, cq)); + } + private: + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>* AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>* PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>* AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>* PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>* AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>* PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>* AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>* PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>* AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>* PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>* AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>* PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>* AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>* PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>* AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>* PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>* AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>* PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>* AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>* PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>* AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>* PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>* AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>* PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>* AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>* PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>* AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>* PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>* AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>* PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>* AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>* PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>* AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>* PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>* AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>* PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>* AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>* PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); + ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); + } + ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>>(AsyncGetTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>>(PrepareAsyncGetTaskRaw(context, request, cq)); + } + ::grpc::Status ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListTaskIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListTaskIdsRaw(context, request, cq)); + } + ::grpc::Status ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>> AsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>>(AsyncListTasksRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>> PrepareAsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>>(PrepareAsyncListTasksRaw(context, request, cq)); + } + ::grpc::Status CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>> AsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>>(AsyncCreateWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>> PrepareAsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>>(PrepareAsyncCreateWorkflowRaw(context, request, cq)); + } + ::grpc::Status GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>> AsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>>(AsyncGetWorkflowRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>> PrepareAsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>>(PrepareAsyncGetWorkflowRaw(context, request, cq)); + } + ::grpc::Status ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListWorkflowIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListWorkflowIdsRaw(context, request, cq)); + } + ::grpc::Status ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>> AsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>>(AsyncListWorkflowsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>> PrepareAsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>>(PrepareAsyncListWorkflowsRaw(context, request, cq)); + } + ::grpc::Status CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>> AsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>>(AsyncCreateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>> PrepareAsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>>(PrepareAsyncCreateLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> AsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(AsyncGetLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListLaunchPlanIdsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListLaunchPlanIdsRaw(context, request, cq)); + } + ::grpc::Status ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> AsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(AsyncListLaunchPlansRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListLaunchPlansRaw(context, request, cq)); + } + ::grpc::Status UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>> AsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>>(AsyncUpdateLaunchPlanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>> PrepareAsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>>(PrepareAsyncUpdateLaunchPlanRaw(context, request, cq)); + } + ::grpc::Status CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncCreateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncCreateExecutionRaw(context, request, cq)); + } + ::grpc::Status RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRelaunchExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRelaunchExecutionRaw(context, request, cq)); + } + ::grpc::Status GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>> AsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>>(AsyncGetExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>> PrepareAsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>>(PrepareAsyncGetExecutionRaw(context, request, cq)); + } + ::grpc::Status GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> AsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(AsyncGetExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> PrepareAsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(PrepareAsyncGetExecutionDataRaw(context, request, cq)); + } + ::grpc::Status ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>> AsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>>(AsyncListExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>> PrepareAsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>>(PrepareAsyncListExecutionsRaw(context, request, cq)); + } + ::grpc::Status TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>> AsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>>(AsyncTerminateExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>> PrepareAsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>>(PrepareAsyncTerminateExecutionRaw(context, request, cq)); + } + ::grpc::Status GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>> AsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>>(AsyncGetNodeExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>> PrepareAsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>>(PrepareAsyncGetNodeExecutionRaw(context, request, cq)); + } + ::grpc::Status ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsRaw(context, request, cq)); + } + ::grpc::Status ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsForTaskRaw(context, request, cq)); + } + ::grpc::Status GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>> AsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>>(AsyncGetNodeExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>> PrepareAsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>>(PrepareAsyncGetNodeExecutionDataRaw(context, request, cq)); + } + ::grpc::Status RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>> AsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>>(AsyncRegisterProjectRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>> PrepareAsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>>(PrepareAsyncRegisterProjectRaw(context, request, cq)); + } + ::grpc::Status ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>> AsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>>(AsyncListProjectsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>> PrepareAsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>>(PrepareAsyncListProjectsRaw(context, request, cq)); + } + ::grpc::Status CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>> AsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>>(AsyncCreateWorkflowEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>> PrepareAsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>>(PrepareAsyncCreateWorkflowEventRaw(context, request, cq)); + } + ::grpc::Status CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>> AsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>>(AsyncCreateNodeEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>> PrepareAsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>>(PrepareAsyncCreateNodeEventRaw(context, request, cq)); + } + ::grpc::Status CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>> AsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>>(AsyncCreateTaskEventRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>> PrepareAsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>>(PrepareAsyncCreateTaskEventRaw(context, request, cq)); + } + ::grpc::Status GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>> AsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>>(AsyncGetTaskExecutionRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>> PrepareAsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>>(PrepareAsyncGetTaskExecutionRaw(context, request, cq)); + } + ::grpc::Status ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>> AsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>>(AsyncListTaskExecutionsRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>> PrepareAsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>>(PrepareAsyncListTaskExecutionsRaw(context, request, cq)); + } + ::grpc::Status GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>> AsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>>(AsyncGetTaskExecutionDataRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>> PrepareAsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>>(PrepareAsyncGetTaskExecutionDataRaw(context, request, cq)); + } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetTask_; + const ::grpc::internal::RpcMethod rpcmethod_ListTaskIds_; + const ::grpc::internal::RpcMethod rpcmethod_ListTasks_; + const ::grpc::internal::RpcMethod rpcmethod_CreateWorkflow_; + const ::grpc::internal::RpcMethod rpcmethod_GetWorkflow_; + const ::grpc::internal::RpcMethod rpcmethod_ListWorkflowIds_; + const ::grpc::internal::RpcMethod rpcmethod_ListWorkflows_; + const ::grpc::internal::RpcMethod rpcmethod_CreateLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_GetLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_ListLaunchPlanIds_; + const ::grpc::internal::RpcMethod rpcmethod_ListLaunchPlans_; + const ::grpc::internal::RpcMethod rpcmethod_UpdateLaunchPlan_; + const ::grpc::internal::RpcMethod rpcmethod_CreateExecution_; + const ::grpc::internal::RpcMethod rpcmethod_RelaunchExecution_; + const ::grpc::internal::RpcMethod rpcmethod_GetExecution_; + const ::grpc::internal::RpcMethod rpcmethod_GetExecutionData_; + const ::grpc::internal::RpcMethod rpcmethod_ListExecutions_; + const ::grpc::internal::RpcMethod rpcmethod_TerminateExecution_; + const ::grpc::internal::RpcMethod rpcmethod_GetNodeExecution_; + const ::grpc::internal::RpcMethod rpcmethod_ListNodeExecutions_; + const ::grpc::internal::RpcMethod rpcmethod_ListNodeExecutionsForTask_; + const ::grpc::internal::RpcMethod rpcmethod_GetNodeExecutionData_; + const ::grpc::internal::RpcMethod rpcmethod_RegisterProject_; + const ::grpc::internal::RpcMethod rpcmethod_ListProjects_; + const ::grpc::internal::RpcMethod rpcmethod_CreateWorkflowEvent_; + const ::grpc::internal::RpcMethod rpcmethod_CreateNodeEvent_; + const ::grpc::internal::RpcMethod rpcmethod_CreateTaskEvent_; + const ::grpc::internal::RpcMethod rpcmethod_GetTaskExecution_; + const ::grpc::internal::RpcMethod rpcmethod_ListTaskExecutions_; + const ::grpc::internal::RpcMethod rpcmethod_GetTaskExecutionData_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response); + virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response); + virtual ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); + virtual ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response); + virtual ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response); + virtual ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response); + virtual ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); + virtual ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response); + virtual ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response); + virtual ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response); + virtual ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); + virtual ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response); + virtual ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response); + virtual ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); + virtual ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); + virtual ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response); + virtual ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response); + virtual ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response); + virtual ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response); + virtual ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response); + virtual ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response); + virtual ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response); + virtual ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response); + virtual ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response); + virtual ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response); + virtual ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response); + virtual ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response); + virtual ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response); + virtual ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response); + virtual ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response); + virtual ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response); + }; + template + class WithAsyncMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTask() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::admin::TaskCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTask() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Task>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListTaskIds() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListTasks() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTasks(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskList>* 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_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflow(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowCreateResponse>* 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 WithAsyncMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetWorkflow() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWorkflow(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Workflow>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflowIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListWorkflows() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflows(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::LaunchPlanCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlan>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlanIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlans(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodAsync(12); + } + ~WithAsyncMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateExecution() { + ::grpc::Service::MarkMethodAsync(13); + } + ~WithAsyncMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodAsync(14); + } + ~WithAsyncMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRelaunchExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionRelaunchRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetExecution() { + ::grpc::Service::MarkMethodAsync(15); + } + ~WithAsyncMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecution(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Execution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetExecutionData() { + ::grpc::Service::MarkMethodAsync(16); + } + ~WithAsyncMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListExecutions() { + ::grpc::Service::MarkMethodAsync(17); + } + ~WithAsyncMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListExecutions(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_TerminateExecution() { + ::grpc::Service::MarkMethodAsync(18); + } + ~WithAsyncMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTerminateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionTerminateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionTerminateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodAsync(19); + } + ~WithAsyncMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecution(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodAsync(20); + } + ~WithAsyncMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutions(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodAsync(21); + } + ~WithAsyncMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutionsForTask(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodAsync(22); + } + ~WithAsyncMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_RegisterProject() { + ::grpc::Service::MarkMethodAsync(23); + } + ~WithAsyncMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRegisterProject(::grpc::ServerContext* context, ::flyteidl::admin::ProjectRegisterRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectRegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListProjects() { + ::grpc::Service::MarkMethodAsync(24); + } + ~WithAsyncMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProjects(::grpc::ServerContext* context, ::flyteidl::admin::ProjectListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Projects>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodAsync(25); + } + ~WithAsyncMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflowEvent(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodAsync(26); + } + ~WithAsyncMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateNodeEvent(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodAsync(27); + } + ~WithAsyncMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTaskEvent(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodAsync(28); + } + ~WithAsyncMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecution(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodAsync(29); + } + ~WithAsyncMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskExecutions(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodAsync(30); + } + ~WithAsyncMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; + template + class WithGenericMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTask() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTask() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListTaskIds() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListTasks() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetWorkflow() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListWorkflows() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodGeneric(12); + } + ~WithGenericMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateExecution() { + ::grpc::Service::MarkMethodGeneric(13); + } + ~WithGenericMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodGeneric(14); + } + ~WithGenericMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetExecution() { + ::grpc::Service::MarkMethodGeneric(15); + } + ~WithGenericMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetExecutionData() { + ::grpc::Service::MarkMethodGeneric(16); + } + ~WithGenericMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListExecutions() { + ::grpc::Service::MarkMethodGeneric(17); + } + ~WithGenericMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_TerminateExecution() { + ::grpc::Service::MarkMethodGeneric(18); + } + ~WithGenericMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodGeneric(19); + } + ~WithGenericMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodGeneric(20); + } + ~WithGenericMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodGeneric(21); + } + ~WithGenericMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodGeneric(22); + } + ~WithGenericMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_RegisterProject() { + ::grpc::Service::MarkMethodGeneric(23); + } + ~WithGenericMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListProjects() { + ::grpc::Service::MarkMethodGeneric(24); + } + ~WithGenericMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodGeneric(25); + } + ~WithGenericMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodGeneric(26); + } + ~WithGenericMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodGeneric(27); + } + ~WithGenericMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodGeneric(28); + } + ~WithGenericMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodGeneric(29); + } + ~WithGenericMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodGeneric(30); + } + ~WithGenericMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTask() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTask(::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(0, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTask() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTask(::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(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListTaskIds() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskIds(::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(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListTasks() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTasks(::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_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflow(::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 WithRawMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetWorkflow() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetWorkflow(::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(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflowIds(::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(6, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListWorkflows() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListWorkflows(::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(7, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateLaunchPlan(::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(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetLaunchPlan(::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(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlanIds(::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(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListLaunchPlans(::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(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUpdateLaunchPlan(::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(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateExecution() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateExecution(::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(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodRaw(14); + } + ~WithRawMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRelaunchExecution(::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(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetExecution() { + ::grpc::Service::MarkMethodRaw(15); + } + ~WithRawMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecution(::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(15, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetExecutionData() { + ::grpc::Service::MarkMethodRaw(16); + } + ~WithRawMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetExecutionData(::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(16, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListExecutions() { + ::grpc::Service::MarkMethodRaw(17); + } + ~WithRawMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListExecutions(::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(17, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_TerminateExecution() { + ::grpc::Service::MarkMethodRaw(18); + } + ~WithRawMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestTerminateExecution(::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(18, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodRaw(19); + } + ~WithRawMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecution(::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(19, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodRaw(20); + } + ~WithRawMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutions(::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(20, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodRaw(21); + } + ~WithRawMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListNodeExecutionsForTask(::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(21, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodRaw(22); + } + ~WithRawMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetNodeExecutionData(::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(22, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_RegisterProject() { + ::grpc::Service::MarkMethodRaw(23); + } + ~WithRawMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestRegisterProject(::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(23, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListProjects() { + ::grpc::Service::MarkMethodRaw(24); + } + ~WithRawMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListProjects(::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(24, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodRaw(25); + } + ~WithRawMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateWorkflowEvent(::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(25, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodRaw(26); + } + ~WithRawMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateNodeEvent(::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(26, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodRaw(27); + } + ~WithRawMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCreateTaskEvent(::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(27, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodRaw(28); + } + ~WithRawMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecution(::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(28, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodRaw(29); + } + ~WithRawMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestListTaskExecutions(::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(29, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodRaw(30); + } + ~WithRawMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestGetTaskExecutionData(::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(30, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithStreamedUnaryMethod_CreateTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTask() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskCreateRequest,::flyteidl::admin::TaskCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTask() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::Task>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListTaskIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListTaskIds() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListTaskIds::StreamedListTaskIds, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListTaskIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListTaskIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListTasks : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListTasks() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>(std::bind(&WithStreamedUnaryMethod_ListTasks::StreamedListTasks, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListTasks() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListTasks(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::TaskList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateWorkflow() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateWorkflow::StreamedCreateWorkflow, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateWorkflow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowCreateRequest,::flyteidl::admin::WorkflowCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetWorkflow : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetWorkflow() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>(std::bind(&WithStreamedUnaryMethod_GetWorkflow::StreamedGetWorkflow, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetWorkflow() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetWorkflow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::Workflow>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListWorkflowIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListWorkflowIds() { + ::grpc::Service::MarkMethodStreamed(6, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListWorkflowIds::StreamedListWorkflowIds, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListWorkflowIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListWorkflowIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListWorkflows : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListWorkflows() { + ::grpc::Service::MarkMethodStreamed(7, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>(std::bind(&WithStreamedUnaryMethod_ListWorkflows::StreamedListWorkflows, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListWorkflows() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListWorkflows(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::WorkflowList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateLaunchPlan::StreamedCreateLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::LaunchPlanCreateRequest,::flyteidl::admin::LaunchPlanCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>(std::bind(&WithStreamedUnaryMethod_GetLaunchPlan::StreamedGetLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::LaunchPlan>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListLaunchPlanIds : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListLaunchPlanIds() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListLaunchPlanIds::StreamedListLaunchPlanIds, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListLaunchPlanIds() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListLaunchPlanIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListLaunchPlans : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListLaunchPlans() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>(std::bind(&WithStreamedUnaryMethod_ListLaunchPlans::StreamedListLaunchPlans, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListLaunchPlans() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListLaunchPlans(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::LaunchPlanList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UpdateLaunchPlan : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_UpdateLaunchPlan() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateLaunchPlan::StreamedUpdateLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_UpdateLaunchPlan() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUpdateLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::LaunchPlanUpdateRequest,::flyteidl::admin::LaunchPlanUpdateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateExecution() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateExecution::StreamedCreateExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionCreateRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RelaunchExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_RelaunchExecution() { + ::grpc::Service::MarkMethodStreamed(14, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_RelaunchExecution::StreamedRelaunchExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_RelaunchExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRelaunchExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionRelaunchRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetExecution() { + ::grpc::Service::MarkMethodStreamed(15, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>(std::bind(&WithStreamedUnaryMethod_GetExecution::StreamedGetExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetRequest,::flyteidl::admin::Execution>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetExecutionData() { + ::grpc::Service::MarkMethodStreamed(16, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetExecutionData::StreamedGetExecutionData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetDataRequest,::flyteidl::admin::WorkflowExecutionGetDataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListExecutions() { + ::grpc::Service::MarkMethodStreamed(17, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>(std::bind(&WithStreamedUnaryMethod_ListExecutions::StreamedListExecutions, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::ExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_TerminateExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_TerminateExecution() { + ::grpc::Service::MarkMethodStreamed(18, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>(std::bind(&WithStreamedUnaryMethod_TerminateExecution::StreamedTerminateExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_TerminateExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedTerminateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionTerminateRequest,::flyteidl::admin::ExecutionTerminateResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetNodeExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetNodeExecution() { + ::grpc::Service::MarkMethodStreamed(19, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>(std::bind(&WithStreamedUnaryMethod_GetNodeExecution::StreamedGetNodeExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetNodeExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetNodeExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionGetRequest,::flyteidl::admin::NodeExecution>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListNodeExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListNodeExecutions() { + ::grpc::Service::MarkMethodStreamed(20, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>(std::bind(&WithStreamedUnaryMethod_ListNodeExecutions::StreamedListNodeExecutions, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListNodeExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListNodeExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionListRequest,::flyteidl::admin::NodeExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListNodeExecutionsForTask : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListNodeExecutionsForTask() { + ::grpc::Service::MarkMethodStreamed(21, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>(std::bind(&WithStreamedUnaryMethod_ListNodeExecutionsForTask::StreamedListNodeExecutionsForTask, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListNodeExecutionsForTask() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListNodeExecutionsForTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionForTaskListRequest,::flyteidl::admin::NodeExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetNodeExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetNodeExecutionData() { + ::grpc::Service::MarkMethodStreamed(22, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetNodeExecutionData::StreamedGetNodeExecutionData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetNodeExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetNodeExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionGetDataRequest,::flyteidl::admin::NodeExecutionGetDataResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_RegisterProject : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_RegisterProject() { + ::grpc::Service::MarkMethodStreamed(23, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterProject::StreamedRegisterProject, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_RegisterProject() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedRegisterProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectRegisterRequest,::flyteidl::admin::ProjectRegisterResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListProjects : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListProjects() { + ::grpc::Service::MarkMethodStreamed(24, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>(std::bind(&WithStreamedUnaryMethod_ListProjects::StreamedListProjects, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListProjects() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListProjects(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectListRequest,::flyteidl::admin::Projects>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateWorkflowEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateWorkflowEvent() { + ::grpc::Service::MarkMethodStreamed(25, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateWorkflowEvent::StreamedCreateWorkflowEvent, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateWorkflowEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateWorkflowEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionEventRequest,::flyteidl::admin::WorkflowExecutionEventResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateNodeEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateNodeEvent() { + ::grpc::Service::MarkMethodStreamed(26, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateNodeEvent::StreamedCreateNodeEvent, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateNodeEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateNodeEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionEventRequest,::flyteidl::admin::NodeExecutionEventResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CreateTaskEvent : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_CreateTaskEvent() { + ::grpc::Service::MarkMethodStreamed(27, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateTaskEvent::StreamedCreateTaskEvent, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_CreateTaskEvent() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCreateTaskEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionEventRequest,::flyteidl::admin::TaskExecutionEventResponse>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTaskExecution : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTaskExecution() { + ::grpc::Service::MarkMethodStreamed(28, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>(std::bind(&WithStreamedUnaryMethod_GetTaskExecution::StreamedGetTaskExecution, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTaskExecution() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTaskExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionGetRequest,::flyteidl::admin::TaskExecution>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ListTaskExecutions : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_ListTaskExecutions() { + ::grpc::Service::MarkMethodStreamed(29, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>(std::bind(&WithStreamedUnaryMethod_ListTaskExecutions::StreamedListTaskExecutions, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_ListTaskExecutions() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedListTaskExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionListRequest,::flyteidl::admin::TaskExecutionList>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_GetTaskExecutionData : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_GetTaskExecutionData() { + ::grpc::Service::MarkMethodStreamed(30, + new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetTaskExecutionData::StreamedGetTaskExecutionData, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_GetTaskExecutionData() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedGetTaskExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionGetDataRequest,::flyteidl::admin::TaskExecutionGetDataResponse>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef Service SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; +}; + +} // namespace service +} // namespace flyteidl + + +#endif // GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc new file mode 100644 index 0000000000..d6fb6f219f --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc @@ -0,0 +1,281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +#include "flyteidl/service/admin.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) +namespace flyteidl { +namespace service { +} // namespace service +} // namespace flyteidl +namespace protobuf_flyteidl_2fservice_2fadmin_2eproto { +const ::google::protobuf::uint32 TableStruct::offsets[1] = {}; +static const ::google::protobuf::internal::MigrationSchema* schemas = NULL; +static const ::google::protobuf::Message* const* file_default_instances = NULL; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + ::google::protobuf::MessageFactory* factory = NULL; + AssignDescriptors( + "flyteidl/service/admin.proto", schemas, file_default_instances, TableStruct::offsets, factory, + NULL, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\034flyteidl/service/admin.proto\022\020flyteidl" + ".service\032\034google/api/annotations.proto\032\034" + "flyteidl/admin/project.proto\032\031flyteidl/a" + "dmin/task.proto\032\035flyteidl/admin/workflow" + ".proto\032 flyteidl/admin/launch_plan.proto" + "\032\032flyteidl/admin/event.proto\032\036flyteidl/a" + "dmin/execution.proto\032#flyteidl/admin/nod" + "e_execution.proto\032#flyteidl/admin/task_e" + "xecution.proto\032\033flyteidl/admin/common.pr" + "oto\032,protoc-gen-swagger/options/annotati" + "ons.proto2\3018\n\014AdminService\022\304\002\n\nCreateTas" + "k\022!.flyteidl.admin.TaskCreateRequest\032\".f" + "lyteidl.admin.TaskCreateResponse\"\356\001\202\323\344\223\002" + "\022\"\r/api/v1/tasks:\001*\222A\322\001\032%Create and regi" + "ster a task definitionJB\n\003400\022;\n9Returne" + "d for bad request that may have failed v" + "alidation.Je\n\003409\022^\n\\Returned for a requ" + "est that references an identical entity " + "that has already been registered.\022\210\001\n\007Ge" + "tTask\022 .flyteidl.admin.ObjectGetRequest\032" + "\024.flyteidl.admin.Task\"E\202\323\344\223\002\?\022=/api/v1/t" + "asks/{id.project}/{id.domain}/{id.name}/" + "{id.version}\022\227\001\n\013ListTaskIds\0220.flyteidl." + "admin.NamedEntityIdentifierListRequest\032)" + ".flyteidl.admin.NamedEntityIdentifierLis" + "t\"+\202\323\344\223\002%\022#/api/v1/task_ids/{project}/{d" + "omain}\022\256\001\n\tListTasks\022#.flyteidl.admin.Re" + "sourceListRequest\032\030.flyteidl.admin.TaskL" + "ist\"b\202\323\344\223\002\\\0220/api/v1/tasks/{id.project}/" + "{id.domain}/{id.name}Z(\022&/api/v1/tasks/{" + "id.project}/{id.domain}\022\330\002\n\016CreateWorkfl" + "ow\022%.flyteidl.admin.WorkflowCreateReques" + "t\032&.flyteidl.admin.WorkflowCreateRespons" + "e\"\366\001\202\323\344\223\002\026\"\021/api/v1/workflows:\001*\222A\326\001\032)Cr" + "eate and register a workflow definitionJ" + "B\n\003400\022;\n9Returned for bad request that " + "may have failed validation.Je\n\003409\022^\n\\Re" + "turned for a request that references an " + "identical entity that has already been r" + "egistered.\022\224\001\n\013GetWorkflow\022 .flyteidl.ad" + "min.ObjectGetRequest\032\030.flyteidl.admin.Wo" + "rkflow\"I\202\323\344\223\002C\022A/api/v1/workflows/{id.pr" + "oject}/{id.domain}/{id.name}/{id.version" + "}\022\237\001\n\017ListWorkflowIds\0220.flyteidl.admin.N" + "amedEntityIdentifierListRequest\032).flytei" + "dl.admin.NamedEntityIdentifierList\"/\202\323\344\223" + "\002)\022\'/api/v1/workflow_ids/{project}/{doma" + "in}\022\276\001\n\rListWorkflows\022#.flyteidl.admin.R" + "esourceListRequest\032\034.flyteidl.admin.Work" + "flowList\"j\202\323\344\223\002d\0224/api/v1/workflows/{id." + "project}/{id.domain}/{id.name}Z,\022*/api/v" + "1/workflows/{id.project}/{id.domain}\022\344\002\n" + "\020CreateLaunchPlan\022\'.flyteidl.admin.Launc" + "hPlanCreateRequest\032(.flyteidl.admin.Laun" + "chPlanCreateResponse\"\374\001\202\323\344\223\002\031\"\024/api/v1/l" + "aunch_plans:\001*\222A\331\001\032,Create and register " + "a launch plan definitionJB\n\003400\022;\n9Retur" + "ned for bad request that may have failed" + " validation.Je\n\003409\022^\n\\Returned for a re" + "quest that references an identical entit" + "y that has already been registered.\022\233\001\n\r" + "GetLaunchPlan\022 .flyteidl.admin.ObjectGet" + "Request\032\032.flyteidl.admin.LaunchPlan\"L\202\323\344" + "\223\002F\022D/api/v1/launch_plans/{id.project}/{" + "id.domain}/{id.name}/{id.version}\022\244\001\n\021Li" + "stLaunchPlanIds\0220.flyteidl.admin.NamedEn" + "tityIdentifierListRequest\032).flyteidl.adm" + "in.NamedEntityIdentifierList\"2\202\323\344\223\002,\022*/a" + "pi/v1/launch_plan_ids/{project}/{domain}" + "\022\310\001\n\017ListLaunchPlans\022#.flyteidl.admin.Re" + "sourceListRequest\032\036.flyteidl.admin.Launc" + "hPlanList\"p\202\323\344\223\002j\0227/api/v1/launch_plans/" + "{id.project}/{id.domain}/{id.name}Z/\022-/a" + "pi/v1/launch_plans/{id.project}/{id.doma" + "in}\022\266\001\n\020UpdateLaunchPlan\022\'.flyteidl.admi" + "n.LaunchPlanUpdateRequest\032(.flyteidl.adm" + "in.LaunchPlanUpdateResponse\"O\202\323\344\223\002I\032D/ap" + "i/v1/launch_plans/{id.project}/{id.domai" + "n}/{id.name}/{id.version}:\001*\022\316\002\n\017CreateE" + "xecution\022&.flyteidl.admin.ExecutionCreat" + "eRequest\032\'.flyteidl.admin.ExecutionCreat" + "eResponse\"\351\001\202\323\344\223\002\027\"\022/api/v1/executions:\001" + "*\222A\310\001\032\033Create a workflow executionJB\n\00340" + "0\022;\n9Returned for bad request that may h" + "ave failed validation.Je\n\003409\022^\n\\Returne" + "d for a request that references an ident" + "ical entity that has already been regist" + "ered.\022\335\002\n\021RelaunchExecution\022(.flyteidl.a" + "dmin.ExecutionRelaunchRequest\032\'.flyteidl" + ".admin.ExecutionCreateResponse\"\364\001\202\323\344\223\002 \"" + "\033/api/v1/executions/relaunch:\001*\222A\312\001\032\035Rel" + "aunch a workflow executionJB\n\003400\022;\n9Ret" + "urned for bad request that may have fail" + "ed validation.Je\n\003409\022^\n\\Returned for a " + "request that references an identical ent" + "ity that has already been registered.\022\225\001" + "\n\014GetExecution\022+.flyteidl.admin.Workflow" + "ExecutionGetRequest\032\031.flyteidl.admin.Exe" + "cution\"=\202\323\344\223\0027\0225/api/v1/executions/{id.p" + "roject}/{id.domain}/{id.name}\022\271\001\n\020GetExe" + "cutionData\022/.flyteidl.admin.WorkflowExec" + "utionGetDataRequest\0320.flyteidl.admin.Wor" + "kflowExecutionGetDataResponse\"B\202\323\344\223\002<\022:/" + "api/v1/data/executions/{id.project}/{id." + "domain}/{id.name}\022\211\001\n\016ListExecutions\022#.f" + "lyteidl.admin.ResourceListRequest\032\035.flyt" + "eidl.admin.ExecutionList\"3\202\323\344\223\002-\022+/api/v" + "1/executions/{id.project}/{id.domain}\022\255\001" + "\n\022TerminateExecution\022).flyteidl.admin.Ex" + "ecutionTerminateRequest\032*.flyteidl.admin" + ".ExecutionTerminateResponse\"@\202\323\344\223\002:*5/ap" + "i/v1/executions/{id.project}/{id.domain}" + "/{id.name}:\001*\022\322\001\n\020GetNodeExecution\022\'.fly" + "teidl.admin.NodeExecutionGetRequest\032\035.fl" + "yteidl.admin.NodeExecution\"v\202\323\344\223\002p\022n/api" + "/v1/node_executions/{id.execution_id.pro" + "ject}/{id.execution_id.domain}/{id.execu" + "tion_id.name}/{id.node_id}\022\336\001\n\022ListNodeE" + "xecutions\022(.flyteidl.admin.NodeExecution" + "ListRequest\032!.flyteidl.admin.NodeExecuti" + "onList\"{\202\323\344\223\002u\022s/api/v1/node_executions/" + "{workflow_execution_id.project}/{workflo" + "w_execution_id.domain}/{workflow_executi" + "on_id.name}\022\245\004\n\031ListNodeExecutionsForTas" + "k\022/.flyteidl.admin.NodeExecutionForTaskL" + "istRequest\032!.flyteidl.admin.NodeExecutio" + "nList\"\263\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_" + "executions/{task_execution_id.node_execu" + "tion_id.execution_id.project}/{task_exec" + "ution_id.node_execution_id.execution_id." + "domain}/{task_execution_id.node_executio" + "n_id.execution_id.name}/{task_execution_" + "id.node_execution_id.node_id}/{task_exec" + "ution_id.task_id.project}/{task_executio" + "n_id.task_id.domain}/{task_execution_id." + "task_id.name}/{task_execution_id.task_id" + ".version}/{task_execution_id.retry_attem" + "pt}\022\356\001\n\024GetNodeExecutionData\022+.flyteidl." + "admin.NodeExecutionGetDataRequest\032,.flyt" + "eidl.admin.NodeExecutionGetDataResponse\"" + "{\202\323\344\223\002u\022s/api/v1/data/node_executions/{i" + "d.execution_id.project}/{id.execution_id" + ".domain}/{id.execution_id.name}/{id.node" + "_id}\022\245\002\n\017RegisterProject\022&.flyteidl.admi" + "n.ProjectRegisterRequest\032\'.flyteidl.admi" + "n.ProjectRegisterResponse\"\300\001\202\323\344\223\002\025\"\020/api" + "/v1/projects:\001*\222A\241\001\032+Register a project " + "along with valid domainsJ.\n\003201\022\'\n%Retur" + "ned for successful registration.JB\n\003400\022" + ";\n9Returned for bad request that may hav" + "e failed validation.\022f\n\014ListProjects\022\".f" + "lyteidl.admin.ProjectListRequest\032\030.flyte" + "idl.admin.Projects\"\030\202\323\344\223\002\022\022\020/api/v1/proj" + "ects\022\231\001\n\023CreateWorkflowEvent\022-.flyteidl." + "admin.WorkflowExecutionEventRequest\032..fl" + "yteidl.admin.WorkflowExecutionEventRespo" + "nse\"#\202\323\344\223\002\035\"\030/api/v1/events/workflows:\001*" + "\022\211\001\n\017CreateNodeEvent\022).flyteidl.admin.No" + "deExecutionEventRequest\032*.flyteidl.admin" + ".NodeExecutionEventResponse\"\037\202\323\344\223\002\031\"\024/ap" + "i/v1/events/nodes:\001*\022\211\001\n\017CreateTaskEvent" + "\022).flyteidl.admin.TaskExecutionEventRequ" + "est\032*.flyteidl.admin.TaskExecutionEventR" + "esponse\"\037\202\323\344\223\002\031\"\024/api/v1/events/tasks:\001*" + "\022\200\003\n\020GetTaskExecution\022\'.flyteidl.admin.T" + "askExecutionGetRequest\032\035.flyteidl.admin." + "TaskExecution\"\243\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_e" + "xecutions/{id.node_execution_id.executio" + "n_id.project}/{id.node_execution_id.exec" + "ution_id.domain}/{id.node_execution_id.e" + "xecution_id.name}/{id.node_execution_id." + "node_id}/{id.task_id.project}/{id.task_i" + "d.domain}/{id.task_id.name}/{id.task_id." + "version}/{id.retry_attempt}\022\230\002\n\022ListTask" + "Executions\022(.flyteidl.admin.TaskExecutio" + "nListRequest\032!.flyteidl.admin.TaskExecut" + "ionList\"\264\001\202\323\344\223\002\255\001\022\252\001/api/v1/task_executi" + "ons/{node_execution_id.execution_id.proj" + "ect}/{node_execution_id.execution_id.dom" + "ain}/{node_execution_id.execution_id.nam" + "e}/{node_execution_id.node_id}\022\234\003\n\024GetTa" + "skExecutionData\022+.flyteidl.admin.TaskExe" + "cutionGetDataRequest\032,.flyteidl.admin.Ta" + "skExecutionGetDataResponse\"\250\002\202\323\344\223\002\241\002\022\236\002/" + "api/v1/data/task_executions/{id.node_exe" + "cution_id.execution_id.project}/{id.node" + "_execution_id.execution_id.domain}/{id.n" + "ode_execution_id.execution_id.name}/{id." + "node_execution_id.node_id}/{id.task_id.p" + "roject}/{id.task_id.domain}/{id.task_id." + "name}/{id.task_id.version}/{id.retry_att" + "empt}B5Z3github.com/lyft/flyteidl/gen/pb" + "-go/flyteidl/serviceb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 7708); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "flyteidl/service/admin.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fapi_2fannotations_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fproject_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2ftask_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fworkflow_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2flaunch_5fplan_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fevent_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fnode_5fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2ftask_5fexecution_2eproto::AddDescriptors(); + ::protobuf_flyteidl_2fadmin_2fcommon_2eproto::AddDescriptors(); + ::protobuf_protoc_2dgen_2dswagger_2foptions_2fannotations_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static GOOGLE_PROTOBUF_DECLARE_ONCE(once); + ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_flyteidl_2fservice_2fadmin_2eproto +namespace flyteidl { +namespace service { + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h new file mode 100644 index 0000000000..4fa68895e7 --- /dev/null +++ b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +#ifndef PROTOBUF_flyteidl_2fservice_2fadmin_2eproto__INCLUDED +#define PROTOBUF_flyteidl_2fservice_2fadmin_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3005000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include "google/api/annotations.pb.h" +#include "flyteidl/admin/project.pb.h" +#include "flyteidl/admin/task.pb.h" +#include "flyteidl/admin/workflow.pb.h" +#include "flyteidl/admin/launch_plan.pb.h" +#include "flyteidl/admin/event.pb.h" +#include "flyteidl/admin/execution.pb.h" +#include "flyteidl/admin/node_execution.pb.h" +#include "flyteidl/admin/task_execution.pb.h" +#include "flyteidl/admin/common.pb.h" +#include "protoc-gen-swagger/options/annotations.pb.h" +// @@protoc_insertion_point(includes) + +namespace protobuf_flyteidl_2fservice_2fadmin_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +inline void InitDefaults() { +} +} // namespace protobuf_flyteidl_2fservice_2fadmin_2eproto +namespace flyteidl { +namespace service { +} // namespace service +} // namespace flyteidl +namespace flyteidl { +namespace service { + +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace flyteidl + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_flyteidl_2fservice_2fadmin_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go new file mode 100644 index 0000000000..ceb6e57615 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go @@ -0,0 +1,917 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/common.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type Sort_Direction int32 + +const ( + Sort_DESCENDING Sort_Direction = 0 + Sort_ASCENDING Sort_Direction = 1 +) + +var Sort_Direction_name = map[int32]string{ + 0: "DESCENDING", + 1: "ASCENDING", +} +var Sort_Direction_value = map[string]int32{ + "DESCENDING": 0, + "ASCENDING": 1, +} + +func (x Sort_Direction) String() string { + return proto.EnumName(Sort_Direction_name, int32(x)) +} +func (Sort_Direction) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{1, 0} +} + +// Encapsulation of fields that identifies a Flyte resource. +// A resource can internally have multiple versions. +type NamedEntityIdentifier struct { + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + // The combination of project + domain + name uniquely identifies the resource. + // +optional - in certain contexts - like 'List API', 'Launch plans' + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityIdentifier) Reset() { *m = NamedEntityIdentifier{} } +func (m *NamedEntityIdentifier) String() string { return proto.CompactTextString(m) } +func (*NamedEntityIdentifier) ProtoMessage() {} +func (*NamedEntityIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{0} +} +func (m *NamedEntityIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityIdentifier.Unmarshal(m, b) +} +func (m *NamedEntityIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityIdentifier.Marshal(b, m, deterministic) +} +func (dst *NamedEntityIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityIdentifier.Merge(dst, src) +} +func (m *NamedEntityIdentifier) XXX_Size() int { + return xxx_messageInfo_NamedEntityIdentifier.Size(m) +} +func (m *NamedEntityIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityIdentifier proto.InternalMessageInfo + +func (m *NamedEntityIdentifier) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *NamedEntityIdentifier) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *NamedEntityIdentifier) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Species sort ordering in a list request. +type Sort struct { + // Indicates an attribute to sort the response values. + // TODO(katrogan): Add string validation here. This should never be empty. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Indicates the direction to apply sort key for response values. + // +optional + Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.admin.Sort_Direction" json:"direction,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Sort) Reset() { *m = Sort{} } +func (m *Sort) String() string { return proto.CompactTextString(m) } +func (*Sort) ProtoMessage() {} +func (*Sort) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{1} +} +func (m *Sort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Sort.Unmarshal(m, b) +} +func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Sort.Marshal(b, m, deterministic) +} +func (dst *Sort) XXX_Merge(src proto.Message) { + xxx_messageInfo_Sort.Merge(dst, src) +} +func (m *Sort) XXX_Size() int { + return xxx_messageInfo_Sort.Size(m) +} +func (m *Sort) XXX_DiscardUnknown() { + xxx_messageInfo_Sort.DiscardUnknown(m) +} + +var xxx_messageInfo_Sort proto.InternalMessageInfo + +func (m *Sort) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *Sort) GetDirection() Sort_Direction { + if m != nil { + return m.Direction + } + return Sort_DESCENDING +} + +// Represents a request structure to list identifiers. +type NamedEntityIdentifierListRequest struct { + // Name of the project that contains the identifiers. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NamedEntityIdentifierListRequest) Reset() { *m = NamedEntityIdentifierListRequest{} } +func (m *NamedEntityIdentifierListRequest) String() string { return proto.CompactTextString(m) } +func (*NamedEntityIdentifierListRequest) ProtoMessage() {} +func (*NamedEntityIdentifierListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{2} +} +func (m *NamedEntityIdentifierListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityIdentifierListRequest.Unmarshal(m, b) +} +func (m *NamedEntityIdentifierListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityIdentifierListRequest.Marshal(b, m, deterministic) +} +func (dst *NamedEntityIdentifierListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityIdentifierListRequest.Merge(dst, src) +} +func (m *NamedEntityIdentifierListRequest) XXX_Size() int { + return xxx_messageInfo_NamedEntityIdentifierListRequest.Size(m) +} +func (m *NamedEntityIdentifierListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityIdentifierListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityIdentifierListRequest proto.InternalMessageInfo + +func (m *NamedEntityIdentifierListRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *NamedEntityIdentifierListRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *NamedEntityIdentifierListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NamedEntityIdentifierListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NamedEntityIdentifierListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Represents a list of Identifiers. +type NamedEntityIdentifierList struct { + // A list of identifiers. + Entities []*NamedEntityIdentifier `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,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 *NamedEntityIdentifierList) Reset() { *m = NamedEntityIdentifierList{} } +func (m *NamedEntityIdentifierList) String() string { return proto.CompactTextString(m) } +func (*NamedEntityIdentifierList) ProtoMessage() {} +func (*NamedEntityIdentifierList) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{3} +} +func (m *NamedEntityIdentifierList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NamedEntityIdentifierList.Unmarshal(m, b) +} +func (m *NamedEntityIdentifierList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NamedEntityIdentifierList.Marshal(b, m, deterministic) +} +func (dst *NamedEntityIdentifierList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamedEntityIdentifierList.Merge(dst, src) +} +func (m *NamedEntityIdentifierList) XXX_Size() int { + return xxx_messageInfo_NamedEntityIdentifierList.Size(m) +} +func (m *NamedEntityIdentifierList) XXX_DiscardUnknown() { + xxx_messageInfo_NamedEntityIdentifierList.DiscardUnknown(m) +} + +var xxx_messageInfo_NamedEntityIdentifierList proto.InternalMessageInfo + +func (m *NamedEntityIdentifierList) GetEntities() []*NamedEntityIdentifier { + if m != nil { + return m.Entities + } + return nil +} + +func (m *NamedEntityIdentifierList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a structure to fetch a single resource. +type ObjectGetRequest struct { + // Indicates a unique version of resource. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ObjectGetRequest) Reset() { *m = ObjectGetRequest{} } +func (m *ObjectGetRequest) String() string { return proto.CompactTextString(m) } +func (*ObjectGetRequest) ProtoMessage() {} +func (*ObjectGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{4} +} +func (m *ObjectGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ObjectGetRequest.Unmarshal(m, b) +} +func (m *ObjectGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ObjectGetRequest.Marshal(b, m, deterministic) +} +func (dst *ObjectGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ObjectGetRequest.Merge(dst, src) +} +func (m *ObjectGetRequest) XXX_Size() int { + return xxx_messageInfo_ObjectGetRequest.Size(m) +} +func (m *ObjectGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ObjectGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ObjectGetRequest proto.InternalMessageInfo + +func (m *ObjectGetRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +// Represents a request structure to retrieve a list of resources. +// Resources include: Task, Workflow, LaunchPlan +type ResourceListRequest struct { + // id represents the unique identifier of the resource. + Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceListRequest) Reset() { *m = ResourceListRequest{} } +func (m *ResourceListRequest) String() string { return proto.CompactTextString(m) } +func (*ResourceListRequest) ProtoMessage() {} +func (*ResourceListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{5} +} +func (m *ResourceListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceListRequest.Unmarshal(m, b) +} +func (m *ResourceListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceListRequest.Marshal(b, m, deterministic) +} +func (dst *ResourceListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceListRequest.Merge(dst, src) +} +func (m *ResourceListRequest) XXX_Size() int { + return xxx_messageInfo_ResourceListRequest.Size(m) +} +func (m *ResourceListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceListRequest proto.InternalMessageInfo + +func (m *ResourceListRequest) GetId() *NamedEntityIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ResourceListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *ResourceListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *ResourceListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *ResourceListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +type EmailNotification struct { + // The list of email addresses recipients for this notification. + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EmailNotification) Reset() { *m = EmailNotification{} } +func (m *EmailNotification) String() string { return proto.CompactTextString(m) } +func (*EmailNotification) ProtoMessage() {} +func (*EmailNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{6} +} +func (m *EmailNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmailNotification.Unmarshal(m, b) +} +func (m *EmailNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmailNotification.Marshal(b, m, deterministic) +} +func (dst *EmailNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmailNotification.Merge(dst, src) +} +func (m *EmailNotification) XXX_Size() int { + return xxx_messageInfo_EmailNotification.Size(m) +} +func (m *EmailNotification) XXX_DiscardUnknown() { + xxx_messageInfo_EmailNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_EmailNotification proto.InternalMessageInfo + +func (m *EmailNotification) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +type PagerDutyNotification struct { + // Currently, PagerDuty notifications leverage email to trigger a notification. + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PagerDutyNotification) Reset() { *m = PagerDutyNotification{} } +func (m *PagerDutyNotification) String() string { return proto.CompactTextString(m) } +func (*PagerDutyNotification) ProtoMessage() {} +func (*PagerDutyNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{7} +} +func (m *PagerDutyNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PagerDutyNotification.Unmarshal(m, b) +} +func (m *PagerDutyNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PagerDutyNotification.Marshal(b, m, deterministic) +} +func (dst *PagerDutyNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_PagerDutyNotification.Merge(dst, src) +} +func (m *PagerDutyNotification) XXX_Size() int { + return xxx_messageInfo_PagerDutyNotification.Size(m) +} +func (m *PagerDutyNotification) XXX_DiscardUnknown() { + xxx_messageInfo_PagerDutyNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_PagerDutyNotification proto.InternalMessageInfo + +func (m *PagerDutyNotification) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +type SlackNotification struct { + // Currently, Slack notifications leverage email to trigger a notification. + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SlackNotification) Reset() { *m = SlackNotification{} } +func (m *SlackNotification) String() string { return proto.CompactTextString(m) } +func (*SlackNotification) ProtoMessage() {} +func (*SlackNotification) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{8} +} +func (m *SlackNotification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SlackNotification.Unmarshal(m, b) +} +func (m *SlackNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SlackNotification.Marshal(b, m, deterministic) +} +func (dst *SlackNotification) XXX_Merge(src proto.Message) { + xxx_messageInfo_SlackNotification.Merge(dst, src) +} +func (m *SlackNotification) XXX_Size() int { + return xxx_messageInfo_SlackNotification.Size(m) +} +func (m *SlackNotification) XXX_DiscardUnknown() { + xxx_messageInfo_SlackNotification.DiscardUnknown(m) +} + +var xxx_messageInfo_SlackNotification proto.InternalMessageInfo + +func (m *SlackNotification) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +// Represents a structure for notifications based on execution status. +// The Notification content is configured within Admin. Future iterations could +// expose configuring notifications with custom content. +type Notification struct { + // A list of phases to which users can associate the notifications to. + Phases []core.WorkflowExecution_Phase `protobuf:"varint,1,rep,packed,name=phases,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phases,omitempty"` + // Types that are valid to be assigned to Type: + // *Notification_Email + // *Notification_PagerDuty + // *Notification_Slack + Type isNotification_Type `protobuf_oneof:"type"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Notification) Reset() { *m = Notification{} } +func (m *Notification) String() string { return proto.CompactTextString(m) } +func (*Notification) ProtoMessage() {} +func (*Notification) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{9} +} +func (m *Notification) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Notification.Unmarshal(m, b) +} +func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Notification.Marshal(b, m, deterministic) +} +func (dst *Notification) XXX_Merge(src proto.Message) { + xxx_messageInfo_Notification.Merge(dst, src) +} +func (m *Notification) XXX_Size() int { + return xxx_messageInfo_Notification.Size(m) +} +func (m *Notification) XXX_DiscardUnknown() { + xxx_messageInfo_Notification.DiscardUnknown(m) +} + +var xxx_messageInfo_Notification proto.InternalMessageInfo + +func (m *Notification) GetPhases() []core.WorkflowExecution_Phase { + if m != nil { + return m.Phases + } + return nil +} + +type isNotification_Type interface { + isNotification_Type() +} + +type Notification_Email struct { + Email *EmailNotification `protobuf:"bytes,2,opt,name=email,proto3,oneof"` +} + +type Notification_PagerDuty struct { + PagerDuty *PagerDutyNotification `protobuf:"bytes,3,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` +} + +type Notification_Slack struct { + Slack *SlackNotification `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` +} + +func (*Notification_Email) isNotification_Type() {} + +func (*Notification_PagerDuty) isNotification_Type() {} + +func (*Notification_Slack) isNotification_Type() {} + +func (m *Notification) GetType() isNotification_Type { + if m != nil { + return m.Type + } + return nil +} + +func (m *Notification) GetEmail() *EmailNotification { + if x, ok := m.GetType().(*Notification_Email); ok { + return x.Email + } + return nil +} + +func (m *Notification) GetPagerDuty() *PagerDutyNotification { + if x, ok := m.GetType().(*Notification_PagerDuty); ok { + return x.PagerDuty + } + return nil +} + +func (m *Notification) GetSlack() *SlackNotification { + if x, ok := m.GetType().(*Notification_Slack); ok { + return x.Slack + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Notification) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Notification_OneofMarshaler, _Notification_OneofUnmarshaler, _Notification_OneofSizer, []interface{}{ + (*Notification_Email)(nil), + (*Notification_PagerDuty)(nil), + (*Notification_Slack)(nil), + } +} + +func _Notification_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Notification) + // type + switch x := m.Type.(type) { + case *Notification_Email: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Email); err != nil { + return err + } + case *Notification_PagerDuty: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.PagerDuty); err != nil { + return err + } + case *Notification_Slack: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Slack); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Notification.Type has unexpected type %T", x) + } + return nil +} + +func _Notification_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Notification) + switch tag { + case 2: // type.email + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(EmailNotification) + err := b.DecodeMessage(msg) + m.Type = &Notification_Email{msg} + return true, err + case 3: // type.pager_duty + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(PagerDutyNotification) + err := b.DecodeMessage(msg) + m.Type = &Notification_PagerDuty{msg} + return true, err + case 4: // type.slack + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SlackNotification) + err := b.DecodeMessage(msg) + m.Type = &Notification_Slack{msg} + return true, err + default: + return false, nil + } +} + +func _Notification_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Notification) + // type + switch x := m.Type.(type) { + case *Notification_Email: + s := proto.Size(x.Email) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Notification_PagerDuty: + s := proto.Size(x.PagerDuty) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Notification_Slack: + s := proto.Size(x.Slack) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Represents a string url and associated metadata used throughout the platform. +type UrlBlob struct { + // Actual url value. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // Represents the size of the file accessible at the above url. + Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UrlBlob) Reset() { *m = UrlBlob{} } +func (m *UrlBlob) String() string { return proto.CompactTextString(m) } +func (*UrlBlob) ProtoMessage() {} +func (*UrlBlob) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{10} +} +func (m *UrlBlob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UrlBlob.Unmarshal(m, b) +} +func (m *UrlBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UrlBlob.Marshal(b, m, deterministic) +} +func (dst *UrlBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_UrlBlob.Merge(dst, src) +} +func (m *UrlBlob) XXX_Size() int { + return xxx_messageInfo_UrlBlob.Size(m) +} +func (m *UrlBlob) XXX_DiscardUnknown() { + xxx_messageInfo_UrlBlob.DiscardUnknown(m) +} + +var xxx_messageInfo_UrlBlob proto.InternalMessageInfo + +func (m *UrlBlob) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *UrlBlob) GetBytes() int64 { + if m != nil { + return m.Bytes + } + return 0 +} + +// Label values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge labels defined at registration and execution time. +type Labels struct { + // Map of custom labels to be applied to the execution resource. + Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Labels) Reset() { *m = Labels{} } +func (m *Labels) String() string { return proto.CompactTextString(m) } +func (*Labels) ProtoMessage() {} +func (*Labels) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{11} +} +func (m *Labels) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Labels.Unmarshal(m, b) +} +func (m *Labels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Labels.Marshal(b, m, deterministic) +} +func (dst *Labels) XXX_Merge(src proto.Message) { + xxx_messageInfo_Labels.Merge(dst, src) +} +func (m *Labels) XXX_Size() int { + return xxx_messageInfo_Labels.Size(m) +} +func (m *Labels) XXX_DiscardUnknown() { + xxx_messageInfo_Labels.DiscardUnknown(m) +} + +var xxx_messageInfo_Labels proto.InternalMessageInfo + +func (m *Labels) GetValues() map[string]string { + if m != nil { + return m.Values + } + return nil +} + +// Annotation values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge annotations defined at registration and execution time. +type Annotations struct { + // Map of custom annotations to be applied to the execution resource. + Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Annotations) Reset() { *m = Annotations{} } +func (m *Annotations) String() string { return proto.CompactTextString(m) } +func (*Annotations) ProtoMessage() {} +func (*Annotations) Descriptor() ([]byte, []int) { + return fileDescriptor_common_08b9f09568cb42e9, []int{12} +} +func (m *Annotations) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Annotations.Unmarshal(m, b) +} +func (m *Annotations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Annotations.Marshal(b, m, deterministic) +} +func (dst *Annotations) XXX_Merge(src proto.Message) { + xxx_messageInfo_Annotations.Merge(dst, src) +} +func (m *Annotations) XXX_Size() int { + return xxx_messageInfo_Annotations.Size(m) +} +func (m *Annotations) XXX_DiscardUnknown() { + xxx_messageInfo_Annotations.DiscardUnknown(m) +} + +var xxx_messageInfo_Annotations proto.InternalMessageInfo + +func (m *Annotations) GetValues() map[string]string { + if m != nil { + return m.Values + } + return nil +} + +func init() { + proto.RegisterType((*NamedEntityIdentifier)(nil), "flyteidl.admin.NamedEntityIdentifier") + proto.RegisterType((*Sort)(nil), "flyteidl.admin.Sort") + proto.RegisterType((*NamedEntityIdentifierListRequest)(nil), "flyteidl.admin.NamedEntityIdentifierListRequest") + proto.RegisterType((*NamedEntityIdentifierList)(nil), "flyteidl.admin.NamedEntityIdentifierList") + proto.RegisterType((*ObjectGetRequest)(nil), "flyteidl.admin.ObjectGetRequest") + proto.RegisterType((*ResourceListRequest)(nil), "flyteidl.admin.ResourceListRequest") + proto.RegisterType((*EmailNotification)(nil), "flyteidl.admin.EmailNotification") + proto.RegisterType((*PagerDutyNotification)(nil), "flyteidl.admin.PagerDutyNotification") + proto.RegisterType((*SlackNotification)(nil), "flyteidl.admin.SlackNotification") + proto.RegisterType((*Notification)(nil), "flyteidl.admin.Notification") + proto.RegisterType((*UrlBlob)(nil), "flyteidl.admin.UrlBlob") + proto.RegisterType((*Labels)(nil), "flyteidl.admin.Labels") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.Labels.ValuesEntry") + proto.RegisterType((*Annotations)(nil), "flyteidl.admin.Annotations") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.Annotations.ValuesEntry") + proto.RegisterEnum("flyteidl.admin.Sort_Direction", Sort_Direction_name, Sort_Direction_value) +} + +func init() { proto.RegisterFile("flyteidl/admin/common.proto", fileDescriptor_common_08b9f09568cb42e9) } + +var fileDescriptor_common_08b9f09568cb42e9 = []byte{ + // 717 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5d, 0x6f, 0xd3, 0x4a, + 0x10, 0xad, 0x9d, 0xaf, 0x9b, 0xc9, 0x6d, 0x6e, 0xba, 0xb7, 0xbd, 0x72, 0x7b, 0x45, 0x15, 0x2c, + 0x01, 0x2d, 0x52, 0x1d, 0x35, 0x15, 0x12, 0xad, 0xa0, 0xa8, 0x21, 0xa1, 0xad, 0x54, 0x85, 0xca, + 0x15, 0x20, 0x21, 0xa1, 0xca, 0x1f, 0x9b, 0x74, 0x89, 0xed, 0x35, 0xeb, 0x35, 0xe0, 0x27, 0x24, + 0xde, 0x78, 0xe7, 0x7f, 0xf0, 0x1b, 0xf8, 0x67, 0x68, 0x37, 0xb1, 0xf3, 0x51, 0x23, 0x41, 0xc5, + 0x9b, 0x67, 0xe6, 0x9c, 0xf1, 0x99, 0xe3, 0xf1, 0x2e, 0xfc, 0x3f, 0xf0, 0x12, 0x8e, 0x89, 0xeb, + 0xb5, 0x2c, 0xd7, 0x27, 0x41, 0xcb, 0xa1, 0xbe, 0x4f, 0x03, 0x23, 0x64, 0x94, 0x53, 0x54, 0x4f, + 0x8b, 0x86, 0x2c, 0x6e, 0xdc, 0xca, 0xc0, 0x0e, 0x65, 0xb8, 0x85, 0x3f, 0x62, 0x27, 0xe6, 0x24, + 0x85, 0x6f, 0x6c, 0xce, 0x97, 0x89, 0x8b, 0x03, 0x4e, 0x06, 0x04, 0xb3, 0x71, 0x5d, 0x7f, 0x03, + 0x6b, 0x7d, 0xcb, 0xc7, 0x6e, 0x2f, 0xe0, 0x84, 0x27, 0xa7, 0x59, 0x19, 0x69, 0x50, 0x09, 0x19, + 0x7d, 0x8b, 0x1d, 0xae, 0x29, 0x4d, 0x65, 0xab, 0x6a, 0xa6, 0x21, 0xfa, 0x0f, 0xca, 0x2e, 0xf5, + 0x2d, 0x12, 0x68, 0xaa, 0x2c, 0x4c, 0x22, 0x84, 0xa0, 0x18, 0x58, 0x3e, 0xd6, 0x0a, 0x32, 0x2b, + 0x9f, 0xf5, 0xcf, 0x0a, 0x14, 0x2f, 0x28, 0xe3, 0xa8, 0x01, 0x85, 0x11, 0x4e, 0x26, 0xad, 0xc4, + 0x23, 0x7a, 0x04, 0x55, 0x97, 0x30, 0xec, 0x08, 0xb1, 0xb2, 0x53, 0xbd, 0xbd, 0x69, 0xcc, 0x0f, + 0x67, 0x08, 0xaa, 0xd1, 0x4d, 0x51, 0xe6, 0x94, 0xa0, 0xdf, 0x87, 0x6a, 0x96, 0x47, 0x75, 0x80, + 0x6e, 0xef, 0xe2, 0x69, 0xaf, 0xdf, 0x3d, 0xed, 0x1f, 0x37, 0x96, 0xd0, 0x32, 0x54, 0x8f, 0xb2, + 0x50, 0xd1, 0xbf, 0x29, 0xd0, 0xcc, 0x1d, 0xf2, 0x8c, 0x44, 0xdc, 0xc4, 0xef, 0x62, 0x1c, 0xf1, + 0x1b, 0xcc, 0xbb, 0x0a, 0x25, 0x8f, 0xf8, 0x84, 0xcb, 0x81, 0x97, 0xcd, 0x71, 0x20, 0xb2, 0x9c, + 0x8e, 0x70, 0xa0, 0x15, 0x25, 0x78, 0x1c, 0xa0, 0x1d, 0xa8, 0x44, 0x94, 0xf1, 0x4b, 0x3b, 0xd1, + 0x4a, 0x4d, 0x65, 0xab, 0xd6, 0x5e, 0xcd, 0x1b, 0xd5, 0x2c, 0x0b, 0x50, 0x27, 0xd1, 0x39, 0xac, + 0xff, 0x54, 0x30, 0x3a, 0x82, 0xbf, 0x44, 0xcc, 0x09, 0x8e, 0x34, 0xa5, 0x59, 0xd8, 0xaa, 0xb5, + 0xef, 0x2c, 0x36, 0xcb, 0x25, 0x9b, 0x19, 0x6d, 0x2a, 0x52, 0x9d, 0x11, 0xa9, 0x3f, 0x86, 0xc6, + 0x73, 0x5b, 0x8c, 0x7c, 0x8c, 0x33, 0x5b, 0xb6, 0x41, 0x25, 0xae, 0x74, 0xa4, 0xd6, 0x5e, 0x9f, + 0xbe, 0x46, 0x2c, 0x93, 0x31, 0xd3, 0x5a, 0x25, 0xae, 0xfe, 0x5d, 0x81, 0x7f, 0x4d, 0x1c, 0xd1, + 0x98, 0x39, 0x78, 0xd6, 0xd9, 0x07, 0x33, 0x2d, 0x7e, 0x51, 0xa9, 0x4a, 0xdc, 0xa9, 0xbd, 0x6a, + 0xae, 0xbd, 0x85, 0x59, 0x7b, 0x35, 0xa8, 0x0c, 0x88, 0xc7, 0x31, 0x8b, 0x26, 0xb6, 0xa7, 0xe1, + 0xef, 0x1a, 0x7f, 0x08, 0x2b, 0x3d, 0xdf, 0x22, 0x5e, 0x9f, 0x0a, 0x25, 0x8e, 0x25, 0xd7, 0x6b, + 0x1b, 0x1a, 0x0c, 0x3b, 0x24, 0x24, 0x38, 0xe0, 0xd1, 0x25, 0x16, 0x75, 0x69, 0x7c, 0xd5, 0xfc, + 0x67, 0x9a, 0x97, 0x34, 0xbd, 0x03, 0x6b, 0xe7, 0xd6, 0x10, 0xb3, 0x6e, 0xcc, 0x93, 0x9b, 0xf6, + 0x38, 0x84, 0x95, 0x0b, 0xcf, 0x72, 0x46, 0x37, 0xe5, 0x7f, 0x55, 0xe1, 0xef, 0x39, 0xee, 0x21, + 0x94, 0xc3, 0x2b, 0x2b, 0x9a, 0xac, 0x4b, 0xbd, 0x7d, 0x77, 0xe1, 0x3b, 0xbe, 0xa2, 0x6c, 0x34, + 0xf0, 0xe8, 0x87, 0x5e, 0x76, 0x76, 0x9c, 0x0b, 0xb8, 0x39, 0x61, 0xa1, 0x7d, 0x28, 0x8d, 0x5f, + 0xa8, 0x4a, 0x07, 0x6f, 0x2f, 0x3a, 0x78, 0xcd, 0xb1, 0x93, 0x25, 0x73, 0xcc, 0x40, 0xcf, 0x00, + 0x42, 0xe1, 0xc7, 0xa5, 0x1b, 0xf3, 0x44, 0x7e, 0xb3, 0x9c, 0x1d, 0xc8, 0x75, 0xec, 0x64, 0xc9, + 0xac, 0x86, 0x69, 0x41, 0x48, 0x88, 0x84, 0x27, 0xf2, 0xf3, 0xe6, 0x48, 0xb8, 0x66, 0x98, 0x90, + 0x20, 0x19, 0x9d, 0x32, 0x14, 0x79, 0x12, 0x62, 0x7d, 0x17, 0x2a, 0x2f, 0x98, 0xd7, 0xf1, 0xa8, + 0x2d, 0x0e, 0xa3, 0x98, 0x79, 0xe9, 0x61, 0x14, 0x33, 0x4f, 0xac, 0x95, 0x9d, 0x70, 0x1c, 0xc9, + 0x11, 0x0b, 0xe6, 0x38, 0xd0, 0x3f, 0x41, 0xf9, 0xcc, 0xb2, 0xb1, 0x17, 0xa1, 0x03, 0x28, 0xbf, + 0xb7, 0xbc, 0x38, 0xfb, 0xe3, 0xf4, 0x45, 0x01, 0x63, 0x9c, 0xf1, 0x52, 0x82, 0x7a, 0x01, 0x67, + 0x89, 0x39, 0x61, 0x6c, 0xec, 0x43, 0x6d, 0x26, 0x9d, 0x73, 0x12, 0xae, 0x42, 0x49, 0x42, 0xd3, + 0xbf, 0x51, 0x06, 0x07, 0xea, 0x43, 0x45, 0xff, 0xa2, 0x40, 0xed, 0x28, 0x08, 0x28, 0x97, 0x33, + 0x45, 0xe8, 0xc9, 0x82, 0x8c, 0x7b, 0x8b, 0x32, 0x66, 0xc0, 0x7f, 0x58, 0x4b, 0x67, 0xef, 0xf5, + 0xee, 0x90, 0xf0, 0xab, 0xd8, 0x36, 0x1c, 0xea, 0xb7, 0xbc, 0x64, 0xc0, 0x5b, 0xd9, 0xdd, 0x32, + 0xc4, 0x41, 0x2b, 0xb4, 0x77, 0x86, 0xb4, 0x35, 0x7f, 0x75, 0xd9, 0x65, 0x79, 0xcb, 0xec, 0xfd, + 0x08, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x45, 0xd4, 0xe6, 0xd3, 0x06, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go new file mode 100644 index 0000000000..409b769458 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.validate.go @@ -0,0 +1,1020 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/common.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on NamedEntityIdentifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + return nil +} + +// NamedEntityIdentifierValidationError is the validation error returned by +// NamedEntityIdentifier.Validate if the designated constraints aren't met. +type NamedEntityIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityIdentifierValidationError) ErrorName() string { + return "NamedEntityIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityIdentifierValidationError{} + +// Validate checks the field values on Sort with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Sort) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + // no validation rules for Direction + + return nil +} + +// SortValidationError is the validation error returned by Sort.Validate if the +// designated constraints aren't met. +type SortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SortValidationError) ErrorName() string { return "SortValidationError" } + +// Error satisfies the builtin error interface +func (e SortValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SortValidationError{} + +// Validate checks the field values on NamedEntityIdentifierListRequest with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *NamedEntityIdentifierListRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Limit + + // no validation rules for Token + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityIdentifierListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NamedEntityIdentifierListRequestValidationError is the validation error +// returned by NamedEntityIdentifierListRequest.Validate if the designated +// constraints aren't met. +type NamedEntityIdentifierListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityIdentifierListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityIdentifierListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityIdentifierListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityIdentifierListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityIdentifierListRequestValidationError) ErrorName() string { + return "NamedEntityIdentifierListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityIdentifierListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityIdentifierListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityIdentifierListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityIdentifierListRequestValidationError{} + +// Validate checks the field values on NamedEntityIdentifierList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NamedEntityIdentifierList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetEntities() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NamedEntityIdentifierListValidationError{ + field: fmt.Sprintf("Entities[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// NamedEntityIdentifierListValidationError is the validation error returned by +// NamedEntityIdentifierList.Validate if the designated constraints aren't met. +type NamedEntityIdentifierListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NamedEntityIdentifierListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NamedEntityIdentifierListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NamedEntityIdentifierListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NamedEntityIdentifierListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NamedEntityIdentifierListValidationError) ErrorName() string { + return "NamedEntityIdentifierListValidationError" +} + +// Error satisfies the builtin error interface +func (e NamedEntityIdentifierListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNamedEntityIdentifierList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NamedEntityIdentifierListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NamedEntityIdentifierListValidationError{} + +// Validate checks the field values on ObjectGetRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ObjectGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ObjectGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ObjectGetRequestValidationError is the validation error returned by +// ObjectGetRequest.Validate if the designated constraints aren't met. +type ObjectGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ObjectGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ObjectGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ObjectGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ObjectGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ObjectGetRequestValidationError) ErrorName() string { return "ObjectGetRequestValidationError" } + +// Error satisfies the builtin error interface +func (e ObjectGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sObjectGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ObjectGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ObjectGetRequestValidationError{} + +// Validate checks the field values on ResourceListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ResourceListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceListRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ResourceListRequestValidationError is the validation error returned by +// ResourceListRequest.Validate if the designated constraints aren't met. +type ResourceListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceListRequestValidationError) ErrorName() string { + return "ResourceListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ResourceListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceListRequestValidationError{} + +// Validate checks the field values on EmailNotification with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *EmailNotification) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// EmailNotificationValidationError is the validation error returned by +// EmailNotification.Validate if the designated constraints aren't met. +type EmailNotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EmailNotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EmailNotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EmailNotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EmailNotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EmailNotificationValidationError) ErrorName() string { + return "EmailNotificationValidationError" +} + +// Error satisfies the builtin error interface +func (e EmailNotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEmailNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EmailNotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EmailNotificationValidationError{} + +// Validate checks the field values on PagerDutyNotification with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *PagerDutyNotification) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// PagerDutyNotificationValidationError is the validation error returned by +// PagerDutyNotification.Validate if the designated constraints aren't met. +type PagerDutyNotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PagerDutyNotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PagerDutyNotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PagerDutyNotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PagerDutyNotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PagerDutyNotificationValidationError) ErrorName() string { + return "PagerDutyNotificationValidationError" +} + +// Error satisfies the builtin error interface +func (e PagerDutyNotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPagerDutyNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PagerDutyNotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PagerDutyNotificationValidationError{} + +// Validate checks the field values on SlackNotification with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SlackNotification) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SlackNotificationValidationError is the validation error returned by +// SlackNotification.Validate if the designated constraints aren't met. +type SlackNotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SlackNotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SlackNotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SlackNotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SlackNotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SlackNotificationValidationError) ErrorName() string { + return "SlackNotificationValidationError" +} + +// Error satisfies the builtin error interface +func (e SlackNotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSlackNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SlackNotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SlackNotificationValidationError{} + +// Validate checks the field values on Notification with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Notification) Validate() error { + if m == nil { + return nil + } + + switch m.Type.(type) { + + case *Notification_Email: + + if v, ok := interface{}(m.GetEmail()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationValidationError{ + field: "Email", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Notification_PagerDuty: + + if v, ok := interface{}(m.GetPagerDuty()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationValidationError{ + field: "PagerDuty", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Notification_Slack: + + if v, ok := interface{}(m.GetSlack()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationValidationError{ + field: "Slack", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NotificationValidationError is the validation error returned by +// Notification.Validate if the designated constraints aren't met. +type NotificationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NotificationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NotificationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NotificationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NotificationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NotificationValidationError) ErrorName() string { return "NotificationValidationError" } + +// Error satisfies the builtin error interface +func (e NotificationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNotification.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NotificationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NotificationValidationError{} + +// Validate checks the field values on UrlBlob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *UrlBlob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Url + + // no validation rules for Bytes + + return nil +} + +// UrlBlobValidationError is the validation error returned by UrlBlob.Validate +// if the designated constraints aren't met. +type UrlBlobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e UrlBlobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e UrlBlobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e UrlBlobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e UrlBlobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e UrlBlobValidationError) ErrorName() string { return "UrlBlobValidationError" } + +// Error satisfies the builtin error interface +func (e UrlBlobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sUrlBlob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = UrlBlobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = UrlBlobValidationError{} + +// Validate checks the field values on Labels with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Labels) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Values + + return nil +} + +// LabelsValidationError is the validation error returned by Labels.Validate if +// the designated constraints aren't met. +type LabelsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LabelsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LabelsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LabelsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LabelsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LabelsValidationError) ErrorName() string { return "LabelsValidationError" } + +// Error satisfies the builtin error interface +func (e LabelsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLabels.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LabelsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LabelsValidationError{} + +// Validate checks the field values on Annotations with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *Annotations) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Values + + return nil +} + +// AnnotationsValidationError is the validation error returned by +// Annotations.Validate if the designated constraints aren't met. +type AnnotationsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AnnotationsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AnnotationsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AnnotationsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AnnotationsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AnnotationsValidationError) ErrorName() string { return "AnnotationsValidationError" } + +// Error satisfies the builtin error interface +func (e AnnotationsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAnnotations.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AnnotationsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AnnotationsValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json new file mode 100644 index 0000000000..69acf06451 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/common.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go new file mode 100644 index 0000000000..0d9845075b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go @@ -0,0 +1,446 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/event.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import event "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type EventErrorAlreadyInTerminalState struct { + CurrentPhase string `protobuf:"bytes,1,opt,name=current_phase,json=currentPhase,proto3" json:"current_phase,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EventErrorAlreadyInTerminalState) Reset() { *m = EventErrorAlreadyInTerminalState{} } +func (m *EventErrorAlreadyInTerminalState) String() string { return proto.CompactTextString(m) } +func (*EventErrorAlreadyInTerminalState) ProtoMessage() {} +func (*EventErrorAlreadyInTerminalState) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{0} +} +func (m *EventErrorAlreadyInTerminalState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EventErrorAlreadyInTerminalState.Unmarshal(m, b) +} +func (m *EventErrorAlreadyInTerminalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EventErrorAlreadyInTerminalState.Marshal(b, m, deterministic) +} +func (dst *EventErrorAlreadyInTerminalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventErrorAlreadyInTerminalState.Merge(dst, src) +} +func (m *EventErrorAlreadyInTerminalState) XXX_Size() int { + return xxx_messageInfo_EventErrorAlreadyInTerminalState.Size(m) +} +func (m *EventErrorAlreadyInTerminalState) XXX_DiscardUnknown() { + xxx_messageInfo_EventErrorAlreadyInTerminalState.DiscardUnknown(m) +} + +var xxx_messageInfo_EventErrorAlreadyInTerminalState proto.InternalMessageInfo + +func (m *EventErrorAlreadyInTerminalState) GetCurrentPhase() string { + if m != nil { + return m.CurrentPhase + } + return "" +} + +type EventFailureReason struct { + // Types that are valid to be assigned to Reason: + // *EventFailureReason_AlreadyInTerminalState + Reason isEventFailureReason_Reason `protobuf_oneof:"reason"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EventFailureReason) Reset() { *m = EventFailureReason{} } +func (m *EventFailureReason) String() string { return proto.CompactTextString(m) } +func (*EventFailureReason) ProtoMessage() {} +func (*EventFailureReason) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{1} +} +func (m *EventFailureReason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EventFailureReason.Unmarshal(m, b) +} +func (m *EventFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EventFailureReason.Marshal(b, m, deterministic) +} +func (dst *EventFailureReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventFailureReason.Merge(dst, src) +} +func (m *EventFailureReason) XXX_Size() int { + return xxx_messageInfo_EventFailureReason.Size(m) +} +func (m *EventFailureReason) XXX_DiscardUnknown() { + xxx_messageInfo_EventFailureReason.DiscardUnknown(m) +} + +var xxx_messageInfo_EventFailureReason proto.InternalMessageInfo + +type isEventFailureReason_Reason interface { + isEventFailureReason_Reason() +} + +type EventFailureReason_AlreadyInTerminalState struct { + AlreadyInTerminalState *EventErrorAlreadyInTerminalState `protobuf:"bytes,1,opt,name=already_in_terminal_state,json=alreadyInTerminalState,proto3,oneof"` +} + +func (*EventFailureReason_AlreadyInTerminalState) isEventFailureReason_Reason() {} + +func (m *EventFailureReason) GetReason() isEventFailureReason_Reason { + if m != nil { + return m.Reason + } + return nil +} + +func (m *EventFailureReason) GetAlreadyInTerminalState() *EventErrorAlreadyInTerminalState { + if x, ok := m.GetReason().(*EventFailureReason_AlreadyInTerminalState); ok { + return x.AlreadyInTerminalState + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*EventFailureReason) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _EventFailureReason_OneofMarshaler, _EventFailureReason_OneofUnmarshaler, _EventFailureReason_OneofSizer, []interface{}{ + (*EventFailureReason_AlreadyInTerminalState)(nil), + } +} + +func _EventFailureReason_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*EventFailureReason) + // reason + switch x := m.Reason.(type) { + case *EventFailureReason_AlreadyInTerminalState: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.AlreadyInTerminalState); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("EventFailureReason.Reason has unexpected type %T", x) + } + return nil +} + +func _EventFailureReason_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*EventFailureReason) + switch tag { + case 1: // reason.already_in_terminal_state + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(EventErrorAlreadyInTerminalState) + err := b.DecodeMessage(msg) + m.Reason = &EventFailureReason_AlreadyInTerminalState{msg} + return true, err + default: + return false, nil + } +} + +func _EventFailureReason_OneofSizer(msg proto.Message) (n int) { + m := msg.(*EventFailureReason) + // reason + switch x := m.Reason.(type) { + case *EventFailureReason_AlreadyInTerminalState: + s := proto.Size(x.AlreadyInTerminalState) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Request to send a notification that a workflow execution event has occurred. +type WorkflowExecutionEventRequest struct { + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.WorkflowExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionEventRequest) Reset() { *m = WorkflowExecutionEventRequest{} } +func (m *WorkflowExecutionEventRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionEventRequest) ProtoMessage() {} +func (*WorkflowExecutionEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{2} +} +func (m *WorkflowExecutionEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionEventRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionEventRequest.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionEventRequest.Merge(dst, src) +} +func (m *WorkflowExecutionEventRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionEventRequest.Size(m) +} +func (m *WorkflowExecutionEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionEventRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionEventRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *WorkflowExecutionEventRequest) GetEvent() *event.WorkflowExecutionEvent { + if m != nil { + return m.Event + } + return nil +} + +type WorkflowExecutionEventResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionEventResponse) Reset() { *m = WorkflowExecutionEventResponse{} } +func (m *WorkflowExecutionEventResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionEventResponse) ProtoMessage() {} +func (*WorkflowExecutionEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{3} +} +func (m *WorkflowExecutionEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionEventResponse.Unmarshal(m, b) +} +func (m *WorkflowExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionEventResponse.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionEventResponse.Merge(dst, src) +} +func (m *WorkflowExecutionEventResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionEventResponse.Size(m) +} +func (m *WorkflowExecutionEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionEventResponse proto.InternalMessageInfo + +// Request to send a notification that a node execution event has occurred. +type NodeExecutionEventRequest struct { + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.NodeExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionEventRequest) Reset() { *m = NodeExecutionEventRequest{} } +func (m *NodeExecutionEventRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionEventRequest) ProtoMessage() {} +func (*NodeExecutionEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{4} +} +func (m *NodeExecutionEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionEventRequest.Unmarshal(m, b) +} +func (m *NodeExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionEventRequest.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionEventRequest.Merge(dst, src) +} +func (m *NodeExecutionEventRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionEventRequest.Size(m) +} +func (m *NodeExecutionEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionEventRequest proto.InternalMessageInfo + +func (m *NodeExecutionEventRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *NodeExecutionEventRequest) GetEvent() *event.NodeExecutionEvent { + if m != nil { + return m.Event + } + return nil +} + +type NodeExecutionEventResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionEventResponse) Reset() { *m = NodeExecutionEventResponse{} } +func (m *NodeExecutionEventResponse) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionEventResponse) ProtoMessage() {} +func (*NodeExecutionEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{5} +} +func (m *NodeExecutionEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionEventResponse.Unmarshal(m, b) +} +func (m *NodeExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionEventResponse.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionEventResponse.Merge(dst, src) +} +func (m *NodeExecutionEventResponse) XXX_Size() int { + return xxx_messageInfo_NodeExecutionEventResponse.Size(m) +} +func (m *NodeExecutionEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionEventResponse proto.InternalMessageInfo + +// Request to send a notification that a task execution event has occurred. +type TaskExecutionEventRequest struct { + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.TaskExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionEventRequest) Reset() { *m = TaskExecutionEventRequest{} } +func (m *TaskExecutionEventRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionEventRequest) ProtoMessage() {} +func (*TaskExecutionEventRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{6} +} +func (m *TaskExecutionEventRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionEventRequest.Unmarshal(m, b) +} +func (m *TaskExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionEventRequest.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionEventRequest.Merge(dst, src) +} +func (m *TaskExecutionEventRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionEventRequest.Size(m) +} +func (m *TaskExecutionEventRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionEventRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionEventRequest proto.InternalMessageInfo + +func (m *TaskExecutionEventRequest) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *TaskExecutionEventRequest) GetEvent() *event.TaskExecutionEvent { + if m != nil { + return m.Event + } + return nil +} + +type TaskExecutionEventResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionEventResponse) Reset() { *m = TaskExecutionEventResponse{} } +func (m *TaskExecutionEventResponse) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionEventResponse) ProtoMessage() {} +func (*TaskExecutionEventResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_event_424b5552574ecbeb, []int{7} +} +func (m *TaskExecutionEventResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionEventResponse.Unmarshal(m, b) +} +func (m *TaskExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionEventResponse.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionEventResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionEventResponse.Merge(dst, src) +} +func (m *TaskExecutionEventResponse) XXX_Size() int { + return xxx_messageInfo_TaskExecutionEventResponse.Size(m) +} +func (m *TaskExecutionEventResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionEventResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionEventResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*EventErrorAlreadyInTerminalState)(nil), "flyteidl.admin.EventErrorAlreadyInTerminalState") + proto.RegisterType((*EventFailureReason)(nil), "flyteidl.admin.EventFailureReason") + proto.RegisterType((*WorkflowExecutionEventRequest)(nil), "flyteidl.admin.WorkflowExecutionEventRequest") + proto.RegisterType((*WorkflowExecutionEventResponse)(nil), "flyteidl.admin.WorkflowExecutionEventResponse") + proto.RegisterType((*NodeExecutionEventRequest)(nil), "flyteidl.admin.NodeExecutionEventRequest") + proto.RegisterType((*NodeExecutionEventResponse)(nil), "flyteidl.admin.NodeExecutionEventResponse") + proto.RegisterType((*TaskExecutionEventRequest)(nil), "flyteidl.admin.TaskExecutionEventRequest") + proto.RegisterType((*TaskExecutionEventResponse)(nil), "flyteidl.admin.TaskExecutionEventResponse") +} + +func init() { proto.RegisterFile("flyteidl/admin/event.proto", fileDescriptor_event_424b5552574ecbeb) } + +var fileDescriptor_event_424b5552574ecbeb = []byte{ + // 348 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0x4f, 0x4b, 0xf3, 0x40, + 0x10, 0x87, 0xdf, 0xbe, 0x60, 0xb1, 0xe3, 0x9f, 0x43, 0x0e, 0xd2, 0x16, 0x2b, 0x25, 0x82, 0x78, + 0x31, 0x51, 0x7b, 0xf1, 0xe0, 0xc5, 0x42, 0xd5, 0x5e, 0x44, 0x62, 0x41, 0xf0, 0x12, 0xb6, 0xcd, + 0xb4, 0x5d, 0xba, 0xd9, 0x8d, 0xbb, 0x13, 0xb5, 0xe0, 0x57, 0xf0, 0x3b, 0x4b, 0x37, 0xd1, 0x58, + 0x49, 0x11, 0x04, 0x6f, 0xc9, 0xcc, 0xe4, 0xf9, 0x3d, 0x59, 0x66, 0xa1, 0x39, 0x16, 0x73, 0x42, + 0x1e, 0x09, 0x9f, 0x45, 0x31, 0x97, 0x3e, 0x3e, 0xa1, 0x24, 0x2f, 0xd1, 0x8a, 0x94, 0xb3, 0xfd, + 0xd1, 0xf3, 0x6c, 0xaf, 0x59, 0xcc, 0xda, 0xa9, 0xaf, 0xb3, 0xee, 0x15, 0xb4, 0x7b, 0x8b, 0xd7, + 0x9e, 0xd6, 0x4a, 0x5f, 0x08, 0x8d, 0x2c, 0x9a, 0xf7, 0xe5, 0x00, 0x75, 0xcc, 0x25, 0x13, 0x77, + 0xc4, 0x08, 0x9d, 0x7d, 0xd8, 0x1a, 0xa5, 0x5a, 0xa3, 0xa4, 0x30, 0x99, 0x32, 0x83, 0xf5, 0x4a, + 0xbb, 0x72, 0x58, 0x0b, 0x36, 0xf3, 0xe2, 0xed, 0xa2, 0xe6, 0xbe, 0x55, 0xc0, 0xb1, 0xa4, 0x4b, + 0xc6, 0x45, 0xaa, 0x31, 0x40, 0x66, 0x94, 0x74, 0x62, 0x68, 0xb0, 0x8c, 0x1a, 0x72, 0x19, 0x52, + 0xce, 0x0d, 0xcd, 0x02, 0x6c, 0x39, 0x1b, 0xa7, 0xc7, 0xde, 0xb2, 0xaf, 0xf7, 0x93, 0xd0, 0xf5, + 0xbf, 0x60, 0x87, 0x95, 0x76, 0xba, 0xeb, 0x50, 0xd5, 0x36, 0xd8, 0x7d, 0x85, 0xd6, 0xbd, 0xd2, + 0xb3, 0xb1, 0x50, 0xcf, 0xbd, 0x17, 0x1c, 0xa5, 0xc4, 0x95, 0xb4, 0xe0, 0x00, 0x1f, 0x53, 0x34, + 0xe4, 0xb4, 0x00, 0x74, 0xf6, 0x18, 0xf2, 0x28, 0xff, 0xa5, 0x5a, 0x5e, 0xe9, 0x47, 0xce, 0x39, + 0xac, 0xd9, 0x73, 0xaa, 0xff, 0xb7, 0x92, 0x07, 0x85, 0x64, 0x76, 0x7c, 0x2b, 0xe0, 0xd9, 0x47, + 0x6e, 0x1b, 0xf6, 0x56, 0xa5, 0x9b, 0x44, 0x49, 0x83, 0x2e, 0x41, 0xe3, 0x46, 0x45, 0xf8, 0x2b, + 0xb7, 0xb3, 0x65, 0x37, 0xf7, 0xbb, 0x5b, 0x09, 0x38, 0xf7, 0xda, 0x85, 0x66, 0x59, 0x6a, 0xe1, + 0x34, 0x60, 0x66, 0xf6, 0x27, 0x4e, 0x25, 0xe0, 0xc2, 0xa9, 0x2c, 0x35, 0x73, 0xea, 0x76, 0x1e, + 0x4e, 0x26, 0x9c, 0xa6, 0xe9, 0xd0, 0x1b, 0xa9, 0xd8, 0x17, 0xf3, 0x31, 0xf9, 0x9f, 0xeb, 0x3c, + 0x41, 0xe9, 0x27, 0xc3, 0xa3, 0x89, 0xf2, 0x97, 0x6f, 0xc3, 0xb0, 0x6a, 0x97, 0xbb, 0xf3, 0x1e, + 0x00, 0x00, 0xff, 0xff, 0x4d, 0x05, 0x6c, 0x2c, 0x26, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go new file mode 100644 index 0000000000..973ea804e3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.validate.go @@ -0,0 +1,627 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/event.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on EventErrorAlreadyInTerminalState with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *EventErrorAlreadyInTerminalState) Validate() error { + if m == nil { + return nil + } + + // no validation rules for CurrentPhase + + return nil +} + +// EventErrorAlreadyInTerminalStateValidationError is the validation error +// returned by EventErrorAlreadyInTerminalState.Validate if the designated +// constraints aren't met. +type EventErrorAlreadyInTerminalStateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EventErrorAlreadyInTerminalStateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EventErrorAlreadyInTerminalStateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EventErrorAlreadyInTerminalStateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EventErrorAlreadyInTerminalStateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EventErrorAlreadyInTerminalStateValidationError) ErrorName() string { + return "EventErrorAlreadyInTerminalStateValidationError" +} + +// Error satisfies the builtin error interface +func (e EventErrorAlreadyInTerminalStateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEventErrorAlreadyInTerminalState.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EventErrorAlreadyInTerminalStateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EventErrorAlreadyInTerminalStateValidationError{} + +// Validate checks the field values on EventFailureReason with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *EventFailureReason) Validate() error { + if m == nil { + return nil + } + + switch m.Reason.(type) { + + case *EventFailureReason_AlreadyInTerminalState: + + if v, ok := interface{}(m.GetAlreadyInTerminalState()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EventFailureReasonValidationError{ + field: "AlreadyInTerminalState", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// EventFailureReasonValidationError is the validation error returned by +// EventFailureReason.Validate if the designated constraints aren't met. +type EventFailureReasonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EventFailureReasonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EventFailureReasonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EventFailureReasonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EventFailureReasonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EventFailureReasonValidationError) ErrorName() string { + return "EventFailureReasonValidationError" +} + +// Error satisfies the builtin error interface +func (e EventFailureReasonValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEventFailureReason.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EventFailureReasonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EventFailureReasonValidationError{} + +// Validate checks the field values on WorkflowExecutionEventRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionEventRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestId + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventRequestValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionEventRequestValidationError is the validation error +// returned by WorkflowExecutionEventRequest.Validate if the designated +// constraints aren't met. +type WorkflowExecutionEventRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionEventRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionEventRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionEventRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionEventRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionEventRequestValidationError) ErrorName() string { + return "WorkflowExecutionEventRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionEventRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionEventRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionEventRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionEventRequestValidationError{} + +// Validate checks the field values on WorkflowExecutionEventResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionEventResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowExecutionEventResponseValidationError is the validation error +// returned by WorkflowExecutionEventResponse.Validate if the designated +// constraints aren't met. +type WorkflowExecutionEventResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionEventResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionEventResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionEventResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionEventResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionEventResponseValidationError) ErrorName() string { + return "WorkflowExecutionEventResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionEventResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionEventResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionEventResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionEventResponseValidationError{} + +// Validate checks the field values on NodeExecutionEventRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionEventRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestId + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventRequestValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionEventRequestValidationError is the validation error returned by +// NodeExecutionEventRequest.Validate if the designated constraints aren't met. +type NodeExecutionEventRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionEventRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionEventRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionEventRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionEventRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionEventRequestValidationError) ErrorName() string { + return "NodeExecutionEventRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionEventRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionEventRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionEventRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionEventRequestValidationError{} + +// Validate checks the field values on NodeExecutionEventResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionEventResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NodeExecutionEventResponseValidationError is the validation error returned +// by NodeExecutionEventResponse.Validate if the designated constraints aren't met. +type NodeExecutionEventResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionEventResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionEventResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionEventResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionEventResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionEventResponseValidationError) ErrorName() string { + return "NodeExecutionEventResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionEventResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionEventResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionEventResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionEventResponseValidationError{} + +// Validate checks the field values on TaskExecutionEventRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionEventRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for RequestId + + if v, ok := interface{}(m.GetEvent()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventRequestValidationError{ + field: "Event", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionEventRequestValidationError is the validation error returned by +// TaskExecutionEventRequest.Validate if the designated constraints aren't met. +type TaskExecutionEventRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionEventRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionEventRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionEventRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionEventRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionEventRequestValidationError) ErrorName() string { + return "TaskExecutionEventRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionEventRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionEventRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionEventRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionEventRequestValidationError{} + +// Validate checks the field values on TaskExecutionEventResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionEventResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TaskExecutionEventResponseValidationError is the validation error returned +// by TaskExecutionEventResponse.Validate if the designated constraints aren't met. +type TaskExecutionEventResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionEventResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionEventResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionEventResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionEventResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionEventResponseValidationError) ErrorName() string { + return "TaskExecutionEventResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionEventResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionEventResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionEventResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionEventResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json new file mode 100644 index 0000000000..aca0ee85d4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/event.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go new file mode 100644 index 0000000000..06d7aa187e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go @@ -0,0 +1,1345 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/execution.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// The method by which this execution was launched. +type ExecutionMetadata_ExecutionMode int32 + +const ( + // The default execution mode, MANUAL implies that an execution was launched by an individual. + ExecutionMetadata_MANUAL ExecutionMetadata_ExecutionMode = 0 + // A schedule triggered this execution launch. + ExecutionMetadata_SCHEDULED ExecutionMetadata_ExecutionMode = 1 + // A system process was responsible for launching this execution rather an individual. + ExecutionMetadata_SYSTEM ExecutionMetadata_ExecutionMode = 2 + // This execution was launched with identical inputs as a previous execution. + ExecutionMetadata_RELAUNCH ExecutionMetadata_ExecutionMode = 3 + // This execution was triggered by another execution. + ExecutionMetadata_CHILD_WORKFLOW ExecutionMetadata_ExecutionMode = 4 +) + +var ExecutionMetadata_ExecutionMode_name = map[int32]string{ + 0: "MANUAL", + 1: "SCHEDULED", + 2: "SYSTEM", + 3: "RELAUNCH", + 4: "CHILD_WORKFLOW", +} +var ExecutionMetadata_ExecutionMode_value = map[string]int32{ + "MANUAL": 0, + "SCHEDULED": 1, + "SYSTEM": 2, + "RELAUNCH": 3, + "CHILD_WORKFLOW": 4, +} + +func (x ExecutionMetadata_ExecutionMode) String() string { + return proto.EnumName(ExecutionMetadata_ExecutionMode_name, int32(x)) +} +func (ExecutionMetadata_ExecutionMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{8, 0} +} + +// Request to launch an execution with the given project, domain and optionally name. +type ExecutionCreateRequest struct { + // Name of the project the execution belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the execution belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Additional fields necessary to launch the execution. + Spec *ExecutionSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionCreateRequest) Reset() { *m = ExecutionCreateRequest{} } +func (m *ExecutionCreateRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionCreateRequest) ProtoMessage() {} +func (*ExecutionCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{0} +} +func (m *ExecutionCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionCreateRequest.Unmarshal(m, b) +} +func (m *ExecutionCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionCreateRequest.Marshal(b, m, deterministic) +} +func (dst *ExecutionCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionCreateRequest.Merge(dst, src) +} +func (m *ExecutionCreateRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionCreateRequest.Size(m) +} +func (m *ExecutionCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionCreateRequest proto.InternalMessageInfo + +func (m *ExecutionCreateRequest) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *ExecutionCreateRequest) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *ExecutionCreateRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExecutionCreateRequest) GetSpec() *ExecutionSpec { + if m != nil { + return m.Spec + } + return nil +} + +// Request to relaunch the referenced execution. +type ExecutionRelaunchRequest struct { + // Identifier of the workflow execution to relaunch. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User provided value for the relaunched execution. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionRelaunchRequest) Reset() { *m = ExecutionRelaunchRequest{} } +func (m *ExecutionRelaunchRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionRelaunchRequest) ProtoMessage() {} +func (*ExecutionRelaunchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{1} +} +func (m *ExecutionRelaunchRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionRelaunchRequest.Unmarshal(m, b) +} +func (m *ExecutionRelaunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionRelaunchRequest.Marshal(b, m, deterministic) +} +func (dst *ExecutionRelaunchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionRelaunchRequest.Merge(dst, src) +} +func (m *ExecutionRelaunchRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionRelaunchRequest.Size(m) +} +func (m *ExecutionRelaunchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionRelaunchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionRelaunchRequest proto.InternalMessageInfo + +func (m *ExecutionRelaunchRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ExecutionRelaunchRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// The unique identifier for a successfully created execution. +// If the name was *not* specified in the create request, this identifier will include a generated name. +type ExecutionCreateResponse struct { + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionCreateResponse) Reset() { *m = ExecutionCreateResponse{} } +func (m *ExecutionCreateResponse) String() string { return proto.CompactTextString(m) } +func (*ExecutionCreateResponse) ProtoMessage() {} +func (*ExecutionCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{2} +} +func (m *ExecutionCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionCreateResponse.Unmarshal(m, b) +} +func (m *ExecutionCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionCreateResponse.Marshal(b, m, deterministic) +} +func (dst *ExecutionCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionCreateResponse.Merge(dst, src) +} +func (m *ExecutionCreateResponse) XXX_Size() int { + return xxx_messageInfo_ExecutionCreateResponse.Size(m) +} +func (m *ExecutionCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionCreateResponse proto.InternalMessageInfo + +func (m *ExecutionCreateResponse) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// A message used to fetch a single workflow execution entity. +type WorkflowExecutionGetRequest struct { + // Uniquely identifies an individual workflow execution. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetRequest) Reset() { *m = WorkflowExecutionGetRequest{} } +func (m *WorkflowExecutionGetRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetRequest) ProtoMessage() {} +func (*WorkflowExecutionGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{3} +} +func (m *WorkflowExecutionGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetRequest.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetRequest.Merge(dst, src) +} +func (m *WorkflowExecutionGetRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetRequest.Size(m) +} +func (m *WorkflowExecutionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionGetRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// A workflow execution represents an instantiated workflow, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +// Used as a response object used in Get and List execution requests. +type Execution struct { + // Unique identifier of the workflow execution. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided configuration and inputs for launching the execution. + Spec *ExecutionSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Execution results. + Closure *ExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Execution) Reset() { *m = Execution{} } +func (m *Execution) String() string { return proto.CompactTextString(m) } +func (*Execution) ProtoMessage() {} +func (*Execution) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{4} +} +func (m *Execution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Execution.Unmarshal(m, b) +} +func (m *Execution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Execution.Marshal(b, m, deterministic) +} +func (dst *Execution) XXX_Merge(src proto.Message) { + xxx_messageInfo_Execution.Merge(dst, src) +} +func (m *Execution) XXX_Size() int { + return xxx_messageInfo_Execution.Size(m) +} +func (m *Execution) XXX_DiscardUnknown() { + xxx_messageInfo_Execution.DiscardUnknown(m) +} + +var xxx_messageInfo_Execution proto.InternalMessageInfo + +func (m *Execution) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Execution) GetSpec() *ExecutionSpec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *Execution) GetClosure() *ExecutionClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Used as a response for request to list executions. +type ExecutionList struct { + Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,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 *ExecutionList) Reset() { *m = ExecutionList{} } +func (m *ExecutionList) String() string { return proto.CompactTextString(m) } +func (*ExecutionList) ProtoMessage() {} +func (*ExecutionList) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{5} +} +func (m *ExecutionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionList.Unmarshal(m, b) +} +func (m *ExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionList.Marshal(b, m, deterministic) +} +func (dst *ExecutionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionList.Merge(dst, src) +} +func (m *ExecutionList) XXX_Size() int { + return xxx_messageInfo_ExecutionList.Size(m) +} +func (m *ExecutionList) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionList.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionList proto.InternalMessageInfo + +func (m *ExecutionList) GetExecutions() []*Execution { + if m != nil { + return m.Executions + } + return nil +} + +func (m *ExecutionList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Input/output data can represented by actual values or a link to where values are stored +type LiteralMapBlob struct { + // Types that are valid to be assigned to Data: + // *LiteralMapBlob_Values + // *LiteralMapBlob_Uri + Data isLiteralMapBlob_Data `protobuf_oneof:"data"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralMapBlob) Reset() { *m = LiteralMapBlob{} } +func (m *LiteralMapBlob) String() string { return proto.CompactTextString(m) } +func (*LiteralMapBlob) ProtoMessage() {} +func (*LiteralMapBlob) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{6} +} +func (m *LiteralMapBlob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralMapBlob.Unmarshal(m, b) +} +func (m *LiteralMapBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralMapBlob.Marshal(b, m, deterministic) +} +func (dst *LiteralMapBlob) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralMapBlob.Merge(dst, src) +} +func (m *LiteralMapBlob) XXX_Size() int { + return xxx_messageInfo_LiteralMapBlob.Size(m) +} +func (m *LiteralMapBlob) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralMapBlob.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralMapBlob proto.InternalMessageInfo + +type isLiteralMapBlob_Data interface { + isLiteralMapBlob_Data() +} + +type LiteralMapBlob_Values struct { + Values *core.LiteralMap `protobuf:"bytes,1,opt,name=values,proto3,oneof"` +} + +type LiteralMapBlob_Uri struct { + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +func (*LiteralMapBlob_Values) isLiteralMapBlob_Data() {} + +func (*LiteralMapBlob_Uri) isLiteralMapBlob_Data() {} + +func (m *LiteralMapBlob) GetData() isLiteralMapBlob_Data { + if m != nil { + return m.Data + } + return nil +} + +func (m *LiteralMapBlob) GetValues() *core.LiteralMap { + if x, ok := m.GetData().(*LiteralMapBlob_Values); ok { + return x.Values + } + return nil +} + +func (m *LiteralMapBlob) GetUri() string { + if x, ok := m.GetData().(*LiteralMapBlob_Uri); ok { + return x.Uri + } + return "" +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*LiteralMapBlob) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _LiteralMapBlob_OneofMarshaler, _LiteralMapBlob_OneofUnmarshaler, _LiteralMapBlob_OneofSizer, []interface{}{ + (*LiteralMapBlob_Values)(nil), + (*LiteralMapBlob_Uri)(nil), + } +} + +func _LiteralMapBlob_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*LiteralMapBlob) + // data + switch x := m.Data.(type) { + case *LiteralMapBlob_Values: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Values); err != nil { + return err + } + case *LiteralMapBlob_Uri: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Uri) + case nil: + default: + return fmt.Errorf("LiteralMapBlob.Data has unexpected type %T", x) + } + return nil +} + +func _LiteralMapBlob_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*LiteralMapBlob) + switch tag { + case 1: // data.values + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.LiteralMap) + err := b.DecodeMessage(msg) + m.Data = &LiteralMapBlob_Values{msg} + return true, err + case 2: // data.uri + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Data = &LiteralMapBlob_Uri{x} + return true, err + default: + return false, nil + } +} + +func _LiteralMapBlob_OneofSizer(msg proto.Message) (n int) { + m := msg.(*LiteralMapBlob) + // data + switch x := m.Data.(type) { + case *LiteralMapBlob_Values: + s := proto.Size(x.Values) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *LiteralMapBlob_Uri: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Uri))) + n += len(x.Uri) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Encapsulates the results of the Execution +type ExecutionClosure struct { + // A result produced by a terminated execution. + // A pending (non-terminal) execution will not have any output result. + // + // Types that are valid to be assigned to OutputResult: + // *ExecutionClosure_Outputs + // *ExecutionClosure_Error + // *ExecutionClosure_AbortCause + OutputResult isExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // Inputs computed and passed for execution. + // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + ComputedInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=computed_inputs,json=computedInputs,proto3" json:"computed_inputs,omitempty"` + // Most recent recorded phase for the execution. + Phase core.WorkflowExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + // Reported ime at which the execution began running. + StartedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the execution spent running. + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + // Reported time at which the execution was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Reported time at which the execution was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // The notification settings to use after merging the CreateExecutionRequest and the launch plan + // notification settings. An execution launched with notifications will always prefer that definition + // to notifications defined statically in a launch plan. + Notifications []*Notification `protobuf:"bytes,9,rep,name=notifications,proto3" json:"notifications,omitempty"` + // Identifies the workflow definition for this execution. + WorkflowId *core.Identifier `protobuf:"bytes,11,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionClosure) Reset() { *m = ExecutionClosure{} } +func (m *ExecutionClosure) String() string { return proto.CompactTextString(m) } +func (*ExecutionClosure) ProtoMessage() {} +func (*ExecutionClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{7} +} +func (m *ExecutionClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionClosure.Unmarshal(m, b) +} +func (m *ExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionClosure.Marshal(b, m, deterministic) +} +func (dst *ExecutionClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionClosure.Merge(dst, src) +} +func (m *ExecutionClosure) XXX_Size() int { + return xxx_messageInfo_ExecutionClosure.Size(m) +} +func (m *ExecutionClosure) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionClosure proto.InternalMessageInfo + +type isExecutionClosure_OutputResult interface { + isExecutionClosure_OutputResult() +} + +type ExecutionClosure_Outputs struct { + Outputs *LiteralMapBlob `protobuf:"bytes,1,opt,name=outputs,proto3,oneof"` +} + +type ExecutionClosure_Error struct { + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type ExecutionClosure_AbortCause struct { + AbortCause string `protobuf:"bytes,10,opt,name=abort_cause,json=abortCause,proto3,oneof"` +} + +func (*ExecutionClosure_Outputs) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_Error) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_AbortCause) isExecutionClosure_OutputResult() {} + +func (m *ExecutionClosure) GetOutputResult() isExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *ExecutionClosure) GetOutputs() *LiteralMapBlob { + if x, ok := m.GetOutputResult().(*ExecutionClosure_Outputs); ok { + return x.Outputs + } + return nil +} + +func (m *ExecutionClosure) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*ExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +func (m *ExecutionClosure) GetAbortCause() string { + if x, ok := m.GetOutputResult().(*ExecutionClosure_AbortCause); ok { + return x.AbortCause + } + return "" +} + +func (m *ExecutionClosure) GetComputedInputs() *core.LiteralMap { + if m != nil { + return m.ComputedInputs + } + return nil +} + +func (m *ExecutionClosure) GetPhase() core.WorkflowExecution_Phase { + if m != nil { + return m.Phase + } + return core.WorkflowExecution_UNDEFINED +} + +func (m *ExecutionClosure) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *ExecutionClosure) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +func (m *ExecutionClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *ExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +func (m *ExecutionClosure) GetNotifications() []*Notification { + if m != nil { + return m.Notifications + } + return nil +} + +func (m *ExecutionClosure) GetWorkflowId() *core.Identifier { + if m != nil { + return m.WorkflowId + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ExecutionClosure) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ExecutionClosure_OneofMarshaler, _ExecutionClosure_OneofUnmarshaler, _ExecutionClosure_OneofSizer, []interface{}{ + (*ExecutionClosure_Outputs)(nil), + (*ExecutionClosure_Error)(nil), + (*ExecutionClosure_AbortCause)(nil), + } +} + +func _ExecutionClosure_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ExecutionClosure) + // output_result + switch x := m.OutputResult.(type) { + case *ExecutionClosure_Outputs: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Outputs); err != nil { + return err + } + case *ExecutionClosure_Error: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case *ExecutionClosure_AbortCause: + b.EncodeVarint(10<<3 | proto.WireBytes) + b.EncodeStringBytes(x.AbortCause) + case nil: + default: + return fmt.Errorf("ExecutionClosure.OutputResult has unexpected type %T", x) + } + return nil +} + +func _ExecutionClosure_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ExecutionClosure) + switch tag { + case 1: // output_result.outputs + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LiteralMapBlob) + err := b.DecodeMessage(msg) + m.OutputResult = &ExecutionClosure_Outputs{msg} + return true, err + case 2: // output_result.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.ExecutionError) + err := b.DecodeMessage(msg) + m.OutputResult = &ExecutionClosure_Error{msg} + return true, err + case 10: // output_result.abort_cause + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.OutputResult = &ExecutionClosure_AbortCause{x} + return true, err + default: + return false, nil + } +} + +func _ExecutionClosure_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ExecutionClosure) + // output_result + switch x := m.OutputResult.(type) { + case *ExecutionClosure_Outputs: + s := proto.Size(x.Outputs) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ExecutionClosure_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ExecutionClosure_AbortCause: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.AbortCause))) + n += len(x.AbortCause) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. +// These attributes are assigned at launch time and do not change. +type ExecutionMetadata struct { + Mode ExecutionMetadata_ExecutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=flyteidl.admin.ExecutionMetadata_ExecutionMode" json:"mode,omitempty"` + // Identifier of the entity that triggered this execution. + Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` + // Indicates the "nestedness" of this execution. + // If a user launches a workflow execution, the default nesting is 0. + // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + // Generally, if workflow at nesting level k launches a workflow then the child workflow will have + // nesting = k + 1. + Nesting uint32 `protobuf:"varint,3,opt,name=nesting,proto3" json:"nesting,omitempty"` + // For scheduled executions, the requested time for execution for this specific schedule invocation. + ScheduledAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` + // Which subworkflow node launched this execution + ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,5,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` + // Optional, a reference workflow execution related to this execution. + // In the case of a relaunch, this references the original workflow execution. + ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,16,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionMetadata) Reset() { *m = ExecutionMetadata{} } +func (m *ExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*ExecutionMetadata) ProtoMessage() {} +func (*ExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{8} +} +func (m *ExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionMetadata.Unmarshal(m, b) +} +func (m *ExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionMetadata.Marshal(b, m, deterministic) +} +func (dst *ExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionMetadata.Merge(dst, src) +} +func (m *ExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_ExecutionMetadata.Size(m) +} +func (m *ExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionMetadata proto.InternalMessageInfo + +func (m *ExecutionMetadata) GetMode() ExecutionMetadata_ExecutionMode { + if m != nil { + return m.Mode + } + return ExecutionMetadata_MANUAL +} + +func (m *ExecutionMetadata) GetPrincipal() string { + if m != nil { + return m.Principal + } + return "" +} + +func (m *ExecutionMetadata) GetNesting() uint32 { + if m != nil { + return m.Nesting + } + return 0 +} + +func (m *ExecutionMetadata) GetScheduledAt() *timestamp.Timestamp { + if m != nil { + return m.ScheduledAt + } + return nil +} + +func (m *ExecutionMetadata) GetParentNodeExecution() *core.NodeExecutionIdentifier { + if m != nil { + return m.ParentNodeExecution + } + return nil +} + +func (m *ExecutionMetadata) GetReferenceExecution() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ReferenceExecution + } + return nil +} + +type NotificationList struct { + Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NotificationList) Reset() { *m = NotificationList{} } +func (m *NotificationList) String() string { return proto.CompactTextString(m) } +func (*NotificationList) ProtoMessage() {} +func (*NotificationList) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{9} +} +func (m *NotificationList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NotificationList.Unmarshal(m, b) +} +func (m *NotificationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NotificationList.Marshal(b, m, deterministic) +} +func (dst *NotificationList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NotificationList.Merge(dst, src) +} +func (m *NotificationList) XXX_Size() int { + return xxx_messageInfo_NotificationList.Size(m) +} +func (m *NotificationList) XXX_DiscardUnknown() { + xxx_messageInfo_NotificationList.DiscardUnknown(m) +} + +var xxx_messageInfo_NotificationList proto.InternalMessageInfo + +func (m *NotificationList) GetNotifications() []*Notification { + if m != nil { + return m.Notifications + } + return nil +} + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +// of an execution as it progresses across phase changes.. +type ExecutionSpec struct { + // Launch plan to be executed + LaunchPlan *core.Identifier `protobuf:"bytes,1,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` + // Input values to be passed for the execution + Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Metadata for the execution + Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Types that are valid to be assigned to NotificationOverrides: + // *ExecutionSpec_Notifications + // *ExecutionSpec_DisableAll + NotificationOverrides isExecutionSpec_NotificationOverrides `protobuf_oneof:"notification_overrides"` + // Labels to apply to the execution resource. + Labels *Labels `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` + // Annotations to apply to the execution resource. + Annotations *Annotations `protobuf:"bytes,8,opt,name=annotations,proto3" json:"annotations,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionSpec) Reset() { *m = ExecutionSpec{} } +func (m *ExecutionSpec) String() string { return proto.CompactTextString(m) } +func (*ExecutionSpec) ProtoMessage() {} +func (*ExecutionSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{10} +} +func (m *ExecutionSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionSpec.Unmarshal(m, b) +} +func (m *ExecutionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionSpec.Marshal(b, m, deterministic) +} +func (dst *ExecutionSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionSpec.Merge(dst, src) +} +func (m *ExecutionSpec) XXX_Size() int { + return xxx_messageInfo_ExecutionSpec.Size(m) +} +func (m *ExecutionSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionSpec proto.InternalMessageInfo + +func (m *ExecutionSpec) GetLaunchPlan() *core.Identifier { + if m != nil { + return m.LaunchPlan + } + return nil +} + +func (m *ExecutionSpec) GetInputs() *core.LiteralMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *ExecutionSpec) GetMetadata() *ExecutionMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +type isExecutionSpec_NotificationOverrides interface { + isExecutionSpec_NotificationOverrides() +} + +type ExecutionSpec_Notifications struct { + Notifications *NotificationList `protobuf:"bytes,5,opt,name=notifications,proto3,oneof"` +} + +type ExecutionSpec_DisableAll struct { + DisableAll bool `protobuf:"varint,6,opt,name=disable_all,json=disableAll,proto3,oneof"` +} + +func (*ExecutionSpec_Notifications) isExecutionSpec_NotificationOverrides() {} + +func (*ExecutionSpec_DisableAll) isExecutionSpec_NotificationOverrides() {} + +func (m *ExecutionSpec) GetNotificationOverrides() isExecutionSpec_NotificationOverrides { + if m != nil { + return m.NotificationOverrides + } + return nil +} + +func (m *ExecutionSpec) GetNotifications() *NotificationList { + if x, ok := m.GetNotificationOverrides().(*ExecutionSpec_Notifications); ok { + return x.Notifications + } + return nil +} + +func (m *ExecutionSpec) GetDisableAll() bool { + if x, ok := m.GetNotificationOverrides().(*ExecutionSpec_DisableAll); ok { + return x.DisableAll + } + return false +} + +func (m *ExecutionSpec) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +func (m *ExecutionSpec) GetAnnotations() *Annotations { + if m != nil { + return m.Annotations + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ExecutionSpec) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ExecutionSpec_OneofMarshaler, _ExecutionSpec_OneofUnmarshaler, _ExecutionSpec_OneofSizer, []interface{}{ + (*ExecutionSpec_Notifications)(nil), + (*ExecutionSpec_DisableAll)(nil), + } +} + +func _ExecutionSpec_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ExecutionSpec) + // notification_overrides + switch x := m.NotificationOverrides.(type) { + case *ExecutionSpec_Notifications: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Notifications); err != nil { + return err + } + case *ExecutionSpec_DisableAll: + t := uint64(0) + if x.DisableAll { + t = 1 + } + b.EncodeVarint(6<<3 | proto.WireVarint) + b.EncodeVarint(t) + case nil: + default: + return fmt.Errorf("ExecutionSpec.NotificationOverrides has unexpected type %T", x) + } + return nil +} + +func _ExecutionSpec_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ExecutionSpec) + switch tag { + case 5: // notification_overrides.notifications + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(NotificationList) + err := b.DecodeMessage(msg) + m.NotificationOverrides = &ExecutionSpec_Notifications{msg} + return true, err + case 6: // notification_overrides.disable_all + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.NotificationOverrides = &ExecutionSpec_DisableAll{x != 0} + return true, err + default: + return false, nil + } +} + +func _ExecutionSpec_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ExecutionSpec) + // notification_overrides + switch x := m.NotificationOverrides.(type) { + case *ExecutionSpec_Notifications: + s := proto.Size(x.Notifications) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ExecutionSpec_DisableAll: + n += 1 // tag and wire + n += 1 + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Request to terminate an in-progress execution. This action is irreversible. +// If an execution is already terminated, this request will simply be a no-op. +// This request will fail if it references a non-existent execution. +// If the request succeeds the phase "ABORTED" will be recorded for the termination +// with the optional cause added to the output_result. +type ExecutionTerminateRequest struct { + // Uniquely identifies the individual workflow execution to be terminated. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Optional reason for aborting. + Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionTerminateRequest) Reset() { *m = ExecutionTerminateRequest{} } +func (m *ExecutionTerminateRequest) String() string { return proto.CompactTextString(m) } +func (*ExecutionTerminateRequest) ProtoMessage() {} +func (*ExecutionTerminateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{11} +} +func (m *ExecutionTerminateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionTerminateRequest.Unmarshal(m, b) +} +func (m *ExecutionTerminateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionTerminateRequest.Marshal(b, m, deterministic) +} +func (dst *ExecutionTerminateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionTerminateRequest.Merge(dst, src) +} +func (m *ExecutionTerminateRequest) XXX_Size() int { + return xxx_messageInfo_ExecutionTerminateRequest.Size(m) +} +func (m *ExecutionTerminateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionTerminateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionTerminateRequest proto.InternalMessageInfo + +func (m *ExecutionTerminateRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *ExecutionTerminateRequest) GetCause() string { + if m != nil { + return m.Cause + } + return "" +} + +type ExecutionTerminateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionTerminateResponse) Reset() { *m = ExecutionTerminateResponse{} } +func (m *ExecutionTerminateResponse) String() string { return proto.CompactTextString(m) } +func (*ExecutionTerminateResponse) ProtoMessage() {} +func (*ExecutionTerminateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{12} +} +func (m *ExecutionTerminateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionTerminateResponse.Unmarshal(m, b) +} +func (m *ExecutionTerminateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionTerminateResponse.Marshal(b, m, deterministic) +} +func (dst *ExecutionTerminateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionTerminateResponse.Merge(dst, src) +} +func (m *ExecutionTerminateResponse) XXX_Size() int { + return xxx_messageInfo_ExecutionTerminateResponse.Size(m) +} +func (m *ExecutionTerminateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionTerminateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionTerminateResponse proto.InternalMessageInfo + +// Request structure to fetch inputs and output urls for an execution. +type WorkflowExecutionGetDataRequest struct { + // The identifier of the execution for which to fetch inputs and outputs. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetDataRequest) Reset() { *m = WorkflowExecutionGetDataRequest{} } +func (m *WorkflowExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetDataRequest) ProtoMessage() {} +func (*WorkflowExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{13} +} +func (m *WorkflowExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetDataRequest.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetDataRequest.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionGetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetDataRequest.Merge(dst, src) +} +func (m *WorkflowExecutionGetDataRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetDataRequest.Size(m) +} +func (m *WorkflowExecutionGetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetDataRequest proto.InternalMessageInfo + +func (m *WorkflowExecutionGetDataRequest) GetId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +type WorkflowExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of execution outputs. + Outputs *UrlBlob `protobuf:"bytes,1,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionGetDataResponse) Reset() { *m = WorkflowExecutionGetDataResponse{} } +func (m *WorkflowExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionGetDataResponse) ProtoMessage() {} +func (*WorkflowExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_d511cd596191f828, []int{14} +} +func (m *WorkflowExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionGetDataResponse.Unmarshal(m, b) +} +func (m *WorkflowExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionGetDataResponse.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionGetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionGetDataResponse.Merge(dst, src) +} +func (m *WorkflowExecutionGetDataResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionGetDataResponse.Size(m) +} +func (m *WorkflowExecutionGetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionGetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionGetDataResponse proto.InternalMessageInfo + +func (m *WorkflowExecutionGetDataResponse) GetOutputs() *UrlBlob { + if m != nil { + return m.Outputs + } + return nil +} + +func init() { + proto.RegisterType((*ExecutionCreateRequest)(nil), "flyteidl.admin.ExecutionCreateRequest") + proto.RegisterType((*ExecutionRelaunchRequest)(nil), "flyteidl.admin.ExecutionRelaunchRequest") + proto.RegisterType((*ExecutionCreateResponse)(nil), "flyteidl.admin.ExecutionCreateResponse") + proto.RegisterType((*WorkflowExecutionGetRequest)(nil), "flyteidl.admin.WorkflowExecutionGetRequest") + proto.RegisterType((*Execution)(nil), "flyteidl.admin.Execution") + proto.RegisterType((*ExecutionList)(nil), "flyteidl.admin.ExecutionList") + proto.RegisterType((*LiteralMapBlob)(nil), "flyteidl.admin.LiteralMapBlob") + proto.RegisterType((*ExecutionClosure)(nil), "flyteidl.admin.ExecutionClosure") + proto.RegisterType((*ExecutionMetadata)(nil), "flyteidl.admin.ExecutionMetadata") + proto.RegisterType((*NotificationList)(nil), "flyteidl.admin.NotificationList") + proto.RegisterType((*ExecutionSpec)(nil), "flyteidl.admin.ExecutionSpec") + proto.RegisterType((*ExecutionTerminateRequest)(nil), "flyteidl.admin.ExecutionTerminateRequest") + proto.RegisterType((*ExecutionTerminateResponse)(nil), "flyteidl.admin.ExecutionTerminateResponse") + proto.RegisterType((*WorkflowExecutionGetDataRequest)(nil), "flyteidl.admin.WorkflowExecutionGetDataRequest") + proto.RegisterType((*WorkflowExecutionGetDataResponse)(nil), "flyteidl.admin.WorkflowExecutionGetDataResponse") + proto.RegisterEnum("flyteidl.admin.ExecutionMetadata_ExecutionMode", ExecutionMetadata_ExecutionMode_name, ExecutionMetadata_ExecutionMode_value) +} + +func init() { + proto.RegisterFile("flyteidl/admin/execution.proto", fileDescriptor_execution_d511cd596191f828) +} + +var fileDescriptor_execution_d511cd596191f828 = []byte{ + // 1133 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdf, 0x6e, 0xdb, 0xb6, + 0x17, 0xf6, 0xff, 0xda, 0xc7, 0x8d, 0xeb, 0x1f, 0xdb, 0x5f, 0xaa, 0xfc, 0x69, 0x9a, 0xe8, 0x62, + 0x08, 0x06, 0xcc, 0x46, 0x1c, 0xf4, 0x62, 0xc1, 0x72, 0x61, 0x3b, 0xde, 0x9c, 0xcd, 0x49, 0x0b, + 0x25, 0x5e, 0xd6, 0x0e, 0x83, 0x47, 0x4b, 0xb4, 0xa3, 0x96, 0x12, 0x35, 0x8a, 0x6a, 0xd7, 0xc7, + 0xd8, 0x33, 0xec, 0x1d, 0x06, 0xec, 0x75, 0xf6, 0x24, 0x83, 0x28, 0x4a, 0x91, 0x15, 0x07, 0x5e, + 0x91, 0xde, 0x89, 0x3c, 0xdf, 0xe1, 0x39, 0xfa, 0xf8, 0xf1, 0x23, 0x61, 0x67, 0x46, 0x3f, 0x0a, + 0x62, 0x5b, 0xb4, 0x8d, 0x2d, 0xc7, 0x76, 0xdb, 0xe4, 0x77, 0x62, 0x06, 0xc2, 0x66, 0x6e, 0xcb, + 0xe3, 0x4c, 0x30, 0xd4, 0x88, 0xe3, 0x2d, 0x19, 0xdf, 0xdc, 0xca, 0xe0, 0x4d, 0xe6, 0x38, 0x31, + 0x78, 0x73, 0x3b, 0x09, 0x9a, 0x8c, 0x93, 0x36, 0xb5, 0x05, 0xe1, 0x98, 0xfa, 0x2a, 0xfa, 0x6c, + 0x31, 0x9a, 0xa9, 0xb4, 0xb9, 0xb3, 0x18, 0xb6, 0x2d, 0xe2, 0x0a, 0x7b, 0x66, 0x13, 0x1e, 0xc7, + 0xe7, 0x8c, 0xcd, 0x29, 0x69, 0xcb, 0xd1, 0x34, 0x98, 0xb5, 0xad, 0x80, 0xe3, 0x54, 0xfe, 0xf3, + 0x6c, 0x5c, 0xd8, 0x0e, 0xf1, 0x05, 0x76, 0xbc, 0x08, 0xa0, 0xff, 0x91, 0x87, 0xf5, 0x41, 0x5c, + 0xb4, 0xcf, 0x09, 0x16, 0xc4, 0x20, 0xbf, 0x05, 0xc4, 0x17, 0x48, 0x83, 0x07, 0x1e, 0x67, 0x6f, + 0x89, 0x29, 0xb4, 0xfc, 0x6e, 0x7e, 0xbf, 0x66, 0xc4, 0x43, 0xb4, 0x0e, 0x15, 0x8b, 0x39, 0xd8, + 0x76, 0xb5, 0x82, 0x0c, 0xa8, 0x11, 0x42, 0x50, 0x72, 0xb1, 0x43, 0xb4, 0xa2, 0x9c, 0x95, 0xdf, + 0xe8, 0x00, 0x4a, 0xbe, 0x47, 0x4c, 0xad, 0xb4, 0x9b, 0xdf, 0xaf, 0x77, 0x9e, 0xb5, 0x16, 0xa9, + 0x6b, 0x25, 0xb5, 0x2f, 0x3c, 0x62, 0x1a, 0x12, 0xaa, 0xbf, 0x05, 0x2d, 0x99, 0x36, 0x08, 0xc5, + 0x81, 0x6b, 0x5e, 0xc7, 0x4d, 0x1d, 0x41, 0xc1, 0xb6, 0x64, 0x3f, 0xf5, 0xce, 0x97, 0x37, 0x8b, + 0x85, 0xec, 0xb4, 0xae, 0x18, 0x7f, 0x37, 0xa3, 0xec, 0x43, 0x92, 0x7c, 0x9a, 0xd0, 0x65, 0x14, + 0x6c, 0x6b, 0x59, 0x7b, 0xfa, 0x18, 0x9e, 0xde, 0xfa, 0x7d, 0xdf, 0x63, 0xae, 0x4f, 0xee, 0x53, + 0x4a, 0x7f, 0x0d, 0x5b, 0xb7, 0x20, 0xdf, 0x11, 0xf1, 0x19, 0xfe, 0x42, 0xff, 0x2b, 0x0f, 0xb5, + 0x24, 0x76, 0x2f, 0x3e, 0xe2, 0xad, 0x29, 0xfc, 0xe7, 0xad, 0x41, 0x47, 0xf0, 0xc0, 0xa4, 0xcc, + 0x0f, 0x78, 0xc4, 0x62, 0xbd, 0xb3, 0x7b, 0x67, 0x56, 0x3f, 0xc2, 0x19, 0x71, 0x82, 0xfe, 0x2b, + 0xac, 0x25, 0xc1, 0x91, 0xed, 0x0b, 0xf4, 0x35, 0x40, 0xa2, 0x77, 0x5f, 0xcb, 0xef, 0x16, 0xf7, + 0xeb, 0x9d, 0x8d, 0x3b, 0xd7, 0x33, 0x52, 0x60, 0xf4, 0x04, 0xca, 0x82, 0xbd, 0x23, 0xb1, 0x00, + 0xa3, 0x81, 0x8e, 0xa1, 0x31, 0x8a, 0x8e, 0xd7, 0x19, 0xf6, 0x7a, 0x94, 0x4d, 0xd1, 0x21, 0x54, + 0xde, 0x63, 0x1a, 0x10, 0x5f, 0x51, 0xb4, 0x91, 0xa1, 0xe8, 0x06, 0x3e, 0xcc, 0x19, 0x0a, 0x8a, + 0x10, 0x14, 0x03, 0x6e, 0x47, 0x4b, 0x0f, 0x73, 0x46, 0x38, 0xe8, 0x55, 0xa0, 0x64, 0x61, 0x81, + 0xf5, 0x3f, 0xcb, 0xd0, 0xcc, 0xfe, 0x62, 0xc8, 0x0a, 0x0b, 0x84, 0x17, 0x88, 0xb8, 0xcc, 0x4e, + 0xf6, 0x2f, 0x16, 0xdb, 0x1a, 0xe6, 0x8c, 0x38, 0x01, 0xbd, 0x80, 0x32, 0xe1, 0x9c, 0xf1, 0xdb, + 0xbb, 0x20, 0x1b, 0x4c, 0x6a, 0x0d, 0x42, 0xd0, 0x30, 0x67, 0x44, 0x68, 0xb4, 0x07, 0x75, 0x3c, + 0x65, 0x5c, 0x4c, 0x4c, 0x1c, 0xf8, 0x44, 0x03, 0xd5, 0x2b, 0xc8, 0xc9, 0x7e, 0x38, 0x87, 0x7a, + 0xf0, 0xc8, 0x64, 0x8e, 0x17, 0x08, 0x62, 0x4d, 0x6c, 0x57, 0x76, 0x57, 0x5c, 0x41, 0x82, 0xd1, + 0x88, 0x33, 0x4e, 0x65, 0x02, 0xfa, 0x06, 0xca, 0xde, 0x35, 0xf6, 0x89, 0x3c, 0xbe, 0x8d, 0xce, + 0x17, 0xab, 0x14, 0xd6, 0x7a, 0x15, 0xa2, 0x8d, 0x28, 0x29, 0xdc, 0x60, 0x5f, 0x60, 0x1e, 0x36, + 0x80, 0x85, 0x56, 0x96, 0xc5, 0x37, 0x5b, 0x91, 0x25, 0xb5, 0x62, 0x4b, 0x6a, 0x5d, 0xc6, 0x96, + 0x64, 0xd4, 0x14, 0xba, 0x2b, 0xd0, 0x0b, 0xa8, 0xc6, 0x56, 0xa6, 0x55, 0x54, 0xd7, 0xd9, 0xc4, + 0x13, 0x05, 0x30, 0x12, 0x68, 0x58, 0xd1, 0x94, 0xa7, 0x58, 0x56, 0x7c, 0xb0, 0xba, 0xa2, 0x42, + 0x77, 0xa5, 0x1a, 0x03, 0xcf, 0x8a, 0x53, 0xab, 0xab, 0x53, 0x15, 0xba, 0x2b, 0x50, 0x0f, 0xd6, + 0x5c, 0x16, 0x1e, 0x2c, 0x13, 0x47, 0x5a, 0xae, 0x49, 0x2d, 0x6f, 0x67, 0x55, 0x70, 0x9e, 0x02, + 0x19, 0x8b, 0x29, 0xe8, 0x08, 0xea, 0x1f, 0x14, 0x9b, 0x13, 0xdb, 0xd2, 0xea, 0x4b, 0x77, 0x2a, + 0x75, 0x80, 0x21, 0x46, 0x9f, 0x5a, 0xbd, 0x47, 0xb0, 0x16, 0xc9, 0x69, 0xc2, 0x89, 0x1f, 0x50, + 0xa1, 0xff, 0x53, 0x84, 0xff, 0x25, 0x7b, 0x72, 0x46, 0x04, 0x0e, 0xb5, 0x8b, 0xfa, 0x50, 0x72, + 0x98, 0x45, 0xa4, 0x46, 0x1b, 0x9d, 0xf6, 0x9d, 0x27, 0x2d, 0x4e, 0x48, 0xcd, 0x30, 0x8b, 0x18, + 0x32, 0x19, 0x6d, 0x43, 0xcd, 0xe3, 0xb6, 0x6b, 0xda, 0x1e, 0xa6, 0xea, 0xf4, 0xdd, 0x4c, 0x84, + 0x77, 0x86, 0x4b, 0x7c, 0x61, 0xbb, 0x73, 0xa9, 0xb5, 0x35, 0x23, 0x1e, 0xa2, 0x63, 0x78, 0xe8, + 0x9b, 0xd7, 0xc4, 0x0a, 0x68, 0x44, 0x70, 0x69, 0x25, 0xc1, 0xf5, 0x04, 0xdf, 0x15, 0xe8, 0x0d, + 0xfc, 0xdf, 0xc3, 0x9c, 0xb8, 0x62, 0xe2, 0x32, 0x8b, 0x4c, 0x12, 0x2b, 0x50, 0xaa, 0xca, 0x0a, + 0xf3, 0x9c, 0x59, 0x64, 0x99, 0xed, 0x3d, 0x8e, 0x16, 0x59, 0x08, 0xa3, 0x9f, 0xe1, 0x31, 0x27, + 0x33, 0xc2, 0x89, 0x6b, 0xa6, 0x57, 0x6e, 0x7e, 0xb2, 0xa9, 0xa2, 0x64, 0x99, 0x24, 0xaa, 0xff, + 0x94, 0x72, 0xbd, 0x90, 0x46, 0x04, 0x50, 0x39, 0xeb, 0x9e, 0x8f, 0xbb, 0xa3, 0x66, 0x0e, 0xad, + 0x41, 0xed, 0xa2, 0x3f, 0x1c, 0x9c, 0x8c, 0x47, 0x83, 0x93, 0x66, 0x3e, 0x0c, 0x5d, 0xbc, 0xbe, + 0xb8, 0x1c, 0x9c, 0x35, 0x0b, 0xe8, 0x21, 0x54, 0x8d, 0xc1, 0xa8, 0x3b, 0x3e, 0xef, 0x0f, 0x9b, + 0x45, 0x84, 0xa0, 0xd1, 0x1f, 0x9e, 0x8e, 0x4e, 0x26, 0x57, 0x2f, 0x8d, 0x1f, 0xbe, 0x1d, 0xbd, + 0xbc, 0x6a, 0x96, 0xf4, 0x1f, 0xa1, 0x99, 0x16, 0x94, 0xb4, 0xd4, 0x5b, 0x4a, 0xcc, 0x7f, 0xb2, + 0x12, 0xf5, 0xbf, 0x8b, 0xa9, 0x96, 0x2f, 0x22, 0xd7, 0xaf, 0x47, 0xb7, 0xf0, 0xc4, 0xa3, 0xd8, + 0xbd, 0xc3, 0x4a, 0xd3, 0xda, 0x8c, 0xd0, 0xaf, 0x28, 0x76, 0xd1, 0x01, 0x54, 0x94, 0xf9, 0x14, + 0x56, 0x99, 0x8f, 0x02, 0xa2, 0x63, 0xa8, 0x3a, 0x4a, 0x82, 0xca, 0xb1, 0xf6, 0x56, 0x6a, 0xd5, + 0x48, 0x52, 0xd0, 0x30, 0xcb, 0x41, 0x79, 0xf9, 0x4d, 0x95, 0x25, 0x6f, 0x98, 0xcb, 0x9e, 0xc9, + 0x3d, 0xa8, 0x5b, 0xb6, 0x8f, 0xa7, 0x94, 0x4c, 0x30, 0xa5, 0xd2, 0x87, 0xaa, 0xa1, 0xc9, 0xaa, + 0xc9, 0x2e, 0xa5, 0xa8, 0x05, 0x15, 0x8a, 0xa7, 0x84, 0xfa, 0xca, 0x6c, 0xd6, 0x6f, 0x39, 0xbf, + 0x8c, 0x1a, 0x0a, 0x85, 0x8e, 0xa1, 0x8e, 0x5d, 0x97, 0x09, 0xd5, 0x5a, 0x64, 0x33, 0x5b, 0xd9, + 0xa4, 0xee, 0x0d, 0xc4, 0x48, 0xe3, 0x7b, 0x1a, 0xac, 0xa7, 0x5b, 0x9c, 0xb0, 0xf7, 0x84, 0x73, + 0xdb, 0x22, 0xfe, 0xf7, 0xa5, 0x6a, 0xa9, 0x59, 0xd6, 0x1d, 0xd8, 0x48, 0xa8, 0xb9, 0x24, 0xdc, + 0xb1, 0xdd, 0xd4, 0x83, 0xee, 0x3e, 0x6f, 0x85, 0x27, 0x50, 0x8e, 0x6e, 0x1a, 0x75, 0xe1, 0xca, + 0x81, 0xbe, 0x0d, 0x9b, 0xcb, 0xca, 0x45, 0x0f, 0x28, 0xfd, 0x17, 0x78, 0xbe, 0xec, 0x11, 0x74, + 0x12, 0x6e, 0xd7, 0x67, 0x78, 0x08, 0x8d, 0x61, 0xf7, 0xee, 0xe5, 0xd5, 0x1b, 0xee, 0x20, 0x7b, + 0x33, 0x3f, 0xcd, 0x52, 0x3d, 0xe6, 0x34, 0xbc, 0x92, 0x93, 0x0b, 0xb9, 0x77, 0xf8, 0xe6, 0x60, + 0x6e, 0x8b, 0xeb, 0x60, 0xda, 0x32, 0x99, 0xd3, 0xa6, 0x1f, 0x67, 0xa2, 0x9d, 0x3c, 0xc2, 0xe7, + 0xc4, 0x6d, 0x7b, 0xd3, 0xaf, 0xe6, 0xac, 0xbd, 0xf8, 0xe2, 0x9f, 0x56, 0xa4, 0x7f, 0x1d, 0xfe, + 0x1b, 0x00, 0x00, 0xff, 0xff, 0x0c, 0x9c, 0x33, 0x30, 0x3a, 0x0c, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go new file mode 100644 index 0000000000..3677a3e4ea --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.validate.go @@ -0,0 +1,1407 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/execution.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} + + _ = core.WorkflowExecution_Phase(0) +) + +// Validate checks the field values on ExecutionCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionCreateRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionCreateRequestValidationError is the validation error returned by +// ExecutionCreateRequest.Validate if the designated constraints aren't met. +type ExecutionCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionCreateRequestValidationError) ErrorName() string { + return "ExecutionCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionCreateRequestValidationError{} + +// Validate checks the field values on ExecutionRelaunchRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionRelaunchRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionRelaunchRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Name + + return nil +} + +// ExecutionRelaunchRequestValidationError is the validation error returned by +// ExecutionRelaunchRequest.Validate if the designated constraints aren't met. +type ExecutionRelaunchRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionRelaunchRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionRelaunchRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionRelaunchRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionRelaunchRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionRelaunchRequestValidationError) ErrorName() string { + return "ExecutionRelaunchRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionRelaunchRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionRelaunchRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionRelaunchRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionRelaunchRequestValidationError{} + +// Validate checks the field values on ExecutionCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionCreateResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionCreateResponseValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionCreateResponseValidationError is the validation error returned by +// ExecutionCreateResponse.Validate if the designated constraints aren't met. +type ExecutionCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionCreateResponseValidationError) ErrorName() string { + return "ExecutionCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionCreateResponseValidationError{} + +// Validate checks the field values on WorkflowExecutionGetRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetRequestValidationError is the validation error returned +// by WorkflowExecutionGetRequest.Validate if the designated constraints +// aren't met. +type WorkflowExecutionGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetRequestValidationError) ErrorName() string { + return "WorkflowExecutionGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetRequestValidationError{} + +// Validate checks the field values on Execution with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Execution) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionValidationError is the validation error returned by +// Execution.Validate if the designated constraints aren't met. +type ExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionValidationError) ErrorName() string { return "ExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionValidationError{} + +// Validate checks the field values on ExecutionList with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ExecutionList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetExecutions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionListValidationError{ + field: fmt.Sprintf("Executions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// ExecutionListValidationError is the validation error returned by +// ExecutionList.Validate if the designated constraints aren't met. +type ExecutionListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionListValidationError) ErrorName() string { return "ExecutionListValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionListValidationError{} + +// Validate checks the field values on LiteralMapBlob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LiteralMapBlob) Validate() error { + if m == nil { + return nil + } + + switch m.Data.(type) { + + case *LiteralMapBlob_Values: + + if v, ok := interface{}(m.GetValues()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralMapBlobValidationError{ + field: "Values", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralMapBlob_Uri: + // no validation rules for Uri + + } + + return nil +} + +// LiteralMapBlobValidationError is the validation error returned by +// LiteralMapBlob.Validate if the designated constraints aren't met. +type LiteralMapBlobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralMapBlobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralMapBlobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralMapBlobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralMapBlobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralMapBlobValidationError) ErrorName() string { return "LiteralMapBlobValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralMapBlobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralMapBlob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralMapBlobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralMapBlobValidationError{} + +// Validate checks the field values on ExecutionClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ExecutionClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetComputedInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "ComputedInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Phase + + if v, ok := interface{}(m.GetStartedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "StartedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetNotifications() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: fmt.Sprintf("Notifications[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetWorkflowId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "WorkflowId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *ExecutionClosure_Outputs: + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionClosure_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionClosureValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionClosure_AbortCause: + // no validation rules for AbortCause + + } + + return nil +} + +// ExecutionClosureValidationError is the validation error returned by +// ExecutionClosure.Validate if the designated constraints aren't met. +type ExecutionClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionClosureValidationError) ErrorName() string { return "ExecutionClosureValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionClosureValidationError{} + +// Validate checks the field values on ExecutionMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *ExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Mode + + // no validation rules for Principal + + // no validation rules for Nesting + + if v, ok := interface{}(m.GetScheduledAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "ScheduledAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentNodeExecution()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "ParentNodeExecution", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetReferenceExecution()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionMetadataValidationError{ + field: "ReferenceExecution", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ExecutionMetadataValidationError is the validation error returned by +// ExecutionMetadata.Validate if the designated constraints aren't met. +type ExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionMetadataValidationError) ErrorName() string { + return "ExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionMetadataValidationError{} + +// Validate checks the field values on NotificationList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *NotificationList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNotifications() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NotificationListValidationError{ + field: fmt.Sprintf("Notifications[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NotificationListValidationError is the validation error returned by +// NotificationList.Validate if the designated constraints aren't met. +type NotificationListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NotificationListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NotificationListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NotificationListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NotificationListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NotificationListValidationError) ErrorName() string { return "NotificationListValidationError" } + +// Error satisfies the builtin error interface +func (e NotificationListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNotificationList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NotificationListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NotificationListValidationError{} + +// Validate checks the field values on ExecutionSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ExecutionSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetLaunchPlan()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "LaunchPlan", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetLabels()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Labels", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAnnotations()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Annotations", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.NotificationOverrides.(type) { + + case *ExecutionSpec_Notifications: + + if v, ok := interface{}(m.GetNotifications()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionSpecValidationError{ + field: "Notifications", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *ExecutionSpec_DisableAll: + // no validation rules for DisableAll + + } + + return nil +} + +// ExecutionSpecValidationError is the validation error returned by +// ExecutionSpec.Validate if the designated constraints aren't met. +type ExecutionSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionSpecValidationError) ErrorName() string { return "ExecutionSpecValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionSpecValidationError{} + +// Validate checks the field values on ExecutionTerminateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionTerminateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ExecutionTerminateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Cause + + return nil +} + +// ExecutionTerminateRequestValidationError is the validation error returned by +// ExecutionTerminateRequest.Validate if the designated constraints aren't met. +type ExecutionTerminateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionTerminateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionTerminateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionTerminateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionTerminateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionTerminateRequestValidationError) ErrorName() string { + return "ExecutionTerminateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionTerminateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionTerminateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionTerminateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionTerminateRequestValidationError{} + +// Validate checks the field values on ExecutionTerminateResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ExecutionTerminateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ExecutionTerminateResponseValidationError is the validation error returned +// by ExecutionTerminateResponse.Validate if the designated constraints aren't met. +type ExecutionTerminateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionTerminateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionTerminateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionTerminateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionTerminateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionTerminateResponseValidationError) ErrorName() string { + return "ExecutionTerminateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ExecutionTerminateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionTerminateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionTerminateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionTerminateResponseValidationError{} + +// Validate checks the field values on WorkflowExecutionGetDataRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionGetDataRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetDataRequestValidationError is the validation error +// returned by WorkflowExecutionGetDataRequest.Validate if the designated +// constraints aren't met. +type WorkflowExecutionGetDataRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetDataRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetDataRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetDataRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetDataRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetDataRequestValidationError) ErrorName() string { + return "WorkflowExecutionGetDataRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetDataRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetDataRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetDataRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetDataRequestValidationError{} + +// Validate checks the field values on WorkflowExecutionGetDataResponse with +// the rules defined in the proto definition for this message. If any rules +// are violated, an error is returned. +func (m *WorkflowExecutionGetDataResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionGetDataResponseValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowExecutionGetDataResponseValidationError is the validation error +// returned by WorkflowExecutionGetDataResponse.Validate if the designated +// constraints aren't met. +type WorkflowExecutionGetDataResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionGetDataResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionGetDataResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionGetDataResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionGetDataResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionGetDataResponseValidationError) ErrorName() string { + return "WorkflowExecutionGetDataResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionGetDataResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionGetDataResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionGetDataResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionGetDataResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json new file mode 100644 index 0000000000..c689c48651 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go new file mode 100644 index 0000000000..12e753f972 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go @@ -0,0 +1,761 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/launch_plan.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// By default any launch plan regardless of state can be used to launch a workflow execution. +// However, at most one version of a launch plan +// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +// group will be observed and trigger executions at a defined cadence. +type LaunchPlanState int32 + +const ( + LaunchPlanState_INACTIVE LaunchPlanState = 0 + LaunchPlanState_ACTIVE LaunchPlanState = 1 +) + +var LaunchPlanState_name = map[int32]string{ + 0: "INACTIVE", + 1: "ACTIVE", +} +var LaunchPlanState_value = map[string]int32{ + "INACTIVE": 0, + "ACTIVE": 1, +} + +func (x LaunchPlanState) String() string { + return proto.EnumName(LaunchPlanState_name, int32(x)) +} +func (LaunchPlanState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{0} +} + +// Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required +// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan. +type LaunchPlanCreateRequest struct { + // Uniquely identifies a launch plan entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanCreateRequest) Reset() { *m = LaunchPlanCreateRequest{} } +func (m *LaunchPlanCreateRequest) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanCreateRequest) ProtoMessage() {} +func (*LaunchPlanCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{0} +} +func (m *LaunchPlanCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanCreateRequest.Unmarshal(m, b) +} +func (m *LaunchPlanCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanCreateRequest.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanCreateRequest.Merge(dst, src) +} +func (m *LaunchPlanCreateRequest) XXX_Size() int { + return xxx_messageInfo_LaunchPlanCreateRequest.Size(m) +} +func (m *LaunchPlanCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanCreateRequest proto.InternalMessageInfo + +func (m *LaunchPlanCreateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *LaunchPlanCreateRequest) GetSpec() *LaunchPlanSpec { + if m != nil { + return m.Spec + } + return nil +} + +type LaunchPlanCreateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanCreateResponse) Reset() { *m = LaunchPlanCreateResponse{} } +func (m *LaunchPlanCreateResponse) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanCreateResponse) ProtoMessage() {} +func (*LaunchPlanCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{1} +} +func (m *LaunchPlanCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanCreateResponse.Unmarshal(m, b) +} +func (m *LaunchPlanCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanCreateResponse.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanCreateResponse.Merge(dst, src) +} +func (m *LaunchPlanCreateResponse) XXX_Size() int { + return xxx_messageInfo_LaunchPlanCreateResponse.Size(m) +} +func (m *LaunchPlanCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanCreateResponse proto.InternalMessageInfo + +// A LaunchPlan provides the capability to templatize workflow executions. +// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +// definition doesn't necessarily have a default value for said input. +type LaunchPlan struct { + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Closure *LaunchPlanClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlan) Reset() { *m = LaunchPlan{} } +func (m *LaunchPlan) String() string { return proto.CompactTextString(m) } +func (*LaunchPlan) ProtoMessage() {} +func (*LaunchPlan) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{2} +} +func (m *LaunchPlan) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlan.Unmarshal(m, b) +} +func (m *LaunchPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlan.Marshal(b, m, deterministic) +} +func (dst *LaunchPlan) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlan.Merge(dst, src) +} +func (m *LaunchPlan) XXX_Size() int { + return xxx_messageInfo_LaunchPlan.Size(m) +} +func (m *LaunchPlan) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlan.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlan proto.InternalMessageInfo + +func (m *LaunchPlan) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *LaunchPlan) GetSpec() *LaunchPlanSpec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *LaunchPlan) GetClosure() *LaunchPlanClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Response object for list launch plan requests. +type LaunchPlanList struct { + LaunchPlans []*LaunchPlan `protobuf:"bytes,1,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,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 *LaunchPlanList) Reset() { *m = LaunchPlanList{} } +func (m *LaunchPlanList) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanList) ProtoMessage() {} +func (*LaunchPlanList) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{3} +} +func (m *LaunchPlanList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanList.Unmarshal(m, b) +} +func (m *LaunchPlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanList.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanList) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanList.Merge(dst, src) +} +func (m *LaunchPlanList) XXX_Size() int { + return xxx_messageInfo_LaunchPlanList.Size(m) +} +func (m *LaunchPlanList) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanList.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanList proto.InternalMessageInfo + +func (m *LaunchPlanList) GetLaunchPlans() []*LaunchPlan { + if m != nil { + return m.LaunchPlans + } + return nil +} + +func (m *LaunchPlanList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Defines permissions associated with executions created by this launch plan spec. +type Auth struct { + // Types that are valid to be assigned to Method: + // *Auth_AssumableIamRole + // *Auth_KubernetesServiceAccount + Method isAuth_Method `protobuf_oneof:"method"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Auth) Reset() { *m = Auth{} } +func (m *Auth) String() string { return proto.CompactTextString(m) } +func (*Auth) ProtoMessage() {} +func (*Auth) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{4} +} +func (m *Auth) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Auth.Unmarshal(m, b) +} +func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Auth.Marshal(b, m, deterministic) +} +func (dst *Auth) XXX_Merge(src proto.Message) { + xxx_messageInfo_Auth.Merge(dst, src) +} +func (m *Auth) XXX_Size() int { + return xxx_messageInfo_Auth.Size(m) +} +func (m *Auth) XXX_DiscardUnknown() { + xxx_messageInfo_Auth.DiscardUnknown(m) +} + +var xxx_messageInfo_Auth proto.InternalMessageInfo + +type isAuth_Method interface { + isAuth_Method() +} + +type Auth_AssumableIamRole struct { + AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3,oneof"` +} + +type Auth_KubernetesServiceAccount struct { + KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3,oneof"` +} + +func (*Auth_AssumableIamRole) isAuth_Method() {} + +func (*Auth_KubernetesServiceAccount) isAuth_Method() {} + +func (m *Auth) GetMethod() isAuth_Method { + if m != nil { + return m.Method + } + return nil +} + +func (m *Auth) GetAssumableIamRole() string { + if x, ok := m.GetMethod().(*Auth_AssumableIamRole); ok { + return x.AssumableIamRole + } + return "" +} + +func (m *Auth) GetKubernetesServiceAccount() string { + if x, ok := m.GetMethod().(*Auth_KubernetesServiceAccount); ok { + return x.KubernetesServiceAccount + } + return "" +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Auth) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Auth_OneofMarshaler, _Auth_OneofUnmarshaler, _Auth_OneofSizer, []interface{}{ + (*Auth_AssumableIamRole)(nil), + (*Auth_KubernetesServiceAccount)(nil), + } +} + +func _Auth_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Auth) + // method + switch x := m.Method.(type) { + case *Auth_AssumableIamRole: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.AssumableIamRole) + case *Auth_KubernetesServiceAccount: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.KubernetesServiceAccount) + case nil: + default: + return fmt.Errorf("Auth.Method has unexpected type %T", x) + } + return nil +} + +func _Auth_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Auth) + switch tag { + case 1: // method.assumable_iam_role + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Method = &Auth_AssumableIamRole{x} + return true, err + case 2: // method.kubernetes_service_account + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Method = &Auth_KubernetesServiceAccount{x} + return true, err + default: + return false, nil + } +} + +func _Auth_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Auth) + // method + switch x := m.Method.(type) { + case *Auth_AssumableIamRole: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.AssumableIamRole))) + n += len(x.AssumableIamRole) + case *Auth_KubernetesServiceAccount: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.KubernetesServiceAccount))) + n += len(x.KubernetesServiceAccount) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// User-provided launch plan definition and configuration values. +type LaunchPlanSpec struct { + // Reference to the Workflow template that the launch plan references + WorkflowId *core.Identifier `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + // Metadata for the Launch Plan + EntityMetadata *LaunchPlanMetadata `protobuf:"bytes,2,opt,name=entity_metadata,json=entityMetadata,proto3" json:"entity_metadata,omitempty"` + // Input values to be passed for the execution + DefaultInputs *core.ParameterMap `protobuf:"bytes,3,opt,name=default_inputs,json=defaultInputs,proto3" json:"default_inputs,omitempty"` + // Fixed, non-overridable inputs for the Launch Plan + FixedInputs *core.LiteralMap `protobuf:"bytes,4,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` + // String to indicate the role to use to execute the workflow underneath + Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // Deprecated: Do not use. + // Custom labels to be applied to the execution resource. + Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` + // Custom annotations to be applied to the execution resource. + Annotations *Annotations `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Indicates the permission associated with workflow executions triggered with this launch plan. + Auth *Auth `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanSpec) Reset() { *m = LaunchPlanSpec{} } +func (m *LaunchPlanSpec) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanSpec) ProtoMessage() {} +func (*LaunchPlanSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{5} +} +func (m *LaunchPlanSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanSpec.Unmarshal(m, b) +} +func (m *LaunchPlanSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanSpec.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanSpec.Merge(dst, src) +} +func (m *LaunchPlanSpec) XXX_Size() int { + return xxx_messageInfo_LaunchPlanSpec.Size(m) +} +func (m *LaunchPlanSpec) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanSpec proto.InternalMessageInfo + +func (m *LaunchPlanSpec) GetWorkflowId() *core.Identifier { + if m != nil { + return m.WorkflowId + } + return nil +} + +func (m *LaunchPlanSpec) GetEntityMetadata() *LaunchPlanMetadata { + if m != nil { + return m.EntityMetadata + } + return nil +} + +func (m *LaunchPlanSpec) GetDefaultInputs() *core.ParameterMap { + if m != nil { + return m.DefaultInputs + } + return nil +} + +func (m *LaunchPlanSpec) GetFixedInputs() *core.LiteralMap { + if m != nil { + return m.FixedInputs + } + return nil +} + +// Deprecated: Do not use. +func (m *LaunchPlanSpec) GetRole() string { + if m != nil { + return m.Role + } + return "" +} + +func (m *LaunchPlanSpec) GetLabels() *Labels { + if m != nil { + return m.Labels + } + return nil +} + +func (m *LaunchPlanSpec) GetAnnotations() *Annotations { + if m != nil { + return m.Annotations + } + return nil +} + +func (m *LaunchPlanSpec) GetAuth() *Auth { + if m != nil { + return m.Auth + } + return nil +} + +// Values computed by the flyte platform after launch plan registration. +// These include expected_inputs required to be present in a CreateExecutionRequest +// to launch the reference workflow as well timestamp values associated with the launch plan. +type LaunchPlanClosure struct { + // Indicate the Launch plan phase + State LaunchPlanState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` + // Indicates the set of inputs to execute the Launch plan + ExpectedInputs *core.ParameterMap `protobuf:"bytes,2,opt,name=expected_inputs,json=expectedInputs,proto3" json:"expected_inputs,omitempty"` + // Indicates the set of outputs from the Launch plan + ExpectedOutputs *core.VariableMap `protobuf:"bytes,3,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"` + // Time at which the launch plan was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the launch plan was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanClosure) Reset() { *m = LaunchPlanClosure{} } +func (m *LaunchPlanClosure) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanClosure) ProtoMessage() {} +func (*LaunchPlanClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{6} +} +func (m *LaunchPlanClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanClosure.Unmarshal(m, b) +} +func (m *LaunchPlanClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanClosure.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanClosure.Merge(dst, src) +} +func (m *LaunchPlanClosure) XXX_Size() int { + return xxx_messageInfo_LaunchPlanClosure.Size(m) +} +func (m *LaunchPlanClosure) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanClosure proto.InternalMessageInfo + +func (m *LaunchPlanClosure) GetState() LaunchPlanState { + if m != nil { + return m.State + } + return LaunchPlanState_INACTIVE +} + +func (m *LaunchPlanClosure) GetExpectedInputs() *core.ParameterMap { + if m != nil { + return m.ExpectedInputs + } + return nil +} + +func (m *LaunchPlanClosure) GetExpectedOutputs() *core.VariableMap { + if m != nil { + return m.ExpectedOutputs + } + return nil +} + +func (m *LaunchPlanClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *LaunchPlanClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +// the reference workflow. +type LaunchPlanMetadata struct { + // Schedule to execute the Launch Plan + Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + // List of notifications based on Execution status transitions + Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanMetadata) Reset() { *m = LaunchPlanMetadata{} } +func (m *LaunchPlanMetadata) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanMetadata) ProtoMessage() {} +func (*LaunchPlanMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{7} +} +func (m *LaunchPlanMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanMetadata.Unmarshal(m, b) +} +func (m *LaunchPlanMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanMetadata.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanMetadata.Merge(dst, src) +} +func (m *LaunchPlanMetadata) XXX_Size() int { + return xxx_messageInfo_LaunchPlanMetadata.Size(m) +} +func (m *LaunchPlanMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanMetadata proto.InternalMessageInfo + +func (m *LaunchPlanMetadata) GetSchedule() *Schedule { + if m != nil { + return m.Schedule + } + return nil +} + +func (m *LaunchPlanMetadata) GetNotifications() []*Notification { + if m != nil { + return m.Notifications + } + return nil +} + +// Request to set the referenced launch plan state to the configured value. +type LaunchPlanUpdateRequest struct { + // Identifier of launch plan for which to change state. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Desired state to apply to the launch plan. + State LaunchPlanState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanUpdateRequest) Reset() { *m = LaunchPlanUpdateRequest{} } +func (m *LaunchPlanUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanUpdateRequest) ProtoMessage() {} +func (*LaunchPlanUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{8} +} +func (m *LaunchPlanUpdateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanUpdateRequest.Unmarshal(m, b) +} +func (m *LaunchPlanUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanUpdateRequest.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanUpdateRequest.Merge(dst, src) +} +func (m *LaunchPlanUpdateRequest) XXX_Size() int { + return xxx_messageInfo_LaunchPlanUpdateRequest.Size(m) +} +func (m *LaunchPlanUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanUpdateRequest proto.InternalMessageInfo + +func (m *LaunchPlanUpdateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *LaunchPlanUpdateRequest) GetState() LaunchPlanState { + if m != nil { + return m.State + } + return LaunchPlanState_INACTIVE +} + +// Purposefully empty, may be populated in the future. +type LaunchPlanUpdateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LaunchPlanUpdateResponse) Reset() { *m = LaunchPlanUpdateResponse{} } +func (m *LaunchPlanUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*LaunchPlanUpdateResponse) ProtoMessage() {} +func (*LaunchPlanUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_launch_plan_470827f6e0ac1849, []int{9} +} +func (m *LaunchPlanUpdateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LaunchPlanUpdateResponse.Unmarshal(m, b) +} +func (m *LaunchPlanUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LaunchPlanUpdateResponse.Marshal(b, m, deterministic) +} +func (dst *LaunchPlanUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_LaunchPlanUpdateResponse.Merge(dst, src) +} +func (m *LaunchPlanUpdateResponse) XXX_Size() int { + return xxx_messageInfo_LaunchPlanUpdateResponse.Size(m) +} +func (m *LaunchPlanUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_LaunchPlanUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_LaunchPlanUpdateResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*LaunchPlanCreateRequest)(nil), "flyteidl.admin.LaunchPlanCreateRequest") + proto.RegisterType((*LaunchPlanCreateResponse)(nil), "flyteidl.admin.LaunchPlanCreateResponse") + proto.RegisterType((*LaunchPlan)(nil), "flyteidl.admin.LaunchPlan") + proto.RegisterType((*LaunchPlanList)(nil), "flyteidl.admin.LaunchPlanList") + proto.RegisterType((*Auth)(nil), "flyteidl.admin.Auth") + proto.RegisterType((*LaunchPlanSpec)(nil), "flyteidl.admin.LaunchPlanSpec") + proto.RegisterType((*LaunchPlanClosure)(nil), "flyteidl.admin.LaunchPlanClosure") + proto.RegisterType((*LaunchPlanMetadata)(nil), "flyteidl.admin.LaunchPlanMetadata") + proto.RegisterType((*LaunchPlanUpdateRequest)(nil), "flyteidl.admin.LaunchPlanUpdateRequest") + proto.RegisterType((*LaunchPlanUpdateResponse)(nil), "flyteidl.admin.LaunchPlanUpdateResponse") + proto.RegisterEnum("flyteidl.admin.LaunchPlanState", LaunchPlanState_name, LaunchPlanState_value) +} + +func init() { + proto.RegisterFile("flyteidl/admin/launch_plan.proto", fileDescriptor_launch_plan_470827f6e0ac1849) +} + +var fileDescriptor_launch_plan_470827f6e0ac1849 = []byte{ + // 819 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xc7, 0x63, 0xc7, 0x71, 0x93, 0xe3, 0xd4, 0x09, 0xa3, 0xaa, 0x2c, 0x6e, 0x69, 0xc3, 0x5e, + 0x05, 0x10, 0xbb, 0xc2, 0x85, 0x0b, 0x3e, 0x8a, 0x64, 0x87, 0x4a, 0xb5, 0x48, 0x4b, 0x35, 0x29, + 0xbd, 0xe0, 0x66, 0x35, 0xde, 0x3d, 0xb6, 0x47, 0x99, 0xdd, 0x59, 0x76, 0xce, 0xd2, 0x44, 0xdc, + 0xf0, 0x04, 0x3c, 0x07, 0x0f, 0x03, 0xef, 0x84, 0x76, 0xf6, 0xc3, 0x5f, 0x84, 0x02, 0x52, 0xef, + 0x3c, 0x3e, 0xbf, 0xff, 0x99, 0xf3, 0x35, 0x67, 0xe1, 0x64, 0xa6, 0xae, 0x09, 0x65, 0xa4, 0x7c, + 0x11, 0xc5, 0x32, 0xf1, 0x95, 0xc8, 0x93, 0x70, 0x11, 0xa4, 0x4a, 0x24, 0x5e, 0x9a, 0x69, 0xd2, + 0xac, 0x5f, 0x13, 0x9e, 0x25, 0x06, 0xf7, 0x1b, 0x45, 0xa8, 0x33, 0xf4, 0x95, 0x24, 0xcc, 0x84, + 0x32, 0x25, 0x3d, 0x78, 0xb0, 0x6e, 0x95, 0x11, 0x26, 0x24, 0x67, 0x12, 0xb3, 0xca, 0xfe, 0xfe, + 0x86, 0x3d, 0x21, 0xcc, 0x66, 0x22, 0xc4, 0x2d, 0x73, 0x19, 0x8e, 0x09, 0x17, 0x18, 0xe5, 0xaa, + 0x36, 0xdf, 0xdb, 0x30, 0x87, 0x3a, 0x8e, 0x75, 0x15, 0xe8, 0xe0, 0xe1, 0x5c, 0xeb, 0xb9, 0x42, + 0xdf, 0x9e, 0xa6, 0xf9, 0xcc, 0x27, 0x19, 0xa3, 0x21, 0x11, 0xa7, 0x25, 0xe0, 0x5e, 0xc1, 0xbb, + 0xe7, 0x36, 0xbd, 0x17, 0x4a, 0x24, 0x67, 0x19, 0x0a, 0x42, 0x8e, 0x3f, 0xe5, 0x68, 0x88, 0x7d, + 0x08, 0x6d, 0x19, 0x39, 0xad, 0x93, 0xd6, 0x69, 0x6f, 0xf8, 0x9e, 0xd7, 0x64, 0x5c, 0xc4, 0xe8, + 0x4d, 0x9a, 0x1c, 0x78, 0x5b, 0x46, 0x6c, 0x08, 0x1d, 0x93, 0x62, 0xe8, 0xb4, 0x2d, 0xfc, 0xc0, + 0x5b, 0x2f, 0x8f, 0xb7, 0xbc, 0xe1, 0x22, 0xc5, 0x90, 0x5b, 0xd6, 0x1d, 0x80, 0xb3, 0x7d, 0xb3, + 0x49, 0x75, 0x62, 0xd0, 0xfd, 0xbd, 0x05, 0xb0, 0x34, 0xbe, 0xe5, 0x48, 0xd8, 0x57, 0x70, 0x2b, + 0x54, 0xda, 0xe4, 0x19, 0x3a, 0xbb, 0x56, 0xf6, 0xc1, 0xcd, 0xb2, 0xb3, 0x12, 0xe4, 0xb5, 0xc2, + 0x45, 0xe8, 0x2f, 0xad, 0xe7, 0xd2, 0x10, 0x7b, 0x0c, 0x87, 0x2b, 0x13, 0x63, 0x9c, 0xd6, 0xc9, + 0xee, 0x69, 0x6f, 0x38, 0xb8, 0xd9, 0x27, 0xef, 0xa9, 0xe6, 0xb7, 0x61, 0x77, 0x60, 0x8f, 0xf4, + 0x25, 0x26, 0x36, 0x85, 0x03, 0x5e, 0x1e, 0xdc, 0x5f, 0x5b, 0xd0, 0x19, 0xe5, 0xb4, 0x60, 0x1e, + 0x30, 0x61, 0x4c, 0x1e, 0x8b, 0xa9, 0xc2, 0x40, 0x8a, 0x38, 0xc8, 0xb4, 0x42, 0x5b, 0x9b, 0x83, + 0xa7, 0x3b, 0xfc, 0xb8, 0xb1, 0x4d, 0x44, 0xcc, 0xb5, 0x42, 0xf6, 0x0d, 0x0c, 0x2e, 0xf3, 0x29, + 0x66, 0x09, 0x12, 0x9a, 0xc0, 0x60, 0xf6, 0xb3, 0x0c, 0x31, 0x10, 0x61, 0xa8, 0xf3, 0x84, 0xca, + 0x3b, 0x9e, 0xee, 0x70, 0x67, 0xc9, 0x5c, 0x94, 0xc8, 0xa8, 0x24, 0xc6, 0xfb, 0xd0, 0x8d, 0x91, + 0x16, 0x3a, 0x72, 0xff, 0xd8, 0x5d, 0x4d, 0xb5, 0xa8, 0x1f, 0xfb, 0x12, 0x7a, 0xaf, 0x75, 0x76, + 0x39, 0x53, 0xfa, 0x75, 0xf0, 0x6f, 0x3a, 0x04, 0x35, 0x3d, 0x89, 0xd8, 0x77, 0x70, 0x54, 0xfc, + 0x4f, 0xd7, 0x41, 0x8c, 0x24, 0x22, 0x41, 0xa2, 0x6a, 0x9a, 0x7b, 0x73, 0xa5, 0x9e, 0x55, 0x24, + 0xef, 0x97, 0xd2, 0xfa, 0xcc, 0xc6, 0xd0, 0x8f, 0x70, 0x26, 0x72, 0x45, 0x81, 0x4c, 0xd2, 0x9c, + 0x4c, 0xd5, 0xc9, 0x7b, 0x1b, 0xb1, 0xbc, 0x10, 0x99, 0x88, 0x91, 0x30, 0x7b, 0x26, 0x52, 0x7e, + 0xbb, 0x92, 0x4c, 0xac, 0x82, 0x7d, 0x0d, 0x87, 0x33, 0x79, 0x85, 0x51, 0xed, 0xa1, 0xf3, 0xb7, + 0xd9, 0x9c, 0x97, 0x6f, 0xbb, 0xd0, 0xf7, 0x2c, 0x5e, 0xa9, 0xef, 0x42, 0xc7, 0x76, 0x62, 0xaf, + 0xa8, 0xe8, 0xb8, 0xed, 0xb4, 0xb8, 0x3d, 0x33, 0x0f, 0xba, 0x4a, 0x4c, 0x51, 0x19, 0xa7, 0x6b, + 0xfd, 0xdd, 0xdd, 0xce, 0xae, 0xb0, 0xf2, 0x8a, 0x62, 0x8f, 0xa1, 0x27, 0x92, 0x44, 0x93, 0x20, + 0xa9, 0x13, 0xe3, 0xdc, 0xda, 0x4c, 0xa3, 0x14, 0x8d, 0x96, 0x08, 0x5f, 0xe5, 0xd9, 0x29, 0x74, + 0x44, 0x4e, 0x0b, 0x67, 0xdf, 0xea, 0xee, 0x6c, 0xe9, 0x72, 0x5a, 0x70, 0x4b, 0xb8, 0x7f, 0xb6, + 0xe1, 0x9d, 0xad, 0xb9, 0x66, 0x9f, 0xc3, 0x9e, 0x21, 0x41, 0xe5, 0x44, 0xf5, 0x87, 0x0f, 0xff, + 0xe1, 0x01, 0x15, 0x18, 0x2f, 0x69, 0xf6, 0x2d, 0x1c, 0xe1, 0x55, 0x8a, 0x21, 0x2d, 0xcb, 0xd7, + 0x7e, 0x73, 0x03, 0xfa, 0xb5, 0xa6, 0xaa, 0xe1, 0x13, 0x38, 0x6e, 0xbc, 0xe8, 0x9c, 0x56, 0xfa, + 0x38, 0xd8, 0x70, 0xf3, 0x4a, 0x64, 0xb2, 0x98, 0xf2, 0xc2, 0x4b, 0x73, 0xf3, 0xf7, 0xa5, 0x84, + 0x7d, 0x01, 0x10, 0xda, 0x7d, 0x12, 0x05, 0x82, 0xaa, 0x36, 0x0e, 0xbc, 0x72, 0x13, 0x7a, 0xf5, + 0x26, 0xf4, 0x5e, 0xd6, 0x9b, 0x90, 0x1f, 0x54, 0xf4, 0x88, 0x0a, 0x69, 0x9e, 0x46, 0xb5, 0x74, + 0xef, 0xcd, 0xd2, 0x8a, 0x1e, 0x91, 0xfb, 0x5b, 0x0b, 0xd8, 0xf6, 0xa4, 0xb2, 0xcf, 0x60, 0xbf, + 0x5e, 0xd8, 0xd5, 0xfb, 0x70, 0x36, 0x6b, 0x7a, 0x51, 0xd9, 0x79, 0x43, 0xb2, 0x31, 0xdc, 0x4e, + 0x74, 0xf1, 0x68, 0xc2, 0x6a, 0x0e, 0xda, 0x76, 0x89, 0xdc, 0xdf, 0x94, 0x3e, 0x5f, 0x81, 0xf8, + 0xba, 0xc4, 0xfd, 0x65, 0x75, 0xb5, 0xff, 0x60, 0xe3, 0xfc, 0x1f, 0xab, 0xbd, 0x19, 0x88, 0xf6, + 0x7f, 0x19, 0x88, 0xf5, 0xed, 0x5e, 0x5f, 0x5e, 0x6e, 0xf7, 0x8f, 0x3e, 0x86, 0xa3, 0x0d, 0x15, + 0x3b, 0x84, 0xfd, 0xc9, 0xf3, 0xd1, 0xd9, 0xcb, 0xc9, 0xab, 0x27, 0xc7, 0x3b, 0x0c, 0xa0, 0x5b, + 0xfd, 0x6e, 0x8d, 0x1f, 0xfd, 0xf8, 0xe9, 0x5c, 0xd2, 0x22, 0x9f, 0x7a, 0xa1, 0x8e, 0x7d, 0x75, + 0x3d, 0x23, 0xbf, 0xf9, 0xe0, 0xcd, 0x31, 0xf1, 0xd3, 0xe9, 0x27, 0x73, 0xed, 0xaf, 0x7f, 0x03, + 0xa7, 0x5d, 0xdb, 0xaa, 0x47, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x26, 0x2e, 0xde, 0xca, + 0x07, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go new file mode 100644 index 0000000000..5c04e71401 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.validate.go @@ -0,0 +1,922 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/launch_plan.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on LaunchPlanCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanCreateRequestValidationError is the validation error returned by +// LaunchPlanCreateRequest.Validate if the designated constraints aren't met. +type LaunchPlanCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanCreateRequestValidationError) ErrorName() string { + return "LaunchPlanCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanCreateRequestValidationError{} + +// Validate checks the field values on LaunchPlanCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanCreateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// LaunchPlanCreateResponseValidationError is the validation error returned by +// LaunchPlanCreateResponse.Validate if the designated constraints aren't met. +type LaunchPlanCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanCreateResponseValidationError) ErrorName() string { + return "LaunchPlanCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanCreateResponseValidationError{} + +// Validate checks the field values on LaunchPlan with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *LaunchPlan) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanValidationError is the validation error returned by +// LaunchPlan.Validate if the designated constraints aren't met. +type LaunchPlanValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanValidationError) ErrorName() string { return "LaunchPlanValidationError" } + +// Error satisfies the builtin error interface +func (e LaunchPlanValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlan.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanValidationError{} + +// Validate checks the field values on LaunchPlanList with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LaunchPlanList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetLaunchPlans() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanListValidationError{ + field: fmt.Sprintf("LaunchPlans[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// LaunchPlanListValidationError is the validation error returned by +// LaunchPlanList.Validate if the designated constraints aren't met. +type LaunchPlanListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanListValidationError) ErrorName() string { return "LaunchPlanListValidationError" } + +// Error satisfies the builtin error interface +func (e LaunchPlanListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanListValidationError{} + +// Validate checks the field values on Auth with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Auth) Validate() error { + if m == nil { + return nil + } + + switch m.Method.(type) { + + case *Auth_AssumableIamRole: + // no validation rules for AssumableIamRole + + case *Auth_KubernetesServiceAccount: + // no validation rules for KubernetesServiceAccount + + } + + return nil +} + +// AuthValidationError is the validation error returned by Auth.Validate if the +// designated constraints aren't met. +type AuthValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AuthValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AuthValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AuthValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AuthValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AuthValidationError) ErrorName() string { return "AuthValidationError" } + +// Error satisfies the builtin error interface +func (e AuthValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAuth.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AuthValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AuthValidationError{} + +// Validate checks the field values on LaunchPlanSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LaunchPlanSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflowId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "WorkflowId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetEntityMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "EntityMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDefaultInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "DefaultInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetFixedInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "FixedInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Role + + if v, ok := interface{}(m.GetLabels()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Labels", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAnnotations()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Annotations", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetAuth()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanSpecValidationError{ + field: "Auth", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanSpecValidationError is the validation error returned by +// LaunchPlanSpec.Validate if the designated constraints aren't met. +type LaunchPlanSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanSpecValidationError) ErrorName() string { return "LaunchPlanSpecValidationError" } + +// Error satisfies the builtin error interface +func (e LaunchPlanSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanSpecValidationError{} + +// Validate checks the field values on LaunchPlanClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LaunchPlanClosure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for State + + if v, ok := interface{}(m.GetExpectedInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "ExpectedInputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetExpectedOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "ExpectedOutputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// LaunchPlanClosureValidationError is the validation error returned by +// LaunchPlanClosure.Validate if the designated constraints aren't met. +type LaunchPlanClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanClosureValidationError) ErrorName() string { + return "LaunchPlanClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanClosureValidationError{} + +// Validate checks the field values on LaunchPlanMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetSchedule()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanMetadataValidationError{ + field: "Schedule", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetNotifications() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanMetadataValidationError{ + field: fmt.Sprintf("Notifications[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LaunchPlanMetadataValidationError is the validation error returned by +// LaunchPlanMetadata.Validate if the designated constraints aren't met. +type LaunchPlanMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanMetadataValidationError) ErrorName() string { + return "LaunchPlanMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanMetadataValidationError{} + +// Validate checks the field values on LaunchPlanUpdateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanUpdateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LaunchPlanUpdateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for State + + return nil +} + +// LaunchPlanUpdateRequestValidationError is the validation error returned by +// LaunchPlanUpdateRequest.Validate if the designated constraints aren't met. +type LaunchPlanUpdateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanUpdateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanUpdateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanUpdateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanUpdateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanUpdateRequestValidationError) ErrorName() string { + return "LaunchPlanUpdateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanUpdateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanUpdateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanUpdateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanUpdateRequestValidationError{} + +// Validate checks the field values on LaunchPlanUpdateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *LaunchPlanUpdateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// LaunchPlanUpdateResponseValidationError is the validation error returned by +// LaunchPlanUpdateResponse.Validate if the designated constraints aren't met. +type LaunchPlanUpdateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LaunchPlanUpdateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LaunchPlanUpdateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LaunchPlanUpdateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LaunchPlanUpdateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LaunchPlanUpdateResponseValidationError) ErrorName() string { + return "LaunchPlanUpdateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e LaunchPlanUpdateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLaunchPlanUpdateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LaunchPlanUpdateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LaunchPlanUpdateResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json new file mode 100644 index 0000000000..6a473691ef --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/launch_plan.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go new file mode 100644 index 0000000000..f0671a27ea --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go @@ -0,0 +1,778 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/node_execution.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// A message used to fetch a single node execution entity. +type NodeExecutionGetRequest struct { + // Uniquely identifies an individual node execution. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionGetRequest) Reset() { *m = NodeExecutionGetRequest{} } +func (m *NodeExecutionGetRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionGetRequest) ProtoMessage() {} +func (*NodeExecutionGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{0} +} +func (m *NodeExecutionGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionGetRequest.Unmarshal(m, b) +} +func (m *NodeExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionGetRequest.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionGetRequest.Merge(dst, src) +} +func (m *NodeExecutionGetRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionGetRequest.Size(m) +} +func (m *NodeExecutionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionGetRequest proto.InternalMessageInfo + +func (m *NodeExecutionGetRequest) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Represents a request structure to retrieve a list of node execution entities. +type NodeExecutionListRequest struct { + // Indicates the workflow execution to filter by. + WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionListRequest) Reset() { *m = NodeExecutionListRequest{} } +func (m *NodeExecutionListRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionListRequest) ProtoMessage() {} +func (*NodeExecutionListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{1} +} +func (m *NodeExecutionListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionListRequest.Unmarshal(m, b) +} +func (m *NodeExecutionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionListRequest.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionListRequest.Merge(dst, src) +} +func (m *NodeExecutionListRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionListRequest.Size(m) +} +func (m *NodeExecutionListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionListRequest proto.InternalMessageInfo + +func (m *NodeExecutionListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WorkflowExecutionId + } + return nil +} + +func (m *NodeExecutionListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NodeExecutionListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NodeExecutionListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *NodeExecutionListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +type NodeExecutionForTaskListRequest struct { + // Indicates the node execution to filter by. + TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionForTaskListRequest) Reset() { *m = NodeExecutionForTaskListRequest{} } +func (m *NodeExecutionForTaskListRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionForTaskListRequest) ProtoMessage() {} +func (*NodeExecutionForTaskListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{2} +} +func (m *NodeExecutionForTaskListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionForTaskListRequest.Unmarshal(m, b) +} +func (m *NodeExecutionForTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionForTaskListRequest.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionForTaskListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionForTaskListRequest.Merge(dst, src) +} +func (m *NodeExecutionForTaskListRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionForTaskListRequest.Size(m) +} +func (m *NodeExecutionForTaskListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionForTaskListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionForTaskListRequest proto.InternalMessageInfo + +func (m *NodeExecutionForTaskListRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { + if m != nil { + return m.TaskExecutionId + } + return nil +} + +func (m *NodeExecutionForTaskListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *NodeExecutionForTaskListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *NodeExecutionForTaskListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *NodeExecutionForTaskListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Encapsulates all details for a single node execution entity. +// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +// sub-workflow, or even a separate child-workflow execution. +// The same task can be called repeatedly in a single workflow but each node is unique. +type NodeExecution struct { + // Uniquely identifies an individual node execution. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Computed results associated with this node execution. + Closure *NodeExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecution) Reset() { *m = NodeExecution{} } +func (m *NodeExecution) String() string { return proto.CompactTextString(m) } +func (*NodeExecution) ProtoMessage() {} +func (*NodeExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{3} +} +func (m *NodeExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecution.Unmarshal(m, b) +} +func (m *NodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecution.Marshal(b, m, deterministic) +} +func (dst *NodeExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecution.Merge(dst, src) +} +func (m *NodeExecution) XXX_Size() int { + return xxx_messageInfo_NodeExecution.Size(m) +} +func (m *NodeExecution) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecution proto.InternalMessageInfo + +func (m *NodeExecution) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *NodeExecution) GetInputUri() string { + if m != nil { + return m.InputUri + } + return "" +} + +func (m *NodeExecution) GetClosure() *NodeExecutionClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Request structure to retrieve a list of node execution entities. +type NodeExecutionList struct { + NodeExecutions []*NodeExecution `protobuf:"bytes,1,rep,name=node_executions,json=nodeExecutions,proto3" json:"node_executions,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 *NodeExecutionList) Reset() { *m = NodeExecutionList{} } +func (m *NodeExecutionList) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionList) ProtoMessage() {} +func (*NodeExecutionList) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{4} +} +func (m *NodeExecutionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionList.Unmarshal(m, b) +} +func (m *NodeExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionList.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionList.Merge(dst, src) +} +func (m *NodeExecutionList) XXX_Size() int { + return xxx_messageInfo_NodeExecutionList.Size(m) +} +func (m *NodeExecutionList) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionList.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionList proto.InternalMessageInfo + +func (m *NodeExecutionList) GetNodeExecutions() []*NodeExecution { + if m != nil { + return m.NodeExecutions + } + return nil +} + +func (m *NodeExecutionList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Container for node execution details and results. +type NodeExecutionClosure struct { + // Only a node in a terminal state will have a non-empty output_result. + // + // Types that are valid to be assigned to OutputResult: + // *NodeExecutionClosure_OutputUri + // *NodeExecutionClosure_Error + OutputResult isNodeExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // The last recorded phase for this node execution. + Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` + // Time at which the node execution began running. + StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the node execution spent running. + Duration *duration.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` + // Time at which the node execution was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the node execution was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Store metadata for what the node launched. + // for ex: if this is a workflow node, we store information for the launched workflow. + // + // Types that are valid to be assigned to TargetMetadata: + // *NodeExecutionClosure_WorkflowNodeMetadata + TargetMetadata isNodeExecutionClosure_TargetMetadata `protobuf_oneof:"target_metadata"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionClosure) Reset() { *m = NodeExecutionClosure{} } +func (m *NodeExecutionClosure) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionClosure) ProtoMessage() {} +func (*NodeExecutionClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{5} +} +func (m *NodeExecutionClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionClosure.Unmarshal(m, b) +} +func (m *NodeExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionClosure.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionClosure.Merge(dst, src) +} +func (m *NodeExecutionClosure) XXX_Size() int { + return xxx_messageInfo_NodeExecutionClosure.Size(m) +} +func (m *NodeExecutionClosure) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionClosure proto.InternalMessageInfo + +type isNodeExecutionClosure_OutputResult interface { + isNodeExecutionClosure_OutputResult() +} + +type NodeExecutionClosure_OutputUri struct { + OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type NodeExecutionClosure_Error struct { + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +func (*NodeExecutionClosure_OutputUri) isNodeExecutionClosure_OutputResult() {} + +func (*NodeExecutionClosure_Error) isNodeExecutionClosure_OutputResult() {} + +func (m *NodeExecutionClosure) GetOutputResult() isNodeExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *NodeExecutionClosure) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*NodeExecutionClosure_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *NodeExecutionClosure) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*NodeExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +func (m *NodeExecutionClosure) GetPhase() core.NodeExecution_Phase { + if m != nil { + return m.Phase + } + return core.NodeExecution_UNDEFINED +} + +func (m *NodeExecutionClosure) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *NodeExecutionClosure) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +func (m *NodeExecutionClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *NodeExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +type isNodeExecutionClosure_TargetMetadata interface { + isNodeExecutionClosure_TargetMetadata() +} + +type NodeExecutionClosure_WorkflowNodeMetadata struct { + WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` +} + +func (*NodeExecutionClosure_WorkflowNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} + +func (m *NodeExecutionClosure) GetTargetMetadata() isNodeExecutionClosure_TargetMetadata { + if m != nil { + return m.TargetMetadata + } + return nil +} + +func (m *NodeExecutionClosure) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { + if x, ok := m.GetTargetMetadata().(*NodeExecutionClosure_WorkflowNodeMetadata); ok { + return x.WorkflowNodeMetadata + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*NodeExecutionClosure) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _NodeExecutionClosure_OneofMarshaler, _NodeExecutionClosure_OneofUnmarshaler, _NodeExecutionClosure_OneofSizer, []interface{}{ + (*NodeExecutionClosure_OutputUri)(nil), + (*NodeExecutionClosure_Error)(nil), + (*NodeExecutionClosure_WorkflowNodeMetadata)(nil), + } +} + +func _NodeExecutionClosure_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*NodeExecutionClosure) + // output_result + switch x := m.OutputResult.(type) { + case *NodeExecutionClosure_OutputUri: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.OutputUri) + case *NodeExecutionClosure_Error: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("NodeExecutionClosure.OutputResult has unexpected type %T", x) + } + // target_metadata + switch x := m.TargetMetadata.(type) { + case *NodeExecutionClosure_WorkflowNodeMetadata: + b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.WorkflowNodeMetadata); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("NodeExecutionClosure.TargetMetadata has unexpected type %T", x) + } + return nil +} + +func _NodeExecutionClosure_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*NodeExecutionClosure) + switch tag { + case 1: // output_result.output_uri + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.OutputResult = &NodeExecutionClosure_OutputUri{x} + return true, err + case 2: // output_result.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.ExecutionError) + err := b.DecodeMessage(msg) + m.OutputResult = &NodeExecutionClosure_Error{msg} + return true, err + case 8: // target_metadata.workflow_node_metadata + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WorkflowNodeMetadata) + err := b.DecodeMessage(msg) + m.TargetMetadata = &NodeExecutionClosure_WorkflowNodeMetadata{msg} + return true, err + default: + return false, nil + } +} + +func _NodeExecutionClosure_OneofSizer(msg proto.Message) (n int) { + m := msg.(*NodeExecutionClosure) + // output_result + switch x := m.OutputResult.(type) { + case *NodeExecutionClosure_OutputUri: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.OutputUri))) + n += len(x.OutputUri) + case *NodeExecutionClosure_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + // target_metadata + switch x := m.TargetMetadata.(type) { + case *NodeExecutionClosure_WorkflowNodeMetadata: + s := proto.Size(x.WorkflowNodeMetadata) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Metadata for a WorkflowNode +type WorkflowNodeMetadata struct { + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=executionId,proto3" json:"executionId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowNodeMetadata) Reset() { *m = WorkflowNodeMetadata{} } +func (m *WorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*WorkflowNodeMetadata) ProtoMessage() {} +func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{6} +} +func (m *WorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowNodeMetadata.Unmarshal(m, b) +} +func (m *WorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowNodeMetadata.Marshal(b, m, deterministic) +} +func (dst *WorkflowNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowNodeMetadata.Merge(dst, src) +} +func (m *WorkflowNodeMetadata) XXX_Size() int { + return xxx_messageInfo_WorkflowNodeMetadata.Size(m) +} +func (m *WorkflowNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowNodeMetadata proto.InternalMessageInfo + +func (m *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +// Request structure to fetch inputs and output urls for a node execution. +type NodeExecutionGetDataRequest struct { + // The identifier of the node execution for which to fetch inputs and outputs. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionGetDataRequest) Reset() { *m = NodeExecutionGetDataRequest{} } +func (m *NodeExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionGetDataRequest) ProtoMessage() {} +func (*NodeExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{7} +} +func (m *NodeExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionGetDataRequest.Unmarshal(m, b) +} +func (m *NodeExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionGetDataRequest.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionGetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionGetDataRequest.Merge(dst, src) +} +func (m *NodeExecutionGetDataRequest) XXX_Size() int { + return xxx_messageInfo_NodeExecutionGetDataRequest.Size(m) +} +func (m *NodeExecutionGetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionGetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionGetDataRequest proto.InternalMessageInfo + +func (m *NodeExecutionGetDataRequest) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +type NodeExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of node execution inputs. + Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of node execution outputs. + Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionGetDataResponse) Reset() { *m = NodeExecutionGetDataResponse{} } +func (m *NodeExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionGetDataResponse) ProtoMessage() {} +func (*NodeExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_node_execution_1b18c314e12f4636, []int{8} +} +func (m *NodeExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionGetDataResponse.Unmarshal(m, b) +} +func (m *NodeExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionGetDataResponse.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionGetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionGetDataResponse.Merge(dst, src) +} +func (m *NodeExecutionGetDataResponse) XXX_Size() int { + return xxx_messageInfo_NodeExecutionGetDataResponse.Size(m) +} +func (m *NodeExecutionGetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionGetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionGetDataResponse proto.InternalMessageInfo + +func (m *NodeExecutionGetDataResponse) GetInputs() *UrlBlob { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *NodeExecutionGetDataResponse) GetOutputs() *UrlBlob { + if m != nil { + return m.Outputs + } + return nil +} + +func init() { + proto.RegisterType((*NodeExecutionGetRequest)(nil), "flyteidl.admin.NodeExecutionGetRequest") + proto.RegisterType((*NodeExecutionListRequest)(nil), "flyteidl.admin.NodeExecutionListRequest") + proto.RegisterType((*NodeExecutionForTaskListRequest)(nil), "flyteidl.admin.NodeExecutionForTaskListRequest") + proto.RegisterType((*NodeExecution)(nil), "flyteidl.admin.NodeExecution") + proto.RegisterType((*NodeExecutionList)(nil), "flyteidl.admin.NodeExecutionList") + proto.RegisterType((*NodeExecutionClosure)(nil), "flyteidl.admin.NodeExecutionClosure") + proto.RegisterType((*WorkflowNodeMetadata)(nil), "flyteidl.admin.WorkflowNodeMetadata") + proto.RegisterType((*NodeExecutionGetDataRequest)(nil), "flyteidl.admin.NodeExecutionGetDataRequest") + proto.RegisterType((*NodeExecutionGetDataResponse)(nil), "flyteidl.admin.NodeExecutionGetDataResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/node_execution.proto", fileDescriptor_node_execution_1b18c314e12f4636) +} + +var fileDescriptor_node_execution_1b18c314e12f4636 = []byte{ + // 729 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xdd, 0x4e, 0xe3, 0x46, + 0x14, 0xc6, 0x81, 0x24, 0xe4, 0x44, 0x10, 0x31, 0x4d, 0x8b, 0x1b, 0x4a, 0x89, 0xdc, 0xaa, 0x8a, + 0x2a, 0x61, 0x8b, 0x20, 0xaa, 0xf6, 0xa6, 0x12, 0x29, 0x50, 0x2a, 0xd1, 0xaa, 0x9d, 0x82, 0x2a, + 0x55, 0x55, 0x23, 0x27, 0x9e, 0x84, 0x51, 0x6c, 0x4f, 0x98, 0x39, 0x56, 0x9a, 0xdb, 0x3e, 0xc2, + 0x3e, 0xc3, 0x3e, 0xdd, 0xde, 0xec, 0x2b, 0xac, 0xfc, 0x9b, 0xd8, 0x78, 0x41, 0x62, 0x2f, 0xf6, + 0x72, 0xe6, 0x7c, 0xdf, 0x39, 0xe7, 0xfb, 0x7c, 0xe6, 0x18, 0xbe, 0x9a, 0xb8, 0x4b, 0x64, 0xdc, + 0x71, 0x2d, 0xdb, 0xf1, 0xb8, 0x6f, 0xf9, 0xc2, 0x61, 0x43, 0xf6, 0x1f, 0x1b, 0x07, 0xc8, 0x85, + 0x6f, 0xce, 0xa5, 0x40, 0x41, 0x76, 0x53, 0x90, 0x19, 0x81, 0x3a, 0x07, 0x05, 0xd2, 0x58, 0x78, + 0x5e, 0x0a, 0xee, 0x1c, 0x66, 0xc1, 0xb1, 0x90, 0xcc, 0x2a, 0xe4, 0xea, 0x7c, 0x99, 0x0f, 0x73, + 0x87, 0xf9, 0xc8, 0x27, 0x9c, 0xc9, 0x24, 0x7e, 0x34, 0x15, 0x62, 0xea, 0x32, 0x2b, 0x3a, 0x8d, + 0x82, 0x89, 0x85, 0xdc, 0x63, 0x0a, 0x6d, 0x6f, 0x9e, 0x26, 0x28, 0x02, 0x9c, 0x40, 0xda, 0xab, + 0x02, 0xc6, 0x1f, 0xb0, 0xff, 0x9b, 0x70, 0xd8, 0x65, 0x5a, 0xf7, 0x67, 0x86, 0x94, 0x3d, 0x04, + 0x4c, 0x21, 0xf9, 0x0e, 0x2a, 0xdc, 0xd1, 0xb5, 0xae, 0xd6, 0x6b, 0xf6, 0xbf, 0x31, 0x33, 0x51, + 0x61, 0x23, 0x66, 0x8e, 0xf3, 0x4b, 0xd6, 0x15, 0xad, 0x70, 0xc7, 0x78, 0xab, 0x81, 0x9e, 0x8b, + 0xdf, 0x70, 0x95, 0x25, 0xfd, 0x17, 0x3e, 0x5d, 0x08, 0x39, 0x9b, 0xb8, 0x62, 0xb1, 0x32, 0x6e, + 0x98, 0xd5, 0xf9, 0xb6, 0x50, 0xe7, 0xaf, 0x04, 0x5b, 0x56, 0xeb, 0x93, 0xc5, 0xe3, 0x20, 0x69, + 0x43, 0xd5, 0xe5, 0x1e, 0x47, 0xbd, 0xd2, 0xd5, 0x7a, 0x3b, 0x34, 0x3e, 0x84, 0xb7, 0x28, 0x66, + 0xcc, 0xd7, 0x37, 0xbb, 0x5a, 0xaf, 0x41, 0xe3, 0x03, 0xd1, 0xa1, 0x3e, 0xe1, 0x2e, 0x32, 0xa9, + 0xf4, 0xad, 0xe8, 0x3e, 0x3d, 0x92, 0x63, 0xa8, 0x2b, 0x21, 0x71, 0x38, 0x5a, 0xea, 0xd5, 0xa8, + 0xaf, 0xb6, 0x99, 0xff, 0xa8, 0xe6, 0x9f, 0x42, 0x22, 0xad, 0x85, 0xa0, 0xc1, 0xd2, 0x78, 0xa3, + 0xc1, 0x51, 0x4e, 0xf1, 0x95, 0x90, 0xb7, 0xb6, 0x9a, 0xad, 0x0b, 0xa7, 0xb0, 0x87, 0xb6, 0x9a, + 0x95, 0x89, 0x2e, 0x9a, 0x1b, 0x52, 0xcb, 0x04, 0xb7, 0x30, 0x1f, 0xf8, 0x38, 0x62, 0x5f, 0x6b, + 0xb0, 0x93, 0x13, 0xfb, 0xd2, 0x41, 0x21, 0x07, 0xd0, 0xe0, 0xfe, 0x3c, 0xc0, 0x61, 0x20, 0x79, + 0x24, 0xa1, 0x41, 0xb7, 0xa3, 0x8b, 0x3b, 0xc9, 0xc9, 0x8f, 0x50, 0x1f, 0xbb, 0x42, 0x05, 0x92, + 0x45, 0x3a, 0x9a, 0xfd, 0xaf, 0x8b, 0x5d, 0xe5, 0x52, 0xff, 0x14, 0x63, 0x69, 0x4a, 0x32, 0x1e, + 0x60, 0xef, 0xd1, 0x10, 0x92, 0x2b, 0x68, 0xe5, 0x9f, 0xac, 0xd2, 0xb5, 0xee, 0x66, 0xaf, 0xd9, + 0x3f, 0x7c, 0x32, 0x39, 0xdd, 0xf5, 0xd7, 0x8f, 0x6a, 0x65, 0x71, 0x65, 0xcd, 0x62, 0xe3, 0xd5, + 0x16, 0xb4, 0xcb, 0x9a, 0x22, 0x47, 0x00, 0x22, 0xc0, 0x54, 0x69, 0x68, 0x54, 0xe3, 0x7a, 0x83, + 0x36, 0xe2, 0xbb, 0x50, 0xec, 0x19, 0x54, 0x99, 0x94, 0x42, 0x46, 0xf9, 0x72, 0xdd, 0x44, 0x26, + 0x66, 0x09, 0x2f, 0x43, 0xd0, 0xf5, 0x06, 0x8d, 0xd1, 0xe4, 0x7b, 0xa8, 0xce, 0xef, 0x6d, 0x15, + 0x3b, 0xb4, 0xdb, 0x37, 0x9e, 0xf2, 0xde, 0xfc, 0x3d, 0x44, 0xd2, 0x98, 0x40, 0x7e, 0x00, 0x50, + 0x68, 0x4b, 0x64, 0xce, 0xd0, 0xc6, 0x68, 0x20, 0x9a, 0xfd, 0x8e, 0x19, 0xef, 0x0a, 0x33, 0xdd, + 0x15, 0xe6, 0x6d, 0xba, 0x4c, 0x68, 0x23, 0x41, 0x9f, 0x23, 0x39, 0x83, 0xed, 0x74, 0x87, 0x24, + 0xf3, 0xf2, 0xf9, 0x23, 0xe2, 0x45, 0x02, 0xa0, 0x19, 0x34, 0xac, 0x38, 0x96, 0xcc, 0x4e, 0x2a, + 0xd6, 0x9e, 0xaf, 0x98, 0xa0, 0xcf, 0x31, 0xa4, 0x06, 0x73, 0x27, 0xa5, 0xd6, 0x9f, 0xa7, 0x26, + 0xe8, 0x73, 0x24, 0xff, 0xc0, 0x67, 0xd9, 0xba, 0x89, 0xbe, 0xbc, 0xc7, 0xd0, 0x76, 0x6c, 0xb4, + 0xf5, 0xed, 0xf2, 0xa1, 0x4a, 0x17, 0x4e, 0xe8, 0xdd, 0xaf, 0x09, 0xf6, 0x5a, 0xa3, 0xed, 0x45, + 0xc9, 0xfd, 0xa0, 0x05, 0x3b, 0xc9, 0x77, 0x95, 0x4c, 0x05, 0x2e, 0x0e, 0xf6, 0xa0, 0x85, 0xb6, + 0x9c, 0x32, 0xcc, 0xea, 0x18, 0x0e, 0xb4, 0xcb, 0x72, 0x92, 0x1b, 0x68, 0xb2, 0xd5, 0xbb, 0x78, + 0xc1, 0xfa, 0x5b, 0xa7, 0x1b, 0x77, 0x70, 0x50, 0x5c, 0xe3, 0x17, 0x36, 0xda, 0x1f, 0xba, 0xca, + 0xff, 0xd7, 0xe0, 0x8b, 0xf2, 0xbc, 0x6a, 0x2e, 0x7c, 0xc5, 0x88, 0x05, 0xb5, 0xe8, 0xc5, 0xaa, + 0x24, 0xf9, 0x7e, 0xd1, 0xcf, 0x3b, 0xe9, 0x0e, 0x5c, 0x31, 0xa2, 0x09, 0x8c, 0x9c, 0x40, 0x3d, + 0xb6, 0x4c, 0x25, 0xb3, 0xfe, 0x5e, 0x46, 0x8a, 0x1b, 0x9c, 0xfe, 0x7d, 0x32, 0xe5, 0x78, 0x1f, + 0x8c, 0xcc, 0xb1, 0xf0, 0x2c, 0x77, 0x39, 0x41, 0x2b, 0xfb, 0x2b, 0x4e, 0x99, 0x6f, 0xcd, 0x47, + 0xc7, 0x53, 0x61, 0xe5, 0x7f, 0xb2, 0xa3, 0x5a, 0x34, 0x17, 0xa7, 0xef, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x5f, 0xcf, 0xcf, 0x2a, 0xb2, 0x07, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go new file mode 100644 index 0000000000..089b06656c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.validate.go @@ -0,0 +1,860 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/node_execution.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} + + _ = core.NodeExecution_Phase(0) +) + +// Validate checks the field values on NodeExecutionGetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionGetRequestValidationError is the validation error returned by +// NodeExecutionGetRequest.Validate if the designated constraints aren't met. +type NodeExecutionGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionGetRequestValidationError) ErrorName() string { + return "NodeExecutionGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionGetRequestValidationError{} + +// Validate checks the field values on NodeExecutionListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflowExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionListRequestValidationError{ + field: "WorkflowExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionListRequestValidationError is the validation error returned by +// NodeExecutionListRequest.Validate if the designated constraints aren't met. +type NodeExecutionListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionListRequestValidationError) ErrorName() string { + return "NodeExecutionListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionListRequestValidationError{} + +// Validate checks the field values on NodeExecutionForTaskListRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionForTaskListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionForTaskListRequestValidationError{ + field: "TaskExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionForTaskListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionForTaskListRequestValidationError is the validation error +// returned by NodeExecutionForTaskListRequest.Validate if the designated +// constraints aren't met. +type NodeExecutionForTaskListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionForTaskListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionForTaskListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionForTaskListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionForTaskListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionForTaskListRequestValidationError) ErrorName() string { + return "NodeExecutionForTaskListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionForTaskListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionForTaskListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionForTaskListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionForTaskListRequestValidationError{} + +// Validate checks the field values on NodeExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NodeExecution) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for InputUri + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionValidationError is the validation error returned by +// NodeExecution.Validate if the designated constraints aren't met. +type NodeExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionValidationError) ErrorName() string { return "NodeExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e NodeExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionValidationError{} + +// Validate checks the field values on NodeExecutionList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *NodeExecutionList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNodeExecutions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionListValidationError{ + field: fmt.Sprintf("NodeExecutions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// NodeExecutionListValidationError is the validation error returned by +// NodeExecutionList.Validate if the designated constraints aren't met. +type NodeExecutionListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionListValidationError) ErrorName() string { + return "NodeExecutionListValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionListValidationError{} + +// Validate checks the field values on NodeExecutionClosure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionClosure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Phase + + if v, ok := interface{}(m.GetStartedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "StartedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *NodeExecutionClosure_OutputUri: + // no validation rules for OutputUri + + case *NodeExecutionClosure_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.TargetMetadata.(type) { + + case *NodeExecutionClosure_WorkflowNodeMetadata: + + if v, ok := interface{}(m.GetWorkflowNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionClosureValidationError{ + field: "WorkflowNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NodeExecutionClosureValidationError is the validation error returned by +// NodeExecutionClosure.Validate if the designated constraints aren't met. +type NodeExecutionClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionClosureValidationError) ErrorName() string { + return "NodeExecutionClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionClosureValidationError{} + +// Validate checks the field values on WorkflowNodeMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowNodeMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeMetadataValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowNodeMetadataValidationError is the validation error returned by +// WorkflowNodeMetadata.Validate if the designated constraints aren't met. +type WorkflowNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowNodeMetadataValidationError) ErrorName() string { + return "WorkflowNodeMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowNodeMetadataValidationError{} + +// Validate checks the field values on NodeExecutionGetDataRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionGetDataRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionGetDataRequestValidationError is the validation error returned +// by NodeExecutionGetDataRequest.Validate if the designated constraints +// aren't met. +type NodeExecutionGetDataRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionGetDataRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionGetDataRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionGetDataRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionGetDataRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionGetDataRequestValidationError) ErrorName() string { + return "NodeExecutionGetDataRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionGetDataRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionGetDataRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionGetDataRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionGetDataRequestValidationError{} + +// Validate checks the field values on NodeExecutionGetDataResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionGetDataResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionGetDataResponseValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionGetDataResponseValidationError is the validation error returned +// by NodeExecutionGetDataResponse.Validate if the designated constraints +// aren't met. +type NodeExecutionGetDataResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionGetDataResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionGetDataResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionGetDataResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionGetDataResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionGetDataResponseValidationError) ErrorName() string { + return "NodeExecutionGetDataResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionGetDataResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionGetDataResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionGetDataResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionGetDataResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json new file mode 100644 index 0000000000..3562c6f709 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/node_execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go new file mode 100644 index 0000000000..989623f9f5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/notification.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Represents the Email object that is sent to a publisher/subscriber +// to forward the notification. +// Note: This is internal to Admin and doesn't need to be exposed to other components. +type EmailMessage struct { + // The list of email addresses to receive an email with the content populated in the other fields. + // Currently, each email recipient will receive its own email. + // This populates the TO field. + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + // The email of the sender. + // This populates the FROM field. + SenderEmail string `protobuf:"bytes,2,opt,name=sender_email,json=senderEmail,proto3" json:"sender_email,omitempty"` + // The content of the subject line. + // This populates the SUBJECT field. + SubjectLine string `protobuf:"bytes,3,opt,name=subject_line,json=subjectLine,proto3" json:"subject_line,omitempty"` + // The content of the email body. + // This populates the BODY field. + Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EmailMessage) Reset() { *m = EmailMessage{} } +func (m *EmailMessage) String() string { return proto.CompactTextString(m) } +func (*EmailMessage) ProtoMessage() {} +func (*EmailMessage) Descriptor() ([]byte, []int) { + return fileDescriptor_notification_48b6638d6b3a561a, []int{0} +} +func (m *EmailMessage) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EmailMessage.Unmarshal(m, b) +} +func (m *EmailMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EmailMessage.Marshal(b, m, deterministic) +} +func (dst *EmailMessage) XXX_Merge(src proto.Message) { + xxx_messageInfo_EmailMessage.Merge(dst, src) +} +func (m *EmailMessage) XXX_Size() int { + return xxx_messageInfo_EmailMessage.Size(m) +} +func (m *EmailMessage) XXX_DiscardUnknown() { + xxx_messageInfo_EmailMessage.DiscardUnknown(m) +} + +var xxx_messageInfo_EmailMessage proto.InternalMessageInfo + +func (m *EmailMessage) GetRecipientsEmail() []string { + if m != nil { + return m.RecipientsEmail + } + return nil +} + +func (m *EmailMessage) GetSenderEmail() string { + if m != nil { + return m.SenderEmail + } + return "" +} + +func (m *EmailMessage) GetSubjectLine() string { + if m != nil { + return m.SubjectLine + } + return "" +} + +func (m *EmailMessage) GetBody() string { + if m != nil { + return m.Body + } + return "" +} + +func init() { + proto.RegisterType((*EmailMessage)(nil), "flyteidl.admin.EmailMessage") +} + +func init() { + proto.RegisterFile("flyteidl/admin/notification.proto", fileDescriptor_notification_48b6638d6b3a561a) +} + +var fileDescriptor_notification_48b6638d6b3a561a = []byte{ + // 206 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xbf, 0x4e, 0xc3, 0x30, + 0x10, 0x87, 0x15, 0x5a, 0x21, 0xd5, 0x54, 0x80, 0x3c, 0x65, 0x6c, 0x99, 0xca, 0x40, 0x2c, 0xd4, + 0x37, 0x40, 0x62, 0x83, 0x25, 0x23, 0x4b, 0xe4, 0x3f, 0x17, 0x73, 0xc8, 0x39, 0x47, 0xf1, 0x65, + 0xc8, 0x73, 0xf0, 0xc2, 0x08, 0x27, 0x10, 0x75, 0x3b, 0x7d, 0xbf, 0xef, 0x86, 0x4f, 0x1c, 0xdb, + 0x30, 0x31, 0xa0, 0x0b, 0x4a, 0xbb, 0x0e, 0x49, 0x51, 0x64, 0x6c, 0xd1, 0x6a, 0xc6, 0x48, 0x55, + 0x3f, 0x44, 0x8e, 0xf2, 0xf6, 0x4f, 0xa9, 0xb2, 0xf2, 0xf0, 0x5d, 0x88, 0xfd, 0x6b, 0xa7, 0x31, + 0xbc, 0x43, 0x4a, 0xda, 0x83, 0x7c, 0x14, 0xf7, 0x03, 0x58, 0xec, 0x11, 0x88, 0x53, 0x03, 0xbf, + 0x53, 0x59, 0x1c, 0x36, 0xa7, 0x5d, 0x7d, 0xb7, 0xf2, 0xfc, 0x21, 0x8f, 0x62, 0x9f, 0x80, 0x1c, + 0x0c, 0x8b, 0x76, 0x75, 0x28, 0x4e, 0xbb, 0xfa, 0x66, 0x66, 0xab, 0x32, 0x9a, 0x2f, 0xb0, 0xdc, + 0x04, 0x24, 0x28, 0x37, 0x8b, 0x32, 0xb3, 0x37, 0x24, 0x90, 0x52, 0x6c, 0x4d, 0x74, 0x53, 0xb9, + 0xcd, 0x53, 0xbe, 0x5f, 0xce, 0x1f, 0xcf, 0x1e, 0xf9, 0x73, 0x34, 0x95, 0x8d, 0x9d, 0x0a, 0x53, + 0xcb, 0xea, 0x3f, 0xcd, 0x03, 0xa9, 0xde, 0x3c, 0xf9, 0xa8, 0x2e, 0x6b, 0xcd, 0x75, 0x2e, 0x3c, + 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4c, 0x9b, 0x4f, 0xc5, 0x06, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go new file mode 100644 index 0000000000..8d29cd61ce --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.validate.go @@ -0,0 +1,105 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/notification.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on EmailMessage with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *EmailMessage) Validate() error { + if m == nil { + return nil + } + + // no validation rules for SenderEmail + + // no validation rules for SubjectLine + + // no validation rules for Body + + return nil +} + +// EmailMessageValidationError is the validation error returned by +// EmailMessage.Validate if the designated constraints aren't met. +type EmailMessageValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EmailMessageValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e EmailMessageValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e EmailMessageValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e EmailMessageValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EmailMessageValidationError) ErrorName() string { return "EmailMessageValidationError" } + +// Error satisfies the builtin error interface +func (e EmailMessageValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEmailMessage.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EmailMessageValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EmailMessageValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json new file mode 100644 index 0000000000..919aad7298 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/notification.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go new file mode 100644 index 0000000000..a51515db51 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go @@ -0,0 +1,293 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/project.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Namespace within a project commonly used to differentiate between different service instances. +// e.g. "production", "development", etc. +type Domain struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Display name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Domain) Reset() { *m = Domain{} } +func (m *Domain) String() string { return proto.CompactTextString(m) } +func (*Domain) ProtoMessage() {} +func (*Domain) Descriptor() ([]byte, []int) { + return fileDescriptor_project_d167cfe1193af994, []int{0} +} +func (m *Domain) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Domain.Unmarshal(m, b) +} +func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Domain.Marshal(b, m, deterministic) +} +func (dst *Domain) XXX_Merge(src proto.Message) { + xxx_messageInfo_Domain.Merge(dst, src) +} +func (m *Domain) XXX_Size() int { + return xxx_messageInfo_Domain.Size(m) +} +func (m *Domain) XXX_DiscardUnknown() { + xxx_messageInfo_Domain.DiscardUnknown(m) +} + +var xxx_messageInfo_Domain proto.InternalMessageInfo + +func (m *Domain) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Domain) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Top-level namespace used to classify different entities like workflows and executions. +type Project struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Display name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Domains []*Domain `protobuf:"bytes,3,rep,name=domains,proto3" json:"domains,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Project) Reset() { *m = Project{} } +func (m *Project) String() string { return proto.CompactTextString(m) } +func (*Project) ProtoMessage() {} +func (*Project) Descriptor() ([]byte, []int) { + return fileDescriptor_project_d167cfe1193af994, []int{1} +} +func (m *Project) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Project.Unmarshal(m, b) +} +func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Project.Marshal(b, m, deterministic) +} +func (dst *Project) XXX_Merge(src proto.Message) { + xxx_messageInfo_Project.Merge(dst, src) +} +func (m *Project) XXX_Size() int { + return xxx_messageInfo_Project.Size(m) +} +func (m *Project) XXX_DiscardUnknown() { + xxx_messageInfo_Project.DiscardUnknown(m) +} + +var xxx_messageInfo_Project proto.InternalMessageInfo + +func (m *Project) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Project) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Project) GetDomains() []*Domain { + if m != nil { + return m.Domains + } + return nil +} + +type Projects struct { + Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Projects) Reset() { *m = Projects{} } +func (m *Projects) String() string { return proto.CompactTextString(m) } +func (*Projects) ProtoMessage() {} +func (*Projects) Descriptor() ([]byte, []int) { + return fileDescriptor_project_d167cfe1193af994, []int{2} +} +func (m *Projects) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Projects.Unmarshal(m, b) +} +func (m *Projects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Projects.Marshal(b, m, deterministic) +} +func (dst *Projects) XXX_Merge(src proto.Message) { + xxx_messageInfo_Projects.Merge(dst, src) +} +func (m *Projects) XXX_Size() int { + return xxx_messageInfo_Projects.Size(m) +} +func (m *Projects) XXX_DiscardUnknown() { + xxx_messageInfo_Projects.DiscardUnknown(m) +} + +var xxx_messageInfo_Projects proto.InternalMessageInfo + +func (m *Projects) GetProjects() []*Project { + if m != nil { + return m.Projects + } + return nil +} + +type ProjectListRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectListRequest) Reset() { *m = ProjectListRequest{} } +func (m *ProjectListRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectListRequest) ProtoMessage() {} +func (*ProjectListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_project_d167cfe1193af994, []int{3} +} +func (m *ProjectListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectListRequest.Unmarshal(m, b) +} +func (m *ProjectListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectListRequest.Marshal(b, m, deterministic) +} +func (dst *ProjectListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectListRequest.Merge(dst, src) +} +func (m *ProjectListRequest) XXX_Size() int { + return xxx_messageInfo_ProjectListRequest.Size(m) +} +func (m *ProjectListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectListRequest proto.InternalMessageInfo + +type ProjectRegisterRequest struct { + Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRegisterRequest) Reset() { *m = ProjectRegisterRequest{} } +func (m *ProjectRegisterRequest) String() string { return proto.CompactTextString(m) } +func (*ProjectRegisterRequest) ProtoMessage() {} +func (*ProjectRegisterRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_project_d167cfe1193af994, []int{4} +} +func (m *ProjectRegisterRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRegisterRequest.Unmarshal(m, b) +} +func (m *ProjectRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRegisterRequest.Marshal(b, m, deterministic) +} +func (dst *ProjectRegisterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRegisterRequest.Merge(dst, src) +} +func (m *ProjectRegisterRequest) XXX_Size() int { + return xxx_messageInfo_ProjectRegisterRequest.Size(m) +} +func (m *ProjectRegisterRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRegisterRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRegisterRequest proto.InternalMessageInfo + +func (m *ProjectRegisterRequest) GetProject() *Project { + if m != nil { + return m.Project + } + return nil +} + +type ProjectRegisterResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ProjectRegisterResponse) Reset() { *m = ProjectRegisterResponse{} } +func (m *ProjectRegisterResponse) String() string { return proto.CompactTextString(m) } +func (*ProjectRegisterResponse) ProtoMessage() {} +func (*ProjectRegisterResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_project_d167cfe1193af994, []int{5} +} +func (m *ProjectRegisterResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ProjectRegisterResponse.Unmarshal(m, b) +} +func (m *ProjectRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ProjectRegisterResponse.Marshal(b, m, deterministic) +} +func (dst *ProjectRegisterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProjectRegisterResponse.Merge(dst, src) +} +func (m *ProjectRegisterResponse) XXX_Size() int { + return xxx_messageInfo_ProjectRegisterResponse.Size(m) +} +func (m *ProjectRegisterResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ProjectRegisterResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ProjectRegisterResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Domain)(nil), "flyteidl.admin.Domain") + proto.RegisterType((*Project)(nil), "flyteidl.admin.Project") + proto.RegisterType((*Projects)(nil), "flyteidl.admin.Projects") + proto.RegisterType((*ProjectListRequest)(nil), "flyteidl.admin.ProjectListRequest") + proto.RegisterType((*ProjectRegisterRequest)(nil), "flyteidl.admin.ProjectRegisterRequest") + proto.RegisterType((*ProjectRegisterResponse)(nil), "flyteidl.admin.ProjectRegisterResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/project.proto", fileDescriptor_project_d167cfe1193af994) +} + +var fileDescriptor_project_d167cfe1193af994 = []byte{ + // 254 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xc1, 0x4b, 0xc3, 0x30, + 0x18, 0xc5, 0x69, 0x27, 0xeb, 0xfc, 0x84, 0x1d, 0x82, 0x6c, 0x15, 0x3c, 0x8c, 0x9c, 0x76, 0xd0, + 0xc4, 0xd9, 0x3f, 0x40, 0x10, 0x6f, 0x7a, 0x90, 0x1e, 0xbd, 0x48, 0xbb, 0x7c, 0xab, 0x91, 0x36, + 0xa9, 0xcd, 0xb7, 0xc3, 0xfe, 0x7b, 0x21, 0x4b, 0x06, 0x55, 0x10, 0x6f, 0xe5, 0x7b, 0xbf, 0xf7, + 0x5e, 0xc3, 0x83, 0xeb, 0x5d, 0x7b, 0x20, 0xd4, 0xaa, 0x95, 0x95, 0xea, 0xb4, 0x91, 0xfd, 0x60, + 0x3f, 0x71, 0x4b, 0xa2, 0x1f, 0x2c, 0x59, 0x36, 0x8f, 0xaa, 0xf0, 0x2a, 0xbf, 0x81, 0xe9, 0x93, + 0xed, 0x2a, 0x6d, 0xd8, 0x1c, 0x52, 0xad, 0xf2, 0x64, 0x95, 0xac, 0xcf, 0xcb, 0x54, 0x2b, 0xc6, + 0xe0, 0xcc, 0x54, 0x1d, 0xe6, 0xa9, 0xbf, 0xf8, 0x6f, 0xfe, 0x0e, 0xd9, 0xeb, 0x31, 0xee, 0x3f, + 0x38, 0xbb, 0x83, 0x4c, 0xf9, 0x70, 0x97, 0x4f, 0x56, 0x93, 0xf5, 0xc5, 0xfd, 0x42, 0x8c, 0xeb, + 0xc5, 0xb1, 0xbb, 0x8c, 0x18, 0x7f, 0x80, 0x59, 0x28, 0x70, 0xac, 0x80, 0x59, 0xf8, 0x77, 0x97, + 0x27, 0xde, 0xbe, 0xfc, 0x69, 0x0f, 0x6c, 0x79, 0x02, 0xf9, 0x25, 0xb0, 0x70, 0x7c, 0xd1, 0x8e, + 0x4a, 0xfc, 0xda, 0xa3, 0x23, 0xfe, 0x0c, 0x8b, 0x88, 0x62, 0xa3, 0x1d, 0xe1, 0x10, 0x14, 0xb6, + 0x81, 0x2c, 0x78, 0xfd, 0x5b, 0xfe, 0xe8, 0x88, 0x1c, 0xbf, 0x82, 0xe5, 0xaf, 0x30, 0xd7, 0x5b, + 0xe3, 0xf0, 0xb1, 0x78, 0xdb, 0x34, 0x9a, 0x3e, 0xf6, 0xb5, 0xd8, 0xda, 0x4e, 0xb6, 0x87, 0x1d, + 0xc9, 0xd3, 0x1a, 0x0d, 0x1a, 0xd9, 0xd7, 0xb7, 0x8d, 0x95, 0xe3, 0x81, 0xea, 0xa9, 0x5f, 0xa6, + 0xf8, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x5b, 0x15, 0x83, 0xb9, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go new file mode 100644 index 0000000000..7be37dff86 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.validate.go @@ -0,0 +1,475 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/project.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on Domain with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Domain) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + // no validation rules for Name + + return nil +} + +// DomainValidationError is the validation error returned by Domain.Validate if +// the designated constraints aren't met. +type DomainValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DomainValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DomainValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DomainValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DomainValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DomainValidationError) ErrorName() string { return "DomainValidationError" } + +// Error satisfies the builtin error interface +func (e DomainValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDomain.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DomainValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DomainValidationError{} + +// Validate checks the field values on Project with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Project) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + // no validation rules for Name + + for idx, item := range m.GetDomains() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectValidationError{ + field: fmt.Sprintf("Domains[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ProjectValidationError is the validation error returned by Project.Validate +// if the designated constraints aren't met. +type ProjectValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectValidationError) ErrorName() string { return "ProjectValidationError" } + +// Error satisfies the builtin error interface +func (e ProjectValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProject.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectValidationError{} + +// Validate checks the field values on Projects with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Projects) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetProjects() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectsValidationError{ + field: fmt.Sprintf("Projects[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ProjectsValidationError is the validation error returned by +// Projects.Validate if the designated constraints aren't met. +type ProjectsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectsValidationError) ErrorName() string { return "ProjectsValidationError" } + +// Error satisfies the builtin error interface +func (e ProjectsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjects.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectsValidationError{} + +// Validate checks the field values on ProjectListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectListRequest) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectListRequestValidationError is the validation error returned by +// ProjectListRequest.Validate if the designated constraints aren't met. +type ProjectListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectListRequestValidationError) ErrorName() string { + return "ProjectListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectListRequestValidationError{} + +// Validate checks the field values on ProjectRegisterRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectRegisterRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetProject()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ProjectRegisterRequestValidationError{ + field: "Project", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ProjectRegisterRequestValidationError is the validation error returned by +// ProjectRegisterRequest.Validate if the designated constraints aren't met. +type ProjectRegisterRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectRegisterRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectRegisterRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectRegisterRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectRegisterRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectRegisterRequestValidationError) ErrorName() string { + return "ProjectRegisterRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectRegisterRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectRegisterRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectRegisterRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectRegisterRequestValidationError{} + +// Validate checks the field values on ProjectRegisterResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ProjectRegisterResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ProjectRegisterResponseValidationError is the validation error returned by +// ProjectRegisterResponse.Validate if the designated constraints aren't met. +type ProjectRegisterResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ProjectRegisterResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ProjectRegisterResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ProjectRegisterResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ProjectRegisterResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ProjectRegisterResponseValidationError) ErrorName() string { + return "ProjectRegisterResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e ProjectRegisterResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sProjectRegisterResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ProjectRegisterResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ProjectRegisterResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json new file mode 100644 index 0000000000..5eae55af8c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go new file mode 100644 index 0000000000..dae127ff71 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go @@ -0,0 +1,277 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/schedule.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Represents a frequency at which to run a schedule. +type FixedRateUnit int32 + +const ( + FixedRateUnit_MINUTE FixedRateUnit = 0 + FixedRateUnit_HOUR FixedRateUnit = 1 + FixedRateUnit_DAY FixedRateUnit = 2 +) + +var FixedRateUnit_name = map[int32]string{ + 0: "MINUTE", + 1: "HOUR", + 2: "DAY", +} +var FixedRateUnit_value = map[string]int32{ + "MINUTE": 0, + "HOUR": 1, + "DAY": 2, +} + +func (x FixedRateUnit) String() string { + return proto.EnumName(FixedRateUnit_name, int32(x)) +} +func (FixedRateUnit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_schedule_c941bc9af25305cb, []int{0} +} + +// Option for schedules run at a certain frequency, e.g. every 2 minutes. +type FixedRate struct { + Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + Unit FixedRateUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=flyteidl.admin.FixedRateUnit" json:"unit,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FixedRate) Reset() { *m = FixedRate{} } +func (m *FixedRate) String() string { return proto.CompactTextString(m) } +func (*FixedRate) ProtoMessage() {} +func (*FixedRate) Descriptor() ([]byte, []int) { + return fileDescriptor_schedule_c941bc9af25305cb, []int{0} +} +func (m *FixedRate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FixedRate.Unmarshal(m, b) +} +func (m *FixedRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FixedRate.Marshal(b, m, deterministic) +} +func (dst *FixedRate) XXX_Merge(src proto.Message) { + xxx_messageInfo_FixedRate.Merge(dst, src) +} +func (m *FixedRate) XXX_Size() int { + return xxx_messageInfo_FixedRate.Size(m) +} +func (m *FixedRate) XXX_DiscardUnknown() { + xxx_messageInfo_FixedRate.DiscardUnknown(m) +} + +var xxx_messageInfo_FixedRate proto.InternalMessageInfo + +func (m *FixedRate) GetValue() uint32 { + if m != nil { + return m.Value + } + return 0 +} + +func (m *FixedRate) GetUnit() FixedRateUnit { + if m != nil { + return m.Unit + } + return FixedRateUnit_MINUTE +} + +// Defines complete set of information required to trigger an execution on a schedule. +type Schedule struct { + // Types that are valid to be assigned to ScheduleExpression: + // *Schedule_CronExpression + // *Schedule_Rate + ScheduleExpression isSchedule_ScheduleExpression `protobuf_oneof:"ScheduleExpression"` + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + KickoffTimeInputArg string `protobuf:"bytes,3,opt,name=kickoff_time_input_arg,json=kickoffTimeInputArg,proto3" json:"kickoff_time_input_arg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Schedule) Reset() { *m = Schedule{} } +func (m *Schedule) String() string { return proto.CompactTextString(m) } +func (*Schedule) ProtoMessage() {} +func (*Schedule) Descriptor() ([]byte, []int) { + return fileDescriptor_schedule_c941bc9af25305cb, []int{1} +} +func (m *Schedule) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Schedule.Unmarshal(m, b) +} +func (m *Schedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Schedule.Marshal(b, m, deterministic) +} +func (dst *Schedule) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schedule.Merge(dst, src) +} +func (m *Schedule) XXX_Size() int { + return xxx_messageInfo_Schedule.Size(m) +} +func (m *Schedule) XXX_DiscardUnknown() { + xxx_messageInfo_Schedule.DiscardUnknown(m) +} + +var xxx_messageInfo_Schedule proto.InternalMessageInfo + +type isSchedule_ScheduleExpression interface { + isSchedule_ScheduleExpression() +} + +type Schedule_CronExpression struct { + CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3,oneof"` +} + +type Schedule_Rate struct { + Rate *FixedRate `protobuf:"bytes,2,opt,name=rate,proto3,oneof"` +} + +func (*Schedule_CronExpression) isSchedule_ScheduleExpression() {} + +func (*Schedule_Rate) isSchedule_ScheduleExpression() {} + +func (m *Schedule) GetScheduleExpression() isSchedule_ScheduleExpression { + if m != nil { + return m.ScheduleExpression + } + return nil +} + +func (m *Schedule) GetCronExpression() string { + if x, ok := m.GetScheduleExpression().(*Schedule_CronExpression); ok { + return x.CronExpression + } + return "" +} + +func (m *Schedule) GetRate() *FixedRate { + if x, ok := m.GetScheduleExpression().(*Schedule_Rate); ok { + return x.Rate + } + return nil +} + +func (m *Schedule) GetKickoffTimeInputArg() string { + if m != nil { + return m.KickoffTimeInputArg + } + return "" +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Schedule) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Schedule_OneofMarshaler, _Schedule_OneofUnmarshaler, _Schedule_OneofSizer, []interface{}{ + (*Schedule_CronExpression)(nil), + (*Schedule_Rate)(nil), + } +} + +func _Schedule_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Schedule) + // ScheduleExpression + switch x := m.ScheduleExpression.(type) { + case *Schedule_CronExpression: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.CronExpression) + case *Schedule_Rate: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Rate); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Schedule.ScheduleExpression has unexpected type %T", x) + } + return nil +} + +func _Schedule_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Schedule) + switch tag { + case 1: // ScheduleExpression.cron_expression + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ScheduleExpression = &Schedule_CronExpression{x} + return true, err + case 2: // ScheduleExpression.rate + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(FixedRate) + err := b.DecodeMessage(msg) + m.ScheduleExpression = &Schedule_Rate{msg} + return true, err + default: + return false, nil + } +} + +func _Schedule_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Schedule) + // ScheduleExpression + switch x := m.ScheduleExpression.(type) { + case *Schedule_CronExpression: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.CronExpression))) + n += len(x.CronExpression) + case *Schedule_Rate: + s := proto.Size(x.Rate) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +func init() { + proto.RegisterType((*FixedRate)(nil), "flyteidl.admin.FixedRate") + proto.RegisterType((*Schedule)(nil), "flyteidl.admin.Schedule") + proto.RegisterEnum("flyteidl.admin.FixedRateUnit", FixedRateUnit_name, FixedRateUnit_value) +} + +func init() { + proto.RegisterFile("flyteidl/admin/schedule.proto", fileDescriptor_schedule_c941bc9af25305cb) +} + +var fileDescriptor_schedule_c941bc9af25305cb = []byte{ + // 301 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4f, 0xc2, 0x30, + 0x18, 0x86, 0x19, 0x20, 0xc2, 0x67, 0x40, 0x52, 0x89, 0xc1, 0x03, 0x09, 0xe1, 0x84, 0x26, 0xb6, + 0x01, 0x7e, 0x01, 0x44, 0x0c, 0x1c, 0xd4, 0xa4, 0xc2, 0x41, 0x2f, 0xcb, 0xd8, 0xbe, 0x8d, 0x86, + 0xad, 0x5d, 0x4a, 0x67, 0xe0, 0x67, 0xf9, 0x0f, 0x0d, 0x15, 0x30, 0x3b, 0x78, 0x6c, 0x9f, 0xaf, + 0xef, 0xd3, 0xf6, 0x85, 0x4e, 0x18, 0xef, 0x0d, 0x8a, 0x20, 0x66, 0x5e, 0x90, 0x08, 0xc9, 0xb6, + 0xfe, 0x1a, 0x83, 0x2c, 0x46, 0x9a, 0x6a, 0x65, 0x14, 0x69, 0x9c, 0x30, 0xb5, 0xb8, 0xb7, 0x80, + 0xda, 0xb3, 0xd8, 0x61, 0xc0, 0x3d, 0x83, 0xa4, 0x05, 0x17, 0x5f, 0x5e, 0x9c, 0x61, 0xdb, 0xe9, + 0x3a, 0xfd, 0x3a, 0xff, 0x5d, 0x90, 0x01, 0x94, 0x33, 0x29, 0x4c, 0xbb, 0xd8, 0x75, 0xfa, 0x8d, + 0x61, 0x87, 0xe6, 0x13, 0xe8, 0xf9, 0xf8, 0x52, 0x0a, 0xc3, 0xed, 0x68, 0xef, 0xdb, 0x81, 0xea, + 0xfb, 0x51, 0x4c, 0xee, 0xe1, 0xda, 0xd7, 0x4a, 0xba, 0xb8, 0x4b, 0x35, 0x6e, 0xb7, 0x42, 0x49, + 0x9b, 0x5f, 0x9b, 0x15, 0x78, 0xe3, 0x00, 0xa6, 0xe7, 0x7d, 0xc2, 0xa0, 0xac, 0x3d, 0x83, 0x56, + 0x75, 0x35, 0xbc, 0xfb, 0x57, 0x35, 0x2b, 0x70, 0x3b, 0x48, 0x46, 0x70, 0xbb, 0x11, 0xfe, 0x46, + 0x85, 0xa1, 0x6b, 0x44, 0x82, 0xae, 0x90, 0x69, 0x66, 0x5c, 0x4f, 0x47, 0xed, 0xd2, 0x41, 0xc1, + 0x6f, 0x8e, 0x74, 0x21, 0x12, 0x9c, 0x1f, 0xd8, 0x58, 0x47, 0x93, 0x16, 0x90, 0xd3, 0xe5, 0xfe, + 0xdc, 0x0f, 0x14, 0xea, 0xb9, 0xa7, 0x10, 0x80, 0xca, 0xcb, 0xfc, 0x75, 0xb9, 0x98, 0x36, 0x0b, + 0xa4, 0x0a, 0xe5, 0xd9, 0xdb, 0x92, 0x37, 0x1d, 0x72, 0x09, 0xa5, 0xa7, 0xf1, 0x47, 0xb3, 0x38, + 0x19, 0x7d, 0x0e, 0x22, 0x61, 0xd6, 0xd9, 0x8a, 0xfa, 0x2a, 0x61, 0xf1, 0x3e, 0x34, 0xec, 0xfc, + 0xf5, 0x11, 0x4a, 0x96, 0xae, 0x1e, 0x23, 0xc5, 0xf2, 0x6d, 0xac, 0x2a, 0xb6, 0x85, 0xd1, 0x4f, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x31, 0x4f, 0x38, 0xa6, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go new file mode 100644 index 0000000000..1efe700759 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.validate.go @@ -0,0 +1,187 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/schedule.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on FixedRate with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *FixedRate) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Value + + // no validation rules for Unit + + return nil +} + +// FixedRateValidationError is the validation error returned by +// FixedRate.Validate if the designated constraints aren't met. +type FixedRateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FixedRateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FixedRateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FixedRateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FixedRateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FixedRateValidationError) ErrorName() string { return "FixedRateValidationError" } + +// Error satisfies the builtin error interface +func (e FixedRateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sFixedRate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FixedRateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FixedRateValidationError{} + +// Validate checks the field values on Schedule with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Schedule) Validate() error { + if m == nil { + return nil + } + + // no validation rules for KickoffTimeInputArg + + switch m.ScheduleExpression.(type) { + + case *Schedule_CronExpression: + // no validation rules for CronExpression + + case *Schedule_Rate: + + if v, ok := interface{}(m.GetRate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScheduleValidationError{ + field: "Rate", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ScheduleValidationError is the validation error returned by +// Schedule.Validate if the designated constraints aren't met. +type ScheduleValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScheduleValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScheduleValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ScheduleValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScheduleValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScheduleValidationError) ErrorName() string { return "ScheduleValidationError" } + +// Error satisfies the builtin error interface +func (e ScheduleValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchedule.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScheduleValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScheduleValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json new file mode 100644 index 0000000000..5891c05c04 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/schedule.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go new file mode 100644 index 0000000000..3f383533a3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go @@ -0,0 +1,332 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/task.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Represents a request structure to create a revision of a task. +type TaskCreateRequest struct { + // id represents the unique identifier of the task. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the specification for task. + Spec *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} } +func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) } +func (*TaskCreateRequest) ProtoMessage() {} +func (*TaskCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_task_11abecd65b99328b, []int{0} +} +func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskCreateRequest.Unmarshal(m, b) +} +func (m *TaskCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskCreateRequest.Marshal(b, m, deterministic) +} +func (dst *TaskCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskCreateRequest.Merge(dst, src) +} +func (m *TaskCreateRequest) XXX_Size() int { + return xxx_messageInfo_TaskCreateRequest.Size(m) +} +func (m *TaskCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskCreateRequest proto.InternalMessageInfo + +func (m *TaskCreateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *TaskCreateRequest) GetSpec() *TaskSpec { + if m != nil { + return m.Spec + } + return nil +} + +// Represents a response structure if task creation succeeds. +type TaskCreateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} } +func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) } +func (*TaskCreateResponse) ProtoMessage() {} +func (*TaskCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_task_11abecd65b99328b, []int{1} +} +func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskCreateResponse.Unmarshal(m, b) +} +func (m *TaskCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskCreateResponse.Marshal(b, m, deterministic) +} +func (dst *TaskCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskCreateResponse.Merge(dst, src) +} +func (m *TaskCreateResponse) XXX_Size() int { + return xxx_messageInfo_TaskCreateResponse.Size(m) +} +func (m *TaskCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskCreateResponse proto.InternalMessageInfo + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +// arranged to process workflow inputs and produce a deterministic set of outputs. +// Tasks can come in many varieties tuned for specialized behavior. +type Task struct { + // id represents the unique identifier of the task. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the task. + Closure *TaskClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Task) Reset() { *m = Task{} } +func (m *Task) String() string { return proto.CompactTextString(m) } +func (*Task) ProtoMessage() {} +func (*Task) Descriptor() ([]byte, []int) { + return fileDescriptor_task_11abecd65b99328b, []int{2} +} +func (m *Task) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Task.Unmarshal(m, b) +} +func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Task.Marshal(b, m, deterministic) +} +func (dst *Task) XXX_Merge(src proto.Message) { + xxx_messageInfo_Task.Merge(dst, src) +} +func (m *Task) XXX_Size() int { + return xxx_messageInfo_Task.Size(m) +} +func (m *Task) XXX_DiscardUnknown() { + xxx_messageInfo_Task.DiscardUnknown(m) +} + +var xxx_messageInfo_Task proto.InternalMessageInfo + +func (m *Task) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Task) GetClosure() *TaskClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Represents a list of tasks returned from the admin. +type TaskList struct { + // A list of tasks returned based on the request. + Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,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 *TaskList) Reset() { *m = TaskList{} } +func (m *TaskList) String() string { return proto.CompactTextString(m) } +func (*TaskList) ProtoMessage() {} +func (*TaskList) Descriptor() ([]byte, []int) { + return fileDescriptor_task_11abecd65b99328b, []int{3} +} +func (m *TaskList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskList.Unmarshal(m, b) +} +func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskList.Marshal(b, m, deterministic) +} +func (dst *TaskList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskList.Merge(dst, src) +} +func (m *TaskList) XXX_Size() int { + return xxx_messageInfo_TaskList.Size(m) +} +func (m *TaskList) XXX_DiscardUnknown() { + xxx_messageInfo_TaskList.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskList proto.InternalMessageInfo + +func (m *TaskList) GetTasks() []*Task { + if m != nil { + return m.Tasks + } + return nil +} + +func (m *TaskList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a structure that encapsulates the user-configured specification of the task. +type TaskSpec struct { + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskSpec) Reset() { *m = TaskSpec{} } +func (m *TaskSpec) String() string { return proto.CompactTextString(m) } +func (*TaskSpec) ProtoMessage() {} +func (*TaskSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_task_11abecd65b99328b, []int{4} +} +func (m *TaskSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskSpec.Unmarshal(m, b) +} +func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskSpec.Marshal(b, m, deterministic) +} +func (dst *TaskSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskSpec.Merge(dst, src) +} +func (m *TaskSpec) XXX_Size() int { + return xxx_messageInfo_TaskSpec.Size(m) +} +func (m *TaskSpec) XXX_DiscardUnknown() { + xxx_messageInfo_TaskSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskSpec proto.InternalMessageInfo + +func (m *TaskSpec) GetTemplate() *core.TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +// and task metadata. +type TaskClosure struct { + // Represents the compiled representation of the task from the specification provided. + CompiledTask *core.CompiledTask `protobuf:"bytes,1,opt,name=compiled_task,json=compiledTask,proto3" json:"compiled_task,omitempty"` + // Time at which the task was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskClosure) Reset() { *m = TaskClosure{} } +func (m *TaskClosure) String() string { return proto.CompactTextString(m) } +func (*TaskClosure) ProtoMessage() {} +func (*TaskClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_task_11abecd65b99328b, []int{5} +} +func (m *TaskClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskClosure.Unmarshal(m, b) +} +func (m *TaskClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskClosure.Marshal(b, m, deterministic) +} +func (dst *TaskClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskClosure.Merge(dst, src) +} +func (m *TaskClosure) XXX_Size() int { + return xxx_messageInfo_TaskClosure.Size(m) +} +func (m *TaskClosure) XXX_DiscardUnknown() { + xxx_messageInfo_TaskClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskClosure proto.InternalMessageInfo + +func (m *TaskClosure) GetCompiledTask() *core.CompiledTask { + if m != nil { + return m.CompiledTask + } + return nil +} + +func (m *TaskClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func init() { + proto.RegisterType((*TaskCreateRequest)(nil), "flyteidl.admin.TaskCreateRequest") + proto.RegisterType((*TaskCreateResponse)(nil), "flyteidl.admin.TaskCreateResponse") + proto.RegisterType((*Task)(nil), "flyteidl.admin.Task") + proto.RegisterType((*TaskList)(nil), "flyteidl.admin.TaskList") + proto.RegisterType((*TaskSpec)(nil), "flyteidl.admin.TaskSpec") + proto.RegisterType((*TaskClosure)(nil), "flyteidl.admin.TaskClosure") +} + +func init() { proto.RegisterFile("flyteidl/admin/task.proto", fileDescriptor_task_11abecd65b99328b) } + +var fileDescriptor_task_11abecd65b99328b = []byte{ + // 390 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x6f, 0xd4, 0x30, + 0x10, 0x85, 0xb5, 0x4b, 0x0b, 0xad, 0x17, 0x90, 0xb0, 0xf6, 0x90, 0xdd, 0x22, 0xa8, 0x72, 0x2a, + 0x08, 0x6c, 0xd1, 0x0a, 0x21, 0x6e, 0x40, 0x4e, 0x48, 0x3d, 0x99, 0x3d, 0x71, 0xa9, 0x12, 0x67, + 0x92, 0x5a, 0xeb, 0xc4, 0x26, 0x9e, 0x1c, 0xfa, 0x17, 0xf8, 0xd5, 0xc8, 0x8e, 0x13, 0x6d, 0xd0, + 0x72, 0xe0, 0x38, 0x9e, 0x2f, 0xef, 0xcd, 0x4c, 0x1e, 0xd9, 0x54, 0xfa, 0x01, 0x41, 0x95, 0x9a, + 0xe7, 0x65, 0xa3, 0x5a, 0x8e, 0xb9, 0xdb, 0x33, 0xdb, 0x19, 0x34, 0xf4, 0xf9, 0xd8, 0x62, 0xa1, + 0xb5, 0x7d, 0x35, 0xa1, 0xd2, 0x74, 0xc0, 0x55, 0x09, 0x2d, 0xaa, 0x4a, 0x41, 0x37, 0xf0, 0xdb, + 0xcd, 0xbc, 0xef, 0x95, 0x5c, 0x6c, 0xbd, 0x9c, 0xb7, 0xa4, 0x69, 0xac, 0xd2, 0xd3, 0x87, 0xaf, + 0x6b, 0x63, 0x6a, 0x0d, 0x3c, 0x54, 0x45, 0x5f, 0x71, 0x54, 0x0d, 0x38, 0xcc, 0x1b, 0x3b, 0x00, + 0xa9, 0x26, 0x2f, 0x76, 0xb9, 0xdb, 0x67, 0x1d, 0xe4, 0x08, 0x02, 0x7e, 0xf5, 0xe0, 0x90, 0xbe, + 0x21, 0x4b, 0x55, 0x26, 0x8b, 0xcb, 0xc5, 0xd5, 0xea, 0x7a, 0xc3, 0xa6, 0x59, 0xbd, 0x01, 0xfb, + 0x3e, 0xcd, 0x26, 0x96, 0xaa, 0xa4, 0xef, 0xc8, 0x89, 0xb3, 0x20, 0x93, 0x65, 0x80, 0x13, 0x36, + 0x5f, 0x8c, 0x79, 0xed, 0x1f, 0x16, 0xa4, 0x08, 0x54, 0xba, 0x26, 0xf4, 0xd0, 0xcd, 0x59, 0xd3, + 0x3a, 0x48, 0xef, 0xc9, 0x89, 0x7f, 0xfd, 0x1f, 0xdb, 0x8f, 0xe4, 0x89, 0xd4, 0xc6, 0xf5, 0x1d, + 0x44, 0xe7, 0x8b, 0x63, 0xce, 0xd9, 0x80, 0x88, 0x91, 0x4d, 0x6f, 0xc9, 0x99, 0x7f, 0xbf, 0x55, + 0x0e, 0xe9, 0x5b, 0x72, 0x1a, 0xee, 0x98, 0x2c, 0x2e, 0x1f, 0x5d, 0xad, 0xae, 0xd7, 0xc7, 0x04, + 0xc4, 0x80, 0xd0, 0x35, 0x39, 0x45, 0xb3, 0x87, 0x36, 0x98, 0x9d, 0x8b, 0xa1, 0x48, 0xb3, 0x41, + 0xcd, 0xef, 0x47, 0x3f, 0x91, 0x33, 0x84, 0xc6, 0xea, 0x1c, 0x21, 0x6e, 0x70, 0xf1, 0xd7, 0x06, + 0x1e, 0xdd, 0x45, 0x44, 0x4c, 0x70, 0xfa, 0x7b, 0x41, 0x56, 0x07, 0xb3, 0xd2, 0x2f, 0xe4, 0x59, + 0xfc, 0x87, 0xe5, 0x9d, 0x37, 0xff, 0x87, 0x5a, 0x16, 0x99, 0x30, 0xe5, 0x53, 0x79, 0x50, 0xd1, + 0xcf, 0x84, 0xc8, 0x70, 0xe0, 0xf2, 0x2e, 0xc7, 0x78, 0x9e, 0x2d, 0x1b, 0x82, 0xc0, 0xc6, 0x20, + 0xb0, 0xdd, 0x18, 0x04, 0x71, 0x1e, 0xe9, 0xaf, 0xf8, 0xed, 0xe6, 0xe7, 0x87, 0x5a, 0xe1, 0x7d, + 0x5f, 0x30, 0x69, 0x1a, 0xae, 0x1f, 0x2a, 0xe4, 0x53, 0xbc, 0x6a, 0x68, 0xb9, 0x2d, 0xde, 0xd7, + 0x86, 0xcf, 0x73, 0x5d, 0x3c, 0x0e, 0x9a, 0x37, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xb5, + 0x0c, 0xc8, 0xf0, 0x02, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go new file mode 100644 index 0000000000..7100167ef3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.validate.go @@ -0,0 +1,512 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/task.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on TaskCreateRequest with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskCreateRequestValidationError is the validation error returned by +// TaskCreateRequest.Validate if the designated constraints aren't met. +type TaskCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskCreateRequestValidationError) ErrorName() string { + return "TaskCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskCreateRequestValidationError{} + +// Validate checks the field values on TaskCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskCreateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TaskCreateResponseValidationError is the validation error returned by +// TaskCreateResponse.Validate if the designated constraints aren't met. +type TaskCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskCreateResponseValidationError) ErrorName() string { + return "TaskCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskCreateResponseValidationError{} + +// Validate checks the field values on Task with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Task) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskValidationError is the validation error returned by Task.Validate if the +// designated constraints aren't met. +type TaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskValidationError) ErrorName() string { return "TaskValidationError" } + +// Error satisfies the builtin error interface +func (e TaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskValidationError{} + +// Validate checks the field values on TaskList with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskListValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// TaskListValidationError is the validation error returned by +// TaskList.Validate if the designated constraints aren't met. +type TaskListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskListValidationError) ErrorName() string { return "TaskListValidationError" } + +// Error satisfies the builtin error interface +func (e TaskListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskListValidationError{} + +// Validate checks the field values on TaskSpec with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskSpecValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskSpecValidationError is the validation error returned by +// TaskSpec.Validate if the designated constraints aren't met. +type TaskSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskSpecValidationError) ErrorName() string { return "TaskSpecValidationError" } + +// Error satisfies the builtin error interface +func (e TaskSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskSpecValidationError{} + +// Validate checks the field values on TaskClosure with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCompiledTask()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskClosureValidationError{ + field: "CompiledTask", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskClosureValidationError is the validation error returned by +// TaskClosure.Validate if the designated constraints aren't met. +type TaskClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskClosureValidationError) ErrorName() string { return "TaskClosureValidationError" } + +// Error satisfies the builtin error interface +func (e TaskClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskClosureValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json new file mode 100644 index 0000000000..8c7e13c9d3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/task.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go new file mode 100644 index 0000000000..f3fd62b522 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go @@ -0,0 +1,618 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/task_execution.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import _struct "github.com/golang/protobuf/ptypes/struct" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// A message used to fetch a single task execution entity. +type TaskExecutionGetRequest struct { + // Unique identifier for the task execution. + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionGetRequest) Reset() { *m = TaskExecutionGetRequest{} } +func (m *TaskExecutionGetRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionGetRequest) ProtoMessage() {} +func (*TaskExecutionGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{0} +} +func (m *TaskExecutionGetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionGetRequest.Unmarshal(m, b) +} +func (m *TaskExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionGetRequest.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionGetRequest.Merge(dst, src) +} +func (m *TaskExecutionGetRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionGetRequest.Size(m) +} +func (m *TaskExecutionGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionGetRequest proto.InternalMessageInfo + +func (m *TaskExecutionGetRequest) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Represents a request structure to retrieve a list of task execution entities. +type TaskExecutionListRequest struct { + // Indicates the node execution to filter by. + NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering for returned list. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionListRequest) Reset() { *m = TaskExecutionListRequest{} } +func (m *TaskExecutionListRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionListRequest) ProtoMessage() {} +func (*TaskExecutionListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{1} +} +func (m *TaskExecutionListRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionListRequest.Unmarshal(m, b) +} +func (m *TaskExecutionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionListRequest.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionListRequest.Merge(dst, src) +} +func (m *TaskExecutionListRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionListRequest.Size(m) +} +func (m *TaskExecutionListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionListRequest proto.InternalMessageInfo + +func (m *TaskExecutionListRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { + if m != nil { + return m.NodeExecutionId + } + return nil +} + +func (m *TaskExecutionListRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *TaskExecutionListRequest) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *TaskExecutionListRequest) GetFilters() string { + if m != nil { + return m.Filters + } + return "" +} + +func (m *TaskExecutionListRequest) GetSortBy() *Sort { + if m != nil { + return m.SortBy + } + return nil +} + +// Encapsulates all details for a single task execution entity. +// A task execution represents an instantiated task, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +type TaskExecution struct { + // Unique identifier for the task execution. + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Task execution details and results. + Closure *TaskExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + // Whether this task spawned nodes. + IsParent bool `protobuf:"varint,4,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecution) Reset() { *m = TaskExecution{} } +func (m *TaskExecution) String() string { return proto.CompactTextString(m) } +func (*TaskExecution) ProtoMessage() {} +func (*TaskExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{2} +} +func (m *TaskExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecution.Unmarshal(m, b) +} +func (m *TaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecution.Marshal(b, m, deterministic) +} +func (dst *TaskExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecution.Merge(dst, src) +} +func (m *TaskExecution) XXX_Size() int { + return xxx_messageInfo_TaskExecution.Size(m) +} +func (m *TaskExecution) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecution proto.InternalMessageInfo + +func (m *TaskExecution) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *TaskExecution) GetInputUri() string { + if m != nil { + return m.InputUri + } + return "" +} + +func (m *TaskExecution) GetClosure() *TaskExecutionClosure { + if m != nil { + return m.Closure + } + return nil +} + +func (m *TaskExecution) GetIsParent() bool { + if m != nil { + return m.IsParent + } + return false +} + +// Response structure for a query to list of task execution entities. +type TaskExecutionList struct { + TaskExecutions []*TaskExecution `protobuf:"bytes,1,rep,name=task_executions,json=taskExecutions,proto3" json:"task_executions,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 *TaskExecutionList) Reset() { *m = TaskExecutionList{} } +func (m *TaskExecutionList) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionList) ProtoMessage() {} +func (*TaskExecutionList) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{3} +} +func (m *TaskExecutionList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionList.Unmarshal(m, b) +} +func (m *TaskExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionList.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionList.Merge(dst, src) +} +func (m *TaskExecutionList) XXX_Size() int { + return xxx_messageInfo_TaskExecutionList.Size(m) +} +func (m *TaskExecutionList) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionList.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionList proto.InternalMessageInfo + +func (m *TaskExecutionList) GetTaskExecutions() []*TaskExecution { + if m != nil { + return m.TaskExecutions + } + return nil +} + +func (m *TaskExecutionList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Container for task execution details and results. +type TaskExecutionClosure struct { + // Types that are valid to be assigned to OutputResult: + // *TaskExecutionClosure_OutputUri + // *TaskExecutionClosure_Error + OutputResult isTaskExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // The last recorded phase for this task execution. + Phase core.TaskExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // Detailed log information output by the task execution. + Logs []*core.TaskLog `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"` + // Time at which the task execution began running. + StartedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the task execution spent running. + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + // Time at which the task execution was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the task execution was last updated. + UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Custom data specific to the task plugin. + CustomInfo *_struct.Struct `protobuf:"bytes,9,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionClosure) Reset() { *m = TaskExecutionClosure{} } +func (m *TaskExecutionClosure) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionClosure) ProtoMessage() {} +func (*TaskExecutionClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{4} +} +func (m *TaskExecutionClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionClosure.Unmarshal(m, b) +} +func (m *TaskExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionClosure.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionClosure.Merge(dst, src) +} +func (m *TaskExecutionClosure) XXX_Size() int { + return xxx_messageInfo_TaskExecutionClosure.Size(m) +} +func (m *TaskExecutionClosure) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionClosure proto.InternalMessageInfo + +type isTaskExecutionClosure_OutputResult interface { + isTaskExecutionClosure_OutputResult() +} + +type TaskExecutionClosure_OutputUri struct { + OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type TaskExecutionClosure_Error struct { + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +func (*TaskExecutionClosure_OutputUri) isTaskExecutionClosure_OutputResult() {} + +func (*TaskExecutionClosure_Error) isTaskExecutionClosure_OutputResult() {} + +func (m *TaskExecutionClosure) GetOutputResult() isTaskExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *TaskExecutionClosure) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*TaskExecutionClosure_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *TaskExecutionClosure) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*TaskExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +func (m *TaskExecutionClosure) GetPhase() core.TaskExecution_Phase { + if m != nil { + return m.Phase + } + return core.TaskExecution_UNDEFINED +} + +func (m *TaskExecutionClosure) GetLogs() []*core.TaskLog { + if m != nil { + return m.Logs + } + return nil +} + +func (m *TaskExecutionClosure) GetStartedAt() *timestamp.Timestamp { + if m != nil { + return m.StartedAt + } + return nil +} + +func (m *TaskExecutionClosure) GetDuration() *duration.Duration { + if m != nil { + return m.Duration + } + return nil +} + +func (m *TaskExecutionClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func (m *TaskExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { + if m != nil { + return m.UpdatedAt + } + return nil +} + +func (m *TaskExecutionClosure) GetCustomInfo() *_struct.Struct { + if m != nil { + return m.CustomInfo + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TaskExecutionClosure) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TaskExecutionClosure_OneofMarshaler, _TaskExecutionClosure_OneofUnmarshaler, _TaskExecutionClosure_OneofSizer, []interface{}{ + (*TaskExecutionClosure_OutputUri)(nil), + (*TaskExecutionClosure_Error)(nil), + } +} + +func _TaskExecutionClosure_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TaskExecutionClosure) + // output_result + switch x := m.OutputResult.(type) { + case *TaskExecutionClosure_OutputUri: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.OutputUri) + case *TaskExecutionClosure_Error: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TaskExecutionClosure.OutputResult has unexpected type %T", x) + } + return nil +} + +func _TaskExecutionClosure_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TaskExecutionClosure) + switch tag { + case 1: // output_result.output_uri + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.OutputResult = &TaskExecutionClosure_OutputUri{x} + return true, err + case 2: // output_result.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.ExecutionError) + err := b.DecodeMessage(msg) + m.OutputResult = &TaskExecutionClosure_Error{msg} + return true, err + default: + return false, nil + } +} + +func _TaskExecutionClosure_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TaskExecutionClosure) + // output_result + switch x := m.OutputResult.(type) { + case *TaskExecutionClosure_OutputUri: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.OutputUri))) + n += len(x.OutputUri) + case *TaskExecutionClosure_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Request structure to fetch inputs and output urls for a task execution. +type TaskExecutionGetDataRequest struct { + // The identifier of the task execution for which to fetch inputs and outputs. + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionGetDataRequest) Reset() { *m = TaskExecutionGetDataRequest{} } +func (m *TaskExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionGetDataRequest) ProtoMessage() {} +func (*TaskExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{5} +} +func (m *TaskExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionGetDataRequest.Unmarshal(m, b) +} +func (m *TaskExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionGetDataRequest.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionGetDataRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionGetDataRequest.Merge(dst, src) +} +func (m *TaskExecutionGetDataRequest) XXX_Size() int { + return xxx_messageInfo_TaskExecutionGetDataRequest.Size(m) +} +func (m *TaskExecutionGetDataRequest) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionGetDataRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionGetDataRequest proto.InternalMessageInfo + +func (m *TaskExecutionGetDataRequest) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +type TaskExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of task execution inputs. + Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of task execution outputs. + Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionGetDataResponse) Reset() { *m = TaskExecutionGetDataResponse{} } +func (m *TaskExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionGetDataResponse) ProtoMessage() {} +func (*TaskExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_task_execution_20ccfe15d6ac318d, []int{6} +} +func (m *TaskExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionGetDataResponse.Unmarshal(m, b) +} +func (m *TaskExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionGetDataResponse.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionGetDataResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionGetDataResponse.Merge(dst, src) +} +func (m *TaskExecutionGetDataResponse) XXX_Size() int { + return xxx_messageInfo_TaskExecutionGetDataResponse.Size(m) +} +func (m *TaskExecutionGetDataResponse) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionGetDataResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionGetDataResponse proto.InternalMessageInfo + +func (m *TaskExecutionGetDataResponse) GetInputs() *UrlBlob { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *TaskExecutionGetDataResponse) GetOutputs() *UrlBlob { + if m != nil { + return m.Outputs + } + return nil +} + +func init() { + proto.RegisterType((*TaskExecutionGetRequest)(nil), "flyteidl.admin.TaskExecutionGetRequest") + proto.RegisterType((*TaskExecutionListRequest)(nil), "flyteidl.admin.TaskExecutionListRequest") + proto.RegisterType((*TaskExecution)(nil), "flyteidl.admin.TaskExecution") + proto.RegisterType((*TaskExecutionList)(nil), "flyteidl.admin.TaskExecutionList") + proto.RegisterType((*TaskExecutionClosure)(nil), "flyteidl.admin.TaskExecutionClosure") + proto.RegisterType((*TaskExecutionGetDataRequest)(nil), "flyteidl.admin.TaskExecutionGetDataRequest") + proto.RegisterType((*TaskExecutionGetDataResponse)(nil), "flyteidl.admin.TaskExecutionGetDataResponse") +} + +func init() { + proto.RegisterFile("flyteidl/admin/task_execution.proto", fileDescriptor_task_execution_20ccfe15d6ac318d) +} + +var fileDescriptor_task_execution_20ccfe15d6ac318d = []byte{ + // 691 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xdd, 0x4e, 0xdb, 0x4a, + 0x10, 0xc6, 0x81, 0xfc, 0x4d, 0x04, 0x88, 0x15, 0x3a, 0xf8, 0x04, 0x38, 0x44, 0x39, 0x55, 0x15, + 0x55, 0xc2, 0x16, 0x41, 0x54, 0xf4, 0xa6, 0x12, 0x29, 0xb4, 0x20, 0xa1, 0x8a, 0x2e, 0x70, 0xd3, + 0x9b, 0xc8, 0xb1, 0x37, 0x61, 0x85, 0xed, 0x35, 0xbb, 0x63, 0xa9, 0xb9, 0xed, 0x4d, 0x9f, 0xab, + 0xcf, 0xd2, 0x17, 0xa9, 0xbc, 0xb6, 0x03, 0x36, 0x01, 0xa4, 0xf6, 0x72, 0x76, 0xbe, 0x6f, 0x7e, + 0xbe, 0x9d, 0xd9, 0x85, 0xff, 0xc7, 0xfe, 0x14, 0x19, 0xf7, 0x7c, 0xdb, 0xf1, 0x02, 0x1e, 0xda, + 0xe8, 0xa8, 0xdb, 0x21, 0xfb, 0xc6, 0xdc, 0x18, 0xb9, 0x08, 0xad, 0x48, 0x0a, 0x14, 0x64, 0x25, + 0x07, 0x59, 0x1a, 0xd4, 0xde, 0x2c, 0x91, 0x5c, 0x11, 0x04, 0x39, 0xb8, 0xbd, 0x3d, 0x73, 0xba, + 0x42, 0x32, 0xbb, 0x14, 0xab, 0xfd, 0x5f, 0xd1, 0xcd, 0x3d, 0x16, 0x22, 0x1f, 0x73, 0x26, 0x33, + 0xff, 0xce, 0x44, 0x88, 0x89, 0xcf, 0x6c, 0x6d, 0x8d, 0xe2, 0xb1, 0x8d, 0x3c, 0x60, 0x0a, 0x9d, + 0x20, 0xca, 0x03, 0x94, 0x01, 0x5e, 0x2c, 0x9d, 0x07, 0x09, 0xb6, 0xca, 0x7e, 0x85, 0x32, 0x76, + 0x31, 0xf5, 0x76, 0xbf, 0xc0, 0xc6, 0x95, 0xa3, 0x6e, 0x4f, 0xf2, 0xaa, 0x3e, 0x31, 0xa4, 0xec, + 0x2e, 0x66, 0x0a, 0xc9, 0x5b, 0xa8, 0x70, 0xcf, 0x34, 0x3a, 0x46, 0xaf, 0xd5, 0x7f, 0x6d, 0xcd, + 0x5a, 0x4e, 0xca, 0xb4, 0x0a, 0x9c, 0xb3, 0x59, 0xcd, 0xb4, 0xc2, 0xbd, 0xee, 0x2f, 0x03, 0xcc, + 0x82, 0xff, 0x9c, 0xab, 0x59, 0x50, 0x0a, 0x6b, 0xa1, 0xf0, 0xd8, 0xbd, 0xa4, 0xc3, 0x27, 0x73, + 0x7c, 0x16, 0x1e, 0x9b, 0x97, 0x63, 0x35, 0x2c, 0x3a, 0xc8, 0x3a, 0x54, 0x7d, 0x1e, 0x70, 0x34, + 0x2b, 0x1d, 0xa3, 0xb7, 0x4c, 0x53, 0x23, 0x39, 0x45, 0x71, 0xcb, 0x42, 0x73, 0xb1, 0x63, 0xf4, + 0x9a, 0x34, 0x35, 0x88, 0x09, 0xf5, 0x31, 0xf7, 0x91, 0x49, 0x65, 0x2e, 0xe9, 0xf3, 0xdc, 0x24, + 0xbb, 0x50, 0x57, 0x42, 0xe2, 0x70, 0x34, 0x35, 0xab, 0xba, 0x9e, 0x75, 0xab, 0x78, 0xcd, 0xd6, + 0xa5, 0x90, 0x48, 0x6b, 0x09, 0x68, 0x30, 0xed, 0xfe, 0x34, 0x60, 0xb9, 0xd0, 0xe5, 0x9f, 0xea, + 0x45, 0x36, 0xa1, 0xc9, 0xc3, 0x28, 0xc6, 0x61, 0x2c, 0xb9, 0x6e, 0xa1, 0x49, 0x1b, 0xfa, 0xe0, + 0x5a, 0x72, 0xf2, 0x1e, 0xea, 0xae, 0x2f, 0x54, 0x2c, 0x99, 0xee, 0xa3, 0xd5, 0x7f, 0x55, 0xae, + 0xaa, 0x10, 0xfa, 0x43, 0x8a, 0xa5, 0x39, 0x49, 0x07, 0x57, 0xc3, 0xc8, 0x91, 0x2c, 0x44, 0xdd, + 0x71, 0x83, 0x36, 0xb8, 0xba, 0xd0, 0x76, 0xf7, 0x0e, 0xd6, 0x1e, 0x5d, 0x14, 0xf9, 0x08, 0xab, + 0xc5, 0xa1, 0x57, 0xa6, 0xd1, 0x59, 0xec, 0xb5, 0xfa, 0xdb, 0xcf, 0x66, 0xa6, 0x2b, 0xf8, 0xd0, + 0x54, 0xf7, 0xfa, 0x57, 0x1e, 0xe8, 0xdf, 0xfd, 0xb1, 0x04, 0xeb, 0xf3, 0x2a, 0x26, 0x3b, 0x00, + 0x22, 0xc6, 0x5c, 0x86, 0x44, 0xc5, 0xe6, 0xe9, 0x02, 0x6d, 0xa6, 0x67, 0x89, 0x12, 0x07, 0x50, + 0x65, 0x52, 0x0a, 0xa9, 0xe3, 0x15, 0xaa, 0xd1, 0x0a, 0xcf, 0x02, 0x9e, 0x24, 0xa0, 0xd3, 0x05, + 0x9a, 0xa2, 0xc9, 0x21, 0x54, 0xa3, 0x1b, 0x47, 0xa5, 0xf2, 0xad, 0xf4, 0xbb, 0xcf, 0x5d, 0x8c, + 0x75, 0x91, 0x20, 0x69, 0x4a, 0x20, 0x6f, 0x60, 0xc9, 0x17, 0x93, 0x64, 0x4e, 0x92, 0xee, 0xff, + 0x99, 0x43, 0x3c, 0x17, 0x13, 0xaa, 0x31, 0xe4, 0x1d, 0x80, 0x42, 0x47, 0x22, 0xf3, 0x86, 0x0e, + 0x66, 0xf3, 0xd3, 0xb6, 0xd2, 0xcd, 0xb3, 0xf2, 0xcd, 0xb3, 0xae, 0xf2, 0xd5, 0xa5, 0xcd, 0x0c, + 0x7d, 0x84, 0xe4, 0x00, 0x1a, 0xf9, 0xc6, 0x9a, 0x35, 0x4d, 0xfc, 0xf7, 0x11, 0xf1, 0x38, 0x03, + 0xd0, 0x19, 0x34, 0xc9, 0xe8, 0x4a, 0xe6, 0x64, 0x19, 0xeb, 0x2f, 0x67, 0xcc, 0xd0, 0x47, 0x98, + 0x50, 0xe3, 0xc8, 0xcb, 0xa9, 0x8d, 0x97, 0xa9, 0x19, 0xfa, 0x08, 0xc9, 0x21, 0xb4, 0xdc, 0x58, + 0xa1, 0x08, 0x86, 0x3c, 0x1c, 0x0b, 0xb3, 0xa9, 0xb9, 0x1b, 0x8f, 0xb8, 0x97, 0xfa, 0x89, 0xa1, + 0x90, 0x62, 0xcf, 0xc2, 0xb1, 0x18, 0xac, 0xc2, 0x72, 0x76, 0xbf, 0x92, 0xa9, 0xd8, 0xc7, 0xee, + 0x35, 0x6c, 0x96, 0x5f, 0x9e, 0x63, 0x07, 0x9d, 0xbf, 0x7d, 0x7d, 0xbe, 0x1b, 0xb0, 0x35, 0x3f, + 0xae, 0x8a, 0x44, 0xa8, 0x18, 0xb1, 0xa1, 0xa6, 0xb7, 0x4b, 0x65, 0xc1, 0x37, 0xca, 0x63, 0x7d, + 0x2d, 0xfd, 0x81, 0x2f, 0x46, 0x34, 0x83, 0x91, 0x3d, 0xa8, 0xa7, 0x95, 0xab, 0x6c, 0xf4, 0x9e, + 0x64, 0xe4, 0xb8, 0xc1, 0xfe, 0xd7, 0xbd, 0x09, 0xc7, 0x9b, 0x78, 0x64, 0xb9, 0x22, 0xb0, 0xfd, + 0xe9, 0x18, 0xed, 0xd9, 0x33, 0x3f, 0x61, 0xa1, 0x1d, 0x8d, 0x76, 0x27, 0xc2, 0x2e, 0xfe, 0x1a, + 0xa3, 0x9a, 0x96, 0x6f, 0xff, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x4f, 0xe6, 0xdf, 0x59, 0x83, + 0x06, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go new file mode 100644 index 0000000000..f192ac6e3f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.validate.go @@ -0,0 +1,700 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/task_execution.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} + + _ = core.TaskExecution_Phase(0) +) + +// Validate checks the field values on TaskExecutionGetRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionGetRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionGetRequestValidationError is the validation error returned by +// TaskExecutionGetRequest.Validate if the designated constraints aren't met. +type TaskExecutionGetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionGetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionGetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionGetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionGetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionGetRequestValidationError) ErrorName() string { + return "TaskExecutionGetRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionGetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionGetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionGetRequestValidationError{} + +// Validate checks the field values on TaskExecutionListRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionListRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetNodeExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionListRequestValidationError{ + field: "NodeExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Limit + + // no validation rules for Token + + // no validation rules for Filters + + if v, ok := interface{}(m.GetSortBy()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionListRequestValidationError{ + field: "SortBy", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionListRequestValidationError is the validation error returned by +// TaskExecutionListRequest.Validate if the designated constraints aren't met. +type TaskExecutionListRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionListRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionListRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionListRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionListRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionListRequestValidationError) ErrorName() string { + return "TaskExecutionListRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionListRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionListRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionListRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionListRequestValidationError{} + +// Validate checks the field values on TaskExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskExecution) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for InputUri + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IsParent + + return nil +} + +// TaskExecutionValidationError is the validation error returned by +// TaskExecution.Validate if the designated constraints aren't met. +type TaskExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionValidationError) ErrorName() string { return "TaskExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e TaskExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionValidationError{} + +// Validate checks the field values on TaskExecutionList with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *TaskExecutionList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetTaskExecutions() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionListValidationError{ + field: fmt.Sprintf("TaskExecutions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// TaskExecutionListValidationError is the validation error returned by +// TaskExecutionList.Validate if the designated constraints aren't met. +type TaskExecutionListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionListValidationError) ErrorName() string { + return "TaskExecutionListValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionListValidationError{} + +// Validate checks the field values on TaskExecutionClosure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionClosure) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Phase + + for idx, item := range m.GetLogs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: fmt.Sprintf("Logs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetStartedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "StartedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "UpdatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCustomInfo()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "CustomInfo", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *TaskExecutionClosure_OutputUri: + // no validation rules for OutputUri + + case *TaskExecutionClosure_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionClosureValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskExecutionClosureValidationError is the validation error returned by +// TaskExecutionClosure.Validate if the designated constraints aren't met. +type TaskExecutionClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionClosureValidationError) ErrorName() string { + return "TaskExecutionClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionClosureValidationError{} + +// Validate checks the field values on TaskExecutionGetDataRequest with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionGetDataRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionGetDataRequestValidationError is the validation error returned +// by TaskExecutionGetDataRequest.Validate if the designated constraints +// aren't met. +type TaskExecutionGetDataRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionGetDataRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionGetDataRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionGetDataRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionGetDataRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionGetDataRequestValidationError) ErrorName() string { + return "TaskExecutionGetDataRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionGetDataRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionGetDataRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionGetDataRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionGetDataRequestValidationError{} + +// Validate checks the field values on TaskExecutionGetDataResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionGetDataResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionGetDataResponseValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskExecutionGetDataResponseValidationError is the validation error returned +// by TaskExecutionGetDataResponse.Validate if the designated constraints +// aren't met. +type TaskExecutionGetDataResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionGetDataResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionGetDataResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionGetDataResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionGetDataResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionGetDataResponseValidationError) ErrorName() string { + return "TaskExecutionGetDataResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionGetDataResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionGetDataResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionGetDataResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionGetDataResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json new file mode 100644 index 0000000000..8e73cb6c5b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/task_execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go new file mode 100644 index 0000000000..75dfb9d22d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go @@ -0,0 +1,333 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/admin/workflow.proto + +package admin // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Represents a request structure to create a revision of a workflow. +type WorkflowCreateRequest struct { + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the specification for workflow. + Spec *WorkflowSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowCreateRequest) Reset() { *m = WorkflowCreateRequest{} } +func (m *WorkflowCreateRequest) String() string { return proto.CompactTextString(m) } +func (*WorkflowCreateRequest) ProtoMessage() {} +func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_3b9bde175ae134be, []int{0} +} +func (m *WorkflowCreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowCreateRequest.Unmarshal(m, b) +} +func (m *WorkflowCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowCreateRequest.Marshal(b, m, deterministic) +} +func (dst *WorkflowCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowCreateRequest.Merge(dst, src) +} +func (m *WorkflowCreateRequest) XXX_Size() int { + return xxx_messageInfo_WorkflowCreateRequest.Size(m) +} +func (m *WorkflowCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowCreateRequest proto.InternalMessageInfo + +func (m *WorkflowCreateRequest) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *WorkflowCreateRequest) GetSpec() *WorkflowSpec { + if m != nil { + return m.Spec + } + return nil +} + +type WorkflowCreateResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowCreateResponse) Reset() { *m = WorkflowCreateResponse{} } +func (m *WorkflowCreateResponse) String() string { return proto.CompactTextString(m) } +func (*WorkflowCreateResponse) ProtoMessage() {} +func (*WorkflowCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_3b9bde175ae134be, []int{1} +} +func (m *WorkflowCreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowCreateResponse.Unmarshal(m, b) +} +func (m *WorkflowCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowCreateResponse.Marshal(b, m, deterministic) +} +func (dst *WorkflowCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowCreateResponse.Merge(dst, src) +} +func (m *WorkflowCreateResponse) XXX_Size() int { + return xxx_messageInfo_WorkflowCreateResponse.Size(m) +} +func (m *WorkflowCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowCreateResponse proto.InternalMessageInfo + +// Represents the workflow structure stored in the Admin +// A workflow is created by ordering tasks and associating outputs to inputs +// in order to produce a directed-acyclic execution graph. +type Workflow struct { + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the workflow. + Closure *WorkflowClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Workflow) Reset() { *m = Workflow{} } +func (m *Workflow) String() string { return proto.CompactTextString(m) } +func (*Workflow) ProtoMessage() {} +func (*Workflow) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_3b9bde175ae134be, []int{2} +} +func (m *Workflow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Workflow.Unmarshal(m, b) +} +func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Workflow.Marshal(b, m, deterministic) +} +func (dst *Workflow) XXX_Merge(src proto.Message) { + xxx_messageInfo_Workflow.Merge(dst, src) +} +func (m *Workflow) XXX_Size() int { + return xxx_messageInfo_Workflow.Size(m) +} +func (m *Workflow) XXX_DiscardUnknown() { + xxx_messageInfo_Workflow.DiscardUnknown(m) +} + +var xxx_messageInfo_Workflow proto.InternalMessageInfo + +func (m *Workflow) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *Workflow) GetClosure() *WorkflowClosure { + if m != nil { + return m.Closure + } + return nil +} + +// Represents a list of workflows returned from the admin. +type WorkflowList struct { + // A list of workflows returned based on the request. + Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,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 *WorkflowList) Reset() { *m = WorkflowList{} } +func (m *WorkflowList) String() string { return proto.CompactTextString(m) } +func (*WorkflowList) ProtoMessage() {} +func (*WorkflowList) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_3b9bde175ae134be, []int{3} +} +func (m *WorkflowList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowList.Unmarshal(m, b) +} +func (m *WorkflowList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowList.Marshal(b, m, deterministic) +} +func (dst *WorkflowList) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowList.Merge(dst, src) +} +func (m *WorkflowList) XXX_Size() int { + return xxx_messageInfo_WorkflowList.Size(m) +} +func (m *WorkflowList) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowList.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowList proto.InternalMessageInfo + +func (m *WorkflowList) GetWorkflows() []*Workflow { + if m != nil { + return m.Workflows + } + return nil +} + +func (m *WorkflowList) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +// Represents a structure that encapsulates the specification of the workflow. +type WorkflowSpec struct { + // Template of the task that encapsulates all the metadata of the workflow. + Template *core.WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowSpec) Reset() { *m = WorkflowSpec{} } +func (m *WorkflowSpec) String() string { return proto.CompactTextString(m) } +func (*WorkflowSpec) ProtoMessage() {} +func (*WorkflowSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_3b9bde175ae134be, []int{4} +} +func (m *WorkflowSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowSpec.Unmarshal(m, b) +} +func (m *WorkflowSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowSpec.Marshal(b, m, deterministic) +} +func (dst *WorkflowSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowSpec.Merge(dst, src) +} +func (m *WorkflowSpec) XXX_Size() int { + return xxx_messageInfo_WorkflowSpec.Size(m) +} +func (m *WorkflowSpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowSpec proto.InternalMessageInfo + +func (m *WorkflowSpec) GetTemplate() *core.WorkflowTemplate { + if m != nil { + return m.Template + } + return nil +} + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +type WorkflowClosure struct { + // Represents the compiled representation of the workflow from the specification provided. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // Time at which the workflow was created. + CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} } +func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) } +func (*WorkflowClosure) ProtoMessage() {} +func (*WorkflowClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_3b9bde175ae134be, []int{5} +} +func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b) +} +func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic) +} +func (dst *WorkflowClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowClosure.Merge(dst, src) +} +func (m *WorkflowClosure) XXX_Size() int { + return xxx_messageInfo_WorkflowClosure.Size(m) +} +func (m *WorkflowClosure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo + +func (m *WorkflowClosure) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if m != nil { + return m.CompiledWorkflow + } + return nil +} + +func (m *WorkflowClosure) GetCreatedAt() *timestamp.Timestamp { + if m != nil { + return m.CreatedAt + } + return nil +} + +func init() { + proto.RegisterType((*WorkflowCreateRequest)(nil), "flyteidl.admin.WorkflowCreateRequest") + proto.RegisterType((*WorkflowCreateResponse)(nil), "flyteidl.admin.WorkflowCreateResponse") + proto.RegisterType((*Workflow)(nil), "flyteidl.admin.Workflow") + proto.RegisterType((*WorkflowList)(nil), "flyteidl.admin.WorkflowList") + proto.RegisterType((*WorkflowSpec)(nil), "flyteidl.admin.WorkflowSpec") + proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.admin.WorkflowClosure") +} + +func init() { + proto.RegisterFile("flyteidl/admin/workflow.proto", fileDescriptor_workflow_3b9bde175ae134be) +} + +var fileDescriptor_workflow_3b9bde175ae134be = []byte{ + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xdf, 0x6b, 0xd5, 0x30, + 0x1c, 0xc5, 0xb9, 0xd7, 0x5f, 0xbb, 0x99, 0xf8, 0x23, 0xa8, 0xd4, 0xeb, 0xf4, 0x8e, 0x3e, 0xc8, + 0x7c, 0x30, 0xd1, 0x0d, 0x84, 0xe1, 0x93, 0xde, 0x27, 0xd1, 0xa7, 0x6c, 0x20, 0x88, 0x30, 0xda, + 0xf4, 0xdb, 0x1a, 0x96, 0x34, 0xb1, 0xf9, 0x96, 0xb1, 0x3f, 0xc7, 0xff, 0x54, 0xd6, 0x26, 0x1d, + 0x0d, 0xec, 0x61, 0x8f, 0xe5, 0x7c, 0x72, 0x72, 0x4e, 0x7a, 0xc8, 0xeb, 0x5a, 0x5f, 0x22, 0xa8, + 0x4a, 0xf3, 0xa2, 0x32, 0xaa, 0xe5, 0x17, 0xb6, 0x3b, 0xaf, 0xb5, 0xbd, 0x60, 0xae, 0xb3, 0x68, + 0xe9, 0xa3, 0x28, 0xb3, 0x41, 0x5e, 0xef, 0x4d, 0xb8, 0xb4, 0x1d, 0x70, 0x69, 0x8d, 0x53, 0x1a, + 0xba, 0x91, 0x5e, 0xbf, 0x99, 0xab, 0xaa, 0x82, 0x16, 0x55, 0xad, 0x26, 0x3d, 0x39, 0x3d, 0xbf, + 0x6b, 0xfd, 0x2a, 0x89, 0x22, 0xad, 0x31, 0xb6, 0x0d, 0xe2, 0xa6, 0xb1, 0xb6, 0xd1, 0xc0, 0x87, + 0xaf, 0xb2, 0xaf, 0x39, 0x2a, 0x03, 0x1e, 0x0b, 0xe3, 0x46, 0x20, 0x47, 0xf2, 0xfc, 0x67, 0xf0, + 0xdb, 0x76, 0x50, 0x20, 0x08, 0xf8, 0xdb, 0x83, 0x47, 0xfa, 0x8e, 0x2c, 0x55, 0x95, 0x2d, 0xf6, + 0x17, 0x07, 0xbb, 0x87, 0x2f, 0xd9, 0xd4, 0xe7, 0x2a, 0x01, 0xfb, 0x36, 0x25, 0x14, 0x4b, 0x55, + 0xd1, 0x0f, 0xe4, 0xae, 0x77, 0x20, 0xb3, 0xe5, 0x00, 0xef, 0xb1, 0x79, 0x79, 0x16, 0xfd, 0x4f, + 0x1c, 0x48, 0x31, 0x90, 0x79, 0x46, 0x5e, 0xa4, 0xb7, 0x7a, 0x67, 0x5b, 0x0f, 0xb9, 0x23, 0x3b, + 0x51, 0xb9, 0x4d, 0x84, 0x63, 0xf2, 0x40, 0x6a, 0xeb, 0xfb, 0x0e, 0x42, 0x8a, 0xcd, 0x4d, 0x29, + 0xb6, 0x23, 0x26, 0x22, 0x9f, 0xff, 0x26, 0x0f, 0xa3, 0xf6, 0x43, 0x79, 0xa4, 0x9f, 0xc8, 0x2a, + 0xbe, 0xb0, 0xcf, 0x16, 0xfb, 0x77, 0x0e, 0x76, 0x0f, 0xb3, 0x9b, 0xcc, 0xc4, 0x35, 0x4a, 0x9f, + 0x91, 0x7b, 0x68, 0xcf, 0xa1, 0x1d, 0x02, 0xac, 0xc4, 0xf8, 0x91, 0x7f, 0xbf, 0x76, 0xbf, 0xea, + 0x4f, 0x3f, 0x93, 0x1d, 0x04, 0xe3, 0x74, 0x81, 0x10, 0x9a, 0x6d, 0x92, 0x66, 0x11, 0x3f, 0x0d, + 0x98, 0x98, 0x0e, 0xe4, 0xff, 0x16, 0xe4, 0x71, 0xd2, 0x83, 0x9e, 0x90, 0xa7, 0x61, 0x4e, 0xd5, + 0x59, 0x0c, 0x13, 0x9c, 0xdf, 0x26, 0xce, 0xdb, 0xc0, 0xa5, 0x4f, 0xf1, 0x44, 0x26, 0x02, 0x3d, + 0x26, 0x44, 0x0e, 0xff, 0xa5, 0x3a, 0x2b, 0x30, 0xbc, 0xe8, 0x9a, 0x8d, 0x5b, 0x62, 0x71, 0x4b, + 0xec, 0x34, 0x6e, 0x49, 0xac, 0x02, 0xfd, 0x05, 0xbf, 0x1e, 0xfd, 0xfa, 0xd8, 0x28, 0xfc, 0xd3, + 0x97, 0x4c, 0x5a, 0xc3, 0xf5, 0x65, 0x8d, 0x7c, 0x1a, 0x68, 0x03, 0x2d, 0x77, 0xe5, 0xfb, 0xc6, + 0xf2, 0xf9, 0x66, 0xcb, 0xfb, 0x83, 0xe7, 0xd1, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9e, 0xa4, + 0xfb, 0xe6, 0x57, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go new file mode 100644 index 0000000000..898a4ab77d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go @@ -0,0 +1,514 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/admin/workflow.proto + +package admin + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on WorkflowCreateRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowCreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowCreateRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowCreateRequestValidationError{ + field: "Spec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowCreateRequestValidationError is the validation error returned by +// WorkflowCreateRequest.Validate if the designated constraints aren't met. +type WorkflowCreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowCreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowCreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowCreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowCreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowCreateRequestValidationError) ErrorName() string { + return "WorkflowCreateRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowCreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowCreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowCreateRequestValidationError{} + +// Validate checks the field values on WorkflowCreateResponse with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowCreateResponse) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowCreateResponseValidationError is the validation error returned by +// WorkflowCreateResponse.Validate if the designated constraints aren't met. +type WorkflowCreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowCreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowCreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowCreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowCreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowCreateResponseValidationError) ErrorName() string { + return "WorkflowCreateResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowCreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowCreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowCreateResponseValidationError{} + +// Validate checks the field values on Workflow with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Workflow) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetClosure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowValidationError{ + field: "Closure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowValidationError is the validation error returned by +// Workflow.Validate if the designated constraints aren't met. +type WorkflowValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowValidationError) ErrorName() string { return "WorkflowValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflow.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowValidationError{} + +// Validate checks the field values on WorkflowList with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WorkflowList) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetWorkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowListValidationError{ + field: fmt.Sprintf("Workflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for Token + + return nil +} + +// WorkflowListValidationError is the validation error returned by +// WorkflowList.Validate if the designated constraints aren't met. +type WorkflowListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowListValidationError) ErrorName() string { return "WorkflowListValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowListValidationError{} + +// Validate checks the field values on WorkflowSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WorkflowSpec) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowSpecValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowSpecValidationError is the validation error returned by +// WorkflowSpec.Validate if the designated constraints aren't met. +type WorkflowSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowSpecValidationError) ErrorName() string { return "WorkflowSpecValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowSpecValidationError{} + +// Validate checks the field values on WorkflowClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCompiledWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: "CompiledWorkflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: "CreatedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowClosureValidationError is the validation error returned by +// WorkflowClosure.Validate if the designated constraints aren't met. +type WorkflowClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowClosureValidationError) ErrorName() string { return "WorkflowClosureValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowClosureValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json new file mode 100644 index 0000000000..7e1bd220f5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/workflow.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go new file mode 100644 index 0000000000..34e3278b1f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go @@ -0,0 +1,306 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/compiler.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +// step uses this created ConnectionSet +type ConnectionSet struct { + // A list of all the node ids that are downstream from a given node id + Downstream map[string]*ConnectionSet_IdList `protobuf:"bytes,7,rep,name=downstream,proto3" json:"downstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // A list of all the node ids, that are upstream of this node id + Upstream map[string]*ConnectionSet_IdList `protobuf:"bytes,8,rep,name=upstream,proto3" json:"upstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConnectionSet) Reset() { *m = ConnectionSet{} } +func (m *ConnectionSet) String() string { return proto.CompactTextString(m) } +func (*ConnectionSet) ProtoMessage() {} +func (*ConnectionSet) Descriptor() ([]byte, []int) { + return fileDescriptor_compiler_410033f7fd8cbbd8, []int{0} +} +func (m *ConnectionSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionSet.Unmarshal(m, b) +} +func (m *ConnectionSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionSet.Marshal(b, m, deterministic) +} +func (dst *ConnectionSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionSet.Merge(dst, src) +} +func (m *ConnectionSet) XXX_Size() int { + return xxx_messageInfo_ConnectionSet.Size(m) +} +func (m *ConnectionSet) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionSet.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionSet proto.InternalMessageInfo + +func (m *ConnectionSet) GetDownstream() map[string]*ConnectionSet_IdList { + if m != nil { + return m.Downstream + } + return nil +} + +func (m *ConnectionSet) GetUpstream() map[string]*ConnectionSet_IdList { + if m != nil { + return m.Upstream + } + return nil +} + +type ConnectionSet_IdList struct { + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConnectionSet_IdList) Reset() { *m = ConnectionSet_IdList{} } +func (m *ConnectionSet_IdList) String() string { return proto.CompactTextString(m) } +func (*ConnectionSet_IdList) ProtoMessage() {} +func (*ConnectionSet_IdList) Descriptor() ([]byte, []int) { + return fileDescriptor_compiler_410033f7fd8cbbd8, []int{0, 0} +} +func (m *ConnectionSet_IdList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConnectionSet_IdList.Unmarshal(m, b) +} +func (m *ConnectionSet_IdList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConnectionSet_IdList.Marshal(b, m, deterministic) +} +func (dst *ConnectionSet_IdList) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConnectionSet_IdList.Merge(dst, src) +} +func (m *ConnectionSet_IdList) XXX_Size() int { + return xxx_messageInfo_ConnectionSet_IdList.Size(m) +} +func (m *ConnectionSet_IdList) XXX_DiscardUnknown() { + xxx_messageInfo_ConnectionSet_IdList.DiscardUnknown(m) +} + +var xxx_messageInfo_ConnectionSet_IdList proto.InternalMessageInfo + +func (m *ConnectionSet_IdList) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +type CompiledWorkflow struct { + // Completely contained Workflow Template + Template *WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + Connections *ConnectionSet `protobuf:"bytes,2,opt,name=connections,proto3" json:"connections,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompiledWorkflow) Reset() { *m = CompiledWorkflow{} } +func (m *CompiledWorkflow) String() string { return proto.CompactTextString(m) } +func (*CompiledWorkflow) ProtoMessage() {} +func (*CompiledWorkflow) Descriptor() ([]byte, []int) { + return fileDescriptor_compiler_410033f7fd8cbbd8, []int{1} +} +func (m *CompiledWorkflow) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompiledWorkflow.Unmarshal(m, b) +} +func (m *CompiledWorkflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompiledWorkflow.Marshal(b, m, deterministic) +} +func (dst *CompiledWorkflow) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompiledWorkflow.Merge(dst, src) +} +func (m *CompiledWorkflow) XXX_Size() int { + return xxx_messageInfo_CompiledWorkflow.Size(m) +} +func (m *CompiledWorkflow) XXX_DiscardUnknown() { + xxx_messageInfo_CompiledWorkflow.DiscardUnknown(m) +} + +var xxx_messageInfo_CompiledWorkflow proto.InternalMessageInfo + +func (m *CompiledWorkflow) GetTemplate() *WorkflowTemplate { + if m != nil { + return m.Template + } + return nil +} + +func (m *CompiledWorkflow) GetConnections() *ConnectionSet { + if m != nil { + return m.Connections + } + return nil +} + +// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +type CompiledTask struct { + // Completely contained TaskTemplate + Template *TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompiledTask) Reset() { *m = CompiledTask{} } +func (m *CompiledTask) String() string { return proto.CompactTextString(m) } +func (*CompiledTask) ProtoMessage() {} +func (*CompiledTask) Descriptor() ([]byte, []int) { + return fileDescriptor_compiler_410033f7fd8cbbd8, []int{2} +} +func (m *CompiledTask) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompiledTask.Unmarshal(m, b) +} +func (m *CompiledTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompiledTask.Marshal(b, m, deterministic) +} +func (dst *CompiledTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompiledTask.Merge(dst, src) +} +func (m *CompiledTask) XXX_Size() int { + return xxx_messageInfo_CompiledTask.Size(m) +} +func (m *CompiledTask) XXX_DiscardUnknown() { + xxx_messageInfo_CompiledTask.DiscardUnknown(m) +} + +var xxx_messageInfo_CompiledTask proto.InternalMessageInfo + +func (m *CompiledTask) GetTemplate() *TaskTemplate { + if m != nil { + return m.Template + } + return nil +} + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +// compiled subworkflows. +type CompiledWorkflowClosure struct { + // +required + Primary *CompiledWorkflow `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` + // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + // as an inlined workflow + // +optional + SubWorkflows []*CompiledWorkflow `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` + // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + // +required (atleast 1) + Tasks []*CompiledTask `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CompiledWorkflowClosure) Reset() { *m = CompiledWorkflowClosure{} } +func (m *CompiledWorkflowClosure) String() string { return proto.CompactTextString(m) } +func (*CompiledWorkflowClosure) ProtoMessage() {} +func (*CompiledWorkflowClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_compiler_410033f7fd8cbbd8, []int{3} +} +func (m *CompiledWorkflowClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CompiledWorkflowClosure.Unmarshal(m, b) +} +func (m *CompiledWorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CompiledWorkflowClosure.Marshal(b, m, deterministic) +} +func (dst *CompiledWorkflowClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_CompiledWorkflowClosure.Merge(dst, src) +} +func (m *CompiledWorkflowClosure) XXX_Size() int { + return xxx_messageInfo_CompiledWorkflowClosure.Size(m) +} +func (m *CompiledWorkflowClosure) XXX_DiscardUnknown() { + xxx_messageInfo_CompiledWorkflowClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_CompiledWorkflowClosure proto.InternalMessageInfo + +func (m *CompiledWorkflowClosure) GetPrimary() *CompiledWorkflow { + if m != nil { + return m.Primary + } + return nil +} + +func (m *CompiledWorkflowClosure) GetSubWorkflows() []*CompiledWorkflow { + if m != nil { + return m.SubWorkflows + } + return nil +} + +func (m *CompiledWorkflowClosure) GetTasks() []*CompiledTask { + if m != nil { + return m.Tasks + } + return nil +} + +func init() { + proto.RegisterType((*ConnectionSet)(nil), "flyteidl.core.ConnectionSet") + proto.RegisterMapType((map[string]*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.DownstreamEntry") + proto.RegisterMapType((map[string]*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.UpstreamEntry") + proto.RegisterType((*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.IdList") + proto.RegisterType((*CompiledWorkflow)(nil), "flyteidl.core.CompiledWorkflow") + proto.RegisterType((*CompiledTask)(nil), "flyteidl.core.CompiledTask") + proto.RegisterType((*CompiledWorkflowClosure)(nil), "flyteidl.core.CompiledWorkflowClosure") +} + +func init() { + proto.RegisterFile("flyteidl/core/compiler.proto", fileDescriptor_compiler_410033f7fd8cbbd8) +} + +var fileDescriptor_compiler_410033f7fd8cbbd8 = []byte{ + // 422 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcb, 0xca, 0xd3, 0x40, + 0x14, 0xc7, 0xc9, 0x17, 0xbe, 0xb6, 0x9e, 0x34, 0x58, 0x66, 0x63, 0x4c, 0x0b, 0x86, 0xb8, 0x29, + 0xa2, 0x89, 0xc6, 0x85, 0x56, 0xc1, 0x85, 0xad, 0x8a, 0xd0, 0x55, 0xac, 0x08, 0x6e, 0x34, 0x97, + 0x69, 0x0d, 0x99, 0x64, 0xc2, 0xcc, 0xc4, 0x92, 0x27, 0x70, 0xe9, 0x93, 0xf9, 0x4e, 0x92, 0x2b, + 0x4d, 0x4a, 0x8b, 0x0b, 0x77, 0x2d, 0xe7, 0xf7, 0xbf, 0x1c, 0x26, 0x07, 0x16, 0x7b, 0x52, 0x08, + 0x1c, 0x85, 0xc4, 0x0e, 0x28, 0xc3, 0x76, 0x40, 0x93, 0x2c, 0x22, 0x98, 0x59, 0x19, 0xa3, 0x82, + 0x22, 0xb5, 0x9d, 0x5a, 0xe5, 0x54, 0x1f, 0xc0, 0x47, 0xca, 0xe2, 0x3d, 0xa1, 0xc7, 0x1a, 0xd6, + 0xef, 0xf7, 0xa7, 0xc2, 0xe3, 0x31, 0xaf, 0x47, 0xe6, 0x2f, 0x19, 0xd4, 0x35, 0x4d, 0x53, 0x1c, + 0x88, 0x88, 0xa6, 0x9f, 0xb0, 0x40, 0x5b, 0x80, 0x90, 0x1e, 0x53, 0x2e, 0x18, 0xf6, 0x12, 0x6d, + 0x6c, 0xc8, 0x4b, 0xc5, 0x79, 0x6c, 0xf5, 0xe2, 0xac, 0x9e, 0xc2, 0xda, 0x74, 0xf8, 0xbb, 0x54, + 0xb0, 0xc2, 0x3d, 0xd1, 0xa3, 0xf7, 0x30, 0xc9, 0xb3, 0xc6, 0x6b, 0x52, 0x79, 0x3d, 0xba, 0xea, + 0xf5, 0x39, 0x3b, 0x75, 0xea, 0xb4, 0xba, 0x0e, 0xa3, 0x8f, 0xe1, 0x36, 0xe2, 0x02, 0xcd, 0x40, + 0x8e, 0x42, 0xae, 0x49, 0x86, 0xbc, 0xbc, 0xe3, 0x96, 0x3f, 0x75, 0x1f, 0xee, 0x0e, 0x2a, 0x94, + 0x50, 0x8c, 0x0b, 0x4d, 0x32, 0xa4, 0x12, 0x8a, 0x71, 0x81, 0x56, 0x70, 0xfb, 0xd3, 0x23, 0x39, + 0xd6, 0x6e, 0x0c, 0x69, 0xa9, 0x38, 0x0f, 0xaf, 0xb6, 0xa8, 0xa3, 0xdc, 0x5a, 0xf1, 0xea, 0xe6, + 0xa5, 0xa4, 0x7f, 0x07, 0xb5, 0x57, 0xed, 0xbf, 0x27, 0x98, 0xbf, 0x25, 0x98, 0xad, 0xeb, 0x47, + 0x0e, 0xbf, 0x34, 0xef, 0x87, 0x5e, 0xc3, 0x44, 0xe0, 0x24, 0x23, 0x9e, 0xc0, 0x55, 0x94, 0xe2, + 0x3c, 0x18, 0xd8, 0xb6, 0xe8, 0xae, 0xc1, 0xdc, 0x4e, 0x80, 0xde, 0x80, 0x12, 0x74, 0xa1, 0xbc, + 0xa9, 0xb5, 0xb8, 0x56, 0xcb, 0x3d, 0x15, 0x98, 0x1f, 0x60, 0xda, 0x16, 0xda, 0x79, 0x3c, 0x46, + 0x2f, 0xce, 0xca, 0xcc, 0x07, 0x66, 0x25, 0x76, 0x5e, 0xc4, 0xfc, 0x23, 0xc1, 0xbd, 0xe1, 0x6a, + 0x6b, 0x42, 0x79, 0xce, 0x30, 0x5a, 0xc1, 0x38, 0x63, 0x51, 0xe2, 0xb1, 0xe2, 0xc2, 0x82, 0x43, + 0xa1, 0xdb, 0xf2, 0x68, 0x03, 0x2a, 0xcf, 0xfd, 0x6f, 0xed, 0xc7, 0x5e, 0x6e, 0x28, 0xff, 0x8b, + 0xc1, 0x94, 0xe7, 0x7e, 0xfb, 0x87, 0xa3, 0x67, 0x70, 0x5b, 0x1d, 0x84, 0x26, 0x57, 0xea, 0xf9, + 0x05, 0x75, 0xb9, 0x9a, 0x5b, 0x93, 0x6f, 0x9d, 0xaf, 0x4f, 0x0f, 0x91, 0xf8, 0x91, 0xfb, 0x56, + 0x40, 0x13, 0x9b, 0x14, 0x7b, 0x61, 0x77, 0x17, 0x76, 0xc0, 0xa9, 0x9d, 0xf9, 0x4f, 0x0e, 0xd4, + 0xee, 0x1d, 0x9d, 0x3f, 0xaa, 0xee, 0xed, 0xf9, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x57, + 0x8f, 0xc6, 0xd7, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go new file mode 100644 index 0000000000..a1d7e8516a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.validate.go @@ -0,0 +1,437 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/compiler.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on ConnectionSet with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ConnectionSet) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Downstream + + // no validation rules for Upstream + + return nil +} + +// ConnectionSetValidationError is the validation error returned by +// ConnectionSet.Validate if the designated constraints aren't met. +type ConnectionSetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionSetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionSetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionSetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionSetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionSetValidationError) ErrorName() string { return "ConnectionSetValidationError" } + +// Error satisfies the builtin error interface +func (e ConnectionSetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sConnectionSet.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionSetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionSetValidationError{} + +// Validate checks the field values on CompiledWorkflow with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *CompiledWorkflow) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetConnections()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowValidationError{ + field: "Connections", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CompiledWorkflowValidationError is the validation error returned by +// CompiledWorkflow.Validate if the designated constraints aren't met. +type CompiledWorkflowValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompiledWorkflowValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompiledWorkflowValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompiledWorkflowValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompiledWorkflowValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompiledWorkflowValidationError) ErrorName() string { return "CompiledWorkflowValidationError" } + +// Error satisfies the builtin error interface +func (e CompiledWorkflowValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCompiledWorkflow.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompiledWorkflowValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompiledWorkflowValidationError{} + +// Validate checks the field values on CompiledTask with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CompiledTask) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTemplate()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledTaskValidationError{ + field: "Template", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// CompiledTaskValidationError is the validation error returned by +// CompiledTask.Validate if the designated constraints aren't met. +type CompiledTaskValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompiledTaskValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompiledTaskValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompiledTaskValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompiledTaskValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompiledTaskValidationError) ErrorName() string { return "CompiledTaskValidationError" } + +// Error satisfies the builtin error interface +func (e CompiledTaskValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCompiledTask.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompiledTaskValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompiledTaskValidationError{} + +// Validate checks the field values on CompiledWorkflowClosure with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CompiledWorkflowClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPrimary()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowClosureValidationError{ + field: "Primary", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetSubWorkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowClosureValidationError{ + field: fmt.Sprintf("SubWorkflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CompiledWorkflowClosureValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CompiledWorkflowClosureValidationError is the validation error returned by +// CompiledWorkflowClosure.Validate if the designated constraints aren't met. +type CompiledWorkflowClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CompiledWorkflowClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CompiledWorkflowClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CompiledWorkflowClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CompiledWorkflowClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CompiledWorkflowClosureValidationError) ErrorName() string { + return "CompiledWorkflowClosureValidationError" +} + +// Error satisfies the builtin error interface +func (e CompiledWorkflowClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCompiledWorkflowClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CompiledWorkflowClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CompiledWorkflowClosureValidationError{} + +// Validate checks the field values on ConnectionSet_IdList with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ConnectionSet_IdList) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// ConnectionSet_IdListValidationError is the validation error returned by +// ConnectionSet_IdList.Validate if the designated constraints aren't met. +type ConnectionSet_IdListValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConnectionSet_IdListValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConnectionSet_IdListValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConnectionSet_IdListValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConnectionSet_IdListValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConnectionSet_IdListValidationError) ErrorName() string { + return "ConnectionSet_IdListValidationError" +} + +// Error satisfies the builtin error interface +func (e ConnectionSet_IdListValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sConnectionSet_IdList.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConnectionSet_IdListValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConnectionSet_IdListValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json new file mode 100644 index 0000000000..872bee4245 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/compiler.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go new file mode 100644 index 0000000000..e3432e6847 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go @@ -0,0 +1,529 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/condition.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Binary Operator for each expression +type ComparisonExpression_Operator int32 + +const ( + ComparisonExpression_EQ ComparisonExpression_Operator = 0 + ComparisonExpression_NEQ ComparisonExpression_Operator = 1 + // Greater Than + ComparisonExpression_GT ComparisonExpression_Operator = 2 + ComparisonExpression_GTE ComparisonExpression_Operator = 3 + // Less Than + ComparisonExpression_LT ComparisonExpression_Operator = 4 + ComparisonExpression_LTE ComparisonExpression_Operator = 5 +) + +var ComparisonExpression_Operator_name = map[int32]string{ + 0: "EQ", + 1: "NEQ", + 2: "GT", + 3: "GTE", + 4: "LT", + 5: "LTE", +} +var ComparisonExpression_Operator_value = map[string]int32{ + "EQ": 0, + "NEQ": 1, + "GT": 2, + "GTE": 3, + "LT": 4, + "LTE": 5, +} + +func (x ComparisonExpression_Operator) String() string { + return proto.EnumName(ComparisonExpression_Operator_name, int32(x)) +} +func (ComparisonExpression_Operator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_condition_5fe109419dcb44b0, []int{0, 0} +} + +// Nested conditions. They can be conjoined using AND / OR +// Order of evaluation is not important as the operators are Commutative +type ConjunctionExpression_LogicalOperator int32 + +const ( + // Conjunction + ConjunctionExpression_AND ConjunctionExpression_LogicalOperator = 0 + ConjunctionExpression_OR ConjunctionExpression_LogicalOperator = 1 +) + +var ConjunctionExpression_LogicalOperator_name = map[int32]string{ + 0: "AND", + 1: "OR", +} +var ConjunctionExpression_LogicalOperator_value = map[string]int32{ + "AND": 0, + "OR": 1, +} + +func (x ConjunctionExpression_LogicalOperator) String() string { + return proto.EnumName(ConjunctionExpression_LogicalOperator_name, int32(x)) +} +func (ConjunctionExpression_LogicalOperator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_condition_5fe109419dcb44b0, []int{3, 0} +} + +// 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. +type ComparisonExpression struct { + Operator ComparisonExpression_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ComparisonExpression_Operator" json:"operator,omitempty"` + LeftValue *Operand `protobuf:"bytes,2,opt,name=left_value,json=leftValue,proto3" json:"left_value,omitempty"` + RightValue *Operand `protobuf:"bytes,3,opt,name=right_value,json=rightValue,proto3" json:"right_value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ComparisonExpression) Reset() { *m = ComparisonExpression{} } +func (m *ComparisonExpression) String() string { return proto.CompactTextString(m) } +func (*ComparisonExpression) ProtoMessage() {} +func (*ComparisonExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_condition_5fe109419dcb44b0, []int{0} +} +func (m *ComparisonExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ComparisonExpression.Unmarshal(m, b) +} +func (m *ComparisonExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ComparisonExpression.Marshal(b, m, deterministic) +} +func (dst *ComparisonExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_ComparisonExpression.Merge(dst, src) +} +func (m *ComparisonExpression) XXX_Size() int { + return xxx_messageInfo_ComparisonExpression.Size(m) +} +func (m *ComparisonExpression) XXX_DiscardUnknown() { + xxx_messageInfo_ComparisonExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_ComparisonExpression proto.InternalMessageInfo + +func (m *ComparisonExpression) GetOperator() ComparisonExpression_Operator { + if m != nil { + return m.Operator + } + return ComparisonExpression_EQ +} + +func (m *ComparisonExpression) GetLeftValue() *Operand { + if m != nil { + return m.LeftValue + } + return nil +} + +func (m *ComparisonExpression) GetRightValue() *Operand { + if m != nil { + return m.RightValue + } + return nil +} + +// Defines an operand to a comparison expression. +type Operand struct { + // Types that are valid to be assigned to Val: + // *Operand_Primitive + // *Operand_Var + Val isOperand_Val `protobuf_oneof:"val"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Operand) Reset() { *m = Operand{} } +func (m *Operand) String() string { return proto.CompactTextString(m) } +func (*Operand) ProtoMessage() {} +func (*Operand) Descriptor() ([]byte, []int) { + return fileDescriptor_condition_5fe109419dcb44b0, []int{1} +} +func (m *Operand) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Operand.Unmarshal(m, b) +} +func (m *Operand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Operand.Marshal(b, m, deterministic) +} +func (dst *Operand) XXX_Merge(src proto.Message) { + xxx_messageInfo_Operand.Merge(dst, src) +} +func (m *Operand) XXX_Size() int { + return xxx_messageInfo_Operand.Size(m) +} +func (m *Operand) XXX_DiscardUnknown() { + xxx_messageInfo_Operand.DiscardUnknown(m) +} + +var xxx_messageInfo_Operand proto.InternalMessageInfo + +type isOperand_Val interface { + isOperand_Val() +} + +type Operand_Primitive struct { + Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type Operand_Var struct { + Var string `protobuf:"bytes,2,opt,name=var,proto3,oneof"` +} + +func (*Operand_Primitive) isOperand_Val() {} + +func (*Operand_Var) isOperand_Val() {} + +func (m *Operand) GetVal() isOperand_Val { + if m != nil { + return m.Val + } + return nil +} + +func (m *Operand) GetPrimitive() *Primitive { + if x, ok := m.GetVal().(*Operand_Primitive); ok { + return x.Primitive + } + return nil +} + +func (m *Operand) GetVar() string { + if x, ok := m.GetVal().(*Operand_Var); ok { + return x.Var + } + return "" +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Operand) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Operand_OneofMarshaler, _Operand_OneofUnmarshaler, _Operand_OneofSizer, []interface{}{ + (*Operand_Primitive)(nil), + (*Operand_Var)(nil), + } +} + +func _Operand_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Operand) + // val + switch x := m.Val.(type) { + case *Operand_Primitive: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Primitive); err != nil { + return err + } + case *Operand_Var: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Var) + case nil: + default: + return fmt.Errorf("Operand.Val has unexpected type %T", x) + } + return nil +} + +func _Operand_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Operand) + switch tag { + case 1: // val.primitive + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Primitive) + err := b.DecodeMessage(msg) + m.Val = &Operand_Primitive{msg} + return true, err + case 2: // val.var + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Val = &Operand_Var{x} + return true, err + default: + return false, nil + } +} + +func _Operand_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Operand) + // val + switch x := m.Val.(type) { + case *Operand_Primitive: + s := proto.Size(x.Primitive) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Operand_Var: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Var))) + n += len(x.Var) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. +// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +type BooleanExpression struct { + // Types that are valid to be assigned to Expr: + // *BooleanExpression_Conjunction + // *BooleanExpression_Comparison + Expr isBooleanExpression_Expr `protobuf_oneof:"expr"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BooleanExpression) Reset() { *m = BooleanExpression{} } +func (m *BooleanExpression) String() string { return proto.CompactTextString(m) } +func (*BooleanExpression) ProtoMessage() {} +func (*BooleanExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_condition_5fe109419dcb44b0, []int{2} +} +func (m *BooleanExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BooleanExpression.Unmarshal(m, b) +} +func (m *BooleanExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BooleanExpression.Marshal(b, m, deterministic) +} +func (dst *BooleanExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_BooleanExpression.Merge(dst, src) +} +func (m *BooleanExpression) XXX_Size() int { + return xxx_messageInfo_BooleanExpression.Size(m) +} +func (m *BooleanExpression) XXX_DiscardUnknown() { + xxx_messageInfo_BooleanExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_BooleanExpression proto.InternalMessageInfo + +type isBooleanExpression_Expr interface { + isBooleanExpression_Expr() +} + +type BooleanExpression_Conjunction struct { + Conjunction *ConjunctionExpression `protobuf:"bytes,1,opt,name=conjunction,proto3,oneof"` +} + +type BooleanExpression_Comparison struct { + Comparison *ComparisonExpression `protobuf:"bytes,2,opt,name=comparison,proto3,oneof"` +} + +func (*BooleanExpression_Conjunction) isBooleanExpression_Expr() {} + +func (*BooleanExpression_Comparison) isBooleanExpression_Expr() {} + +func (m *BooleanExpression) GetExpr() isBooleanExpression_Expr { + if m != nil { + return m.Expr + } + return nil +} + +func (m *BooleanExpression) GetConjunction() *ConjunctionExpression { + if x, ok := m.GetExpr().(*BooleanExpression_Conjunction); ok { + return x.Conjunction + } + return nil +} + +func (m *BooleanExpression) GetComparison() *ComparisonExpression { + if x, ok := m.GetExpr().(*BooleanExpression_Comparison); ok { + return x.Comparison + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*BooleanExpression) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _BooleanExpression_OneofMarshaler, _BooleanExpression_OneofUnmarshaler, _BooleanExpression_OneofSizer, []interface{}{ + (*BooleanExpression_Conjunction)(nil), + (*BooleanExpression_Comparison)(nil), + } +} + +func _BooleanExpression_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BooleanExpression) + // expr + switch x := m.Expr.(type) { + case *BooleanExpression_Conjunction: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Conjunction); err != nil { + return err + } + case *BooleanExpression_Comparison: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Comparison); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("BooleanExpression.Expr has unexpected type %T", x) + } + return nil +} + +func _BooleanExpression_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*BooleanExpression) + switch tag { + case 1: // expr.conjunction + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ConjunctionExpression) + err := b.DecodeMessage(msg) + m.Expr = &BooleanExpression_Conjunction{msg} + return true, err + case 2: // expr.comparison + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ComparisonExpression) + err := b.DecodeMessage(msg) + m.Expr = &BooleanExpression_Comparison{msg} + return true, err + default: + return false, nil + } +} + +func _BooleanExpression_OneofSizer(msg proto.Message) (n int) { + m := msg.(*BooleanExpression) + // expr + switch x := m.Expr.(type) { + case *BooleanExpression_Conjunction: + s := proto.Size(x.Conjunction) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BooleanExpression_Comparison: + s := proto.Size(x.Comparison) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Defines a conjunction expression of two boolean expressions. +type ConjunctionExpression struct { + Operator ConjunctionExpression_LogicalOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ConjunctionExpression_LogicalOperator" json:"operator,omitempty"` + LeftExpression *BooleanExpression `protobuf:"bytes,2,opt,name=left_expression,json=leftExpression,proto3" json:"left_expression,omitempty"` + RightExpression *BooleanExpression `protobuf:"bytes,3,opt,name=right_expression,json=rightExpression,proto3" json:"right_expression,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ConjunctionExpression) Reset() { *m = ConjunctionExpression{} } +func (m *ConjunctionExpression) String() string { return proto.CompactTextString(m) } +func (*ConjunctionExpression) ProtoMessage() {} +func (*ConjunctionExpression) Descriptor() ([]byte, []int) { + return fileDescriptor_condition_5fe109419dcb44b0, []int{3} +} +func (m *ConjunctionExpression) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ConjunctionExpression.Unmarshal(m, b) +} +func (m *ConjunctionExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ConjunctionExpression.Marshal(b, m, deterministic) +} +func (dst *ConjunctionExpression) XXX_Merge(src proto.Message) { + xxx_messageInfo_ConjunctionExpression.Merge(dst, src) +} +func (m *ConjunctionExpression) XXX_Size() int { + return xxx_messageInfo_ConjunctionExpression.Size(m) +} +func (m *ConjunctionExpression) XXX_DiscardUnknown() { + xxx_messageInfo_ConjunctionExpression.DiscardUnknown(m) +} + +var xxx_messageInfo_ConjunctionExpression proto.InternalMessageInfo + +func (m *ConjunctionExpression) GetOperator() ConjunctionExpression_LogicalOperator { + if m != nil { + return m.Operator + } + return ConjunctionExpression_AND +} + +func (m *ConjunctionExpression) GetLeftExpression() *BooleanExpression { + if m != nil { + return m.LeftExpression + } + return nil +} + +func (m *ConjunctionExpression) GetRightExpression() *BooleanExpression { + if m != nil { + return m.RightExpression + } + return nil +} + +func init() { + proto.RegisterType((*ComparisonExpression)(nil), "flyteidl.core.ComparisonExpression") + proto.RegisterType((*Operand)(nil), "flyteidl.core.Operand") + proto.RegisterType((*BooleanExpression)(nil), "flyteidl.core.BooleanExpression") + proto.RegisterType((*ConjunctionExpression)(nil), "flyteidl.core.ConjunctionExpression") + proto.RegisterEnum("flyteidl.core.ComparisonExpression_Operator", ComparisonExpression_Operator_name, ComparisonExpression_Operator_value) + proto.RegisterEnum("flyteidl.core.ConjunctionExpression_LogicalOperator", ConjunctionExpression_LogicalOperator_name, ConjunctionExpression_LogicalOperator_value) +} + +func init() { + proto.RegisterFile("flyteidl/core/condition.proto", fileDescriptor_condition_5fe109419dcb44b0) +} + +var fileDescriptor_condition_5fe109419dcb44b0 = []byte{ + // 462 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0xfd, 0xa7, 0x4d, 0x9b, 0x89, 0x68, 0x96, 0x15, 0xa0, 0x08, 0x81, 0x14, 0x19, 0x0e, + 0x3d, 0x80, 0x8d, 0x02, 0x08, 0x2e, 0x1c, 0x08, 0x58, 0x35, 0x22, 0xea, 0x1f, 0x2b, 0xe2, 0xc0, + 0x01, 0xe4, 0x38, 0x1b, 0x77, 0xd1, 0xc6, 0x63, 0x6d, 0x36, 0x51, 0xfb, 0x14, 0x3c, 0x05, 0x37, + 0x1e, 0x12, 0xed, 0xd6, 0x71, 0x12, 0x27, 0x42, 0x39, 0x7a, 0xf6, 0xfb, 0xcd, 0x7e, 0x9e, 0xfd, + 0x06, 0x9e, 0x4e, 0xc4, 0xad, 0x62, 0x7c, 0x2c, 0x82, 0x14, 0x25, 0x0b, 0x52, 0xcc, 0xc7, 0x5c, + 0x71, 0xcc, 0xfd, 0x42, 0xa2, 0x42, 0x7a, 0x6f, 0x79, 0xec, 0xeb, 0xe3, 0xc7, 0x4f, 0x36, 0xd5, + 0x82, 0x2b, 0x26, 0x13, 0x31, 0xbb, 0x13, 0x7b, 0xbf, 0x1d, 0x78, 0xf0, 0x09, 0xa7, 0x45, 0x22, + 0xf9, 0x0c, 0xf3, 0xf0, 0xa6, 0x90, 0x6c, 0x36, 0xe3, 0x98, 0xd3, 0x08, 0x8e, 0xb1, 0x60, 0x32, + 0x51, 0x28, 0x3b, 0x76, 0xd7, 0x3e, 0x3d, 0xe9, 0xbd, 0xf0, 0x37, 0x1a, 0xfb, 0xbb, 0x30, 0xff, + 0xa2, 0x64, 0xe2, 0x8a, 0xa6, 0x6f, 0x01, 0x04, 0x9b, 0xa8, 0x9f, 0x8b, 0x44, 0xcc, 0x59, 0xc7, + 0xe9, 0xda, 0xa7, 0xad, 0xde, 0xa3, 0x5a, 0x2f, 0x83, 0xe5, 0xe3, 0xb8, 0xa9, 0x95, 0xdf, 0xb4, + 0x90, 0xbe, 0x83, 0x96, 0xe4, 0xd9, 0xf5, 0x92, 0x73, 0xff, 0xcb, 0x81, 0x91, 0x1a, 0xd0, 0xfb, + 0x00, 0xc7, 0x4b, 0x17, 0xb4, 0x01, 0x4e, 0x78, 0x45, 0x2c, 0x7a, 0x04, 0xee, 0x79, 0x78, 0x45, + 0x6c, 0x5d, 0x38, 0x1b, 0x12, 0x47, 0x17, 0xce, 0x86, 0x21, 0x71, 0x75, 0x61, 0x30, 0x24, 0x07, + 0xba, 0x30, 0x18, 0x86, 0xe4, 0xd0, 0xfb, 0x01, 0x47, 0x65, 0x57, 0xfa, 0x1e, 0x9a, 0x85, 0xe4, + 0x53, 0xae, 0xf8, 0x82, 0x99, 0x21, 0xb4, 0x7a, 0x9d, 0x9a, 0x81, 0xcb, 0xe5, 0x79, 0x64, 0xc5, + 0x2b, 0x31, 0xa5, 0xe0, 0x2e, 0x12, 0x69, 0x7e, 0xb6, 0x19, 0x59, 0xb1, 0xfe, 0xe8, 0x1f, 0xea, + 0x9a, 0xf0, 0xfe, 0xda, 0x70, 0xbf, 0x8f, 0x28, 0x58, 0xb2, 0x39, 0xee, 0x56, 0x8a, 0xf9, 0xaf, + 0x79, 0x9e, 0xea, 0x97, 0x2c, 0x2f, 0x7b, 0xbe, 0x35, 0xf1, 0x4a, 0xb1, 0x42, 0x23, 0x2b, 0x5e, + 0x47, 0x69, 0x08, 0x90, 0x56, 0x2f, 0x53, 0x8e, 0xfb, 0xd9, 0x1e, 0x4f, 0x17, 0x59, 0xf1, 0x1a, + 0xd8, 0x6f, 0xc0, 0x01, 0xbb, 0x29, 0xa4, 0xf7, 0xc7, 0x81, 0x87, 0x3b, 0xef, 0xa5, 0x97, 0x5b, + 0x09, 0x79, 0xb3, 0x8f, 0x5f, 0x7f, 0x80, 0x19, 0x4f, 0x13, 0xb1, 0x23, 0x29, 0x5f, 0xa0, 0x6d, + 0x92, 0xc2, 0x2a, 0x71, 0xe9, 0xbf, 0x5b, 0x6b, 0xbc, 0x35, 0xbf, 0xf8, 0x44, 0x83, 0x6b, 0xe6, + 0xbe, 0x02, 0xb9, 0x4b, 0xcf, 0x5a, 0x2f, 0x77, 0xcf, 0x5e, 0x6d, 0x43, 0xae, 0x0a, 0x9e, 0x07, + 0xed, 0x9a, 0x69, 0x1d, 0x97, 0x8f, 0xe7, 0x9f, 0x89, 0xa5, 0xf3, 0x73, 0x11, 0x13, 0xbb, 0xdf, + 0xfb, 0xfe, 0x2a, 0xe3, 0xea, 0x7a, 0x3e, 0xf2, 0x53, 0x9c, 0x06, 0xe2, 0x76, 0xa2, 0x82, 0x6a, + 0xf1, 0x32, 0x96, 0x07, 0xc5, 0xe8, 0x65, 0x86, 0xc1, 0xc6, 0x2e, 0x8e, 0x1a, 0x66, 0x07, 0x5f, + 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x67, 0x4b, 0xa0, 0x12, 0xd1, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go new file mode 100644 index 0000000000..e2c61837f3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.validate.go @@ -0,0 +1,390 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/condition.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on ComparisonExpression with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ComparisonExpression) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Operator + + if v, ok := interface{}(m.GetLeftValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ComparisonExpressionValidationError{ + field: "LeftValue", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRightValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ComparisonExpressionValidationError{ + field: "RightValue", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ComparisonExpressionValidationError is the validation error returned by +// ComparisonExpression.Validate if the designated constraints aren't met. +type ComparisonExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ComparisonExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ComparisonExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ComparisonExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ComparisonExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ComparisonExpressionValidationError) ErrorName() string { + return "ComparisonExpressionValidationError" +} + +// Error satisfies the builtin error interface +func (e ComparisonExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sComparisonExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ComparisonExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ComparisonExpressionValidationError{} + +// Validate checks the field values on Operand with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Operand) Validate() error { + if m == nil { + return nil + } + + switch m.Val.(type) { + + case *Operand_Primitive: + + if v, ok := interface{}(m.GetPrimitive()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return OperandValidationError{ + field: "Primitive", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Operand_Var: + // no validation rules for Var + + } + + return nil +} + +// OperandValidationError is the validation error returned by Operand.Validate +// if the designated constraints aren't met. +type OperandValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OperandValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OperandValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OperandValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OperandValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OperandValidationError) ErrorName() string { return "OperandValidationError" } + +// Error satisfies the builtin error interface +func (e OperandValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sOperand.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OperandValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OperandValidationError{} + +// Validate checks the field values on BooleanExpression with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *BooleanExpression) Validate() error { + if m == nil { + return nil + } + + switch m.Expr.(type) { + + case *BooleanExpression_Conjunction: + + if v, ok := interface{}(m.GetConjunction()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BooleanExpressionValidationError{ + field: "Conjunction", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BooleanExpression_Comparison: + + if v, ok := interface{}(m.GetComparison()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BooleanExpressionValidationError{ + field: "Comparison", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BooleanExpressionValidationError is the validation error returned by +// BooleanExpression.Validate if the designated constraints aren't met. +type BooleanExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BooleanExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BooleanExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BooleanExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BooleanExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BooleanExpressionValidationError) ErrorName() string { + return "BooleanExpressionValidationError" +} + +// Error satisfies the builtin error interface +func (e BooleanExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBooleanExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BooleanExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BooleanExpressionValidationError{} + +// Validate checks the field values on ConjunctionExpression with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ConjunctionExpression) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Operator + + if v, ok := interface{}(m.GetLeftExpression()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConjunctionExpressionValidationError{ + field: "LeftExpression", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRightExpression()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConjunctionExpressionValidationError{ + field: "RightExpression", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ConjunctionExpressionValidationError is the validation error returned by +// ConjunctionExpression.Validate if the designated constraints aren't met. +type ConjunctionExpressionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ConjunctionExpressionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ConjunctionExpressionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ConjunctionExpressionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ConjunctionExpressionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ConjunctionExpressionValidationError) ErrorName() string { + return "ConjunctionExpressionValidationError" +} + +// Error satisfies the builtin error interface +func (e ConjunctionExpressionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sConjunctionExpression.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ConjunctionExpressionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ConjunctionExpressionValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json new file mode 100644 index 0000000000..003c697275 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/condition.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go new file mode 100644 index 0000000000..41d023b5fa --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go @@ -0,0 +1,130 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/dynamic_job.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Describes a set of tasks to execute and how the final outputs are produced. +type DynamicJobSpec struct { + // A collection of nodes to execute. + Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` + // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + // specified, is the count of nodes repeated field. + MinSuccesses int64 `protobuf:"varint,2,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"` + // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + // in bindings should have the generated id for the subtask. + Outputs []*Binding `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` + // [Optional] A complete list of task specs referenced in nodes. + Tasks []*TaskTemplate `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` + // [Optional] A complete list of task specs referenced in nodes. + Subworkflows []*WorkflowTemplate `protobuf:"bytes,5,rep,name=subworkflows,proto3" json:"subworkflows,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DynamicJobSpec) Reset() { *m = DynamicJobSpec{} } +func (m *DynamicJobSpec) String() string { return proto.CompactTextString(m) } +func (*DynamicJobSpec) ProtoMessage() {} +func (*DynamicJobSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_dynamic_job_841bc62c5d043ab0, []int{0} +} +func (m *DynamicJobSpec) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DynamicJobSpec.Unmarshal(m, b) +} +func (m *DynamicJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DynamicJobSpec.Marshal(b, m, deterministic) +} +func (dst *DynamicJobSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DynamicJobSpec.Merge(dst, src) +} +func (m *DynamicJobSpec) XXX_Size() int { + return xxx_messageInfo_DynamicJobSpec.Size(m) +} +func (m *DynamicJobSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DynamicJobSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DynamicJobSpec proto.InternalMessageInfo + +func (m *DynamicJobSpec) GetNodes() []*Node { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *DynamicJobSpec) GetMinSuccesses() int64 { + if m != nil { + return m.MinSuccesses + } + return 0 +} + +func (m *DynamicJobSpec) GetOutputs() []*Binding { + if m != nil { + return m.Outputs + } + return nil +} + +func (m *DynamicJobSpec) GetTasks() []*TaskTemplate { + if m != nil { + return m.Tasks + } + return nil +} + +func (m *DynamicJobSpec) GetSubworkflows() []*WorkflowTemplate { + if m != nil { + return m.Subworkflows + } + return nil +} + +func init() { + proto.RegisterType((*DynamicJobSpec)(nil), "flyteidl.core.DynamicJobSpec") +} + +func init() { + proto.RegisterFile("flyteidl/core/dynamic_job.proto", fileDescriptor_dynamic_job_841bc62c5d043ab0) +} + +var fileDescriptor_dynamic_job_841bc62c5d043ab0 = []byte{ + // 283 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc3, 0x40, + 0x10, 0x86, 0x69, 0x6b, 0x15, 0xd6, 0xd6, 0xc3, 0x0a, 0x12, 0xab, 0xd0, 0xa2, 0x97, 0x7a, 0x30, + 0x5b, 0xeb, 0x1b, 0x54, 0x4f, 0x1e, 0x3c, 0xa4, 0x05, 0xc1, 0x4b, 0xc9, 0x6e, 0xa6, 0x71, 0xcd, + 0x66, 0x27, 0x64, 0x36, 0x94, 0xbc, 0x82, 0x4f, 0x2d, 0x26, 0x4d, 0x21, 0xc1, 0xeb, 0xfe, 0xdf, + 0x37, 0x3b, 0xf3, 0xb3, 0xe9, 0xce, 0x94, 0x0e, 0x74, 0x64, 0x84, 0xc2, 0x1c, 0x44, 0x54, 0xda, + 0x30, 0xd5, 0x6a, 0xfb, 0x8d, 0xd2, 0xcf, 0x72, 0x74, 0xc8, 0xc7, 0x0d, 0xe0, 0xff, 0x01, 0x93, + 0xeb, 0x36, 0xef, 0x42, 0x4a, 0xa8, 0x26, 0x27, 0xb7, 0xed, 0x68, 0x8f, 0x79, 0xb2, 0x33, 0xb8, + 0xff, 0x3f, 0x35, 0xda, 0x41, 0x1e, 0x9a, 0x83, 0x7b, 0xf7, 0xd3, 0x67, 0x17, 0xaf, 0xf5, 0xdf, + 0x6f, 0x28, 0xd7, 0x19, 0x28, 0xfe, 0xc0, 0x86, 0x16, 0x23, 0x20, 0xaf, 0x37, 0x1b, 0xcc, 0xcf, + 0x97, 0x97, 0x7e, 0x6b, 0x11, 0xff, 0x1d, 0x23, 0x08, 0x6a, 0x82, 0xdf, 0xb3, 0x71, 0xaa, 0xed, + 0x96, 0x0a, 0xa5, 0x80, 0x08, 0xc8, 0xeb, 0xcf, 0x7a, 0xf3, 0x41, 0x30, 0x4a, 0xb5, 0x5d, 0x37, + 0x6f, 0x7c, 0xc1, 0xce, 0xb0, 0x70, 0x59, 0xe1, 0xc8, 0x1b, 0x54, 0x13, 0xaf, 0x3a, 0x13, 0x57, + 0xda, 0x46, 0xda, 0xc6, 0x41, 0x83, 0xf1, 0x27, 0x36, 0xac, 0xee, 0xf3, 0x4e, 0x2a, 0xfe, 0xa6, + 0xc3, 0x6f, 0x42, 0x4a, 0x36, 0x90, 0x66, 0x26, 0x74, 0x10, 0xd4, 0x24, 0x7f, 0x61, 0x23, 0x2a, + 0x64, 0x73, 0x3a, 0x79, 0xc3, 0xca, 0x9c, 0x76, 0xcc, 0x8f, 0x43, 0x7e, 0xb4, 0x5b, 0xd2, 0x6a, + 0xf9, 0xb9, 0x88, 0xb5, 0xfb, 0x2a, 0xa4, 0xaf, 0x30, 0x15, 0xa6, 0xdc, 0x39, 0x71, 0x2c, 0x2f, + 0x06, 0x2b, 0x32, 0xf9, 0x18, 0xa3, 0x68, 0xf5, 0x29, 0x4f, 0xab, 0x1e, 0x9f, 0x7f, 0x03, 0x00, + 0x00, 0xff, 0xff, 0xe0, 0xae, 0x95, 0xbb, 0xd0, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go new file mode 100644 index 0000000000..52835dfe55 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.validate.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/dynamic_job.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on DynamicJobSpec with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *DynamicJobSpec) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetNodes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Nodes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + // no validation rules for MinSuccesses + + for idx, item := range m.GetOutputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Outputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetSubworkflows() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return DynamicJobSpecValidationError{ + field: fmt.Sprintf("Subworkflows[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// DynamicJobSpecValidationError is the validation error returned by +// DynamicJobSpec.Validate if the designated constraints aren't met. +type DynamicJobSpecValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e DynamicJobSpecValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e DynamicJobSpecValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e DynamicJobSpecValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e DynamicJobSpecValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e DynamicJobSpecValidationError) ErrorName() string { return "DynamicJobSpecValidationError" } + +// Error satisfies the builtin error interface +func (e DynamicJobSpecValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sDynamicJobSpec.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = DynamicJobSpecValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = DynamicJobSpecValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json new file mode 100644 index 0000000000..7b0edff585 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/dynamic_job.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go new file mode 100644 index 0000000000..57cc0869d6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go @@ -0,0 +1,171 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/errors.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Defines a generic error type that dictates the behavior of the retry strategy. +type ContainerError_Kind int32 + +const ( + ContainerError_NON_RECOVERABLE ContainerError_Kind = 0 + ContainerError_RECOVERABLE ContainerError_Kind = 1 +) + +var ContainerError_Kind_name = map[int32]string{ + 0: "NON_RECOVERABLE", + 1: "RECOVERABLE", +} +var ContainerError_Kind_value = map[string]int32{ + "NON_RECOVERABLE": 0, + "RECOVERABLE": 1, +} + +func (x ContainerError_Kind) String() string { + return proto.EnumName(ContainerError_Kind_name, int32(x)) +} +func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_errors_33f047924d6d3f90, []int{0, 0} +} + +// Error message to propagate detailed errors from container executions to the execution +// engine. +type ContainerError struct { + // A simplified code for errors, so that we can provide a glossary of all possible errors. + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // A detailed error message. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl.core.ContainerError_Kind" json:"kind,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContainerError) Reset() { *m = ContainerError{} } +func (m *ContainerError) String() string { return proto.CompactTextString(m) } +func (*ContainerError) ProtoMessage() {} +func (*ContainerError) Descriptor() ([]byte, []int) { + return fileDescriptor_errors_33f047924d6d3f90, []int{0} +} +func (m *ContainerError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContainerError.Unmarshal(m, b) +} +func (m *ContainerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContainerError.Marshal(b, m, deterministic) +} +func (dst *ContainerError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerError.Merge(dst, src) +} +func (m *ContainerError) XXX_Size() int { + return xxx_messageInfo_ContainerError.Size(m) +} +func (m *ContainerError) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerError.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerError proto.InternalMessageInfo + +func (m *ContainerError) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *ContainerError) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *ContainerError) GetKind() ContainerError_Kind { + if m != nil { + return m.Kind + } + return ContainerError_NON_RECOVERABLE +} + +// Defines the errors.pb file format the container can produce to communicate +// failure reasons to the execution engine. +type ErrorDocument struct { + // The error raised during execution. + Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorDocument) Reset() { *m = ErrorDocument{} } +func (m *ErrorDocument) String() string { return proto.CompactTextString(m) } +func (*ErrorDocument) ProtoMessage() {} +func (*ErrorDocument) Descriptor() ([]byte, []int) { + return fileDescriptor_errors_33f047924d6d3f90, []int{1} +} +func (m *ErrorDocument) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ErrorDocument.Unmarshal(m, b) +} +func (m *ErrorDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ErrorDocument.Marshal(b, m, deterministic) +} +func (dst *ErrorDocument) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorDocument.Merge(dst, src) +} +func (m *ErrorDocument) XXX_Size() int { + return xxx_messageInfo_ErrorDocument.Size(m) +} +func (m *ErrorDocument) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorDocument.DiscardUnknown(m) +} + +var xxx_messageInfo_ErrorDocument proto.InternalMessageInfo + +func (m *ErrorDocument) GetError() *ContainerError { + if m != nil { + return m.Error + } + return nil +} + +func init() { + proto.RegisterType((*ContainerError)(nil), "flyteidl.core.ContainerError") + proto.RegisterType((*ErrorDocument)(nil), "flyteidl.core.ErrorDocument") + proto.RegisterEnum("flyteidl.core.ContainerError_Kind", ContainerError_Kind_name, ContainerError_Kind_value) +} + +func init() { proto.RegisterFile("flyteidl/core/errors.proto", fileDescriptor_errors_33f047924d6d3f90) } + +var fileDescriptor_errors_33f047924d6d3f90 = []byte{ + // 245 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0x2d, 0x2a, 0xca, 0x2f, 0x2a, + 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xc9, 0xe9, 0x81, 0xe4, 0x94, 0x96, 0x30, + 0x72, 0xf1, 0x39, 0xe7, 0xe7, 0x95, 0x24, 0x66, 0xe6, 0xa5, 0x16, 0xb9, 0x82, 0x14, 0x0a, 0x09, + 0x71, 0xb1, 0x24, 0xe7, 0xa7, 0xa4, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06, 0x81, 0xd9, 0x42, + 0x12, 0x5c, 0xec, 0xb9, 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0xa9, 0x12, 0x4c, 0x60, 0x61, 0x18, 0x57, + 0xc8, 0x8c, 0x8b, 0x25, 0x3b, 0x33, 0x2f, 0x45, 0x82, 0x59, 0x81, 0x51, 0x83, 0xcf, 0x48, 0x49, + 0x0f, 0xc5, 0x78, 0x3d, 0x54, 0xa3, 0xf5, 0xbc, 0x33, 0xf3, 0x52, 0x82, 0xc0, 0xea, 0x95, 0x74, + 0xb8, 0x58, 0x40, 0x3c, 0x21, 0x61, 0x2e, 0x7e, 0x3f, 0x7f, 0xbf, 0xf8, 0x20, 0x57, 0x67, 0xff, + 0x30, 0xd7, 0x20, 0x47, 0x27, 0x1f, 0x57, 0x01, 0x06, 0x21, 0x7e, 0x2e, 0x6e, 0x64, 0x01, 0x46, + 0x25, 0x17, 0x2e, 0x5e, 0xb0, 0x09, 0x2e, 0xf9, 0xc9, 0xa5, 0xb9, 0xa9, 0x79, 0x25, 0x42, 0xc6, + 0x5c, 0xac, 0x60, 0x6f, 0x81, 0x5d, 0xc9, 0x6d, 0x24, 0x8b, 0xd7, 0xde, 0x20, 0x88, 0x5a, 0x27, + 0xa3, 0x28, 0x83, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0x9c, 0xca, + 0xb4, 0x12, 0x7d, 0x78, 0x48, 0xa5, 0xa7, 0xe6, 0xe9, 0x17, 0x24, 0xe9, 0xa6, 0xe7, 0xeb, 0xa3, + 0x04, 0x5e, 0x12, 0x1b, 0x38, 0xd8, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xbe, 0xb8, + 0x64, 0x54, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go new file mode 100644 index 0000000000..61893926e2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.validate.go @@ -0,0 +1,180 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/errors.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on ContainerError with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ContainerError) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Code + + // no validation rules for Message + + // no validation rules for Kind + + return nil +} + +// ContainerErrorValidationError is the validation error returned by +// ContainerError.Validate if the designated constraints aren't met. +type ContainerErrorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContainerErrorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContainerErrorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContainerErrorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContainerErrorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContainerErrorValidationError) ErrorName() string { return "ContainerErrorValidationError" } + +// Error satisfies the builtin error interface +func (e ContainerErrorValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContainerError.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContainerErrorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContainerErrorValidationError{} + +// Validate checks the field values on ErrorDocument with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ErrorDocument) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ErrorDocumentValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ErrorDocumentValidationError is the validation error returned by +// ErrorDocument.Validate if the designated constraints aren't met. +type ErrorDocumentValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ErrorDocumentValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ErrorDocumentValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ErrorDocumentValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ErrorDocumentValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ErrorDocumentValidationError) ErrorName() string { return "ErrorDocumentValidationError" } + +// Error satisfies the builtin error interface +func (e ErrorDocumentValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sErrorDocument.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ErrorDocumentValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ErrorDocumentValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json new file mode 100644 index 0000000000..24332df82c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/errors.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go new file mode 100644 index 0000000000..fba4ca6b2a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go @@ -0,0 +1,436 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/execution.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type WorkflowExecution_Phase int32 + +const ( + WorkflowExecution_UNDEFINED WorkflowExecution_Phase = 0 + WorkflowExecution_QUEUED WorkflowExecution_Phase = 1 + WorkflowExecution_RUNNING WorkflowExecution_Phase = 2 + WorkflowExecution_SUCCEEDING WorkflowExecution_Phase = 3 + WorkflowExecution_SUCCEEDED WorkflowExecution_Phase = 4 + WorkflowExecution_FAILING WorkflowExecution_Phase = 5 + WorkflowExecution_FAILED WorkflowExecution_Phase = 6 + WorkflowExecution_ABORTED WorkflowExecution_Phase = 7 + WorkflowExecution_TIMED_OUT WorkflowExecution_Phase = 8 +) + +var WorkflowExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDING", + 4: "SUCCEEDED", + 5: "FAILING", + 6: "FAILED", + 7: "ABORTED", + 8: "TIMED_OUT", +} +var WorkflowExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDING": 3, + "SUCCEEDED": 4, + "FAILING": 5, + "FAILED": 6, + "ABORTED": 7, + "TIMED_OUT": 8, +} + +func (x WorkflowExecution_Phase) String() string { + return proto.EnumName(WorkflowExecution_Phase_name, int32(x)) +} +func (WorkflowExecution_Phase) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{0, 0} +} + +type NodeExecution_Phase int32 + +const ( + NodeExecution_UNDEFINED NodeExecution_Phase = 0 + NodeExecution_QUEUED NodeExecution_Phase = 1 + NodeExecution_RUNNING NodeExecution_Phase = 2 + NodeExecution_SUCCEEDED NodeExecution_Phase = 3 + NodeExecution_FAILING NodeExecution_Phase = 4 + NodeExecution_FAILED NodeExecution_Phase = 5 + NodeExecution_ABORTED NodeExecution_Phase = 6 + NodeExecution_SKIPPED NodeExecution_Phase = 7 + NodeExecution_TIMED_OUT NodeExecution_Phase = 8 +) + +var NodeExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "FAILING", + 5: "FAILED", + 6: "ABORTED", + 7: "SKIPPED", + 8: "TIMED_OUT", +} +var NodeExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "FAILING": 4, + "FAILED": 5, + "ABORTED": 6, + "SKIPPED": 7, + "TIMED_OUT": 8, +} + +func (x NodeExecution_Phase) String() string { + return proto.EnumName(NodeExecution_Phase_name, int32(x)) +} +func (NodeExecution_Phase) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{1, 0} +} + +type TaskExecution_Phase int32 + +const ( + TaskExecution_UNDEFINED TaskExecution_Phase = 0 + TaskExecution_QUEUED TaskExecution_Phase = 1 + TaskExecution_RUNNING TaskExecution_Phase = 2 + TaskExecution_SUCCEEDED TaskExecution_Phase = 3 + TaskExecution_ABORTED TaskExecution_Phase = 4 + TaskExecution_FAILED TaskExecution_Phase = 5 +) + +var TaskExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "ABORTED", + 5: "FAILED", +} +var TaskExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "ABORTED": 4, + "FAILED": 5, +} + +func (x TaskExecution_Phase) String() string { + return proto.EnumName(TaskExecution_Phase_name, int32(x)) +} +func (TaskExecution_Phase) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{2, 0} +} + +type TaskLog_MessageFormat int32 + +const ( + TaskLog_UNKNOWN TaskLog_MessageFormat = 0 + TaskLog_CSV TaskLog_MessageFormat = 1 + TaskLog_JSON TaskLog_MessageFormat = 2 +) + +var TaskLog_MessageFormat_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CSV", + 2: "JSON", +} +var TaskLog_MessageFormat_value = map[string]int32{ + "UNKNOWN": 0, + "CSV": 1, + "JSON": 2, +} + +func (x TaskLog_MessageFormat) String() string { + return proto.EnumName(TaskLog_MessageFormat_name, int32(x)) +} +func (TaskLog_MessageFormat) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{4, 0} +} + +// Indicates various phases of Workflow Execution +type WorkflowExecution struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecution) Reset() { *m = WorkflowExecution{} } +func (m *WorkflowExecution) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecution) ProtoMessage() {} +func (*WorkflowExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{0} +} +func (m *WorkflowExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecution.Unmarshal(m, b) +} +func (m *WorkflowExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecution.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecution.Merge(dst, src) +} +func (m *WorkflowExecution) XXX_Size() int { + return xxx_messageInfo_WorkflowExecution.Size(m) +} +func (m *WorkflowExecution) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecution proto.InternalMessageInfo + +// Indicates various phases of Node Execution +type NodeExecution struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecution) Reset() { *m = NodeExecution{} } +func (m *NodeExecution) String() string { return proto.CompactTextString(m) } +func (*NodeExecution) ProtoMessage() {} +func (*NodeExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{1} +} +func (m *NodeExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecution.Unmarshal(m, b) +} +func (m *NodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecution.Marshal(b, m, deterministic) +} +func (dst *NodeExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecution.Merge(dst, src) +} +func (m *NodeExecution) XXX_Size() int { + return xxx_messageInfo_NodeExecution.Size(m) +} +func (m *NodeExecution) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecution proto.InternalMessageInfo + +// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +// but this is the cumulative list that customers may want to know about for their task. +type TaskExecution struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecution) Reset() { *m = TaskExecution{} } +func (m *TaskExecution) String() string { return proto.CompactTextString(m) } +func (*TaskExecution) ProtoMessage() {} +func (*TaskExecution) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{2} +} +func (m *TaskExecution) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecution.Unmarshal(m, b) +} +func (m *TaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecution.Marshal(b, m, deterministic) +} +func (dst *TaskExecution) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecution.Merge(dst, src) +} +func (m *TaskExecution) XXX_Size() int { + return xxx_messageInfo_TaskExecution.Size(m) +} +func (m *TaskExecution) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecution.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecution proto.InternalMessageInfo + +// Represents the error message from the execution. +type ExecutionError struct { + // Error code indicates a grouping of a type of error. + // More Info: + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // Detailed description of the error - including stack trace. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // Full error contents accessible via a URI + ErrorUri string `protobuf:"bytes,3,opt,name=error_uri,json=errorUri,proto3" json:"error_uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExecutionError) Reset() { *m = ExecutionError{} } +func (m *ExecutionError) String() string { return proto.CompactTextString(m) } +func (*ExecutionError) ProtoMessage() {} +func (*ExecutionError) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{3} +} +func (m *ExecutionError) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExecutionError.Unmarshal(m, b) +} +func (m *ExecutionError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExecutionError.Marshal(b, m, deterministic) +} +func (dst *ExecutionError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutionError.Merge(dst, src) +} +func (m *ExecutionError) XXX_Size() int { + return xxx_messageInfo_ExecutionError.Size(m) +} +func (m *ExecutionError) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutionError.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutionError proto.InternalMessageInfo + +func (m *ExecutionError) GetCode() string { + if m != nil { + return m.Code + } + return "" +} + +func (m *ExecutionError) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *ExecutionError) GetErrorUri() string { + if m != nil { + return m.ErrorUri + } + return "" +} + +// Log information for the task that is specific to a log sink +// When our log story is flushed out, we may have more metadata here like log link expiry +type TaskLog struct { + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + MessageFormat TaskLog_MessageFormat `protobuf:"varint,3,opt,name=message_format,json=messageFormat,proto3,enum=flyteidl.core.TaskLog_MessageFormat" json:"message_format,omitempty"` + Ttl *duration.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskLog) Reset() { *m = TaskLog{} } +func (m *TaskLog) String() string { return proto.CompactTextString(m) } +func (*TaskLog) ProtoMessage() {} +func (*TaskLog) Descriptor() ([]byte, []int) { + return fileDescriptor_execution_9e5183245240f7ca, []int{4} +} +func (m *TaskLog) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskLog.Unmarshal(m, b) +} +func (m *TaskLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskLog.Marshal(b, m, deterministic) +} +func (dst *TaskLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskLog.Merge(dst, src) +} +func (m *TaskLog) XXX_Size() int { + return xxx_messageInfo_TaskLog.Size(m) +} +func (m *TaskLog) XXX_DiscardUnknown() { + xxx_messageInfo_TaskLog.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskLog proto.InternalMessageInfo + +func (m *TaskLog) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *TaskLog) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *TaskLog) GetMessageFormat() TaskLog_MessageFormat { + if m != nil { + return m.MessageFormat + } + return TaskLog_UNKNOWN +} + +func (m *TaskLog) GetTtl() *duration.Duration { + if m != nil { + return m.Ttl + } + return nil +} + +func init() { + proto.RegisterType((*WorkflowExecution)(nil), "flyteidl.core.WorkflowExecution") + proto.RegisterType((*NodeExecution)(nil), "flyteidl.core.NodeExecution") + proto.RegisterType((*TaskExecution)(nil), "flyteidl.core.TaskExecution") + proto.RegisterType((*ExecutionError)(nil), "flyteidl.core.ExecutionError") + proto.RegisterType((*TaskLog)(nil), "flyteidl.core.TaskLog") + proto.RegisterEnum("flyteidl.core.WorkflowExecution_Phase", WorkflowExecution_Phase_name, WorkflowExecution_Phase_value) + proto.RegisterEnum("flyteidl.core.NodeExecution_Phase", NodeExecution_Phase_name, NodeExecution_Phase_value) + proto.RegisterEnum("flyteidl.core.TaskExecution_Phase", TaskExecution_Phase_name, TaskExecution_Phase_value) + proto.RegisterEnum("flyteidl.core.TaskLog_MessageFormat", TaskLog_MessageFormat_name, TaskLog_MessageFormat_value) +} + +func init() { + proto.RegisterFile("flyteidl/core/execution.proto", fileDescriptor_execution_9e5183245240f7ca) +} + +var fileDescriptor_execution_9e5183245240f7ca = []byte{ + // 475 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xd1, 0x8e, 0xd2, 0x40, + 0x14, 0x86, 0xb7, 0x14, 0x28, 0x9c, 0x4d, 0xc9, 0x38, 0x57, 0x55, 0xa3, 0xd9, 0x34, 0x5e, 0x6c, + 0x62, 0x6c, 0x0d, 0x3e, 0xc1, 0x2e, 0x1d, 0x4c, 0x65, 0x77, 0xc0, 0x42, 0x25, 0xd1, 0x0b, 0x52, + 0x60, 0x5a, 0x9a, 0x6d, 0x99, 0xcd, 0xd0, 0x46, 0xf7, 0xce, 0xc4, 0x37, 0xf0, 0xce, 0x57, 0xf3, + 0x69, 0xcc, 0x0c, 0x74, 0xa1, 0x89, 0x37, 0xc6, 0xbb, 0x39, 0xf3, 0xff, 0xe7, 0x3f, 0x5f, 0x9b, + 0x33, 0xf0, 0x22, 0xce, 0x1e, 0x0a, 0x96, 0xae, 0x33, 0x77, 0xc5, 0x05, 0x73, 0xd9, 0x37, 0xb6, + 0x2a, 0x8b, 0x94, 0x6f, 0x9d, 0x7b, 0xc1, 0x0b, 0x8e, 0xcd, 0x4a, 0x76, 0xa4, 0xfc, 0xec, 0x65, + 0xc2, 0x79, 0x92, 0x31, 0x57, 0x89, 0xcb, 0x32, 0x76, 0xd7, 0xa5, 0x88, 0x8e, 0x76, 0xfb, 0x97, + 0x06, 0x4f, 0xe6, 0x5c, 0xdc, 0xc5, 0x19, 0xff, 0x4a, 0xaa, 0x28, 0xfb, 0x87, 0x06, 0xad, 0xc9, + 0x26, 0xda, 0x31, 0x6c, 0x42, 0x37, 0xa4, 0x1e, 0x19, 0xfa, 0x94, 0x78, 0xe8, 0x0c, 0x03, 0xb4, + 0x3f, 0x86, 0x24, 0x24, 0x1e, 0xd2, 0xf0, 0x39, 0x18, 0x41, 0x48, 0xa9, 0x4f, 0xdf, 0xa3, 0x06, + 0xee, 0x01, 0x4c, 0xc3, 0xc1, 0x80, 0x10, 0x4f, 0xd6, 0xba, 0xec, 0x3b, 0xd4, 0xc4, 0x43, 0x4d, + 0xe9, 0x1d, 0x5e, 0xf9, 0x37, 0x52, 0x6b, 0xc9, 0x10, 0x59, 0x10, 0x0f, 0xb5, 0xa5, 0x70, 0x75, + 0x3d, 0x0e, 0x66, 0xc4, 0x43, 0x86, 0x6c, 0x9a, 0xf9, 0xb7, 0xc4, 0x5b, 0x8c, 0xc3, 0x19, 0xea, + 0xd8, 0x3f, 0x35, 0x30, 0x29, 0x5f, 0xb3, 0x23, 0xd7, 0xf7, 0x7f, 0xe6, 0xaa, 0x71, 0xe8, 0xa7, + 0x1c, 0xcd, 0x13, 0x8e, 0xd6, 0x29, 0x87, 0x82, 0x9a, 0x8e, 0xfc, 0xc9, 0xe4, 0x6f, 0x50, 0x1b, + 0x30, 0x67, 0xd1, 0xee, 0xee, 0xc8, 0x34, 0xff, 0x7f, 0xa4, 0x6a, 0x72, 0x0d, 0xc9, 0xfe, 0x02, + 0xbd, 0xc7, 0x29, 0x44, 0x08, 0x2e, 0x30, 0x86, 0xe6, 0x8a, 0xaf, 0x99, 0xa5, 0x5d, 0x68, 0x97, + 0xdd, 0x40, 0x9d, 0xb1, 0x05, 0x46, 0xce, 0x76, 0xbb, 0x28, 0x61, 0x56, 0x43, 0x5d, 0x57, 0x25, + 0x7e, 0x0e, 0x5d, 0x26, 0xdb, 0x16, 0xa5, 0x48, 0x2d, 0x5d, 0x69, 0x1d, 0x75, 0x11, 0x8a, 0xd4, + 0xfe, 0xad, 0x81, 0x21, 0xbf, 0xe3, 0x86, 0x27, 0x18, 0x81, 0x2e, 0x2d, 0xfb, 0x54, 0x79, 0x94, + 0x83, 0xb6, 0x51, 0x5e, 0x25, 0xaa, 0x33, 0x1e, 0x41, 0xef, 0x90, 0xbc, 0x88, 0xb9, 0xc8, 0xa3, + 0x42, 0x65, 0xf6, 0xfa, 0xaf, 0x9c, 0xda, 0xc6, 0x39, 0x87, 0x54, 0xe7, 0x76, 0x6f, 0x1e, 0x2a, + 0x6f, 0x60, 0xe6, 0xa7, 0x25, 0x7e, 0x0d, 0x7a, 0x51, 0x64, 0x56, 0xf3, 0x42, 0xbb, 0x3c, 0xef, + 0x3f, 0x75, 0xf6, 0x4b, 0xea, 0x54, 0x4b, 0xea, 0x78, 0x87, 0x25, 0x0d, 0xa4, 0xcb, 0x76, 0xc1, + 0xac, 0x85, 0xc9, 0x5f, 0x16, 0xd2, 0x11, 0x1d, 0xcf, 0x29, 0x3a, 0xc3, 0x06, 0xe8, 0x83, 0xe9, + 0x27, 0xa4, 0xe1, 0x0e, 0x34, 0x3f, 0x4c, 0xc7, 0x14, 0x35, 0xae, 0xfb, 0x9f, 0xdf, 0x26, 0x69, + 0xb1, 0x29, 0x97, 0xce, 0x8a, 0xe7, 0x6e, 0xf6, 0x10, 0x17, 0xee, 0xe3, 0xa3, 0x49, 0xd8, 0xd6, + 0xbd, 0x5f, 0xbe, 0x49, 0xb8, 0x5b, 0x7b, 0x47, 0xcb, 0xb6, 0x1a, 0xfe, 0xee, 0x4f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xd4, 0xa6, 0x1d, 0xa9, 0x5f, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go new file mode 100644 index 0000000000..d67b8ce12f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.validate.go @@ -0,0 +1,382 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/execution.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on WorkflowExecution with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowExecution) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowExecutionValidationError is the validation error returned by +// WorkflowExecution.Validate if the designated constraints aren't met. +type WorkflowExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionValidationError) ErrorName() string { + return "WorkflowExecutionValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionValidationError{} + +// Validate checks the field values on NodeExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NodeExecution) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// NodeExecutionValidationError is the validation error returned by +// NodeExecution.Validate if the designated constraints aren't met. +type NodeExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionValidationError) ErrorName() string { return "NodeExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e NodeExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionValidationError{} + +// Validate checks the field values on TaskExecution with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskExecution) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// TaskExecutionValidationError is the validation error returned by +// TaskExecution.Validate if the designated constraints aren't met. +type TaskExecutionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionValidationError) ErrorName() string { return "TaskExecutionValidationError" } + +// Error satisfies the builtin error interface +func (e TaskExecutionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecution.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionValidationError{} + +// Validate checks the field values on ExecutionError with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ExecutionError) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Code + + // no validation rules for Message + + // no validation rules for ErrorUri + + return nil +} + +// ExecutionErrorValidationError is the validation error returned by +// ExecutionError.Validate if the designated constraints aren't met. +type ExecutionErrorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ExecutionErrorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ExecutionErrorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ExecutionErrorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ExecutionErrorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ExecutionErrorValidationError) ErrorName() string { return "ExecutionErrorValidationError" } + +// Error satisfies the builtin error interface +func (e ExecutionErrorValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sExecutionError.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ExecutionErrorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ExecutionErrorValidationError{} + +// Validate checks the field values on TaskLog with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskLog) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Uri + + // no validation rules for Name + + // no validation rules for MessageFormat + + if v, ok := interface{}(m.GetTtl()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskLogValidationError{ + field: "Ttl", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TaskLogValidationError is the validation error returned by TaskLog.Validate +// if the designated constraints aren't met. +type TaskLogValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskLogValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskLogValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskLogValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskLogValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskLogValidationError) ErrorName() string { return "TaskLogValidationError" } + +// Error satisfies the builtin error interface +func (e TaskLogValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskLog.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskLogValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskLogValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json new file mode 100644 index 0000000000..920ed79fa4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/execution.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go new file mode 100644 index 0000000000..976bfc8fe7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go @@ -0,0 +1,330 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/identifier.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Indicates a resource type within Flyte. +type ResourceType int32 + +const ( + ResourceType_UNSPECIFIED ResourceType = 0 + ResourceType_TASK ResourceType = 1 + ResourceType_WORKFLOW ResourceType = 2 + ResourceType_LAUNCH_PLAN ResourceType = 3 +) + +var ResourceType_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "TASK", + 2: "WORKFLOW", + 3: "LAUNCH_PLAN", +} +var ResourceType_value = map[string]int32{ + "UNSPECIFIED": 0, + "TASK": 1, + "WORKFLOW": 2, + "LAUNCH_PLAN": 3, +} + +func (x ResourceType) String() string { + return proto.EnumName(ResourceType_name, int32(x)) +} +func (ResourceType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_identifier_b28a7c16baf8ae97, []int{0} +} + +// Encapsulation of fields that uniquely identifies a Flyte resource. +type Identifier struct { + // Identifies the specific type of resource that this identifer corresponds to. + ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Specific version of the resource. + Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Identifier) Reset() { *m = Identifier{} } +func (m *Identifier) String() string { return proto.CompactTextString(m) } +func (*Identifier) ProtoMessage() {} +func (*Identifier) Descriptor() ([]byte, []int) { + return fileDescriptor_identifier_b28a7c16baf8ae97, []int{0} +} +func (m *Identifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Identifier.Unmarshal(m, b) +} +func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Identifier.Marshal(b, m, deterministic) +} +func (dst *Identifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_Identifier.Merge(dst, src) +} +func (m *Identifier) XXX_Size() int { + return xxx_messageInfo_Identifier.Size(m) +} +func (m *Identifier) XXX_DiscardUnknown() { + xxx_messageInfo_Identifier.DiscardUnknown(m) +} + +var xxx_messageInfo_Identifier proto.InternalMessageInfo + +func (m *Identifier) GetResourceType() ResourceType { + if m != nil { + return m.ResourceType + } + return ResourceType_UNSPECIFIED +} + +func (m *Identifier) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *Identifier) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *Identifier) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Identifier) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +// Encapsulation of fields that uniquely identifies a Flyte workflow execution +type WorkflowExecutionIdentifier struct { + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User or system provided value for the resource. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionIdentifier) Reset() { *m = WorkflowExecutionIdentifier{} } +func (m *WorkflowExecutionIdentifier) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionIdentifier) ProtoMessage() {} +func (*WorkflowExecutionIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_identifier_b28a7c16baf8ae97, []int{1} +} +func (m *WorkflowExecutionIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionIdentifier.Unmarshal(m, b) +} +func (m *WorkflowExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionIdentifier.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionIdentifier.Merge(dst, src) +} +func (m *WorkflowExecutionIdentifier) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionIdentifier.Size(m) +} +func (m *WorkflowExecutionIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionIdentifier proto.InternalMessageInfo + +func (m *WorkflowExecutionIdentifier) GetProject() string { + if m != nil { + return m.Project + } + return "" +} + +func (m *WorkflowExecutionIdentifier) GetDomain() string { + if m != nil { + return m.Domain + } + return "" +} + +func (m *WorkflowExecutionIdentifier) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// Encapsulation of fields that identify a Flyte node execution entity. +type NodeExecutionIdentifier struct { + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionIdentifier) Reset() { *m = NodeExecutionIdentifier{} } +func (m *NodeExecutionIdentifier) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionIdentifier) ProtoMessage() {} +func (*NodeExecutionIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_identifier_b28a7c16baf8ae97, []int{2} +} +func (m *NodeExecutionIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionIdentifier.Unmarshal(m, b) +} +func (m *NodeExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionIdentifier.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionIdentifier.Merge(dst, src) +} +func (m *NodeExecutionIdentifier) XXX_Size() int { + return xxx_messageInfo_NodeExecutionIdentifier.Size(m) +} +func (m *NodeExecutionIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionIdentifier proto.InternalMessageInfo + +func (m *NodeExecutionIdentifier) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +func (m *NodeExecutionIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +// Encapsulation of fields that identify a Flyte task execution entity. +type TaskExecutionIdentifier struct { + TaskId *Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + NodeExecutionId *NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionIdentifier) Reset() { *m = TaskExecutionIdentifier{} } +func (m *TaskExecutionIdentifier) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionIdentifier) ProtoMessage() {} +func (*TaskExecutionIdentifier) Descriptor() ([]byte, []int) { + return fileDescriptor_identifier_b28a7c16baf8ae97, []int{3} +} +func (m *TaskExecutionIdentifier) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionIdentifier.Unmarshal(m, b) +} +func (m *TaskExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionIdentifier.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionIdentifier) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionIdentifier.Merge(dst, src) +} +func (m *TaskExecutionIdentifier) XXX_Size() int { + return xxx_messageInfo_TaskExecutionIdentifier.Size(m) +} +func (m *TaskExecutionIdentifier) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionIdentifier.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionIdentifier proto.InternalMessageInfo + +func (m *TaskExecutionIdentifier) GetTaskId() *Identifier { + if m != nil { + return m.TaskId + } + return nil +} + +func (m *TaskExecutionIdentifier) GetNodeExecutionId() *NodeExecutionIdentifier { + if m != nil { + return m.NodeExecutionId + } + return nil +} + +func (m *TaskExecutionIdentifier) GetRetryAttempt() uint32 { + if m != nil { + return m.RetryAttempt + } + return 0 +} + +func init() { + proto.RegisterType((*Identifier)(nil), "flyteidl.core.Identifier") + proto.RegisterType((*WorkflowExecutionIdentifier)(nil), "flyteidl.core.WorkflowExecutionIdentifier") + proto.RegisterType((*NodeExecutionIdentifier)(nil), "flyteidl.core.NodeExecutionIdentifier") + proto.RegisterType((*TaskExecutionIdentifier)(nil), "flyteidl.core.TaskExecutionIdentifier") + proto.RegisterEnum("flyteidl.core.ResourceType", ResourceType_name, ResourceType_value) +} + +func init() { + proto.RegisterFile("flyteidl/core/identifier.proto", fileDescriptor_identifier_b28a7c16baf8ae97) +} + +var fileDescriptor_identifier_b28a7c16baf8ae97 = []byte{ + // 426 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xd1, 0x6e, 0xd3, 0x30, + 0x14, 0xc5, 0x5d, 0x69, 0xc7, 0x6d, 0xcb, 0x8a, 0x1f, 0x68, 0xd0, 0x24, 0x34, 0x15, 0x09, 0x4d, + 0x93, 0x48, 0x50, 0xf8, 0x01, 0xca, 0xe8, 0xb4, 0x68, 0xa5, 0x9b, 0xb2, 0x4e, 0x95, 0x78, 0xa9, + 0xd2, 0xf8, 0xb6, 0x98, 0x26, 0x76, 0xe4, 0xb8, 0x40, 0x1e, 0xf9, 0x21, 0x3e, 0x83, 0xef, 0x42, + 0xce, 0x92, 0x91, 0x56, 0x2d, 0xbc, 0xe5, 0xdc, 0x73, 0x7c, 0xcf, 0x71, 0x72, 0x02, 0x2f, 0x17, + 0x51, 0xa6, 0x91, 0xb3, 0xc8, 0x09, 0xa5, 0x42, 0x87, 0x33, 0x14, 0x9a, 0x2f, 0x38, 0x2a, 0x3b, + 0x51, 0x52, 0x4b, 0xda, 0x29, 0x79, 0xdb, 0xf0, 0xfd, 0x5f, 0x04, 0xc0, 0x7b, 0xd0, 0xd0, 0xf7, + 0xd0, 0x51, 0x98, 0xca, 0xb5, 0x0a, 0x71, 0xa6, 0xb3, 0x04, 0x2d, 0x72, 0x42, 0x4e, 0x9f, 0xba, + 0xc7, 0xf6, 0xc6, 0x29, 0xdb, 0x2f, 0x34, 0x93, 0x2c, 0x41, 0xbf, 0xad, 0x2a, 0x88, 0x5a, 0xd0, + 0x4c, 0x94, 0xfc, 0x8a, 0xa1, 0xb6, 0x6a, 0x27, 0xe4, 0xf4, 0x89, 0x5f, 0x42, 0xfa, 0x1c, 0x1a, + 0x4c, 0xc6, 0x01, 0x17, 0xd6, 0x41, 0x4e, 0x14, 0x88, 0x52, 0xa8, 0x8b, 0x20, 0x46, 0xab, 0x9e, + 0x4f, 0xf3, 0x67, 0xb3, 0xe5, 0x1b, 0xaa, 0x94, 0x4b, 0x61, 0x3d, 0xbe, 0xdf, 0x52, 0xc0, 0x7e, + 0x08, 0xc7, 0x53, 0xa9, 0x56, 0x8b, 0x48, 0x7e, 0x1f, 0xfe, 0xc0, 0x70, 0xad, 0xb9, 0x14, 0x95, + 0x0b, 0x54, 0xec, 0xc9, 0x3e, 0xfb, 0xda, 0xff, 0xec, 0xfb, 0x3f, 0x09, 0xf4, 0xc6, 0x92, 0xe1, + 0x2e, 0x87, 0x1e, 0x34, 0x85, 0x64, 0x38, 0xe3, 0xac, 0x70, 0x68, 0x18, 0xe8, 0x31, 0xfa, 0x09, + 0xda, 0x58, 0xea, 0x0d, 0x6b, 0x6c, 0x5a, 0xee, 0xd9, 0xd6, 0xab, 0xfb, 0x47, 0x78, 0xbf, 0x85, + 0x7f, 0x87, 0xfd, 0xdf, 0x04, 0x7a, 0x93, 0x20, 0x5d, 0xed, 0xca, 0xe0, 0x42, 0x53, 0x07, 0xe9, + 0xaa, 0xcc, 0xd0, 0x72, 0x5f, 0x6c, 0xb9, 0x54, 0x96, 0x36, 0x8c, 0xd2, 0x63, 0xd4, 0x87, 0x67, + 0x79, 0xee, 0x1d, 0x19, 0x5f, 0x6f, 0x9d, 0xde, 0x73, 0x75, 0xff, 0x48, 0x6c, 0x12, 0xf4, 0x95, + 0xa9, 0x8b, 0x56, 0xd9, 0x2c, 0xd0, 0x1a, 0xe3, 0x44, 0xe7, 0x5f, 0xb6, 0x63, 0x1a, 0xa1, 0x55, + 0x36, 0xb8, 0x9f, 0x9d, 0x5d, 0x42, 0xbb, 0xda, 0x17, 0x7a, 0x04, 0xad, 0xbb, 0xf1, 0xed, 0xcd, + 0xf0, 0xdc, 0xbb, 0xf0, 0x86, 0x1f, 0xbb, 0x8f, 0xe8, 0x21, 0xd4, 0x27, 0x83, 0xdb, 0xab, 0x2e, + 0xa1, 0x6d, 0x38, 0x9c, 0x5e, 0xfb, 0x57, 0x17, 0xa3, 0xeb, 0x69, 0xb7, 0x66, 0x84, 0xa3, 0xc1, + 0xdd, 0xf8, 0xfc, 0x72, 0x76, 0x33, 0x1a, 0x8c, 0xbb, 0x07, 0x1f, 0xdc, 0xcf, 0x6f, 0x97, 0x5c, + 0x7f, 0x59, 0xcf, 0xed, 0x50, 0xc6, 0x4e, 0x94, 0x2d, 0xb4, 0xf3, 0xd0, 0xf6, 0x25, 0x0a, 0x27, + 0x99, 0xbf, 0x59, 0x4a, 0x67, 0xe3, 0x07, 0x98, 0x37, 0xf2, 0xda, 0xbf, 0xfb, 0x13, 0x00, 0x00, + 0xff, 0xff, 0x50, 0xa4, 0x59, 0x3a, 0x18, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go new file mode 100644 index 0000000000..53ecf48aec --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.validate.go @@ -0,0 +1,350 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/identifier.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on Identifier with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Identifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ResourceType + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + // no validation rules for Version + + return nil +} + +// IdentifierValidationError is the validation error returned by +// Identifier.Validate if the designated constraints aren't met. +type IdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IdentifierValidationError) ErrorName() string { return "IdentifierValidationError" } + +// Error satisfies the builtin error interface +func (e IdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IdentifierValidationError{} + +// Validate checks the field values on WorkflowExecutionIdentifier with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Project + + // no validation rules for Domain + + // no validation rules for Name + + return nil +} + +// WorkflowExecutionIdentifierValidationError is the validation error returned +// by WorkflowExecutionIdentifier.Validate if the designated constraints +// aren't met. +type WorkflowExecutionIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionIdentifierValidationError) ErrorName() string { + return "WorkflowExecutionIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionIdentifierValidationError{} + +// Validate checks the field values on NodeExecutionIdentifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionIdentifier) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NodeId + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionIdentifierValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeExecutionIdentifierValidationError is the validation error returned by +// NodeExecutionIdentifier.Validate if the designated constraints aren't met. +type NodeExecutionIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionIdentifierValidationError) ErrorName() string { + return "NodeExecutionIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionIdentifierValidationError{} + +// Validate checks the field values on TaskExecutionIdentifier with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionIdentifier) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionIdentifierValidationError{ + field: "TaskId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetNodeExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionIdentifierValidationError{ + field: "NodeExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RetryAttempt + + return nil +} + +// TaskExecutionIdentifierValidationError is the validation error returned by +// TaskExecutionIdentifier.Validate if the designated constraints aren't met. +type TaskExecutionIdentifierValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionIdentifierValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionIdentifierValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionIdentifierValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionIdentifierValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionIdentifierValidationError) ErrorName() string { + return "TaskExecutionIdentifierValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionIdentifierValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionIdentifier.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionIdentifierValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionIdentifierValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json new file mode 100644 index 0000000000..879a523929 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/identifier.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go new file mode 100644 index 0000000000..78dff8c324 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go @@ -0,0 +1,397 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/interface.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Defines a strongly typed variable. +type Variable struct { + // Variable literal type. + Type *LiteralType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // +optional string describing input variable + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Variable) Reset() { *m = Variable{} } +func (m *Variable) String() string { return proto.CompactTextString(m) } +func (*Variable) ProtoMessage() {} +func (*Variable) Descriptor() ([]byte, []int) { + return fileDescriptor_interface_5dd752273a43bb5d, []int{0} +} +func (m *Variable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Variable.Unmarshal(m, b) +} +func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Variable.Marshal(b, m, deterministic) +} +func (dst *Variable) XXX_Merge(src proto.Message) { + xxx_messageInfo_Variable.Merge(dst, src) +} +func (m *Variable) XXX_Size() int { + return xxx_messageInfo_Variable.Size(m) +} +func (m *Variable) XXX_DiscardUnknown() { + xxx_messageInfo_Variable.DiscardUnknown(m) +} + +var xxx_messageInfo_Variable proto.InternalMessageInfo + +func (m *Variable) GetType() *LiteralType { + if m != nil { + return m.Type + } + return nil +} + +func (m *Variable) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// A map of Variables +type VariableMap struct { + // Defines a map of variable names to variables. + Variables map[string]*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *VariableMap) Reset() { *m = VariableMap{} } +func (m *VariableMap) String() string { return proto.CompactTextString(m) } +func (*VariableMap) ProtoMessage() {} +func (*VariableMap) Descriptor() ([]byte, []int) { + return fileDescriptor_interface_5dd752273a43bb5d, []int{1} +} +func (m *VariableMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_VariableMap.Unmarshal(m, b) +} +func (m *VariableMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_VariableMap.Marshal(b, m, deterministic) +} +func (dst *VariableMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_VariableMap.Merge(dst, src) +} +func (m *VariableMap) XXX_Size() int { + return xxx_messageInfo_VariableMap.Size(m) +} +func (m *VariableMap) XXX_DiscardUnknown() { + xxx_messageInfo_VariableMap.DiscardUnknown(m) +} + +var xxx_messageInfo_VariableMap proto.InternalMessageInfo + +func (m *VariableMap) GetVariables() map[string]*Variable { + if m != nil { + return m.Variables + } + return nil +} + +// Defines strongly typed inputs and outputs. +type TypedInterface struct { + Inputs *VariableMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + Outputs *VariableMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TypedInterface) Reset() { *m = TypedInterface{} } +func (m *TypedInterface) String() string { return proto.CompactTextString(m) } +func (*TypedInterface) ProtoMessage() {} +func (*TypedInterface) Descriptor() ([]byte, []int) { + return fileDescriptor_interface_5dd752273a43bb5d, []int{2} +} +func (m *TypedInterface) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TypedInterface.Unmarshal(m, b) +} +func (m *TypedInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TypedInterface.Marshal(b, m, deterministic) +} +func (dst *TypedInterface) XXX_Merge(src proto.Message) { + xxx_messageInfo_TypedInterface.Merge(dst, src) +} +func (m *TypedInterface) XXX_Size() int { + return xxx_messageInfo_TypedInterface.Size(m) +} +func (m *TypedInterface) XXX_DiscardUnknown() { + xxx_messageInfo_TypedInterface.DiscardUnknown(m) +} + +var xxx_messageInfo_TypedInterface proto.InternalMessageInfo + +func (m *TypedInterface) GetInputs() *VariableMap { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *TypedInterface) GetOutputs() *VariableMap { + if m != nil { + return m.Outputs + } + return nil +} + +// A parameter is used as input to a launch plan and has +// the special ability to have a default value or mark itself as required. +type Parameter struct { + // +required Variable. Defines the type of the variable backing this parameter. + Var *Variable `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // +optional + // + // Types that are valid to be assigned to Behavior: + // *Parameter_Default + // *Parameter_Required + Behavior isParameter_Behavior `protobuf_oneof:"behavior"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Parameter) Reset() { *m = Parameter{} } +func (m *Parameter) String() string { return proto.CompactTextString(m) } +func (*Parameter) ProtoMessage() {} +func (*Parameter) Descriptor() ([]byte, []int) { + return fileDescriptor_interface_5dd752273a43bb5d, []int{3} +} +func (m *Parameter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Parameter.Unmarshal(m, b) +} +func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Parameter.Marshal(b, m, deterministic) +} +func (dst *Parameter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Parameter.Merge(dst, src) +} +func (m *Parameter) XXX_Size() int { + return xxx_messageInfo_Parameter.Size(m) +} +func (m *Parameter) XXX_DiscardUnknown() { + xxx_messageInfo_Parameter.DiscardUnknown(m) +} + +var xxx_messageInfo_Parameter proto.InternalMessageInfo + +func (m *Parameter) GetVar() *Variable { + if m != nil { + return m.Var + } + return nil +} + +type isParameter_Behavior interface { + isParameter_Behavior() +} + +type Parameter_Default struct { + Default *Literal `protobuf:"bytes,2,opt,name=default,proto3,oneof"` +} + +type Parameter_Required struct { + Required bool `protobuf:"varint,3,opt,name=required,proto3,oneof"` +} + +func (*Parameter_Default) isParameter_Behavior() {} + +func (*Parameter_Required) isParameter_Behavior() {} + +func (m *Parameter) GetBehavior() isParameter_Behavior { + if m != nil { + return m.Behavior + } + return nil +} + +func (m *Parameter) GetDefault() *Literal { + if x, ok := m.GetBehavior().(*Parameter_Default); ok { + return x.Default + } + return nil +} + +func (m *Parameter) GetRequired() bool { + if x, ok := m.GetBehavior().(*Parameter_Required); ok { + return x.Required + } + return false +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Parameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Parameter_OneofMarshaler, _Parameter_OneofUnmarshaler, _Parameter_OneofSizer, []interface{}{ + (*Parameter_Default)(nil), + (*Parameter_Required)(nil), + } +} + +func _Parameter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Parameter) + // behavior + switch x := m.Behavior.(type) { + case *Parameter_Default: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Default); err != nil { + return err + } + case *Parameter_Required: + t := uint64(0) + if x.Required { + t = 1 + } + b.EncodeVarint(3<<3 | proto.WireVarint) + b.EncodeVarint(t) + case nil: + default: + return fmt.Errorf("Parameter.Behavior has unexpected type %T", x) + } + return nil +} + +func _Parameter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Parameter) + switch tag { + case 2: // behavior.default + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Literal) + err := b.DecodeMessage(msg) + m.Behavior = &Parameter_Default{msg} + return true, err + case 3: // behavior.required + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Behavior = &Parameter_Required{x != 0} + return true, err + default: + return false, nil + } +} + +func _Parameter_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Parameter) + // behavior + switch x := m.Behavior.(type) { + case *Parameter_Default: + s := proto.Size(x.Default) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Parameter_Required: + n += 1 // tag and wire + n += 1 + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A map of Parameters. +type ParameterMap struct { + // Defines a map of parameter names to parameters. + Parameters map[string]*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParameterMap) Reset() { *m = ParameterMap{} } +func (m *ParameterMap) String() string { return proto.CompactTextString(m) } +func (*ParameterMap) ProtoMessage() {} +func (*ParameterMap) Descriptor() ([]byte, []int) { + return fileDescriptor_interface_5dd752273a43bb5d, []int{4} +} +func (m *ParameterMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParameterMap.Unmarshal(m, b) +} +func (m *ParameterMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParameterMap.Marshal(b, m, deterministic) +} +func (dst *ParameterMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParameterMap.Merge(dst, src) +} +func (m *ParameterMap) XXX_Size() int { + return xxx_messageInfo_ParameterMap.Size(m) +} +func (m *ParameterMap) XXX_DiscardUnknown() { + xxx_messageInfo_ParameterMap.DiscardUnknown(m) +} + +var xxx_messageInfo_ParameterMap proto.InternalMessageInfo + +func (m *ParameterMap) GetParameters() map[string]*Parameter { + if m != nil { + return m.Parameters + } + return nil +} + +func init() { + proto.RegisterType((*Variable)(nil), "flyteidl.core.Variable") + proto.RegisterType((*VariableMap)(nil), "flyteidl.core.VariableMap") + proto.RegisterMapType((map[string]*Variable)(nil), "flyteidl.core.VariableMap.VariablesEntry") + proto.RegisterType((*TypedInterface)(nil), "flyteidl.core.TypedInterface") + proto.RegisterType((*Parameter)(nil), "flyteidl.core.Parameter") + proto.RegisterType((*ParameterMap)(nil), "flyteidl.core.ParameterMap") + proto.RegisterMapType((map[string]*Parameter)(nil), "flyteidl.core.ParameterMap.ParametersEntry") +} + +func init() { + proto.RegisterFile("flyteidl/core/interface.proto", fileDescriptor_interface_5dd752273a43bb5d) +} + +var fileDescriptor_interface_5dd752273a43bb5d = []byte{ + // 424 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0x5d, 0x6b, 0xd4, 0x40, + 0x14, 0xed, 0xec, 0x6a, 0xbb, 0x7b, 0xa3, 0x55, 0xe6, 0x41, 0x63, 0xa8, 0x10, 0xf2, 0xb4, 0x45, + 0x9a, 0x48, 0xf4, 0x41, 0x7c, 0x2c, 0x88, 0x15, 0x15, 0x64, 0xf0, 0x03, 0xc4, 0x97, 0xc9, 0xe6, + 0xee, 0x76, 0x70, 0x9a, 0x19, 0x27, 0x93, 0x40, 0xfc, 0x1d, 0xfe, 0x0d, 0xdf, 0xfc, 0x81, 0x92, + 0x6c, 0x92, 0x26, 0x4b, 0x43, 0xdf, 0xe6, 0xce, 0x39, 0x27, 0xe7, 0x64, 0x0e, 0x17, 0x9e, 0x6e, + 0x64, 0x65, 0x51, 0xa4, 0x32, 0x5a, 0x2b, 0x83, 0x91, 0xc8, 0x2c, 0x9a, 0x0d, 0x5f, 0x63, 0xa8, + 0x8d, 0xb2, 0x8a, 0xde, 0xef, 0xe0, 0xb0, 0x86, 0xbd, 0x27, 0x63, 0xb6, 0xad, 0x34, 0xe6, 0x3b, + 0xa6, 0x77, 0x32, 0x86, 0xa4, 0xb0, 0x68, 0xb8, 0x6c, 0xd1, 0xe0, 0x07, 0x2c, 0xbe, 0x72, 0x23, + 0x78, 0x22, 0x91, 0x86, 0x70, 0xa7, 0x16, 0xba, 0xc4, 0x27, 0x2b, 0x27, 0xf6, 0xc2, 0x91, 0x45, + 0xf8, 0x61, 0x27, 0xfc, 0x5c, 0x69, 0x64, 0x0d, 0x8f, 0xfa, 0xe0, 0xa4, 0x98, 0xaf, 0x8d, 0xd0, + 0x56, 0xa8, 0xcc, 0x9d, 0xf9, 0x64, 0xb5, 0x64, 0xc3, 0xab, 0xe0, 0x2f, 0x01, 0xa7, 0xfb, 0xfc, + 0x47, 0xae, 0xe9, 0x5b, 0x58, 0x96, 0xed, 0x98, 0xbb, 0xc4, 0x9f, 0xaf, 0x9c, 0xf8, 0x74, 0xcf, + 0x66, 0x40, 0xef, 0xcf, 0xf9, 0x9b, 0xcc, 0x9a, 0x8a, 0x5d, 0x6b, 0xbd, 0x2f, 0x70, 0x3c, 0x06, + 0xe9, 0x43, 0x98, 0xff, 0xc4, 0xaa, 0xc9, 0xbe, 0x64, 0xf5, 0x91, 0x9e, 0xc1, 0xdd, 0x92, 0xcb, + 0x02, 0x9b, 0x60, 0x4e, 0xfc, 0x78, 0xc2, 0x88, 0xed, 0x58, 0xaf, 0x67, 0xaf, 0x48, 0xf0, 0x1b, + 0x8e, 0xeb, 0xff, 0x4b, 0xdf, 0x75, 0xaf, 0x4d, 0x63, 0x38, 0x14, 0x99, 0x2e, 0x6c, 0x3e, 0xf1, + 0x2a, 0x83, 0xb8, 0xac, 0x65, 0xd2, 0x97, 0x70, 0xa4, 0x0a, 0xdb, 0x88, 0x66, 0xb7, 0x8a, 0x3a, + 0x6a, 0xf0, 0x87, 0xc0, 0xf2, 0x13, 0x37, 0xfc, 0x0a, 0x2d, 0x1a, 0x7a, 0x0a, 0xf3, 0x92, 0x9b, + 0xd6, 0x74, 0x32, 0x7a, 0xcd, 0xa1, 0x31, 0x1c, 0xa5, 0xb8, 0xe1, 0x85, 0xb4, 0xad, 0xdd, 0xa3, + 0x9b, 0x9b, 0xbb, 0x38, 0x60, 0x1d, 0x91, 0x9e, 0xc0, 0xc2, 0xe0, 0xaf, 0x42, 0x18, 0x4c, 0xdd, + 0xb9, 0x4f, 0x56, 0x8b, 0x8b, 0x03, 0xd6, 0xdf, 0x9c, 0x03, 0x2c, 0x12, 0xbc, 0xe4, 0xa5, 0x50, + 0x26, 0xf8, 0x47, 0xe0, 0x5e, 0x1f, 0xab, 0xee, 0xf0, 0x3d, 0x80, 0xee, 0xe6, 0xae, 0xc4, 0x67, + 0x7b, 0x8e, 0x43, 0xc1, 0xf5, 0xd0, 0xd6, 0x38, 0x90, 0x7b, 0xdf, 0xe0, 0xc1, 0x1e, 0x7c, 0x43, + 0x91, 0xe1, 0xb8, 0x48, 0x77, 0xca, 0x6c, 0xd0, 0xe4, 0x79, 0xfc, 0xfd, 0xf9, 0x56, 0xd8, 0xcb, + 0x22, 0x09, 0xd7, 0xea, 0x2a, 0x92, 0xd5, 0xc6, 0x46, 0xfd, 0x1e, 0x6c, 0x31, 0x8b, 0x74, 0x72, + 0xb6, 0x55, 0xd1, 0x68, 0x35, 0x92, 0xc3, 0x66, 0x25, 0x5e, 0xfc, 0x0f, 0x00, 0x00, 0xff, 0xff, + 0xe4, 0x24, 0x29, 0xd5, 0x7b, 0x03, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go new file mode 100644 index 0000000000..3682dc8d13 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.validate.go @@ -0,0 +1,422 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/interface.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on Variable with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Variable) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return VariableValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Description + + return nil +} + +// VariableValidationError is the validation error returned by +// Variable.Validate if the designated constraints aren't met. +type VariableValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VariableValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VariableValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VariableValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VariableValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VariableValidationError) ErrorName() string { return "VariableValidationError" } + +// Error satisfies the builtin error interface +func (e VariableValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVariable.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VariableValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VariableValidationError{} + +// Validate checks the field values on VariableMap with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *VariableMap) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Variables + + return nil +} + +// VariableMapValidationError is the validation error returned by +// VariableMap.Validate if the designated constraints aren't met. +type VariableMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VariableMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VariableMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VariableMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VariableMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VariableMapValidationError) ErrorName() string { return "VariableMapValidationError" } + +// Error satisfies the builtin error interface +func (e VariableMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVariableMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VariableMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VariableMapValidationError{} + +// Validate checks the field values on TypedInterface with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TypedInterface) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetInputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TypedInterfaceValidationError{ + field: "Inputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetOutputs()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TypedInterfaceValidationError{ + field: "Outputs", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// TypedInterfaceValidationError is the validation error returned by +// TypedInterface.Validate if the designated constraints aren't met. +type TypedInterfaceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TypedInterfaceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TypedInterfaceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TypedInterfaceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TypedInterfaceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TypedInterfaceValidationError) ErrorName() string { return "TypedInterfaceValidationError" } + +// Error satisfies the builtin error interface +func (e TypedInterfaceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTypedInterface.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TypedInterfaceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TypedInterfaceValidationError{} + +// Validate checks the field values on Parameter with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Parameter) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetVar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterValidationError{ + field: "Var", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Behavior.(type) { + + case *Parameter_Default: + + if v, ok := interface{}(m.GetDefault()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParameterValidationError{ + field: "Default", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Parameter_Required: + // no validation rules for Required + + } + + return nil +} + +// ParameterValidationError is the validation error returned by +// Parameter.Validate if the designated constraints aren't met. +type ParameterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterValidationError) ErrorName() string { return "ParameterValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterValidationError{} + +// Validate checks the field values on ParameterMap with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ParameterMap) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Parameters + + return nil +} + +// ParameterMapValidationError is the validation error returned by +// ParameterMap.Validate if the designated constraints aren't met. +type ParameterMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterMapValidationError) ErrorName() string { return "ParameterMapValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameterMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterMapValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json new file mode 100644 index 0000000000..249d4d650e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/interface.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go new file mode 100644 index 0000000000..a8a055098d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go @@ -0,0 +1,1583 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/literals.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import _struct "github.com/golang/protobuf/ptypes/struct" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Primitive Types +type Primitive struct { + // Defines one of simple primitive types. These types will get translated into different programming languages as + // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + // + // Types that are valid to be assigned to Value: + // *Primitive_Integer + // *Primitive_FloatValue + // *Primitive_StringValue + // *Primitive_Boolean + // *Primitive_Datetime + // *Primitive_Duration + Value isPrimitive_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Primitive) Reset() { *m = Primitive{} } +func (m *Primitive) String() string { return proto.CompactTextString(m) } +func (*Primitive) ProtoMessage() {} +func (*Primitive) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{0} +} +func (m *Primitive) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Primitive.Unmarshal(m, b) +} +func (m *Primitive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Primitive.Marshal(b, m, deterministic) +} +func (dst *Primitive) XXX_Merge(src proto.Message) { + xxx_messageInfo_Primitive.Merge(dst, src) +} +func (m *Primitive) XXX_Size() int { + return xxx_messageInfo_Primitive.Size(m) +} +func (m *Primitive) XXX_DiscardUnknown() { + xxx_messageInfo_Primitive.DiscardUnknown(m) +} + +var xxx_messageInfo_Primitive proto.InternalMessageInfo + +type isPrimitive_Value interface { + isPrimitive_Value() +} + +type Primitive_Integer struct { + Integer int64 `protobuf:"varint,1,opt,name=integer,proto3,oneof"` +} + +type Primitive_FloatValue struct { + FloatValue float64 `protobuf:"fixed64,2,opt,name=float_value,json=floatValue,proto3,oneof"` +} + +type Primitive_StringValue struct { + StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Primitive_Boolean struct { + Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof"` +} + +type Primitive_Datetime struct { + Datetime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3,oneof"` +} + +type Primitive_Duration struct { + Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3,oneof"` +} + +func (*Primitive_Integer) isPrimitive_Value() {} + +func (*Primitive_FloatValue) isPrimitive_Value() {} + +func (*Primitive_StringValue) isPrimitive_Value() {} + +func (*Primitive_Boolean) isPrimitive_Value() {} + +func (*Primitive_Datetime) isPrimitive_Value() {} + +func (*Primitive_Duration) isPrimitive_Value() {} + +func (m *Primitive) GetValue() isPrimitive_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Primitive) GetInteger() int64 { + if x, ok := m.GetValue().(*Primitive_Integer); ok { + return x.Integer + } + return 0 +} + +func (m *Primitive) GetFloatValue() float64 { + if x, ok := m.GetValue().(*Primitive_FloatValue); ok { + return x.FloatValue + } + return 0 +} + +func (m *Primitive) GetStringValue() string { + if x, ok := m.GetValue().(*Primitive_StringValue); ok { + return x.StringValue + } + return "" +} + +func (m *Primitive) GetBoolean() bool { + if x, ok := m.GetValue().(*Primitive_Boolean); ok { + return x.Boolean + } + return false +} + +func (m *Primitive) GetDatetime() *timestamp.Timestamp { + if x, ok := m.GetValue().(*Primitive_Datetime); ok { + return x.Datetime + } + return nil +} + +func (m *Primitive) GetDuration() *duration.Duration { + if x, ok := m.GetValue().(*Primitive_Duration); ok { + return x.Duration + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Primitive) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Primitive_OneofMarshaler, _Primitive_OneofUnmarshaler, _Primitive_OneofSizer, []interface{}{ + (*Primitive_Integer)(nil), + (*Primitive_FloatValue)(nil), + (*Primitive_StringValue)(nil), + (*Primitive_Boolean)(nil), + (*Primitive_Datetime)(nil), + (*Primitive_Duration)(nil), + } +} + +func _Primitive_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Primitive) + // value + switch x := m.Value.(type) { + case *Primitive_Integer: + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Integer)) + case *Primitive_FloatValue: + b.EncodeVarint(2<<3 | proto.WireFixed64) + b.EncodeFixed64(math.Float64bits(x.FloatValue)) + case *Primitive_StringValue: + b.EncodeVarint(3<<3 | proto.WireBytes) + b.EncodeStringBytes(x.StringValue) + case *Primitive_Boolean: + t := uint64(0) + if x.Boolean { + t = 1 + } + b.EncodeVarint(4<<3 | proto.WireVarint) + b.EncodeVarint(t) + case *Primitive_Datetime: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Datetime); err != nil { + return err + } + case *Primitive_Duration: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Duration); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Primitive.Value has unexpected type %T", x) + } + return nil +} + +func _Primitive_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Primitive) + switch tag { + case 1: // value.integer + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Value = &Primitive_Integer{int64(x)} + return true, err + case 2: // value.float_value + if wire != proto.WireFixed64 { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeFixed64() + m.Value = &Primitive_FloatValue{math.Float64frombits(x)} + return true, err + case 3: // value.string_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Value = &Primitive_StringValue{x} + return true, err + case 4: // value.boolean + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Value = &Primitive_Boolean{x != 0} + return true, err + case 5: // value.datetime + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.Value = &Primitive_Datetime{msg} + return true, err + case 6: // value.duration + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(duration.Duration) + err := b.DecodeMessage(msg) + m.Value = &Primitive_Duration{msg} + return true, err + default: + return false, nil + } +} + +func _Primitive_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Primitive) + // value + switch x := m.Value.(type) { + case *Primitive_Integer: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Integer)) + case *Primitive_FloatValue: + n += 1 // tag and wire + n += 8 + case *Primitive_StringValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.StringValue))) + n += len(x.StringValue) + case *Primitive_Boolean: + n += 1 // tag and wire + n += 1 + case *Primitive_Datetime: + s := proto.Size(x.Datetime) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Primitive_Duration: + s := proto.Size(x.Duration) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +// undefined since it can be assigned to a scalar of any LiteralType. +type Void struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Void) Reset() { *m = Void{} } +func (m *Void) String() string { return proto.CompactTextString(m) } +func (*Void) ProtoMessage() {} +func (*Void) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{1} +} +func (m *Void) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Void.Unmarshal(m, b) +} +func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Void.Marshal(b, m, deterministic) +} +func (dst *Void) XXX_Merge(src proto.Message) { + xxx_messageInfo_Void.Merge(dst, src) +} +func (m *Void) XXX_Size() int { + return xxx_messageInfo_Void.Size(m) +} +func (m *Void) XXX_DiscardUnknown() { + xxx_messageInfo_Void.DiscardUnknown(m) +} + +var xxx_messageInfo_Void proto.InternalMessageInfo + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +type Blob struct { + Metadata *BlobMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Blob) Reset() { *m = Blob{} } +func (m *Blob) String() string { return proto.CompactTextString(m) } +func (*Blob) ProtoMessage() {} +func (*Blob) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{2} +} +func (m *Blob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Blob.Unmarshal(m, b) +} +func (m *Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Blob.Marshal(b, m, deterministic) +} +func (dst *Blob) XXX_Merge(src proto.Message) { + xxx_messageInfo_Blob.Merge(dst, src) +} +func (m *Blob) XXX_Size() int { + return xxx_messageInfo_Blob.Size(m) +} +func (m *Blob) XXX_DiscardUnknown() { + xxx_messageInfo_Blob.DiscardUnknown(m) +} + +var xxx_messageInfo_Blob proto.InternalMessageInfo + +func (m *Blob) GetMetadata() *BlobMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Blob) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +type BlobMetadata struct { + Type *BlobType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BlobMetadata) Reset() { *m = BlobMetadata{} } +func (m *BlobMetadata) String() string { return proto.CompactTextString(m) } +func (*BlobMetadata) ProtoMessage() {} +func (*BlobMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{3} +} +func (m *BlobMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BlobMetadata.Unmarshal(m, b) +} +func (m *BlobMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BlobMetadata.Marshal(b, m, deterministic) +} +func (dst *BlobMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlobMetadata.Merge(dst, src) +} +func (m *BlobMetadata) XXX_Size() int { + return xxx_messageInfo_BlobMetadata.Size(m) +} +func (m *BlobMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_BlobMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_BlobMetadata proto.InternalMessageInfo + +func (m *BlobMetadata) GetType() *BlobType { + if m != nil { + return m.Type + } + return nil +} + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +type Binary struct { + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Binary) Reset() { *m = Binary{} } +func (m *Binary) String() string { return proto.CompactTextString(m) } +func (*Binary) ProtoMessage() {} +func (*Binary) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{4} +} +func (m *Binary) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Binary.Unmarshal(m, b) +} +func (m *Binary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Binary.Marshal(b, m, deterministic) +} +func (dst *Binary) XXX_Merge(src proto.Message) { + xxx_messageInfo_Binary.Merge(dst, src) +} +func (m *Binary) XXX_Size() int { + return xxx_messageInfo_Binary.Size(m) +} +func (m *Binary) XXX_DiscardUnknown() { + xxx_messageInfo_Binary.DiscardUnknown(m) +} + +var xxx_messageInfo_Binary proto.InternalMessageInfo + +func (m *Binary) GetValue() []byte { + if m != nil { + return m.Value + } + return nil +} + +func (m *Binary) GetTag() string { + if m != nil { + return m.Tag + } + return "" +} + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +type Schema struct { + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Type *SchemaType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Schema) Reset() { *m = Schema{} } +func (m *Schema) String() string { return proto.CompactTextString(m) } +func (*Schema) ProtoMessage() {} +func (*Schema) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{5} +} +func (m *Schema) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Schema.Unmarshal(m, b) +} +func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Schema.Marshal(b, m, deterministic) +} +func (dst *Schema) XXX_Merge(src proto.Message) { + xxx_messageInfo_Schema.Merge(dst, src) +} +func (m *Schema) XXX_Size() int { + return xxx_messageInfo_Schema.Size(m) +} +func (m *Schema) XXX_DiscardUnknown() { + xxx_messageInfo_Schema.DiscardUnknown(m) +} + +var xxx_messageInfo_Schema proto.InternalMessageInfo + +func (m *Schema) GetUri() string { + if m != nil { + return m.Uri + } + return "" +} + +func (m *Schema) GetType() *SchemaType { + if m != nil { + return m.Type + } + return nil +} + +type Scalar struct { + // Types that are valid to be assigned to Value: + // *Scalar_Primitive + // *Scalar_Blob + // *Scalar_Binary + // *Scalar_Schema + // *Scalar_NoneType + // *Scalar_Error + // *Scalar_Generic + Value isScalar_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Scalar) Reset() { *m = Scalar{} } +func (m *Scalar) String() string { return proto.CompactTextString(m) } +func (*Scalar) ProtoMessage() {} +func (*Scalar) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{6} +} +func (m *Scalar) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Scalar.Unmarshal(m, b) +} +func (m *Scalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Scalar.Marshal(b, m, deterministic) +} +func (dst *Scalar) XXX_Merge(src proto.Message) { + xxx_messageInfo_Scalar.Merge(dst, src) +} +func (m *Scalar) XXX_Size() int { + return xxx_messageInfo_Scalar.Size(m) +} +func (m *Scalar) XXX_DiscardUnknown() { + xxx_messageInfo_Scalar.DiscardUnknown(m) +} + +var xxx_messageInfo_Scalar proto.InternalMessageInfo + +type isScalar_Value interface { + isScalar_Value() +} + +type Scalar_Primitive struct { + Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type Scalar_Blob struct { + Blob *Blob `protobuf:"bytes,2,opt,name=blob,proto3,oneof"` +} + +type Scalar_Binary struct { + Binary *Binary `protobuf:"bytes,3,opt,name=binary,proto3,oneof"` +} + +type Scalar_Schema struct { + Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3,oneof"` +} + +type Scalar_NoneType struct { + NoneType *Void `protobuf:"bytes,5,opt,name=none_type,json=noneType,proto3,oneof"` +} + +type Scalar_Error struct { + Error *Error `protobuf:"bytes,6,opt,name=error,proto3,oneof"` +} + +type Scalar_Generic struct { + Generic *_struct.Struct `protobuf:"bytes,7,opt,name=generic,proto3,oneof"` +} + +func (*Scalar_Primitive) isScalar_Value() {} + +func (*Scalar_Blob) isScalar_Value() {} + +func (*Scalar_Binary) isScalar_Value() {} + +func (*Scalar_Schema) isScalar_Value() {} + +func (*Scalar_NoneType) isScalar_Value() {} + +func (*Scalar_Error) isScalar_Value() {} + +func (*Scalar_Generic) isScalar_Value() {} + +func (m *Scalar) GetValue() isScalar_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Scalar) GetPrimitive() *Primitive { + if x, ok := m.GetValue().(*Scalar_Primitive); ok { + return x.Primitive + } + return nil +} + +func (m *Scalar) GetBlob() *Blob { + if x, ok := m.GetValue().(*Scalar_Blob); ok { + return x.Blob + } + return nil +} + +func (m *Scalar) GetBinary() *Binary { + if x, ok := m.GetValue().(*Scalar_Binary); ok { + return x.Binary + } + return nil +} + +func (m *Scalar) GetSchema() *Schema { + if x, ok := m.GetValue().(*Scalar_Schema); ok { + return x.Schema + } + return nil +} + +func (m *Scalar) GetNoneType() *Void { + if x, ok := m.GetValue().(*Scalar_NoneType); ok { + return x.NoneType + } + return nil +} + +func (m *Scalar) GetError() *Error { + if x, ok := m.GetValue().(*Scalar_Error); ok { + return x.Error + } + return nil +} + +func (m *Scalar) GetGeneric() *_struct.Struct { + if x, ok := m.GetValue().(*Scalar_Generic); ok { + return x.Generic + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Scalar) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Scalar_OneofMarshaler, _Scalar_OneofUnmarshaler, _Scalar_OneofSizer, []interface{}{ + (*Scalar_Primitive)(nil), + (*Scalar_Blob)(nil), + (*Scalar_Binary)(nil), + (*Scalar_Schema)(nil), + (*Scalar_NoneType)(nil), + (*Scalar_Error)(nil), + (*Scalar_Generic)(nil), + } +} + +func _Scalar_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Scalar) + // value + switch x := m.Value.(type) { + case *Scalar_Primitive: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Primitive); err != nil { + return err + } + case *Scalar_Blob: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Blob); err != nil { + return err + } + case *Scalar_Binary: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Binary); err != nil { + return err + } + case *Scalar_Schema: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Schema); err != nil { + return err + } + case *Scalar_NoneType: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.NoneType); err != nil { + return err + } + case *Scalar_Error: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case *Scalar_Generic: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Generic); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Scalar.Value has unexpected type %T", x) + } + return nil +} + +func _Scalar_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Scalar) + switch tag { + case 1: // value.primitive + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Primitive) + err := b.DecodeMessage(msg) + m.Value = &Scalar_Primitive{msg} + return true, err + case 2: // value.blob + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Blob) + err := b.DecodeMessage(msg) + m.Value = &Scalar_Blob{msg} + return true, err + case 3: // value.binary + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Binary) + err := b.DecodeMessage(msg) + m.Value = &Scalar_Binary{msg} + return true, err + case 4: // value.schema + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Schema) + err := b.DecodeMessage(msg) + m.Value = &Scalar_Schema{msg} + return true, err + case 5: // value.none_type + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Void) + err := b.DecodeMessage(msg) + m.Value = &Scalar_NoneType{msg} + return true, err + case 6: // value.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Error) + err := b.DecodeMessage(msg) + m.Value = &Scalar_Error{msg} + return true, err + case 7: // value.generic + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(_struct.Struct) + err := b.DecodeMessage(msg) + m.Value = &Scalar_Generic{msg} + return true, err + default: + return false, nil + } +} + +func _Scalar_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Scalar) + // value + switch x := m.Value.(type) { + case *Scalar_Primitive: + s := proto.Size(x.Primitive) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Scalar_Blob: + s := proto.Size(x.Blob) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Scalar_Binary: + s := proto.Size(x.Binary) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Scalar_Schema: + s := proto.Size(x.Schema) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Scalar_NoneType: + s := proto.Size(x.NoneType) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Scalar_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Scalar_Generic: + s := proto.Size(x.Generic) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +type Literal struct { + // Types that are valid to be assigned to Value: + // *Literal_Scalar + // *Literal_Collection + // *Literal_Map + Value isLiteral_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Literal) Reset() { *m = Literal{} } +func (m *Literal) String() string { return proto.CompactTextString(m) } +func (*Literal) ProtoMessage() {} +func (*Literal) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{7} +} +func (m *Literal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Literal.Unmarshal(m, b) +} +func (m *Literal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Literal.Marshal(b, m, deterministic) +} +func (dst *Literal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Literal.Merge(dst, src) +} +func (m *Literal) XXX_Size() int { + return xxx_messageInfo_Literal.Size(m) +} +func (m *Literal) XXX_DiscardUnknown() { + xxx_messageInfo_Literal.DiscardUnknown(m) +} + +var xxx_messageInfo_Literal proto.InternalMessageInfo + +type isLiteral_Value interface { + isLiteral_Value() +} + +type Literal_Scalar struct { + Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` +} + +type Literal_Collection struct { + Collection *LiteralCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` +} + +type Literal_Map struct { + Map *LiteralMap `protobuf:"bytes,3,opt,name=map,proto3,oneof"` +} + +func (*Literal_Scalar) isLiteral_Value() {} + +func (*Literal_Collection) isLiteral_Value() {} + +func (*Literal_Map) isLiteral_Value() {} + +func (m *Literal) GetValue() isLiteral_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *Literal) GetScalar() *Scalar { + if x, ok := m.GetValue().(*Literal_Scalar); ok { + return x.Scalar + } + return nil +} + +func (m *Literal) GetCollection() *LiteralCollection { + if x, ok := m.GetValue().(*Literal_Collection); ok { + return x.Collection + } + return nil +} + +func (m *Literal) GetMap() *LiteralMap { + if x, ok := m.GetValue().(*Literal_Map); ok { + return x.Map + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Literal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Literal_OneofMarshaler, _Literal_OneofUnmarshaler, _Literal_OneofSizer, []interface{}{ + (*Literal_Scalar)(nil), + (*Literal_Collection)(nil), + (*Literal_Map)(nil), + } +} + +func _Literal_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Literal) + // value + switch x := m.Value.(type) { + case *Literal_Scalar: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Scalar); err != nil { + return err + } + case *Literal_Collection: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Collection); err != nil { + return err + } + case *Literal_Map: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Map); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Literal.Value has unexpected type %T", x) + } + return nil +} + +func _Literal_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Literal) + switch tag { + case 1: // value.scalar + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Scalar) + err := b.DecodeMessage(msg) + m.Value = &Literal_Scalar{msg} + return true, err + case 2: // value.collection + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LiteralCollection) + err := b.DecodeMessage(msg) + m.Value = &Literal_Collection{msg} + return true, err + case 3: // value.map + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LiteralMap) + err := b.DecodeMessage(msg) + m.Value = &Literal_Map{msg} + return true, err + default: + return false, nil + } +} + +func _Literal_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Literal) + // value + switch x := m.Value.(type) { + case *Literal_Scalar: + s := proto.Size(x.Scalar) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Literal_Collection: + s := proto.Size(x.Collection) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Literal_Map: + s := proto.Size(x.Map) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type LiteralCollection struct { + Literals []*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralCollection) Reset() { *m = LiteralCollection{} } +func (m *LiteralCollection) String() string { return proto.CompactTextString(m) } +func (*LiteralCollection) ProtoMessage() {} +func (*LiteralCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{8} +} +func (m *LiteralCollection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralCollection.Unmarshal(m, b) +} +func (m *LiteralCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralCollection.Marshal(b, m, deterministic) +} +func (dst *LiteralCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralCollection.Merge(dst, src) +} +func (m *LiteralCollection) XXX_Size() int { + return xxx_messageInfo_LiteralCollection.Size(m) +} +func (m *LiteralCollection) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralCollection proto.InternalMessageInfo + +func (m *LiteralCollection) GetLiterals() []*Literal { + if m != nil { + return m.Literals + } + return nil +} + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type LiteralMap struct { + Literals map[string]*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralMap) Reset() { *m = LiteralMap{} } +func (m *LiteralMap) String() string { return proto.CompactTextString(m) } +func (*LiteralMap) ProtoMessage() {} +func (*LiteralMap) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{9} +} +func (m *LiteralMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralMap.Unmarshal(m, b) +} +func (m *LiteralMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralMap.Marshal(b, m, deterministic) +} +func (dst *LiteralMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralMap.Merge(dst, src) +} +func (m *LiteralMap) XXX_Size() int { + return xxx_messageInfo_LiteralMap.Size(m) +} +func (m *LiteralMap) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralMap.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralMap proto.InternalMessageInfo + +func (m *LiteralMap) GetLiterals() map[string]*Literal { + if m != nil { + return m.Literals + } + return nil +} + +// A collection of BindingData items. +type BindingDataCollection struct { + Bindings []*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingDataCollection) Reset() { *m = BindingDataCollection{} } +func (m *BindingDataCollection) String() string { return proto.CompactTextString(m) } +func (*BindingDataCollection) ProtoMessage() {} +func (*BindingDataCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{10} +} +func (m *BindingDataCollection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingDataCollection.Unmarshal(m, b) +} +func (m *BindingDataCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingDataCollection.Marshal(b, m, deterministic) +} +func (dst *BindingDataCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingDataCollection.Merge(dst, src) +} +func (m *BindingDataCollection) XXX_Size() int { + return xxx_messageInfo_BindingDataCollection.Size(m) +} +func (m *BindingDataCollection) XXX_DiscardUnknown() { + xxx_messageInfo_BindingDataCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingDataCollection proto.InternalMessageInfo + +func (m *BindingDataCollection) GetBindings() []*BindingData { + if m != nil { + return m.Bindings + } + return nil +} + +// A map of BindingData items. +type BindingDataMap struct { + Bindings map[string]*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingDataMap) Reset() { *m = BindingDataMap{} } +func (m *BindingDataMap) String() string { return proto.CompactTextString(m) } +func (*BindingDataMap) ProtoMessage() {} +func (*BindingDataMap) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{11} +} +func (m *BindingDataMap) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingDataMap.Unmarshal(m, b) +} +func (m *BindingDataMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingDataMap.Marshal(b, m, deterministic) +} +func (dst *BindingDataMap) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingDataMap.Merge(dst, src) +} +func (m *BindingDataMap) XXX_Size() int { + return xxx_messageInfo_BindingDataMap.Size(m) +} +func (m *BindingDataMap) XXX_DiscardUnknown() { + xxx_messageInfo_BindingDataMap.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingDataMap proto.InternalMessageInfo + +func (m *BindingDataMap) GetBindings() map[string]*BindingData { + if m != nil { + return m.Bindings + } + return nil +} + +// Specifies either a simple value or a reference to another output. +type BindingData struct { + // Types that are valid to be assigned to Value: + // *BindingData_Scalar + // *BindingData_Collection + // *BindingData_Promise + // *BindingData_Map + Value isBindingData_Value `protobuf_oneof:"value"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingData) Reset() { *m = BindingData{} } +func (m *BindingData) String() string { return proto.CompactTextString(m) } +func (*BindingData) ProtoMessage() {} +func (*BindingData) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{12} +} +func (m *BindingData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingData.Unmarshal(m, b) +} +func (m *BindingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingData.Marshal(b, m, deterministic) +} +func (dst *BindingData) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingData.Merge(dst, src) +} +func (m *BindingData) XXX_Size() int { + return xxx_messageInfo_BindingData.Size(m) +} +func (m *BindingData) XXX_DiscardUnknown() { + xxx_messageInfo_BindingData.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingData proto.InternalMessageInfo + +type isBindingData_Value interface { + isBindingData_Value() +} + +type BindingData_Scalar struct { + Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` +} + +type BindingData_Collection struct { + Collection *BindingDataCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` +} + +type BindingData_Promise struct { + Promise *OutputReference `protobuf:"bytes,3,opt,name=promise,proto3,oneof"` +} + +type BindingData_Map struct { + Map *BindingDataMap `protobuf:"bytes,4,opt,name=map,proto3,oneof"` +} + +func (*BindingData_Scalar) isBindingData_Value() {} + +func (*BindingData_Collection) isBindingData_Value() {} + +func (*BindingData_Promise) isBindingData_Value() {} + +func (*BindingData_Map) isBindingData_Value() {} + +func (m *BindingData) GetValue() isBindingData_Value { + if m != nil { + return m.Value + } + return nil +} + +func (m *BindingData) GetScalar() *Scalar { + if x, ok := m.GetValue().(*BindingData_Scalar); ok { + return x.Scalar + } + return nil +} + +func (m *BindingData) GetCollection() *BindingDataCollection { + if x, ok := m.GetValue().(*BindingData_Collection); ok { + return x.Collection + } + return nil +} + +func (m *BindingData) GetPromise() *OutputReference { + if x, ok := m.GetValue().(*BindingData_Promise); ok { + return x.Promise + } + return nil +} + +func (m *BindingData) GetMap() *BindingDataMap { + if x, ok := m.GetValue().(*BindingData_Map); ok { + return x.Map + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*BindingData) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _BindingData_OneofMarshaler, _BindingData_OneofUnmarshaler, _BindingData_OneofSizer, []interface{}{ + (*BindingData_Scalar)(nil), + (*BindingData_Collection)(nil), + (*BindingData_Promise)(nil), + (*BindingData_Map)(nil), + } +} + +func _BindingData_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*BindingData) + // value + switch x := m.Value.(type) { + case *BindingData_Scalar: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Scalar); err != nil { + return err + } + case *BindingData_Collection: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Collection); err != nil { + return err + } + case *BindingData_Promise: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Promise); err != nil { + return err + } + case *BindingData_Map: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Map); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("BindingData.Value has unexpected type %T", x) + } + return nil +} + +func _BindingData_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*BindingData) + switch tag { + case 1: // value.scalar + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Scalar) + err := b.DecodeMessage(msg) + m.Value = &BindingData_Scalar{msg} + return true, err + case 2: // value.collection + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BindingDataCollection) + err := b.DecodeMessage(msg) + m.Value = &BindingData_Collection{msg} + return true, err + case 3: // value.promise + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(OutputReference) + err := b.DecodeMessage(msg) + m.Value = &BindingData_Promise{msg} + return true, err + case 4: // value.map + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BindingDataMap) + err := b.DecodeMessage(msg) + m.Value = &BindingData_Map{msg} + return true, err + default: + return false, nil + } +} + +func _BindingData_OneofSizer(msg proto.Message) (n int) { + m := msg.(*BindingData) + // value + switch x := m.Value.(type) { + case *BindingData_Scalar: + s := proto.Size(x.Scalar) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BindingData_Collection: + s := proto.Size(x.Collection) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BindingData_Promise: + s := proto.Size(x.Promise) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *BindingData_Map: + s := proto.Size(x.Map) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// An input/output binding of a variable to either static value or a node output. +type Binding struct { + // Variable name must match an input/output variable of the node. + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // Data to use to bind this variable. + Binding *BindingData `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Binding) Reset() { *m = Binding{} } +func (m *Binding) String() string { return proto.CompactTextString(m) } +func (*Binding) ProtoMessage() {} +func (*Binding) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{13} +} +func (m *Binding) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Binding.Unmarshal(m, b) +} +func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Binding.Marshal(b, m, deterministic) +} +func (dst *Binding) XXX_Merge(src proto.Message) { + xxx_messageInfo_Binding.Merge(dst, src) +} +func (m *Binding) XXX_Size() int { + return xxx_messageInfo_Binding.Size(m) +} +func (m *Binding) XXX_DiscardUnknown() { + xxx_messageInfo_Binding.DiscardUnknown(m) +} + +var xxx_messageInfo_Binding proto.InternalMessageInfo + +func (m *Binding) GetVar() string { + if m != nil { + return m.Var + } + return "" +} + +func (m *Binding) GetBinding() *BindingData { + if m != nil { + return m.Binding + } + return nil +} + +// A generic key value pair. +type KeyValuePair struct { + // required. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // +optional. + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } +func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } +func (*KeyValuePair) ProtoMessage() {} +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{14} +} +func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) +} +func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) +} +func (dst *KeyValuePair) XXX_Merge(src proto.Message) { + xxx_messageInfo_KeyValuePair.Merge(dst, src) +} +func (m *KeyValuePair) XXX_Size() int { + return xxx_messageInfo_KeyValuePair.Size(m) +} +func (m *KeyValuePair) XXX_DiscardUnknown() { + xxx_messageInfo_KeyValuePair.DiscardUnknown(m) +} + +var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo + +func (m *KeyValuePair) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *KeyValuePair) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// Retry strategy associated with an executable unit. +type RetryStrategy struct { + // Number of retries. Retries will be consumed when the job fails with a recoverable error. + // The number of retries must be less than or equals to 10. + Retries uint32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetryStrategy) Reset() { *m = RetryStrategy{} } +func (m *RetryStrategy) String() string { return proto.CompactTextString(m) } +func (*RetryStrategy) ProtoMessage() {} +func (*RetryStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_literals_08dbad4c489f7d4f, []int{15} +} +func (m *RetryStrategy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetryStrategy.Unmarshal(m, b) +} +func (m *RetryStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetryStrategy.Marshal(b, m, deterministic) +} +func (dst *RetryStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetryStrategy.Merge(dst, src) +} +func (m *RetryStrategy) XXX_Size() int { + return xxx_messageInfo_RetryStrategy.Size(m) +} +func (m *RetryStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_RetryStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_RetryStrategy proto.InternalMessageInfo + +func (m *RetryStrategy) GetRetries() uint32 { + if m != nil { + return m.Retries + } + return 0 +} + +func init() { + proto.RegisterType((*Primitive)(nil), "flyteidl.core.Primitive") + proto.RegisterType((*Void)(nil), "flyteidl.core.Void") + proto.RegisterType((*Blob)(nil), "flyteidl.core.Blob") + proto.RegisterType((*BlobMetadata)(nil), "flyteidl.core.BlobMetadata") + proto.RegisterType((*Binary)(nil), "flyteidl.core.Binary") + proto.RegisterType((*Schema)(nil), "flyteidl.core.Schema") + proto.RegisterType((*Scalar)(nil), "flyteidl.core.Scalar") + proto.RegisterType((*Literal)(nil), "flyteidl.core.Literal") + proto.RegisterType((*LiteralCollection)(nil), "flyteidl.core.LiteralCollection") + proto.RegisterType((*LiteralMap)(nil), "flyteidl.core.LiteralMap") + proto.RegisterMapType((map[string]*Literal)(nil), "flyteidl.core.LiteralMap.LiteralsEntry") + proto.RegisterType((*BindingDataCollection)(nil), "flyteidl.core.BindingDataCollection") + proto.RegisterType((*BindingDataMap)(nil), "flyteidl.core.BindingDataMap") + proto.RegisterMapType((map[string]*BindingData)(nil), "flyteidl.core.BindingDataMap.BindingsEntry") + proto.RegisterType((*BindingData)(nil), "flyteidl.core.BindingData") + proto.RegisterType((*Binding)(nil), "flyteidl.core.Binding") + proto.RegisterType((*KeyValuePair)(nil), "flyteidl.core.KeyValuePair") + proto.RegisterType((*RetryStrategy)(nil), "flyteidl.core.RetryStrategy") +} + +func init() { + proto.RegisterFile("flyteidl/core/literals.proto", fileDescriptor_literals_08dbad4c489f7d4f) +} + +var fileDescriptor_literals_08dbad4c489f7d4f = []byte{ + // 908 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x8e, 0xdb, 0x44, + 0x14, 0x8e, 0x37, 0xd9, 0x38, 0x39, 0xd9, 0x20, 0x18, 0xb6, 0xe0, 0x86, 0x52, 0x82, 0x41, 0x22, + 0x55, 0xd9, 0x78, 0x49, 0x51, 0x59, 0x95, 0xbb, 0xb4, 0xa5, 0x41, 0x50, 0xb5, 0x9d, 0x54, 0x45, + 0xe2, 0xa6, 0x1a, 0x27, 0x13, 0x77, 0x54, 0xc7, 0x63, 0x4d, 0x26, 0x2b, 0xf9, 0x09, 0x78, 0x13, + 0x1e, 0x80, 0x0b, 0x5e, 0x8b, 0x37, 0x40, 0x68, 0xfe, 0x9c, 0x1f, 0x27, 0x15, 0xbd, 0x1b, 0xcf, + 0xf9, 0xce, 0x99, 0xef, 0x7c, 0xe7, 0x9b, 0x49, 0xe0, 0xd6, 0x22, 0x2d, 0x24, 0x65, 0xf3, 0x34, + 0x9a, 0x71, 0x41, 0xa3, 0x94, 0x49, 0x2a, 0x48, 0xba, 0x1a, 0xe6, 0x82, 0x4b, 0x8e, 0xba, 0x2e, + 0x3a, 0x54, 0xd1, 0xde, 0x17, 0x09, 0xe7, 0x49, 0x4a, 0x23, 0x1d, 0x8c, 0xd7, 0x8b, 0x48, 0xb2, + 0x25, 0x5d, 0x49, 0xb2, 0xcc, 0x0d, 0xbe, 0x77, 0x7b, 0x1f, 0x30, 0x5f, 0x0b, 0x22, 0x19, 0xcf, + 0x6c, 0xfc, 0xd6, 0x7e, 0x7c, 0x25, 0xc5, 0x7a, 0x26, 0x6d, 0xf4, 0xe6, 0x2e, 0x17, 0x59, 0xe4, + 0xd4, 0x12, 0x09, 0xff, 0x38, 0x81, 0xf6, 0x73, 0xc1, 0x96, 0x4c, 0xb2, 0x6b, 0x8a, 0x7a, 0xe0, + 0xb3, 0x4c, 0xd2, 0x84, 0x8a, 0xc0, 0xeb, 0x7b, 0x83, 0xfa, 0xa4, 0x86, 0xdd, 0x06, 0xfa, 0x12, + 0x3a, 0x8b, 0x94, 0x13, 0xf9, 0xfa, 0x9a, 0xa4, 0x6b, 0x1a, 0x9c, 0xf4, 0xbd, 0x81, 0x37, 0xa9, + 0x61, 0xd0, 0x9b, 0xaf, 0xd4, 0x1e, 0xfa, 0x0a, 0xce, 0x56, 0x52, 0xb0, 0x2c, 0xb1, 0x98, 0x7a, + 0xdf, 0x1b, 0xb4, 0x27, 0x35, 0xdc, 0x31, 0xbb, 0x06, 0xd4, 0x03, 0x3f, 0xe6, 0x3c, 0xa5, 0x24, + 0x0b, 0x1a, 0x7d, 0x6f, 0xd0, 0x52, 0x67, 0xd8, 0x0d, 0x74, 0x05, 0xad, 0x39, 0x91, 0x54, 0x75, + 0x1f, 0x9c, 0xf6, 0xbd, 0x41, 0x67, 0xd4, 0x1b, 0x9a, 0xce, 0x86, 0xae, 0xb3, 0xe1, 0x4b, 0x27, + 0xcd, 0xa4, 0x86, 0x4b, 0x34, 0xfa, 0x01, 0x5a, 0x4e, 0x92, 0xa0, 0xa9, 0x33, 0x6f, 0x56, 0x32, + 0x1f, 0x59, 0x80, 0x4e, 0xb4, 0xeb, 0xb1, 0x0f, 0xa7, 0x9a, 0x6c, 0xd8, 0x84, 0xc6, 0x2b, 0xce, + 0xe6, 0xe1, 0x0b, 0x68, 0x8c, 0x53, 0x1e, 0xab, 0x8a, 0x4b, 0x2a, 0xc9, 0x9c, 0x48, 0xa2, 0xc5, + 0xe8, 0x8c, 0x3e, 0x1b, 0xee, 0x4c, 0x6d, 0xa8, 0x60, 0x4f, 0x2d, 0x04, 0x97, 0x60, 0xf4, 0x21, + 0xd4, 0xd7, 0x82, 0x99, 0xe6, 0xb1, 0x5a, 0x86, 0x3f, 0xc2, 0xd9, 0x36, 0x16, 0xdd, 0x85, 0x86, + 0x9a, 0x81, 0x2d, 0xfb, 0xe9, 0x81, 0xb2, 0x2f, 0x8b, 0x9c, 0x62, 0x0d, 0x0a, 0x2f, 0xa1, 0x39, + 0x66, 0x19, 0x11, 0x05, 0x3a, 0xb7, 0x54, 0x75, 0xde, 0x19, 0x36, 0x1f, 0xea, 0x38, 0x49, 0x12, + 0x3d, 0x8f, 0x36, 0x56, 0xcb, 0xf0, 0x67, 0x68, 0x4e, 0x67, 0x6f, 0xe8, 0xb2, 0xa4, 0xe2, 0x95, + 0x54, 0xd0, 0x85, 0x3d, 0xba, 0x6e, 0x35, 0xda, 0x3d, 0xda, 0xa4, 0x6d, 0x1d, 0xfe, 0xcf, 0x89, + 0xaa, 0x45, 0x52, 0x22, 0xd0, 0x15, 0xb4, 0x73, 0x67, 0x14, 0xcb, 0x3c, 0xd8, 0x4b, 0x2f, 0x8d, + 0x34, 0xa9, 0xe1, 0x0d, 0x18, 0xdd, 0x81, 0x46, 0x9c, 0xf2, 0x58, 0x53, 0xec, 0x8c, 0x3e, 0x3e, + 0xd0, 0xee, 0xa4, 0x86, 0x35, 0x04, 0x45, 0xd0, 0x8c, 0x75, 0xb3, 0x96, 0xe0, 0x8d, 0x7d, 0xb0, + 0x0e, 0x4e, 0x6a, 0xd8, 0xc2, 0x54, 0xc2, 0x4a, 0x93, 0xd6, 0x66, 0xaa, 0x26, 0x98, 0x8e, 0x54, + 0x82, 0x81, 0xa1, 0x11, 0xb4, 0x33, 0x9e, 0xd1, 0xd7, 0x5a, 0x85, 0xd3, 0x83, 0x8c, 0x94, 0x0d, + 0x94, 0x47, 0x14, 0x4e, 0x69, 0x81, 0xbe, 0x85, 0x53, 0x2a, 0x04, 0x17, 0xd6, 0x59, 0xe7, 0x7b, + 0xf8, 0xc7, 0x2a, 0x36, 0xa9, 0x61, 0x03, 0x42, 0xf7, 0xc0, 0x4f, 0x68, 0x46, 0x05, 0x9b, 0x05, + 0xbe, 0x1d, 0xf0, 0xbe, 0x13, 0xa7, 0xfa, 0x76, 0x2a, 0xe7, 0x5b, 0xe4, 0xc6, 0x86, 0x7f, 0x7b, + 0xe0, 0xff, 0x6a, 0x1e, 0x0b, 0xd3, 0x9c, 0x12, 0xdf, 0xea, 0x5d, 0x6d, 0x4e, 0x05, 0x4d, 0x73, + 0x7a, 0x46, 0x63, 0x80, 0x19, 0x4f, 0x53, 0x3a, 0xd3, 0xf7, 0xc0, 0xe8, 0xdd, 0xdf, 0x4b, 0xb2, + 0xc5, 0x1f, 0x96, 0x38, 0x75, 0x89, 0x37, 0x59, 0xe8, 0x02, 0xea, 0x4b, 0x92, 0x1f, 0x31, 0x88, + 0x4d, 0x7e, 0x4a, 0xd4, 0xed, 0x53, 0xb8, 0x0d, 0xf1, 0x27, 0xf0, 0x51, 0xa5, 0x34, 0x1a, 0x41, + 0xcb, 0xbd, 0x7c, 0x81, 0xd7, 0xaf, 0x0f, 0x3a, 0xa3, 0x4f, 0x0e, 0x57, 0xc4, 0x25, 0x2e, 0xfc, + 0xd3, 0x03, 0xd8, 0x9c, 0x83, 0x1e, 0x56, 0x4a, 0x7c, 0x73, 0x94, 0x94, 0x5b, 0xae, 0x1e, 0x67, + 0x52, 0x14, 0x9b, 0x9a, 0xbd, 0x29, 0x74, 0x77, 0x42, 0xea, 0x66, 0xbc, 0xa5, 0x85, 0xbb, 0x19, + 0x6f, 0x69, 0xa1, 0x86, 0xbc, 0x79, 0xd9, 0x8e, 0xf3, 0x34, 0xa0, 0x07, 0x27, 0x57, 0x5e, 0xf8, + 0x0c, 0x6e, 0x8c, 0x59, 0x36, 0x67, 0x59, 0xf2, 0x88, 0x48, 0xb2, 0xd5, 0xf5, 0x7d, 0x68, 0xc5, + 0x26, 0xe0, 0x28, 0xf7, 0xaa, 0x3e, 0x76, 0x79, 0xb8, 0xc4, 0x86, 0x7f, 0x79, 0xf0, 0xc1, 0x56, + 0x44, 0x75, 0xff, 0xa4, 0x52, 0xea, 0xee, 0xf1, 0x52, 0x4a, 0x01, 0xfb, 0xe9, 0x14, 0x70, 0xc9, + 0xbd, 0xdf, 0xa0, 0xbb, 0x13, 0x3a, 0xa0, 0xc0, 0xe5, 0xae, 0x02, 0xef, 0xe2, 0xbc, 0xa5, 0xc2, + 0xbf, 0x1e, 0x74, 0xb6, 0x42, 0xef, 0x6f, 0xda, 0x9f, 0x0e, 0x98, 0xf6, 0xeb, 0xe3, 0x67, 0x1f, + 0x35, 0xee, 0x03, 0xf0, 0x73, 0xc1, 0x97, 0x6c, 0xe5, 0x5e, 0xb7, 0xdb, 0x7b, 0x45, 0x9e, 0xad, + 0x65, 0xbe, 0x96, 0x98, 0x2e, 0xa8, 0xa0, 0xd9, 0x4c, 0x3d, 0x52, 0x2e, 0x01, 0x7d, 0x67, 0x4c, + 0x6f, 0xde, 0x90, 0xcf, 0xdf, 0xa9, 0x70, 0xc5, 0xf8, 0x2f, 0xc0, 0xb7, 0x08, 0xa5, 0xe9, 0xb5, + 0x6d, 0xbc, 0x8d, 0xd5, 0x12, 0x7d, 0x0f, 0xbe, 0x1d, 0xc1, 0xff, 0x50, 0xd5, 0x41, 0xc3, 0xfb, + 0x70, 0xf6, 0x0b, 0x2d, 0xf4, 0xef, 0xe5, 0x73, 0xc2, 0xc4, 0x81, 0x59, 0x9d, 0x6f, 0xcf, 0xaa, + 0x6d, 0xe7, 0x11, 0xde, 0x81, 0x2e, 0xa6, 0x52, 0x14, 0x53, 0x29, 0x88, 0xa4, 0x49, 0x81, 0x02, + 0xf0, 0x05, 0x95, 0x82, 0xd1, 0x95, 0x7e, 0xeb, 0xba, 0xd8, 0x7d, 0x8e, 0x47, 0xbf, 0x5f, 0x26, + 0x4c, 0xbe, 0x59, 0xc7, 0xc3, 0x19, 0x5f, 0x46, 0x69, 0xb1, 0x90, 0x51, 0xf9, 0x2f, 0x21, 0xa1, + 0x59, 0x94, 0xc7, 0x17, 0x09, 0x8f, 0x76, 0xfe, 0x38, 0xc4, 0x4d, 0xfd, 0x80, 0xdd, 0xfb, 0x2f, + 0x00, 0x00, 0xff, 0xff, 0x4b, 0x7b, 0x8a, 0xb2, 0xdc, 0x08, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go new file mode 100644 index 0000000000..c2fb918463 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.validate.go @@ -0,0 +1,1379 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/literals.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on Primitive with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Primitive) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *Primitive_Integer: + // no validation rules for Integer + + case *Primitive_FloatValue: + // no validation rules for FloatValue + + case *Primitive_StringValue: + // no validation rules for StringValue + + case *Primitive_Boolean: + // no validation rules for Boolean + + case *Primitive_Datetime: + + if v, ok := interface{}(m.GetDatetime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PrimitiveValidationError{ + field: "Datetime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Primitive_Duration: + + if v, ok := interface{}(m.GetDuration()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return PrimitiveValidationError{ + field: "Duration", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// PrimitiveValidationError is the validation error returned by +// Primitive.Validate if the designated constraints aren't met. +type PrimitiveValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e PrimitiveValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e PrimitiveValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e PrimitiveValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e PrimitiveValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e PrimitiveValidationError) ErrorName() string { return "PrimitiveValidationError" } + +// Error satisfies the builtin error interface +func (e PrimitiveValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sPrimitive.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = PrimitiveValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = PrimitiveValidationError{} + +// Validate checks the field values on Void with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Void) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// VoidValidationError is the validation error returned by Void.Validate if the +// designated constraints aren't met. +type VoidValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e VoidValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e VoidValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e VoidValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e VoidValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e VoidValidationError) ErrorName() string { return "VoidValidationError" } + +// Error satisfies the builtin error interface +func (e VoidValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sVoid.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = VoidValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = VoidValidationError{} + +// Validate checks the field values on Blob with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Blob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BlobValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Uri + + return nil +} + +// BlobValidationError is the validation error returned by Blob.Validate if the +// designated constraints aren't met. +type BlobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BlobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BlobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BlobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BlobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BlobValidationError) ErrorName() string { return "BlobValidationError" } + +// Error satisfies the builtin error interface +func (e BlobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBlob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BlobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BlobValidationError{} + +// Validate checks the field values on BlobMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BlobMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BlobMetadataValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BlobMetadataValidationError is the validation error returned by +// BlobMetadata.Validate if the designated constraints aren't met. +type BlobMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BlobMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BlobMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BlobMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BlobMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BlobMetadataValidationError) ErrorName() string { return "BlobMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e BlobMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBlobMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BlobMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BlobMetadataValidationError{} + +// Validate checks the field values on Binary with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Binary) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Value + + // no validation rules for Tag + + return nil +} + +// BinaryValidationError is the validation error returned by Binary.Validate if +// the designated constraints aren't met. +type BinaryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BinaryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BinaryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BinaryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BinaryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BinaryValidationError) ErrorName() string { return "BinaryValidationError" } + +// Error satisfies the builtin error interface +func (e BinaryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBinary.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BinaryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BinaryValidationError{} + +// Validate checks the field values on Schema with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Schema) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Uri + + if v, ok := interface{}(m.GetType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SchemaValidationError{ + field: "Type", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// SchemaValidationError is the validation error returned by Schema.Validate if +// the designated constraints aren't met. +type SchemaValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SchemaValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SchemaValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SchemaValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SchemaValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SchemaValidationError) ErrorName() string { return "SchemaValidationError" } + +// Error satisfies the builtin error interface +func (e SchemaValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchema.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SchemaValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SchemaValidationError{} + +// Validate checks the field values on Scalar with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Scalar) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *Scalar_Primitive: + + if v, ok := interface{}(m.GetPrimitive()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Primitive", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Blob: + + if v, ok := interface{}(m.GetBlob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Blob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Binary: + + if v, ok := interface{}(m.GetBinary()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Binary", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Schema: + + if v, ok := interface{}(m.GetSchema()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Schema", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_NoneType: + + if v, ok := interface{}(m.GetNoneType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "NoneType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Scalar_Generic: + + if v, ok := interface{}(m.GetGeneric()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ScalarValidationError{ + field: "Generic", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ScalarValidationError is the validation error returned by Scalar.Validate if +// the designated constraints aren't met. +type ScalarValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ScalarValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ScalarValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ScalarValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ScalarValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ScalarValidationError) ErrorName() string { return "ScalarValidationError" } + +// Error satisfies the builtin error interface +func (e ScalarValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sScalar.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ScalarValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ScalarValidationError{} + +// Validate checks the field values on Literal with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Literal) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *Literal_Scalar: + + if v, ok := interface{}(m.GetScalar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralValidationError{ + field: "Scalar", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Literal_Collection: + + if v, ok := interface{}(m.GetCollection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralValidationError{ + field: "Collection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Literal_Map: + + if v, ok := interface{}(m.GetMap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralValidationError{ + field: "Map", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralValidationError is the validation error returned by Literal.Validate +// if the designated constraints aren't met. +type LiteralValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralValidationError) ErrorName() string { return "LiteralValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteral.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralValidationError{} + +// Validate checks the field values on LiteralCollection with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *LiteralCollection) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetLiterals() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralCollectionValidationError{ + field: fmt.Sprintf("Literals[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralCollectionValidationError is the validation error returned by +// LiteralCollection.Validate if the designated constraints aren't met. +type LiteralCollectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralCollectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralCollectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralCollectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralCollectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralCollectionValidationError) ErrorName() string { + return "LiteralCollectionValidationError" +} + +// Error satisfies the builtin error interface +func (e LiteralCollectionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralCollection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralCollectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralCollectionValidationError{} + +// Validate checks the field values on LiteralMap with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *LiteralMap) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Literals + + return nil +} + +// LiteralMapValidationError is the validation error returned by +// LiteralMap.Validate if the designated constraints aren't met. +type LiteralMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralMapValidationError) ErrorName() string { return "LiteralMapValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralMapValidationError{} + +// Validate checks the field values on BindingDataCollection with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *BindingDataCollection) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetBindings() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataCollectionValidationError{ + field: fmt.Sprintf("Bindings[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BindingDataCollectionValidationError is the validation error returned by +// BindingDataCollection.Validate if the designated constraints aren't met. +type BindingDataCollectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingDataCollectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingDataCollectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingDataCollectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingDataCollectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingDataCollectionValidationError) ErrorName() string { + return "BindingDataCollectionValidationError" +} + +// Error satisfies the builtin error interface +func (e BindingDataCollectionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBindingDataCollection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingDataCollectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingDataCollectionValidationError{} + +// Validate checks the field values on BindingDataMap with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BindingDataMap) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Bindings + + return nil +} + +// BindingDataMapValidationError is the validation error returned by +// BindingDataMap.Validate if the designated constraints aren't met. +type BindingDataMapValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingDataMapValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingDataMapValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingDataMapValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingDataMapValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingDataMapValidationError) ErrorName() string { return "BindingDataMapValidationError" } + +// Error satisfies the builtin error interface +func (e BindingDataMapValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBindingDataMap.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingDataMapValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingDataMapValidationError{} + +// Validate checks the field values on BindingData with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *BindingData) Validate() error { + if m == nil { + return nil + } + + switch m.Value.(type) { + + case *BindingData_Scalar: + + if v, ok := interface{}(m.GetScalar()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Scalar", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BindingData_Collection: + + if v, ok := interface{}(m.GetCollection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Collection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BindingData_Promise: + + if v, ok := interface{}(m.GetPromise()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Promise", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *BindingData_Map: + + if v, ok := interface{}(m.GetMap()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingDataValidationError{ + field: "Map", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// BindingDataValidationError is the validation error returned by +// BindingData.Validate if the designated constraints aren't met. +type BindingDataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingDataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingDataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingDataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingDataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingDataValidationError) ErrorName() string { return "BindingDataValidationError" } + +// Error satisfies the builtin error interface +func (e BindingDataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBindingData.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingDataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingDataValidationError{} + +// Validate checks the field values on Binding with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Binding) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Var + + if v, ok := interface{}(m.GetBinding()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BindingValidationError{ + field: "Binding", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BindingValidationError is the validation error returned by Binding.Validate +// if the designated constraints aren't met. +type BindingValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BindingValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BindingValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BindingValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BindingValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BindingValidationError) ErrorName() string { return "BindingValidationError" } + +// Error satisfies the builtin error interface +func (e BindingValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBinding.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BindingValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BindingValidationError{} + +// Validate checks the field values on KeyValuePair with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *KeyValuePair) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Key + + // no validation rules for Value + + return nil +} + +// KeyValuePairValidationError is the validation error returned by +// KeyValuePair.Validate if the designated constraints aren't met. +type KeyValuePairValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e KeyValuePairValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e KeyValuePairValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e KeyValuePairValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e KeyValuePairValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e KeyValuePairValidationError) ErrorName() string { return "KeyValuePairValidationError" } + +// Error satisfies the builtin error interface +func (e KeyValuePairValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sKeyValuePair.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = KeyValuePairValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = KeyValuePairValidationError{} + +// Validate checks the field values on RetryStrategy with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *RetryStrategy) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Retries + + return nil +} + +// RetryStrategyValidationError is the validation error returned by +// RetryStrategy.Validate if the designated constraints aren't met. +type RetryStrategyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RetryStrategyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RetryStrategyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RetryStrategyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RetryStrategyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RetryStrategyValidationError) ErrorName() string { return "RetryStrategyValidationError" } + +// Error satisfies the builtin error interface +func (e RetryStrategyValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRetryStrategy.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RetryStrategyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RetryStrategyValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json new file mode 100644 index 0000000000..9e24ec5e5f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/literals.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go new file mode 100644 index 0000000000..eeac738e2f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go @@ -0,0 +1,697 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/tasks.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" +import _struct "github.com/golang/protobuf/ptypes/struct" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Known resource names. +type Resources_ResourceName int32 + +const ( + Resources_UNKNOWN Resources_ResourceName = 0 + Resources_CPU Resources_ResourceName = 1 + Resources_GPU Resources_ResourceName = 2 + Resources_MEMORY Resources_ResourceName = 3 + Resources_STORAGE Resources_ResourceName = 4 +) + +var Resources_ResourceName_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CPU", + 2: "GPU", + 3: "MEMORY", + 4: "STORAGE", +} +var Resources_ResourceName_value = map[string]int32{ + "UNKNOWN": 0, + "CPU": 1, + "GPU": 2, + "MEMORY": 3, + "STORAGE": 4, +} + +func (x Resources_ResourceName) String() string { + return proto.EnumName(Resources_ResourceName_name, int32(x)) +} +func (Resources_ResourceName) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{0, 0} +} + +type RuntimeMetadata_RuntimeType int32 + +const ( + RuntimeMetadata_OTHER RuntimeMetadata_RuntimeType = 0 + RuntimeMetadata_FLYTE_SDK RuntimeMetadata_RuntimeType = 1 +) + +var RuntimeMetadata_RuntimeType_name = map[int32]string{ + 0: "OTHER", + 1: "FLYTE_SDK", +} +var RuntimeMetadata_RuntimeType_value = map[string]int32{ + "OTHER": 0, + "FLYTE_SDK": 1, +} + +func (x RuntimeMetadata_RuntimeType) String() string { + return proto.EnumName(RuntimeMetadata_RuntimeType_name, int32(x)) +} +func (RuntimeMetadata_RuntimeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{1, 0} +} + +// A customizable interface to convey resources requested for a container. This can be interpretted differently for different +// container engines. +type Resources struct { + // The desired set of resources requested. ResourceNames must be unique within the list. + Requests []*Resources_ResourceEntry `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + // within the list. + Limits []*Resources_ResourceEntry `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resources) Reset() { *m = Resources{} } +func (m *Resources) String() string { return proto.CompactTextString(m) } +func (*Resources) ProtoMessage() {} +func (*Resources) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{0} +} +func (m *Resources) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resources.Unmarshal(m, b) +} +func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resources.Marshal(b, m, deterministic) +} +func (dst *Resources) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resources.Merge(dst, src) +} +func (m *Resources) XXX_Size() int { + return xxx_messageInfo_Resources.Size(m) +} +func (m *Resources) XXX_DiscardUnknown() { + xxx_messageInfo_Resources.DiscardUnknown(m) +} + +var xxx_messageInfo_Resources proto.InternalMessageInfo + +func (m *Resources) GetRequests() []*Resources_ResourceEntry { + if m != nil { + return m.Requests + } + return nil +} + +func (m *Resources) GetLimits() []*Resources_ResourceEntry { + if m != nil { + return m.Limits + } + return nil +} + +// Encapsulates a resource name and value. +type Resources_ResourceEntry struct { + // Resource name. + Name Resources_ResourceName `protobuf:"varint,1,opt,name=name,proto3,enum=flyteidl.core.Resources_ResourceName" json:"name,omitempty"` + // Value must be a valid k8s quantity. See + // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Resources_ResourceEntry) Reset() { *m = Resources_ResourceEntry{} } +func (m *Resources_ResourceEntry) String() string { return proto.CompactTextString(m) } +func (*Resources_ResourceEntry) ProtoMessage() {} +func (*Resources_ResourceEntry) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{0, 0} +} +func (m *Resources_ResourceEntry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Resources_ResourceEntry.Unmarshal(m, b) +} +func (m *Resources_ResourceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Resources_ResourceEntry.Marshal(b, m, deterministic) +} +func (dst *Resources_ResourceEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Resources_ResourceEntry.Merge(dst, src) +} +func (m *Resources_ResourceEntry) XXX_Size() int { + return xxx_messageInfo_Resources_ResourceEntry.Size(m) +} +func (m *Resources_ResourceEntry) XXX_DiscardUnknown() { + xxx_messageInfo_Resources_ResourceEntry.DiscardUnknown(m) +} + +var xxx_messageInfo_Resources_ResourceEntry proto.InternalMessageInfo + +func (m *Resources_ResourceEntry) GetName() Resources_ResourceName { + if m != nil { + return m.Name + } + return Resources_UNKNOWN +} + +func (m *Resources_ResourceEntry) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// Runtime information. This is losely defined to allow for extensibility. +type RuntimeMetadata struct { + // Type of runtime. + Type RuntimeMetadata_RuntimeType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.core.RuntimeMetadata_RuntimeType" json:"type,omitempty"` + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version + // checks to ensure tighter validation or setting expectations. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + Flavor string `protobuf:"bytes,3,opt,name=flavor,proto3" json:"flavor,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RuntimeMetadata) Reset() { *m = RuntimeMetadata{} } +func (m *RuntimeMetadata) String() string { return proto.CompactTextString(m) } +func (*RuntimeMetadata) ProtoMessage() {} +func (*RuntimeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{1} +} +func (m *RuntimeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RuntimeMetadata.Unmarshal(m, b) +} +func (m *RuntimeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RuntimeMetadata.Marshal(b, m, deterministic) +} +func (dst *RuntimeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_RuntimeMetadata.Merge(dst, src) +} +func (m *RuntimeMetadata) XXX_Size() int { + return xxx_messageInfo_RuntimeMetadata.Size(m) +} +func (m *RuntimeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_RuntimeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_RuntimeMetadata proto.InternalMessageInfo + +func (m *RuntimeMetadata) GetType() RuntimeMetadata_RuntimeType { + if m != nil { + return m.Type + } + return RuntimeMetadata_OTHER +} + +func (m *RuntimeMetadata) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *RuntimeMetadata) GetFlavor() string { + if m != nil { + return m.Flavor + } + return "" +} + +// Task Metadata +type TaskMetadata struct { + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"` + // Runtime information about the task. + Runtime *RuntimeMetadata `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` + // The overall timeout of a task including user-triggered retries. + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Number of retries per task. + Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` + // Indicates a logical version to apply to this task for the purpose of discovery. + DiscoveryVersion string `protobuf:"bytes,6,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"` + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + // of the ending of support for a given task. + DeprecatedErrorMessage string `protobuf:"bytes,7,opt,name=deprecated_error_message,json=deprecatedErrorMessage,proto3" json:"deprecated_error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskMetadata) Reset() { *m = TaskMetadata{} } +func (m *TaskMetadata) String() string { return proto.CompactTextString(m) } +func (*TaskMetadata) ProtoMessage() {} +func (*TaskMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{2} +} +func (m *TaskMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskMetadata.Unmarshal(m, b) +} +func (m *TaskMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskMetadata.Marshal(b, m, deterministic) +} +func (dst *TaskMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskMetadata.Merge(dst, src) +} +func (m *TaskMetadata) XXX_Size() int { + return xxx_messageInfo_TaskMetadata.Size(m) +} +func (m *TaskMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_TaskMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskMetadata proto.InternalMessageInfo + +func (m *TaskMetadata) GetDiscoverable() bool { + if m != nil { + return m.Discoverable + } + return false +} + +func (m *TaskMetadata) GetRuntime() *RuntimeMetadata { + if m != nil { + return m.Runtime + } + return nil +} + +func (m *TaskMetadata) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *TaskMetadata) GetRetries() *RetryStrategy { + if m != nil { + return m.Retries + } + return nil +} + +func (m *TaskMetadata) GetDiscoveryVersion() string { + if m != nil { + return m.DiscoveryVersion + } + return "" +} + +func (m *TaskMetadata) GetDeprecatedErrorMessage() string { + if m != nil { + return m.DeprecatedErrorMessage + } + return "" +} + +// A Task structure that uniquely identifies a task in the system +// Tasks are registered as a first step in the system. +type TaskTemplate struct { + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + // implementation registered for the TaskCategory. + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // Extra metadata about the task. + Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees + // compile-time validation of the workflow to avoid costly runtime failures. + Interface *TypedInterface `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"` + // Custom data about the task. This is extensible to allow various plugins in the system. + Custom *_struct.Struct `protobuf:"bytes,5,opt,name=custom,proto3" json:"custom,omitempty"` + // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + // handlers. + // + // Types that are valid to be assigned to Target: + // *TaskTemplate_Container + Target isTaskTemplate_Target `protobuf_oneof:"target"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskTemplate) Reset() { *m = TaskTemplate{} } +func (m *TaskTemplate) String() string { return proto.CompactTextString(m) } +func (*TaskTemplate) ProtoMessage() {} +func (*TaskTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{3} +} +func (m *TaskTemplate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskTemplate.Unmarshal(m, b) +} +func (m *TaskTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskTemplate.Marshal(b, m, deterministic) +} +func (dst *TaskTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskTemplate.Merge(dst, src) +} +func (m *TaskTemplate) XXX_Size() int { + return xxx_messageInfo_TaskTemplate.Size(m) +} +func (m *TaskTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_TaskTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskTemplate proto.InternalMessageInfo + +func (m *TaskTemplate) GetId() *Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *TaskTemplate) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *TaskTemplate) GetMetadata() *TaskMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *TaskTemplate) GetInterface() *TypedInterface { + if m != nil { + return m.Interface + } + return nil +} + +func (m *TaskTemplate) GetCustom() *_struct.Struct { + if m != nil { + return m.Custom + } + return nil +} + +type isTaskTemplate_Target interface { + isTaskTemplate_Target() +} + +type TaskTemplate_Container struct { + Container *Container `protobuf:"bytes,6,opt,name=container,proto3,oneof"` +} + +func (*TaskTemplate_Container) isTaskTemplate_Target() {} + +func (m *TaskTemplate) GetTarget() isTaskTemplate_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *TaskTemplate) GetContainer() *Container { + if x, ok := m.GetTarget().(*TaskTemplate_Container); ok { + return x.Container + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TaskTemplate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TaskTemplate_OneofMarshaler, _TaskTemplate_OneofUnmarshaler, _TaskTemplate_OneofSizer, []interface{}{ + (*TaskTemplate_Container)(nil), + } +} + +func _TaskTemplate_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TaskTemplate) + // target + switch x := m.Target.(type) { + case *TaskTemplate_Container: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Container); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TaskTemplate.Target has unexpected type %T", x) + } + return nil +} + +func _TaskTemplate_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TaskTemplate) + switch tag { + case 6: // target.container + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Container) + err := b.DecodeMessage(msg) + m.Target = &TaskTemplate_Container{msg} + return true, err + default: + return false, nil + } +} + +func _TaskTemplate_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TaskTemplate) + // target + switch x := m.Target.(type) { + case *TaskTemplate_Container: + s := proto.Size(x.Container) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Defines port properties for a container. +type ContainerPort struct { + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + ContainerPort uint32 `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ContainerPort) Reset() { *m = ContainerPort{} } +func (m *ContainerPort) String() string { return proto.CompactTextString(m) } +func (*ContainerPort) ProtoMessage() {} +func (*ContainerPort) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{4} +} +func (m *ContainerPort) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ContainerPort.Unmarshal(m, b) +} +func (m *ContainerPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ContainerPort.Marshal(b, m, deterministic) +} +func (dst *ContainerPort) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContainerPort.Merge(dst, src) +} +func (m *ContainerPort) XXX_Size() int { + return xxx_messageInfo_ContainerPort.Size(m) +} +func (m *ContainerPort) XXX_DiscardUnknown() { + xxx_messageInfo_ContainerPort.DiscardUnknown(m) +} + +var xxx_messageInfo_ContainerPort proto.InternalMessageInfo + +func (m *ContainerPort) GetContainerPort() uint32 { + if m != nil { + return m.ContainerPort + } + return 0 +} + +type Container struct { + // Container image url. Eg: docker/redis:latest + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + // system will populate these before executing the container. + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + // Container resources requirement as specified by the container engine. + Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` + // Environment variables will be set as the container is starting up. + Env []*KeyValuePair `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"` + // Allows extra configs to be available for the container. + // TODO: elaborate on how configs will become available. + Config []*KeyValuePair `protobuf:"bytes,6,rep,name=config,proto3" json:"config,omitempty"` + // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + // not supported on AWS Batch) + Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Container) Reset() { *m = Container{} } +func (m *Container) String() string { return proto.CompactTextString(m) } +func (*Container) ProtoMessage() {} +func (*Container) Descriptor() ([]byte, []int) { + return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{5} +} +func (m *Container) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Container.Unmarshal(m, b) +} +func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Container.Marshal(b, m, deterministic) +} +func (dst *Container) XXX_Merge(src proto.Message) { + xxx_messageInfo_Container.Merge(dst, src) +} +func (m *Container) XXX_Size() int { + return xxx_messageInfo_Container.Size(m) +} +func (m *Container) XXX_DiscardUnknown() { + xxx_messageInfo_Container.DiscardUnknown(m) +} + +var xxx_messageInfo_Container proto.InternalMessageInfo + +func (m *Container) GetImage() string { + if m != nil { + return m.Image + } + return "" +} + +func (m *Container) GetCommand() []string { + if m != nil { + return m.Command + } + return nil +} + +func (m *Container) GetArgs() []string { + if m != nil { + return m.Args + } + return nil +} + +func (m *Container) GetResources() *Resources { + if m != nil { + return m.Resources + } + return nil +} + +func (m *Container) GetEnv() []*KeyValuePair { + if m != nil { + return m.Env + } + return nil +} + +func (m *Container) GetConfig() []*KeyValuePair { + if m != nil { + return m.Config + } + return nil +} + +func (m *Container) GetPorts() []*ContainerPort { + if m != nil { + return m.Ports + } + return nil +} + +func init() { + proto.RegisterType((*Resources)(nil), "flyteidl.core.Resources") + proto.RegisterType((*Resources_ResourceEntry)(nil), "flyteidl.core.Resources.ResourceEntry") + proto.RegisterType((*RuntimeMetadata)(nil), "flyteidl.core.RuntimeMetadata") + proto.RegisterType((*TaskMetadata)(nil), "flyteidl.core.TaskMetadata") + proto.RegisterType((*TaskTemplate)(nil), "flyteidl.core.TaskTemplate") + proto.RegisterType((*ContainerPort)(nil), "flyteidl.core.ContainerPort") + proto.RegisterType((*Container)(nil), "flyteidl.core.Container") + proto.RegisterEnum("flyteidl.core.Resources_ResourceName", Resources_ResourceName_name, Resources_ResourceName_value) + proto.RegisterEnum("flyteidl.core.RuntimeMetadata_RuntimeType", RuntimeMetadata_RuntimeType_name, RuntimeMetadata_RuntimeType_value) +} + +func init() { proto.RegisterFile("flyteidl/core/tasks.proto", fileDescriptor_tasks_f2650cafe1f6b7ce) } + +var fileDescriptor_tasks_f2650cafe1f6b7ce = []byte{ + // 828 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xdb, 0x36, + 0x14, 0x8d, 0xed, 0x58, 0x8e, 0xae, 0xe3, 0xce, 0x23, 0x86, 0x4e, 0xcd, 0xd2, 0x20, 0x10, 0xd0, + 0x2d, 0xdb, 0x50, 0x6b, 0x70, 0x80, 0x2c, 0xc3, 0x80, 0x02, 0x4b, 0xeb, 0x7e, 0x20, 0xcb, 0x07, + 0x18, 0xa7, 0x43, 0xf7, 0xc7, 0xa3, 0xa5, 0x6b, 0x8d, 0xa8, 0x24, 0x7a, 0x24, 0x65, 0x40, 0x4f, + 0xb3, 0x17, 0xd8, 0x03, 0x6c, 0xff, 0xf6, 0x68, 0x83, 0xa8, 0x8f, 0x58, 0x2e, 0xba, 0xa2, 0xbf, + 0xc4, 0xab, 0x73, 0xce, 0xd5, 0xe5, 0xb9, 0xe4, 0x15, 0x3c, 0x58, 0x44, 0x99, 0x46, 0x1e, 0x44, + 0x9e, 0x2f, 0x24, 0x7a, 0x9a, 0xa9, 0xb7, 0x6a, 0xb4, 0x94, 0x42, 0x0b, 0x32, 0xa8, 0xa0, 0x51, + 0x0e, 0xed, 0x1d, 0x34, 0x99, 0x3c, 0xc0, 0x44, 0xf3, 0x05, 0x47, 0x59, 0xd0, 0xf7, 0x1e, 0x6e, + 0xe0, 0x89, 0x46, 0xb9, 0x60, 0x3e, 0x96, 0xf0, 0x7e, 0x13, 0x8e, 0xb8, 0x46, 0xc9, 0xa2, 0xf2, + 0x5b, 0x7b, 0x07, 0xa1, 0x10, 0x61, 0x84, 0x9e, 0x89, 0xe6, 0xe9, 0xc2, 0x0b, 0x52, 0xc9, 0x34, + 0x17, 0x49, 0xa5, 0xde, 0xc4, 0x95, 0x96, 0xa9, 0xaf, 0x0b, 0xd4, 0xfd, 0xa7, 0x0d, 0x36, 0x45, + 0x25, 0x52, 0xe9, 0xa3, 0x22, 0x67, 0xb0, 0x23, 0xf1, 0x8f, 0x14, 0x95, 0x56, 0x4e, 0xeb, 0xb0, + 0x73, 0xd4, 0x1f, 0x7f, 0x39, 0x6a, 0x6c, 0x65, 0x54, 0x73, 0xeb, 0xd5, 0x24, 0xd1, 0x32, 0xa3, + 0xb5, 0x8e, 0x3c, 0x01, 0x2b, 0xe2, 0x31, 0xd7, 0xca, 0x69, 0x7f, 0x54, 0x86, 0x52, 0xb5, 0xf7, + 0x1b, 0x0c, 0x1a, 0x00, 0xf9, 0x01, 0xb6, 0x13, 0x16, 0xa3, 0xd3, 0x3a, 0x6c, 0x1d, 0xdd, 0x1b, + 0x3f, 0xfa, 0x60, 0xba, 0x4b, 0x16, 0x23, 0x35, 0x12, 0xf2, 0x19, 0x74, 0x57, 0x2c, 0x4a, 0xd1, + 0x69, 0x1f, 0xb6, 0x8e, 0x6c, 0x5a, 0x04, 0xee, 0x73, 0xd8, 0x5d, 0xe7, 0x92, 0x3e, 0xf4, 0x6e, + 0x2f, 0xcf, 0x2f, 0xaf, 0x7e, 0xb9, 0x1c, 0x6e, 0x91, 0x1e, 0x74, 0x9e, 0x5e, 0xdf, 0x0e, 0x5b, + 0xf9, 0xe2, 0xc5, 0xf5, 0xed, 0xb0, 0x4d, 0x00, 0xac, 0x8b, 0xc9, 0xc5, 0x15, 0x7d, 0x33, 0xec, + 0xe4, 0xd4, 0x9b, 0xe9, 0x15, 0xfd, 0xe9, 0xc5, 0x64, 0xb8, 0xed, 0xfe, 0xd5, 0x82, 0x4f, 0x68, + 0x9a, 0x68, 0x1e, 0xe3, 0x05, 0x6a, 0x16, 0x30, 0xcd, 0xc8, 0x13, 0xd8, 0xd6, 0xd9, 0xb2, 0x2a, + 0xf6, 0x9b, 0xcd, 0x62, 0x9b, 0xec, 0x2a, 0x9e, 0x66, 0x4b, 0xa4, 0x46, 0x47, 0x1c, 0xe8, 0xad, + 0x50, 0x2a, 0x2e, 0x92, 0xb2, 0xe6, 0x2a, 0x24, 0xf7, 0xc1, 0x5a, 0x44, 0x6c, 0x25, 0xa4, 0xd3, + 0x31, 0x40, 0x19, 0xb9, 0x5f, 0x41, 0x7f, 0x2d, 0x0d, 0xb1, 0xa1, 0x7b, 0x35, 0x7d, 0x39, 0xa1, + 0xc3, 0x2d, 0x32, 0x00, 0xfb, 0xf9, 0xcf, 0x6f, 0xa6, 0x93, 0xd9, 0xcd, 0xb3, 0xf3, 0x61, 0xcb, + 0xfd, 0xb7, 0x0d, 0xbb, 0x53, 0xa6, 0xde, 0xd6, 0xb5, 0xba, 0xb0, 0x1b, 0x70, 0xe5, 0x8b, 0x15, + 0x4a, 0x36, 0x8f, 0x8a, 0x9a, 0x77, 0x68, 0xe3, 0x1d, 0x39, 0x85, 0x9e, 0x2c, 0xb2, 0x9b, 0x7a, + 0xfa, 0xe3, 0x83, 0xff, 0xdf, 0x12, 0xad, 0xe8, 0xe4, 0x18, 0x7a, 0xf9, 0x53, 0xa4, 0xda, 0xd9, + 0x36, 0xca, 0x07, 0xa3, 0xe2, 0x24, 0x8e, 0xaa, 0x93, 0x38, 0x7a, 0x56, 0x9e, 0x54, 0x5a, 0x31, + 0xc9, 0x09, 0xf4, 0x24, 0x6a, 0xc9, 0x51, 0x39, 0x5d, 0x23, 0xda, 0x7f, 0xa7, 0xdd, 0x5a, 0x66, + 0x37, 0x5a, 0x32, 0x8d, 0x61, 0x46, 0x2b, 0x32, 0xf9, 0x16, 0x3e, 0xad, 0xca, 0xce, 0x66, 0x95, + 0x81, 0x96, 0xf1, 0x69, 0x58, 0x03, 0xaf, 0x4b, 0x27, 0x4f, 0xc1, 0x09, 0x70, 0x29, 0xd1, 0x67, + 0x1a, 0x83, 0x19, 0x4a, 0x29, 0xe4, 0x2c, 0x46, 0xa5, 0x58, 0x88, 0x4e, 0xcf, 0x68, 0xee, 0xdf, + 0xe1, 0x93, 0x1c, 0xbe, 0x28, 0x50, 0xf7, 0xef, 0xd2, 0xc2, 0x29, 0xc6, 0xcb, 0x88, 0x69, 0x24, + 0x5f, 0x43, 0x9b, 0x07, 0xc6, 0xb8, 0x7c, 0x7f, 0xcd, 0x52, 0x5f, 0xd5, 0xd7, 0x9c, 0xb6, 0x79, + 0x40, 0x48, 0x79, 0x32, 0x8a, 0xb6, 0x16, 0xdd, 0xfe, 0x1e, 0x76, 0xe2, 0xd2, 0x38, 0xd3, 0xd5, + 0xfe, 0xf8, 0x8b, 0x8d, 0x24, 0xeb, 0x0d, 0xa3, 0x35, 0x99, 0xfc, 0x08, 0x76, 0x3d, 0x25, 0x4a, + 0x7b, 0x1f, 0x6e, 0x2a, 0xb3, 0x25, 0x06, 0xaf, 0x2a, 0x12, 0xbd, 0xe3, 0x13, 0x0f, 0x2c, 0x3f, + 0x55, 0x5a, 0xc4, 0xa5, 0xc7, 0x9f, 0xbf, 0xd3, 0x98, 0x1b, 0x33, 0x22, 0x68, 0x49, 0x23, 0xa7, + 0x60, 0xfb, 0x22, 0xd1, 0x8c, 0x27, 0x28, 0x8d, 0xab, 0xfd, 0xb1, 0xb3, 0xf1, 0xb5, 0xa7, 0x15, + 0xfe, 0x72, 0x8b, 0xde, 0x91, 0xcf, 0x76, 0xc0, 0xd2, 0x4c, 0x86, 0xa8, 0xdd, 0x13, 0x18, 0xd4, + 0x9c, 0x6b, 0x21, 0x35, 0x79, 0x04, 0xf7, 0x6a, 0xde, 0x6c, 0x29, 0xa4, 0x36, 0x36, 0x0e, 0xe8, + 0xc0, 0x5f, 0xa7, 0xb9, 0x7f, 0xb6, 0xc1, 0xae, 0x85, 0xf9, 0x85, 0xe6, 0x71, 0xde, 0xa7, 0x56, + 0x71, 0xa1, 0x4d, 0x90, 0x5f, 0x1a, 0x5f, 0xc4, 0x31, 0x4b, 0x02, 0x33, 0x73, 0x6c, 0x5a, 0x85, + 0xb9, 0xe9, 0x4c, 0x86, 0xca, 0xe9, 0x98, 0xd7, 0x66, 0x4d, 0x4e, 0xc0, 0x96, 0xd5, 0xd0, 0x28, + 0xbd, 0x73, 0xde, 0x37, 0x54, 0xe8, 0x1d, 0x95, 0x3c, 0x86, 0x0e, 0x26, 0x2b, 0xa7, 0x6b, 0xa6, + 0xda, 0x66, 0x9f, 0xce, 0x31, 0x7b, 0x9d, 0x0f, 0x97, 0x6b, 0xc6, 0x25, 0xcd, 0x79, 0xe4, 0x18, + 0x2c, 0x5f, 0x24, 0x0b, 0x1e, 0x3a, 0xd6, 0x87, 0x15, 0x25, 0x95, 0x8c, 0xa1, 0x9b, 0x5b, 0xa1, + 0x9c, 0x9e, 0xd1, 0xec, 0xbf, 0xcf, 0xe5, 0xdc, 0x1a, 0x5a, 0x50, 0xcf, 0xc6, 0xbf, 0x7e, 0x17, + 0x72, 0xfd, 0x7b, 0x3a, 0x1f, 0xf9, 0x22, 0xf6, 0xa2, 0x6c, 0xa1, 0xbd, 0xfa, 0x87, 0x11, 0x62, + 0xe2, 0x2d, 0xe7, 0x8f, 0x43, 0xe1, 0x35, 0xfe, 0x21, 0x73, 0xcb, 0xb4, 0xfa, 0xf8, 0xbf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x4c, 0x5e, 0x75, 0x00, 0xc4, 0x06, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go new file mode 100644 index 0000000000..50aaf5cd9a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.validate.go @@ -0,0 +1,682 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/tasks.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on Resources with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Resources) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetRequests() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourcesValidationError{ + field: fmt.Sprintf("Requests[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetLimits() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourcesValidationError{ + field: fmt.Sprintf("Limits[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ResourcesValidationError is the validation error returned by +// Resources.Validate if the designated constraints aren't met. +type ResourcesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourcesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourcesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourcesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourcesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourcesValidationError) ErrorName() string { return "ResourcesValidationError" } + +// Error satisfies the builtin error interface +func (e ResourcesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResources.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourcesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourcesValidationError{} + +// Validate checks the field values on RuntimeMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *RuntimeMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Type + + // no validation rules for Version + + // no validation rules for Flavor + + return nil +} + +// RuntimeMetadataValidationError is the validation error returned by +// RuntimeMetadata.Validate if the designated constraints aren't met. +type RuntimeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RuntimeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RuntimeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RuntimeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RuntimeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RuntimeMetadataValidationError) ErrorName() string { return "RuntimeMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e RuntimeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRuntimeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RuntimeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RuntimeMetadataValidationError{} + +// Validate checks the field values on TaskMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Discoverable + + if v, ok := interface{}(m.GetRuntime()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskMetadataValidationError{ + field: "Runtime", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskMetadataValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRetries()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskMetadataValidationError{ + field: "Retries", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DiscoveryVersion + + // no validation rules for DeprecatedErrorMessage + + return nil +} + +// TaskMetadataValidationError is the validation error returned by +// TaskMetadata.Validate if the designated constraints aren't met. +type TaskMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskMetadataValidationError) ErrorName() string { return "TaskMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e TaskMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskMetadataValidationError{} + +// Validate checks the field values on TaskTemplate with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *TaskTemplate) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Type + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInterface()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Interface", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetCustom()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Custom", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Target.(type) { + + case *TaskTemplate_Container: + + if v, ok := interface{}(m.GetContainer()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskTemplateValidationError{ + field: "Container", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskTemplateValidationError is the validation error returned by +// TaskTemplate.Validate if the designated constraints aren't met. +type TaskTemplateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskTemplateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskTemplateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskTemplateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskTemplateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskTemplateValidationError) ErrorName() string { return "TaskTemplateValidationError" } + +// Error satisfies the builtin error interface +func (e TaskTemplateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskTemplate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskTemplateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskTemplateValidationError{} + +// Validate checks the field values on ContainerPort with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *ContainerPort) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ContainerPort + + return nil +} + +// ContainerPortValidationError is the validation error returned by +// ContainerPort.Validate if the designated constraints aren't met. +type ContainerPortValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContainerPortValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContainerPortValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContainerPortValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContainerPortValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContainerPortValidationError) ErrorName() string { return "ContainerPortValidationError" } + +// Error satisfies the builtin error interface +func (e ContainerPortValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContainerPort.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContainerPortValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContainerPortValidationError{} + +// Validate checks the field values on Container with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Container) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Image + + if v, ok := interface{}(m.GetResources()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: "Resources", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetEnv() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: fmt.Sprintf("Env[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetConfig() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: fmt.Sprintf("Config[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetPorts() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ContainerValidationError{ + field: fmt.Sprintf("Ports[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ContainerValidationError is the validation error returned by +// Container.Validate if the designated constraints aren't met. +type ContainerValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ContainerValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ContainerValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ContainerValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ContainerValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ContainerValidationError) ErrorName() string { return "ContainerValidationError" } + +// Error satisfies the builtin error interface +func (e ContainerValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sContainer.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ContainerValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ContainerValidationError{} + +// Validate checks the field values on Resources_ResourceEntry with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *Resources_ResourceEntry) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Value + + return nil +} + +// Resources_ResourceEntryValidationError is the validation error returned by +// Resources_ResourceEntry.Validate if the designated constraints aren't met. +type Resources_ResourceEntryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e Resources_ResourceEntryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e Resources_ResourceEntryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e Resources_ResourceEntryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e Resources_ResourceEntryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e Resources_ResourceEntryValidationError) ErrorName() string { + return "Resources_ResourceEntryValidationError" +} + +// Error satisfies the builtin error interface +func (e Resources_ResourceEntryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResources_ResourceEntry.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = Resources_ResourceEntryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = Resources_ResourceEntryValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json new file mode 100644 index 0000000000..35cf925ff8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/tasks.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go new file mode 100644 index 0000000000..c8da51fc8d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go @@ -0,0 +1,671 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/types.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _struct "github.com/golang/protobuf/ptypes/struct" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Define a set of simple types. +type SimpleType int32 + +const ( + SimpleType_NONE SimpleType = 0 + SimpleType_INTEGER SimpleType = 1 + SimpleType_FLOAT SimpleType = 2 + SimpleType_STRING SimpleType = 3 + SimpleType_BOOLEAN SimpleType = 4 + SimpleType_DATETIME SimpleType = 5 + SimpleType_DURATION SimpleType = 6 + SimpleType_BINARY SimpleType = 7 + SimpleType_ERROR SimpleType = 8 + SimpleType_STRUCT SimpleType = 9 +) + +var SimpleType_name = map[int32]string{ + 0: "NONE", + 1: "INTEGER", + 2: "FLOAT", + 3: "STRING", + 4: "BOOLEAN", + 5: "DATETIME", + 6: "DURATION", + 7: "BINARY", + 8: "ERROR", + 9: "STRUCT", +} +var SimpleType_value = map[string]int32{ + "NONE": 0, + "INTEGER": 1, + "FLOAT": 2, + "STRING": 3, + "BOOLEAN": 4, + "DATETIME": 5, + "DURATION": 6, + "BINARY": 7, + "ERROR": 8, + "STRUCT": 9, +} + +func (x SimpleType) String() string { + return proto.EnumName(SimpleType_name, int32(x)) +} +func (SimpleType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{0} +} + +type SchemaType_SchemaColumn_SchemaColumnType int32 + +const ( + SchemaType_SchemaColumn_INTEGER SchemaType_SchemaColumn_SchemaColumnType = 0 + SchemaType_SchemaColumn_FLOAT SchemaType_SchemaColumn_SchemaColumnType = 1 + SchemaType_SchemaColumn_STRING SchemaType_SchemaColumn_SchemaColumnType = 2 + SchemaType_SchemaColumn_BOOLEAN SchemaType_SchemaColumn_SchemaColumnType = 3 + SchemaType_SchemaColumn_DATETIME SchemaType_SchemaColumn_SchemaColumnType = 4 + SchemaType_SchemaColumn_DURATION SchemaType_SchemaColumn_SchemaColumnType = 5 +) + +var SchemaType_SchemaColumn_SchemaColumnType_name = map[int32]string{ + 0: "INTEGER", + 1: "FLOAT", + 2: "STRING", + 3: "BOOLEAN", + 4: "DATETIME", + 5: "DURATION", +} +var SchemaType_SchemaColumn_SchemaColumnType_value = map[string]int32{ + "INTEGER": 0, + "FLOAT": 1, + "STRING": 2, + "BOOLEAN": 3, + "DATETIME": 4, + "DURATION": 5, +} + +func (x SchemaType_SchemaColumn_SchemaColumnType) String() string { + return proto.EnumName(SchemaType_SchemaColumn_SchemaColumnType_name, int32(x)) +} +func (SchemaType_SchemaColumn_SchemaColumnType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{0, 0, 0} +} + +type BlobType_BlobDimensionality int32 + +const ( + BlobType_SINGLE BlobType_BlobDimensionality = 0 + BlobType_MULTIPART BlobType_BlobDimensionality = 1 +) + +var BlobType_BlobDimensionality_name = map[int32]string{ + 0: "SINGLE", + 1: "MULTIPART", +} +var BlobType_BlobDimensionality_value = map[string]int32{ + "SINGLE": 0, + "MULTIPART": 1, +} + +func (x BlobType_BlobDimensionality) String() string { + return proto.EnumName(BlobType_BlobDimensionality_name, int32(x)) +} +func (BlobType_BlobDimensionality) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{1, 0} +} + +// Defines schema columns and types to strongly type-validate schemas interoperability. +type SchemaType struct { + // A list of ordered columns this schema comprises of. + Columns []*SchemaType_SchemaColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SchemaType) Reset() { *m = SchemaType{} } +func (m *SchemaType) String() string { return proto.CompactTextString(m) } +func (*SchemaType) ProtoMessage() {} +func (*SchemaType) Descriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{0} +} +func (m *SchemaType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemaType.Unmarshal(m, b) +} +func (m *SchemaType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemaType.Marshal(b, m, deterministic) +} +func (dst *SchemaType) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaType.Merge(dst, src) +} +func (m *SchemaType) XXX_Size() int { + return xxx_messageInfo_SchemaType.Size(m) +} +func (m *SchemaType) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaType.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaType proto.InternalMessageInfo + +func (m *SchemaType) GetColumns() []*SchemaType_SchemaColumn { + if m != nil { + return m.Columns + } + return nil +} + +type SchemaType_SchemaColumn struct { + // A unique name -within the schema type- for the column + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The column type. This allows a limited set of types currently. + Type SchemaType_SchemaColumn_SchemaColumnType `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SchemaType_SchemaColumn) Reset() { *m = SchemaType_SchemaColumn{} } +func (m *SchemaType_SchemaColumn) String() string { return proto.CompactTextString(m) } +func (*SchemaType_SchemaColumn) ProtoMessage() {} +func (*SchemaType_SchemaColumn) Descriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{0, 0} +} +func (m *SchemaType_SchemaColumn) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SchemaType_SchemaColumn.Unmarshal(m, b) +} +func (m *SchemaType_SchemaColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SchemaType_SchemaColumn.Marshal(b, m, deterministic) +} +func (dst *SchemaType_SchemaColumn) XXX_Merge(src proto.Message) { + xxx_messageInfo_SchemaType_SchemaColumn.Merge(dst, src) +} +func (m *SchemaType_SchemaColumn) XXX_Size() int { + return xxx_messageInfo_SchemaType_SchemaColumn.Size(m) +} +func (m *SchemaType_SchemaColumn) XXX_DiscardUnknown() { + xxx_messageInfo_SchemaType_SchemaColumn.DiscardUnknown(m) +} + +var xxx_messageInfo_SchemaType_SchemaColumn proto.InternalMessageInfo + +func (m *SchemaType_SchemaColumn) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SchemaType_SchemaColumn) GetType() SchemaType_SchemaColumn_SchemaColumnType { + if m != nil { + return m.Type + } + return SchemaType_SchemaColumn_INTEGER +} + +// Defines type behavior for blob objects +type BlobType struct { + // Format can be a free form string understood by SDK/UI etc like + // csv, parquet etc + Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` + Dimensionality BlobType_BlobDimensionality `protobuf:"varint,2,opt,name=dimensionality,proto3,enum=flyteidl.core.BlobType_BlobDimensionality" json:"dimensionality,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BlobType) Reset() { *m = BlobType{} } +func (m *BlobType) String() string { return proto.CompactTextString(m) } +func (*BlobType) ProtoMessage() {} +func (*BlobType) Descriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{1} +} +func (m *BlobType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BlobType.Unmarshal(m, b) +} +func (m *BlobType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BlobType.Marshal(b, m, deterministic) +} +func (dst *BlobType) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlobType.Merge(dst, src) +} +func (m *BlobType) XXX_Size() int { + return xxx_messageInfo_BlobType.Size(m) +} +func (m *BlobType) XXX_DiscardUnknown() { + xxx_messageInfo_BlobType.DiscardUnknown(m) +} + +var xxx_messageInfo_BlobType proto.InternalMessageInfo + +func (m *BlobType) GetFormat() string { + if m != nil { + return m.Format + } + return "" +} + +func (m *BlobType) GetDimensionality() BlobType_BlobDimensionality { + if m != nil { + return m.Dimensionality + } + return BlobType_SINGLE +} + +// Defines a strong type to allow type checking between interfaces. +type LiteralType struct { + // Types that are valid to be assigned to Type: + // *LiteralType_Simple + // *LiteralType_Schema + // *LiteralType_CollectionType + // *LiteralType_MapValueType + // *LiteralType_Blob + Type isLiteralType_Type `protobuf_oneof:"type"` + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + // consumers to identify special behavior or display extended information for the type. + Metadata *_struct.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LiteralType) Reset() { *m = LiteralType{} } +func (m *LiteralType) String() string { return proto.CompactTextString(m) } +func (*LiteralType) ProtoMessage() {} +func (*LiteralType) Descriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{2} +} +func (m *LiteralType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LiteralType.Unmarshal(m, b) +} +func (m *LiteralType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LiteralType.Marshal(b, m, deterministic) +} +func (dst *LiteralType) XXX_Merge(src proto.Message) { + xxx_messageInfo_LiteralType.Merge(dst, src) +} +func (m *LiteralType) XXX_Size() int { + return xxx_messageInfo_LiteralType.Size(m) +} +func (m *LiteralType) XXX_DiscardUnknown() { + xxx_messageInfo_LiteralType.DiscardUnknown(m) +} + +var xxx_messageInfo_LiteralType proto.InternalMessageInfo + +type isLiteralType_Type interface { + isLiteralType_Type() +} + +type LiteralType_Simple struct { + Simple SimpleType `protobuf:"varint,1,opt,name=simple,proto3,enum=flyteidl.core.SimpleType,oneof"` +} + +type LiteralType_Schema struct { + Schema *SchemaType `protobuf:"bytes,2,opt,name=schema,proto3,oneof"` +} + +type LiteralType_CollectionType struct { + CollectionType *LiteralType `protobuf:"bytes,3,opt,name=collection_type,json=collectionType,proto3,oneof"` +} + +type LiteralType_MapValueType struct { + MapValueType *LiteralType `protobuf:"bytes,4,opt,name=map_value_type,json=mapValueType,proto3,oneof"` +} + +type LiteralType_Blob struct { + Blob *BlobType `protobuf:"bytes,5,opt,name=blob,proto3,oneof"` +} + +func (*LiteralType_Simple) isLiteralType_Type() {} + +func (*LiteralType_Schema) isLiteralType_Type() {} + +func (*LiteralType_CollectionType) isLiteralType_Type() {} + +func (*LiteralType_MapValueType) isLiteralType_Type() {} + +func (*LiteralType_Blob) isLiteralType_Type() {} + +func (m *LiteralType) GetType() isLiteralType_Type { + if m != nil { + return m.Type + } + return nil +} + +func (m *LiteralType) GetSimple() SimpleType { + if x, ok := m.GetType().(*LiteralType_Simple); ok { + return x.Simple + } + return SimpleType_NONE +} + +func (m *LiteralType) GetSchema() *SchemaType { + if x, ok := m.GetType().(*LiteralType_Schema); ok { + return x.Schema + } + return nil +} + +func (m *LiteralType) GetCollectionType() *LiteralType { + if x, ok := m.GetType().(*LiteralType_CollectionType); ok { + return x.CollectionType + } + return nil +} + +func (m *LiteralType) GetMapValueType() *LiteralType { + if x, ok := m.GetType().(*LiteralType_MapValueType); ok { + return x.MapValueType + } + return nil +} + +func (m *LiteralType) GetBlob() *BlobType { + if x, ok := m.GetType().(*LiteralType_Blob); ok { + return x.Blob + } + return nil +} + +func (m *LiteralType) GetMetadata() *_struct.Struct { + if m != nil { + return m.Metadata + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*LiteralType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _LiteralType_OneofMarshaler, _LiteralType_OneofUnmarshaler, _LiteralType_OneofSizer, []interface{}{ + (*LiteralType_Simple)(nil), + (*LiteralType_Schema)(nil), + (*LiteralType_CollectionType)(nil), + (*LiteralType_MapValueType)(nil), + (*LiteralType_Blob)(nil), + } +} + +func _LiteralType_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*LiteralType) + // type + switch x := m.Type.(type) { + case *LiteralType_Simple: + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Simple)) + case *LiteralType_Schema: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Schema); err != nil { + return err + } + case *LiteralType_CollectionType: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CollectionType); err != nil { + return err + } + case *LiteralType_MapValueType: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.MapValueType); err != nil { + return err + } + case *LiteralType_Blob: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Blob); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("LiteralType.Type has unexpected type %T", x) + } + return nil +} + +func _LiteralType_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*LiteralType) + switch tag { + case 1: // type.simple + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Type = &LiteralType_Simple{SimpleType(x)} + return true, err + case 2: // type.schema + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(SchemaType) + err := b.DecodeMessage(msg) + m.Type = &LiteralType_Schema{msg} + return true, err + case 3: // type.collection_type + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LiteralType) + err := b.DecodeMessage(msg) + m.Type = &LiteralType_CollectionType{msg} + return true, err + case 4: // type.map_value_type + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(LiteralType) + err := b.DecodeMessage(msg) + m.Type = &LiteralType_MapValueType{msg} + return true, err + case 5: // type.blob + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BlobType) + err := b.DecodeMessage(msg) + m.Type = &LiteralType_Blob{msg} + return true, err + default: + return false, nil + } +} + +func _LiteralType_OneofSizer(msg proto.Message) (n int) { + m := msg.(*LiteralType) + // type + switch x := m.Type.(type) { + case *LiteralType_Simple: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Simple)) + case *LiteralType_Schema: + s := proto.Size(x.Schema) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *LiteralType_CollectionType: + s := proto.Size(x.CollectionType) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *LiteralType_MapValueType: + s := proto.Size(x.MapValueType) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *LiteralType_Blob: + s := proto.Size(x.Blob) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A reference to an output produced by a node. The type can be retrieved -and validated- from +// the underlying interface of the node. +type OutputReference struct { + // Node id must exist at the graph layer. + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Variable name must refer to an output variable for the node. + Var string `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *OutputReference) Reset() { *m = OutputReference{} } +func (m *OutputReference) String() string { return proto.CompactTextString(m) } +func (*OutputReference) ProtoMessage() {} +func (*OutputReference) Descriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{3} +} +func (m *OutputReference) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_OutputReference.Unmarshal(m, b) +} +func (m *OutputReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_OutputReference.Marshal(b, m, deterministic) +} +func (dst *OutputReference) XXX_Merge(src proto.Message) { + xxx_messageInfo_OutputReference.Merge(dst, src) +} +func (m *OutputReference) XXX_Size() int { + return xxx_messageInfo_OutputReference.Size(m) +} +func (m *OutputReference) XXX_DiscardUnknown() { + xxx_messageInfo_OutputReference.DiscardUnknown(m) +} + +var xxx_messageInfo_OutputReference proto.InternalMessageInfo + +func (m *OutputReference) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +func (m *OutputReference) GetVar() string { + if m != nil { + return m.Var + } + return "" +} + +// Represents an error thrown from a node. +type Error struct { + // The node id that threw the error. + FailedNodeId string `protobuf:"bytes,1,opt,name=failed_node_id,json=failedNodeId,proto3" json:"failed_node_id,omitempty"` + // Error message thrown. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Error) Reset() { *m = Error{} } +func (m *Error) String() string { return proto.CompactTextString(m) } +func (*Error) ProtoMessage() {} +func (*Error) Descriptor() ([]byte, []int) { + return fileDescriptor_types_8c9f595734af8420, []int{4} +} +func (m *Error) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Error.Unmarshal(m, b) +} +func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Error.Marshal(b, m, deterministic) +} +func (dst *Error) XXX_Merge(src proto.Message) { + xxx_messageInfo_Error.Merge(dst, src) +} +func (m *Error) XXX_Size() int { + return xxx_messageInfo_Error.Size(m) +} +func (m *Error) XXX_DiscardUnknown() { + xxx_messageInfo_Error.DiscardUnknown(m) +} + +var xxx_messageInfo_Error proto.InternalMessageInfo + +func (m *Error) GetFailedNodeId() string { + if m != nil { + return m.FailedNodeId + } + return "" +} + +func (m *Error) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func init() { + proto.RegisterType((*SchemaType)(nil), "flyteidl.core.SchemaType") + proto.RegisterType((*SchemaType_SchemaColumn)(nil), "flyteidl.core.SchemaType.SchemaColumn") + proto.RegisterType((*BlobType)(nil), "flyteidl.core.BlobType") + proto.RegisterType((*LiteralType)(nil), "flyteidl.core.LiteralType") + proto.RegisterType((*OutputReference)(nil), "flyteidl.core.OutputReference") + proto.RegisterType((*Error)(nil), "flyteidl.core.Error") + proto.RegisterEnum("flyteidl.core.SimpleType", SimpleType_name, SimpleType_value) + proto.RegisterEnum("flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType", SchemaType_SchemaColumn_SchemaColumnType_name, SchemaType_SchemaColumn_SchemaColumnType_value) + proto.RegisterEnum("flyteidl.core.BlobType_BlobDimensionality", BlobType_BlobDimensionality_name, BlobType_BlobDimensionality_value) +} + +func init() { proto.RegisterFile("flyteidl/core/types.proto", fileDescriptor_types_8c9f595734af8420) } + +var fileDescriptor_types_8c9f595734af8420 = []byte{ + // 647 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 0x9b, 0x4a, + 0x14, 0x36, 0xfe, 0xf7, 0xb1, 0xe3, 0xa0, 0x59, 0xdc, 0x38, 0xd1, 0x5d, 0x44, 0xd6, 0xd5, 0x55, + 0x14, 0x29, 0x70, 0xe5, 0x2c, 0xee, 0xa6, 0x8b, 0xda, 0x09, 0x75, 0x50, 0x1d, 0xa8, 0x26, 0xa4, + 0x52, 0xbb, 0xb1, 0x06, 0x18, 0x3b, 0x48, 0x03, 0x83, 0x60, 0x88, 0xe4, 0x17, 0xe8, 0x7b, 0x74, + 0xd5, 0xd7, 0xe9, 0x93, 0xf4, 0x19, 0x2a, 0x06, 0x1c, 0x1b, 0x47, 0x95, 0xb2, 0x3b, 0x87, 0xf3, + 0x7d, 0x1f, 0xe7, 0x9c, 0x99, 0x6f, 0xe0, 0x74, 0xc5, 0x36, 0x82, 0x06, 0x3e, 0xd3, 0x3d, 0x9e, + 0x50, 0x5d, 0x6c, 0x62, 0x9a, 0x6a, 0x71, 0xc2, 0x05, 0x47, 0x47, 0xdb, 0x92, 0x96, 0x97, 0xce, + 0xfe, 0x5e, 0x73, 0xbe, 0x66, 0x54, 0x97, 0x45, 0x37, 0x5b, 0xe9, 0xa9, 0x48, 0x32, 0x4f, 0x14, + 0xe0, 0xf1, 0xf7, 0x3a, 0xc0, 0x83, 0xf7, 0x44, 0x43, 0xe2, 0x6c, 0x62, 0x8a, 0xde, 0x43, 0xc7, + 0xe3, 0x2c, 0x0b, 0xa3, 0x74, 0xd4, 0x38, 0x6f, 0x5c, 0xf4, 0x27, 0xff, 0x6a, 0x15, 0x35, 0x6d, + 0x87, 0x2d, 0xc3, 0x1b, 0x09, 0xc7, 0x5b, 0xda, 0xd9, 0x4f, 0x05, 0x06, 0xfb, 0x15, 0x84, 0xa0, + 0x19, 0x91, 0x90, 0x8e, 0x94, 0x73, 0xe5, 0xa2, 0x87, 0x65, 0x8c, 0x3e, 0x42, 0x33, 0xef, 0x78, + 0x54, 0x3f, 0x57, 0x2e, 0x86, 0x93, 0xff, 0xdf, 0xf6, 0x8f, 0x4a, 0x92, 0x57, 0xb1, 0x14, 0x19, + 0x2f, 0x41, 0x3d, 0xac, 0xa0, 0x3e, 0x74, 0x4c, 0xcb, 0x31, 0xe6, 0x06, 0x56, 0x6b, 0xa8, 0x07, + 0xad, 0x0f, 0x0b, 0x7b, 0xea, 0xa8, 0x0a, 0x02, 0x68, 0x3f, 0x38, 0xd8, 0xb4, 0xe6, 0x6a, 0x3d, + 0xc7, 0xcc, 0x6c, 0x7b, 0x61, 0x4c, 0x2d, 0xb5, 0x81, 0x06, 0xd0, 0xbd, 0x9d, 0x3a, 0x86, 0x63, + 0xde, 0x1b, 0x6a, 0x53, 0x66, 0x8f, 0x78, 0xea, 0x98, 0xb6, 0xa5, 0xb6, 0xc6, 0x3f, 0x14, 0xe8, + 0xce, 0x18, 0x77, 0xa5, 0xf2, 0x5f, 0xd0, 0x5e, 0xf1, 0x24, 0x24, 0xa2, 0x1c, 0xa8, 0xcc, 0x10, + 0x86, 0xa1, 0x1f, 0x84, 0x34, 0x4a, 0x03, 0x1e, 0x11, 0x16, 0x88, 0x4d, 0x39, 0xdc, 0xe5, 0xc1, + 0x70, 0x5b, 0x21, 0x19, 0xdc, 0x56, 0x18, 0xf8, 0x40, 0x61, 0xac, 0x03, 0x7a, 0x8d, 0x92, 0x33, + 0x98, 0xd6, 0x7c, 0x61, 0xa8, 0x35, 0x74, 0x04, 0xbd, 0xfb, 0xc7, 0x85, 0x63, 0x7e, 0x9a, 0x62, + 0x47, 0x55, 0xc6, 0xbf, 0xea, 0xd0, 0x5f, 0x04, 0x82, 0x26, 0x84, 0xc9, 0x66, 0xaf, 0xa1, 0x9d, + 0x06, 0x61, 0xcc, 0x8a, 0xed, 0x0f, 0x27, 0xa7, 0x87, 0x9b, 0x96, 0xc5, 0x1c, 0x7a, 0x57, 0xc3, + 0x25, 0x54, 0x92, 0xe4, 0x3e, 0xe5, 0x04, 0xfd, 0xd7, 0xa4, 0x97, 0xe3, 0x91, 0x24, 0x99, 0x21, + 0x03, 0x8e, 0x3d, 0xce, 0x18, 0xf5, 0x44, 0xc0, 0xa3, 0xa5, 0x3c, 0xdc, 0x86, 0x64, 0x9f, 0x1d, + 0xb0, 0xf7, 0xda, 0xbb, 0xab, 0xe1, 0xe1, 0x8e, 0x24, 0x1b, 0x9e, 0xc1, 0x30, 0x24, 0xf1, 0xf2, + 0x99, 0xb0, 0x8c, 0x16, 0x2a, 0xcd, 0x37, 0xa8, 0x0c, 0x42, 0x12, 0x7f, 0xce, 0x29, 0x52, 0xe3, + 0x0a, 0x9a, 0x2e, 0xe3, 0xee, 0xa8, 0x25, 0x99, 0x27, 0x7f, 0xd8, 0xff, 0x5d, 0x0d, 0x4b, 0x18, + 0xba, 0x86, 0x6e, 0x48, 0x05, 0xf1, 0x89, 0x20, 0xa3, 0x76, 0x49, 0x29, 0x2c, 0xa3, 0x6d, 0x2d, + 0xa3, 0x3d, 0x48, 0xcb, 0xe0, 0x17, 0xe0, 0xac, 0x5d, 0x5c, 0xe0, 0xf1, 0x3b, 0x38, 0xb6, 0x33, + 0x11, 0x67, 0x02, 0xd3, 0x15, 0x4d, 0x68, 0xe4, 0x51, 0x74, 0x02, 0x9d, 0x88, 0xfb, 0x74, 0x19, + 0xf8, 0xdb, 0x1b, 0x92, 0xa7, 0xa6, 0x8f, 0x54, 0x68, 0x3c, 0x93, 0x44, 0x2e, 0xb5, 0x87, 0xf3, + 0x70, 0x3c, 0x87, 0x96, 0x91, 0x24, 0x3c, 0x41, 0xff, 0xc0, 0x70, 0x45, 0x02, 0x46, 0xfd, 0x65, + 0x95, 0x3a, 0x28, 0xbe, 0x5a, 0x85, 0xc0, 0x08, 0x3a, 0x21, 0x4d, 0x53, 0xb2, 0xa6, 0xa5, 0xc8, + 0x36, 0xbd, 0xfc, 0xa6, 0x00, 0xec, 0xce, 0x12, 0x75, 0xa1, 0x69, 0xd9, 0x56, 0x7e, 0x3f, 0xf6, + 0x7c, 0xa0, 0xec, 0x7c, 0x50, 0xdf, 0xf3, 0x41, 0x63, 0xdf, 0x07, 0xcd, 0x8a, 0x0f, 0x5a, 0x15, + 0x1f, 0xb4, 0x73, 0xd2, 0xcc, 0xb4, 0xa6, 0xf8, 0x8b, 0xda, 0xc9, 0xb5, 0x0c, 0x8c, 0x6d, 0xac, + 0x76, 0x4b, 0xad, 0xc7, 0x1b, 0x47, 0xed, 0xcd, 0x26, 0x5f, 0xff, 0x5b, 0x07, 0xe2, 0x29, 0x73, + 0x35, 0x8f, 0x87, 0x3a, 0xdb, 0xac, 0x84, 0xfe, 0xf2, 0x50, 0xad, 0x69, 0xa4, 0xc7, 0xee, 0xd5, + 0x9a, 0xeb, 0x95, 0xb7, 0xcb, 0x6d, 0xcb, 0x35, 0x5f, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x05, + 0x73, 0xe4, 0xc4, 0xd3, 0x04, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go new file mode 100644 index 0000000000..173fdceb5c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.pb.validate.go @@ -0,0 +1,519 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/types.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on SchemaType with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SchemaType) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetColumns() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SchemaTypeValidationError{ + field: fmt.Sprintf("Columns[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// SchemaTypeValidationError is the validation error returned by +// SchemaType.Validate if the designated constraints aren't met. +type SchemaTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SchemaTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SchemaTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SchemaTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SchemaTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SchemaTypeValidationError) ErrorName() string { return "SchemaTypeValidationError" } + +// Error satisfies the builtin error interface +func (e SchemaTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchemaType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SchemaTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SchemaTypeValidationError{} + +// Validate checks the field values on BlobType with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *BlobType) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Format + + // no validation rules for Dimensionality + + return nil +} + +// BlobTypeValidationError is the validation error returned by +// BlobType.Validate if the designated constraints aren't met. +type BlobTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BlobTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BlobTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BlobTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BlobTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BlobTypeValidationError) ErrorName() string { return "BlobTypeValidationError" } + +// Error satisfies the builtin error interface +func (e BlobTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBlobType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BlobTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BlobTypeValidationError{} + +// Validate checks the field values on LiteralType with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *LiteralType) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.Type.(type) { + + case *LiteralType_Simple: + // no validation rules for Simple + + case *LiteralType_Schema: + + if v, ok := interface{}(m.GetSchema()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Schema", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_CollectionType: + + if v, ok := interface{}(m.GetCollectionType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "CollectionType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_MapValueType: + + if v, ok := interface{}(m.GetMapValueType()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "MapValueType", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *LiteralType_Blob: + + if v, ok := interface{}(m.GetBlob()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return LiteralTypeValidationError{ + field: "Blob", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// LiteralTypeValidationError is the validation error returned by +// LiteralType.Validate if the designated constraints aren't met. +type LiteralTypeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e LiteralTypeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e LiteralTypeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e LiteralTypeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e LiteralTypeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e LiteralTypeValidationError) ErrorName() string { return "LiteralTypeValidationError" } + +// Error satisfies the builtin error interface +func (e LiteralTypeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sLiteralType.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = LiteralTypeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = LiteralTypeValidationError{} + +// Validate checks the field values on OutputReference with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *OutputReference) Validate() error { + if m == nil { + return nil + } + + // no validation rules for NodeId + + // no validation rules for Var + + return nil +} + +// OutputReferenceValidationError is the validation error returned by +// OutputReference.Validate if the designated constraints aren't met. +type OutputReferenceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e OutputReferenceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e OutputReferenceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e OutputReferenceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e OutputReferenceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e OutputReferenceValidationError) ErrorName() string { return "OutputReferenceValidationError" } + +// Error satisfies the builtin error interface +func (e OutputReferenceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sOutputReference.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = OutputReferenceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = OutputReferenceValidationError{} + +// Validate checks the field values on Error with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Error) Validate() error { + if m == nil { + return nil + } + + // no validation rules for FailedNodeId + + // no validation rules for Message + + return nil +} + +// ErrorValidationError is the validation error returned by Error.Validate if +// the designated constraints aren't met. +type ErrorValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ErrorValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ErrorValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ErrorValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ErrorValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ErrorValidationError) ErrorName() string { return "ErrorValidationError" } + +// Error satisfies the builtin error interface +func (e ErrorValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sError.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ErrorValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ErrorValidationError{} + +// Validate checks the field values on SchemaType_SchemaColumn with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *SchemaType_SchemaColumn) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Type + + return nil +} + +// SchemaType_SchemaColumnValidationError is the validation error returned by +// SchemaType_SchemaColumn.Validate if the designated constraints aren't met. +type SchemaType_SchemaColumnValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SchemaType_SchemaColumnValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SchemaType_SchemaColumnValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SchemaType_SchemaColumnValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SchemaType_SchemaColumnValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SchemaType_SchemaColumnValidationError) ErrorName() string { + return "SchemaType_SchemaColumnValidationError" +} + +// Error satisfies the builtin error interface +func (e SchemaType_SchemaColumnValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSchemaType_SchemaColumn.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SchemaType_SchemaColumnValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SchemaType_SchemaColumnValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json new file mode 100644 index 0000000000..388060aaab --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/types.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go new file mode 100644 index 0000000000..b3806e8aa0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go @@ -0,0 +1,1074 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/workflow.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import duration "github.com/golang/protobuf/ptypes/duration" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +type IfBlock struct { + Condition *BooleanExpression `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + ThenNode *Node `protobuf:"bytes,2,opt,name=then_node,json=thenNode,proto3" json:"then_node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IfBlock) Reset() { *m = IfBlock{} } +func (m *IfBlock) String() string { return proto.CompactTextString(m) } +func (*IfBlock) ProtoMessage() {} +func (*IfBlock) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{0} +} +func (m *IfBlock) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IfBlock.Unmarshal(m, b) +} +func (m *IfBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IfBlock.Marshal(b, m, deterministic) +} +func (dst *IfBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_IfBlock.Merge(dst, src) +} +func (m *IfBlock) XXX_Size() int { + return xxx_messageInfo_IfBlock.Size(m) +} +func (m *IfBlock) XXX_DiscardUnknown() { + xxx_messageInfo_IfBlock.DiscardUnknown(m) +} + +var xxx_messageInfo_IfBlock proto.InternalMessageInfo + +func (m *IfBlock) GetCondition() *BooleanExpression { + if m != nil { + return m.Condition + } + return nil +} + +func (m *IfBlock) GetThenNode() *Node { + if m != nil { + return m.ThenNode + } + return nil +} + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +// If no conditions were satisfied, the else_node or the error will execute. +type IfElseBlock struct { + // +required. First condition to evaluate. + Case *IfBlock `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"` + // +optional. Additional branches to evaluate. + Other []*IfBlock `protobuf:"bytes,2,rep,name=other,proto3" json:"other,omitempty"` + // +required. + // + // Types that are valid to be assigned to Default: + // *IfElseBlock_ElseNode + // *IfElseBlock_Error + Default isIfElseBlock_Default `protobuf_oneof:"default"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IfElseBlock) Reset() { *m = IfElseBlock{} } +func (m *IfElseBlock) String() string { return proto.CompactTextString(m) } +func (*IfElseBlock) ProtoMessage() {} +func (*IfElseBlock) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{1} +} +func (m *IfElseBlock) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IfElseBlock.Unmarshal(m, b) +} +func (m *IfElseBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IfElseBlock.Marshal(b, m, deterministic) +} +func (dst *IfElseBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_IfElseBlock.Merge(dst, src) +} +func (m *IfElseBlock) XXX_Size() int { + return xxx_messageInfo_IfElseBlock.Size(m) +} +func (m *IfElseBlock) XXX_DiscardUnknown() { + xxx_messageInfo_IfElseBlock.DiscardUnknown(m) +} + +var xxx_messageInfo_IfElseBlock proto.InternalMessageInfo + +func (m *IfElseBlock) GetCase() *IfBlock { + if m != nil { + return m.Case + } + return nil +} + +func (m *IfElseBlock) GetOther() []*IfBlock { + if m != nil { + return m.Other + } + return nil +} + +type isIfElseBlock_Default interface { + isIfElseBlock_Default() +} + +type IfElseBlock_ElseNode struct { + ElseNode *Node `protobuf:"bytes,3,opt,name=else_node,json=elseNode,proto3,oneof"` +} + +type IfElseBlock_Error struct { + Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` +} + +func (*IfElseBlock_ElseNode) isIfElseBlock_Default() {} + +func (*IfElseBlock_Error) isIfElseBlock_Default() {} + +func (m *IfElseBlock) GetDefault() isIfElseBlock_Default { + if m != nil { + return m.Default + } + return nil +} + +func (m *IfElseBlock) GetElseNode() *Node { + if x, ok := m.GetDefault().(*IfElseBlock_ElseNode); ok { + return x.ElseNode + } + return nil +} + +func (m *IfElseBlock) GetError() *Error { + if x, ok := m.GetDefault().(*IfElseBlock_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*IfElseBlock) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _IfElseBlock_OneofMarshaler, _IfElseBlock_OneofUnmarshaler, _IfElseBlock_OneofSizer, []interface{}{ + (*IfElseBlock_ElseNode)(nil), + (*IfElseBlock_Error)(nil), + } +} + +func _IfElseBlock_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*IfElseBlock) + // default + switch x := m.Default.(type) { + case *IfElseBlock_ElseNode: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ElseNode); err != nil { + return err + } + case *IfElseBlock_Error: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("IfElseBlock.Default has unexpected type %T", x) + } + return nil +} + +func _IfElseBlock_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*IfElseBlock) + switch tag { + case 3: // default.else_node + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Node) + err := b.DecodeMessage(msg) + m.Default = &IfElseBlock_ElseNode{msg} + return true, err + case 4: // default.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Error) + err := b.DecodeMessage(msg) + m.Default = &IfElseBlock_Error{msg} + return true, err + default: + return false, nil + } +} + +func _IfElseBlock_OneofSizer(msg proto.Message) (n int) { + m := msg.(*IfElseBlock) + // default + switch x := m.Default.(type) { + case *IfElseBlock_ElseNode: + s := proto.Size(x.ElseNode) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *IfElseBlock_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives). +type BranchNode struct { + // +required + IfElse *IfElseBlock `protobuf:"bytes,1,opt,name=if_else,json=ifElse,proto3" json:"if_else,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BranchNode) Reset() { *m = BranchNode{} } +func (m *BranchNode) String() string { return proto.CompactTextString(m) } +func (*BranchNode) ProtoMessage() {} +func (*BranchNode) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{2} +} +func (m *BranchNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BranchNode.Unmarshal(m, b) +} +func (m *BranchNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BranchNode.Marshal(b, m, deterministic) +} +func (dst *BranchNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_BranchNode.Merge(dst, src) +} +func (m *BranchNode) XXX_Size() int { + return xxx_messageInfo_BranchNode.Size(m) +} +func (m *BranchNode) XXX_DiscardUnknown() { + xxx_messageInfo_BranchNode.DiscardUnknown(m) +} + +var xxx_messageInfo_BranchNode proto.InternalMessageInfo + +func (m *BranchNode) GetIfElse() *IfElseBlock { + if m != nil { + return m.IfElse + } + return nil +} + +// Refers to the task that the Node is to execute. +type TaskNode struct { + // Types that are valid to be assigned to Reference: + // *TaskNode_ReferenceId + Reference isTaskNode_Reference `protobuf_oneof:"reference"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskNode) Reset() { *m = TaskNode{} } +func (m *TaskNode) String() string { return proto.CompactTextString(m) } +func (*TaskNode) ProtoMessage() {} +func (*TaskNode) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{3} +} +func (m *TaskNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskNode.Unmarshal(m, b) +} +func (m *TaskNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskNode.Marshal(b, m, deterministic) +} +func (dst *TaskNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskNode.Merge(dst, src) +} +func (m *TaskNode) XXX_Size() int { + return xxx_messageInfo_TaskNode.Size(m) +} +func (m *TaskNode) XXX_DiscardUnknown() { + xxx_messageInfo_TaskNode.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskNode proto.InternalMessageInfo + +type isTaskNode_Reference interface { + isTaskNode_Reference() +} + +type TaskNode_ReferenceId struct { + ReferenceId *Identifier `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3,oneof"` +} + +func (*TaskNode_ReferenceId) isTaskNode_Reference() {} + +func (m *TaskNode) GetReference() isTaskNode_Reference { + if m != nil { + return m.Reference + } + return nil +} + +func (m *TaskNode) GetReferenceId() *Identifier { + if x, ok := m.GetReference().(*TaskNode_ReferenceId); ok { + return x.ReferenceId + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TaskNode) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TaskNode_OneofMarshaler, _TaskNode_OneofUnmarshaler, _TaskNode_OneofSizer, []interface{}{ + (*TaskNode_ReferenceId)(nil), + } +} + +func _TaskNode_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TaskNode) + // reference + switch x := m.Reference.(type) { + case *TaskNode_ReferenceId: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ReferenceId); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TaskNode.Reference has unexpected type %T", x) + } + return nil +} + +func _TaskNode_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TaskNode) + switch tag { + case 1: // reference.reference_id + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Identifier) + err := b.DecodeMessage(msg) + m.Reference = &TaskNode_ReferenceId{msg} + return true, err + default: + return false, nil + } +} + +func _TaskNode_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TaskNode) + // reference + switch x := m.Reference.(type) { + case *TaskNode_ReferenceId: + s := proto.Size(x.ReferenceId) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Refers to a the workflow the node is to execute. +type WorkflowNode struct { + // Types that are valid to be assigned to Reference: + // *WorkflowNode_LaunchplanRef + // *WorkflowNode_SubWorkflowRef + Reference isWorkflowNode_Reference `protobuf_oneof:"reference"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowNode) Reset() { *m = WorkflowNode{} } +func (m *WorkflowNode) String() string { return proto.CompactTextString(m) } +func (*WorkflowNode) ProtoMessage() {} +func (*WorkflowNode) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{4} +} +func (m *WorkflowNode) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowNode.Unmarshal(m, b) +} +func (m *WorkflowNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowNode.Marshal(b, m, deterministic) +} +func (dst *WorkflowNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowNode.Merge(dst, src) +} +func (m *WorkflowNode) XXX_Size() int { + return xxx_messageInfo_WorkflowNode.Size(m) +} +func (m *WorkflowNode) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowNode.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowNode proto.InternalMessageInfo + +type isWorkflowNode_Reference interface { + isWorkflowNode_Reference() +} + +type WorkflowNode_LaunchplanRef struct { + LaunchplanRef *Identifier `protobuf:"bytes,1,opt,name=launchplan_ref,json=launchplanRef,proto3,oneof"` +} + +type WorkflowNode_SubWorkflowRef struct { + SubWorkflowRef *Identifier `protobuf:"bytes,2,opt,name=sub_workflow_ref,json=subWorkflowRef,proto3,oneof"` +} + +func (*WorkflowNode_LaunchplanRef) isWorkflowNode_Reference() {} + +func (*WorkflowNode_SubWorkflowRef) isWorkflowNode_Reference() {} + +func (m *WorkflowNode) GetReference() isWorkflowNode_Reference { + if m != nil { + return m.Reference + } + return nil +} + +func (m *WorkflowNode) GetLaunchplanRef() *Identifier { + if x, ok := m.GetReference().(*WorkflowNode_LaunchplanRef); ok { + return x.LaunchplanRef + } + return nil +} + +func (m *WorkflowNode) GetSubWorkflowRef() *Identifier { + if x, ok := m.GetReference().(*WorkflowNode_SubWorkflowRef); ok { + return x.SubWorkflowRef + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*WorkflowNode) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _WorkflowNode_OneofMarshaler, _WorkflowNode_OneofUnmarshaler, _WorkflowNode_OneofSizer, []interface{}{ + (*WorkflowNode_LaunchplanRef)(nil), + (*WorkflowNode_SubWorkflowRef)(nil), + } +} + +func _WorkflowNode_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*WorkflowNode) + // reference + switch x := m.Reference.(type) { + case *WorkflowNode_LaunchplanRef: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LaunchplanRef); err != nil { + return err + } + case *WorkflowNode_SubWorkflowRef: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.SubWorkflowRef); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("WorkflowNode.Reference has unexpected type %T", x) + } + return nil +} + +func _WorkflowNode_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WorkflowNode) + switch tag { + case 1: // reference.launchplan_ref + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Identifier) + err := b.DecodeMessage(msg) + m.Reference = &WorkflowNode_LaunchplanRef{msg} + return true, err + case 2: // reference.sub_workflow_ref + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Identifier) + err := b.DecodeMessage(msg) + m.Reference = &WorkflowNode_SubWorkflowRef{msg} + return true, err + default: + return false, nil + } +} + +func _WorkflowNode_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WorkflowNode) + // reference + switch x := m.Reference.(type) { + case *WorkflowNode_LaunchplanRef: + s := proto.Size(x.LaunchplanRef) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *WorkflowNode_SubWorkflowRef: + s := proto.Size(x.SubWorkflowRef) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Defines extra information about the Node. +type NodeMetadata struct { + // A friendly name for the Node + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The overall timeout of a task. + Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Number of retries per task. + Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeMetadata) Reset() { *m = NodeMetadata{} } +func (m *NodeMetadata) String() string { return proto.CompactTextString(m) } +func (*NodeMetadata) ProtoMessage() {} +func (*NodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{5} +} +func (m *NodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeMetadata.Unmarshal(m, b) +} +func (m *NodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeMetadata.Marshal(b, m, deterministic) +} +func (dst *NodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeMetadata.Merge(dst, src) +} +func (m *NodeMetadata) XXX_Size() int { + return xxx_messageInfo_NodeMetadata.Size(m) +} +func (m *NodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_NodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeMetadata proto.InternalMessageInfo + +func (m *NodeMetadata) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *NodeMetadata) GetTimeout() *duration.Duration { + if m != nil { + return m.Timeout + } + return nil +} + +func (m *NodeMetadata) GetRetries() *RetryStrategy { + if m != nil { + return m.Retries + } + return nil +} + +// Links a variable to an alias. +type Alias struct { + // Must match one of the output variable names on a node. + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // A workflow-level unique alias that downstream nodes can refer to in their input. + Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Alias) Reset() { *m = Alias{} } +func (m *Alias) String() string { return proto.CompactTextString(m) } +func (*Alias) ProtoMessage() {} +func (*Alias) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{6} +} +func (m *Alias) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Alias.Unmarshal(m, b) +} +func (m *Alias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Alias.Marshal(b, m, deterministic) +} +func (dst *Alias) XXX_Merge(src proto.Message) { + xxx_messageInfo_Alias.Merge(dst, src) +} +func (m *Alias) XXX_Size() int { + return xxx_messageInfo_Alias.Size(m) +} +func (m *Alias) XXX_DiscardUnknown() { + xxx_messageInfo_Alias.DiscardUnknown(m) +} + +var xxx_messageInfo_Alias proto.InternalMessageInfo + +func (m *Alias) GetVar() string { + if m != nil { + return m.Var + } + return "" +} + +func (m *Alias) GetAlias() string { + if m != nil { + return m.Alias + } + return "" +} + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +// node. +type Node struct { + // A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved + // node ids that cannot be used by other nodes. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Extra metadata about the node. + Metadata *NodeMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + // must be fullfilled. + Inputs []*Binding `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` + // +optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its + // upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs + // field. + UpstreamNodeIds []string `protobuf:"bytes,4,rep,name=upstream_node_ids,json=upstreamNodeIds,proto3" json:"upstream_node_ids,omitempty"` + // +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + // nodes outputs using the alias if one's specified. + OutputAliases []*Alias `protobuf:"bytes,5,rep,name=output_aliases,json=outputAliases,proto3" json:"output_aliases,omitempty"` + // Information about the target to execute in this node. + // + // Types that are valid to be assigned to Target: + // *Node_TaskNode + // *Node_WorkflowNode + // *Node_BranchNode + Target isNode_Target `protobuf_oneof:"target"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Node) Reset() { *m = Node{} } +func (m *Node) String() string { return proto.CompactTextString(m) } +func (*Node) ProtoMessage() {} +func (*Node) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{7} +} +func (m *Node) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Node.Unmarshal(m, b) +} +func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Node.Marshal(b, m, deterministic) +} +func (dst *Node) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node.Merge(dst, src) +} +func (m *Node) XXX_Size() int { + return xxx_messageInfo_Node.Size(m) +} +func (m *Node) XXX_DiscardUnknown() { + xxx_messageInfo_Node.DiscardUnknown(m) +} + +var xxx_messageInfo_Node proto.InternalMessageInfo + +func (m *Node) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Node) GetMetadata() *NodeMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *Node) GetInputs() []*Binding { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *Node) GetUpstreamNodeIds() []string { + if m != nil { + return m.UpstreamNodeIds + } + return nil +} + +func (m *Node) GetOutputAliases() []*Alias { + if m != nil { + return m.OutputAliases + } + return nil +} + +type isNode_Target interface { + isNode_Target() +} + +type Node_TaskNode struct { + TaskNode *TaskNode `protobuf:"bytes,6,opt,name=task_node,json=taskNode,proto3,oneof"` +} + +type Node_WorkflowNode struct { + WorkflowNode *WorkflowNode `protobuf:"bytes,7,opt,name=workflow_node,json=workflowNode,proto3,oneof"` +} + +type Node_BranchNode struct { + BranchNode *BranchNode `protobuf:"bytes,8,opt,name=branch_node,json=branchNode,proto3,oneof"` +} + +func (*Node_TaskNode) isNode_Target() {} + +func (*Node_WorkflowNode) isNode_Target() {} + +func (*Node_BranchNode) isNode_Target() {} + +func (m *Node) GetTarget() isNode_Target { + if m != nil { + return m.Target + } + return nil +} + +func (m *Node) GetTaskNode() *TaskNode { + if x, ok := m.GetTarget().(*Node_TaskNode); ok { + return x.TaskNode + } + return nil +} + +func (m *Node) GetWorkflowNode() *WorkflowNode { + if x, ok := m.GetTarget().(*Node_WorkflowNode); ok { + return x.WorkflowNode + } + return nil +} + +func (m *Node) GetBranchNode() *BranchNode { + if x, ok := m.GetTarget().(*Node_BranchNode); ok { + return x.BranchNode + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Node) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Node_OneofMarshaler, _Node_OneofUnmarshaler, _Node_OneofSizer, []interface{}{ + (*Node_TaskNode)(nil), + (*Node_WorkflowNode)(nil), + (*Node_BranchNode)(nil), + } +} + +func _Node_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Node) + // target + switch x := m.Target.(type) { + case *Node_TaskNode: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TaskNode); err != nil { + return err + } + case *Node_WorkflowNode: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.WorkflowNode); err != nil { + return err + } + case *Node_BranchNode: + b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.BranchNode); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Node.Target has unexpected type %T", x) + } + return nil +} + +func _Node_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Node) + switch tag { + case 6: // target.task_node + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(TaskNode) + err := b.DecodeMessage(msg) + m.Target = &Node_TaskNode{msg} + return true, err + case 7: // target.workflow_node + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WorkflowNode) + err := b.DecodeMessage(msg) + m.Target = &Node_WorkflowNode{msg} + return true, err + case 8: // target.branch_node + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(BranchNode) + err := b.DecodeMessage(msg) + m.Target = &Node_BranchNode{msg} + return true, err + default: + return false, nil + } +} + +func _Node_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Node) + // target + switch x := m.Target.(type) { + case *Node_TaskNode: + s := proto.Size(x.TaskNode) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Node_WorkflowNode: + s := proto.Size(x.WorkflowNode) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Node_BranchNode: + s := proto.Size(x.BranchNode) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// Metadata for the entire workflow. +// To be used in the future. +type WorkflowMetadata struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowMetadata) Reset() { *m = WorkflowMetadata{} } +func (m *WorkflowMetadata) String() string { return proto.CompactTextString(m) } +func (*WorkflowMetadata) ProtoMessage() {} +func (*WorkflowMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{8} +} +func (m *WorkflowMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowMetadata.Unmarshal(m, b) +} +func (m *WorkflowMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowMetadata.Marshal(b, m, deterministic) +} +func (dst *WorkflowMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowMetadata.Merge(dst, src) +} +func (m *WorkflowMetadata) XXX_Size() int { + return xxx_messageInfo_WorkflowMetadata.Size(m) +} +func (m *WorkflowMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowMetadata proto.InternalMessageInfo + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +// directed acyclic graph. +type WorkflowTemplate struct { + // This is an autogenerated id by the system. The id is globally unique across the system. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Extra metadata about the workflow. + Metadata *WorkflowMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + Interface *TypedInterface `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` + // A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs. + Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + // bind final outputs. + // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + // outputs from the output of a task. + Outputs []*Binding `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` + // +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + // The interface of this node must match the Workflow interface with an additional input named "error" of type + // pb.lyft.flyte.core.Error. + FailureNode *Node `protobuf:"bytes,6,opt,name=failure_node,json=failureNode,proto3" json:"failure_node,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowTemplate) Reset() { *m = WorkflowTemplate{} } +func (m *WorkflowTemplate) String() string { return proto.CompactTextString(m) } +func (*WorkflowTemplate) ProtoMessage() {} +func (*WorkflowTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_b40626e568cd0565, []int{9} +} +func (m *WorkflowTemplate) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowTemplate.Unmarshal(m, b) +} +func (m *WorkflowTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowTemplate.Marshal(b, m, deterministic) +} +func (dst *WorkflowTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowTemplate.Merge(dst, src) +} +func (m *WorkflowTemplate) XXX_Size() int { + return xxx_messageInfo_WorkflowTemplate.Size(m) +} +func (m *WorkflowTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowTemplate proto.InternalMessageInfo + +func (m *WorkflowTemplate) GetId() *Identifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *WorkflowTemplate) GetMetadata() *WorkflowMetadata { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *WorkflowTemplate) GetInterface() *TypedInterface { + if m != nil { + return m.Interface + } + return nil +} + +func (m *WorkflowTemplate) GetNodes() []*Node { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *WorkflowTemplate) GetOutputs() []*Binding { + if m != nil { + return m.Outputs + } + return nil +} + +func (m *WorkflowTemplate) GetFailureNode() *Node { + if m != nil { + return m.FailureNode + } + return nil +} + +func init() { + proto.RegisterType((*IfBlock)(nil), "flyteidl.core.IfBlock") + proto.RegisterType((*IfElseBlock)(nil), "flyteidl.core.IfElseBlock") + proto.RegisterType((*BranchNode)(nil), "flyteidl.core.BranchNode") + proto.RegisterType((*TaskNode)(nil), "flyteidl.core.TaskNode") + proto.RegisterType((*WorkflowNode)(nil), "flyteidl.core.WorkflowNode") + proto.RegisterType((*NodeMetadata)(nil), "flyteidl.core.NodeMetadata") + proto.RegisterType((*Alias)(nil), "flyteidl.core.Alias") + proto.RegisterType((*Node)(nil), "flyteidl.core.Node") + proto.RegisterType((*WorkflowMetadata)(nil), "flyteidl.core.WorkflowMetadata") + proto.RegisterType((*WorkflowTemplate)(nil), "flyteidl.core.WorkflowTemplate") +} + +func init() { + proto.RegisterFile("flyteidl/core/workflow.proto", fileDescriptor_workflow_b40626e568cd0565) +} + +var fileDescriptor_workflow_b40626e568cd0565 = []byte{ + // 837 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0xd6, 0xbf, 0xc4, 0x91, 0xec, 0xba, 0xdb, 0xa0, 0x95, 0xdd, 0x24, 0x35, 0x78, 0x4a, 0x82, + 0x96, 0x34, 0x1c, 0xc0, 0x3d, 0xb8, 0x08, 0x60, 0xa2, 0x06, 0xa4, 0x43, 0x7b, 0xd8, 0x06, 0x08, + 0xd0, 0x8b, 0xb0, 0x22, 0x87, 0xd2, 0xc2, 0xd4, 0x2e, 0xb1, 0x5c, 0xd6, 0x15, 0xfa, 0x10, 0x7d, + 0x8b, 0x9e, 0xfa, 0x28, 0x3d, 0xf6, 0x81, 0x0a, 0x2e, 0x97, 0x94, 0xc5, 0xc8, 0x6e, 0x6e, 0xbb, + 0x9a, 0x6f, 0x66, 0xbf, 0xf9, 0xe6, 0x1b, 0x11, 0x9e, 0xc7, 0xc9, 0x56, 0x23, 0x8f, 0x12, 0x3f, + 0x94, 0x0a, 0xfd, 0x7b, 0xa9, 0xee, 0xe2, 0x44, 0xde, 0x7b, 0xa9, 0x92, 0x5a, 0x92, 0xa3, 0x2a, + 0xea, 0x15, 0xd1, 0xb3, 0x17, 0xfb, 0xe0, 0x50, 0x8a, 0x88, 0x6b, 0x2e, 0x45, 0x89, 0x3e, 0x7b, + 0xb9, 0x1f, 0xe6, 0x11, 0x0a, 0xcd, 0x63, 0x8e, 0xca, 0xc6, 0x1b, 0xe9, 0x5c, 0x68, 0x54, 0x31, + 0x0b, 0xd1, 0x86, 0x1b, 0x54, 0x12, 0xae, 0x51, 0xb1, 0x24, 0xb3, 0xd1, 0xd3, 0xfd, 0xa8, 0xde, + 0xa6, 0x58, 0x85, 0x5e, 0xae, 0xa4, 0x5c, 0x25, 0xe8, 0x9b, 0xdb, 0x32, 0x8f, 0xfd, 0x28, 0x57, + 0x6c, 0xc7, 0xcb, 0xfd, 0x03, 0x86, 0xf3, 0x38, 0x48, 0x64, 0x78, 0x47, 0xde, 0x81, 0x53, 0xb3, + 0x9e, 0xb6, 0xcf, 0xdb, 0xaf, 0xc6, 0x97, 0xe7, 0xde, 0x5e, 0x93, 0x5e, 0x20, 0x65, 0x82, 0x4c, + 0xdc, 0xfe, 0x9e, 0x2a, 0xcc, 0x32, 0x2e, 0x05, 0xdd, 0xa5, 0x90, 0x0b, 0x70, 0xf4, 0x1a, 0xc5, + 0x42, 0xc8, 0x08, 0xa7, 0x1d, 0x93, 0xff, 0x45, 0x23, 0xff, 0x67, 0x19, 0x21, 0x1d, 0x15, 0xa8, + 0xe2, 0xe4, 0xfe, 0xdb, 0x86, 0xf1, 0x3c, 0xbe, 0x4d, 0x32, 0x2c, 0x19, 0xbc, 0x81, 0x5e, 0xc8, + 0x32, 0xb4, 0x8f, 0x7f, 0xd9, 0x48, 0xb6, 0x3c, 0xa9, 0xc1, 0x90, 0x6f, 0xa1, 0x2f, 0xf5, 0x1a, + 0xd5, 0xb4, 0x73, 0xde, 0x7d, 0x02, 0x5c, 0x82, 0xc8, 0x25, 0x38, 0x98, 0x64, 0x58, 0x72, 0xeb, + 0x3e, 0xca, 0x6d, 0xd6, 0xa2, 0xa3, 0x02, 0x57, 0x9c, 0x8b, 0x17, 0x50, 0x29, 0xa9, 0xa6, 0x3d, + 0x83, 0x7f, 0xd6, 0xc0, 0xdf, 0x16, 0xb1, 0x59, 0x8b, 0x96, 0xa0, 0xc0, 0x81, 0x61, 0x84, 0x31, + 0xcb, 0x13, 0xed, 0xde, 0x00, 0x04, 0x8a, 0x89, 0x70, 0x6d, 0xca, 0xbc, 0x85, 0x21, 0x8f, 0x17, + 0x45, 0x55, 0xdb, 0xd7, 0xd9, 0x47, 0x54, 0x6b, 0x05, 0xe8, 0x80, 0x9b, 0x8b, 0xfb, 0x01, 0x46, + 0xef, 0x59, 0x76, 0x67, 0x0a, 0xbc, 0x83, 0x89, 0xc2, 0x18, 0x15, 0x8a, 0x10, 0x17, 0x3c, 0xb2, + 0x55, 0x4e, 0x9b, 0x55, 0x6a, 0x47, 0xcd, 0x5a, 0x74, 0x5c, 0x27, 0xcc, 0xa3, 0x60, 0x0c, 0x4e, + 0x7d, 0x75, 0xff, 0x6a, 0xc3, 0xe4, 0x83, 0x35, 0xb2, 0xa9, 0x1e, 0xc0, 0x71, 0xc2, 0x72, 0x11, + 0xae, 0xd3, 0x84, 0x89, 0x85, 0xc2, 0xf8, 0x53, 0xea, 0x1f, 0xed, 0x52, 0x28, 0xc6, 0xe4, 0x16, + 0x4e, 0xb2, 0x7c, 0xb9, 0xa8, 0x16, 0xc4, 0x54, 0xe9, 0xfc, 0x7f, 0x95, 0xe3, 0x2c, 0x5f, 0x56, + 0x5c, 0x28, 0xc6, 0xfb, 0x44, 0xff, 0x6c, 0xc3, 0xa4, 0x20, 0xf8, 0x13, 0x6a, 0x16, 0x31, 0xcd, + 0x08, 0x81, 0x9e, 0x60, 0x9b, 0x52, 0x44, 0x87, 0x9a, 0x73, 0xa1, 0xad, 0xe6, 0x1b, 0x94, 0xb9, + 0xb6, 0x43, 0x3a, 0xf5, 0x4a, 0xbf, 0x7b, 0x95, 0xdf, 0xbd, 0x1f, 0xad, 0xdf, 0x69, 0x85, 0x24, + 0x57, 0x30, 0x54, 0xa8, 0x15, 0xc7, 0x6c, 0xda, 0x37, 0x49, 0xcf, 0x1b, 0x24, 0x29, 0x6a, 0xb5, + 0xfd, 0x45, 0x2b, 0xa6, 0x71, 0xb5, 0xa5, 0x15, 0xd8, 0xf5, 0xa1, 0x7f, 0x93, 0x70, 0x96, 0x91, + 0x13, 0xe8, 0xfe, 0xc6, 0x94, 0x25, 0x52, 0x1c, 0xc9, 0x33, 0xe8, 0xb3, 0x22, 0x64, 0xba, 0x76, + 0x68, 0x79, 0x71, 0xff, 0xee, 0x42, 0xcf, 0x68, 0x7c, 0x0c, 0x1d, 0x3b, 0x37, 0x87, 0x76, 0x78, + 0x44, 0xbe, 0x87, 0xd1, 0xc6, 0xb6, 0x65, 0x75, 0xfa, 0xfa, 0x80, 0x19, 0xab, 0xce, 0x69, 0x0d, + 0x26, 0x1e, 0x0c, 0xb8, 0x48, 0x73, 0x9d, 0x4d, 0xbb, 0x07, 0x5d, 0x1f, 0x70, 0x11, 0x71, 0xb1, + 0xa2, 0x16, 0x45, 0xde, 0xc0, 0xe7, 0x79, 0x9a, 0x69, 0x85, 0x6c, 0x63, 0xac, 0xbf, 0xe0, 0x51, + 0x36, 0xed, 0x9d, 0x77, 0x5f, 0x39, 0xf4, 0xb3, 0x2a, 0x50, 0x3c, 0x35, 0x8f, 0x32, 0x72, 0x0d, + 0xc7, 0x32, 0xd7, 0x69, 0xae, 0x17, 0x86, 0xbd, 0x51, 0xa7, 0x7b, 0xc0, 0xf7, 0x46, 0x03, 0x7a, + 0x54, 0x62, 0x6f, 0x4a, 0x28, 0xb9, 0x02, 0x47, 0xb3, 0xec, 0xae, 0xdc, 0xaf, 0x81, 0x69, 0xe9, + 0xab, 0x46, 0x5e, 0xe5, 0xe7, 0x62, 0xc7, 0x74, 0xe5, 0xed, 0x00, 0x8e, 0x6a, 0xd7, 0x98, 0xdc, + 0xe1, 0x41, 0x39, 0x1e, 0x3a, 0x76, 0xd6, 0xa2, 0x93, 0xfb, 0x87, 0x0e, 0xfe, 0x01, 0xc6, 0x4b, + 0xb3, 0x6e, 0x65, 0x85, 0xd1, 0x41, 0xe3, 0xed, 0x16, 0x72, 0xd6, 0xa2, 0xb0, 0xac, 0x6f, 0xc1, + 0x08, 0x06, 0x9a, 0xa9, 0x15, 0x6a, 0x97, 0xc0, 0x49, 0xf5, 0x4e, 0x25, 0xbd, 0xfb, 0x4f, 0x67, + 0xf7, 0xe3, 0x7b, 0xdc, 0xa4, 0x09, 0xd3, 0x48, 0x5e, 0xd7, 0xe3, 0x7c, 0xca, 0xe0, 0x66, 0xd2, + 0xd7, 0x1f, 0x4d, 0xfa, 0x9b, 0x47, 0x5a, 0x3b, 0x30, 0xed, 0x6b, 0x70, 0xea, 0xef, 0x80, 0xfd, + 0xd3, 0x7a, 0xd1, 0x14, 0x75, 0x9b, 0x62, 0x34, 0xaf, 0x40, 0x74, 0x87, 0x27, 0xaf, 0xa1, 0x5f, + 0xc8, 0x51, 0x8e, 0xfb, 0x91, 0x7f, 0xe2, 0x12, 0x41, 0x2e, 0x60, 0x58, 0x4e, 0xb3, 0x1a, 0xf9, + 0x63, 0xb6, 0xaa, 0x60, 0xe4, 0x0a, 0x26, 0x31, 0xe3, 0x49, 0xae, 0xf0, 0xe1, 0xc4, 0x0f, 0xbe, + 0x31, 0xb6, 0x40, 0x23, 0xf6, 0xe5, 0xaf, 0x17, 0x2b, 0xae, 0xd7, 0xf9, 0xd2, 0x0b, 0xe5, 0xc6, + 0x4f, 0xb6, 0xb1, 0xf6, 0xeb, 0x4f, 0xd7, 0x0a, 0x85, 0x9f, 0x2e, 0xbf, 0x5b, 0x49, 0x7f, 0xef, + 0x6b, 0xb6, 0x1c, 0x98, 0x55, 0x7e, 0xfb, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x12, 0x6e, 0x62, + 0x8a, 0x8e, 0x07, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go new file mode 100644 index 0000000000..c46f57b97f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go @@ -0,0 +1,984 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/workflow.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on IfBlock with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *IfBlock) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCondition()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfBlockValidationError{ + field: "Condition", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetThenNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfBlockValidationError{ + field: "ThenNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// IfBlockValidationError is the validation error returned by IfBlock.Validate +// if the designated constraints aren't met. +type IfBlockValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IfBlockValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IfBlockValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IfBlockValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IfBlockValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IfBlockValidationError) ErrorName() string { return "IfBlockValidationError" } + +// Error satisfies the builtin error interface +func (e IfBlockValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIfBlock.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IfBlockValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IfBlockValidationError{} + +// Validate checks the field values on IfElseBlock with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *IfElseBlock) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetCase()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: "Case", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetOther() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: fmt.Sprintf("Other[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.Default.(type) { + + case *IfElseBlock_ElseNode: + + if v, ok := interface{}(m.GetElseNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: "ElseNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *IfElseBlock_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IfElseBlockValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IfElseBlockValidationError is the validation error returned by +// IfElseBlock.Validate if the designated constraints aren't met. +type IfElseBlockValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IfElseBlockValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IfElseBlockValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IfElseBlockValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IfElseBlockValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IfElseBlockValidationError) ErrorName() string { return "IfElseBlockValidationError" } + +// Error satisfies the builtin error interface +func (e IfElseBlockValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIfElseBlock.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IfElseBlockValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IfElseBlockValidationError{} + +// Validate checks the field values on BranchNode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *BranchNode) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetIfElse()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return BranchNodeValidationError{ + field: "IfElse", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// BranchNodeValidationError is the validation error returned by +// BranchNode.Validate if the designated constraints aren't met. +type BranchNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e BranchNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e BranchNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e BranchNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e BranchNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e BranchNodeValidationError) ErrorName() string { return "BranchNodeValidationError" } + +// Error satisfies the builtin error interface +func (e BranchNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sBranchNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = BranchNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = BranchNodeValidationError{} + +// Validate checks the field values on TaskNode with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *TaskNode) Validate() error { + if m == nil { + return nil + } + + switch m.Reference.(type) { + + case *TaskNode_ReferenceId: + + if v, ok := interface{}(m.GetReferenceId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskNodeValidationError{ + field: "ReferenceId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskNodeValidationError is the validation error returned by +// TaskNode.Validate if the designated constraints aren't met. +type TaskNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskNodeValidationError) ErrorName() string { return "TaskNodeValidationError" } + +// Error satisfies the builtin error interface +func (e TaskNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskNodeValidationError{} + +// Validate checks the field values on WorkflowNode with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *WorkflowNode) Validate() error { + if m == nil { + return nil + } + + switch m.Reference.(type) { + + case *WorkflowNode_LaunchplanRef: + + if v, ok := interface{}(m.GetLaunchplanRef()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeValidationError{ + field: "LaunchplanRef", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *WorkflowNode_SubWorkflowRef: + + if v, ok := interface{}(m.GetSubWorkflowRef()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeValidationError{ + field: "SubWorkflowRef", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WorkflowNodeValidationError is the validation error returned by +// WorkflowNode.Validate if the designated constraints aren't met. +type WorkflowNodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowNodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowNodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowNodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowNodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowNodeValidationError) ErrorName() string { return "WorkflowNodeValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowNodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowNodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowNodeValidationError{} + +// Validate checks the field values on NodeMetadata with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *NodeMetadata) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + if v, ok := interface{}(m.GetTimeout()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeMetadataValidationError{ + field: "Timeout", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetRetries()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeMetadataValidationError{ + field: "Retries", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// NodeMetadataValidationError is the validation error returned by +// NodeMetadata.Validate if the designated constraints aren't met. +type NodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeMetadataValidationError) ErrorName() string { return "NodeMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e NodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeMetadataValidationError{} + +// Validate checks the field values on Alias with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Alias) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Var + + // no validation rules for Alias + + return nil +} + +// AliasValidationError is the validation error returned by Alias.Validate if +// the designated constraints aren't met. +type AliasValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e AliasValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e AliasValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e AliasValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e AliasValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e AliasValidationError) ErrorName() string { return "AliasValidationError" } + +// Error satisfies the builtin error interface +func (e AliasValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sAlias.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = AliasValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = AliasValidationError{} + +// Validate checks the field values on Node with the rules defined in the proto +// definition for this message. If any rules are violated, an error is returned. +func (m *Node) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Id + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetInputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: fmt.Sprintf("Inputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetOutputAliases() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: fmt.Sprintf("OutputAliases[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.Target.(type) { + + case *Node_TaskNode: + + if v, ok := interface{}(m.GetTaskNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "TaskNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Node_WorkflowNode: + + if v, ok := interface{}(m.GetWorkflowNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "WorkflowNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Node_BranchNode: + + if v, ok := interface{}(m.GetBranchNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeValidationError{ + field: "BranchNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NodeValidationError is the validation error returned by Node.Validate if the +// designated constraints aren't met. +type NodeValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeValidationError) ErrorName() string { return "NodeValidationError" } + +// Error satisfies the builtin error interface +func (e NodeValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNode.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeValidationError{} + +// Validate checks the field values on WorkflowMetadata with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowMetadata) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// WorkflowMetadataValidationError is the validation error returned by +// WorkflowMetadata.Validate if the designated constraints aren't met. +type WorkflowMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowMetadataValidationError) ErrorName() string { return "WorkflowMetadataValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowMetadataValidationError{} + +// Validate checks the field values on WorkflowTemplate with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowTemplate) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "Metadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetInterface()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "Interface", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetNodes() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: fmt.Sprintf("Nodes[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetOutputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: fmt.Sprintf("Outputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetFailureNode()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowTemplateValidationError{ + field: "FailureNode", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowTemplateValidationError is the validation error returned by +// WorkflowTemplate.Validate if the designated constraints aren't met. +type WorkflowTemplateValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowTemplateValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowTemplateValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowTemplateValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowTemplateValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowTemplateValidationError) ErrorName() string { return "WorkflowTemplateValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowTemplateValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowTemplate.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowTemplateValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowTemplateValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json new file mode 100644 index 0000000000..fe64388e3d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/workflow.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go new file mode 100644 index 0000000000..63b8390633 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go @@ -0,0 +1,94 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/core/workflow_closure.proto + +package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Defines an enclosed package of workflow and tasks it references. +type WorkflowClosure struct { + // required. Workflow template. + Workflow *WorkflowTemplate `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"` + // optional. A collection of tasks referenced by the workflow. Only needed if the workflow + // references tasks. + Tasks []*TaskTemplate `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} } +func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) } +func (*WorkflowClosure) ProtoMessage() {} +func (*WorkflowClosure) Descriptor() ([]byte, []int) { + return fileDescriptor_workflow_closure_ca61e25db1fe22b9, []int{0} +} +func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b) +} +func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic) +} +func (dst *WorkflowClosure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowClosure.Merge(dst, src) +} +func (m *WorkflowClosure) XXX_Size() int { + return xxx_messageInfo_WorkflowClosure.Size(m) +} +func (m *WorkflowClosure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowClosure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo + +func (m *WorkflowClosure) GetWorkflow() *WorkflowTemplate { + if m != nil { + return m.Workflow + } + return nil +} + +func (m *WorkflowClosure) GetTasks() []*TaskTemplate { + if m != nil { + return m.Tasks + } + return nil +} + +func init() { + proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.core.WorkflowClosure") +} + +func init() { + proto.RegisterFile("flyteidl/core/workflow_closure.proto", fileDescriptor_workflow_closure_ca61e25db1fe22b9) +} + +var fileDescriptor_workflow_closure_ca61e25db1fe22b9 = []byte{ + // 193 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0xcf, 0x2f, 0xca, 0x4e, 0xcb, + 0xc9, 0x2f, 0x8f, 0x4f, 0xce, 0xc9, 0x2f, 0x2e, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, + 0x17, 0xe2, 0x85, 0xa9, 0xd2, 0x03, 0xa9, 0x92, 0x92, 0xc1, 0xae, 0x09, 0xa2, 0x58, 0x4a, 0x12, + 0x55, 0xb6, 0x24, 0xb1, 0x38, 0xbb, 0x18, 0x22, 0xa5, 0xd4, 0xc8, 0xc8, 0xc5, 0x1f, 0x0e, 0x55, + 0xed, 0x0c, 0xb1, 0x41, 0xc8, 0x9a, 0x8b, 0x03, 0x66, 0x80, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, + 0x91, 0xbc, 0x1e, 0x8a, 0x75, 0x7a, 0x30, 0x1d, 0x21, 0xa9, 0xb9, 0x05, 0x39, 0x89, 0x25, 0xa9, + 0x41, 0x70, 0x0d, 0x42, 0x86, 0x5c, 0xac, 0x60, 0xf3, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, + 0xa4, 0xd1, 0x74, 0x86, 0x24, 0x16, 0x67, 0xc3, 0x75, 0x41, 0x54, 0x3a, 0x19, 0x45, 0x19, 0xa4, + 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xe7, 0x54, 0xa6, 0x95, 0xe8, 0xc3, + 0x1d, 0x9c, 0x9e, 0x9a, 0xa7, 0x5f, 0x90, 0xa4, 0x9b, 0x9e, 0xaf, 0x8f, 0xe2, 0x87, 0x24, 0x36, + 0xb0, 0xf3, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x43, 0x98, 0x0a, 0x2e, 0x01, 0x00, + 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go new file mode 100644 index 0000000000..29274791de --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.validate.go @@ -0,0 +1,124 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/core/workflow_closure.proto + +package core + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on WorkflowClosure with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *WorkflowClosure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWorkflow()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: "Workflow", + reason: "embedded message failed validation", + cause: err, + } + } + } + + for idx, item := range m.GetTasks() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowClosureValidationError{ + field: fmt.Sprintf("Tasks[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WorkflowClosureValidationError is the validation error returned by +// WorkflowClosure.Validate if the designated constraints aren't met. +type WorkflowClosureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowClosureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowClosureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowClosureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowClosureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowClosureValidationError) ErrorName() string { return "WorkflowClosureValidationError" } + +// Error satisfies the builtin error interface +func (e WorkflowClosureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowClosure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowClosureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowClosureValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json new file mode 100644 index 0000000000..a3531fed5a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/workflow_closure.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go new file mode 100644 index 0000000000..221cf7c651 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -0,0 +1,1245 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type QueryOperator int32 + +const ( + QueryOperator_EQUAL QueryOperator = 0 + QueryOperator_GREATER_THAN QueryOperator = 1 + QueryOperator_LESSER_THAN QueryOperator = 2 +) + +var QueryOperator_name = map[int32]string{ + 0: "EQUAL", + 1: "GREATER_THAN", + 2: "LESSER_THAN", +} +var QueryOperator_value = map[string]int32{ + "EQUAL": 0, + "GREATER_THAN": 1, + "LESSER_THAN": 2, +} + +func (x QueryOperator) String() string { + return proto.EnumName(QueryOperator_name, int32(x)) +} +func (QueryOperator) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{0} +} + +type CreateResponse_Status int32 + +const ( + CreateResponse_ALREADY_EXISTS CreateResponse_Status = 0 + CreateResponse_CREATED CreateResponse_Status = 1 +) + +var CreateResponse_Status_name = map[int32]string{ + 0: "ALREADY_EXISTS", + 1: "CREATED", +} +var CreateResponse_Status_value = map[string]int32{ + "ALREADY_EXISTS": 0, + "CREATED": 1, +} + +func (x CreateResponse_Status) String() string { + return proto.EnumName(CreateResponse_Status_name, int32(x)) +} +func (CreateResponse_Status) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{11, 0} +} + +type Parameter struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Parameter) Reset() { *m = Parameter{} } +func (m *Parameter) String() string { return proto.CompactTextString(m) } +func (*Parameter) ProtoMessage() {} +func (*Parameter) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{0} +} +func (m *Parameter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Parameter.Unmarshal(m, b) +} +func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Parameter.Marshal(b, m, deterministic) +} +func (dst *Parameter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Parameter.Merge(dst, src) +} +func (m *Parameter) XXX_Size() int { + return xxx_messageInfo_Parameter.Size(m) +} +func (m *Parameter) XXX_DiscardUnknown() { + xxx_messageInfo_Parameter.DiscardUnknown(m) +} + +var xxx_messageInfo_Parameter proto.InternalMessageInfo + +func (m *Parameter) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Parameter) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +// Before jumping to message definition, lets go over the expected flow- +// An Artifact represents an unit-of-work identified by (task, version, inputs). This is +// encoded as unique hash for faster queries(called provenance). An artifact is persisted with some other +// attributes (revision, createdAt, reference_id, outputs). +// Only Discovery service knows about the hashing algorithm; one can use the closure (task, version, inputs) +// to query an artifact if it doesnt have the provenance value. +// +// Before starting the work on a task, programming-model first checks if the task has been done. +// Request: GET (task, version, inputs) +// Response: (Exists, Artifact) or (NotFound, nil) +// if not found, Task executor goes ahead with the execution and at the end of execution creates a new entry in +// the discovery service +// Request: CREATE (task, version, inputs) + (revision, reference_id, outputs) +// Response: (Exists, Artifact) or (Created, Artifact) +// +// One can also Query all the artifacts by querying any subset of properties. +// Message Artifact represents the complete information of an artifact- field that unique define the artifact + +// properties. +// Message ArtifactInternal is our storage model where we create an additional derived column for faster queries. +// Message ArtifactId only represents field that uniquely define the artifact. +type Artifact struct { + Provenance string `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ReferenceId string `protobuf:"bytes,6,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + Inputs []*Parameter `protobuf:"bytes,7,rep,name=inputs,proto3" json:"inputs,omitempty"` + Outputs []*Parameter `protobuf:"bytes,8,rep,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Artifact) Reset() { *m = Artifact{} } +func (m *Artifact) String() string { return proto.CompactTextString(m) } +func (*Artifact) ProtoMessage() {} +func (*Artifact) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{1} +} +func (m *Artifact) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Artifact.Unmarshal(m, b) +} +func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Artifact.Marshal(b, m, deterministic) +} +func (dst *Artifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_Artifact.Merge(dst, src) +} +func (m *Artifact) XXX_Size() int { + return xxx_messageInfo_Artifact.Size(m) +} +func (m *Artifact) XXX_DiscardUnknown() { + xxx_messageInfo_Artifact.DiscardUnknown(m) +} + +var xxx_messageInfo_Artifact proto.InternalMessageInfo + +func (m *Artifact) GetProvenance() string { + if m != nil { + return m.Provenance + } + return "" +} + +func (m *Artifact) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Artifact) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *Artifact) GetRevision() int64 { + if m != nil { + return m.Revision + } + return 0 +} + +func (m *Artifact) GetCreatedAt() int64 { + if m != nil { + return m.CreatedAt + } + return 0 +} + +func (m *Artifact) GetReferenceId() string { + if m != nil { + return m.ReferenceId + } + return "" +} + +func (m *Artifact) GetInputs() []*Parameter { + if m != nil { + return m.Inputs + } + return nil +} + +func (m *Artifact) GetOutputs() []*Parameter { + if m != nil { + return m.Outputs + } + return nil +} + +type ArtifactId struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Inputs []*Parameter `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArtifactId) Reset() { *m = ArtifactId{} } +func (m *ArtifactId) String() string { return proto.CompactTextString(m) } +func (*ArtifactId) ProtoMessage() {} +func (*ArtifactId) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{2} +} +func (m *ArtifactId) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArtifactId.Unmarshal(m, b) +} +func (m *ArtifactId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArtifactId.Marshal(b, m, deterministic) +} +func (dst *ArtifactId) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactId.Merge(dst, src) +} +func (m *ArtifactId) XXX_Size() int { + return xxx_messageInfo_ArtifactId.Size(m) +} +func (m *ArtifactId) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactId.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactId proto.InternalMessageInfo + +func (m *ArtifactId) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ArtifactId) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *ArtifactId) GetInputs() []*Parameter { + if m != nil { + return m.Inputs + } + return nil +} + +type GetRequest struct { + // Types that are valid to be assigned to Id: + // *GetRequest_Provenance + // *GetRequest_ArtifactId + Id isGetRequest_Id `protobuf_oneof:"id"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetRequest) Reset() { *m = GetRequest{} } +func (m *GetRequest) String() string { return proto.CompactTextString(m) } +func (*GetRequest) ProtoMessage() {} +func (*GetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{3} +} +func (m *GetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetRequest.Unmarshal(m, b) +} +func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) +} +func (dst *GetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetRequest.Merge(dst, src) +} +func (m *GetRequest) XXX_Size() int { + return xxx_messageInfo_GetRequest.Size(m) +} +func (m *GetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetRequest proto.InternalMessageInfo + +type isGetRequest_Id interface { + isGetRequest_Id() +} + +type GetRequest_Provenance struct { + Provenance string `protobuf:"bytes,1,opt,name=provenance,proto3,oneof"` +} + +type GetRequest_ArtifactId struct { + ArtifactId *ArtifactId `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +func (*GetRequest_Provenance) isGetRequest_Id() {} + +func (*GetRequest_ArtifactId) isGetRequest_Id() {} + +func (m *GetRequest) GetId() isGetRequest_Id { + if m != nil { + return m.Id + } + return nil +} + +func (m *GetRequest) GetProvenance() string { + if x, ok := m.GetId().(*GetRequest_Provenance); ok { + return x.Provenance + } + return "" +} + +func (m *GetRequest) GetArtifactId() *ArtifactId { + if x, ok := m.GetId().(*GetRequest_ArtifactId); ok { + return x.ArtifactId + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*GetRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _GetRequest_OneofMarshaler, _GetRequest_OneofUnmarshaler, _GetRequest_OneofSizer, []interface{}{ + (*GetRequest_Provenance)(nil), + (*GetRequest_ArtifactId)(nil), + } +} + +func _GetRequest_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*GetRequest) + // id + switch x := m.Id.(type) { + case *GetRequest_Provenance: + b.EncodeVarint(1<<3 | proto.WireBytes) + b.EncodeStringBytes(x.Provenance) + case *GetRequest_ArtifactId: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ArtifactId); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("GetRequest.Id has unexpected type %T", x) + } + return nil +} + +func _GetRequest_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*GetRequest) + switch tag { + case 1: // id.provenance + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Id = &GetRequest_Provenance{x} + return true, err + case 2: // id.artifact_id + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ArtifactId) + err := b.DecodeMessage(msg) + m.Id = &GetRequest_ArtifactId{msg} + return true, err + default: + return false, nil + } +} + +func _GetRequest_OneofSizer(msg proto.Message) (n int) { + m := msg.(*GetRequest) + // id + switch x := m.Id.(type) { + case *GetRequest_Provenance: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.Provenance))) + n += len(x.Provenance) + case *GetRequest_ArtifactId: + s := proto.Size(x.ArtifactId) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type GetResponse struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetResponse) Reset() { *m = GetResponse{} } +func (m *GetResponse) String() string { return proto.CompactTextString(m) } +func (*GetResponse) ProtoMessage() {} +func (*GetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{4} +} +func (m *GetResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetResponse.Unmarshal(m, b) +} +func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) +} +func (dst *GetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetResponse.Merge(dst, src) +} +func (m *GetResponse) XXX_Size() int { + return xxx_messageInfo_GetResponse.Size(m) +} +func (m *GetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetResponse proto.InternalMessageInfo + +func (m *GetResponse) GetArtifact() *Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +type IntFilter struct { + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + Operator QueryOperator `protobuf:"varint,2,opt,name=operator,proto3,enum=pb.lyft.datacatalog.QueryOperator" json:"operator,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntFilter) Reset() { *m = IntFilter{} } +func (m *IntFilter) String() string { return proto.CompactTextString(m) } +func (*IntFilter) ProtoMessage() {} +func (*IntFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{5} +} +func (m *IntFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntFilter.Unmarshal(m, b) +} +func (m *IntFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntFilter.Marshal(b, m, deterministic) +} +func (dst *IntFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntFilter.Merge(dst, src) +} +func (m *IntFilter) XXX_Size() int { + return xxx_messageInfo_IntFilter.Size(m) +} +func (m *IntFilter) XXX_DiscardUnknown() { + xxx_messageInfo_IntFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_IntFilter proto.InternalMessageInfo + +func (m *IntFilter) GetValue() int64 { + if m != nil { + return m.Value + } + return 0 +} + +func (m *IntFilter) GetOperator() QueryOperator { + if m != nil { + return m.Operator + } + return QueryOperator_EQUAL +} + +type IntRangeFilter struct { + Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` + Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntRangeFilter) Reset() { *m = IntRangeFilter{} } +func (m *IntRangeFilter) String() string { return proto.CompactTextString(m) } +func (*IntRangeFilter) ProtoMessage() {} +func (*IntRangeFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{6} +} +func (m *IntRangeFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntRangeFilter.Unmarshal(m, b) +} +func (m *IntRangeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntRangeFilter.Marshal(b, m, deterministic) +} +func (dst *IntRangeFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntRangeFilter.Merge(dst, src) +} +func (m *IntRangeFilter) XXX_Size() int { + return xxx_messageInfo_IntRangeFilter.Size(m) +} +func (m *IntRangeFilter) XXX_DiscardUnknown() { + xxx_messageInfo_IntRangeFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_IntRangeFilter proto.InternalMessageInfo + +func (m *IntRangeFilter) GetMin() int64 { + if m != nil { + return m.Min + } + return 0 +} + +func (m *IntRangeFilter) GetMax() int64 { + if m != nil { + return m.Max + } + return 0 +} + +type IntQueryKey struct { + // Types that are valid to be assigned to Filter: + // *IntQueryKey_Val + // *IntQueryKey_Range + Filter isIntQueryKey_Filter `protobuf_oneof:"filter"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IntQueryKey) Reset() { *m = IntQueryKey{} } +func (m *IntQueryKey) String() string { return proto.CompactTextString(m) } +func (*IntQueryKey) ProtoMessage() {} +func (*IntQueryKey) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{7} +} +func (m *IntQueryKey) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IntQueryKey.Unmarshal(m, b) +} +func (m *IntQueryKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IntQueryKey.Marshal(b, m, deterministic) +} +func (dst *IntQueryKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_IntQueryKey.Merge(dst, src) +} +func (m *IntQueryKey) XXX_Size() int { + return xxx_messageInfo_IntQueryKey.Size(m) +} +func (m *IntQueryKey) XXX_DiscardUnknown() { + xxx_messageInfo_IntQueryKey.DiscardUnknown(m) +} + +var xxx_messageInfo_IntQueryKey proto.InternalMessageInfo + +type isIntQueryKey_Filter interface { + isIntQueryKey_Filter() +} + +type IntQueryKey_Val struct { + Val *IntFilter `protobuf:"bytes,1,opt,name=val,proto3,oneof"` +} + +type IntQueryKey_Range struct { + Range *IntRangeFilter `protobuf:"bytes,2,opt,name=range,proto3,oneof"` +} + +func (*IntQueryKey_Val) isIntQueryKey_Filter() {} + +func (*IntQueryKey_Range) isIntQueryKey_Filter() {} + +func (m *IntQueryKey) GetFilter() isIntQueryKey_Filter { + if m != nil { + return m.Filter + } + return nil +} + +func (m *IntQueryKey) GetVal() *IntFilter { + if x, ok := m.GetFilter().(*IntQueryKey_Val); ok { + return x.Val + } + return nil +} + +func (m *IntQueryKey) GetRange() *IntRangeFilter { + if x, ok := m.GetFilter().(*IntQueryKey_Range); ok { + return x.Range + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*IntQueryKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _IntQueryKey_OneofMarshaler, _IntQueryKey_OneofUnmarshaler, _IntQueryKey_OneofSizer, []interface{}{ + (*IntQueryKey_Val)(nil), + (*IntQueryKey_Range)(nil), + } +} + +func _IntQueryKey_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*IntQueryKey) + // filter + switch x := m.Filter.(type) { + case *IntQueryKey_Val: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Val); err != nil { + return err + } + case *IntQueryKey_Range: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Range); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("IntQueryKey.Filter has unexpected type %T", x) + } + return nil +} + +func _IntQueryKey_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*IntQueryKey) + switch tag { + case 1: // filter.val + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(IntFilter) + err := b.DecodeMessage(msg) + m.Filter = &IntQueryKey_Val{msg} + return true, err + case 2: // filter.range + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(IntRangeFilter) + err := b.DecodeMessage(msg) + m.Filter = &IntQueryKey_Range{msg} + return true, err + default: + return false, nil + } +} + +func _IntQueryKey_OneofSizer(msg proto.Message) (n int) { + m := msg.(*IntQueryKey) + // filter + switch x := m.Filter.(type) { + case *IntQueryKey_Val: + s := proto.Size(x.Val) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *IntQueryKey_Range: + s := proto.Size(x.Range) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// QueryRequest allows queries on a range of values for revision column and point queries on created_at +// and reference_id +type QueryRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Revision *IntQueryKey `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"` + CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueryRequest) Reset() { *m = QueryRequest{} } +func (m *QueryRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRequest) ProtoMessage() {} +func (*QueryRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{8} +} +func (m *QueryRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QueryRequest.Unmarshal(m, b) +} +func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic) +} +func (dst *QueryRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRequest.Merge(dst, src) +} +func (m *QueryRequest) XXX_Size() int { + return xxx_messageInfo_QueryRequest.Size(m) +} +func (m *QueryRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryRequest proto.InternalMessageInfo + +func (m *QueryRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *QueryRequest) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *QueryRequest) GetRevision() *IntQueryKey { + if m != nil { + return m.Revision + } + return nil +} + +func (m *QueryRequest) GetCreatedAt() int64 { + if m != nil { + return m.CreatedAt + } + return 0 +} + +func (m *QueryRequest) GetReferenceId() string { + if m != nil { + return m.ReferenceId + } + return "" +} + +type QueryResponse struct { + Artifact []*Artifact `protobuf:"bytes,1,rep,name=artifact,proto3" json:"artifact,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QueryResponse) Reset() { *m = QueryResponse{} } +func (m *QueryResponse) String() string { return proto.CompactTextString(m) } +func (*QueryResponse) ProtoMessage() {} +func (*QueryResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{9} +} +func (m *QueryResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QueryResponse.Unmarshal(m, b) +} +func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic) +} +func (dst *QueryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryResponse.Merge(dst, src) +} +func (m *QueryResponse) XXX_Size() int { + return xxx_messageInfo_QueryResponse.Size(m) +} +func (m *QueryResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryResponse proto.InternalMessageInfo + +func (m *QueryResponse) GetArtifact() []*Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +type CreateRequest struct { + Ref *ArtifactId `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` + ReferenceId string `protobuf:"bytes,2,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"` + Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` + Outputs []*Parameter `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateRequest) Reset() { *m = CreateRequest{} } +func (m *CreateRequest) String() string { return proto.CompactTextString(m) } +func (*CreateRequest) ProtoMessage() {} +func (*CreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{10} +} +func (m *CreateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateRequest.Unmarshal(m, b) +} +func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic) +} +func (dst *CreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateRequest.Merge(dst, src) +} +func (m *CreateRequest) XXX_Size() int { + return xxx_messageInfo_CreateRequest.Size(m) +} +func (m *CreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateRequest proto.InternalMessageInfo + +func (m *CreateRequest) GetRef() *ArtifactId { + if m != nil { + return m.Ref + } + return nil +} + +func (m *CreateRequest) GetReferenceId() string { + if m != nil { + return m.ReferenceId + } + return "" +} + +func (m *CreateRequest) GetRevision() int64 { + if m != nil { + return m.Revision + } + return 0 +} + +func (m *CreateRequest) GetOutputs() []*Parameter { + if m != nil { + return m.Outputs + } + return nil +} + +type CreateResponse struct { + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` + Status CreateResponse_Status `protobuf:"varint,2,opt,name=status,proto3,enum=pb.lyft.datacatalog.CreateResponse_Status" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateResponse) Reset() { *m = CreateResponse{} } +func (m *CreateResponse) String() string { return proto.CompactTextString(m) } +func (*CreateResponse) ProtoMessage() {} +func (*CreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{11} +} +func (m *CreateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateResponse.Unmarshal(m, b) +} +func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic) +} +func (dst *CreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateResponse.Merge(dst, src) +} +func (m *CreateResponse) XXX_Size() int { + return xxx_messageInfo_CreateResponse.Size(m) +} +func (m *CreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateResponse proto.InternalMessageInfo + +func (m *CreateResponse) GetArtifact() *Artifact { + if m != nil { + return m.Artifact + } + return nil +} + +func (m *CreateResponse) GetStatus() CreateResponse_Status { + if m != nil { + return m.Status + } + return CreateResponse_ALREADY_EXISTS +} + +type GenerateProvenanceRequest struct { + Id *ArtifactId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateProvenanceRequest) Reset() { *m = GenerateProvenanceRequest{} } +func (m *GenerateProvenanceRequest) String() string { return proto.CompactTextString(m) } +func (*GenerateProvenanceRequest) ProtoMessage() {} +func (*GenerateProvenanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{12} +} +func (m *GenerateProvenanceRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateProvenanceRequest.Unmarshal(m, b) +} +func (m *GenerateProvenanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateProvenanceRequest.Marshal(b, m, deterministic) +} +func (dst *GenerateProvenanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateProvenanceRequest.Merge(dst, src) +} +func (m *GenerateProvenanceRequest) XXX_Size() int { + return xxx_messageInfo_GenerateProvenanceRequest.Size(m) +} +func (m *GenerateProvenanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateProvenanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateProvenanceRequest proto.InternalMessageInfo + +func (m *GenerateProvenanceRequest) GetId() *ArtifactId { + if m != nil { + return m.Id + } + return nil +} + +type GenerateProvenanceResponse struct { + Provenance string `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GenerateProvenanceResponse) Reset() { *m = GenerateProvenanceResponse{} } +func (m *GenerateProvenanceResponse) String() string { return proto.CompactTextString(m) } +func (*GenerateProvenanceResponse) ProtoMessage() {} +func (*GenerateProvenanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_datacatalog_d23fb7c04e5af2cc, []int{13} +} +func (m *GenerateProvenanceResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GenerateProvenanceResponse.Unmarshal(m, b) +} +func (m *GenerateProvenanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GenerateProvenanceResponse.Marshal(b, m, deterministic) +} +func (dst *GenerateProvenanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenerateProvenanceResponse.Merge(dst, src) +} +func (m *GenerateProvenanceResponse) XXX_Size() int { + return xxx_messageInfo_GenerateProvenanceResponse.Size(m) +} +func (m *GenerateProvenanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GenerateProvenanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GenerateProvenanceResponse proto.InternalMessageInfo + +func (m *GenerateProvenanceResponse) GetProvenance() string { + if m != nil { + return m.Provenance + } + return "" +} + +func init() { + proto.RegisterType((*Parameter)(nil), "pb.lyft.datacatalog.Parameter") + proto.RegisterType((*Artifact)(nil), "pb.lyft.datacatalog.Artifact") + proto.RegisterType((*ArtifactId)(nil), "pb.lyft.datacatalog.ArtifactId") + proto.RegisterType((*GetRequest)(nil), "pb.lyft.datacatalog.GetRequest") + proto.RegisterType((*GetResponse)(nil), "pb.lyft.datacatalog.GetResponse") + proto.RegisterType((*IntFilter)(nil), "pb.lyft.datacatalog.IntFilter") + proto.RegisterType((*IntRangeFilter)(nil), "pb.lyft.datacatalog.IntRangeFilter") + proto.RegisterType((*IntQueryKey)(nil), "pb.lyft.datacatalog.IntQueryKey") + proto.RegisterType((*QueryRequest)(nil), "pb.lyft.datacatalog.QueryRequest") + proto.RegisterType((*QueryResponse)(nil), "pb.lyft.datacatalog.QueryResponse") + proto.RegisterType((*CreateRequest)(nil), "pb.lyft.datacatalog.CreateRequest") + proto.RegisterType((*CreateResponse)(nil), "pb.lyft.datacatalog.CreateResponse") + proto.RegisterType((*GenerateProvenanceRequest)(nil), "pb.lyft.datacatalog.GenerateProvenanceRequest") + proto.RegisterType((*GenerateProvenanceResponse)(nil), "pb.lyft.datacatalog.GenerateProvenanceResponse") + proto.RegisterEnum("pb.lyft.datacatalog.QueryOperator", QueryOperator_name, QueryOperator_value) + proto.RegisterEnum("pb.lyft.datacatalog.CreateResponse_Status", CreateResponse_Status_name, CreateResponse_Status_value) +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// ArtifactsClient is the client API for Artifacts service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ArtifactsClient interface { + Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) + Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) + Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + GenerateProvenance(ctx context.Context, in *GenerateProvenanceRequest, opts ...grpc.CallOption) (*GenerateProvenanceResponse, error) +} + +type artifactsClient struct { + cc *grpc.ClientConn +} + +func NewArtifactsClient(cc *grpc.ClientConn) ArtifactsClient { + return &artifactsClient{cc} +} + +func (c *artifactsClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { + out := new(GetResponse) + err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactsClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) { + out := new(QueryResponse) + err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/Query", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactsClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) { + out := new(CreateResponse) + err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *artifactsClient) GenerateProvenance(ctx context.Context, in *GenerateProvenanceRequest, opts ...grpc.CallOption) (*GenerateProvenanceResponse, error) { + out := new(GenerateProvenanceResponse) + err := c.cc.Invoke(ctx, "/pb.lyft.datacatalog.Artifacts/GenerateProvenance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ArtifactsServer is the server API for Artifacts service. +type ArtifactsServer interface { + Get(context.Context, *GetRequest) (*GetResponse, error) + Query(context.Context, *QueryRequest) (*QueryResponse, error) + Create(context.Context, *CreateRequest) (*CreateResponse, error) + GenerateProvenance(context.Context, *GenerateProvenanceRequest) (*GenerateProvenanceResponse, error) +} + +func RegisterArtifactsServer(s *grpc.Server, srv ArtifactsServer) { + s.RegisterService(&_Artifacts_serviceDesc, srv) +} + +func _Artifacts_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactsServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.lyft.datacatalog.Artifacts/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactsServer).Get(ctx, req.(*GetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Artifacts_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactsServer).Query(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.lyft.datacatalog.Artifacts/Query", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactsServer).Query(ctx, req.(*QueryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Artifacts_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactsServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.lyft.datacatalog.Artifacts/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactsServer).Create(ctx, req.(*CreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Artifacts_GenerateProvenance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateProvenanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ArtifactsServer).GenerateProvenance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.lyft.datacatalog.Artifacts/GenerateProvenance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ArtifactsServer).GenerateProvenance(ctx, req.(*GenerateProvenanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Artifacts_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.lyft.datacatalog.Artifacts", + HandlerType: (*ArtifactsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Get", + Handler: _Artifacts_Get_Handler, + }, + { + MethodName: "Query", + Handler: _Artifacts_Query_Handler, + }, + { + MethodName: "Create", + Handler: _Artifacts_Create_Handler, + }, + { + MethodName: "GenerateProvenance", + Handler: _Artifacts_GenerateProvenance_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/datacatalog/datacatalog.proto", +} + +func init() { + proto.RegisterFile("flyteidl/datacatalog/datacatalog.proto", fileDescriptor_datacatalog_d23fb7c04e5af2cc) +} + +var fileDescriptor_datacatalog_d23fb7c04e5af2cc = []byte{ + // 790 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0xda, 0x48, + 0x14, 0xc6, 0x36, 0xbf, 0xc7, 0x09, 0x8b, 0xce, 0xee, 0x05, 0x8b, 0x94, 0x2c, 0x99, 0x48, 0xab, + 0x6c, 0x2e, 0x88, 0x96, 0xdd, 0x56, 0xad, 0x9a, 0x56, 0x82, 0x84, 0x02, 0x29, 0x6a, 0x13, 0x93, + 0x4a, 0x6d, 0x6f, 0xd0, 0x04, 0x86, 0xc8, 0x12, 0xb1, 0xe9, 0x78, 0xa0, 0xe1, 0x0d, 0x7a, 0xd9, + 0xc7, 0xe8, 0x33, 0xb4, 0x7d, 0xaf, 0xde, 0x56, 0x1e, 0x3c, 0x8e, 0x53, 0x4c, 0x02, 0xea, 0x9d, + 0xe7, 0xcc, 0x39, 0xdf, 0xf9, 0xe6, 0x3b, 0x3f, 0x00, 0x7f, 0x0f, 0x47, 0x33, 0xc1, 0xec, 0xc1, + 0xe8, 0x60, 0x40, 0x05, 0xed, 0x53, 0x41, 0x47, 0xee, 0x65, 0xf4, 0xbb, 0x32, 0xe6, 0xae, 0x70, + 0xf1, 0xf7, 0xf1, 0x45, 0x65, 0x34, 0x1b, 0x8a, 0x4a, 0xe4, 0x8a, 0x3c, 0x80, 0xdc, 0x29, 0xe5, + 0xf4, 0x8a, 0x09, 0xc6, 0x11, 0x21, 0xe9, 0xd0, 0x2b, 0x56, 0xd4, 0xca, 0xda, 0x5e, 0xce, 0x92, + 0xdf, 0xf8, 0x07, 0xa4, 0xa6, 0x74, 0x34, 0x61, 0x45, 0x5d, 0x1a, 0xe7, 0x07, 0xf2, 0x59, 0x87, + 0x6c, 0x8d, 0x0b, 0x7b, 0x48, 0xfb, 0x02, 0xb7, 0x01, 0xc6, 0xdc, 0x9d, 0x32, 0x87, 0x3a, 0x7d, + 0x15, 0x1c, 0xb1, 0x84, 0xb0, 0x7a, 0x04, 0xb6, 0x08, 0x99, 0x29, 0xe3, 0x9e, 0xed, 0x3a, 0x45, + 0x43, 0x9a, 0xd5, 0x11, 0x4b, 0x90, 0xe5, 0x6c, 0x6a, 0xcb, 0xab, 0x64, 0x59, 0xdb, 0x33, 0xac, + 0xf0, 0x8c, 0x5b, 0x00, 0x7d, 0xce, 0xa8, 0x60, 0x83, 0x1e, 0x15, 0xc5, 0x94, 0xbc, 0xcd, 0x05, + 0x96, 0x9a, 0xc0, 0x1d, 0xd8, 0xe0, 0x6c, 0xc8, 0x38, 0x73, 0xfa, 0xac, 0x67, 0x0f, 0x8a, 0x69, + 0x89, 0x6c, 0x86, 0xb6, 0xf6, 0x00, 0x1f, 0x42, 0xda, 0x76, 0xc6, 0x13, 0xe1, 0x15, 0x33, 0x65, + 0x63, 0xcf, 0xac, 0x6e, 0x57, 0x62, 0x54, 0xa9, 0x84, 0x92, 0x58, 0x81, 0x37, 0x3e, 0x82, 0x8c, + 0x3b, 0x11, 0x32, 0x30, 0xbb, 0x52, 0xa0, 0x72, 0x27, 0x1c, 0x40, 0x29, 0xd5, 0x1e, 0xc4, 0x4a, + 0x1c, 0xd1, 0x42, 0xbf, 0xad, 0xc5, 0x0d, 0x5b, 0x63, 0x1d, 0xb6, 0xe4, 0x1a, 0xa0, 0xc9, 0x84, + 0xc5, 0xde, 0x4f, 0x98, 0x27, 0xb0, 0xbc, 0x58, 0x9f, 0x56, 0xe2, 0x56, 0x85, 0xea, 0x60, 0xd2, + 0x80, 0xa3, 0xaf, 0x9b, 0xcf, 0xc2, 0xac, 0xfe, 0x15, 0x9b, 0xec, 0xe6, 0x2d, 0x3e, 0x06, 0x0d, + 0x4f, 0xf5, 0x24, 0xe8, 0xf6, 0x80, 0xb4, 0xc0, 0x94, 0x99, 0xbd, 0xb1, 0xeb, 0x78, 0x0c, 0x1f, + 0x43, 0x56, 0xb9, 0xc8, 0xc4, 0x66, 0x75, 0xeb, 0x4e, 0x54, 0x2b, 0x74, 0x27, 0x14, 0x72, 0x6d, + 0x47, 0x3c, 0xb7, 0x47, 0x7e, 0x67, 0x86, 0x5d, 0xa8, 0xc9, 0x9a, 0xcf, 0x0f, 0xf8, 0x0c, 0xb2, + 0xee, 0x98, 0x71, 0x2a, 0x5c, 0x2e, 0x39, 0xe7, 0xab, 0x24, 0x16, 0xfd, 0x6c, 0xc2, 0xf8, 0xec, + 0x55, 0xe0, 0x69, 0x85, 0x31, 0xe4, 0x7f, 0xc8, 0xb7, 0x1d, 0x61, 0x51, 0xe7, 0x92, 0x05, 0x79, + 0x0a, 0x60, 0x5c, 0xd9, 0x4e, 0x90, 0xc5, 0xff, 0x94, 0x16, 0x7a, 0x2d, 0xe1, 0x7d, 0x0b, 0xbd, + 0x26, 0x1f, 0x35, 0x30, 0xdb, 0x8e, 0x90, 0xa0, 0x2f, 0xd8, 0x0c, 0xab, 0x60, 0x4c, 0xe9, 0x28, + 0x78, 0x5e, 0x7c, 0x85, 0xc2, 0x87, 0xb4, 0x12, 0x96, 0xef, 0x8c, 0x4f, 0x20, 0xc5, 0xfd, 0xb4, + 0x81, 0xd4, 0xbb, 0xcb, 0xa2, 0x22, 0xdc, 0x5a, 0x09, 0x6b, 0x1e, 0x53, 0xcf, 0x42, 0x7a, 0x28, + 0x4d, 0xe4, 0x9b, 0x06, 0x1b, 0x92, 0x87, 0x2a, 0xf5, 0x7a, 0xed, 0x75, 0x18, 0x19, 0x35, 0x43, + 0x12, 0x29, 0x2f, 0x23, 0xa2, 0x5e, 0xbb, 0x74, 0x18, 0x93, 0xf7, 0x0d, 0x63, 0x6a, 0x61, 0x18, + 0xc9, 0x09, 0x6c, 0x06, 0xec, 0x63, 0xdb, 0xc5, 0x58, 0xa7, 0x5d, 0xbe, 0x6a, 0xb0, 0x79, 0x24, + 0x93, 0x2b, 0x2d, 0xfe, 0x05, 0x83, 0xb3, 0x61, 0x50, 0x97, 0xfb, 0x9a, 0xd9, 0xf2, 0x7d, 0x17, + 0x38, 0xeb, 0x8b, 0x0b, 0xa4, 0xf4, 0x93, 0x66, 0xd1, 0xf5, 0x14, 0x59, 0x12, 0xc9, 0xf5, 0x96, + 0xc4, 0x17, 0x0d, 0xf2, 0x8a, 0xfd, 0x2f, 0x8f, 0x0e, 0xd6, 0x21, 0xed, 0x09, 0x2a, 0x26, 0x5e, + 0x30, 0x15, 0xfb, 0xb1, 0x81, 0xb7, 0xf3, 0x55, 0xba, 0x32, 0xc2, 0x0a, 0x22, 0xc9, 0x3f, 0x90, + 0x9e, 0x5b, 0x10, 0x21, 0x5f, 0xeb, 0x58, 0x8d, 0xda, 0xf1, 0xdb, 0x5e, 0xe3, 0x4d, 0xbb, 0x7b, + 0xde, 0x2d, 0x24, 0xd0, 0x84, 0xcc, 0x91, 0xd5, 0xa8, 0x9d, 0x37, 0x8e, 0x0b, 0x1a, 0xe9, 0xc0, + 0x9f, 0x4d, 0xe6, 0xf8, 0x33, 0xc5, 0x4e, 0xc3, 0x9d, 0xa2, 0xaa, 0x70, 0xe0, 0xaf, 0x85, 0x55, + 0x8b, 0xe0, 0x6f, 0x90, 0x43, 0x28, 0xc5, 0xa1, 0x05, 0xaa, 0xdc, 0xf3, 0x5b, 0xb3, 0xff, 0x34, + 0x68, 0x29, 0x35, 0xed, 0x98, 0x83, 0x54, 0xe3, 0xec, 0x75, 0xad, 0x53, 0x48, 0x60, 0x01, 0x36, + 0x9a, 0x92, 0xb4, 0xd5, 0x3b, 0x6f, 0xd5, 0x5e, 0x16, 0x34, 0xfc, 0x0d, 0xcc, 0x4e, 0xa3, 0xdb, + 0x55, 0x06, 0xbd, 0xfa, 0x5d, 0x87, 0x9c, 0xe2, 0xe3, 0xe1, 0x09, 0x18, 0x4d, 0x26, 0x30, 0x9e, + 0xf6, 0xcd, 0x82, 0x2d, 0x95, 0x97, 0x3b, 0xcc, 0x69, 0x93, 0x04, 0x9e, 0x42, 0x4a, 0x12, 0xc3, + 0x9d, 0xe5, 0x2b, 0x4a, 0xe1, 0x91, 0xbb, 0x5c, 0x42, 0xc4, 0x2e, 0xa4, 0xe7, 0x25, 0x44, 0x72, + 0x67, 0x7d, 0xe7, 0x98, 0xbb, 0x2b, 0xf4, 0x00, 0x49, 0xe0, 0x07, 0xc0, 0x45, 0xf5, 0xb1, 0xb2, + 0xe4, 0x81, 0x4b, 0x8a, 0x5e, 0x3a, 0x58, 0xd9, 0x5f, 0x25, 0xae, 0x17, 0xde, 0x99, 0x11, 0xdf, + 0x4f, 0x9a, 0x76, 0x91, 0x96, 0x7f, 0x5b, 0xfe, 0xfb, 0x11, 0x00, 0x00, 0xff, 0xff, 0xea, 0x1f, + 0xee, 0x85, 0xe0, 0x08, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go new file mode 100644 index 0000000000..78b3119705 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.validate.go @@ -0,0 +1,1159 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on Parameter with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Parameter) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Value + + return nil +} + +// ParameterValidationError is the validation error returned by +// Parameter.Validate if the designated constraints aren't met. +type ParameterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParameterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParameterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParameterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParameterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParameterValidationError) ErrorName() string { return "ParameterValidationError" } + +// Error satisfies the builtin error interface +func (e ParameterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParameter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParameterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParameterValidationError{} + +// Validate checks the field values on Artifact with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Artifact) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Provenance + + // no validation rules for Name + + // no validation rules for Version + + // no validation rules for Revision + + // no validation rules for CreatedAt + + // no validation rules for ReferenceId + + for idx, item := range m.GetInputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Inputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + for idx, item := range m.GetOutputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactValidationError{ + field: fmt.Sprintf("Outputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ArtifactValidationError is the validation error returned by +// Artifact.Validate if the designated constraints aren't met. +type ArtifactValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArtifactValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArtifactValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArtifactValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArtifactValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArtifactValidationError) ErrorName() string { return "ArtifactValidationError" } + +// Error satisfies the builtin error interface +func (e ArtifactValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArtifact.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArtifactValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArtifactValidationError{} + +// Validate checks the field values on ArtifactId with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ArtifactId) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Version + + for idx, item := range m.GetInputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ArtifactIdValidationError{ + field: fmt.Sprintf("Inputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// ArtifactIdValidationError is the validation error returned by +// ArtifactId.Validate if the designated constraints aren't met. +type ArtifactIdValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArtifactIdValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArtifactIdValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArtifactIdValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArtifactIdValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArtifactIdValidationError) ErrorName() string { return "ArtifactIdValidationError" } + +// Error satisfies the builtin error interface +func (e ArtifactIdValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArtifactId.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArtifactIdValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArtifactIdValidationError{} + +// Validate checks the field values on GetRequest with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *GetRequest) Validate() error { + if m == nil { + return nil + } + + switch m.Id.(type) { + + case *GetRequest_Provenance: + // no validation rules for Provenance + + case *GetRequest_ArtifactId: + + if v, ok := interface{}(m.GetArtifactId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetRequestValidationError{ + field: "ArtifactId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// GetRequestValidationError is the validation error returned by +// GetRequest.Validate if the designated constraints aren't met. +type GetRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetRequestValidationError) ErrorName() string { return "GetRequestValidationError" } + +// Error satisfies the builtin error interface +func (e GetRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetRequestValidationError{} + +// Validate checks the field values on GetResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *GetResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GetResponseValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GetResponseValidationError is the validation error returned by +// GetResponse.Validate if the designated constraints aren't met. +type GetResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GetResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GetResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GetResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GetResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GetResponseValidationError) ErrorName() string { return "GetResponseValidationError" } + +// Error satisfies the builtin error interface +func (e GetResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGetResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GetResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GetResponseValidationError{} + +// Validate checks the field values on IntFilter with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *IntFilter) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Value + + // no validation rules for Operator + + return nil +} + +// IntFilterValidationError is the validation error returned by +// IntFilter.Validate if the designated constraints aren't met. +type IntFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntFilterValidationError) ErrorName() string { return "IntFilterValidationError" } + +// Error satisfies the builtin error interface +func (e IntFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntFilterValidationError{} + +// Validate checks the field values on IntRangeFilter with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *IntRangeFilter) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Min + + // no validation rules for Max + + return nil +} + +// IntRangeFilterValidationError is the validation error returned by +// IntRangeFilter.Validate if the designated constraints aren't met. +type IntRangeFilterValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntRangeFilterValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntRangeFilterValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntRangeFilterValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntRangeFilterValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntRangeFilterValidationError) ErrorName() string { return "IntRangeFilterValidationError" } + +// Error satisfies the builtin error interface +func (e IntRangeFilterValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntRangeFilter.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntRangeFilterValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntRangeFilterValidationError{} + +// Validate checks the field values on IntQueryKey with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *IntQueryKey) Validate() error { + if m == nil { + return nil + } + + switch m.Filter.(type) { + + case *IntQueryKey_Val: + + if v, ok := interface{}(m.GetVal()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IntQueryKeyValidationError{ + field: "Val", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *IntQueryKey_Range: + + if v, ok := interface{}(m.GetRange()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return IntQueryKeyValidationError{ + field: "Range", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// IntQueryKeyValidationError is the validation error returned by +// IntQueryKey.Validate if the designated constraints aren't met. +type IntQueryKeyValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e IntQueryKeyValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e IntQueryKeyValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e IntQueryKeyValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e IntQueryKeyValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e IntQueryKeyValidationError) ErrorName() string { return "IntQueryKeyValidationError" } + +// Error satisfies the builtin error interface +func (e IntQueryKeyValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sIntQueryKey.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = IntQueryKeyValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = IntQueryKeyValidationError{} + +// Validate checks the field values on QueryRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *QueryRequest) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Name + + // no validation rules for Version + + if v, ok := interface{}(m.GetRevision()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QueryRequestValidationError{ + field: "Revision", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for CreatedAt + + // no validation rules for ReferenceId + + return nil +} + +// QueryRequestValidationError is the validation error returned by +// QueryRequest.Validate if the designated constraints aren't met. +type QueryRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e QueryRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e QueryRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e QueryRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e QueryRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e QueryRequestValidationError) ErrorName() string { return "QueryRequestValidationError" } + +// Error satisfies the builtin error interface +func (e QueryRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sQueryRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = QueryRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = QueryRequestValidationError{} + +// Validate checks the field values on QueryResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *QueryResponse) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetArtifact() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QueryResponseValidationError{ + field: fmt.Sprintf("Artifact[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// QueryResponseValidationError is the validation error returned by +// QueryResponse.Validate if the designated constraints aren't met. +type QueryResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e QueryResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e QueryResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e QueryResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e QueryResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e QueryResponseValidationError) ErrorName() string { return "QueryResponseValidationError" } + +// Error satisfies the builtin error interface +func (e QueryResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sQueryResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = QueryResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = QueryResponseValidationError{} + +// Validate checks the field values on CreateRequest with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CreateRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetRef()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateRequestValidationError{ + field: "Ref", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ReferenceId + + // no validation rules for Revision + + for idx, item := range m.GetOutputs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateRequestValidationError{ + field: fmt.Sprintf("Outputs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CreateRequestValidationError is the validation error returned by +// CreateRequest.Validate if the designated constraints aren't met. +type CreateRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateRequestValidationError) ErrorName() string { return "CreateRequestValidationError" } + +// Error satisfies the builtin error interface +func (e CreateRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateRequestValidationError{} + +// Validate checks the field values on CreateResponse with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *CreateResponse) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetArtifact()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateResponseValidationError{ + field: "Artifact", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Status + + return nil +} + +// CreateResponseValidationError is the validation error returned by +// CreateResponse.Validate if the designated constraints aren't met. +type CreateResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateResponseValidationError) ErrorName() string { return "CreateResponseValidationError" } + +// Error satisfies the builtin error interface +func (e CreateResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateResponseValidationError{} + +// Validate checks the field values on GenerateProvenanceRequest with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GenerateProvenanceRequest) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return GenerateProvenanceRequestValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// GenerateProvenanceRequestValidationError is the validation error returned by +// GenerateProvenanceRequest.Validate if the designated constraints aren't met. +type GenerateProvenanceRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GenerateProvenanceRequestValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GenerateProvenanceRequestValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GenerateProvenanceRequestValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GenerateProvenanceRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GenerateProvenanceRequestValidationError) ErrorName() string { + return "GenerateProvenanceRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e GenerateProvenanceRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGenerateProvenanceRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GenerateProvenanceRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GenerateProvenanceRequestValidationError{} + +// Validate checks the field values on GenerateProvenanceResponse with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *GenerateProvenanceResponse) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Provenance + + return nil +} + +// GenerateProvenanceResponseValidationError is the validation error returned +// by GenerateProvenanceResponse.Validate if the designated constraints aren't met. +type GenerateProvenanceResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e GenerateProvenanceResponseValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e GenerateProvenanceResponseValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e GenerateProvenanceResponseValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e GenerateProvenanceResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e GenerateProvenanceResponseValidationError) ErrorName() string { + return "GenerateProvenanceResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e GenerateProvenanceResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sGenerateProvenanceResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = GenerateProvenanceResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = GenerateProvenanceResponseValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go new file mode 100644 index 0000000000..c9e8679bc1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go @@ -0,0 +1,826 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/event/event.proto + +package event // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _struct "github.com/golang/protobuf/ptypes/struct" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type WorkflowExecutionEvent struct { + // Workflow execution id + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + // the id of the originator (Propeller) of the event + ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + Phase core.WorkflowExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the workflow. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are valid to be assigned to OutputResult: + // *WorkflowExecutionEvent_OutputUri + // *WorkflowExecutionEvent_Error + OutputResult isWorkflowExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowExecutionEvent) Reset() { *m = WorkflowExecutionEvent{} } +func (m *WorkflowExecutionEvent) String() string { return proto.CompactTextString(m) } +func (*WorkflowExecutionEvent) ProtoMessage() {} +func (*WorkflowExecutionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_event_032935db9c57c03d, []int{0} +} +func (m *WorkflowExecutionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowExecutionEvent.Unmarshal(m, b) +} +func (m *WorkflowExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowExecutionEvent.Marshal(b, m, deterministic) +} +func (dst *WorkflowExecutionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowExecutionEvent.Merge(dst, src) +} +func (m *WorkflowExecutionEvent) XXX_Size() int { + return xxx_messageInfo_WorkflowExecutionEvent.Size(m) +} +func (m *WorkflowExecutionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowExecutionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowExecutionEvent proto.InternalMessageInfo + +func (m *WorkflowExecutionEvent) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +func (m *WorkflowExecutionEvent) GetProducerId() string { + if m != nil { + return m.ProducerId + } + return "" +} + +func (m *WorkflowExecutionEvent) GetPhase() core.WorkflowExecution_Phase { + if m != nil { + return m.Phase + } + return core.WorkflowExecution_UNDEFINED +} + +func (m *WorkflowExecutionEvent) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +type isWorkflowExecutionEvent_OutputResult interface { + isWorkflowExecutionEvent_OutputResult() +} + +type WorkflowExecutionEvent_OutputUri struct { + OutputUri string `protobuf:"bytes,5,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type WorkflowExecutionEvent_Error struct { + Error *core.ExecutionError `protobuf:"bytes,6,opt,name=error,proto3,oneof"` +} + +func (*WorkflowExecutionEvent_OutputUri) isWorkflowExecutionEvent_OutputResult() {} + +func (*WorkflowExecutionEvent_Error) isWorkflowExecutionEvent_OutputResult() {} + +func (m *WorkflowExecutionEvent) GetOutputResult() isWorkflowExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *WorkflowExecutionEvent) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *WorkflowExecutionEvent) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*WorkflowExecutionEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _WorkflowExecutionEvent_OneofMarshaler, _WorkflowExecutionEvent_OneofUnmarshaler, _WorkflowExecutionEvent_OneofSizer, []interface{}{ + (*WorkflowExecutionEvent_OutputUri)(nil), + (*WorkflowExecutionEvent_Error)(nil), + } +} + +func _WorkflowExecutionEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*WorkflowExecutionEvent) + // output_result + switch x := m.OutputResult.(type) { + case *WorkflowExecutionEvent_OutputUri: + b.EncodeVarint(5<<3 | proto.WireBytes) + b.EncodeStringBytes(x.OutputUri) + case *WorkflowExecutionEvent_Error: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("WorkflowExecutionEvent.OutputResult has unexpected type %T", x) + } + return nil +} + +func _WorkflowExecutionEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*WorkflowExecutionEvent) + switch tag { + case 5: // output_result.output_uri + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.OutputResult = &WorkflowExecutionEvent_OutputUri{x} + return true, err + case 6: // output_result.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.ExecutionError) + err := b.DecodeMessage(msg) + m.OutputResult = &WorkflowExecutionEvent_Error{msg} + return true, err + default: + return false, nil + } +} + +func _WorkflowExecutionEvent_OneofSizer(msg proto.Message) (n int) { + m := msg.(*WorkflowExecutionEvent) + // output_result + switch x := m.OutputResult.(type) { + case *WorkflowExecutionEvent_OutputUri: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.OutputUri))) + n += len(x.OutputUri) + case *WorkflowExecutionEvent_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +type NodeExecutionEvent struct { + // Unique identifier for this node execution + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // the id of the originator (Propeller) of the event + ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the node. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + InputUri string `protobuf:"bytes,5,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Types that are valid to be assigned to OutputResult: + // *NodeExecutionEvent_OutputUri + // *NodeExecutionEvent_Error + OutputResult isNodeExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + // Additional metadata to do with this event's node target based + // on the node type + // + // Types that are valid to be assigned to TargetMetadata: + // *NodeExecutionEvent_WorkflowNodeMetadata + TargetMetadata isNodeExecutionEvent_TargetMetadata `protobuf_oneof:"target_metadata"` + // Specifies which task (if any) launched this node. + ParentTaskMetadata *ParentTaskExecutionMetadata `protobuf:"bytes,9,opt,name=parent_task_metadata,json=parentTaskMetadata,proto3" json:"parent_task_metadata,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *NodeExecutionEvent) Reset() { *m = NodeExecutionEvent{} } +func (m *NodeExecutionEvent) String() string { return proto.CompactTextString(m) } +func (*NodeExecutionEvent) ProtoMessage() {} +func (*NodeExecutionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_event_032935db9c57c03d, []int{1} +} +func (m *NodeExecutionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_NodeExecutionEvent.Unmarshal(m, b) +} +func (m *NodeExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_NodeExecutionEvent.Marshal(b, m, deterministic) +} +func (dst *NodeExecutionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeExecutionEvent.Merge(dst, src) +} +func (m *NodeExecutionEvent) XXX_Size() int { + return xxx_messageInfo_NodeExecutionEvent.Size(m) +} +func (m *NodeExecutionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_NodeExecutionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeExecutionEvent proto.InternalMessageInfo + +func (m *NodeExecutionEvent) GetId() *core.NodeExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +func (m *NodeExecutionEvent) GetProducerId() string { + if m != nil { + return m.ProducerId + } + return "" +} + +func (m *NodeExecutionEvent) GetPhase() core.NodeExecution_Phase { + if m != nil { + return m.Phase + } + return core.NodeExecution_UNDEFINED +} + +func (m *NodeExecutionEvent) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +func (m *NodeExecutionEvent) GetInputUri() string { + if m != nil { + return m.InputUri + } + return "" +} + +type isNodeExecutionEvent_OutputResult interface { + isNodeExecutionEvent_OutputResult() +} + +type NodeExecutionEvent_OutputUri struct { + OutputUri string `protobuf:"bytes,6,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type NodeExecutionEvent_Error struct { + Error *core.ExecutionError `protobuf:"bytes,7,opt,name=error,proto3,oneof"` +} + +func (*NodeExecutionEvent_OutputUri) isNodeExecutionEvent_OutputResult() {} + +func (*NodeExecutionEvent_Error) isNodeExecutionEvent_OutputResult() {} + +func (m *NodeExecutionEvent) GetOutputResult() isNodeExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *NodeExecutionEvent) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*NodeExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *NodeExecutionEvent) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*NodeExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +type isNodeExecutionEvent_TargetMetadata interface { + isNodeExecutionEvent_TargetMetadata() +} + +type NodeExecutionEvent_WorkflowNodeMetadata struct { + WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` +} + +func (*NodeExecutionEvent_WorkflowNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} + +func (m *NodeExecutionEvent) GetTargetMetadata() isNodeExecutionEvent_TargetMetadata { + if m != nil { + return m.TargetMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { + if x, ok := m.GetTargetMetadata().(*NodeExecutionEvent_WorkflowNodeMetadata); ok { + return x.WorkflowNodeMetadata + } + return nil +} + +func (m *NodeExecutionEvent) GetParentTaskMetadata() *ParentTaskExecutionMetadata { + if m != nil { + return m.ParentTaskMetadata + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*NodeExecutionEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _NodeExecutionEvent_OneofMarshaler, _NodeExecutionEvent_OneofUnmarshaler, _NodeExecutionEvent_OneofSizer, []interface{}{ + (*NodeExecutionEvent_OutputUri)(nil), + (*NodeExecutionEvent_Error)(nil), + (*NodeExecutionEvent_WorkflowNodeMetadata)(nil), + } +} + +func _NodeExecutionEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*NodeExecutionEvent) + // output_result + switch x := m.OutputResult.(type) { + case *NodeExecutionEvent_OutputUri: + b.EncodeVarint(6<<3 | proto.WireBytes) + b.EncodeStringBytes(x.OutputUri) + case *NodeExecutionEvent_Error: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("NodeExecutionEvent.OutputResult has unexpected type %T", x) + } + // target_metadata + switch x := m.TargetMetadata.(type) { + case *NodeExecutionEvent_WorkflowNodeMetadata: + b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.WorkflowNodeMetadata); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("NodeExecutionEvent.TargetMetadata has unexpected type %T", x) + } + return nil +} + +func _NodeExecutionEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*NodeExecutionEvent) + switch tag { + case 6: // output_result.output_uri + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.OutputResult = &NodeExecutionEvent_OutputUri{x} + return true, err + case 7: // output_result.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.ExecutionError) + err := b.DecodeMessage(msg) + m.OutputResult = &NodeExecutionEvent_Error{msg} + return true, err + case 8: // target_metadata.workflow_node_metadata + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(WorkflowNodeMetadata) + err := b.DecodeMessage(msg) + m.TargetMetadata = &NodeExecutionEvent_WorkflowNodeMetadata{msg} + return true, err + default: + return false, nil + } +} + +func _NodeExecutionEvent_OneofSizer(msg proto.Message) (n int) { + m := msg.(*NodeExecutionEvent) + // output_result + switch x := m.OutputResult.(type) { + case *NodeExecutionEvent_OutputUri: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.OutputUri))) + n += len(x.OutputUri) + case *NodeExecutionEvent_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + // target_metadata + switch x := m.TargetMetadata.(type) { + case *NodeExecutionEvent_WorkflowNodeMetadata: + s := proto.Size(x.WorkflowNodeMetadata) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// For Workflow Nodes we need to send information about the workflow that's launched +type WorkflowNodeMetadata struct { + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowNodeMetadata) Reset() { *m = WorkflowNodeMetadata{} } +func (m *WorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } +func (*WorkflowNodeMetadata) ProtoMessage() {} +func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_event_032935db9c57c03d, []int{2} +} +func (m *WorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowNodeMetadata.Unmarshal(m, b) +} +func (m *WorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowNodeMetadata.Marshal(b, m, deterministic) +} +func (dst *WorkflowNodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowNodeMetadata.Merge(dst, src) +} +func (m *WorkflowNodeMetadata) XXX_Size() int { + return xxx_messageInfo_WorkflowNodeMetadata.Size(m) +} +func (m *WorkflowNodeMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowNodeMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowNodeMetadata proto.InternalMessageInfo + +func (m *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.ExecutionId + } + return nil +} + +type ParentTaskExecutionMetadata struct { + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParentTaskExecutionMetadata) Reset() { *m = ParentTaskExecutionMetadata{} } +func (m *ParentTaskExecutionMetadata) String() string { return proto.CompactTextString(m) } +func (*ParentTaskExecutionMetadata) ProtoMessage() {} +func (*ParentTaskExecutionMetadata) Descriptor() ([]byte, []int) { + return fileDescriptor_event_032935db9c57c03d, []int{3} +} +func (m *ParentTaskExecutionMetadata) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParentTaskExecutionMetadata.Unmarshal(m, b) +} +func (m *ParentTaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParentTaskExecutionMetadata.Marshal(b, m, deterministic) +} +func (dst *ParentTaskExecutionMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParentTaskExecutionMetadata.Merge(dst, src) +} +func (m *ParentTaskExecutionMetadata) XXX_Size() int { + return xxx_messageInfo_ParentTaskExecutionMetadata.Size(m) +} +func (m *ParentTaskExecutionMetadata) XXX_DiscardUnknown() { + xxx_messageInfo_ParentTaskExecutionMetadata.DiscardUnknown(m) +} + +var xxx_messageInfo_ParentTaskExecutionMetadata proto.InternalMessageInfo + +func (m *ParentTaskExecutionMetadata) GetId() *core.TaskExecutionIdentifier { + if m != nil { + return m.Id + } + return nil +} + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +type TaskExecutionEvent struct { + // ID of the task. In combination with the retryAttempt this will indicate + // the task execution uniquely for a given parent node execution. + TaskId *core.Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // A task execution is always kicked off by a node execution, the event consumer + // will use the parent_id to relate the task to it's parent node execution + ParentNodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=parent_node_execution_id,json=parentNodeExecutionId,proto3" json:"parent_node_execution_id,omitempty"` + // retry attempt number for this task, ie., 2 for the second attempt + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + // Phase associated with the event + Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // id of the process that sent this event, mainly for trace debugging + ProducerId string `protobuf:"bytes,5,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + // log information for the task execution + Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the task. + OccurredAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // URI of the input file, it encodes all the information + // including Cloud source provider. ie., s3://... + InputUri string `protobuf:"bytes,8,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Types that are valid to be assigned to OutputResult: + // *TaskExecutionEvent_OutputUri + // *TaskExecutionEvent_Error + OutputResult isTaskExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + CustomInfo *_struct.Struct `protobuf:"bytes,11,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + // that should be recorded regardless of the lack of phase change. + // The version field should be incremented when metadata changes across the duration of an individual phase. + PhaseVersion uint32 `protobuf:"varint,12,opt,name=phase_version,json=phaseVersion,proto3" json:"phase_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TaskExecutionEvent) Reset() { *m = TaskExecutionEvent{} } +func (m *TaskExecutionEvent) String() string { return proto.CompactTextString(m) } +func (*TaskExecutionEvent) ProtoMessage() {} +func (*TaskExecutionEvent) Descriptor() ([]byte, []int) { + return fileDescriptor_event_032935db9c57c03d, []int{4} +} +func (m *TaskExecutionEvent) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TaskExecutionEvent.Unmarshal(m, b) +} +func (m *TaskExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TaskExecutionEvent.Marshal(b, m, deterministic) +} +func (dst *TaskExecutionEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskExecutionEvent.Merge(dst, src) +} +func (m *TaskExecutionEvent) XXX_Size() int { + return xxx_messageInfo_TaskExecutionEvent.Size(m) +} +func (m *TaskExecutionEvent) XXX_DiscardUnknown() { + xxx_messageInfo_TaskExecutionEvent.DiscardUnknown(m) +} + +var xxx_messageInfo_TaskExecutionEvent proto.InternalMessageInfo + +func (m *TaskExecutionEvent) GetTaskId() *core.Identifier { + if m != nil { + return m.TaskId + } + return nil +} + +func (m *TaskExecutionEvent) GetParentNodeExecutionId() *core.NodeExecutionIdentifier { + if m != nil { + return m.ParentNodeExecutionId + } + return nil +} + +func (m *TaskExecutionEvent) GetRetryAttempt() uint32 { + if m != nil { + return m.RetryAttempt + } + return 0 +} + +func (m *TaskExecutionEvent) GetPhase() core.TaskExecution_Phase { + if m != nil { + return m.Phase + } + return core.TaskExecution_UNDEFINED +} + +func (m *TaskExecutionEvent) GetProducerId() string { + if m != nil { + return m.ProducerId + } + return "" +} + +func (m *TaskExecutionEvent) GetLogs() []*core.TaskLog { + if m != nil { + return m.Logs + } + return nil +} + +func (m *TaskExecutionEvent) GetOccurredAt() *timestamp.Timestamp { + if m != nil { + return m.OccurredAt + } + return nil +} + +func (m *TaskExecutionEvent) GetInputUri() string { + if m != nil { + return m.InputUri + } + return "" +} + +type isTaskExecutionEvent_OutputResult interface { + isTaskExecutionEvent_OutputResult() +} + +type TaskExecutionEvent_OutputUri struct { + OutputUri string `protobuf:"bytes,9,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type TaskExecutionEvent_Error struct { + Error *core.ExecutionError `protobuf:"bytes,10,opt,name=error,proto3,oneof"` +} + +func (*TaskExecutionEvent_OutputUri) isTaskExecutionEvent_OutputResult() {} + +func (*TaskExecutionEvent_Error) isTaskExecutionEvent_OutputResult() {} + +func (m *TaskExecutionEvent) GetOutputResult() isTaskExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (m *TaskExecutionEvent) GetOutputUri() string { + if x, ok := m.GetOutputResult().(*TaskExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (m *TaskExecutionEvent) GetError() *core.ExecutionError { + if x, ok := m.GetOutputResult().(*TaskExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (m *TaskExecutionEvent) GetCustomInfo() *_struct.Struct { + if m != nil { + return m.CustomInfo + } + return nil +} + +func (m *TaskExecutionEvent) GetPhaseVersion() uint32 { + if m != nil { + return m.PhaseVersion + } + return 0 +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*TaskExecutionEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _TaskExecutionEvent_OneofMarshaler, _TaskExecutionEvent_OneofUnmarshaler, _TaskExecutionEvent_OneofSizer, []interface{}{ + (*TaskExecutionEvent_OutputUri)(nil), + (*TaskExecutionEvent_Error)(nil), + } +} + +func _TaskExecutionEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*TaskExecutionEvent) + // output_result + switch x := m.OutputResult.(type) { + case *TaskExecutionEvent_OutputUri: + b.EncodeVarint(9<<3 | proto.WireBytes) + b.EncodeStringBytes(x.OutputUri) + case *TaskExecutionEvent_Error: + b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("TaskExecutionEvent.OutputResult has unexpected type %T", x) + } + return nil +} + +func _TaskExecutionEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*TaskExecutionEvent) + switch tag { + case 9: // output_result.output_uri + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.OutputResult = &TaskExecutionEvent_OutputUri{x} + return true, err + case 10: // output_result.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(core.ExecutionError) + err := b.DecodeMessage(msg) + m.OutputResult = &TaskExecutionEvent_Error{msg} + return true, err + default: + return false, nil + } +} + +func _TaskExecutionEvent_OneofSizer(msg proto.Message) (n int) { + m := msg.(*TaskExecutionEvent) + // output_result + switch x := m.OutputResult.(type) { + case *TaskExecutionEvent_OutputUri: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.OutputUri))) + n += len(x.OutputUri) + case *TaskExecutionEvent_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +func init() { + proto.RegisterType((*WorkflowExecutionEvent)(nil), "flyteidl.event.WorkflowExecutionEvent") + proto.RegisterType((*NodeExecutionEvent)(nil), "flyteidl.event.NodeExecutionEvent") + proto.RegisterType((*WorkflowNodeMetadata)(nil), "flyteidl.event.WorkflowNodeMetadata") + proto.RegisterType((*ParentTaskExecutionMetadata)(nil), "flyteidl.event.ParentTaskExecutionMetadata") + proto.RegisterType((*TaskExecutionEvent)(nil), "flyteidl.event.TaskExecutionEvent") +} + +func init() { proto.RegisterFile("flyteidl/event/event.proto", fileDescriptor_event_032935db9c57c03d) } + +var fileDescriptor_event_032935db9c57c03d = []byte{ + // 686 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xef, 0x6b, 0xd3, 0x40, + 0x18, 0x5e, 0xbb, 0xb6, 0x5b, 0xdf, 0xec, 0x07, 0x1e, 0x73, 0xc6, 0xce, 0xb9, 0x52, 0x45, 0xca, + 0xc4, 0x04, 0x3b, 0x94, 0x81, 0x7e, 0xd9, 0x60, 0xb0, 0x82, 0x93, 0x11, 0x37, 0x05, 0x51, 0x42, + 0x9a, 0x5c, 0xb2, 0x63, 0x69, 0x2e, 0x5c, 0xde, 0x6c, 0xee, 0x5f, 0xf3, 0x6f, 0xf2, 0xbb, 0x5f, + 0x25, 0x97, 0x1f, 0x5d, 0xd2, 0x52, 0x9d, 0xec, 0x4b, 0xa1, 0xcf, 0x3d, 0xf7, 0xe4, 0xb9, 0xe7, + 0xde, 0x87, 0x83, 0x8e, 0xeb, 0xdf, 0x20, 0x65, 0x8e, 0xaf, 0xd3, 0x2b, 0x1a, 0x60, 0xfa, 0xab, + 0x85, 0x82, 0x23, 0x27, 0x6b, 0xf9, 0x9a, 0x26, 0xd1, 0xce, 0x76, 0xc1, 0xb5, 0xb9, 0xa0, 0x3a, + 0xfd, 0x41, 0xed, 0x18, 0x19, 0x0f, 0x52, 0x7a, 0xe7, 0x69, 0x79, 0x99, 0x39, 0x34, 0x40, 0xe6, + 0x32, 0x2a, 0xb2, 0xf5, 0x1d, 0x8f, 0x73, 0xcf, 0xa7, 0xba, 0xfc, 0x37, 0x8a, 0x5d, 0x1d, 0xd9, + 0x98, 0x46, 0x68, 0x8d, 0xc3, 0x8c, 0xf0, 0xa4, 0x4a, 0x88, 0x50, 0xc4, 0x76, 0xe6, 0xa6, 0xf7, + 0xab, 0x0e, 0x9b, 0x5f, 0xb8, 0xb8, 0x74, 0x7d, 0x7e, 0x7d, 0x94, 0x7f, 0xfa, 0x28, 0x31, 0x46, + 0x4e, 0x60, 0xa5, 0x30, 0x63, 0x32, 0x47, 0xad, 0x75, 0x6b, 0x7d, 0x65, 0xb0, 0xab, 0x15, 0xfe, + 0x13, 0x43, 0xda, 0xd4, 0xe6, 0x61, 0xe1, 0xd0, 0x50, 0xe8, 0x04, 0x24, 0x3b, 0xa0, 0x84, 0x82, + 0x3b, 0xb1, 0x4d, 0x45, 0xa2, 0x56, 0xef, 0xd6, 0xfa, 0x6d, 0x03, 0x72, 0x68, 0xe8, 0x90, 0xf7, + 0xd0, 0x0c, 0x2f, 0xac, 0x88, 0xaa, 0x8b, 0xdd, 0x5a, 0x7f, 0x6d, 0xf0, 0xe2, 0x6f, 0x1f, 0xd2, + 0x4e, 0x13, 0xb6, 0x91, 0x6e, 0x22, 0xef, 0x40, 0xe1, 0xb6, 0x1d, 0x0b, 0x41, 0x1d, 0xd3, 0x42, + 0xb5, 0x21, 0xcd, 0x76, 0xb4, 0xf4, 0xf0, 0x5a, 0x7e, 0x78, 0xed, 0x2c, 0x4f, 0xc7, 0x80, 0x9c, + 0x7e, 0x80, 0x64, 0x07, 0x80, 0xc7, 0x18, 0xc6, 0x68, 0xc6, 0x82, 0xa9, 0xcd, 0xc4, 0xda, 0xf1, + 0x82, 0xd1, 0x4e, 0xb1, 0x73, 0xc1, 0xc8, 0x1b, 0x68, 0x52, 0x21, 0xb8, 0x50, 0x5b, 0x52, 0x77, + 0xbb, 0xe2, 0x6d, 0x92, 0x5c, 0x42, 0x3a, 0x5e, 0x30, 0x52, 0xf6, 0xe1, 0x3a, 0xac, 0x66, 0xba, + 0x82, 0x46, 0xb1, 0x8f, 0xbd, 0x9f, 0x0d, 0x20, 0x1f, 0xb9, 0x43, 0x2b, 0x51, 0xbf, 0x85, 0x7a, + 0x11, 0x70, 0xf5, 0xdc, 0x25, 0xfa, 0xad, 0x70, 0xeb, 0xec, 0x1f, 0x32, 0xdd, 0x2f, 0x67, 0xda, + 0x9b, 0xa7, 0x7d, 0x8f, 0x79, 0x6e, 0x41, 0x9b, 0x05, 0xa5, 0x38, 0x8d, 0x65, 0x09, 0x24, 0x59, + 0x96, 0xc3, 0x6e, 0xcd, 0x09, 0x7b, 0xe9, 0x2e, 0x61, 0x93, 0x6f, 0xb0, 0x79, 0x9d, 0xcd, 0x88, + 0x19, 0x70, 0x87, 0x9a, 0x63, 0x8a, 0x96, 0x63, 0xa1, 0xa5, 0x2e, 0x4b, 0x9d, 0xe7, 0x5a, 0xb9, + 0x79, 0xc5, 0x44, 0x25, 0x29, 0x9c, 0x64, 0xdc, 0xe3, 0x9a, 0xb1, 0x71, 0x3d, 0x03, 0x27, 0xdf, + 0x61, 0x23, 0xb4, 0x04, 0x0d, 0xd0, 0x44, 0x2b, 0xba, 0x9c, 0x68, 0xb7, 0xa5, 0xf6, 0xcb, 0xaa, + 0xf6, 0xa9, 0xe4, 0x9e, 0x59, 0xd1, 0x65, 0x61, 0x37, 0x97, 0x32, 0x48, 0x58, 0x2c, 0xe6, 0xd8, + 0xd4, 0xa4, 0x1c, 0x3e, 0x80, 0x75, 0xb4, 0x84, 0x47, 0xb1, 0xf8, 0x54, 0x8f, 0xc2, 0xc6, 0x2c, + 0xcb, 0xf7, 0x5c, 0xd4, 0xde, 0x39, 0x6c, 0xcd, 0x71, 0x3f, 0x77, 0x56, 0x4b, 0x3b, 0xca, 0xb3, + 0xda, 0xfb, 0xdd, 0x00, 0x52, 0x5a, 0x4f, 0x47, 0x7f, 0x00, 0x4b, 0x32, 0xd0, 0x42, 0xf3, 0x71, + 0x45, 0xf3, 0x96, 0x4c, 0x2b, 0x61, 0x0e, 0x1d, 0x62, 0x82, 0x9a, 0xdd, 0x85, 0xbc, 0xe7, 0xd2, + 0xe1, 0xeb, 0x77, 0x2a, 0xd1, 0xc3, 0x54, 0xa7, 0xb2, 0x4c, 0x9e, 0xc1, 0xaa, 0xa0, 0x28, 0x6e, + 0x4c, 0x0b, 0x91, 0x8e, 0x43, 0x94, 0xf5, 0x59, 0x35, 0x56, 0x24, 0x78, 0x90, 0x62, 0x93, 0x6e, + 0x35, 0x66, 0x76, 0xab, 0x74, 0xd6, 0x72, 0xb7, 0x2a, 0xb5, 0x6d, 0x4e, 0xd5, 0x76, 0x17, 0x1a, + 0x3e, 0xf7, 0x22, 0xb5, 0xd5, 0x5d, 0xec, 0x2b, 0x83, 0xcd, 0x19, 0xca, 0x1f, 0xb8, 0x67, 0x48, + 0x4e, 0xb5, 0xa8, 0x4b, 0xff, 0x5f, 0xd4, 0xe5, 0xb9, 0x45, 0x6d, 0xcf, 0x29, 0x2a, 0xdc, 0xa9, + 0xa8, 0xfb, 0xa0, 0xd8, 0x71, 0x84, 0x7c, 0x6c, 0xb2, 0xc0, 0xe5, 0xaa, 0x22, 0x37, 0x3f, 0x9a, + 0x72, 0xfc, 0x49, 0xbe, 0x53, 0x06, 0xa4, 0xdc, 0x61, 0xe0, 0xf2, 0xe4, 0x5e, 0x64, 0x82, 0xe6, + 0x15, 0x15, 0x11, 0xe3, 0x81, 0xba, 0x92, 0xde, 0x8b, 0x04, 0x3f, 0xa7, 0xd8, 0x74, 0x95, 0xf6, + 0xbe, 0xbe, 0xf6, 0x18, 0x5e, 0xc4, 0x23, 0xcd, 0xe6, 0x63, 0xdd, 0xbf, 0x71, 0x51, 0x2f, 0x1e, + 0x55, 0x8f, 0x06, 0x7a, 0x38, 0x7a, 0xe5, 0x71, 0xbd, 0xfc, 0x64, 0x8f, 0x5a, 0xd2, 0xc7, 0xde, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x06, 0x20, 0xa3, 0x2f, 0xcb, 0x07, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go new file mode 100644 index 0000000000..832ca2900b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.pb.validate.go @@ -0,0 +1,596 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/event/event.proto + +package event + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} + + _ = core.WorkflowExecution_Phase(0) + + _ = core.NodeExecution_Phase(0) + + _ = core.TaskExecution_Phase(0) +) + +// Validate checks the field values on WorkflowExecutionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowExecutionEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ProducerId + + // no validation rules for Phase + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *WorkflowExecutionEvent_OutputUri: + // no validation rules for OutputUri + + case *WorkflowExecutionEvent_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowExecutionEventValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// WorkflowExecutionEventValidationError is the validation error returned by +// WorkflowExecutionEvent.Validate if the designated constraints aren't met. +type WorkflowExecutionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowExecutionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowExecutionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowExecutionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowExecutionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowExecutionEventValidationError) ErrorName() string { + return "WorkflowExecutionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowExecutionEventValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowExecutionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowExecutionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowExecutionEventValidationError{} + +// Validate checks the field values on NodeExecutionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *NodeExecutionEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for ProducerId + + // no validation rules for Phase + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for InputUri + + if v, ok := interface{}(m.GetParentTaskMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "ParentTaskMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + switch m.OutputResult.(type) { + + case *NodeExecutionEvent_OutputUri: + // no validation rules for OutputUri + + case *NodeExecutionEvent_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + switch m.TargetMetadata.(type) { + + case *NodeExecutionEvent_WorkflowNodeMetadata: + + if v, ok := interface{}(m.GetWorkflowNodeMetadata()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return NodeExecutionEventValidationError{ + field: "WorkflowNodeMetadata", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// NodeExecutionEventValidationError is the validation error returned by +// NodeExecutionEvent.Validate if the designated constraints aren't met. +type NodeExecutionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e NodeExecutionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e NodeExecutionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e NodeExecutionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e NodeExecutionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e NodeExecutionEventValidationError) ErrorName() string { + return "NodeExecutionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e NodeExecutionEventValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sNodeExecutionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = NodeExecutionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = NodeExecutionEventValidationError{} + +// Validate checks the field values on WorkflowNodeMetadata with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *WorkflowNodeMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowNodeMetadataValidationError{ + field: "ExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowNodeMetadataValidationError is the validation error returned by +// WorkflowNodeMetadata.Validate if the designated constraints aren't met. +type WorkflowNodeMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowNodeMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowNodeMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowNodeMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowNodeMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowNodeMetadataValidationError) ErrorName() string { + return "WorkflowNodeMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowNodeMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowNodeMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowNodeMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowNodeMetadataValidationError{} + +// Validate checks the field values on ParentTaskExecutionMetadata with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *ParentTaskExecutionMetadata) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ParentTaskExecutionMetadataValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// ParentTaskExecutionMetadataValidationError is the validation error returned +// by ParentTaskExecutionMetadata.Validate if the designated constraints +// aren't met. +type ParentTaskExecutionMetadataValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ParentTaskExecutionMetadataValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ParentTaskExecutionMetadataValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ParentTaskExecutionMetadataValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ParentTaskExecutionMetadataValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ParentTaskExecutionMetadataValidationError) ErrorName() string { + return "ParentTaskExecutionMetadataValidationError" +} + +// Error satisfies the builtin error interface +func (e ParentTaskExecutionMetadataValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sParentTaskExecutionMetadata.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ParentTaskExecutionMetadataValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ParentTaskExecutionMetadataValidationError{} + +// Validate checks the field values on TaskExecutionEvent with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *TaskExecutionEvent) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetTaskId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "TaskId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if v, ok := interface{}(m.GetParentNodeExecutionId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "ParentNodeExecutionId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for RetryAttempt + + // no validation rules for Phase + + // no validation rules for ProducerId + + for idx, item := range m.GetLogs() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: fmt.Sprintf("Logs[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if v, ok := interface{}(m.GetOccurredAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "OccurredAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for InputUri + + if v, ok := interface{}(m.GetCustomInfo()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "CustomInfo", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for PhaseVersion + + switch m.OutputResult.(type) { + + case *TaskExecutionEvent_OutputUri: + // no validation rules for OutputUri + + case *TaskExecutionEvent_Error: + + if v, ok := interface{}(m.GetError()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return TaskExecutionEventValidationError{ + field: "Error", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// TaskExecutionEventValidationError is the validation error returned by +// TaskExecutionEvent.Validate if the designated constraints aren't met. +type TaskExecutionEventValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e TaskExecutionEventValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e TaskExecutionEventValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e TaskExecutionEventValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e TaskExecutionEventValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e TaskExecutionEventValidationError) ErrorName() string { + return "TaskExecutionEventValidationError" +} + +// Error satisfies the builtin error interface +func (e TaskExecutionEventValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sTaskExecutionEvent.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = TaskExecutionEventValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = TaskExecutionEventValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json b/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json new file mode 100644 index 0000000000..0f9d66da37 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json @@ -0,0 +1,19 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/event/event.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": {} +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go new file mode 100644 index 0000000000..a0d66ce598 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go @@ -0,0 +1,108 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/array_job.proto + +package plugins // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +// will be executed concurrently. +type ArrayJob struct { + // Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an + // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + // running instances might be more. This has to be a positive number if assigned. Default value is size. + Parallelism int64 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` + // Defines the number of instances to launch at most. This number should match the size of the input if the job + // requires processing of all input data. This has to be a positive number. + // +required. + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + // the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + // assigned. Default value is size. + MinSuccesses int64 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ArrayJob) Reset() { *m = ArrayJob{} } +func (m *ArrayJob) String() string { return proto.CompactTextString(m) } +func (*ArrayJob) ProtoMessage() {} +func (*ArrayJob) Descriptor() ([]byte, []int) { + return fileDescriptor_array_job_fcc8f6dac22adac2, []int{0} +} +func (m *ArrayJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ArrayJob.Unmarshal(m, b) +} +func (m *ArrayJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ArrayJob.Marshal(b, m, deterministic) +} +func (dst *ArrayJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArrayJob.Merge(dst, src) +} +func (m *ArrayJob) XXX_Size() int { + return xxx_messageInfo_ArrayJob.Size(m) +} +func (m *ArrayJob) XXX_DiscardUnknown() { + xxx_messageInfo_ArrayJob.DiscardUnknown(m) +} + +var xxx_messageInfo_ArrayJob proto.InternalMessageInfo + +func (m *ArrayJob) GetParallelism() int64 { + if m != nil { + return m.Parallelism + } + return 0 +} + +func (m *ArrayJob) GetSize() int64 { + if m != nil { + return m.Size + } + return 0 +} + +func (m *ArrayJob) GetMinSuccesses() int64 { + if m != nil { + return m.MinSuccesses + } + return 0 +} + +func init() { + proto.RegisterType((*ArrayJob)(nil), "flyteidl.plugins.ArrayJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/array_job.proto", fileDescriptor_array_job_fcc8f6dac22adac2) +} + +var fileDescriptor_array_job_fcc8f6dac22adac2 = []byte{ + // 180 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8e, 0xbd, 0xca, 0xc2, 0x30, + 0x18, 0x46, 0xe9, 0xd7, 0x0f, 0x91, 0xa8, 0x20, 0x99, 0x3a, 0x16, 0x5d, 0x5c, 0x6c, 0x86, 0xe2, + 0x05, 0xe8, 0xe8, 0xa8, 0x9b, 0x4b, 0x49, 0x6a, 0x1a, 0x23, 0x6f, 0x7e, 0xc8, 0x9b, 0x0e, 0xf5, + 0xea, 0xc5, 0x60, 0x45, 0xdc, 0x1e, 0x9e, 0x73, 0x86, 0x43, 0xca, 0x0e, 0x86, 0x28, 0xf5, 0x15, + 0x98, 0x87, 0x5e, 0x69, 0x8b, 0x8c, 0x87, 0xc0, 0x87, 0xe6, 0xee, 0x44, 0xe5, 0x83, 0x8b, 0x8e, + 0x2e, 0x47, 0xa3, 0x7a, 0x1b, 0x2b, 0x49, 0xa6, 0xfb, 0x97, 0x74, 0x74, 0x82, 0x96, 0x64, 0xe6, + 0x79, 0xe0, 0x00, 0x12, 0x34, 0x9a, 0x22, 0x2b, 0xb3, 0x4d, 0x7e, 0xfa, 0xbe, 0x28, 0x25, 0xff, + 0xa8, 0x1f, 0xb2, 0xf8, 0x4b, 0x28, 0x6d, 0xba, 0x26, 0x0b, 0xa3, 0x6d, 0x83, 0x7d, 0xdb, 0x4a, + 0x44, 0x89, 0x45, 0x9e, 0xe0, 0xdc, 0x68, 0x7b, 0x1e, 0xbf, 0xc3, 0xee, 0x52, 0x2b, 0x1d, 0x6f, + 0xbd, 0xa8, 0x5a, 0x67, 0x18, 0x0c, 0x5d, 0x64, 0x9f, 0x58, 0x25, 0x2d, 0xf3, 0x62, 0xab, 0x1c, + 0xfb, 0xed, 0x17, 0x93, 0x94, 0x5d, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x75, 0xbd, 0x9d, 0x25, + 0xda, 0x00, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go new file mode 100644 index 0000000000..468e14da84 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.validate.go @@ -0,0 +1,104 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/array_job.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on ArrayJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *ArrayJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Parallelism + + // no validation rules for Size + + // no validation rules for MinSuccesses + + return nil +} + +// ArrayJobValidationError is the validation error returned by +// ArrayJob.Validate if the designated constraints aren't met. +type ArrayJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ArrayJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ArrayJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ArrayJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ArrayJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ArrayJobValidationError) ErrorName() string { return "ArrayJobValidationError" } + +// Error satisfies the builtin error interface +func (e ArrayJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sArrayJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ArrayJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ArrayJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go new file mode 100644 index 0000000000..9a189f36f5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go @@ -0,0 +1,203 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/qubole.proto + +package plugins // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Defines a query to execute on a hive cluster. +type HiveQuery struct { + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + TimeoutSec uint32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` + RetryCount uint32 `protobuf:"varint,3,opt,name=retryCount,proto3" json:"retryCount,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HiveQuery) Reset() { *m = HiveQuery{} } +func (m *HiveQuery) String() string { return proto.CompactTextString(m) } +func (*HiveQuery) ProtoMessage() {} +func (*HiveQuery) Descriptor() ([]byte, []int) { + return fileDescriptor_qubole_790d55138f42e270, []int{0} +} +func (m *HiveQuery) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HiveQuery.Unmarshal(m, b) +} +func (m *HiveQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HiveQuery.Marshal(b, m, deterministic) +} +func (dst *HiveQuery) XXX_Merge(src proto.Message) { + xxx_messageInfo_HiveQuery.Merge(dst, src) +} +func (m *HiveQuery) XXX_Size() int { + return xxx_messageInfo_HiveQuery.Size(m) +} +func (m *HiveQuery) XXX_DiscardUnknown() { + xxx_messageInfo_HiveQuery.DiscardUnknown(m) +} + +var xxx_messageInfo_HiveQuery proto.InternalMessageInfo + +func (m *HiveQuery) GetQuery() string { + if m != nil { + return m.Query + } + return "" +} + +func (m *HiveQuery) GetTimeoutSec() uint32 { + if m != nil { + return m.TimeoutSec + } + return 0 +} + +func (m *HiveQuery) GetRetryCount() uint32 { + if m != nil { + return m.RetryCount + } + return 0 +} + +// Defines a collection of hive queries. +type HiveQueryCollection struct { + Queries []*HiveQuery `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *HiveQueryCollection) Reset() { *m = HiveQueryCollection{} } +func (m *HiveQueryCollection) String() string { return proto.CompactTextString(m) } +func (*HiveQueryCollection) ProtoMessage() {} +func (*HiveQueryCollection) Descriptor() ([]byte, []int) { + return fileDescriptor_qubole_790d55138f42e270, []int{1} +} +func (m *HiveQueryCollection) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HiveQueryCollection.Unmarshal(m, b) +} +func (m *HiveQueryCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HiveQueryCollection.Marshal(b, m, deterministic) +} +func (dst *HiveQueryCollection) XXX_Merge(src proto.Message) { + xxx_messageInfo_HiveQueryCollection.Merge(dst, src) +} +func (m *HiveQueryCollection) XXX_Size() int { + return xxx_messageInfo_HiveQueryCollection.Size(m) +} +func (m *HiveQueryCollection) XXX_DiscardUnknown() { + xxx_messageInfo_HiveQueryCollection.DiscardUnknown(m) +} + +var xxx_messageInfo_HiveQueryCollection proto.InternalMessageInfo + +func (m *HiveQueryCollection) GetQueries() []*HiveQuery { + if m != nil { + return m.Queries + } + return nil +} + +// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +// of a hive task's TaskTemplate +type QuboleHiveJob struct { + ClusterLabel string `protobuf:"bytes,1,opt,name=cluster_label,json=clusterLabel,proto3" json:"cluster_label,omitempty"` + QueryCollection *HiveQueryCollection `protobuf:"bytes,2,opt,name=query_collection,json=queryCollection,proto3" json:"query_collection,omitempty"` + Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QuboleHiveJob) Reset() { *m = QuboleHiveJob{} } +func (m *QuboleHiveJob) String() string { return proto.CompactTextString(m) } +func (*QuboleHiveJob) ProtoMessage() {} +func (*QuboleHiveJob) Descriptor() ([]byte, []int) { + return fileDescriptor_qubole_790d55138f42e270, []int{2} +} +func (m *QuboleHiveJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QuboleHiveJob.Unmarshal(m, b) +} +func (m *QuboleHiveJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QuboleHiveJob.Marshal(b, m, deterministic) +} +func (dst *QuboleHiveJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuboleHiveJob.Merge(dst, src) +} +func (m *QuboleHiveJob) XXX_Size() int { + return xxx_messageInfo_QuboleHiveJob.Size(m) +} +func (m *QuboleHiveJob) XXX_DiscardUnknown() { + xxx_messageInfo_QuboleHiveJob.DiscardUnknown(m) +} + +var xxx_messageInfo_QuboleHiveJob proto.InternalMessageInfo + +func (m *QuboleHiveJob) GetClusterLabel() string { + if m != nil { + return m.ClusterLabel + } + return "" +} + +func (m *QuboleHiveJob) GetQueryCollection() *HiveQueryCollection { + if m != nil { + return m.QueryCollection + } + return nil +} + +func (m *QuboleHiveJob) GetTags() []string { + if m != nil { + return m.Tags + } + return nil +} + +func init() { + proto.RegisterType((*HiveQuery)(nil), "flyteidl.plugins.HiveQuery") + proto.RegisterType((*HiveQueryCollection)(nil), "flyteidl.plugins.HiveQueryCollection") + proto.RegisterType((*QuboleHiveJob)(nil), "flyteidl.plugins.QuboleHiveJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/qubole.proto", fileDescriptor_qubole_790d55138f42e270) +} + +var fileDescriptor_qubole_790d55138f42e270 = []byte{ + // 303 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcf, 0x4a, 0xc3, 0x40, + 0x10, 0xc6, 0x49, 0xe3, 0x1f, 0x3a, 0xb5, 0x58, 0x56, 0x0f, 0x51, 0x51, 0x43, 0x45, 0xc8, 0xc5, + 0x2c, 0xb4, 0xf4, 0x05, 0xec, 0x45, 0xa4, 0x07, 0x1b, 0x6f, 0x5e, 0x4a, 0x77, 0x9d, 0xc6, 0xc5, + 0x6d, 0xb6, 0xcd, 0xce, 0x0a, 0x79, 0x15, 0x9f, 0x56, 0x92, 0xa6, 0x29, 0xe4, 0xe0, 0x6d, 0xf6, + 0xfb, 0x66, 0x98, 0xdf, 0xb7, 0x03, 0xb7, 0x2b, 0x5d, 0x10, 0xaa, 0x4f, 0xcd, 0x37, 0xda, 0xa5, + 0x2a, 0xb3, 0x7c, 0xeb, 0x84, 0xd1, 0x18, 0x6f, 0x72, 0x43, 0x86, 0x0d, 0xf6, 0x76, 0x5c, 0xdb, + 0xd7, 0x57, 0xcd, 0x80, 0x34, 0x39, 0x72, 0x5a, 0xda, 0x6f, 0xbb, 0x6b, 0x1e, 0x0a, 0xe8, 0xbe, + 0xa8, 0x1f, 0x9c, 0x3b, 0xcc, 0x0b, 0x76, 0x09, 0xc7, 0xdb, 0xb2, 0x08, 0xbc, 0xd0, 0x8b, 0xba, + 0xc9, 0xee, 0xc1, 0xee, 0xa1, 0x47, 0x6a, 0x8d, 0xc6, 0xd1, 0xc2, 0xa2, 0x0c, 0x3a, 0xa1, 0x17, + 0xf5, 0x13, 0xa8, 0xa5, 0x77, 0x94, 0xec, 0x0e, 0x20, 0x47, 0xca, 0x8b, 0xa9, 0x71, 0x19, 0x05, + 0xfe, 0xce, 0x3f, 0x28, 0xc3, 0x19, 0x5c, 0x34, 0x3b, 0xa6, 0x46, 0x6b, 0x94, 0xa4, 0x4c, 0xc6, + 0x26, 0x70, 0x5a, 0x2e, 0x50, 0x68, 0x83, 0x4e, 0xe8, 0x47, 0xbd, 0xd1, 0x4d, 0xdc, 0x26, 0x8f, + 0x9b, 0xb9, 0x64, 0xdf, 0x3b, 0xfc, 0xf5, 0xa0, 0x3f, 0xaf, 0xf2, 0x96, 0xe6, 0xab, 0x11, 0xec, + 0x01, 0xfa, 0x52, 0x3b, 0x4b, 0x98, 0x2f, 0xf4, 0x52, 0xa0, 0xae, 0xf1, 0xcf, 0x6a, 0x71, 0x56, + 0x6a, 0xec, 0x0d, 0x06, 0x55, 0x9c, 0x85, 0x6c, 0x08, 0xaa, 0x28, 0xbd, 0xd1, 0xe3, 0x3f, 0x6b, + 0x0f, 0xb8, 0xc9, 0xf9, 0xb6, 0xc5, 0xcf, 0xe0, 0x88, 0x96, 0xa9, 0x0d, 0xfc, 0xd0, 0x8f, 0xba, + 0x49, 0x55, 0x3f, 0x4f, 0x3e, 0xc6, 0xa9, 0xa2, 0x2f, 0x27, 0x62, 0x69, 0xd6, 0x5c, 0x17, 0x2b, + 0xe2, 0xcd, 0xdf, 0xa7, 0x98, 0xf1, 0x8d, 0x78, 0x4a, 0x0d, 0x6f, 0xdf, 0x4f, 0x9c, 0x54, 0xc7, + 0x18, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x34, 0x01, 0x9e, 0xb1, 0xda, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go new file mode 100644 index 0000000000..896587fc00 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.validate.go @@ -0,0 +1,263 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/qubole.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on HiveQuery with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *HiveQuery) Validate() error { + if m == nil { + return nil + } + + // no validation rules for Query + + // no validation rules for TimeoutSec + + // no validation rules for RetryCount + + return nil +} + +// HiveQueryValidationError is the validation error returned by +// HiveQuery.Validate if the designated constraints aren't met. +type HiveQueryValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HiveQueryValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HiveQueryValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HiveQueryValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HiveQueryValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HiveQueryValidationError) ErrorName() string { return "HiveQueryValidationError" } + +// Error satisfies the builtin error interface +func (e HiveQueryValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHiveQuery.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HiveQueryValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HiveQueryValidationError{} + +// Validate checks the field values on HiveQueryCollection with the rules +// defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *HiveQueryCollection) Validate() error { + if m == nil { + return nil + } + + for idx, item := range m.GetQueries() { + _, _ = idx, item + + if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return HiveQueryCollectionValidationError{ + field: fmt.Sprintf("Queries[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// HiveQueryCollectionValidationError is the validation error returned by +// HiveQueryCollection.Validate if the designated constraints aren't met. +type HiveQueryCollectionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e HiveQueryCollectionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e HiveQueryCollectionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e HiveQueryCollectionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e HiveQueryCollectionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e HiveQueryCollectionValidationError) ErrorName() string { + return "HiveQueryCollectionValidationError" +} + +// Error satisfies the builtin error interface +func (e HiveQueryCollectionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sHiveQueryCollection.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = HiveQueryCollectionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = HiveQueryCollectionValidationError{} + +// Validate checks the field values on QuboleHiveJob with the rules defined in +// the proto definition for this message. If any rules are violated, an error +// is returned. +func (m *QuboleHiveJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ClusterLabel + + if v, ok := interface{}(m.GetQueryCollection()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return QuboleHiveJobValidationError{ + field: "QueryCollection", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// QuboleHiveJobValidationError is the validation error returned by +// QuboleHiveJob.Validate if the designated constraints aren't met. +type QuboleHiveJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e QuboleHiveJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e QuboleHiveJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e QuboleHiveJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e QuboleHiveJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e QuboleHiveJobValidationError) ErrorName() string { return "QuboleHiveJobValidationError" } + +// Error satisfies the builtin error interface +func (e QuboleHiveJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sQuboleHiveJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = QuboleHiveJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = QuboleHiveJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.go new file mode 100644 index 0000000000..b7a5a0bacf --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.go @@ -0,0 +1,95 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/sidecar.proto + +package plugins // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import v1 "k8s.io/api/core/v1" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// A sidecar job brings up the desired pod_spec. +// The plugin executor is responsible for keeping the pod alive until the primary container terminates +// or the task itself times out. +type SidecarJob struct { + PodSpec *v1.PodSpec `protobuf:"bytes,1,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` + PrimaryContainerName string `protobuf:"bytes,2,opt,name=primary_container_name,json=primaryContainerName,proto3" json:"primary_container_name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SidecarJob) Reset() { *m = SidecarJob{} } +func (m *SidecarJob) String() string { return proto.CompactTextString(m) } +func (*SidecarJob) ProtoMessage() {} +func (*SidecarJob) Descriptor() ([]byte, []int) { + return fileDescriptor_sidecar_8bf5a276219a51d4, []int{0} +} +func (m *SidecarJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SidecarJob.Unmarshal(m, b) +} +func (m *SidecarJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SidecarJob.Marshal(b, m, deterministic) +} +func (dst *SidecarJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_SidecarJob.Merge(dst, src) +} +func (m *SidecarJob) XXX_Size() int { + return xxx_messageInfo_SidecarJob.Size(m) +} +func (m *SidecarJob) XXX_DiscardUnknown() { + xxx_messageInfo_SidecarJob.DiscardUnknown(m) +} + +var xxx_messageInfo_SidecarJob proto.InternalMessageInfo + +func (m *SidecarJob) GetPodSpec() *v1.PodSpec { + if m != nil { + return m.PodSpec + } + return nil +} + +func (m *SidecarJob) GetPrimaryContainerName() string { + if m != nil { + return m.PrimaryContainerName + } + return "" +} + +func init() { + proto.RegisterType((*SidecarJob)(nil), "flyteidl.plugins.SidecarJob") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/sidecar.proto", fileDescriptor_sidecar_8bf5a276219a51d4) +} + +var fileDescriptor_sidecar_8bf5a276219a51d4 = []byte{ + // 224 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0x3f, 0x4b, 0x03, 0x41, + 0x10, 0x47, 0x39, 0x0b, 0xff, 0xac, 0x8d, 0x1c, 0x22, 0x41, 0x41, 0x42, 0xaa, 0x34, 0xce, 0x10, + 0xa3, 0x62, 0xad, 0x9d, 0x85, 0x48, 0xd2, 0xd9, 0x1c, 0x7b, 0xbb, 0x93, 0x75, 0xf0, 0x6e, 0x67, + 0xd8, 0xdb, 0x04, 0xce, 0x4f, 0x2f, 0x7a, 0x39, 0x0b, 0xbb, 0x81, 0xc7, 0x3c, 0x7e, 0xcf, 0x5c, + 0x6f, 0x9a, 0x3e, 0x13, 0xfb, 0x06, 0xb5, 0xd9, 0x06, 0x8e, 0x1d, 0x76, 0xec, 0xc9, 0xd9, 0x04, + 0x9a, 0x24, 0x4b, 0x79, 0x36, 0x72, 0xd8, 0xf3, 0xcb, 0xd9, 0xe7, 0x63, 0x07, 0x2c, 0x68, 0x95, + 0xd1, 0x49, 0x22, 0xdc, 0x2d, 0x30, 0x50, 0xa4, 0x64, 0x33, 0xf9, 0xe1, 0x6b, 0xf6, 0x65, 0xcc, + 0x7a, 0xd0, 0xbc, 0x48, 0x5d, 0x3e, 0x98, 0x63, 0x15, 0x5f, 0x75, 0x4a, 0x6e, 0x52, 0x4c, 0x8b, + 0xf9, 0xe9, 0xed, 0x15, 0x0c, 0x12, 0xb0, 0xca, 0xf0, 0x23, 0x81, 0xdd, 0x02, 0xde, 0xc4, 0xaf, + 0x95, 0xdc, 0xea, 0x48, 0x87, 0xa3, 0xbc, 0x33, 0x17, 0x9a, 0xb8, 0xb5, 0xa9, 0xaf, 0x9c, 0xc4, + 0x6c, 0x39, 0x52, 0xaa, 0xa2, 0x6d, 0x69, 0x72, 0x30, 0x2d, 0xe6, 0x27, 0xab, 0xf3, 0x3d, 0x7d, + 0x1e, 0xe1, 0xab, 0x6d, 0xe9, 0xe9, 0xfe, 0x7d, 0x19, 0x38, 0x7f, 0x6c, 0x6b, 0x70, 0xd2, 0x62, + 0xd3, 0x6f, 0x32, 0xfe, 0x35, 0x06, 0x8a, 0xa8, 0xf5, 0x4d, 0x10, 0xfc, 0x9f, 0x5d, 0x1f, 0xfe, + 0x2e, 0x5f, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x71, 0x89, 0x82, 0x45, 0x11, 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.validate.go new file mode 100644 index 0000000000..93de4c36b2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/sidecar.pb.validate.go @@ -0,0 +1,110 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/sidecar.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on SidecarJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SidecarJob) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetPodSpec()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SidecarJobValidationError{ + field: "PodSpec", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for PrimaryContainerName + + return nil +} + +// SidecarJobValidationError is the validation error returned by +// SidecarJob.Validate if the designated constraints aren't met. +type SidecarJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SidecarJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SidecarJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SidecarJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SidecarJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SidecarJobValidationError) ErrorName() string { return "SidecarJobValidationError" } + +// Error satisfies the builtin error interface +func (e SidecarJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSidecarJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SidecarJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SidecarJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go new file mode 100644 index 0000000000..03dd2ded9d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/spark.proto + +package plugins // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type SparkApplication_Type int32 + +const ( + SparkApplication_PYTHON SparkApplication_Type = 0 + SparkApplication_JAVA SparkApplication_Type = 1 + SparkApplication_SCALA SparkApplication_Type = 2 + SparkApplication_R SparkApplication_Type = 3 +) + +var SparkApplication_Type_name = map[int32]string{ + 0: "PYTHON", + 1: "JAVA", + 2: "SCALA", + 3: "R", +} +var SparkApplication_Type_value = map[string]int32{ + "PYTHON": 0, + "JAVA": 1, + "SCALA": 2, + "R": 3, +} + +func (x SparkApplication_Type) String() string { + return proto.EnumName(SparkApplication_Type_name, int32(x)) +} +func (SparkApplication_Type) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_spark_9d79e90ac35275d0, []int{0, 0} +} + +type SparkApplication struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SparkApplication) Reset() { *m = SparkApplication{} } +func (m *SparkApplication) String() string { return proto.CompactTextString(m) } +func (*SparkApplication) ProtoMessage() {} +func (*SparkApplication) Descriptor() ([]byte, []int) { + return fileDescriptor_spark_9d79e90ac35275d0, []int{0} +} +func (m *SparkApplication) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SparkApplication.Unmarshal(m, b) +} +func (m *SparkApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SparkApplication.Marshal(b, m, deterministic) +} +func (dst *SparkApplication) XXX_Merge(src proto.Message) { + xxx_messageInfo_SparkApplication.Merge(dst, src) +} +func (m *SparkApplication) XXX_Size() int { + return xxx_messageInfo_SparkApplication.Size(m) +} +func (m *SparkApplication) XXX_DiscardUnknown() { + xxx_messageInfo_SparkApplication.DiscardUnknown(m) +} + +var xxx_messageInfo_SparkApplication proto.InternalMessageInfo + +// Custom Proto for Spark Plugin. +type SparkJob struct { + ApplicationType SparkApplication_Type `protobuf:"varint,1,opt,name=applicationType,proto3,enum=flyteidl.plugins.SparkApplication_Type" json:"applicationType,omitempty"` + MainApplicationFile string `protobuf:"bytes,2,opt,name=mainApplicationFile,proto3" json:"mainApplicationFile,omitempty"` + MainClass string `protobuf:"bytes,3,opt,name=mainClass,proto3" json:"mainClass,omitempty"` + SparkConf map[string]string `protobuf:"bytes,4,rep,name=sparkConf,proto3" json:"sparkConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HadoopConf map[string]string `protobuf:"bytes,5,rep,name=hadoopConf,proto3" json:"hadoopConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ExecutorPath string `protobuf:"bytes,6,opt,name=executorPath,proto3" json:"executorPath,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SparkJob) Reset() { *m = SparkJob{} } +func (m *SparkJob) String() string { return proto.CompactTextString(m) } +func (*SparkJob) ProtoMessage() {} +func (*SparkJob) Descriptor() ([]byte, []int) { + return fileDescriptor_spark_9d79e90ac35275d0, []int{1} +} +func (m *SparkJob) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SparkJob.Unmarshal(m, b) +} +func (m *SparkJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SparkJob.Marshal(b, m, deterministic) +} +func (dst *SparkJob) XXX_Merge(src proto.Message) { + xxx_messageInfo_SparkJob.Merge(dst, src) +} +func (m *SparkJob) XXX_Size() int { + return xxx_messageInfo_SparkJob.Size(m) +} +func (m *SparkJob) XXX_DiscardUnknown() { + xxx_messageInfo_SparkJob.DiscardUnknown(m) +} + +var xxx_messageInfo_SparkJob proto.InternalMessageInfo + +func (m *SparkJob) GetApplicationType() SparkApplication_Type { + if m != nil { + return m.ApplicationType + } + return SparkApplication_PYTHON +} + +func (m *SparkJob) GetMainApplicationFile() string { + if m != nil { + return m.MainApplicationFile + } + return "" +} + +func (m *SparkJob) GetMainClass() string { + if m != nil { + return m.MainClass + } + return "" +} + +func (m *SparkJob) GetSparkConf() map[string]string { + if m != nil { + return m.SparkConf + } + return nil +} + +func (m *SparkJob) GetHadoopConf() map[string]string { + if m != nil { + return m.HadoopConf + } + return nil +} + +func (m *SparkJob) GetExecutorPath() string { + if m != nil { + return m.ExecutorPath + } + return "" +} + +func init() { + proto.RegisterType((*SparkApplication)(nil), "flyteidl.plugins.SparkApplication") + proto.RegisterType((*SparkJob)(nil), "flyteidl.plugins.SparkJob") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.HadoopConfEntry") + proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.SparkConfEntry") + proto.RegisterEnum("flyteidl.plugins.SparkApplication_Type", SparkApplication_Type_name, SparkApplication_Type_value) +} + +func init() { proto.RegisterFile("flyteidl/plugins/spark.proto", fileDescriptor_spark_9d79e90ac35275d0) } + +var fileDescriptor_spark_9d79e90ac35275d0 = []byte{ + // 364 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x4b, 0xeb, 0x40, + 0x14, 0xc5, 0x5f, 0x9a, 0xa6, 0x34, 0xf7, 0x3d, 0xda, 0x30, 0xcf, 0x45, 0x28, 0x5d, 0x94, 0x6c, + 0xac, 0x82, 0x89, 0xb4, 0x08, 0x22, 0xba, 0x48, 0x8b, 0x5a, 0x82, 0x68, 0x4d, 0x8b, 0xa0, 0xbb, + 0x49, 0x9b, 0xa6, 0xa1, 0xd3, 0xcc, 0x90, 0x4c, 0xc4, 0x7c, 0x5e, 0xbf, 0x88, 0x64, 0x6a, 0xff, + 0x05, 0x15, 0xdc, 0xcd, 0xdc, 0x7b, 0xce, 0xef, 0x1e, 0x2e, 0x17, 0x9a, 0x33, 0x92, 0x71, 0x3f, + 0x9c, 0x12, 0x8b, 0x91, 0x34, 0x08, 0xa3, 0xc4, 0x4a, 0x18, 0x8e, 0x17, 0x26, 0x8b, 0x29, 0xa7, + 0x48, 0x5b, 0x77, 0xcd, 0xcf, 0xae, 0xd1, 0x03, 0x6d, 0x94, 0x0b, 0x6c, 0xc6, 0x48, 0x38, 0xc1, + 0x3c, 0xa4, 0x91, 0x61, 0x42, 0x79, 0x9c, 0x31, 0x1f, 0x01, 0x54, 0x86, 0xcf, 0xe3, 0xc1, 0xc3, + 0xbd, 0xf6, 0x07, 0x55, 0xa1, 0xec, 0xd8, 0x4f, 0xb6, 0x26, 0x21, 0x15, 0x94, 0x51, 0xdf, 0xbe, + 0xb3, 0xb5, 0x12, 0x52, 0x40, 0x72, 0x35, 0xd9, 0x78, 0x97, 0xa1, 0x2a, 0x20, 0x0e, 0xf5, 0xd0, + 0x23, 0xd4, 0xf1, 0x96, 0x95, 0x73, 0x74, 0xa9, 0x25, 0xb5, 0x6b, 0x9d, 0x43, 0xb3, 0x38, 0xdc, + 0x2c, 0x4e, 0x36, 0x73, 0xb9, 0x5b, 0xf4, 0xa3, 0x53, 0xf8, 0xbf, 0xc4, 0x61, 0xb4, 0x23, 0xbc, + 0x09, 0x89, 0xaf, 0x97, 0x5a, 0x52, 0x5b, 0x75, 0xbf, 0x6a, 0xa1, 0x26, 0xa8, 0x79, 0xb9, 0x4f, + 0x70, 0x92, 0xe8, 0xb2, 0xd0, 0x6d, 0x0b, 0xe8, 0x16, 0x54, 0xb1, 0x94, 0x3e, 0x8d, 0x66, 0x7a, + 0xb9, 0x25, 0xb7, 0xff, 0x76, 0x8e, 0xbe, 0x09, 0xe7, 0x50, 0x6f, 0xf5, 0xc8, 0xb5, 0xd7, 0x11, + 0x8f, 0x33, 0x77, 0xeb, 0x45, 0x0e, 0xc0, 0x1c, 0x4f, 0x29, 0x65, 0x82, 0xa4, 0x08, 0xd2, 0xf1, + 0x0f, 0xa4, 0xc1, 0x46, 0xbc, 0x42, 0xed, 0xb8, 0x91, 0x01, 0xff, 0xfc, 0x37, 0x7f, 0x92, 0x72, + 0x1a, 0x0f, 0x31, 0x9f, 0xeb, 0x15, 0x91, 0x7a, 0xaf, 0xd6, 0xb8, 0x84, 0xda, 0x7e, 0x18, 0xa4, + 0x81, 0xbc, 0xf0, 0x33, 0xb1, 0x61, 0xd5, 0xcd, 0x9f, 0xe8, 0x00, 0x94, 0x57, 0x4c, 0xd2, 0xf5, + 0x7a, 0x56, 0x9f, 0x8b, 0xd2, 0xb9, 0xd4, 0xb8, 0x82, 0x7a, 0x21, 0xc0, 0x6f, 0xec, 0xbd, 0xb3, + 0x97, 0x6e, 0x10, 0xf2, 0x79, 0xea, 0x99, 0x13, 0xba, 0xb4, 0x48, 0x36, 0xe3, 0xd6, 0xe6, 0xd6, + 0x02, 0x3f, 0xb2, 0x98, 0x77, 0x12, 0x50, 0xab, 0x78, 0x7e, 0x5e, 0x45, 0x5c, 0x5e, 0xf7, 0x23, + 0x00, 0x00, 0xff, 0xff, 0xaa, 0x2b, 0x1f, 0x5a, 0x99, 0x02, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go new file mode 100644 index 0000000000..2c5c798e23 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.validate.go @@ -0,0 +1,175 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/spark.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} +) + +// Validate checks the field values on SparkApplication with the rules defined +// in the proto definition for this message. If any rules are violated, an +// error is returned. +func (m *SparkApplication) Validate() error { + if m == nil { + return nil + } + + return nil +} + +// SparkApplicationValidationError is the validation error returned by +// SparkApplication.Validate if the designated constraints aren't met. +type SparkApplicationValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SparkApplicationValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SparkApplicationValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SparkApplicationValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SparkApplicationValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SparkApplicationValidationError) ErrorName() string { return "SparkApplicationValidationError" } + +// Error satisfies the builtin error interface +func (e SparkApplicationValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSparkApplication.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SparkApplicationValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SparkApplicationValidationError{} + +// Validate checks the field values on SparkJob with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *SparkJob) Validate() error { + if m == nil { + return nil + } + + // no validation rules for ApplicationType + + // no validation rules for MainApplicationFile + + // no validation rules for MainClass + + // no validation rules for SparkConf + + // no validation rules for HadoopConf + + // no validation rules for ExecutorPath + + return nil +} + +// SparkJobValidationError is the validation error returned by +// SparkJob.Validate if the designated constraints aren't met. +type SparkJobValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SparkJobValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SparkJobValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SparkJobValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SparkJobValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SparkJobValidationError) ErrorName() string { return "SparkJobValidationError" } + +// Error satisfies the builtin error interface +func (e SparkJobValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSparkJob.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SparkJobValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SparkJobValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go new file mode 100644 index 0000000000..0332ad4795 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go @@ -0,0 +1,103 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/plugins/waitable.proto + +package plugins // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Represents an Execution that was launched and could be waited on. +type Waitable struct { + WfExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=wf_exec_id,json=wfExecId,proto3" json:"wf_exec_id,omitempty"` + Phase core.WorkflowExecution_Phase `protobuf:"varint,2,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + WorkflowId string `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Waitable) Reset() { *m = Waitable{} } +func (m *Waitable) String() string { return proto.CompactTextString(m) } +func (*Waitable) ProtoMessage() {} +func (*Waitable) Descriptor() ([]byte, []int) { + return fileDescriptor_waitable_1236f1e68396fa3d, []int{0} +} +func (m *Waitable) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Waitable.Unmarshal(m, b) +} +func (m *Waitable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Waitable.Marshal(b, m, deterministic) +} +func (dst *Waitable) XXX_Merge(src proto.Message) { + xxx_messageInfo_Waitable.Merge(dst, src) +} +func (m *Waitable) XXX_Size() int { + return xxx_messageInfo_Waitable.Size(m) +} +func (m *Waitable) XXX_DiscardUnknown() { + xxx_messageInfo_Waitable.DiscardUnknown(m) +} + +var xxx_messageInfo_Waitable proto.InternalMessageInfo + +func (m *Waitable) GetWfExecId() *core.WorkflowExecutionIdentifier { + if m != nil { + return m.WfExecId + } + return nil +} + +func (m *Waitable) GetPhase() core.WorkflowExecution_Phase { + if m != nil { + return m.Phase + } + return core.WorkflowExecution_UNDEFINED +} + +func (m *Waitable) GetWorkflowId() string { + if m != nil { + return m.WorkflowId + } + return "" +} + +func init() { + proto.RegisterType((*Waitable)(nil), "flyteidl.plugins.Waitable") +} + +func init() { + proto.RegisterFile("flyteidl/plugins/waitable.proto", fileDescriptor_waitable_1236f1e68396fa3d) +} + +var fileDescriptor_waitable_1236f1e68396fa3d = []byte{ + // 243 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcb, 0xa9, 0x2c, + 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0x4f, 0xcc, + 0x2c, 0x49, 0x4c, 0xca, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x29, 0xd0, + 0x83, 0x2a, 0x90, 0x92, 0x85, 0x6b, 0x49, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xad, 0x48, 0x4d, 0x2e, + 0x2d, 0xc9, 0xcc, 0xcf, 0x83, 0x68, 0x90, 0x92, 0x43, 0x95, 0xce, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, + 0x4c, 0xcb, 0x4c, 0x2d, 0x82, 0xc8, 0x2b, 0x6d, 0x66, 0xe4, 0xe2, 0x08, 0x87, 0xda, 0x21, 0xe4, + 0xc1, 0xc5, 0x55, 0x9e, 0x16, 0x0f, 0x32, 0x22, 0x3e, 0x33, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, + 0xdb, 0x48, 0x4b, 0x0f, 0x6e, 0x25, 0xc8, 0x04, 0xbd, 0xf0, 0xfc, 0xa2, 0xec, 0xb4, 0x9c, 0xfc, + 0x72, 0x57, 0x98, 0x45, 0x9e, 0x70, 0x23, 0x83, 0x38, 0xca, 0xd3, 0x40, 0xc2, 0x9e, 0x29, 0x42, + 0x36, 0x5c, 0xac, 0x05, 0x19, 0x89, 0xc5, 0xa9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, 0x6a, + 0x84, 0x0c, 0xd1, 0x0b, 0x00, 0xa9, 0x0e, 0x82, 0x68, 0x12, 0x92, 0xe7, 0xe2, 0x2e, 0x87, 0xaa, + 0x00, 0x39, 0x84, 0x59, 0x81, 0x51, 0x83, 0x33, 0x88, 0x0b, 0x26, 0xe4, 0x99, 0xe2, 0x64, 0x1a, + 0x65, 0x9c, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x53, 0x99, 0x56, + 0xa2, 0x0f, 0xf7, 0x67, 0x7a, 0x6a, 0x9e, 0x7e, 0x41, 0x92, 0x6e, 0x7a, 0xbe, 0x3e, 0x7a, 0x60, + 0x26, 0xb1, 0x81, 0xfd, 0x6c, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xc2, 0x5c, 0xb0, 0x1d, 0x67, + 0x01, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go new file mode 100644 index 0000000000..93a983bac7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.validate.go @@ -0,0 +1,116 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: flyteidl/plugins/waitable.proto + +package plugins + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "strings" + "time" + "unicode/utf8" + + "github.com/golang/protobuf/ptypes" + + core "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = ptypes.DynamicAny{} + + _ = core.WorkflowExecution_Phase(0) +) + +// Validate checks the field values on Waitable with the rules defined in the +// proto definition for this message. If any rules are violated, an error is returned. +func (m *Waitable) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetWfExecId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WaitableValidationError{ + field: "WfExecId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for Phase + + // no validation rules for WorkflowId + + return nil +} + +// WaitableValidationError is the validation error returned by +// Waitable.Validate if the designated constraints aren't met. +type WaitableValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WaitableValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WaitableValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WaitableValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WaitableValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WaitableValidationError) ErrorName() string { return "WaitableValidationError" } + +// Error satisfies the builtin error interface +func (e WaitableValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWaitable.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WaitableValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WaitableValidationError{} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go new file mode 100644 index 0000000000..03e7f59bb9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go @@ -0,0 +1,1200 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: flyteidl/service/admin.proto + +package service // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/service" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" +import admin "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" +import _ "google.golang.org/genproto/googleapis/api/annotations" + +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// AdminServiceClient is the client API for AdminService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type AdminServiceClient interface { + CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) + GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) + ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) + CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) + GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) + ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) + CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) + GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) + ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) + UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) + CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) + GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) + ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) + TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) + GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) + ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) + ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) + GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) + RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) + ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) + CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) + CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) + CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) + GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) + ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) + GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) +} + +type adminServiceClient struct { + cc *grpc.ClientConn +} + +func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient { + return &adminServiceClient{cc} +} + +func (c *adminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) { + out := new(admin.TaskCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) { + out := new(admin.Task) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTaskIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) { + out := new(admin.TaskList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTasks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) { + out := new(admin.WorkflowCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) { + out := new(admin.Workflow) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetWorkflow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListWorkflowIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) { + out := new(admin.WorkflowList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListWorkflows", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) { + out := new(admin.LaunchPlanCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + out := new(admin.LaunchPlan) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListLaunchPlanIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + out := new(admin.LaunchPlanList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListLaunchPlans", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) { + out := new(admin.LaunchPlanUpdateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateLaunchPlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RelaunchExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) { + out := new(admin.Execution) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) { + out := new(admin.WorkflowExecutionGetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecutionData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) { + out := new(admin.ExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) { + out := new(admin.ExecutionTerminateResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/TerminateExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) { + out := new(admin.NodeExecution) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNodeExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + out := new(admin.NodeExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNodeExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + out := new(admin.NodeExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) { + out := new(admin.NodeExecutionGetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNodeExecutionData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) { + out := new(admin.ProjectRegisterResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RegisterProject", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) { + out := new(admin.Projects) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListProjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) { + out := new(admin.WorkflowExecutionEventResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateWorkflowEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) { + out := new(admin.NodeExecutionEventResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateNodeEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) { + out := new(admin.TaskExecutionEventResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateTaskEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) { + out := new(admin.TaskExecution) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTaskExecution", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) { + out := new(admin.TaskExecutionList) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTaskExecutions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) { + out := new(admin.TaskExecutionGetDataResponse) + err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTaskExecutionData", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminServiceServer is the server API for AdminService service. +type AdminServiceServer interface { + CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) + GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) + ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) + CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) + GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) + ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) + CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) + GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) + ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) + UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) + CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) + RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) + GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) + GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) + ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) + TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) + GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) + ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) + ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) + GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) + RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) + ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) + CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) + CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) + CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) + GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) + ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) + GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) +} + +func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { + s.RegisterService(&_AdminService_serviceDesc, srv) +} + +func _AdminService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateTask(ctx, req.(*admin.TaskCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTask(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTaskIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTaskIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListTaskIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTaskIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListTasks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTasks(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateWorkflow(ctx, req.(*admin.WorkflowCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetWorkflow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetWorkflow(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListWorkflowIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListWorkflowIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListWorkflowIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListWorkflowIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListWorkflows(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListWorkflows", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListWorkflows(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.LaunchPlanCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateLaunchPlan(ctx, req.(*admin.LaunchPlanCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetLaunchPlan(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListLaunchPlanIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListLaunchPlanIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListLaunchPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListLaunchPlans", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListLaunchPlans(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.LaunchPlanUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/UpdateLaunchPlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, req.(*admin.LaunchPlanUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateExecution(ctx, req.(*admin.ExecutionCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RelaunchExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionRelaunchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RelaunchExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/RelaunchExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RelaunchExecution(ctx, req.(*admin.ExecutionRelaunchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecution(ctx, req.(*admin.WorkflowExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetExecutionData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecutionData(ctx, req.(*admin.WorkflowExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListExecutions(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_TerminateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionTerminateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).TerminateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/TerminateExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).TerminateExecution(ctx, req.(*admin.ExecutionTerminateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNodeExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNodeExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetNodeExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNodeExecution(ctx, req.(*admin.NodeExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNodeExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNodeExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListNodeExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNodeExecutions(ctx, req.(*admin.NodeExecutionListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNodeExecutionsForTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionForTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListNodeExecutionsForTask", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, req.(*admin.NodeExecutionForTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNodeExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNodeExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetNodeExecutionData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNodeExecutionData(ctx, req.(*admin.NodeExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RegisterProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectRegisterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RegisterProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/RegisterProject", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RegisterProject(ctx, req.(*admin.ProjectRegisterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListProjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListProjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListProjects(ctx, req.(*admin.ProjectListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateWorkflowEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateWorkflowEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, req.(*admin.WorkflowExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateNodeEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateNodeEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateNodeEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateNodeEvent(ctx, req.(*admin.NodeExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateTaskEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateTaskEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/CreateTaskEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateTaskEvent(ctx, req.(*admin.TaskExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTaskExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTaskExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetTaskExecution", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTaskExecution(ctx, req.(*admin.TaskExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTaskExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTaskExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/ListTaskExecutions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTaskExecutions(ctx, req.(*admin.TaskExecutionListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTaskExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTaskExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flyteidl.service.AdminService/GetTaskExecutionData", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTaskExecutionData(ctx, req.(*admin.TaskExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _AdminService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AdminService", + HandlerType: (*AdminServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _AdminService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _AdminService_GetTask_Handler, + }, + { + MethodName: "ListTaskIds", + Handler: _AdminService_ListTaskIds_Handler, + }, + { + MethodName: "ListTasks", + Handler: _AdminService_ListTasks_Handler, + }, + { + MethodName: "CreateWorkflow", + Handler: _AdminService_CreateWorkflow_Handler, + }, + { + MethodName: "GetWorkflow", + Handler: _AdminService_GetWorkflow_Handler, + }, + { + MethodName: "ListWorkflowIds", + Handler: _AdminService_ListWorkflowIds_Handler, + }, + { + MethodName: "ListWorkflows", + Handler: _AdminService_ListWorkflows_Handler, + }, + { + MethodName: "CreateLaunchPlan", + Handler: _AdminService_CreateLaunchPlan_Handler, + }, + { + MethodName: "GetLaunchPlan", + Handler: _AdminService_GetLaunchPlan_Handler, + }, + { + MethodName: "ListLaunchPlanIds", + Handler: _AdminService_ListLaunchPlanIds_Handler, + }, + { + MethodName: "ListLaunchPlans", + Handler: _AdminService_ListLaunchPlans_Handler, + }, + { + MethodName: "UpdateLaunchPlan", + Handler: _AdminService_UpdateLaunchPlan_Handler, + }, + { + MethodName: "CreateExecution", + Handler: _AdminService_CreateExecution_Handler, + }, + { + MethodName: "RelaunchExecution", + Handler: _AdminService_RelaunchExecution_Handler, + }, + { + MethodName: "GetExecution", + Handler: _AdminService_GetExecution_Handler, + }, + { + MethodName: "GetExecutionData", + Handler: _AdminService_GetExecutionData_Handler, + }, + { + MethodName: "ListExecutions", + Handler: _AdminService_ListExecutions_Handler, + }, + { + MethodName: "TerminateExecution", + Handler: _AdminService_TerminateExecution_Handler, + }, + { + MethodName: "GetNodeExecution", + Handler: _AdminService_GetNodeExecution_Handler, + }, + { + MethodName: "ListNodeExecutions", + Handler: _AdminService_ListNodeExecutions_Handler, + }, + { + MethodName: "ListNodeExecutionsForTask", + Handler: _AdminService_ListNodeExecutionsForTask_Handler, + }, + { + MethodName: "GetNodeExecutionData", + Handler: _AdminService_GetNodeExecutionData_Handler, + }, + { + MethodName: "RegisterProject", + Handler: _AdminService_RegisterProject_Handler, + }, + { + MethodName: "ListProjects", + Handler: _AdminService_ListProjects_Handler, + }, + { + MethodName: "CreateWorkflowEvent", + Handler: _AdminService_CreateWorkflowEvent_Handler, + }, + { + MethodName: "CreateNodeEvent", + Handler: _AdminService_CreateNodeEvent_Handler, + }, + { + MethodName: "CreateTaskEvent", + Handler: _AdminService_CreateTaskEvent_Handler, + }, + { + MethodName: "GetTaskExecution", + Handler: _AdminService_GetTaskExecution_Handler, + }, + { + MethodName: "ListTaskExecutions", + Handler: _AdminService_ListTaskExecutions_Handler, + }, + { + MethodName: "GetTaskExecutionData", + Handler: _AdminService_GetTaskExecutionData_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/admin.proto", +} + +func init() { proto.RegisterFile("flyteidl/service/admin.proto", fileDescriptor_admin_e16ec9902bb4ba3f) } + +var fileDescriptor_admin_e16ec9902bb4ba3f = []byte{ + // 1678 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x59, 0x4b, 0x88, 0x1c, 0x45, + 0x18, 0xa6, 0x66, 0x44, 0xb1, 0xf2, 0xda, 0x94, 0x51, 0x77, 0x27, 0xd9, 0xd8, 0xe9, 0x65, 0xb3, + 0xd9, 0xd7, 0xf4, 0xe6, 0x45, 0x4c, 0x34, 0xe8, 0x24, 0xd9, 0x2c, 0x1b, 0x42, 0x12, 0xd6, 0x88, + 0xb0, 0x04, 0x97, 0x9a, 0xe9, 0x9a, 0x99, 0x4e, 0x7a, 0xba, 0xc7, 0xee, 0x9a, 0x59, 0x97, 0x65, + 0x41, 0x3c, 0x99, 0xeb, 0xaa, 0x68, 0x30, 0x28, 0x41, 0x03, 0x2a, 0xc6, 0x8b, 0x22, 0x78, 0x11, + 0x05, 0x0f, 0xc1, 0x83, 0x87, 0x08, 0xa2, 0x07, 0x3d, 0xe5, 0xe2, 0x25, 0x27, 0xf1, 0xe4, 0x41, + 0xba, 0xba, 0xaa, 0xa7, 0xab, 0x1f, 0x33, 0x3d, 0x21, 0x11, 0x22, 0x9e, 0x76, 0x77, 0xfe, 0xaf, + 0xaa, 0xbe, 0xff, 0xab, 0xff, 0xb5, 0x35, 0x70, 0x47, 0xd5, 0x5c, 0xa1, 0xc4, 0xd0, 0x4d, 0xcd, + 0x25, 0x4e, 0xdb, 0xa8, 0x10, 0x0d, 0xeb, 0x0d, 0xc3, 0x2a, 0x36, 0x1d, 0x9b, 0xda, 0x68, 0x40, + 0x58, 0x8b, 0xdc, 0x5a, 0xd8, 0x51, 0xb3, 0xed, 0x9a, 0x49, 0x34, 0xdc, 0x34, 0x34, 0x6c, 0x59, + 0x36, 0xc5, 0xd4, 0xb0, 0x2d, 0xd7, 0xc7, 0x17, 0x3a, 0xbb, 0xb1, 0x5d, 0xb4, 0xa6, 0x63, 0x5f, + 0x24, 0x15, 0xca, 0xad, 0x43, 0x11, 0x2b, 0xc5, 0xee, 0x25, 0x6e, 0x1a, 0x8e, 0x98, 0x96, 0x6d, + 0xe7, 0x52, 0xd5, 0xb4, 0x97, 0xb9, 0x59, 0x89, 0x98, 0x4d, 0xdc, 0xb2, 0x2a, 0xf5, 0xa5, 0xa6, + 0x89, 0x39, 0xd3, 0x42, 0x21, 0x82, 0x20, 0x6d, 0x62, 0x89, 0x73, 0x77, 0x46, 0x6d, 0xaf, 0x92, + 0x4a, 0xcb, 0xa3, 0xcd, 0xed, 0x23, 0x11, 0xbb, 0x65, 0xeb, 0x64, 0xa9, 0x17, 0xc8, 0x23, 0x1f, + 0x03, 0x6d, 0x8f, 0x80, 0x2a, 0x76, 0xa3, 0x11, 0x18, 0xa7, 0xd8, 0x8f, 0xca, 0x74, 0x8d, 0x58, + 0xd3, 0xee, 0x32, 0xae, 0xd5, 0x88, 0xa3, 0xd9, 0x4d, 0x26, 0x5f, 0x5c, 0xca, 0x7d, 0xdf, 0x3d, + 0x0d, 0x37, 0x96, 0xbc, 0x4d, 0x5e, 0xf0, 0x95, 0x47, 0xdf, 0xe7, 0x20, 0x3c, 0xee, 0x10, 0x4c, + 0xc9, 0x79, 0xec, 0x5e, 0x42, 0xbb, 0x8a, 0xc1, 0xdd, 0xf8, 0x37, 0xe6, 0x7d, 0xea, 0xdb, 0x17, + 0xc8, 0x2b, 0x2d, 0xe2, 0xd2, 0x82, 0xda, 0x0d, 0xe2, 0x36, 0x6d, 0xcb, 0x25, 0xea, 0x1d, 0xb0, + 0x5e, 0xba, 0x05, 0x0a, 0xa3, 0xfe, 0xc7, 0x0a, 0xb6, 0x74, 0xc5, 0x21, 0x35, 0xc3, 0xa5, 0xc4, + 0x51, 0xb0, 0xe2, 0x39, 0xa9, 0xe8, 0xa4, 0x6a, 0x58, 0x86, 0xc7, 0xed, 0xd4, 0x31, 0x98, 0x3f, + 0x30, 0x33, 0x83, 0x9e, 0x81, 0x87, 0x17, 0x08, 0x6d, 0x39, 0x16, 0xd1, 0x95, 0xaa, 0xed, 0x28, + 0x65, 0xec, 0xad, 0x62, 0x87, 0x2a, 0xb4, 0x8e, 0xa9, 0xd2, 0xc0, 0x2b, 0x4a, 0x1d, 0xb7, 0x89, + 0x52, 0xc5, 0x86, 0x49, 0x74, 0xa5, 0x8d, 0x4d, 0x43, 0x67, 0xee, 0x15, 0x4f, 0x11, 0x6f, 0x8f, + 0xc3, 0xe8, 0x65, 0x78, 0x41, 0xda, 0x03, 0xcb, 0x3b, 0x38, 0xa4, 0x4a, 0x1c, 0x62, 0x55, 0x88, + 0xab, 0x60, 0x4b, 0x31, 0x74, 0x62, 0x51, 0xa3, 0x82, 0x4d, 0xc5, 0xfb, 0x49, 0x57, 0x7c, 0x4c, + 0x1d, 0xbb, 0x0a, 0x36, 0x1d, 0x82, 0xf5, 0x15, 0xa5, 0x4c, 0x88, 0x15, 0x30, 0x27, 0x7a, 0xf1, + 0xf5, 0x9f, 0x6e, 0xbf, 0x99, 0x43, 0xea, 0x26, 0x16, 0xa8, 0xed, 0xbd, 0xec, 0xba, 0xdc, 0x23, + 0x60, 0x02, 0xbd, 0x01, 0xe0, 0x23, 0x73, 0x84, 0x32, 0x0d, 0x95, 0xa8, 0x40, 0x67, 0xcb, 0x5e, + 0xb8, 0xce, 0x11, 0x2a, 0x24, 0xdc, 0x96, 0x24, 0xa1, 0x3a, 0xcb, 0x76, 0x7f, 0x0e, 0x1d, 0x95, + 0x76, 0xd7, 0x56, 0x0d, 0xbd, 0xc8, 0x23, 0x7e, 0x8d, 0xfd, 0xa1, 0xdb, 0x0d, 0x6c, 0x58, 0xfe, + 0xef, 0x16, 0x6e, 0x10, 0xff, 0xb7, 0x36, 0x71, 0x5c, 0xc3, 0xb6, 0xd6, 0xd0, 0x3b, 0x00, 0x6e, + 0x38, 0x6d, 0xb8, 0x8c, 0xcb, 0xbc, 0xee, 0xa2, 0x99, 0xe8, 0x61, 0x67, 0x70, 0x83, 0xe8, 0xb3, + 0xcc, 0xe3, 0x79, 0xa6, 0x40, 0xd5, 0x20, 0x8e, 0xb7, 0x42, 0xd0, 0x1b, 0xcf, 0xbc, 0x42, 0x9d, + 0x64, 0x9c, 0x47, 0xd1, 0x48, 0x98, 0xf3, 0x92, 0xa1, 0xbb, 0xda, 0x6a, 0x87, 0x33, 0x27, 0x8c, + 0x3e, 0x07, 0xf0, 0x51, 0xc1, 0xcc, 0x45, 0x23, 0xd1, 0x53, 0x16, 0x88, 0x6b, 0xb7, 0x9c, 0x0a, + 0x09, 0x53, 0x19, 0x4c, 0x52, 0x8a, 0x9d, 0x5c, 0x66, 0x27, 0x5f, 0x40, 0x33, 0xfd, 0xaa, 0xb5, + 0xb8, 0x07, 0xed, 0xce, 0xb6, 0x06, 0xfd, 0x92, 0x83, 0x9b, 0xfd, 0x10, 0x7e, 0x89, 0x57, 0x0e, + 0x34, 0x1a, 0x25, 0x24, 0x2c, 0x72, 0x92, 0xec, 0xee, 0x05, 0xe3, 0x89, 0xf2, 0x17, 0x58, 0x2f, + 0xfd, 0x0c, 0x0a, 0xe3, 0xc9, 0x89, 0x22, 0xea, 0xd5, 0x03, 0x9c, 0x2c, 0x4f, 0xa8, 0x5b, 0x85, + 0xd8, 0xc2, 0x1b, 0x96, 0x30, 0x6f, 0x01, 0xb8, 0x61, 0x8e, 0xd0, 0x40, 0xd7, 0xde, 0x49, 0x33, + 0x98, 0x26, 0xa9, 0x3a, 0xcf, 0x4e, 0x3a, 0x8e, 0x4a, 0xb1, 0x93, 0xfa, 0x4e, 0x9e, 0x0f, 0x00, + 0xdc, 0xe2, 0x85, 0x97, 0xd8, 0xfb, 0xbe, 0x27, 0x90, 0xc6, 0xb8, 0x8f, 0xa3, 0xb1, 0x28, 0xf7, + 0xb4, 0x24, 0xfa, 0x06, 0xc0, 0x4d, 0x61, 0x86, 0x19, 0x13, 0x69, 0x47, 0x9a, 0x7a, 0x8c, 0xc5, + 0x45, 0xc6, 0x42, 0x47, 0x07, 0xee, 0x46, 0xc1, 0xc5, 0x29, 0x34, 0x91, 0x7d, 0x1d, 0xba, 0x9d, + 0x83, 0x03, 0x7e, 0xb8, 0x9f, 0x66, 0xfd, 0xf6, 0x9c, 0x89, 0x2d, 0x34, 0x16, 0xa5, 0xd7, 0xb1, + 0xc9, 0x89, 0xb5, 0xa7, 0x37, 0x90, 0xa7, 0xd6, 0xdf, 0x60, 0xbd, 0xf4, 0x2b, 0x28, 0x4c, 0x25, + 0xa7, 0x96, 0xdf, 0xeb, 0x15, 0xaf, 0xd7, 0x3f, 0xc0, 0xd9, 0x35, 0xa4, 0x6e, 0x13, 0xca, 0x87, + 0x86, 0x17, 0x96, 0x60, 0xef, 0x01, 0xb8, 0x69, 0x8e, 0xd0, 0x90, 0xc6, 0xbd, 0x53, 0xac, 0x90, + 0x2e, 0xae, 0x7a, 0x9a, 0x1d, 0x78, 0x12, 0x9d, 0x48, 0x3a, 0xb0, 0xef, 0x3c, 0xfb, 0x08, 0xc0, + 0xad, 0x5e, 0xe4, 0x75, 0x0e, 0xb8, 0xef, 0x99, 0xb6, 0x8f, 0x39, 0x10, 0x8a, 0xd5, 0x90, 0x03, + 0x69, 0xc9, 0x76, 0x93, 0x97, 0x83, 0x0e, 0xcd, 0x8c, 0xe9, 0xb6, 0x33, 0x5d, 0x49, 0x46, 0xa6, + 0xc9, 0xc8, 0x5c, 0x44, 0x87, 0xee, 0x52, 0xcd, 0x45, 0x0d, 0x4d, 0xf7, 0xb5, 0x14, 0x7d, 0x05, + 0xe0, 0xc0, 0x8b, 0x4d, 0x3d, 0x73, 0xda, 0xf9, 0xd8, 0x0c, 0x69, 0x27, 0x80, 0x3c, 0xed, 0xce, + 0x32, 0xcf, 0xe6, 0x0b, 0xf7, 0x24, 0x4e, 0xbc, 0x40, 0xfe, 0x31, 0x07, 0xb7, 0xf8, 0x39, 0x3c, + 0x2b, 0xe6, 0x62, 0x14, 0x6b, 0xaf, 0x81, 0x49, 0xae, 0x16, 0x63, 0x3d, 0x71, 0x9c, 0xf5, 0x1f, + 0x60, 0xbd, 0x74, 0x13, 0x14, 0xb6, 0x8b, 0x62, 0xd1, 0x69, 0xbd, 0xc1, 0x30, 0xfe, 0xa0, 0xd5, + 0x86, 0x27, 0x55, 0x24, 0xae, 0x20, 0xf0, 0x81, 0x55, 0x86, 0xdf, 0x72, 0x70, 0xeb, 0x02, 0xf1, + 0xaf, 0xa5, 0x23, 0xe9, 0x9e, 0x54, 0xa9, 0x04, 0xb6, 0x6f, 0x51, 0xff, 0x04, 0xeb, 0xa5, 0x1f, + 0x40, 0x61, 0x58, 0x6c, 0xf0, 0x9f, 0x90, 0x55, 0x51, 0xb7, 0xc7, 0x65, 0xd5, 0x1c, 0xee, 0xa2, + 0xa7, 0xef, 0xdb, 0x00, 0x6e, 0x9c, 0x23, 0xb4, 0x23, 0xed, 0x64, 0x5a, 0xef, 0x0d, 0x20, 0xa1, + 0x1a, 0x3c, 0x94, 0xaa, 0xae, 0x7a, 0x94, 0x11, 0x38, 0x84, 0x0e, 0x26, 0x10, 0xe8, 0x9d, 0x58, + 0xe8, 0x6b, 0x00, 0x07, 0xc2, 0xbc, 0x4e, 0x60, 0x8a, 0x91, 0x96, 0x85, 0x9b, 0x87, 0x14, 0xfc, + 0x66, 0xb2, 0x2f, 0xe0, 0x61, 0x70, 0x8c, 0xd1, 0x7e, 0x16, 0x1d, 0x11, 0xb4, 0x75, 0x4c, 0x71, + 0x9f, 0xdc, 0x2f, 0x03, 0xb8, 0xd9, 0x2b, 0x9c, 0xc1, 0x21, 0x19, 0xeb, 0xf0, 0x70, 0xaa, 0x9a, + 0xac, 0x0c, 0xef, 0x67, 0xd4, 0xa6, 0xd1, 0x64, 0x1f, 0x8a, 0xa2, 0x1b, 0x00, 0xa2, 0xf3, 0xc4, + 0x69, 0x18, 0x96, 0x54, 0x93, 0xc6, 0x53, 0x8f, 0x0a, 0xc0, 0x82, 0xd5, 0x44, 0x16, 0x28, 0x57, + 0xef, 0x79, 0x46, 0xf1, 0xc8, 0xc4, 0xdd, 0x5d, 0xba, 0x17, 0x8f, 0xb7, 0xfc, 0x7b, 0x3f, 0x63, + 0xeb, 0x21, 0xb6, 0xb1, 0x24, 0x96, 0xcc, 0xa1, 0x78, 0x1c, 0xee, 0x0a, 0x54, 0xdb, 0x8c, 0x5e, + 0x13, 0x59, 0x82, 0x9e, 0xfc, 0xcc, 0xe1, 0x73, 0x0c, 0xfe, 0x5c, 0x8a, 0x12, 0x96, 0x2c, 0x61, + 0xf6, 0x92, 0xa1, 0xd3, 0x18, 0xd8, 0xee, 0x86, 0xbe, 0x86, 0x7e, 0x07, 0x10, 0x79, 0x57, 0x28, + 0xb1, 0x71, 0xe3, 0x55, 0x4c, 0xb2, 0x87, 0x23, 0x63, 0x57, 0x4f, 0xa4, 0xba, 0xca, 0x7c, 0x6b, + 0x21, 0x37, 0xd5, 0xb7, 0x60, 0x58, 0x4f, 0xf1, 0x30, 0xd9, 0x1e, 0xf8, 0x99, 0x6c, 0xf6, 0x23, + 0xfe, 0xfa, 0x43, 0x70, 0x28, 0xee, 0xe0, 0x49, 0xdb, 0x61, 0x6f, 0x0c, 0x5a, 0x57, 0xf6, 0x1c, + 0xd5, 0xa7, 0xbb, 0x5f, 0xe4, 0x99, 0xbf, 0x9f, 0xe5, 0xd1, 0x27, 0x79, 0xe1, 0x71, 0xa5, 0x6e, + 0x98, 0xba, 0x43, 0xa2, 0x0f, 0x53, 0xae, 0xb6, 0x2a, 0x7f, 0xb0, 0x24, 0xee, 0x46, 0xfa, 0x24, + 0x45, 0x95, 0xbe, 0x97, 0x06, 0x82, 0xf5, 0xbd, 0x92, 0x47, 0x4e, 0x96, 0x75, 0x22, 0xb4, 0x92, + 0xd0, 0xfc, 0x55, 0xa3, 0xab, 0x0f, 0x02, 0xd3, 0x85, 0xac, 0x80, 0xa4, 0xb2, 0x12, 0x00, 0x31, + 0xff, 0x24, 0x61, 0x1c, 0x42, 0x9d, 0x95, 0x25, 0x4c, 0x29, 0x69, 0x34, 0xe9, 0x1a, 0xba, 0x03, + 0xe0, 0xb6, 0x68, 0x76, 0xb3, 0xca, 0x3e, 0xd9, 0x2b, 0xc3, 0xc3, 0x55, 0x7d, 0x2a, 0x1b, 0x98, + 0xd7, 0xa4, 0x58, 0x62, 0xb0, 0x8a, 0xfe, 0x2f, 0x65, 0xfe, 0xf5, 0x1c, 0xdc, 0xb2, 0xc0, 0x9b, + 0xf2, 0x39, 0x7f, 0xc7, 0xf8, 0x3c, 0xc8, 0x0d, 0x02, 0x97, 0x3a, 0xba, 0xc4, 0x70, 0xdc, 0xc3, + 0x6f, 0xc1, 0x7a, 0xe9, 0x1a, 0x28, 0x4c, 0x2e, 0x74, 0xfe, 0x63, 0xe4, 0xec, 0x15, 0x6c, 0xda, + 0x56, 0x4d, 0x59, 0x36, 0x68, 0xdd, 0x1f, 0x41, 0x14, 0x9f, 0xbc, 0x7b, 0xaa, 0x08, 0xf3, 0xfb, + 0x66, 0xf6, 0xa2, 0x31, 0x38, 0x2a, 0x0d, 0x21, 0x6e, 0xab, 0x52, 0x21, 0xae, 0x5b, 0x6d, 0x99, + 0x7c, 0x96, 0x70, 0xf8, 0xd0, 0x72, 0x0f, 0x06, 0x1f, 0x76, 0x0f, 0x8f, 0xab, 0x03, 0xe2, 0x1e, + 0x38, 0x47, 0x36, 0xe6, 0x55, 0xe1, 0x46, 0x2f, 0xad, 0xb9, 0x87, 0x2e, 0x52, 0x53, 0x7c, 0xef, + 0xfa, 0xdc, 0x26, 0x56, 0xab, 0x83, 0xfe, 0xd3, 0x27, 0x8a, 0x1d, 0x85, 0xae, 0x00, 0xf8, 0x98, + 0xfc, 0x48, 0x36, 0xdb, 0x26, 0x16, 0x45, 0xd3, 0x3d, 0x07, 0x05, 0x86, 0x13, 0x47, 0x17, 0xb3, + 0xc2, 0xf9, 0x0d, 0x8d, 0x30, 0x42, 0xc3, 0xea, 0x60, 0xd0, 0x17, 0x3d, 0xb3, 0x2b, 0xbf, 0x32, + 0x5d, 0x06, 0xe2, 0x7f, 0x07, 0x16, 0xcf, 0x8c, 0xd7, 0x78, 0xd7, 0x50, 0x97, 0x38, 0x4d, 0x64, + 0x81, 0x72, 0x3e, 0x4f, 0x45, 0xff, 0x21, 0xe7, 0x7c, 0xbc, 0xb8, 0x8d, 0x70, 0xf1, 0x6a, 0x73, + 0x0a, 0x17, 0x66, 0xca, 0xc6, 0x25, 0x09, 0xda, 0x83, 0x4b, 0xf0, 0x5c, 0xfd, 0x5a, 0x9e, 0x8d, + 0x04, 0xd2, 0x16, 0xf1, 0x91, 0x40, 0x32, 0x77, 0x1b, 0x09, 0x24, 0xa0, 0xfa, 0x61, 0x8e, 0x1d, + 0x7f, 0x35, 0x87, 0xae, 0xe4, 0xa4, 0x67, 0xe1, 0x48, 0x6d, 0xc8, 0xdc, 0x2f, 0xfa, 0x68, 0x10, + 0x99, 0x3b, 0x42, 0x8f, 0x16, 0x90, 0x58, 0xf3, 0x93, 0x8a, 0x7c, 0xbc, 0xaa, 0x27, 0x96, 0xf1, + 0x78, 0xdd, 0x7e, 0x37, 0xe7, 0x0f, 0x30, 0x92, 0x76, 0x09, 0x03, 0x8c, 0x64, 0xef, 0xda, 0xd1, + 0x63, 0x48, 0xf5, 0x4b, 0xc0, 0x6e, 0xe2, 0x06, 0x40, 0x9f, 0x82, 0xd4, 0x9b, 0xc8, 0x7c, 0x0d, + 0x59, 0xef, 0x20, 0xdb, 0x05, 0xa4, 0xab, 0x8f, 0xae, 0xe6, 0x59, 0x4b, 0x93, 0xfc, 0x49, 0x6e, + 0x69, 0xd1, 0x08, 0xed, 0xda, 0xd2, 0x92, 0xc1, 0x3c, 0x65, 0x3e, 0xf6, 0x83, 0xf6, 0x5a, 0x0e, + 0xbd, 0x9f, 0x93, 0xba, 0xda, 0xff, 0x91, 0x1b, 0x89, 0xdc, 0x63, 0x07, 0x17, 0xf7, 0xd7, 0x0c, + 0x5a, 0x6f, 0x95, 0x8b, 0x15, 0xbb, 0xa1, 0x99, 0x2b, 0x55, 0xaa, 0x05, 0x5f, 0x50, 0xd6, 0x88, + 0xa5, 0x35, 0xcb, 0xd3, 0x35, 0x5b, 0x8b, 0x7e, 0x03, 0x5c, 0x7e, 0x98, 0x7d, 0x03, 0xb9, 0xff, + 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd9, 0x52, 0xd7, 0x43, 0x1c, 0x1e, 0x00, 0x00, +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go new file mode 100644 index 0000000000..9c738d7dbb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go @@ -0,0 +1,2881 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/admin.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "io" + "net/http" + + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin" + "golang.org/x/net/context" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/status" +) + +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray + +func request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} +) + +func request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTaskIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListTaskIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTaskIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTasks_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListTasks_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTasks_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListTasks_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} +) + +func request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetWorkflow_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflowIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListWorkflowIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflowIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListWorkflows_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflows_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListWorkflows_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.LaunchPlanCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} +) + +func request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlanIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} +) + +func request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListLaunchPlanIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlanIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlans_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListLaunchPlans_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.LaunchPlanUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + msg, err := client.UpdateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionRelaunchRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RelaunchExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} +) + +func request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ExecutionTerminateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.TerminateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNodeExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetNodeExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNodeExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNodeExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} +) + +func request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListNodeExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNodeExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNodeExecutionsForTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} +) + +func request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionForTaskListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) + } + + val, ok = pathParams["task_execution_id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) + } + + val, ok = pathParams["task_execution_id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) + } + + val, ok = pathParams["task_execution_id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) + } + + val, ok = pathParams["task_execution_id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) + } + + val, ok = pathParams["task_execution_id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListNodeExecutionsForTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNodeExecutionsForTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNodeExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetNodeExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNodeExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectRegisterRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RegisterProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.ProjectListRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.WorkflowExecutionEventRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateWorkflowEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.NodeExecutionEventRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateNodeEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionEventRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateTaskEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTaskExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} +) + +func request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetTaskExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTaskExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"node_execution_id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} +) + +func request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_id", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_ListTaskExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTaskExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTaskExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} +) + +func request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq admin.TaskExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_AdminService_GetTaskExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +// RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAdminServiceHandler(ctx, mux, conn) +} + +// RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAdminServiceHandlerClient(ctx, mux, NewAdminServiceClient(conn)) +} + +// RegisterAdminServiceHandlerClient registers the http handlers for service AdminService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "AdminServiceClient" to call the correct interceptors. +func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error { + + mux.Handle("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateTask_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetTask_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTaskIds_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTaskIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTasks_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTasks_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListWorkflowIds_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflowIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListWorkflows_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListWorkflows_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListLaunchPlanIds_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlanIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListLaunchPlans_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListLaunchPlans_1(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateExecution_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_RelaunchExecution_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RelaunchExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetExecution_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetExecutionData_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListExecutions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_TerminateExecution_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_TerminateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetNodeExecution_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNodeExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListNodeExecutions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNodeExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListNodeExecutionsForTask_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNodeExecutionsForTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetNodeExecutionData_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNodeExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_RegisterProject_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RegisterProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListProjects_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateWorkflowEvent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateWorkflowEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateNodeEvent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateNodeEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateTaskEvent_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateTaskEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetTaskExecution_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTaskExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTaskExecutions_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTaskExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetTaskExecutionData_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTaskExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AdminService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "tasks"}, "")) + + pattern_AdminService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListTaskIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "task_ids", "project", "domain"}, "")) + + pattern_AdminService_ListTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListTasks_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "tasks", "id.project", "id.domain"}, "")) + + pattern_AdminService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "workflows"}, "")) + + pattern_AdminService_GetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListWorkflowIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow_ids", "project", "domain"}, "")) + + pattern_AdminService_ListWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListWorkflows_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "id.project", "id.domain"}, "")) + + pattern_AdminService_CreateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "launch_plans"}, "")) + + pattern_AdminService_GetLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListLaunchPlanIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plan_ids", "project", "domain"}, "")) + + pattern_AdminService_ListLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListLaunchPlans_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plans", "id.project", "id.domain"}, "")) + + pattern_AdminService_UpdateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_CreateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "executions"}, "")) + + pattern_AdminService_RelaunchExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "relaunch"}, "")) + + pattern_AdminService_GetExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "data", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "executions", "id.project", "id.domain"}, "")) + + pattern_AdminService_TerminateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetNodeExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) + + pattern_AdminService_ListNodeExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "node_executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) + + pattern_AdminService_ListNodeExecutionsForTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "children", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) + + pattern_AdminService_GetNodeExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "data", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) + + pattern_AdminService_RegisterProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) + + pattern_AdminService_ListProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) + + pattern_AdminService_CreateWorkflowEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "workflows"}, "")) + + pattern_AdminService_CreateNodeEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "nodes"}, "")) + + pattern_AdminService_CreateTaskEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "tasks"}, "")) + + pattern_AdminService_GetTaskExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11}, []string{"api", "v1", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) + + pattern_AdminService_ListTaskExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "task_executions", "node_execution_id.execution_id.project", "node_execution_id.execution_id.domain", "node_execution_id.execution_id.name", "node_execution_id.node_id"}, "")) + + pattern_AdminService_GetTaskExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "data", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) +) + +var ( + forward_AdminService_CreateTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTaskIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTasks_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTasks_1 = runtime.ForwardResponseMessage + + forward_AdminService_CreateWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflowIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflows_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflows_1 = runtime.ForwardResponseMessage + + forward_AdminService_CreateLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlanIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlans_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlans_1 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_RelaunchExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_TerminateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNodeExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNodeExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNodeExecutionsForTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNodeExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_RegisterProject_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListProjects_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateWorkflowEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateNodeEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateTaskEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTaskExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTaskExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTaskExecutionData_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json new file mode 100644 index 0000000000..526aa3ded3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json @@ -0,0 +1,4452 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/admin.proto", + "version": "version not set" + }, + "schemes": [ + "http", + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { + "get": { + "operationId": "ListNodeExecutionsForTask", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNodeExecutionList" + } + } + }, + "parameters": [ + { + "name": "task_execution_id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "task_execution_id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifer corresponds to.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "operationId": "GetExecutionData", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "operationId": "GetNodeExecutionData", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNodeExecutionGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "operationId": "GetTaskExecutionData", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTaskExecutionGetDataResponse" + } + } + }, + "parameters": [ + { + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifer corresponds to.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/nodes": { + "post": { + "operationId": "CreateNodeEvent", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/tasks": { + "post": { + "operationId": "CreateTaskEvent", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/workflows": { + "post": { + "operationId": "CreateWorkflowEvent", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventResponse" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions": { + "post": { + "description": "Create a workflow execution", + "operationId": "CreateExecution", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/relaunch": { + "post": { + "description": "Relaunch a workflow execution", + "operationId": "RelaunchExecution", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionRelaunchRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}": { + "get": { + "operationId": "ListExecutions", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminExecutionList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "operationId": "GetExecution", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminExecution" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "operationId": "TerminateExecution", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminExecutionTerminateResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionTerminateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plan_ids/{project}/{domain}": { + "get": { + "operationId": "ListLaunchPlanIds", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans": { + "post": { + "description": "Create and register a launch plan definition", + "operationId": "CreateLaunchPlan", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}": { + "get": { + "operationId": "ListLaunchPlans2", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { + "get": { + "operationId": "ListLaunchPlans", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "operationId": "GetLaunchPlan", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminLaunchPlan" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifer corresponds to.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "operationId": "UpdateLaunchPlan", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminLaunchPlanUpdateResponse" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminLaunchPlanUpdateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "operationId": "GetNodeExecution", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/flyteidladminNodeExecution" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "operationId": "ListNodeExecutions", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNodeExecutionList" + } + } + }, + "parameters": [ + { + "name": "workflow_execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/projects": { + "get": { + "operationId": "ListProjects", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminProjects" + } + } + }, + "tags": [ + "AdminService" + ] + }, + "post": { + "description": "Register a project along with valid domains", + "operationId": "RegisterProject", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminProjectRegisterResponse" + } + }, + "201": { + "description": "Returned for successful registration.", + "schema": {} + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectRegisterRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "operationId": "GetTaskExecution", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/flyteidladminTaskExecution" + } + } + }, + "parameters": [ + { + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifer corresponds to.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { + "get": { + "operationId": "ListTaskExecutions", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTaskExecutionList" + } + } + }, + "parameters": [ + { + "name": "node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_ids/{project}/{domain}": { + "get": { + "operationId": "ListTaskIds", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks": { + "post": { + "description": "Create and register a task definition", + "operationId": "CreateTask", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTaskCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminTaskCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}": { + "get": { + "operationId": "ListTasks2", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTaskList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { + "get": { + "operationId": "ListTasks", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTaskList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "operationId": "GetTask", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminTask" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifer corresponds to.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_ids/{project}/{domain}": { + "get": { + "operationId": "ListWorkflowIds", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows": { + "post": { + "description": "Create and register a workflow definition", + "operationId": "CreateWorkflow", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminWorkflowCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}": { + "get": { + "operationId": "ListWorkflows2", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminWorkflowList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}": { + "get": { + "operationId": "ListWorkflows", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminWorkflowList" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "operationId": "GetWorkflow", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/adminWorkflow" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifer corresponds to.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED" + } + ], + "tags": [ + "AdminService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "ComparisonExpressionOperator": { + "type": "string", + "enum": [ + "EQ", + "NEQ", + "GT", + "GTE", + "LT", + "LTE" + ], + "default": "EQ", + "description": "- GT: Greater Than\n - LT: Less Than", + "title": "Binary Operator for each expression" + }, + "ConjunctionExpressionLogicalOperator": { + "type": "string", + "enum": [ + "AND", + "OR" + ], + "default": "AND", + "description": "- AND: Conjunction", + "title": "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation is not important as the operators are Commutative" + }, + "ConnectionSetIdList": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ExecutionMetadataExecutionMode": { + "type": "string", + "enum": [ + "MANUAL", + "SCHEDULED", + "SYSTEM", + "RELAUNCH", + "CHILD_WORKFLOW" + ], + "default": "MANUAL", + "description": "The method by which this execution was launched.\n\n - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual.\n - SCHEDULED: A schedule triggered this execution launch.\n - SYSTEM: A system process was responsible for launching this execution rather an individual.\n - RELAUNCH: This execution was launched with identical inputs as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered by another execution." + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SortDirection": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + "TaskLogMessageFormat": { + "type": "string", + "enum": [ + "UNKNOWN", + "CSV", + "JSON" + ], + "default": "UNKNOWN" + }, + "adminAnnotations": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of custom annotations to be applied to the execution resource." + } + }, + "description": "Annotation values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge annotations defined at registration and execution time." + }, + "adminAuth": { + "type": "object", + "properties": { + "assumable_iam_role": { + "type": "string" + }, + "kubernetes_service_account": { + "type": "string" + } + }, + "description": "Defines permissions associated with executions created by this launch plan spec." + }, + "adminDomain": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Display name." + } + }, + "description": "Namespace within a project commonly used to differentiate between different service instances.\ne.g. \"production\", \"development\", etc." + }, + "adminEmailNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of email addresses recipients for this notification." + } + } + }, + "adminExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Unique identifier of the workflow execution." + }, + "spec": { + "$ref": "#/definitions/adminExecutionSpec", + "description": "User-provided configuration and inputs for launching the execution." + }, + "closure": { + "$ref": "#/definitions/adminExecutionClosure", + "description": "Execution results." + } + }, + "description": "A workflow execution represents an instantiated workflow, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes.\nUsed as a response object used in Get and List execution requests." + }, + "adminExecutionClosure": { + "type": "object", + "properties": { + "outputs": { + "$ref": "#/definitions/adminLiteralMapBlob", + "description": "A map of outputs in the case of a successful execution." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "description": "Error information in the case of a failed execution." + }, + "abort_cause": { + "type": "string", + "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." + }, + "computed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Inputs computed and passed for execution.\ncomputed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan" + }, + "phase": { + "$ref": "#/definitions/coreWorkflowExecutionPhase", + "description": "Most recent recorded phase for the execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Reported ime at which the execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution was last updated." + }, + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNotification" + }, + "description": "The notification settings to use after merging the CreateExecutionRequest and the launch plan\nnotification settings. An execution launched with notifications will always prefer that definition\nto notifications defined statically in a launch plan." + }, + "workflow_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Identifies the workflow definition for this execution." + } + }, + "title": "Encapsulates the results of the Execution" + }, + "adminExecutionCreateRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the execution belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the execution belongs to. \nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "title": "User provided value for the resource.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "spec": { + "$ref": "#/definitions/adminExecutionSpec", + "description": "Additional fields necessary to launch the execution." + } + }, + "description": "Request to launch an execution with the given project, domain and optionally name." + }, + "adminExecutionCreateResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "The unique identifier for a successfully created execution.\nIf the name was *not* specified in the create request, this identifier will include a generated name." + }, + "adminExecutionList": { + "type": "object", + "properties": { + "executions": { + "type": "array", + "items": { + "$ref": "#/definitions/adminExecution" + } + }, + "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": "Used as a response for request to list executions." + }, + "adminExecutionMetadata": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/definitions/ExecutionMetadataExecutionMode" + }, + "principal": { + "type": "string", + "description": "Identifier of the entity that triggered this execution." + }, + "nesting": { + "type": "integer", + "format": "int64", + "description": "Indicates the \"nestedness\" of this execution.\nIf a user launches a workflow execution, the default nesting is 0.\nIf this execution further launches a workflow (child workflow), the nesting level is incremented by 0 =\u003e 1\nGenerally, if workflow at nesting level k launches a workflow then the child workflow will have\nnesting = k + 1." + }, + "scheduled_at": { + "type": "string", + "format": "date-time", + "description": "For scheduled executions, the requested time for execution for this specific schedule invocation." + }, + "parent_node_execution": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "Which subworkflow node launched this execution" + }, + "reference_execution": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Optional, a reference workflow execution related to this execution.\nIn the case of a relaunch, this references the original workflow execution." + } + }, + "description": "Represents attributes about an execution which are not required to launch the execution but are useful to record.\nThese attributes are assigned at launch time and do not change." + }, + "adminExecutionRelaunchRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Identifier of the workflow execution to relaunch." + }, + "name": { + "type": "string", + "title": "User provided value for the relaunched execution.\nIf none is provided the system will generate a unique string.\n+optional" + } + }, + "description": "Request to relaunch the referenced execution." + }, + "adminExecutionSpec": { + "type": "object", + "properties": { + "launch_plan": { + "$ref": "#/definitions/coreIdentifier", + "title": "Launch plan to be executed" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Input values to be passed for the execution" + }, + "metadata": { + "$ref": "#/definitions/adminExecutionMetadata", + "title": "Metadata for the execution" + }, + "notifications": { + "$ref": "#/definitions/adminNotificationList", + "description": "List of notifications based on Execution status transitions\nWhen this list is not empty it is used rather than any notifications defined in the referenced launch plan.\nWhen this list is empty, the notifications defined for the launch plan will be applied." + }, + "disable_all": { + "type": "boolean", + "format": "boolean", + "description": "This should be set to true if all notifications are intended to be disabled for this execution." + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Labels to apply to the execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Annotations to apply to the execution resource." + } + }, + "description": "An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime\nof an execution as it progresses across phase changes.." + }, + "adminExecutionTerminateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Uniquely identifies the individual workflow execution to be terminated." + }, + "cause": { + "type": "string", + "description": "Optional reason for aborting." + } + }, + "description": "Request to terminate an in-progress execution. This action is irreversible.\nIf an execution is already terminated, this request will simply be a no-op.\nThis request will fail if it references a non-existent execution.\nIf the request succeeds the phase \"ABORTED\" will be recorded for the termination\nwith the optional cause added to the output_result." + }, + "adminExecutionTerminateResponse": { + "type": "object" + }, + "adminFixedRate": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + }, + "unit": { + "$ref": "#/definitions/adminFixedRateUnit" + } + }, + "description": "Option for schedules run at a certain frequency, e.g. every 2 minutes." + }, + "adminFixedRateUnit": { + "type": "string", + "enum": [ + "MINUTE", + "HOUR", + "DAY" + ], + "default": "MINUTE", + "description": "Represents a frequency at which to run a schedule." + }, + "adminLabels": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of custom labels to be applied to the execution resource." + } + }, + "description": "Label values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge labels defined at registration and execution time." + }, + "adminLaunchPlan": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier" + }, + "spec": { + "$ref": "#/definitions/adminLaunchPlanSpec" + }, + "closure": { + "$ref": "#/definitions/adminLaunchPlanClosure" + } + }, + "description": "A LaunchPlan provides the capability to templatize workflow executions.\nLaunch plans simplify associating one or more schedules, inputs and notifications with your workflows.\nLaunch plans can be shared and used to trigger executions with predefined inputs even when a workflow\ndefinition doesn't necessarily have a default value for said input." + }, + "adminLaunchPlanClosure": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/adminLaunchPlanState", + "title": "Indicate the Launch plan phase" + }, + "expected_inputs": { + "$ref": "#/definitions/coreParameterMap", + "title": "Indicates the set of inputs to execute the Launch plan" + }, + "expected_outputs": { + "$ref": "#/definitions/coreVariableMap", + "title": "Indicates the set of outputs from the Launch plan" + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the launch plan was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the launch plan was last updated." + } + }, + "description": "Values computed by the flyte platform after launch plan registration.\nThese include expected_inputs required to be present in a CreateExecutionRequest\nto launch the reference workflow as well timestamp values associated with the launch plan." + }, + "adminLaunchPlanCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Uniquely identifies a launch plan entity." + }, + "spec": { + "$ref": "#/definitions/adminLaunchPlanSpec", + "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." + } + }, + "description": "Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan." + }, + "adminLaunchPlanCreateResponse": { + "type": "object" + }, + "adminLaunchPlanList": { + "type": "object", + "properties": { + "launch_plans": { + "type": "array", + "items": { + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "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": "Response object for list launch plan requests." + }, + "adminLaunchPlanMetadata": { + "type": "object", + "properties": { + "schedule": { + "$ref": "#/definitions/adminSchedule", + "title": "Schedule to execute the Launch Plan" + }, + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNotification" + }, + "title": "List of notifications based on Execution status transitions" + } + }, + "description": "Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch\nthe reference workflow." + }, + "adminLaunchPlanSpec": { + "type": "object", + "properties": { + "workflow_id": { + "$ref": "#/definitions/coreIdentifier", + "title": "Reference to the Workflow template that the launch plan references" + }, + "entity_metadata": { + "$ref": "#/definitions/adminLaunchPlanMetadata", + "title": "Metadata for the Launch Plan" + }, + "default_inputs": { + "$ref": "#/definitions/coreParameterMap", + "title": "Input values to be passed for the execution" + }, + "fixed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Fixed, non-overridable inputs for the Launch Plan" + }, + "role": { + "type": "string", + "title": "String to indicate the role to use to execute the workflow underneath" + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Custom labels to be applied to the execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Custom annotations to be applied to the execution resource." + }, + "auth": { + "$ref": "#/definitions/adminAuth", + "description": "Indicates the permission associated with workflow executions triggered with this launch plan." + } + }, + "description": "User-provided launch plan definition and configuration values." + }, + "adminLaunchPlanState": { + "type": "string", + "enum": [ + "INACTIVE", + "ACTIVE" + ], + "default": "INACTIVE", + "description": "By default any launch plan regardless of state can be used to launch a workflow execution.\nHowever, at most one version of a launch plan\n(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be\nactive at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier\ngroup will be observed and trigger executions at a defined cadence." + }, + "adminLaunchPlanUpdateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Identifier of launch plan for which to change state." + }, + "state": { + "$ref": "#/definitions/adminLaunchPlanState", + "description": "Desired state to apply to the launch plan." + } + }, + "description": "Request to set the referenced launch plan state to the configured value." + }, + "adminLaunchPlanUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminLiteralMapBlob": { + "type": "object", + "properties": { + "values": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Data in LiteralMap format" + }, + "uri": { + "type": "string", + "title": "In the event that the map is too large, we return a uri to the data" + } + }, + "title": "Input/output data can represented by actual values or a link to where values are stored" + }, + "adminNamedEntityIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "title": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'" + } + }, + "description": "Encapsulation of fields that identifies a Flyte resource.\nA resource can internally have multiple versions." + }, + "adminNamedEntityIdentifierList": { + "type": "object", + "properties": { + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNamedEntityIdentifier" + }, + "description": "A list of identifiers." + }, + "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": "Represents a list of Identifiers." + }, + "adminNodeExecutionClosure": { + "type": "object", + "properties": { + "output_uri": { + "type": "string" + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the Node" + }, + "phase": { + "$ref": "#/definitions/coreNodeExecutionPhase", + "description": "The last recorded phase for this node execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the node execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution was last updated." + }, + "workflow_node_metadata": { + "$ref": "#/definitions/flyteidladminWorkflowNodeMetadata" + } + }, + "description": "Container for node execution details and results." + }, + "adminNodeExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventNodeExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a node execution event has occurred." + }, + "adminNodeExecutionEventResponse": { + "type": "object" + }, + "adminNodeExecutionGetDataResponse": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of node execution inputs." + }, + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of node execution outputs." + } + }, + "description": "Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution." + }, + "adminNodeExecutionList": { + "type": "object", + "properties": { + "node_executions": { + "type": "array", + "items": { + "$ref": "#/definitions/flyteidladminNodeExecution" + } + }, + "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": "Request structure to retrieve a list of node execution entities." + }, + "adminNotification": { + "type": "object", + "properties": { + "phases": { + "type": "array", + "items": { + "$ref": "#/definitions/coreWorkflowExecutionPhase" + }, + "description": "A list of phases to which users can associate the notifications to." + }, + "email": { + "$ref": "#/definitions/adminEmailNotification", + "title": "option (validate.required) = true;" + }, + "pager_duty": { + "$ref": "#/definitions/adminPagerDutyNotification" + }, + "slack": { + "$ref": "#/definitions/adminSlackNotification" + } + }, + "description": "Represents a structure for notifications based on execution status.\nThe Notification content is configured within Admin. Future iterations could\nexpose configuring notifications with custom content." + }, + "adminNotificationList": { + "type": "object", + "properties": { + "notifications": { + "type": "array", + "items": { + "$ref": "#/definitions/adminNotification" + } + } + } + }, + "adminPagerDutyNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Currently, PagerDuty notifications leverage email to trigger a notification." + } + } + }, + "adminProject": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string", + "description": "Display name." + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/definitions/adminDomain" + } + } + }, + "description": "Top-level namespace used to classify different entities like workflows and executions." + }, + "adminProjectRegisterRequest": { + "type": "object", + "properties": { + "project": { + "$ref": "#/definitions/adminProject" + } + } + }, + "adminProjectRegisterResponse": { + "type": "object" + }, + "adminProjects": { + "type": "object", + "properties": { + "projects": { + "type": "array", + "items": { + "$ref": "#/definitions/adminProject" + } + } + } + }, + "adminSchedule": { + "type": "object", + "properties": { + "cron_expression": { + "type": "string", + "title": "Uses AWS syntax: \"Minutes Hours Day-of-month Month Day-of-week Year\"\ne.g. for a schedule that runs every 15 minutes: \"0/15 * * * ? *\"" + }, + "rate": { + "$ref": "#/definitions/adminFixedRate" + }, + "kickoff_time_input_arg": { + "type": "string", + "description": "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." + } + }, + "description": "Defines complete set of information required to trigger an execution on a schedule." + }, + "adminSlackNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Currently, Slack notifications leverage email to trigger a notification." + } + } + }, + "adminSort": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Indicates an attribute to sort the response values.\nTODO(katrogan): Add string validation here. This should never be empty." + }, + "direction": { + "$ref": "#/definitions/SortDirection", + "title": "Indicates the direction to apply sort key for response values.\n+optional" + } + }, + "description": "Species sort ordering in a list request." + }, + "adminTask": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the task." + }, + "closure": { + "$ref": "#/definitions/adminTaskClosure", + "description": "closure encapsulates all the fields that maps to a compiled version of the task." + } + }, + "description": "Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks\narranged to process workflow inputs and produce a deterministic set of outputs.\nTasks can come in many varieties tuned for specialized behavior." + }, + "adminTaskClosure": { + "type": "object", + "properties": { + "compiled_task": { + "$ref": "#/definitions/coreCompiledTask", + "description": "Represents the compiled representation of the task from the specification provided." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task was created." + } + }, + "description": "Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data\nand task metadata." + }, + "adminTaskCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the task." + }, + "spec": { + "$ref": "#/definitions/adminTaskSpec", + "description": "Represents the specification for task." + } + }, + "description": "Represents a request structure to create a revision of a task." + }, + "adminTaskCreateResponse": { + "type": "object", + "description": "Represents a response structure if task creation succeeds." + }, + "adminTaskExecutionClosure": { + "type": "object", + "properties": { + "output_uri": { + "type": "string", + "description": "Path to remote data store where output blob is stored if the execution succeeded (and produced outputs)." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "description": "Error information for the task execution. Populated if the execution failed." + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "description": "The last recorded phase for this task execution." + }, + "logs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreTaskLog" + }, + "description": "Detailed log information output by the task execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the task execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution was last updated." + }, + "custom_info": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data specific to the task plugin." + } + }, + "description": "Container for task execution details and results." + }, + "adminTaskExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventTaskExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a task execution event has occurred." + }, + "adminTaskExecutionEventResponse": { + "type": "object" + }, + "adminTaskExecutionGetDataResponse": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of task execution inputs." + }, + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of task execution outputs." + } + }, + "description": "Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution." + }, + "adminTaskExecutionList": { + "type": "object", + "properties": { + "task_executions": { + "type": "array", + "items": { + "$ref": "#/definitions/flyteidladminTaskExecution" + } + }, + "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": "Response structure for a query to list of task execution entities." + }, + "adminTaskList": { + "type": "object", + "properties": { + "tasks": { + "type": "array", + "items": { + "$ref": "#/definitions/adminTask" + }, + "description": "A list of tasks returned based on the request." + }, + "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": "Represents a list of tasks returned from the admin." + }, + "adminTaskSpec": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + } + }, + "description": "Represents a structure that encapsulates the user-configured specification of the task." + }, + "adminUrlBlob": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "Actual url value." + }, + "bytes": { + "type": "string", + "format": "int64", + "description": "Represents the size of the file accessible at the above url." + } + }, + "description": "Represents a string url and associated metadata used throughout the platform." + }, + "adminWorkflow": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "closure": { + "$ref": "#/definitions/adminWorkflowClosure", + "description": "closure encapsulates all the fields that maps to a compiled version of the workflow." + } + }, + "description": "Represents the workflow structure stored in the Admin\nA workflow is created by ordering tasks and associating outputs to inputs\nin order to produce a directed-acyclic execution graph." + }, + "adminWorkflowClosure": { + "type": "object", + "properties": { + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the workflow from the specification provided." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the workflow was created." + } + }, + "description": "A container holding the compiled workflow produced from the WorkflowSpec and additional metadata." + }, + "adminWorkflowCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "spec": { + "$ref": "#/definitions/adminWorkflowSpec", + "description": "Represents the specification for workflow." + } + }, + "description": "Represents a request structure to create a revision of a workflow." + }, + "adminWorkflowCreateResponse": { + "type": "object" + }, + "adminWorkflowExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventWorkflowExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a workflow execution event has occurred." + }, + "adminWorkflowExecutionEventResponse": { + "type": "object" + }, + "adminWorkflowExecutionGetDataResponse": { + "type": "object", + "properties": { + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of execution outputs." + } + }, + "description": "Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution." + }, + "adminWorkflowList": { + "type": "object", + "properties": { + "workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/adminWorkflow" + }, + "description": "A list of workflows returned based on the request." + }, + "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": "Represents a list of workflows returned from the admin." + }, + "adminWorkflowSpec": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreWorkflowTemplate", + "description": "Template of the task that encapsulates all the metadata of the workflow." + } + }, + "description": "Represents a structure that encapsulates the specification of the workflow." + }, + "coreAlias": { + "type": "object", + "properties": { + "var": { + "type": "string", + "description": "Must match one of the output variable names on a node." + }, + "alias": { + "type": "string", + "description": "A workflow-level unique alias that downstream nodes can refer to in their input." + } + }, + "description": "Links a variable to an alias." + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBinding": { + "type": "object", + "properties": { + "var": { + "type": "string", + "description": "Variable name must match an input/output variable of the node." + }, + "binding": { + "$ref": "#/definitions/coreBindingData", + "description": "Data to use to bind this variable." + } + }, + "description": "An input/output binding of a variable to either static value or a node output." + }, + "coreBindingData": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple scalar value." + }, + "collection": { + "$ref": "#/definitions/coreBindingDataCollection", + "description": "A collection of binding data. This allows nesting of binding data to any number\nof levels." + }, + "promise": { + "$ref": "#/definitions/coreOutputReference", + "description": "References an output promised by another node." + }, + "map": { + "$ref": "#/definitions/coreBindingDataMap", + "description": "A map of bindings. The key is always a string." + } + }, + "description": "Specifies either a simple value or a reference to another output." + }, + "coreBindingDataCollection": { + "type": "object", + "properties": { + "bindings": { + "type": "array", + "items": { + "$ref": "#/definitions/coreBindingData" + } + } + }, + "description": "A collection of BindingData items." + }, + "coreBindingDataMap": { + "type": "object", + "properties": { + "bindings": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreBindingData" + } + } + }, + "description": "A map of BindingData items." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreBooleanExpression": { + "type": "object", + "properties": { + "conjunction": { + "$ref": "#/definitions/coreConjunctionExpression" + }, + "comparison": { + "$ref": "#/definitions/coreComparisonExpression" + } + }, + "description": "Defines a boolean expression tree. It can be a simple or a conjunction expression.\nMultiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result." + }, + "coreBranchNode": { + "type": "object", + "properties": { + "if_else": { + "$ref": "#/definitions/coreIfElseBlock", + "title": "+required" + } + }, + "description": "BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at\nruntime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives)." + }, + "coreComparisonExpression": { + "type": "object", + "properties": { + "operator": { + "$ref": "#/definitions/ComparisonExpressionOperator" + }, + "left_value": { + "$ref": "#/definitions/coreOperand" + }, + "right_value": { + "$ref": "#/definitions/coreOperand" + } + }, + "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." + }, + "coreCompiledTask": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "title": "Completely contained TaskTemplate" + } + }, + "title": "Output of the Compilation step. This object represent one Task. We store more metadata at this layer" + }, + "coreCompiledWorkflow": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreWorkflowTemplate", + "title": "Completely contained Workflow Template" + }, + "connections": { + "$ref": "#/definitions/coreConnectionSet", + "description": "For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored." + } + }, + "title": "Output of the compilation Step. This object represents one workflow. We store more metadata at this layer" + }, + "coreCompiledWorkflowClosure": { + "type": "object", + "properties": { + "primary": { + "$ref": "#/definitions/coreCompiledWorkflow", + "title": "+required" + }, + "sub_workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/coreCompiledWorkflow" + }, + "title": "Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a\nunique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow\nas an inlined workflow\n+optional" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/definitions/coreCompiledTask" + }, + "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (atleast 1)" + } + }, + "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." + }, + "coreConjunctionExpression": { + "type": "object", + "properties": { + "operator": { + "$ref": "#/definitions/ConjunctionExpressionLogicalOperator" + }, + "left_expression": { + "$ref": "#/definitions/coreBooleanExpression" + }, + "right_expression": { + "$ref": "#/definitions/coreBooleanExpression" + } + }, + "description": "Defines a conjunction expression of two boolean expressions." + }, + "coreConnectionSet": { + "type": "object", + "properties": { + "downstream": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConnectionSetIdList" + }, + "title": "A list of all the node ids that are downstream from a given node id" + }, + "upstream": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConnectionSetIdList" + }, + "title": "A list of all the node ids, that are upstream of this node id" + } + }, + "title": "Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation\nstep uses this created ConnectionSet" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "$ref": "#/definitions/coreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available." + }, + "ports": { + "type": "array", + "items": { + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreExecutionError": { + "type": "object", + "properties": { + "code": { + "type": "string", + "title": "Error code indicates a grouping of a type of error.\nMore Info: \u003cLink\u003e" + }, + "message": { + "type": "string", + "description": "Detailed description of the error - including stack trace." + }, + "error_uri": { + "type": "string", + "title": "Full error contents accessible via a URI" + } + }, + "description": "Represents the error message from the execution." + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifer corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIfBlock": { + "type": "object", + "properties": { + "condition": { + "$ref": "#/definitions/coreBooleanExpression" + }, + "then_node": { + "$ref": "#/definitions/coreNode" + } + }, + "description": "Defines a condition and the execution unit that should be executed if the condition is satisfied." + }, + "coreIfElseBlock": { + "type": "object", + "properties": { + "case": { + "$ref": "#/definitions/coreIfBlock", + "description": "+required. First condition to evaluate." + }, + "other": { + "type": "array", + "items": { + "$ref": "#/definitions/coreIfBlock" + }, + "description": "+optional. Additional branches to evaluate." + }, + "else_node": { + "$ref": "#/definitions/coreNode", + "description": "The node to execute in case none of the branches were taken." + }, + "error": { + "$ref": "#/definitions/coreError", + "description": "An error to throw in case none of the branches were taken." + } + }, + "description": "Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.\nIf no conditions were satisfied, the else_node or the error will execute." + }, + "coreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "metadata": { + "$ref": "#/definitions/protobufStruct", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNode": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "A workflow-level unique identifier that identifies this node in the workflow. \"inputs\" and \"outputs\" are reserved\nnode ids that cannot be used by other nodes." + }, + "metadata": { + "$ref": "#/definitions/coreNodeMetadata", + "description": "Extra metadata about the node." + }, + "inputs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreBinding" + }, + "description": "Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface\nmust be fullfilled." + }, + "upstream_node_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its\nupstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs\nfield." + }, + "output_aliases": { + "type": "array", + "items": { + "$ref": "#/definitions/coreAlias" + }, + "description": "+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes\nneed to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this\nnodes outputs using the alias if one's specified." + }, + "task_node": { + "$ref": "#/definitions/coreTaskNode", + "description": "Information about the Task to execute in this node." + }, + "workflow_node": { + "$ref": "#/definitions/coreWorkflowNode", + "description": "Information about the Workflow to execute in this mode." + }, + "branch_node": { + "$ref": "#/definitions/coreBranchNode", + "description": "Information about the branch node to evaluate in this node." + } + }, + "description": "A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch\nnode." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "coreNodeExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "FAILING", + "FAILED", + "ABORTED", + "SKIPPED", + "TIMED_OUT" + ], + "default": "UNDEFINED" + }, + "coreNodeMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A friendly name for the Node" + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + } + }, + "description": "Defines extra information about the Node." + }, + "coreOperand": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive", + "title": "Can be a constant" + }, + "var": { + "type": "string", + "title": "Or one of this node's input variables" + } + }, + "description": "Defines an operand to a comparison expression." + }, + "coreOutputReference": { + "type": "object", + "properties": { + "node_id": { + "type": "string", + "description": "Node id must exist at the graph layer." + }, + "var": { + "type": "string", + "description": "Variable name must refer to an output variable for the node." + } + }, + "description": "A reference to an output produced by a node. The type can be retrieved -and validated- from\nthe underlying interface of the node." + }, + "coreParameter": { + "type": "object", + "properties": { + "var": { + "$ref": "#/definitions/coreVariable", + "description": "+required Variable. Defines the type of the variable backing this parameter." + }, + "default": { + "$ref": "#/definitions/coreLiteral", + "description": "Defines a default value that has to match the variable type defined." + }, + "required": { + "type": "boolean", + "format": "boolean", + "description": "+optional, is this value required to be filled." + } + }, + "description": "A parameter is used as input to a launch plan and has\nthe special ability to have a default value or mark itself as required." + }, + "coreParameterMap": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreParameter" + }, + "description": "Defines a map of parameter names to parameters." + } + }, + "description": "A map of Parameters." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean", + "format": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte." + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpretted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is losely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "$ref": "#/definitions/protobufStruct" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreTaskExecutionIdentifier": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier" + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier" + }, + "retry_attempt": { + "type": "integer", + "format": "int64" + } + }, + "description": "Encapsulation of fields that identify a Flyte task execution entity." + }, + "coreTaskExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "ABORTED", + "FAILED" + ], + "default": "UNDEFINED" + }, + "coreTaskLog": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "name": { + "type": "string" + }, + "message_format": { + "$ref": "#/definitions/TaskLogMessageFormat" + }, + "ttl": { + "type": "string" + } + }, + "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "format": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + } + }, + "title": "Task Metadata" + }, + "coreTaskNode": { + "type": "object", + "properties": { + "reference_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the task." + } + }, + "description": "Refers to the task that the Node is to execute." + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "coreWorkflowExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDING", + "SUCCEEDED", + "FAILING", + "FAILED", + "ABORTED", + "TIMED_OUT" + ], + "default": "UNDEFINED" + }, + "coreWorkflowMetadata": { + "type": "object", + "description": "Metadata for the entire workflow.\nTo be used in the future." + }, + "coreWorkflowNode": { + "type": "object", + "properties": { + "launchplan_ref": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the launch plan." + }, + "sub_workflow_ref": { + "$ref": "#/definitions/coreIdentifier", + "title": "Reference to a subworkflow, that should be defined with the compiler context" + } + }, + "description": "Refers to a the workflow the node is to execute." + }, + "coreWorkflowTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "This is an autogenerated id by the system. The id is globally unique across the system." + }, + "metadata": { + "$ref": "#/definitions/coreWorkflowMetadata", + "description": "Extra metadata about the workflow." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "Defines a strongly typed interface for the Workflow. This can include some optional parameters." + }, + "nodes": { + "type": "array", + "items": { + "$ref": "#/definitions/coreNode" + }, + "description": "A list of nodes. In addition, \"globals\" is a special reserved node id that can be used to consume workflow inputs." + }, + "outputs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreBinding" + }, + "description": "A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or\nspecify literals. All workflow outputs specified in the interface field must be bound in order for the workflow\nto be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to\nbind final outputs.\nMost of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can\njust have an output of some constant (`Output(5)`), but usually, the workflow will be pulling\noutputs from the output of a task." + }, + "failure_node": { + "$ref": "#/definitions/coreNode", + "description": "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.\nThe interface of this node must match the Workflow interface with an additional input named \"error\" of type\npb.lyft.flyte.core.Error." + } + }, + "description": "Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,\ndirected acyclic graph." + }, + "eventNodeExecutionEvent": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "Unique identifier for this node execution" + }, + "producer_id": { + "type": "string", + "title": "the id of the originator (Propeller) of the event" + }, + "phase": { + "$ref": "#/definitions/coreNodeExecutionPhase" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the node." + }, + "input_uri": { + "type": "string" + }, + "output_uri": { + "type": "string", + "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "workflow_node_metadata": { + "$ref": "#/definitions/flyteidleventWorkflowNodeMetadata" + }, + "parent_task_metadata": { + "$ref": "#/definitions/eventParentTaskExecutionMetadata", + "description": "Specifies which task (if any) launched this node." + } + } + }, + "eventParentTaskExecutionMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier" + } + } + }, + "eventTaskExecutionEvent": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "ID of the task. In combination with the retryAttempt this will indicate\nthe task execution uniquely for a given parent node execution." + }, + "parent_node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "A task execution is always kicked off by a node execution, the event consumer\nwill use the parent_id to relate the task to it's parent node execution" + }, + "retry_attempt": { + "type": "integer", + "format": "int64", + "title": "retry attempt number for this task, ie., 2 for the second attempt" + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "title": "Phase associated with the event" + }, + "producer_id": { + "type": "string", + "title": "id of the process that sent this event, mainly for trace debugging" + }, + "logs": { + "type": "array", + "items": { + "$ref": "#/definitions/coreTaskLog" + }, + "title": "log information for the task execution" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the task." + }, + "input_uri": { + "type": "string", + "description": "URI of the input file, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "output_uri": { + "type": "string", + "description": "URI to the output of the execution, it will be in a format that encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "custom_info": { + "$ref": "#/definitions/protobufStruct", + "description": "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system." + }, + "phase_version": { + "type": "integer", + "format": "int64", + "description": "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)\nthat should be recorded regardless of the lack of phase change.\nThe version field should be incremented when metadata changes across the duration of an individual phase." + } + }, + "description": "Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob." + }, + "eventWorkflowExecutionEvent": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "title": "Workflow execution id" + }, + "producer_id": { + "type": "string", + "title": "the id of the originator (Propeller) of the event" + }, + "phase": { + "$ref": "#/definitions/coreWorkflowExecutionPhase" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the workflow." + }, + "output_uri": { + "type": "string", + "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + } + } + }, + "flyteidladminNodeExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "Uniquely identifies an individual node execution." + }, + "input_uri": { + "type": "string", + "description": "Path to remote data store where input blob is stored." + }, + "closure": { + "$ref": "#/definitions/adminNodeExecutionClosure", + "description": "Computed results associated with this node execution." + } + }, + "description": "Encapsulates all details for a single node execution entity.\nA node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow execution.\nThe same task can be called repeatedly in a single workflow but each node is unique." + }, + "flyteidladminTaskExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "description": "Unique identifier for the task execution." + }, + "input_uri": { + "type": "string", + "description": "Path to remote data store where input blob is stored." + }, + "closure": { + "$ref": "#/definitions/adminTaskExecutionClosure", + "description": "Task execution details and results." + }, + "is_parent": { + "type": "boolean", + "format": "boolean", + "description": "Whether this task spawned nodes." + } + }, + "description": "Encapsulates all details for a single task execution entity.\nA task execution represents an instantiated task, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes." + }, + "flyteidladminWorkflowNodeMetadata": { + "type": "object", + "properties": { + "executionId": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "title": "Metadata for a WorkflowNode" + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "flyteidleventWorkflowNodeMetadata": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "title": "For Workflow Nodes we need to send information about the workflow that's launched" + }, + "protobufListValue": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Repeated field of dynamically typed values." + } + }, + "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "protobufStruct": { + "type": "object", + "properties": { + "fields": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/protobufValue" + }, + "description": "Unordered map of dynamically typed values." + } + }, + "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." + }, + "protobufValue": { + "type": "object", + "properties": { + "null_value": { + "$ref": "#/definitions/protobufNullValue", + "description": "Represents a null value." + }, + "number_value": { + "type": "number", + "format": "double", + "description": "Represents a double value." + }, + "string_value": { + "type": "string", + "description": "Represents a string value." + }, + "bool_value": { + "type": "boolean", + "format": "boolean", + "description": "Represents a boolean value." + }, + "struct_value": { + "$ref": "#/definitions/protobufStruct", + "description": "Represents a structured value." + }, + "list_value": { + "$ref": "#/definitions/protobufListValue", + "description": "Represents a repeated `Value`." + } + }, + "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." + } + } +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore new file mode 100644 index 0000000000..daf913b1b3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore new file mode 100644 index 0000000000..c5fa491b4c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION new file mode 100644 index 0000000000..6cecc1a68f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.6-SNAPSHOT \ No newline at end of file diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml new file mode 100644 index 0000000000..f5cb2ce9a5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md new file mode 100644 index 0000000000..090dac29c0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md @@ -0,0 +1,222 @@ +# Go API client for flyteadmin + +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +## Overview +This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. + +- API version: version not set +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.GoClientCodegen + +## Installation +Put the package under your project folder and add the following in import: +```golang +import "./flyteadmin" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminServiceApi* | [**CreateExecution**](docs/AdminServiceApi.md#createexecution) | **Post** /api/v1/executions | +*AdminServiceApi* | [**CreateLaunchPlan**](docs/AdminServiceApi.md#createlaunchplan) | **Post** /api/v1/launch_plans | +*AdminServiceApi* | [**CreateNodeEvent**](docs/AdminServiceApi.md#createnodeevent) | **Post** /api/v1/events/nodes | +*AdminServiceApi* | [**CreateTask**](docs/AdminServiceApi.md#createtask) | **Post** /api/v1/tasks | +*AdminServiceApi* | [**CreateTaskEvent**](docs/AdminServiceApi.md#createtaskevent) | **Post** /api/v1/events/tasks | +*AdminServiceApi* | [**CreateWorkflow**](docs/AdminServiceApi.md#createworkflow) | **Post** /api/v1/workflows | +*AdminServiceApi* | [**CreateWorkflowEvent**](docs/AdminServiceApi.md#createworkflowevent) | **Post** /api/v1/events/workflows | +*AdminServiceApi* | [**GetExecution**](docs/AdminServiceApi.md#getexecution) | **Get** /api/v1/executions/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**GetExecutionData**](docs/AdminServiceApi.md#getexecutiondata) | **Get** /api/v1/data/executions/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**GetLaunchPlan**](docs/AdminServiceApi.md#getlaunchplan) | **Get** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | +*AdminServiceApi* | [**GetNodeExecution**](docs/AdminServiceApi.md#getnodeexecution) | **Get** /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | +*AdminServiceApi* | [**GetNodeExecutionData**](docs/AdminServiceApi.md#getnodeexecutiondata) | **Get** /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | +*AdminServiceApi* | [**GetTask**](docs/AdminServiceApi.md#gettask) | **Get** /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version} | +*AdminServiceApi* | [**GetTaskExecution**](docs/AdminServiceApi.md#gettaskexecution) | **Get** /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | +*AdminServiceApi* | [**GetTaskExecutionData**](docs/AdminServiceApi.md#gettaskexecutiondata) | **Get** /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | +*AdminServiceApi* | [**GetWorkflow**](docs/AdminServiceApi.md#getworkflow) | **Get** /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version} | +*AdminServiceApi* | [**ListExecutions**](docs/AdminServiceApi.md#listexecutions) | **Get** /api/v1/executions/{id.project}/{id.domain} | +*AdminServiceApi* | [**ListLaunchPlanIds**](docs/AdminServiceApi.md#listlaunchplanids) | **Get** /api/v1/launch_plan_ids/{project}/{domain} | +*AdminServiceApi* | [**ListLaunchPlans**](docs/AdminServiceApi.md#listlaunchplans) | **Get** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**ListLaunchPlans2**](docs/AdminServiceApi.md#listlaunchplans2) | **Get** /api/v1/launch_plans/{id.project}/{id.domain} | +*AdminServiceApi* | [**ListNodeExecutions**](docs/AdminServiceApi.md#listnodeexecutions) | **Get** /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name} | +*AdminServiceApi* | [**ListNodeExecutionsForTask**](docs/AdminServiceApi.md#listnodeexecutionsfortask) | **Get** /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} | +*AdminServiceApi* | [**ListProjects**](docs/AdminServiceApi.md#listprojects) | **Get** /api/v1/projects | +*AdminServiceApi* | [**ListTaskExecutions**](docs/AdminServiceApi.md#listtaskexecutions) | **Get** /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} | +*AdminServiceApi* | [**ListTaskIds**](docs/AdminServiceApi.md#listtaskids) | **Get** /api/v1/task_ids/{project}/{domain} | +*AdminServiceApi* | [**ListTasks**](docs/AdminServiceApi.md#listtasks) | **Get** /api/v1/tasks/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**ListTasks2**](docs/AdminServiceApi.md#listtasks2) | **Get** /api/v1/tasks/{id.project}/{id.domain} | +*AdminServiceApi* | [**ListWorkflowIds**](docs/AdminServiceApi.md#listworkflowids) | **Get** /api/v1/workflow_ids/{project}/{domain} | +*AdminServiceApi* | [**ListWorkflows**](docs/AdminServiceApi.md#listworkflows) | **Get** /api/v1/workflows/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**ListWorkflows2**](docs/AdminServiceApi.md#listworkflows2) | **Get** /api/v1/workflows/{id.project}/{id.domain} | +*AdminServiceApi* | [**RegisterProject**](docs/AdminServiceApi.md#registerproject) | **Post** /api/v1/projects | +*AdminServiceApi* | [**RelaunchExecution**](docs/AdminServiceApi.md#relaunchexecution) | **Post** /api/v1/executions/relaunch | +*AdminServiceApi* | [**TerminateExecution**](docs/AdminServiceApi.md#terminateexecution) | **Delete** /api/v1/executions/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**UpdateLaunchPlan**](docs/AdminServiceApi.md#updatelaunchplan) | **Put** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | + + +## Documentation For Models + + - [AdminAnnotations](docs/AdminAnnotations.md) + - [AdminAuth](docs/AdminAuth.md) + - [AdminDomain](docs/AdminDomain.md) + - [AdminEmailNotification](docs/AdminEmailNotification.md) + - [AdminExecution](docs/AdminExecution.md) + - [AdminExecutionClosure](docs/AdminExecutionClosure.md) + - [AdminExecutionCreateRequest](docs/AdminExecutionCreateRequest.md) + - [AdminExecutionCreateResponse](docs/AdminExecutionCreateResponse.md) + - [AdminExecutionList](docs/AdminExecutionList.md) + - [AdminExecutionMetadata](docs/AdminExecutionMetadata.md) + - [AdminExecutionRelaunchRequest](docs/AdminExecutionRelaunchRequest.md) + - [AdminExecutionSpec](docs/AdminExecutionSpec.md) + - [AdminExecutionTerminateRequest](docs/AdminExecutionTerminateRequest.md) + - [AdminExecutionTerminateResponse](docs/AdminExecutionTerminateResponse.md) + - [AdminFixedRate](docs/AdminFixedRate.md) + - [AdminFixedRateUnit](docs/AdminFixedRateUnit.md) + - [AdminLabels](docs/AdminLabels.md) + - [AdminLaunchPlan](docs/AdminLaunchPlan.md) + - [AdminLaunchPlanClosure](docs/AdminLaunchPlanClosure.md) + - [AdminLaunchPlanCreateRequest](docs/AdminLaunchPlanCreateRequest.md) + - [AdminLaunchPlanCreateResponse](docs/AdminLaunchPlanCreateResponse.md) + - [AdminLaunchPlanList](docs/AdminLaunchPlanList.md) + - [AdminLaunchPlanMetadata](docs/AdminLaunchPlanMetadata.md) + - [AdminLaunchPlanSpec](docs/AdminLaunchPlanSpec.md) + - [AdminLaunchPlanState](docs/AdminLaunchPlanState.md) + - [AdminLaunchPlanUpdateRequest](docs/AdminLaunchPlanUpdateRequest.md) + - [AdminLaunchPlanUpdateResponse](docs/AdminLaunchPlanUpdateResponse.md) + - [AdminLiteralMapBlob](docs/AdminLiteralMapBlob.md) + - [AdminNamedEntityIdentifier](docs/AdminNamedEntityIdentifier.md) + - [AdminNamedEntityIdentifierList](docs/AdminNamedEntityIdentifierList.md) + - [AdminNodeExecutionClosure](docs/AdminNodeExecutionClosure.md) + - [AdminNodeExecutionEventRequest](docs/AdminNodeExecutionEventRequest.md) + - [AdminNodeExecutionEventResponse](docs/AdminNodeExecutionEventResponse.md) + - [AdminNodeExecutionGetDataResponse](docs/AdminNodeExecutionGetDataResponse.md) + - [AdminNodeExecutionList](docs/AdminNodeExecutionList.md) + - [AdminNotification](docs/AdminNotification.md) + - [AdminNotificationList](docs/AdminNotificationList.md) + - [AdminPagerDutyNotification](docs/AdminPagerDutyNotification.md) + - [AdminProject](docs/AdminProject.md) + - [AdminProjectRegisterRequest](docs/AdminProjectRegisterRequest.md) + - [AdminProjectRegisterResponse](docs/AdminProjectRegisterResponse.md) + - [AdminProjects](docs/AdminProjects.md) + - [AdminSchedule](docs/AdminSchedule.md) + - [AdminSlackNotification](docs/AdminSlackNotification.md) + - [AdminSort](docs/AdminSort.md) + - [AdminTask](docs/AdminTask.md) + - [AdminTaskClosure](docs/AdminTaskClosure.md) + - [AdminTaskCreateRequest](docs/AdminTaskCreateRequest.md) + - [AdminTaskCreateResponse](docs/AdminTaskCreateResponse.md) + - [AdminTaskExecutionClosure](docs/AdminTaskExecutionClosure.md) + - [AdminTaskExecutionEventRequest](docs/AdminTaskExecutionEventRequest.md) + - [AdminTaskExecutionEventResponse](docs/AdminTaskExecutionEventResponse.md) + - [AdminTaskExecutionGetDataResponse](docs/AdminTaskExecutionGetDataResponse.md) + - [AdminTaskExecutionList](docs/AdminTaskExecutionList.md) + - [AdminTaskList](docs/AdminTaskList.md) + - [AdminTaskSpec](docs/AdminTaskSpec.md) + - [AdminUrlBlob](docs/AdminUrlBlob.md) + - [AdminWorkflow](docs/AdminWorkflow.md) + - [AdminWorkflowClosure](docs/AdminWorkflowClosure.md) + - [AdminWorkflowCreateRequest](docs/AdminWorkflowCreateRequest.md) + - [AdminWorkflowCreateResponse](docs/AdminWorkflowCreateResponse.md) + - [AdminWorkflowExecutionEventRequest](docs/AdminWorkflowExecutionEventRequest.md) + - [AdminWorkflowExecutionEventResponse](docs/AdminWorkflowExecutionEventResponse.md) + - [AdminWorkflowExecutionGetDataResponse](docs/AdminWorkflowExecutionGetDataResponse.md) + - [AdminWorkflowList](docs/AdminWorkflowList.md) + - [AdminWorkflowSpec](docs/AdminWorkflowSpec.md) + - [BlobTypeBlobDimensionality](docs/BlobTypeBlobDimensionality.md) + - [ComparisonExpressionOperator](docs/ComparisonExpressionOperator.md) + - [ConjunctionExpressionLogicalOperator](docs/ConjunctionExpressionLogicalOperator.md) + - [ConnectionSetIdList](docs/ConnectionSetIdList.md) + - [CoreAlias](docs/CoreAlias.md) + - [CoreBinary](docs/CoreBinary.md) + - [CoreBinding](docs/CoreBinding.md) + - [CoreBindingData](docs/CoreBindingData.md) + - [CoreBindingDataCollection](docs/CoreBindingDataCollection.md) + - [CoreBindingDataMap](docs/CoreBindingDataMap.md) + - [CoreBlob](docs/CoreBlob.md) + - [CoreBlobMetadata](docs/CoreBlobMetadata.md) + - [CoreBlobType](docs/CoreBlobType.md) + - [CoreBooleanExpression](docs/CoreBooleanExpression.md) + - [CoreBranchNode](docs/CoreBranchNode.md) + - [CoreComparisonExpression](docs/CoreComparisonExpression.md) + - [CoreCompiledTask](docs/CoreCompiledTask.md) + - [CoreCompiledWorkflow](docs/CoreCompiledWorkflow.md) + - [CoreCompiledWorkflowClosure](docs/CoreCompiledWorkflowClosure.md) + - [CoreConjunctionExpression](docs/CoreConjunctionExpression.md) + - [CoreConnectionSet](docs/CoreConnectionSet.md) + - [CoreContainer](docs/CoreContainer.md) + - [CoreContainerPort](docs/CoreContainerPort.md) + - [CoreError](docs/CoreError.md) + - [CoreExecutionError](docs/CoreExecutionError.md) + - [CoreIdentifier](docs/CoreIdentifier.md) + - [CoreIfBlock](docs/CoreIfBlock.md) + - [CoreIfElseBlock](docs/CoreIfElseBlock.md) + - [CoreKeyValuePair](docs/CoreKeyValuePair.md) + - [CoreLiteral](docs/CoreLiteral.md) + - [CoreLiteralCollection](docs/CoreLiteralCollection.md) + - [CoreLiteralMap](docs/CoreLiteralMap.md) + - [CoreLiteralType](docs/CoreLiteralType.md) + - [CoreNode](docs/CoreNode.md) + - [CoreNodeExecutionIdentifier](docs/CoreNodeExecutionIdentifier.md) + - [CoreNodeExecutionPhase](docs/CoreNodeExecutionPhase.md) + - [CoreNodeMetadata](docs/CoreNodeMetadata.md) + - [CoreOperand](docs/CoreOperand.md) + - [CoreOutputReference](docs/CoreOutputReference.md) + - [CoreParameter](docs/CoreParameter.md) + - [CoreParameterMap](docs/CoreParameterMap.md) + - [CorePrimitive](docs/CorePrimitive.md) + - [CoreResourceType](docs/CoreResourceType.md) + - [CoreResources](docs/CoreResources.md) + - [CoreRetryStrategy](docs/CoreRetryStrategy.md) + - [CoreRuntimeMetadata](docs/CoreRuntimeMetadata.md) + - [CoreScalar](docs/CoreScalar.md) + - [CoreSchemaType](docs/CoreSchemaType.md) + - [CoreSimpleType](docs/CoreSimpleType.md) + - [CoreTaskExecutionIdentifier](docs/CoreTaskExecutionIdentifier.md) + - [CoreTaskExecutionPhase](docs/CoreTaskExecutionPhase.md) + - [CoreTaskLog](docs/CoreTaskLog.md) + - [CoreTaskMetadata](docs/CoreTaskMetadata.md) + - [CoreTaskNode](docs/CoreTaskNode.md) + - [CoreTaskTemplate](docs/CoreTaskTemplate.md) + - [CoreTypedInterface](docs/CoreTypedInterface.md) + - [CoreVariable](docs/CoreVariable.md) + - [CoreVariableMap](docs/CoreVariableMap.md) + - [CoreVoid](docs/CoreVoid.md) + - [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md) + - [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md) + - [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md) + - [CoreWorkflowNode](docs/CoreWorkflowNode.md) + - [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md) + - [EventNodeExecutionEvent](docs/EventNodeExecutionEvent.md) + - [EventParentTaskExecutionMetadata](docs/EventParentTaskExecutionMetadata.md) + - [EventTaskExecutionEvent](docs/EventTaskExecutionEvent.md) + - [EventWorkflowExecutionEvent](docs/EventWorkflowExecutionEvent.md) + - [ExecutionMetadataExecutionMode](docs/ExecutionMetadataExecutionMode.md) + - [FlyteidladminNodeExecution](docs/FlyteidladminNodeExecution.md) + - [FlyteidladminTaskExecution](docs/FlyteidladminTaskExecution.md) + - [FlyteidladminWorkflowNodeMetadata](docs/FlyteidladminWorkflowNodeMetadata.md) + - [FlyteidlcoreSchema](docs/FlyteidlcoreSchema.md) + - [FlyteidleventWorkflowNodeMetadata](docs/FlyteidleventWorkflowNodeMetadata.md) + - [ProtobufListValue](docs/ProtobufListValue.md) + - [ProtobufNullValue](docs/ProtobufNullValue.md) + - [ProtobufStruct](docs/ProtobufStruct.md) + - [ProtobufValue](docs/ProtobufValue.md) + - [ResourcesResourceEntry](docs/ResourcesResourceEntry.md) + - [ResourcesResourceName](docs/ResourcesResourceName.md) + - [RuntimeMetadataRuntimeType](docs/RuntimeMetadataRuntimeType.md) + - [SchemaColumnSchemaColumnType](docs/SchemaColumnSchemaColumnType.md) + - [SchemaTypeSchemaColumn](docs/SchemaTypeSchemaColumn.md) + - [SortDirection](docs/SortDirection.md) + - [TaskLogMessageFormat](docs/TaskLogMessageFormat.md) + + +## Documentation For Authorization + Endpoints do not require authorization. + + +## Author + + + diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml new file mode 100644 index 0000000000..41c3182658 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml @@ -0,0 +1,23374 @@ +--- +swagger: "2.0" +info: + version: "version not set" + title: "flyteidl/service/admin.proto" +schemes: +- "http" +- "https" +consumes: +- "application/json" +produces: +- "application/json" +paths: + ? /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} + : get: + tags: + - "AdminService" + operationId: "ListNodeExecutionsForTask" + parameters: + - name: "task_execution_id.node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdProject" + - name: "task_execution_id.node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdDomain" + - name: "task_execution_id.node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdName" + - name: "task_execution_id.node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "TaskExecutionIdNodeExecutionIdNodeId" + - name: "task_execution_id.task_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdProject" + - name: "task_execution_id.task_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdDomain" + - name: "task_execution_id.task_id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdName" + - name: "task_execution_id.task_id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "TaskExecutionIdTaskIdVersion" + - name: "task_execution_id.retry_attempt" + in: "path" + required: true + type: "integer" + format: "int64" + x-exportParamName: "TaskExecutionIdRetryAttempt" + - name: "task_execution_id.task_id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + x-exportParamName: "TaskExecutionIdTaskIdResourceType" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the, server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNodeExecutionList" + /api/v1/data/executions/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + operationId: "GetExecutionData" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminWorkflowExecutionGetDataResponse" + /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}: + get: + tags: + - "AdminService" + operationId: "GetNodeExecutionData" + parameters: + - name: "id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdExecutionIdProject" + - name: "id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdExecutionIdDomain" + - name: "id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdExecutionIdName" + - name: "id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeId" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNodeExecutionGetDataResponse" + ? /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} + : get: + tags: + - "AdminService" + operationId: "GetTaskExecutionData" + parameters: + - name: "id.node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdProject" + - name: "id.node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdDomain" + - name: "id.node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdName" + - name: "id.node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdNodeId" + - name: "id.task_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdTaskIdProject" + - name: "id.task_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdTaskIdDomain" + - name: "id.task_id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdName" + - name: "id.task_id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdVersion" + - name: "id.retry_attempt" + in: "path" + required: true + type: "integer" + format: "int64" + x-exportParamName: "IdRetryAttempt" + - name: "id.task_id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + x-exportParamName: "IdTaskIdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTaskExecutionGetDataResponse" + /api/v1/events/nodes: + post: + tags: + - "AdminService" + operationId: "CreateNodeEvent" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminNodeExecutionEventRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNodeExecutionEventResponse" + /api/v1/events/tasks: + post: + tags: + - "AdminService" + operationId: "CreateTaskEvent" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminTaskExecutionEventRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTaskExecutionEventResponse" + /api/v1/events/workflows: + post: + tags: + - "AdminService" + operationId: "CreateWorkflowEvent" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminWorkflowExecutionEventRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminWorkflowExecutionEventResponse" + /api/v1/executions: + post: + tags: + - "AdminService" + description: "Create a workflow execution" + operationId: "CreateExecution" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminExecutionCreateResponse" + 400: + description: "Returned for bad request that may have failed validation." + schema: {} + 409: + description: "Returned for a request that references an identical entity\ + \ that has already been registered." + schema: {} + /api/v1/executions/relaunch: + post: + tags: + - "AdminService" + description: "Relaunch a workflow execution" + operationId: "RelaunchExecution" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionRelaunchRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminExecutionCreateResponse" + 400: + description: "Returned for bad request that may have failed validation." + schema: {} + 409: + description: "Returned for a request that references an identical entity\ + \ that has already been registered." + schema: {} + /api/v1/executions/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + operationId: "ListExecutions" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminExecutionList" + /api/v1/executions/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + operationId: "GetExecution" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminExecution" + delete: + tags: + - "AdminService" + operationId: "TerminateExecution" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminExecutionTerminateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminExecutionTerminateResponse" + /api/v1/launch_plan_ids/{project}/{domain}: + get: + tags: + - "AdminService" + operationId: "ListLaunchPlanIds" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers." + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project." + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNamedEntityIdentifierList" + /api/v1/launch_plans: + post: + tags: + - "AdminService" + description: "Create and register a launch plan definition" + operationId: "CreateLaunchPlan" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminLaunchPlanCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminLaunchPlanCreateResponse" + 400: + description: "Returned for bad request that may have failed validation." + schema: {} + 409: + description: "Returned for a request that references an identical entity\ + \ that has already been registered." + schema: {} + /api/v1/launch_plans/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + operationId: "ListLaunchPlans2" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminLaunchPlanList" + /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + operationId: "ListLaunchPlans" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminLaunchPlanList" + /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + operationId: "GetLaunchPlan" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - name: "id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + x-exportParamName: "IdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminLaunchPlan" + put: + tags: + - "AdminService" + operationId: "UpdateLaunchPlan" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminLaunchPlanUpdateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminLaunchPlanUpdateResponse" + /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}: + get: + tags: + - "AdminService" + operationId: "GetNodeExecution" + parameters: + - name: "id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdExecutionIdProject" + - name: "id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdExecutionIdDomain" + - name: "id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdExecutionIdName" + - name: "id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeId" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/flyteidladminNodeExecution" + /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}: + get: + tags: + - "AdminService" + operationId: "ListNodeExecutions" + parameters: + - name: "workflow_execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "WorkflowExecutionIdProject" + - name: "workflow_execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "WorkflowExecutionIdDomain" + - name: "workflow_execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "WorkflowExecutionIdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the, server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNodeExecutionList" + /api/v1/projects: + get: + tags: + - "AdminService" + operationId: "ListProjects" + parameters: [] + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminProjects" + post: + tags: + - "AdminService" + description: "Register a project along with valid domains" + operationId: "RegisterProject" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminProjectRegisterRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminProjectRegisterResponse" + 201: + description: "Returned for successful registration." + schema: {} + 400: + description: "Returned for bad request that may have failed validation." + schema: {} + ? /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} + : get: + tags: + - "AdminService" + operationId: "GetTaskExecution" + parameters: + - name: "id.node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdProject" + - name: "id.node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdDomain" + - name: "id.node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdExecutionIdName" + - name: "id.node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "IdNodeExecutionIdNodeId" + - name: "id.task_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdTaskIdProject" + - name: "id.task_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdTaskIdDomain" + - name: "id.task_id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdName" + - name: "id.task_id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdTaskIdVersion" + - name: "id.retry_attempt" + in: "path" + required: true + type: "integer" + format: "int64" + x-exportParamName: "IdRetryAttempt" + - name: "id.task_id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + x-exportParamName: "IdTaskIdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/flyteidladminTaskExecution" + ? /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} + : get: + tags: + - "AdminService" + operationId: "ListTaskExecutions" + parameters: + - name: "node_execution_id.execution_id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "NodeExecutionIdExecutionIdProject" + - name: "node_execution_id.execution_id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "NodeExecutionIdExecutionIdDomain" + - name: "node_execution_id.execution_id.name" + in: "path" + description: "User or system provided value for the resource." + required: true + type: "string" + x-exportParamName: "NodeExecutionIdExecutionIdName" + - name: "node_execution_id.node_id" + in: "path" + required: true + type: "string" + x-exportParamName: "NodeExecutionIdNodeId" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTaskExecutionList" + /api/v1/task_ids/{project}/{domain}: + get: + tags: + - "AdminService" + operationId: "ListTaskIds" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers." + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project." + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNamedEntityIdentifierList" + /api/v1/tasks: + post: + tags: + - "AdminService" + description: "Create and register a task definition" + operationId: "CreateTask" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminTaskCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTaskCreateResponse" + 400: + description: "Returned for bad request that may have failed validation." + schema: {} + 409: + description: "Returned for a request that references an identical entity\ + \ that has already been registered." + schema: {} + /api/v1/tasks/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + operationId: "ListTasks2" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTaskList" + /api/v1/tasks/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + operationId: "ListTasks" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTaskList" + /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + operationId: "GetTask" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - name: "id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + x-exportParamName: "IdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminTask" + /api/v1/workflow_ids/{project}/{domain}: + get: + tags: + - "AdminService" + operationId: "ListWorkflowIds" + parameters: + - name: "project" + in: "path" + description: "Name of the project that contains the identifiers." + required: true + type: "string" + x-exportParamName: "Project" + - name: "domain" + in: "path" + description: "Name of the domain the identifiers belongs to within the project." + required: true + type: "string" + x-exportParamName: "Domain" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, the server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminNamedEntityIdentifierList" + /api/v1/workflows: + post: + tags: + - "AdminService" + description: "Create and register a workflow definition" + operationId: "CreateWorkflow" + parameters: + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/adminWorkflowCreateRequest" + x-exportParamName: "Body" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminWorkflowCreateResponse" + 400: + description: "Returned for bad request that may have failed validation." + schema: {} + 409: + description: "Returned for a request that references an identical entity\ + \ that has already been registered." + schema: {} + /api/v1/workflows/{id.project}/{id.domain}: + get: + tags: + - "AdminService" + operationId: "ListWorkflows2" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "query" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'." + required: false + type: "string" + x-exportParamName: "IdName" + x-optionalDataType: "String" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminWorkflowList" + /api/v1/workflows/{id.project}/{id.domain}/{id.name}: + get: + tags: + - "AdminService" + operationId: "ListWorkflows" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + required: true + type: "string" + x-exportParamName: "IdName" + - name: "limit" + in: "query" + description: "Indicates the number of resources to be returned." + required: false + type: "integer" + format: "int64" + x-exportParamName: "Limit" + x-optionalDataType: "Int64" + - name: "token" + in: "query" + description: "In the case of multiple pages of results, this server-provided\ + \ token can be used to fetch the next page\nin a query.\n+optional." + required: false + type: "string" + x-exportParamName: "Token" + x-optionalDataType: "String" + - name: "filters" + in: "query" + description: "Indicates a list of filters passed as string.\nMore info on\ + \ constructing filters : \n+optional." + required: false + type: "string" + x-exportParamName: "Filters" + x-optionalDataType: "String" + - name: "sort_by.key" + in: "query" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + required: false + type: "string" + x-exportParamName: "SortByKey" + x-optionalDataType: "String" + - name: "sort_by.direction" + in: "query" + description: "Indicates the direction to apply sort key for response values.\n\ + +optional." + required: false + type: "string" + default: "DESCENDING" + enum: + - "DESCENDING" + - "ASCENDING" + x-exportParamName: "SortByDirection" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminWorkflowList" + /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}: + get: + tags: + - "AdminService" + operationId: "GetWorkflow" + parameters: + - name: "id.project" + in: "path" + description: "Name of the project the resource belongs to." + required: true + type: "string" + x-exportParamName: "IdProject" + - name: "id.domain" + in: "path" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + required: true + type: "string" + x-exportParamName: "IdDomain" + - name: "id.name" + in: "path" + description: "User provided value for the resource." + required: true + type: "string" + x-exportParamName: "IdName" + - name: "id.version" + in: "path" + description: "Specific version of the resource." + required: true + type: "string" + x-exportParamName: "IdVersion" + - name: "id.resource_type" + in: "query" + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + required: false + type: "string" + default: "UNSPECIFIED" + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + x-exportParamName: "IdResourceType" + x-optionalDataType: "String" + responses: + 200: + description: "" + schema: + $ref: "#/definitions/adminWorkflow" +definitions: + BlobTypeBlobDimensionality: + type: "string" + enum: + - "SINGLE" + - "MULTIPART" + default: "SINGLE" + ComparisonExpressionOperator: + type: "string" + title: "Binary Operator for each expression" + description: "- GT: Greater Than\n - LT: Less Than" + enum: + - "EQ" + - "NEQ" + - "GT" + - "GTE" + - "LT" + - "LTE" + default: "EQ" + ConjunctionExpressionLogicalOperator: + type: "string" + title: "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation\ + \ is not important as the operators are Commutative" + description: "- AND: Conjunction" + enum: + - "AND" + - "OR" + default: "AND" + ConnectionSetIdList: + type: "object" + properties: + ids: + type: "array" + items: + type: "string" + example: + ids: + - "ids" + - "ids" + ExecutionMetadataExecutionMode: + type: "string" + description: "The method by which this execution was launched.\n\n - MANUAL: The\ + \ default execution mode, MANUAL implies that an execution was launched by an\ + \ individual.\n - SCHEDULED: A schedule triggered this execution launch.\n -\ + \ SYSTEM: A system process was responsible for launching this execution rather\ + \ an individual.\n - RELAUNCH: This execution was launched with identical inputs\ + \ as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered\ + \ by another execution." + enum: + - "MANUAL" + - "SCHEDULED" + - "SYSTEM" + - "RELAUNCH" + - "CHILD_WORKFLOW" + default: "MANUAL" + ResourcesResourceEntry: + type: "object" + properties: + name: + description: "Resource name." + $ref: "#/definitions/ResourcesResourceName" + value: + type: "string" + title: "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + description: "Encapsulates a resource name and value." + example: + name: {} + value: "value" + ResourcesResourceName: + type: "string" + description: "Known resource names." + enum: + - "UNKNOWN" + - "CPU" + - "GPU" + - "MEMORY" + - "STORAGE" + default: "UNKNOWN" + RuntimeMetadataRuntimeType: + type: "string" + enum: + - "OTHER" + - "FLYTE_SDK" + default: "OTHER" + SchemaColumnSchemaColumnType: + type: "string" + enum: + - "INTEGER" + - "FLOAT" + - "STRING" + - "BOOLEAN" + - "DATETIME" + - "DURATION" + default: "INTEGER" + SchemaTypeSchemaColumn: + type: "object" + properties: + name: + type: "string" + title: "A unique name -within the schema type- for the column" + type: + description: "The column type. This allows a limited set of types currently." + $ref: "#/definitions/SchemaColumnSchemaColumnType" + example: + name: "name" + type: {} + SortDirection: + type: "string" + enum: + - "DESCENDING" + - "ASCENDING" + default: "DESCENDING" + TaskLogMessageFormat: + type: "string" + enum: + - "UNKNOWN" + - "CSV" + - "JSON" + default: "UNKNOWN" + adminAnnotations: + type: "object" + properties: + values: + type: "object" + description: "Map of custom annotations to be applied to the execution resource." + additionalProperties: + type: "string" + description: "Annotation values to be applied to an execution resource.\nIn the\ + \ future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how\ + \ to merge annotations defined at registration and execution time." + example: + values: + key: "values" + adminAuth: + type: "object" + properties: + assumable_iam_role: + type: "string" + kubernetes_service_account: + type: "string" + description: "Defines permissions associated with executions created by this launch\ + \ plan spec." + example: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + adminDomain: + type: "object" + properties: + id: + type: "string" + name: + type: "string" + description: "Display name." + description: "Namespace within a project commonly used to differentiate between\ + \ different service instances.\ne.g. \"production\", \"development\", etc." + example: + name: "name" + id: "id" + adminEmailNotification: + type: "object" + properties: + recipients_email: + type: "array" + description: "The list of email addresses recipients for this notification." + items: + type: "string" + example: + recipients_email: + - "recipients_email" + - "recipients_email" + adminExecution: + type: "object" + properties: + id: + description: "Unique identifier of the workflow execution." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + spec: + description: "User-provided configuration and inputs for launching the execution." + $ref: "#/definitions/adminExecutionSpec" + closure: + description: "Execution results." + $ref: "#/definitions/adminExecutionClosure" + description: "A workflow execution represents an instantiated workflow, including\ + \ all inputs and additional\nmetadata as well as computed results included state,\ + \ outputs, and duration-based attributes.\nUsed as a response object used in\ + \ Get and List execution requests." + example: + id: + domain: "domain" + name: "name" + project: "project" + closure: + outputs: + values: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + uri: "uri" + duration: "duration" + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + computed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + abort_cause: "abort_cause" + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + spec: + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 1 + disable_all: true + inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + annotations: + values: + key: "values" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + labels: + values: + key: "values" + adminExecutionClosure: + type: "object" + properties: + outputs: + description: "A map of outputs in the case of a successful execution." + $ref: "#/definitions/adminLiteralMapBlob" + error: + description: "Error information in the case of a failed execution." + $ref: "#/definitions/coreExecutionError" + abort_cause: + type: "string" + description: "In the case of a user-specified abort, this will pass along\ + \ the user-supplied cause." + computed_inputs: + title: "Inputs computed and passed for execution.\ncomputed_inputs depends\ + \ on inputs in ExecutionSpec, fixed and default inputs in launch plan" + $ref: "#/definitions/coreLiteralMap" + phase: + description: "Most recent recorded phase for the execution." + $ref: "#/definitions/coreWorkflowExecutionPhase" + started_at: + type: "string" + format: "date-time" + description: "Reported ime at which the execution began running." + duration: + type: "string" + description: "The amount of time the execution spent running." + created_at: + type: "string" + format: "date-time" + description: "Reported time at which the execution was created." + updated_at: + type: "string" + format: "date-time" + description: "Reported time at which the execution was last updated." + notifications: + type: "array" + description: "The notification settings to use after merging the CreateExecutionRequest\ + \ and the launch plan\nnotification settings. An execution launched with\ + \ notifications will always prefer that definition\nto notifications defined\ + \ statically in a launch plan." + items: + $ref: "#/definitions/adminNotification" + workflow_id: + description: "Identifies the workflow definition for this execution." + $ref: "#/definitions/coreIdentifier" + title: "Encapsulates the results of the Execution" + example: + outputs: + values: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + uri: "uri" + duration: "duration" + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + computed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + abort_cause: "abort_cause" + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminExecutionCreateRequest: + type: "object" + properties: + project: + type: "string" + description: "Name of the project the execution belongs to." + domain: + type: "string" + description: "Name of the domain the execution belongs to. \nA domain can\ + \ be considered as a subset within a specific project." + name: + type: "string" + title: "User provided value for the resource.\nIf none is provided the system\ + \ will generate a unique string.\n+optional" + spec: + description: "Additional fields necessary to launch the execution." + $ref: "#/definitions/adminExecutionSpec" + description: "Request to launch an execution with the given project, domain and\ + \ optionally name." + adminExecutionCreateResponse: + type: "object" + properties: + id: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + description: "The unique identifier for a successfully created execution.\nIf\ + \ the name was *not* specified in the create request, this identifier will include\ + \ a generated name." + example: + id: + domain: "domain" + name: "name" + project: "project" + adminExecutionList: + type: "object" + properties: + executions: + type: "array" + items: + $ref: "#/definitions/adminExecution" + 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: "Used as a response for request to list executions." + example: + executions: + - id: + domain: "domain" + name: "name" + project: "project" + closure: + outputs: + values: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + uri: "uri" + duration: "duration" + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + computed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + abort_cause: "abort_cause" + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + spec: + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 1 + disable_all: true + inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + annotations: + values: + key: "values" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + labels: + values: + key: "values" + - id: + domain: "domain" + name: "name" + project: "project" + closure: + outputs: + values: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + uri: "uri" + duration: "duration" + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + computed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + updated_at: "2000-01-23T04:56:07.000+00:00" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + abort_cause: "abort_cause" + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + spec: + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 1 + disable_all: true + inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + annotations: + values: + key: "values" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + labels: + values: + key: "values" + token: "token" + adminExecutionMetadata: + type: "object" + properties: + mode: + $ref: "#/definitions/ExecutionMetadataExecutionMode" + principal: + type: "string" + description: "Identifier of the entity that triggered this execution." + nesting: + type: "integer" + format: "int64" + description: "Indicates the \"nestedness\" of this execution.\nIf a user launches\ + \ a workflow execution, the default nesting is 0.\nIf this execution further\ + \ launches a workflow (child workflow), the nesting level is incremented\ + \ by 0 => 1\nGenerally, if workflow at nesting level k launches a workflow\ + \ then the child workflow will have\nnesting = k + 1." + scheduled_at: + type: "string" + format: "date-time" + description: "For scheduled executions, the requested time for execution for\ + \ this specific schedule invocation." + parent_node_execution: + title: "Which subworkflow node launched this execution" + $ref: "#/definitions/coreNodeExecutionIdentifier" + reference_execution: + description: "Optional, a reference workflow execution related to this execution.\n\ + In the case of a relaunch, this references the original workflow execution." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + description: "Represents attributes about an execution which are not required\ + \ to launch the execution but are useful to record.\nThese attributes are assigned\ + \ at launch time and do not change." + example: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 1 + adminExecutionRelaunchRequest: + type: "object" + properties: + id: + description: "Identifier of the workflow execution to relaunch." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + name: + type: "string" + title: "User provided value for the relaunched execution.\nIf none is provided\ + \ the system will generate a unique string.\n+optional" + description: "Request to relaunch the referenced execution." + adminExecutionSpec: + type: "object" + properties: + launch_plan: + title: "Launch plan to be executed" + $ref: "#/definitions/coreIdentifier" + inputs: + title: "Input values to be passed for the execution" + $ref: "#/definitions/coreLiteralMap" + metadata: + title: "Metadata for the execution" + $ref: "#/definitions/adminExecutionMetadata" + notifications: + description: "List of notifications based on Execution status transitions\n\ + When this list is not empty it is used rather than any notifications defined\ + \ in the referenced launch plan.\nWhen this list is empty, the notifications\ + \ defined for the launch plan will be applied." + $ref: "#/definitions/adminNotificationList" + disable_all: + type: "boolean" + format: "boolean" + description: "This should be set to true if all notifications are intended\ + \ to be disabled for this execution." + labels: + description: "Labels to apply to the execution resource." + $ref: "#/definitions/adminLabels" + annotations: + description: "Annotations to apply to the execution resource." + $ref: "#/definitions/adminAnnotations" + description: "An ExecutionSpec encompasses all data used to launch this execution.\ + \ The Spec does not change over the lifetime\nof an execution as it progresses\ + \ across phase changes.." + example: + launch_plan: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + metadata: + mode: {} + principal: "principal" + parent_node_execution: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + reference_execution: + domain: "domain" + name: "name" + project: "project" + scheduled_at: "2000-01-23T04:56:07.000+00:00" + nesting: 1 + disable_all: true + inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + annotations: + values: + key: "values" + notifications: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + labels: + values: + key: "values" + adminExecutionTerminateRequest: + type: "object" + properties: + id: + description: "Uniquely identifies the individual workflow execution to be\ + \ terminated." + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + cause: + type: "string" + description: "Optional reason for aborting." + description: "Request to terminate an in-progress execution. This action is irreversible.\n\ + If an execution is already terminated, this request will simply be a no-op.\n\ + This request will fail if it references a non-existent execution.\nIf the request\ + \ succeeds the phase \"ABORTED\" will be recorded for the termination\nwith\ + \ the optional cause added to the output_result." + adminExecutionTerminateResponse: + type: "object" + adminFixedRate: + type: "object" + properties: + value: + type: "integer" + format: "int64" + unit: + $ref: "#/definitions/adminFixedRateUnit" + description: "Option for schedules run at a certain frequency, e.g. every 2 minutes." + example: + unit: {} + value: 0 + adminFixedRateUnit: + type: "string" + description: "Represents a frequency at which to run a schedule." + enum: + - "MINUTE" + - "HOUR" + - "DAY" + default: "MINUTE" + adminLabels: + type: "object" + properties: + values: + type: "object" + description: "Map of custom labels to be applied to the execution resource." + additionalProperties: + type: "string" + description: "Label values to be applied to an execution resource.\nIn the future\ + \ a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge\ + \ labels defined at registration and execution time." + example: + values: + key: "values" + adminLaunchPlan: + type: "object" + properties: + id: + $ref: "#/definitions/coreIdentifier" + spec: + $ref: "#/definitions/adminLaunchPlanSpec" + closure: + $ref: "#/definitions/adminLaunchPlanClosure" + description: "A LaunchPlan provides the capability to templatize workflow executions.\n\ + Launch plans simplify associating one or more schedules, inputs and notifications\ + \ with your workflows.\nLaunch plans can be shared and used to trigger executions\ + \ with predefined inputs even when a workflow\ndefinition doesn't necessarily\ + \ have a default value for said input." + example: + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + spec: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + labels: + values: + key: "values" + adminLaunchPlanClosure: + type: "object" + properties: + state: + title: "Indicate the Launch plan phase" + $ref: "#/definitions/adminLaunchPlanState" + expected_inputs: + title: "Indicates the set of inputs to execute the Launch plan" + $ref: "#/definitions/coreParameterMap" + expected_outputs: + title: "Indicates the set of outputs from the Launch plan" + $ref: "#/definitions/coreVariableMap" + created_at: + type: "string" + format: "date-time" + description: "Time at which the launch plan was created." + updated_at: + type: "string" + format: "date-time" + description: "Time at which the launch plan was last updated." + description: "Values computed by the flyte platform after launch plan registration.\n\ + These include expected_inputs required to be present in a CreateExecutionRequest\n\ + to launch the reference workflow as well timestamp values associated with the\ + \ launch plan." + example: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + adminLaunchPlanCreateRequest: + type: "object" + properties: + id: + description: "Uniquely identifies a launch plan entity." + $ref: "#/definitions/coreIdentifier" + spec: + description: "User-provided launch plan details, including reference workflow,\ + \ inputs and other metadata." + $ref: "#/definitions/adminLaunchPlanSpec" + description: "Request to register a launch plan. A LaunchPlanSpec may include\ + \ a complete or incomplete set of inputs required\nto launch a workflow execution.\ + \ By default all launch plans are registered in state INACTIVE. If you wish\ + \ to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after\ + \ you have created a launch plan." + adminLaunchPlanCreateResponse: + type: "object" + adminLaunchPlanList: + type: "object" + properties: + launch_plans: + type: "array" + items: + $ref: "#/definitions/adminLaunchPlan" + 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: "Response object for list launch plan requests." + example: + launch_plans: + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + spec: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + labels: + values: + key: "values" + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + expected_outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + updated_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + state: {} + expected_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + spec: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + labels: + values: + key: "values" + token: "token" + adminLaunchPlanMetadata: + type: "object" + properties: + schedule: + title: "Schedule to execute the Launch Plan" + $ref: "#/definitions/adminSchedule" + notifications: + type: "array" + title: "List of notifications based on Execution status transitions" + items: + $ref: "#/definitions/adminNotification" + description: "Additional launch plan attributes included in the LaunchPlanSpec\ + \ not strictly required to launch\nthe reference workflow." + example: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminLaunchPlanSpec: + type: "object" + properties: + workflow_id: + title: "Reference to the Workflow template that the launch plan references" + $ref: "#/definitions/coreIdentifier" + entity_metadata: + title: "Metadata for the Launch Plan" + $ref: "#/definitions/adminLaunchPlanMetadata" + default_inputs: + title: "Input values to be passed for the execution" + $ref: "#/definitions/coreParameterMap" + fixed_inputs: + title: "Fixed, non-overridable inputs for the Launch Plan" + $ref: "#/definitions/coreLiteralMap" + role: + type: "string" + title: "String to indicate the role to use to execute the workflow underneath" + labels: + description: "Custom labels to be applied to the execution resource." + $ref: "#/definitions/adminLabels" + annotations: + description: "Custom annotations to be applied to the execution resource." + $ref: "#/definitions/adminAnnotations" + auth: + description: "Indicates the permission associated with workflow executions\ + \ triggered with this launch plan." + $ref: "#/definitions/adminAuth" + description: "User-provided launch plan definition and configuration values." + example: + workflow_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + fixed_inputs: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + role: "role" + auth: + kubernetes_service_account: "kubernetes_service_account" + assumable_iam_role: "assumable_iam_role" + entity_metadata: + schedule: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + annotations: + values: + key: "values" + default_inputs: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + labels: + values: + key: "values" + adminLaunchPlanState: + type: "string" + description: "By default any launch plan regardless of state can be used to launch\ + \ a workflow execution.\nHowever, at most one version of a launch plan\n(e.g.\ + \ a NamedEntityIdentifier set of shared project, domain and name values) can\ + \ be\nactive at a time in regards to *schedules*. That is, at most one schedule\ + \ in a NamedEntityIdentifier\ngroup will be observed and trigger executions\ + \ at a defined cadence." + enum: + - "INACTIVE" + - "ACTIVE" + default: "INACTIVE" + adminLaunchPlanUpdateRequest: + type: "object" + properties: + id: + description: "Identifier of launch plan for which to change state." + $ref: "#/definitions/coreIdentifier" + state: + description: "Desired state to apply to the launch plan." + $ref: "#/definitions/adminLaunchPlanState" + description: "Request to set the referenced launch plan state to the configured\ + \ value." + adminLaunchPlanUpdateResponse: + type: "object" + description: "Purposefully empty, may be populated in the future." + adminLiteralMapBlob: + type: "object" + properties: + values: + title: "Data in LiteralMap format" + $ref: "#/definitions/coreLiteralMap" + uri: + type: "string" + title: "In the event that the map is too large, we return a uri to the data" + title: "Input/output data can represented by actual values or a link to where\ + \ values are stored" + example: + values: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + uri: "uri" + adminNamedEntityIdentifier: + type: "object" + properties: + project: + type: "string" + description: "Name of the project the resource belongs to." + domain: + type: "string" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + name: + type: "string" + title: "User provided value for the resource.\nThe combination of project\ + \ + domain + name uniquely identifies the resource.\n+optional - in certain\ + \ contexts - like 'List API', 'Launch plans'" + description: "Encapsulation of fields that identifies a Flyte resource.\nA resource\ + \ can internally have multiple versions." + example: + domain: "domain" + name: "name" + project: "project" + adminNamedEntityIdentifierList: + type: "object" + properties: + entities: + type: "array" + description: "A list of identifiers." + items: + $ref: "#/definitions/adminNamedEntityIdentifier" + 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: "Represents a list of Identifiers." + example: + entities: + - domain: "domain" + name: "name" + project: "project" + - domain: "domain" + name: "name" + project: "project" + token: "token" + adminNodeExecutionClosure: + type: "object" + properties: + output_uri: + type: "string" + error: + title: "Error information for the Node" + $ref: "#/definitions/coreExecutionError" + phase: + description: "The last recorded phase for this node execution." + $ref: "#/definitions/coreNodeExecutionPhase" + started_at: + type: "string" + format: "date-time" + description: "Time at which the node execution began running." + duration: + type: "string" + description: "The amount of time the node execution spent running." + created_at: + type: "string" + format: "date-time" + description: "Time at which the node execution was created." + updated_at: + type: "string" + format: "date-time" + description: "Time at which the node execution was last updated." + workflow_node_metadata: + $ref: "#/definitions/flyteidladminWorkflowNodeMetadata" + description: "Container for node execution details and results." + example: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + adminNodeExecutionEventRequest: + type: "object" + properties: + request_id: + type: "string" + title: "Unique ID for this request that can be traced between services" + event: + description: "Details about the event that occurred." + $ref: "#/definitions/eventNodeExecutionEvent" + description: "Request to send a notification that a node execution event has occurred." + adminNodeExecutionEventResponse: + type: "object" + adminNodeExecutionGetDataResponse: + type: "object" + properties: + inputs: + description: "Signed url to fetch a core.LiteralMap of node execution inputs." + $ref: "#/definitions/adminUrlBlob" + outputs: + description: "Signed url to fetch a core.LiteralMap of node execution outputs." + $ref: "#/definitions/adminUrlBlob" + description: "Response structure for NodeExecutionGetDataRequest which contains\ + \ inputs and outputs for a node execution." + example: + outputs: + bytes: "bytes" + url: "url" + inputs: + bytes: "bytes" + url: "url" + adminNodeExecutionList: + type: "object" + properties: + node_executions: + type: "array" + items: + $ref: "#/definitions/flyteidladminNodeExecution" + 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: "Request structure to retrieve a list of node execution entities." + example: + node_executions: + - input_uri: "input_uri" + id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + closure: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + - input_uri: "input_uri" + id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + closure: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + token: "token" + adminNotification: + type: "object" + properties: + phases: + type: "array" + description: "A list of phases to which users can associate the notifications\ + \ to." + items: + $ref: "#/definitions/coreWorkflowExecutionPhase" + email: + title: "option (validate.required) = true;" + $ref: "#/definitions/adminEmailNotification" + pager_duty: + $ref: "#/definitions/adminPagerDutyNotification" + slack: + $ref: "#/definitions/adminSlackNotification" + description: "Represents a structure for notifications based on execution status.\n\ + The Notification content is configured within Admin. Future iterations could\n\ + expose configuring notifications with custom content." + example: + pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminNotificationList: + type: "object" + properties: + notifications: + type: "array" + items: + $ref: "#/definitions/adminNotification" + example: + notifications: + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + - pager_duty: + recipients_email: + - "recipients_email" + - "recipients_email" + slack: + recipients_email: + - "recipients_email" + - "recipients_email" + phases: + - {} + - {} + email: + recipients_email: + - "recipients_email" + - "recipients_email" + adminPagerDutyNotification: + type: "object" + properties: + recipients_email: + type: "array" + description: "Currently, PagerDuty notifications leverage email to trigger\ + \ a notification." + items: + type: "string" + example: + recipients_email: + - "recipients_email" + - "recipients_email" + adminProject: + type: "object" + properties: + id: + type: "string" + name: + type: "string" + description: "Display name." + domains: + type: "array" + items: + $ref: "#/definitions/adminDomain" + description: "Top-level namespace used to classify different entities like workflows\ + \ and executions." + example: + name: "name" + domains: + - name: "name" + id: "id" + - name: "name" + id: "id" + id: "id" + adminProjectRegisterRequest: + type: "object" + properties: + project: + $ref: "#/definitions/adminProject" + adminProjectRegisterResponse: + type: "object" + adminProjects: + type: "object" + properties: + projects: + type: "array" + items: + $ref: "#/definitions/adminProject" + example: + projects: + - name: "name" + domains: + - name: "name" + id: "id" + - name: "name" + id: "id" + id: "id" + - name: "name" + domains: + - name: "name" + id: "id" + - name: "name" + id: "id" + id: "id" + adminSchedule: + type: "object" + properties: + cron_expression: + type: "string" + title: "Uses AWS syntax: \"Minutes Hours Day-of-month Month Day-of-week Year\"\ + \ne.g. for a schedule that runs every 15 minutes: \"0/15 * * * ? *\"" + rate: + $ref: "#/definitions/adminFixedRate" + kickoff_time_input_arg: + type: "string" + description: "Name of the input variable that the kickoff time will be supplied\ + \ to when the workflow is kicked off." + description: "Defines complete set of information required to trigger an execution\ + \ on a schedule." + example: + kickoff_time_input_arg: "kickoff_time_input_arg" + cron_expression: "cron_expression" + rate: + unit: {} + value: 0 + adminSlackNotification: + type: "object" + properties: + recipients_email: + type: "array" + description: "Currently, Slack notifications leverage email to trigger a notification." + items: + type: "string" + example: + recipients_email: + - "recipients_email" + - "recipients_email" + adminSort: + type: "object" + properties: + key: + type: "string" + description: "Indicates an attribute to sort the response values.\nTODO(katrogan):\ + \ Add string validation here. This should never be empty." + direction: + title: "Indicates the direction to apply sort key for response values.\n+optional" + $ref: "#/definitions/SortDirection" + description: "Species sort ordering in a list request." + adminTask: + type: "object" + properties: + id: + description: "id represents the unique identifier of the task." + $ref: "#/definitions/coreIdentifier" + closure: + description: "closure encapsulates all the fields that maps to a compiled\ + \ version of the task." + $ref: "#/definitions/adminTaskClosure" + description: "Flyte workflows are composed of many ordered tasks. That is small,\ + \ reusable, self-contained logical blocks\narranged to process workflow inputs\ + \ and produce a deterministic set of outputs.\nTasks can come in many varieties\ + \ tuned for specialized behavior." + example: + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + adminTaskClosure: + type: "object" + properties: + compiled_task: + description: "Represents the compiled representation of the task from the\ + \ specification provided." + $ref: "#/definitions/coreCompiledTask" + created_at: + type: "string" + format: "date-time" + description: "Time at which the task was created." + description: "Compute task attributes which include values derived from the TaskSpec,\ + \ as well as plugin-specific data\nand task metadata." + example: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + adminTaskCreateRequest: + type: "object" + properties: + id: + description: "id represents the unique identifier of the task." + $ref: "#/definitions/coreIdentifier" + spec: + description: "Represents the specification for task." + $ref: "#/definitions/adminTaskSpec" + description: "Represents a request structure to create a revision of a task." + adminTaskCreateResponse: + type: "object" + description: "Represents a response structure if task creation succeeds." + adminTaskExecutionClosure: + type: "object" + properties: + output_uri: + type: "string" + description: "Path to remote data store where output blob is stored if the\ + \ execution succeeded (and produced outputs)." + error: + description: "Error information for the task execution. Populated if the execution\ + \ failed." + $ref: "#/definitions/coreExecutionError" + phase: + description: "The last recorded phase for this task execution." + $ref: "#/definitions/coreTaskExecutionPhase" + logs: + type: "array" + description: "Detailed log information output by the task execution." + items: + $ref: "#/definitions/coreTaskLog" + started_at: + type: "string" + format: "date-time" + description: "Time at which the task execution began running." + duration: + type: "string" + description: "The amount of time the task execution spent running." + created_at: + type: "string" + format: "date-time" + description: "Time at which the task execution was created." + updated_at: + type: "string" + format: "date-time" + description: "Time at which the task execution was last updated." + custom_info: + description: "Custom data specific to the task plugin." + $ref: "#/definitions/protobufStruct" + description: "Container for task execution details and results." + example: + phase: {} + duration: "duration" + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + adminTaskExecutionEventRequest: + type: "object" + properties: + request_id: + type: "string" + title: "Unique ID for this request that can be traced between services" + event: + description: "Details about the event that occurred." + $ref: "#/definitions/eventTaskExecutionEvent" + description: "Request to send a notification that a task execution event has occurred." + adminTaskExecutionEventResponse: + type: "object" + adminTaskExecutionGetDataResponse: + type: "object" + properties: + inputs: + description: "Signed url to fetch a core.LiteralMap of task execution inputs." + $ref: "#/definitions/adminUrlBlob" + outputs: + description: "Signed url to fetch a core.LiteralMap of task execution outputs." + $ref: "#/definitions/adminUrlBlob" + description: "Response structure for TaskExecutionGetDataRequest which contains\ + \ inputs and outputs for a task execution." + example: + outputs: + bytes: "bytes" + url: "url" + inputs: + bytes: "bytes" + url: "url" + adminTaskExecutionList: + type: "object" + properties: + task_executions: + type: "array" + items: + $ref: "#/definitions/flyteidladminTaskExecution" + 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: "Response structure for a query to list of task execution entities." + example: + task_executions: + - input_uri: "input_uri" + id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + is_parent: true + closure: + phase: {} + duration: "duration" + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - input_uri: "input_uri" + id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + is_parent: true + closure: + phase: {} + duration: "duration" + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + token: "token" + adminTaskList: + type: "object" + properties: + tasks: + type: "array" + description: "A list of tasks returned based on the request." + items: + $ref: "#/definitions/adminTask" + 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: "Represents a list of tasks returned from the admin." + example: + tasks: + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + created_at: "2000-01-23T04:56:07.000+00:00" + compiled_task: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + token: "token" + adminTaskSpec: + type: "object" + properties: + template: + description: "Template of the task that encapsulates all the metadata of the\ + \ task." + $ref: "#/definitions/coreTaskTemplate" + description: "Represents a structure that encapsulates the user-configured specification\ + \ of the task." + adminUrlBlob: + type: "object" + properties: + url: + type: "string" + description: "Actual url value." + bytes: + type: "string" + format: "int64" + description: "Represents the size of the file accessible at the above url." + description: "Represents a string url and associated metadata used throughout\ + \ the platform." + example: + bytes: "bytes" + url: "url" + adminWorkflow: + type: "object" + properties: + id: + description: "id represents the unique identifier of the workflow." + $ref: "#/definitions/coreIdentifier" + closure: + description: "closure encapsulates all the fields that maps to a compiled\ + \ version of the workflow." + $ref: "#/definitions/adminWorkflowClosure" + description: "Represents the workflow structure stored in the Admin\nA workflow\ + \ is created by ordering tasks and associating outputs to inputs\nin order to\ + \ produce a directed-acyclic execution graph." + example: + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + adminWorkflowClosure: + type: "object" + properties: + compiled_workflow: + description: "Represents the compiled representation of the workflow from\ + \ the specification provided." + $ref: "#/definitions/coreCompiledWorkflowClosure" + created_at: + type: "string" + format: "date-time" + description: "Time at which the workflow was created." + description: "A container holding the compiled workflow produced from the WorkflowSpec\ + \ and additional metadata." + example: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + adminWorkflowCreateRequest: + type: "object" + properties: + id: + description: "id represents the unique identifier of the workflow." + $ref: "#/definitions/coreIdentifier" + spec: + description: "Represents the specification for workflow." + $ref: "#/definitions/adminWorkflowSpec" + description: "Represents a request structure to create a revision of a workflow." + adminWorkflowCreateResponse: + type: "object" + adminWorkflowExecutionEventRequest: + type: "object" + properties: + request_id: + type: "string" + title: "Unique ID for this request that can be traced between services" + event: + description: "Details about the event that occurred." + $ref: "#/definitions/eventWorkflowExecutionEvent" + description: "Request to send a notification that a workflow execution event has\ + \ occurred." + adminWorkflowExecutionEventResponse: + type: "object" + adminWorkflowExecutionGetDataResponse: + type: "object" + properties: + outputs: + description: "Signed url to fetch a core.LiteralMap of execution outputs." + $ref: "#/definitions/adminUrlBlob" + description: "Response structure for WorkflowExecutionGetDataRequest which contains\ + \ inputs and outputs for an execution." + example: + outputs: + bytes: "bytes" + url: "url" + adminWorkflowList: + type: "object" + properties: + workflows: + type: "array" + description: "A list of workflows returned based on the request." + items: + $ref: "#/definitions/adminWorkflow" + 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: "Represents a list of workflows returned from the admin." + example: + workflows: + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + - id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + closure: + compiled_workflow: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + created_at: "2000-01-23T04:56:07.000+00:00" + token: "token" + adminWorkflowSpec: + type: "object" + properties: + template: + description: "Template of the task that encapsulates all the metadata of the\ + \ workflow." + $ref: "#/definitions/coreWorkflowTemplate" + description: "Represents a structure that encapsulates the specification of the\ + \ workflow." + coreAlias: + type: "object" + properties: + var: + type: "string" + description: "Must match one of the output variable names on a node." + alias: + type: "string" + description: "A workflow-level unique alias that downstream nodes can refer\ + \ to in their input." + description: "Links a variable to an alias." + example: + var: "var" + alias: "alias" + coreBinary: + type: "object" + properties: + value: + type: "string" + format: "byte" + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + tag: + type: "string" + description: "A simple byte array with a tag to help different parts of the system\ + \ communicate about what is in the byte array.\nIt's strongly advisable that\ + \ consumers of this type define a unique tag and validate the tag before parsing\ + \ the data." + example: + tag: "tag" + value: "value" + coreBinding: + type: "object" + properties: + var: + type: "string" + description: "Variable name must match an input/output variable of the node." + binding: + description: "Data to use to bind this variable." + $ref: "#/definitions/coreBindingData" + description: "An input/output binding of a variable to either static value or\ + \ a node output." + example: + var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + coreBindingData: + type: "object" + properties: + scalar: + description: "A simple scalar value." + $ref: "#/definitions/coreScalar" + collection: + description: "A collection of binding data. This allows nesting of binding\ + \ data to any number\nof levels." + $ref: "#/definitions/coreBindingDataCollection" + promise: + description: "References an output promised by another node." + $ref: "#/definitions/coreOutputReference" + map: + description: "A map of bindings. The key is always a string." + $ref: "#/definitions/coreBindingDataMap" + description: "Specifies either a simple value or a reference to another output." + example: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + coreBindingDataCollection: + type: "object" + properties: + bindings: + type: "array" + items: + $ref: "#/definitions/coreBindingData" + description: "A collection of BindingData items." + example: + bindings: + - null + - null + coreBindingDataMap: + type: "object" + properties: + bindings: + type: "object" + additionalProperties: + $ref: "#/definitions/coreBindingData" + description: "A map of BindingData items." + example: + bindings: {} + coreBlob: + type: "object" + properties: + metadata: + $ref: "#/definitions/coreBlobMetadata" + uri: + type: "string" + description: "Refers to an offloaded set of files. It encapsulates the type of\ + \ the store and a unique uri for where the data is.\nThere are no restrictions\ + \ on how the uri is formatted since it will depend on how to interact with the\ + \ store." + example: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + coreBlobMetadata: + type: "object" + properties: + type: + $ref: "#/definitions/coreBlobType" + example: + type: + dimensionality: {} + format: "format" + coreBlobType: + type: "object" + properties: + format: + type: "string" + title: "Format can be a free form string understood by SDK/UI etc like\ncsv,\ + \ parquet etc" + dimensionality: + $ref: "#/definitions/BlobTypeBlobDimensionality" + title: "Defines type behavior for blob objects" + example: + dimensionality: {} + format: "format" + coreBooleanExpression: + type: "object" + properties: + conjunction: + $ref: "#/definitions/coreConjunctionExpression" + comparison: + $ref: "#/definitions/coreComparisonExpression" + description: "Defines a boolean expression tree. It can be a simple or a conjunction\ + \ expression.\nMultiple expressions can be combined using a conjunction or a\ + \ disjunction to result in a final boolean result." + example: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + coreBranchNode: + type: "object" + properties: + if_else: + title: "+required" + $ref: "#/definitions/coreIfElseBlock" + description: "BranchNode is a special node that alter the flow of the workflow\ + \ graph. It allows the control flow to branch at\nruntime based on a series\ + \ of conditions that get evaluated on various parameters (e.g. inputs, primtives)." + example: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + coreComparisonExpression: + type: "object" + properties: + operator: + $ref: "#/definitions/ComparisonExpressionOperator" + left_value: + $ref: "#/definitions/coreOperand" + right_value: + $ref: "#/definitions/coreOperand" + description: "Defines a 2-level tree where the root is a comparison operator and\ + \ Operands are primitives or known variables.\nEach expression results in a\ + \ boolean result." + example: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + coreCompiledTask: + type: "object" + properties: + template: + title: "Completely contained TaskTemplate" + $ref: "#/definitions/coreTaskTemplate" + title: "Output of the Compilation step. This object represent one Task. We store\ + \ more metadata at this layer" + example: + template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + coreCompiledWorkflow: + type: "object" + properties: + template: + title: "Completely contained Workflow Template" + $ref: "#/definitions/coreWorkflowTemplate" + connections: + description: "For internal use only! This field is used by the system and\ + \ must not be filled in. Any values set will be ignored." + $ref: "#/definitions/coreConnectionSet" + title: "Output of the compilation Step. This object represents one workflow. We\ + \ store more metadata at this layer" + example: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + coreCompiledWorkflowClosure: + type: "object" + properties: + primary: + title: "+required" + $ref: "#/definitions/coreCompiledWorkflow" + sub_workflows: + type: "array" + title: "Guaranteed that there will only exist one and only one workflow with\ + \ a given id, i.e., every sub workflow has a\nunique identifier. Also every\ + \ enclosed subworkflow is used either by a primary workflow or by a subworkflow\n\ + as an inlined workflow\n+optional" + items: + $ref: "#/definitions/coreCompiledWorkflow" + tasks: + type: "array" + title: "Guaranteed that there will only exist one and only one task with a\ + \ given id, i.e., every task has a unique id\n+required (atleast 1)" + items: + $ref: "#/definitions/coreCompiledTask" + description: "A Compiled Workflow Closure contains all the information required\ + \ to start a new execution, or to visualize a workflow\nand its details. The\ + \ CompiledWorkflowClosure should always contain a primary workflow, that is\ + \ the main workflow that\nwill being the execution. All subworkflows are denormalized.\ + \ WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." + example: + sub_workflows: + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + - template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + tasks: + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + - template: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + primary: + template: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + connections: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + coreConjunctionExpression: + type: "object" + properties: + operator: + $ref: "#/definitions/ConjunctionExpressionLogicalOperator" + left_expression: + $ref: "#/definitions/coreBooleanExpression" + right_expression: + $ref: "#/definitions/coreBooleanExpression" + description: "Defines a conjunction expression of two boolean expressions." + example: + operator: {} + coreConnectionSet: + type: "object" + properties: + downstream: + type: "object" + title: "A list of all the node ids that are downstream from a given node id" + additionalProperties: + $ref: "#/definitions/ConnectionSetIdList" + upstream: + type: "object" + title: "A list of all the node ids, that are upstream of this node id" + additionalProperties: + $ref: "#/definitions/ConnectionSetIdList" + title: "Adjacency list for the workflow. This is created as part of the compilation\ + \ process. Every process after the compilation\nstep uses this created ConnectionSet" + example: + upstream: + key: + ids: + - "ids" + - "ids" + downstream: + key: + ids: + - "ids" + - "ids" + coreContainer: + type: "object" + properties: + image: + type: "string" + title: "Container image url. Eg: docker/redis:latest" + command: + type: "array" + description: "Command to be executed, if not provided, the default entrypoint\ + \ in the container image will be used." + items: + type: "string" + args: + type: "array" + description: "These will default to Flyte given paths. If provided, the system\ + \ will not append known paths. If the task still\nneeds flyte's inputs and\ + \ outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes\ + \ sense and the\nsystem will populate these before executing the container." + items: + type: "string" + resources: + description: "Container resources requirement as specified by the container\ + \ engine." + $ref: "#/definitions/coreResources" + env: + type: "array" + description: "Environment variables will be set as the container is starting\ + \ up." + items: + $ref: "#/definitions/coreKeyValuePair" + config: + type: "array" + description: "Allows extra configs to be available for the container.\nTODO:\ + \ elaborate on how configs will become available." + items: + $ref: "#/definitions/coreKeyValuePair" + ports: + type: "array" + title: "Ports to open in the container. This feature is not supported by all\ + \ execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)" + items: + $ref: "#/definitions/coreContainerPort" + example: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + coreContainerPort: + type: "object" + properties: + container_port: + type: "integer" + format: "int64" + description: "Number of port to expose on the pod's IP address.\nThis must\ + \ be a valid port number, 0 < x < 65536." + description: "Defines port properties for a container." + example: + container_port: 6 + coreError: + type: "object" + properties: + failed_node_id: + type: "string" + description: "The node id that threw the error." + message: + type: "string" + description: "Error message thrown." + description: "Represents an error thrown from a node." + example: + message: "message" + failed_node_id: "failed_node_id" + coreExecutionError: + type: "object" + properties: + code: + type: "string" + title: "Error code indicates a grouping of a type of error.\nMore Info: " + message: + type: "string" + description: "Detailed description of the error - including stack trace." + error_uri: + type: "string" + title: "Full error contents accessible via a URI" + description: "Represents the error message from the execution." + example: + code: "code" + message: "message" + error_uri: "error_uri" + coreIdentifier: + type: "object" + properties: + resource_type: + description: "Identifies the specific type of resource that this identifer\ + \ corresponds to." + $ref: "#/definitions/coreResourceType" + project: + type: "string" + description: "Name of the project the resource belongs to." + domain: + type: "string" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + name: + type: "string" + description: "User provided value for the resource." + version: + type: "string" + description: "Specific version of the resource." + description: "Encapsulation of fields that uniquely identifies a Flyte resource." + example: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreIfBlock: + type: "object" + properties: + condition: + $ref: "#/definitions/coreBooleanExpression" + then_node: + $ref: "#/definitions/coreNode" + description: "Defines a condition and the execution unit that should be executed\ + \ if the condition is satisfied." + example: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + coreIfElseBlock: + type: "object" + properties: + case: + description: "+required. First condition to evaluate." + $ref: "#/definitions/coreIfBlock" + other: + type: "array" + description: "+optional. Additional branches to evaluate." + items: + $ref: "#/definitions/coreIfBlock" + else_node: + description: "The node to execute in case none of the branches were taken." + $ref: "#/definitions/coreNode" + error: + description: "An error to throw in case none of the branches were taken." + $ref: "#/definitions/coreError" + description: "Defines a series of if/else blocks. The first branch whose condition\ + \ evaluates to true is the one to execute.\nIf no conditions were satisfied,\ + \ the else_node or the error will execute." + example: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + coreKeyValuePair: + type: "object" + properties: + key: + type: "string" + description: "required." + value: + type: "string" + description: "+optional." + description: "A generic key value pair." + example: + value: "value" + key: "key" + coreLiteral: + type: "object" + properties: + scalar: + description: "A simple value." + $ref: "#/definitions/coreScalar" + collection: + description: "A collection of literals to allow nesting." + $ref: "#/definitions/coreLiteralCollection" + map: + description: "A map of strings to literals." + $ref: "#/definitions/coreLiteralMap" + description: "A simple value. This supports any level of nesting (e.g. array of\ + \ array of array of Blobs) as well as simple primitives." + example: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + coreLiteralCollection: + type: "object" + properties: + literals: + type: "array" + items: + $ref: "#/definitions/coreLiteral" + description: "A collection of literals. This is a workaround since oneofs in proto\ + \ messages cannot contain a repeated field." + example: + literals: + - null + - null + coreLiteralMap: + type: "object" + properties: + literals: + type: "object" + additionalProperties: + $ref: "#/definitions/coreLiteral" + description: "A map of literals. This is a workaround since oneofs in proto messages\ + \ cannot contain a repeated field." + example: + literals: + key: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + coreLiteralType: + type: "object" + properties: + simple: + description: "A simple type that can be compared one-to-one with another." + $ref: "#/definitions/coreSimpleType" + schema: + description: "A complex type that requires matching of inner fields." + $ref: "#/definitions/coreSchemaType" + collection_type: + description: "Defines the type of the value of a collection. Only homogeneous\ + \ collections are allowed." + $ref: "#/definitions/coreLiteralType" + map_value_type: + description: "Defines the type of the value of a map type. The type of the\ + \ key is always a string." + $ref: "#/definitions/coreLiteralType" + blob: + description: "A blob might have specialized implementation details depending\ + \ on associated metadata." + $ref: "#/definitions/coreBlobType" + metadata: + description: "This field contains type metadata that is descriptive of the\ + \ type, but is NOT considered in type-checking. This might be used by\n\ + consumers to identify special behavior or display extended information for\ + \ the type." + $ref: "#/definitions/protobufStruct" + description: "Defines a strong type to allow type checking between interfaces." + example: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + coreNode: + type: "object" + properties: + id: + type: "string" + description: "A workflow-level unique identifier that identifies this node\ + \ in the workflow. \"inputs\" and \"outputs\" are reserved\nnode ids that\ + \ cannot be used by other nodes." + metadata: + description: "Extra metadata about the node." + $ref: "#/definitions/coreNodeMetadata" + inputs: + type: "array" + description: "Specifies how to bind the underlying interface's inputs. All\ + \ required inputs specified in the underlying interface\nmust be fullfilled." + items: + $ref: "#/definitions/coreBinding" + upstream_node_ids: + type: "array" + description: "+optional Specifies execution depdendency for this node ensuring\ + \ it will only get scheduled to run after all its\nupstream nodes have completed.\ + \ This node will have an implicit depdendency on any node that appears in\ + \ inputs\nfield." + items: + type: "string" + output_aliases: + type: "array" + description: "+optional. A node can define aliases for a subset of its outputs.\ + \ This is particularly useful if different nodes\nneed to conform to the\ + \ same interface (e.g. all branches in a branch node). Downstream nodes\ + \ must refer to this\nnodes outputs using the alias if one's specified." + items: + $ref: "#/definitions/coreAlias" + task_node: + description: "Information about the Task to execute in this node." + $ref: "#/definitions/coreTaskNode" + workflow_node: + description: "Information about the Workflow to execute in this mode." + $ref: "#/definitions/coreWorkflowNode" + branch_node: + description: "Information about the branch node to evaluate in this node." + $ref: "#/definitions/coreBranchNode" + description: "A Workflow graph Node. One unit of execution in the graph. Each\ + \ node can be linked to a Task, a Workflow or a branch\nnode." + example: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreNodeExecutionIdentifier: + type: "object" + properties: + node_id: + type: "string" + execution_id: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + description: "Encapsulation of fields that identify a Flyte node execution entity." + example: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + coreNodeExecutionPhase: + type: "string" + enum: + - "UNDEFINED" + - "QUEUED" + - "RUNNING" + - "SUCCEEDED" + - "FAILING" + - "FAILED" + - "ABORTED" + - "SKIPPED" + - "TIMED_OUT" + default: "UNDEFINED" + coreNodeMetadata: + type: "object" + properties: + name: + type: "string" + title: "A friendly name for the Node" + timeout: + type: "string" + description: "The overall timeout of a task." + retries: + description: "Number of retries per task." + $ref: "#/definitions/coreRetryStrategy" + description: "Defines extra information about the Node." + example: + retries: + retries: 0 + name: "name" + timeout: "timeout" + coreOperand: + type: "object" + properties: + primitive: + title: "Can be a constant" + $ref: "#/definitions/corePrimitive" + var: + type: "string" + title: "Or one of this node's input variables" + description: "Defines an operand to a comparison expression." + example: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + coreOutputReference: + type: "object" + properties: + node_id: + type: "string" + description: "Node id must exist at the graph layer." + var: + type: "string" + description: "Variable name must refer to an output variable for the node." + description: "A reference to an output produced by a node. The type can be retrieved\ + \ -and validated- from\nthe underlying interface of the node." + example: + var: "var" + node_id: "node_id" + coreParameter: + type: "object" + properties: + var: + description: "+required Variable. Defines the type of the variable backing\ + \ this parameter." + $ref: "#/definitions/coreVariable" + default: + description: "Defines a default value that has to match the variable type\ + \ defined." + $ref: "#/definitions/coreLiteral" + required: + type: "boolean" + format: "boolean" + description: "+optional, is this value required to be filled." + description: "A parameter is used as input to a launch plan and has\nthe special\ + \ ability to have a default value or mark itself as required." + example: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + coreParameterMap: + type: "object" + properties: + parameters: + type: "object" + description: "Defines a map of parameter names to parameters." + additionalProperties: + $ref: "#/definitions/coreParameter" + description: "A map of Parameters." + example: + parameters: + key: + default: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + collection: + literals: + - null + - null + var: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + required: true + corePrimitive: + type: "object" + properties: + integer: + type: "string" + format: "int64" + float_value: + type: "number" + format: "double" + string_value: + type: "string" + boolean: + type: "boolean" + format: "boolean" + datetime: + type: "string" + format: "date-time" + duration: + type: "string" + title: "Primitive Types" + example: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + coreResourceType: + type: "string" + description: "Indicates a resource type within Flyte." + enum: + - "UNSPECIFIED" + - "TASK" + - "WORKFLOW" + - "LAUNCH_PLAN" + default: "UNSPECIFIED" + coreResources: + type: "object" + properties: + requests: + type: "array" + description: "The desired set of resources requested. ResourceNames must be\ + \ unique within the list." + items: + $ref: "#/definitions/ResourcesResourceEntry" + limits: + type: "array" + description: "Defines a set of bounds (e.g. min/max) within which the task\ + \ can reliably run. ResourceNames must be unique\nwithin the list." + items: + $ref: "#/definitions/ResourcesResourceEntry" + description: "A customizable interface to convey resources requested for a container.\ + \ This can be interpretted differently for different\ncontainer engines." + example: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + coreRetryStrategy: + type: "object" + properties: + retries: + type: "integer" + format: "int64" + description: "Number of retries. Retries will be consumed when the job fails\ + \ with a recoverable error.\nThe number of retries must be less than or\ + \ equals to 10." + description: "Retry strategy associated with an executable unit." + example: + retries: 0 + coreRuntimeMetadata: + type: "object" + properties: + type: + description: "Type of runtime." + $ref: "#/definitions/RuntimeMetadataRuntimeType" + version: + type: "string" + description: "Version of the runtime. All versions should be backward compatible.\ + \ However, certain cases call for version\nchecks to ensure tighter validation\ + \ or setting expectations." + flavor: + type: "string" + description: "+optional It can be used to provide extra information about\ + \ the runtime (e.g. python, golang... etc.)." + description: "Runtime information. This is losely defined to allow for extensibility." + example: + flavor: "flavor" + type: {} + version: "version" + coreScalar: + type: "object" + properties: + primitive: + $ref: "#/definitions/corePrimitive" + blob: + $ref: "#/definitions/coreBlob" + binary: + $ref: "#/definitions/coreBinary" + schema: + $ref: "#/definitions/flyteidlcoreSchema" + none_type: + $ref: "#/definitions/coreVoid" + error: + $ref: "#/definitions/coreError" + generic: + $ref: "#/definitions/protobufStruct" + example: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + coreSchemaType: + type: "object" + properties: + columns: + type: "array" + description: "A list of ordered columns this schema comprises of." + items: + $ref: "#/definitions/SchemaTypeSchemaColumn" + description: "Defines schema columns and types to strongly type-validate schemas\ + \ interoperability." + example: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + coreSimpleType: + type: "string" + description: "Define a set of simple types." + enum: + - "NONE" + - "INTEGER" + - "FLOAT" + - "STRING" + - "BOOLEAN" + - "DATETIME" + - "DURATION" + - "BINARY" + - "ERROR" + - "STRUCT" + default: "NONE" + coreTaskExecutionIdentifier: + type: "object" + properties: + task_id: + $ref: "#/definitions/coreIdentifier" + node_execution_id: + $ref: "#/definitions/coreNodeExecutionIdentifier" + retry_attempt: + type: "integer" + format: "int64" + description: "Encapsulation of fields that identify a Flyte task execution entity." + example: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + coreTaskExecutionPhase: + type: "string" + enum: + - "UNDEFINED" + - "QUEUED" + - "RUNNING" + - "SUCCEEDED" + - "ABORTED" + - "FAILED" + default: "UNDEFINED" + coreTaskLog: + type: "object" + properties: + uri: + type: "string" + name: + type: "string" + message_format: + $ref: "#/definitions/TaskLogMessageFormat" + ttl: + type: "string" + title: "Log information for the task that is specific to a log sink\nWhen our\ + \ log story is flushed out, we may have more metadata here like log link expiry" + example: + message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + coreTaskMetadata: + type: "object" + properties: + discoverable: + type: "boolean" + format: "boolean" + description: "Indicates whether the system should attempt to lookup this task's\ + \ output to avoid duplication of work." + runtime: + description: "Runtime information about the task." + $ref: "#/definitions/coreRuntimeMetadata" + timeout: + type: "string" + description: "The overall timeout of a task including user-triggered retries." + retries: + description: "Number of retries per task." + $ref: "#/definitions/coreRetryStrategy" + discovery_version: + type: "string" + description: "Indicates a logical version to apply to this task for the purpose\ + \ of discovery." + deprecated_error_message: + type: "string" + description: "If set, this indicates that this task is deprecated. This will\ + \ enable owners of tasks to notify consumers\nof the ending of support for\ + \ a given task." + title: "Task Metadata" + example: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + coreTaskNode: + type: "object" + properties: + reference_id: + description: "A globally unique identifier for the task." + $ref: "#/definitions/coreIdentifier" + description: "Refers to the task that the Node is to execute." + example: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreTaskTemplate: + type: "object" + properties: + id: + description: "Auto generated taskId by the system. Task Id uniquely identifies\ + \ this task globally." + $ref: "#/definitions/coreIdentifier" + type: + type: "string" + description: "A predefined yet extensible Task type identifier. This can be\ + \ used to customize any of the components. If no\nextensions are provided\ + \ in the system, Flyte will resolve the this task to its TaskCategory and\ + \ default the\nimplementation registered for the TaskCategory." + metadata: + description: "Extra metadata about the task." + $ref: "#/definitions/coreTaskMetadata" + interface: + description: "A strongly typed interface for the task. This enables others\ + \ to use this task within a workflow and gauarantees\ncompile-time validation\ + \ of the workflow to avoid costly runtime failures." + $ref: "#/definitions/coreTypedInterface" + custom: + description: "Custom data about the task. This is extensible to allow various\ + \ plugins in the system." + $ref: "#/definitions/protobufStruct" + container: + $ref: "#/definitions/coreContainer" + description: "A Task structure that uniquely identifies a task in the system\n\ + Tasks are registered as a first step in the system." + example: + container: + args: + - "args" + - "args" + image: "image" + resources: + requests: + - name: {} + value: "value" + - name: {} + value: "value" + limits: + - name: {} + value: "value" + - name: {} + value: "value" + env: + - value: "value" + key: "key" + - value: "value" + key: "key" + ports: + - container_port: 6 + - container_port: 6 + config: + - value: "value" + key: "key" + - value: "value" + key: "key" + command: + - "command" + - "command" + metadata: + retries: + retries: 0 + discoverable: true + runtime: + flavor: "flavor" + type: {} + version: "version" + discovery_version: "discovery_version" + deprecated_error_message: "deprecated_error_message" + timeout: "timeout" + custom: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + type: "type" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + coreTypedInterface: + type: "object" + properties: + inputs: + $ref: "#/definitions/coreVariableMap" + outputs: + $ref: "#/definitions/coreVariableMap" + description: "Defines strongly typed inputs and outputs." + example: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + coreVariable: + type: "object" + properties: + type: + description: "Variable literal type." + $ref: "#/definitions/coreLiteralType" + description: + type: "string" + title: "+optional string describing input variable" + description: "Defines a strongly typed variable." + example: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + coreVariableMap: + type: "object" + properties: + variables: + type: "object" + description: "Defines a map of variable names to variables." + additionalProperties: + $ref: "#/definitions/coreVariable" + title: "A map of Variables" + example: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + coreVoid: + type: "object" + description: "Used to denote a nil/null/None assignment to a scalar value. The\ + \ underlying LiteralType for Void is intentionally\nundefined since it can be\ + \ assigned to a scalar of any LiteralType." + coreWorkflowExecutionIdentifier: + type: "object" + properties: + project: + type: "string" + description: "Name of the project the resource belongs to." + domain: + type: "string" + description: "Name of the domain the resource belongs to.\nA domain can be\ + \ considered as a subset within a specific project." + name: + type: "string" + description: "User or system provided value for the resource." + title: "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + example: + domain: "domain" + name: "name" + project: "project" + coreWorkflowExecutionPhase: + type: "string" + enum: + - "UNDEFINED" + - "QUEUED" + - "RUNNING" + - "SUCCEEDING" + - "SUCCEEDED" + - "FAILING" + - "FAILED" + - "ABORTED" + - "TIMED_OUT" + default: "UNDEFINED" + coreWorkflowMetadata: + type: "object" + description: "Metadata for the entire workflow.\nTo be used in the future." + coreWorkflowNode: + type: "object" + properties: + launchplan_ref: + description: "A globally unique identifier for the launch plan." + $ref: "#/definitions/coreIdentifier" + sub_workflow_ref: + title: "Reference to a subworkflow, that should be defined with the compiler\ + \ context" + $ref: "#/definitions/coreIdentifier" + description: "Refers to a the workflow the node is to execute." + example: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + coreWorkflowTemplate: + type: "object" + properties: + id: + description: "This is an autogenerated id by the system. The id is globally\ + \ unique across the system." + $ref: "#/definitions/coreIdentifier" + metadata: + description: "Extra metadata about the workflow." + $ref: "#/definitions/coreWorkflowMetadata" + interface: + description: "Defines a strongly typed interface for the Workflow. This can\ + \ include some optional parameters." + $ref: "#/definitions/coreTypedInterface" + nodes: + type: "array" + description: "A list of nodes. In addition, \"globals\" is a special reserved\ + \ node id that can be used to consume workflow inputs." + items: + $ref: "#/definitions/coreNode" + outputs: + type: "array" + description: "A list of output bindings that specify how to construct workflow\ + \ outputs. Bindings can pull node outputs or\nspecify literals. All workflow\ + \ outputs specified in the interface field must be bound in order for the\ + \ workflow\nto be validated. A workflow has an implicit dependency on all\ + \ of its nodes to execute successfully in order to\nbind final outputs.\n\ + Most of these outputs will be Binding's with a BindingData of type OutputReference.\ + \ That is, your workflow can\njust have an output of some constant (`Output(5)`),\ + \ but usually, the workflow will be pulling\noutputs from the output of\ + \ a task." + items: + $ref: "#/definitions/coreBinding" + failure_node: + description: "+optional A catch-all node. This node is executed whenever the\ + \ execution engine determines the workflow has failed.\nThe interface of\ + \ this node must match the Workflow interface with an additional input named\ + \ \"error\" of type\npb.lyft.flyte.core.Error." + $ref: "#/definitions/coreNode" + description: "Flyte Workflow Structure that encapsulates task, branch and subworkflow\ + \ nodes to form a statically analyzable,\ndirected acyclic graph." + example: + outputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + metadata: {} + failure_node: + branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + nodes: + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + - branch_node: + if_else: + other: + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + - condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + error: + message: "message" + failed_node_id: "failed_node_id" + case: + condition: + conjunction: + operator: {} + comparison: + left_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + right_value: + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + var: "var" + operator: {} + metadata: + retries: + retries: 0 + name: "name" + timeout: "timeout" + upstream_node_ids: + - "upstream_node_ids" + - "upstream_node_ids" + inputs: + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + - var: "var" + binding: + scalar: + schema: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + blob: + metadata: + type: + dimensionality: {} + format: "format" + uri: "uri" + none_type: {} + primitive: + duration: "duration" + datetime: "2000-01-23T04:56:07.000+00:00" + string_value: "string_value" + boolean: true + float_value: 0.8008281904610115 + integer: "integer" + binary: + tag: "tag" + value: "value" + error: + message: "message" + failed_node_id: "failed_node_id" + generic: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + promise: + var: "var" + node_id: "node_id" + collection: + bindings: + - null + - null + map: + bindings: {} + output_aliases: + - var: "var" + alias: "alias" + - var: "var" + alias: "alias" + task_node: + reference_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: "id" + workflow_node: + launchplan_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + sub_workflow_ref: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + interface: + outputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + inputs: + variables: + key: + description: "description" + type: + schema: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + metadata: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + blob: + dimensionality: {} + format: "format" + simple: {} + eventNodeExecutionEvent: + type: "object" + properties: + id: + title: "Unique identifier for this node execution" + $ref: "#/definitions/coreNodeExecutionIdentifier" + producer_id: + type: "string" + title: "the id of the originator (Propeller) of the event" + phase: + $ref: "#/definitions/coreNodeExecutionPhase" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the original event occurred,\ + \ it is generated\nby the executor of the node." + input_uri: + type: "string" + output_uri: + type: "string" + description: "URL to the output of the execution, it encodes all the information\n\ + including Cloud source provider. ie., s3://..." + error: + title: "Error information for the execution" + $ref: "#/definitions/coreExecutionError" + workflow_node_metadata: + $ref: "#/definitions/flyteidleventWorkflowNodeMetadata" + parent_task_metadata: + description: "Specifies which task (if any) launched this node." + $ref: "#/definitions/eventParentTaskExecutionMetadata" + eventParentTaskExecutionMetadata: + type: "object" + properties: + id: + $ref: "#/definitions/coreTaskExecutionIdentifier" + eventTaskExecutionEvent: + type: "object" + properties: + task_id: + description: "ID of the task. In combination with the retryAttempt this will\ + \ indicate\nthe task execution uniquely for a given parent node execution." + $ref: "#/definitions/coreIdentifier" + parent_node_execution_id: + title: "A task execution is always kicked off by a node execution, the event\ + \ consumer\nwill use the parent_id to relate the task to it's parent node\ + \ execution" + $ref: "#/definitions/coreNodeExecutionIdentifier" + retry_attempt: + type: "integer" + format: "int64" + title: "retry attempt number for this task, ie., 2 for the second attempt" + phase: + title: "Phase associated with the event" + $ref: "#/definitions/coreTaskExecutionPhase" + producer_id: + type: "string" + title: "id of the process that sent this event, mainly for trace debugging" + logs: + type: "array" + title: "log information for the task execution" + items: + $ref: "#/definitions/coreTaskLog" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the original event occurred,\ + \ it is generated\nby the executor of the task." + input_uri: + type: "string" + description: "URI of the input file, it encodes all the information\nincluding\ + \ Cloud source provider. ie., s3://..." + output_uri: + type: "string" + description: "URI to the output of the execution, it will be in a format that\ + \ encodes all the information\nincluding Cloud source provider. ie., s3://..." + error: + title: "Error information for the execution" + $ref: "#/definitions/coreExecutionError" + custom_info: + description: "Custom data that the task plugin sends back. This is extensible\ + \ to allow various plugins in the system." + $ref: "#/definitions/protobufStruct" + phase_version: + type: "integer" + format: "int64" + description: "Some phases, like RUNNING, can send multiple events with changed\ + \ metadata (new logs, additional custom_info, etc)\nthat should be recorded\ + \ regardless of the lack of phase change.\nThe version field should be incremented\ + \ when metadata changes across the duration of an individual phase." + description: "Plugin specific execution event information. For tasks like Python,\ + \ Hive, Spark, DynamicJob." + eventWorkflowExecutionEvent: + type: "object" + properties: + execution_id: + title: "Workflow execution id" + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + producer_id: + type: "string" + title: "the id of the originator (Propeller) of the event" + phase: + $ref: "#/definitions/coreWorkflowExecutionPhase" + occurred_at: + type: "string" + format: "date-time" + description: "This timestamp represents when the original event occurred,\ + \ it is generated\nby the executor of the workflow." + output_uri: + type: "string" + description: "URL to the output of the execution, it encodes all the information\n\ + including Cloud source provider. ie., s3://..." + error: + title: "Error information for the execution" + $ref: "#/definitions/coreExecutionError" + flyteidladminNodeExecution: + type: "object" + properties: + id: + description: "Uniquely identifies an individual node execution." + $ref: "#/definitions/coreNodeExecutionIdentifier" + input_uri: + type: "string" + description: "Path to remote data store where input blob is stored." + closure: + description: "Computed results associated with this node execution." + $ref: "#/definitions/adminNodeExecutionClosure" + description: "Encapsulates all details for a single node execution entity.\nA\ + \ node represents a component in the overall workflow graph. A node launch a\ + \ task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow\ + \ execution.\nThe same task can be called repeatedly in a single workflow but\ + \ each node is unique." + example: + input_uri: "input_uri" + id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + closure: + phase: {} + duration: "duration" + workflow_node_metadata: + executionId: + domain: "domain" + name: "name" + project: "project" + updated_at: "2000-01-23T04:56:07.000+00:00" + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + flyteidladminTaskExecution: + type: "object" + properties: + id: + description: "Unique identifier for the task execution." + $ref: "#/definitions/coreTaskExecutionIdentifier" + input_uri: + type: "string" + description: "Path to remote data store where input blob is stored." + closure: + description: "Task execution details and results." + $ref: "#/definitions/adminTaskExecutionClosure" + is_parent: + type: "boolean" + format: "boolean" + description: "Whether this task spawned nodes." + description: "Encapsulates all details for a single task execution entity.\nA\ + \ task execution represents an instantiated task, including all inputs and additional\n\ + metadata as well as computed results included state, outputs, and duration-based\ + \ attributes." + example: + input_uri: "input_uri" + id: + task_id: + domain: "domain" + resource_type: {} + name: "name" + project: "project" + version: "version" + node_execution_id: + execution_id: + domain: "domain" + name: "name" + project: "project" + node_id: "node_id" + retry_attempt: 0 + is_parent: true + closure: + phase: {} + duration: "duration" + updated_at: "2000-01-23T04:56:07.000+00:00" + custom_info: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + output_uri: "output_uri" + started_at: "2000-01-23T04:56:07.000+00:00" + created_at: "2000-01-23T04:56:07.000+00:00" + error: + code: "code" + message: "message" + error_uri: "error_uri" + logs: + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + - message_format: {} + name: "name" + uri: "uri" + ttl: "ttl" + flyteidladminWorkflowNodeMetadata: + type: "object" + properties: + executionId: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + title: "Metadata for a WorkflowNode" + example: + executionId: + domain: "domain" + name: "name" + project: "project" + flyteidlcoreSchema: + type: "object" + properties: + uri: + type: "string" + type: + $ref: "#/definitions/coreSchemaType" + description: "A strongly typed schema that defines the interface of data retrieved\ + \ from the underlying storage medium." + example: + type: + columns: + - name: "name" + type: {} + - name: "name" + type: {} + uri: "uri" + flyteidleventWorkflowNodeMetadata: + type: "object" + properties: + execution_id: + $ref: "#/definitions/coreWorkflowExecutionIdentifier" + title: "For Workflow Nodes we need to send information about the workflow that's\ + \ launched" + protobufListValue: + type: "object" + properties: + values: + type: "array" + description: "Repeated field of dynamically typed values." + items: + $ref: "#/definitions/protobufValue" + description: "`ListValue` is a wrapper around a repeated field of values.\n\n\ + The JSON representation for `ListValue` is JSON array." + example: + values: + - null + - null + protobufNullValue: + type: "string" + description: "`NullValue` is a singleton enumeration to represent the null value\ + \ for the\n`Value` type union.\n\n The JSON representation for `NullValue` is\ + \ JSON `null`.\n\n - NULL_VALUE: Null value." + enum: + - "NULL_VALUE" + default: "NULL_VALUE" + protobufStruct: + type: "object" + properties: + fields: + type: "object" + description: "Unordered map of dynamically typed values." + additionalProperties: + $ref: "#/definitions/protobufValue" + description: "`Struct` represents a structured data value, consisting of fields\n\ + which map to dynamically typed values. In some languages, `Struct`\nmight be\ + \ supported by a native representation. For example, in\nscripting languages\ + \ like JS a struct is represented as an\nobject. The details of that representation\ + \ are described together\nwith the proto support for the language.\n\nThe JSON\ + \ representation for `Struct` is JSON object." + example: + fields: + key: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true + protobufValue: + type: "object" + properties: + null_value: + description: "Represents a null value." + $ref: "#/definitions/protobufNullValue" + number_value: + type: "number" + format: "double" + description: "Represents a double value." + string_value: + type: "string" + description: "Represents a string value." + bool_value: + type: "boolean" + format: "boolean" + description: "Represents a boolean value." + struct_value: + description: "Represents a structured value." + $ref: "#/definitions/protobufStruct" + list_value: + description: "Represents a repeated `Value`." + $ref: "#/definitions/protobufListValue" + description: "`Value` represents a dynamically typed value which can be either\n\ + null, a number, a string, a boolean, a recursive struct value, or a\nlist of\ + \ values. A producer of value is expected to set one of that\nvariants, absence\ + \ of any variant indicates an error.\n\nThe JSON representation for `Value`\ + \ is JSON value." + example: + list_value: + values: + - null + - null + number_value: 6.027456183070403 + string_value: "string_value" + null_value: {} + bool_value: true diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go new file mode 100644 index 0000000000..8cc1bfc6eb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go @@ -0,0 +1,3752 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type AdminServiceApiService service + +/* +AdminServiceApiService +Create a workflow execution + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminExecutionCreateResponse +*/ +func (a *AdminServiceApiService) CreateExecution(ctx context.Context, body AdminExecutionCreateRequest) (AdminExecutionCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 409 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService +Create and register a launch plan definition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminLaunchPlanCreateResponse +*/ +func (a *AdminServiceApiService) CreateLaunchPlan(ctx context.Context, body AdminLaunchPlanCreateRequest) (AdminLaunchPlanCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 409 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminNodeExecutionEventResponse +*/ +func (a *AdminServiceApiService) CreateNodeEvent(ctx context.Context, body AdminNodeExecutionEventRequest) (AdminNodeExecutionEventResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionEventResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/events/nodes" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionEventResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService +Create and register a task definition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminTaskCreateResponse +*/ +func (a *AdminServiceApiService) CreateTask(ctx context.Context, body AdminTaskCreateRequest) (AdminTaskCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 409 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminTaskExecutionEventResponse +*/ +func (a *AdminServiceApiService) CreateTaskEvent(ctx context.Context, body AdminTaskExecutionEventRequest) (AdminTaskExecutionEventResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskExecutionEventResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/events/tasks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskExecutionEventResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService +Create and register a workflow definition + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminWorkflowCreateResponse +*/ +func (a *AdminServiceApiService) CreateWorkflow(ctx context.Context, body AdminWorkflowCreateRequest) (AdminWorkflowCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 409 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminWorkflowExecutionEventResponse +*/ +func (a *AdminServiceApiService) CreateWorkflowEvent(ctx context.Context, body AdminWorkflowExecutionEventRequest) (AdminWorkflowExecutionEventResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowExecutionEventResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/events/workflows" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowExecutionEventResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + +@return AdminExecution +*/ +func (a *AdminServiceApiService) GetExecution(ctx context.Context, idProject string, idDomain string, idName string) (AdminExecution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + +@return AdminWorkflowExecutionGetDataResponse +*/ +func (a *AdminServiceApiService) GetExecutionData(ctx context.Context, idProject string, idDomain string, idName string) (AdminWorkflowExecutionGetDataResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowExecutionGetDataResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowExecutionGetDataResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param optional nil or *GetLaunchPlanOpts - Optional Parameters: + * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifer corresponds to. + +@return AdminLaunchPlan +*/ + +type GetLaunchPlanOpts struct { + IdResourceType optional.String +} + +func (a *AdminServiceApiService) GetLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetLaunchPlanOpts) (AdminLaunchPlan, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlan + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { + localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlan + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idExecutionIdProject Name of the project the resource belongs to. + * @param idExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idExecutionIdName User or system provided value for the resource. + * @param idNodeId + +@return FlyteidladminNodeExecution +*/ +func (a *AdminServiceApiService) GetNodeExecution(ctx context.Context, idExecutionIdProject string, idExecutionIdDomain string, idExecutionIdName string, idNodeId string) (FlyteidladminNodeExecution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FlyteidladminNodeExecution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.project"+"}", fmt.Sprintf("%v", idExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.domain"+"}", fmt.Sprintf("%v", idExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.name"+"}", fmt.Sprintf("%v", idExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_id"+"}", fmt.Sprintf("%v", idNodeId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v FlyteidladminNodeExecution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idExecutionIdProject Name of the project the resource belongs to. + * @param idExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idExecutionIdName User or system provided value for the resource. + * @param idNodeId + +@return AdminNodeExecutionGetDataResponse +*/ +func (a *AdminServiceApiService) GetNodeExecutionData(ctx context.Context, idExecutionIdProject string, idExecutionIdDomain string, idExecutionIdName string, idNodeId string) (AdminNodeExecutionGetDataResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionGetDataResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.project"+"}", fmt.Sprintf("%v", idExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.domain"+"}", fmt.Sprintf("%v", idExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.name"+"}", fmt.Sprintf("%v", idExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_id"+"}", fmt.Sprintf("%v", idNodeId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionGetDataResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param optional nil or *GetTaskOpts - Optional Parameters: + * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifer corresponds to. + +@return AdminTask +*/ + +type GetTaskOpts struct { + IdResourceType optional.String +} + +func (a *AdminServiceApiService) GetTask(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetTaskOpts) (AdminTask, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTask + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { + localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTask + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param idNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idNodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param idNodeExecutionIdNodeId + * @param idTaskIdProject Name of the project the resource belongs to. + * @param idTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idTaskIdName User provided value for the resource. + * @param idTaskIdVersion Specific version of the resource. + * @param idRetryAttempt + * @param optional nil or *GetTaskExecutionOpts - Optional Parameters: + * @param "IdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifer corresponds to. + +@return FlyteidladminTaskExecution +*/ + +type GetTaskExecutionOpts struct { + IdTaskIdResourceType optional.String +} + +func (a *AdminServiceApiService) GetTaskExecution(ctx context.Context, idNodeExecutionIdExecutionIdProject string, idNodeExecutionIdExecutionIdDomain string, idNodeExecutionIdExecutionIdName string, idNodeExecutionIdNodeId string, idTaskIdProject string, idTaskIdDomain string, idTaskIdName string, idTaskIdVersion string, idRetryAttempt int64, localVarOptionals *GetTaskExecutionOpts) (FlyteidladminTaskExecution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue FlyteidladminTaskExecution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", idNodeExecutionIdNodeId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.project"+"}", fmt.Sprintf("%v", idTaskIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.domain"+"}", fmt.Sprintf("%v", idTaskIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.name"+"}", fmt.Sprintf("%v", idTaskIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.version"+"}", fmt.Sprintf("%v", idTaskIdVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.retry_attempt"+"}", fmt.Sprintf("%v", idRetryAttempt), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdTaskIdResourceType.IsSet() { + localVarQueryParams.Add("id.task_id.resource_type", parameterToString(localVarOptionals.IdTaskIdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v FlyteidladminTaskExecution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param idNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idNodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param idNodeExecutionIdNodeId + * @param idTaskIdProject Name of the project the resource belongs to. + * @param idTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idTaskIdName User provided value for the resource. + * @param idTaskIdVersion Specific version of the resource. + * @param idRetryAttempt + * @param optional nil or *GetTaskExecutionDataOpts - Optional Parameters: + * @param "IdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifer corresponds to. + +@return AdminTaskExecutionGetDataResponse +*/ + +type GetTaskExecutionDataOpts struct { + IdTaskIdResourceType optional.String +} + +func (a *AdminServiceApiService) GetTaskExecutionData(ctx context.Context, idNodeExecutionIdExecutionIdProject string, idNodeExecutionIdExecutionIdDomain string, idNodeExecutionIdExecutionIdName string, idNodeExecutionIdNodeId string, idTaskIdProject string, idTaskIdDomain string, idTaskIdName string, idTaskIdVersion string, idRetryAttempt int64, localVarOptionals *GetTaskExecutionDataOpts) (AdminTaskExecutionGetDataResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskExecutionGetDataResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", idNodeExecutionIdNodeId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.project"+"}", fmt.Sprintf("%v", idTaskIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.domain"+"}", fmt.Sprintf("%v", idTaskIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.name"+"}", fmt.Sprintf("%v", idTaskIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.version"+"}", fmt.Sprintf("%v", idTaskIdVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.retry_attempt"+"}", fmt.Sprintf("%v", idRetryAttempt), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdTaskIdResourceType.IsSet() { + localVarQueryParams.Add("id.task_id.resource_type", parameterToString(localVarOptionals.IdTaskIdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskExecutionGetDataResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param optional nil or *GetWorkflowOpts - Optional Parameters: + * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifer corresponds to. + +@return AdminWorkflow +*/ + +type GetWorkflowOpts struct { + IdResourceType optional.String +} + +func (a *AdminServiceApiService) GetWorkflow(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetWorkflowOpts) (AdminWorkflow, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflow + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { + localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflow + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListExecutionsOpts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminExecutionList +*/ + +type ListExecutionsOpts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListExecutions(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListExecutionsOpts) (AdminExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. + * @param domain Name of the domain the identifiers belongs to within the project. + * @param optional nil or *ListLaunchPlanIdsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminNamedEntityIdentifierList +*/ + +type ListLaunchPlanIdsOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListLaunchPlanIds(ctx context.Context, project string, domain string, localVarOptionals *ListLaunchPlanIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityIdentifierList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plan_ids/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityIdentifierList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListLaunchPlansOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminLaunchPlanList +*/ + +type ListLaunchPlansOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListLaunchPlans(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListLaunchPlansOpts) (AdminLaunchPlanList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListLaunchPlans2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminLaunchPlanList +*/ + +type ListLaunchPlans2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListLaunchPlans2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListLaunchPlans2Opts) (AdminLaunchPlanList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param workflowExecutionIdProject Name of the project the resource belongs to. + * @param workflowExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param workflowExecutionIdName User or system provided value for the resource. + * @param optional nil or *ListNodeExecutionsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminNodeExecutionList +*/ + +type ListNodeExecutionsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListNodeExecutions(ctx context.Context, workflowExecutionIdProject string, workflowExecutionIdDomain string, workflowExecutionIdName string, localVarOptionals *ListNodeExecutionsOpts) (AdminNodeExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.project"+"}", fmt.Sprintf("%v", workflowExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.domain"+"}", fmt.Sprintf("%v", workflowExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.name"+"}", fmt.Sprintf("%v", workflowExecutionIdName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param taskExecutionIdNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param taskExecutionIdNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param taskExecutionIdNodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param taskExecutionIdNodeExecutionIdNodeId + * @param taskExecutionIdTaskIdProject Name of the project the resource belongs to. + * @param taskExecutionIdTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param taskExecutionIdTaskIdName User provided value for the resource. + * @param taskExecutionIdTaskIdVersion Specific version of the resource. + * @param taskExecutionIdRetryAttempt + * @param optional nil or *ListNodeExecutionsForTaskOpts - Optional Parameters: + * @param "TaskExecutionIdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifer corresponds to. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminNodeExecutionList +*/ + +type ListNodeExecutionsForTaskOpts struct { + TaskExecutionIdTaskIdResourceType optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListNodeExecutionsForTask(ctx context.Context, taskExecutionIdNodeExecutionIdExecutionIdProject string, taskExecutionIdNodeExecutionIdExecutionIdDomain string, taskExecutionIdNodeExecutionIdExecutionIdName string, taskExecutionIdNodeExecutionIdNodeId string, taskExecutionIdTaskIdProject string, taskExecutionIdTaskIdDomain string, taskExecutionIdTaskIdName string, taskExecutionIdTaskIdVersion string, taskExecutionIdRetryAttempt int64, localVarOptionals *ListNodeExecutionsForTaskOpts) (AdminNodeExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNodeExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdNodeId), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.project"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.domain"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.name"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.version"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.retry_attempt"+"}", fmt.Sprintf("%v", taskExecutionIdRetryAttempt), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.TaskExecutionIdTaskIdResourceType.IsSet() { + localVarQueryParams.Add("task_execution_id.task_id.resource_type", parameterToString(localVarOptionals.TaskExecutionIdTaskIdResourceType.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNodeExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return AdminProjects +*/ +func (a *AdminServiceApiService) ListProjects(ctx context.Context) (AdminProjects, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjects + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjects + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param nodeExecutionIdExecutionIdProject Name of the project the resource belongs to. + * @param nodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param nodeExecutionIdExecutionIdName User or system provided value for the resource. + * @param nodeExecutionIdNodeId + * @param optional nil or *ListTaskExecutionsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminTaskExecutionList +*/ + +type ListTaskExecutionsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTaskExecutions(ctx context.Context, nodeExecutionIdExecutionIdProject string, nodeExecutionIdExecutionIdDomain string, nodeExecutionIdExecutionIdName string, nodeExecutionIdNodeId string, localVarOptionals *ListTaskExecutionsOpts) (AdminTaskExecutionList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskExecutionList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}" + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.node_id"+"}", fmt.Sprintf("%v", nodeExecutionIdNodeId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskExecutionList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. + * @param domain Name of the domain the identifiers belongs to within the project. + * @param optional nil or *ListTaskIdsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminNamedEntityIdentifierList +*/ + +type ListTaskIdsOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTaskIds(ctx context.Context, project string, domain string, localVarOptionals *ListTaskIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityIdentifierList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/task_ids/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityIdentifierList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListTasksOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminTaskList +*/ + +type ListTasksOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTasks(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListTasksOpts) (AdminTaskList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListTasks2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminTaskList +*/ + +type ListTasks2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListTasks2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListTasks2Opts) (AdminTaskList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminTaskList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminTaskList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param project Name of the project that contains the identifiers. + * @param domain Name of the domain the identifiers belongs to within the project. + * @param optional nil or *ListWorkflowIdsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminNamedEntityIdentifierList +*/ + +type ListWorkflowIdsOpts struct { + Limit optional.Int64 + Token optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListWorkflowIds(ctx context.Context, project string, domain string, localVarOptionals *ListWorkflowIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminNamedEntityIdentifierList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_ids/{project}/{domain}" + localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminNamedEntityIdentifierList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' + * @param optional nil or *ListWorkflowsOpts - Optional Parameters: + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminWorkflowList +*/ + +type ListWorkflowsOpts struct { + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListWorkflows(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListWorkflowsOpts) (AdminWorkflowList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param optional nil or *ListWorkflows2Opts - Optional Parameters: + * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. + * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. + * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. + +@return AdminWorkflowList +*/ + +type ListWorkflows2Opts struct { + IdName optional.String + Limit optional.Int64 + Token optional.String + Filters optional.String + SortByKey optional.String + SortByDirection optional.String +} + +func (a *AdminServiceApiService) ListWorkflows2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListWorkflows2Opts) (AdminWorkflowList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminWorkflowList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { + localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { + localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Token.IsSet() { + localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { + localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { + localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { + localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminWorkflowList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService +Register a project along with valid domains + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminProjectRegisterResponse +*/ +func (a *AdminServiceApiService) RegisterProject(ctx context.Context, body AdminProjectRegisterRequest) (AdminProjectRegisterResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminProjectRegisterResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminProjectRegisterResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 201 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService +Relaunch a workflow execution + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body + +@return AdminExecutionCreateResponse +*/ +func (a *AdminServiceApiService) RelaunchExecution(ctx context.Context, body AdminExecutionRelaunchRequest) (AdminExecutionCreateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionCreateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/relaunch" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionCreateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 409 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User or system provided value for the resource. + * @param body + +@return AdminExecutionTerminateResponse +*/ +func (a *AdminServiceApiService) TerminateExecution(ctx context.Context, idProject string, idDomain string, idName string, body AdminExecutionTerminateRequest) (AdminExecutionTerminateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminExecutionTerminateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminExecutionTerminateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +AdminServiceApiService + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param idProject Name of the project the resource belongs to. + * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + * @param idName User provided value for the resource. + * @param idVersion Specific version of the resource. + * @param body + +@return AdminLaunchPlanUpdateResponse +*/ +func (a *AdminServiceApiService) UpdateLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, body AdminLaunchPlanUpdateRequest) (AdminLaunchPlanUpdateResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AdminLaunchPlanUpdateResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v AdminLaunchPlanUpdateResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go new file mode 100644 index 0000000000..8fd676821e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go @@ -0,0 +1,464 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") +) + +// APIClient manages communication with the flyteidl/service/admin.proto API vversion not set +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AdminServiceApi *AdminServiceApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AdminServiceApi = (*AdminServiceApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile("file", filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericSwaggerError Provides access to the body, error and model on returned errors. +type GenericSwaggerError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericSwaggerError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericSwaggerError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericSwaggerError) Model() interface{} { + return e.model +} \ No newline at end of file diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go new file mode 100644 index 0000000000..5ca411ba6a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go @@ -0,0 +1,72 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "http://localhost", + DefaultHeader: make(map[string]string), + UserAgent: "Swagger-Codegen/1.0.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh new file mode 100644 index 0000000000..ae01b182ae --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go new file mode 100644 index 0000000000..ca3f4649dd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Annotation values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge annotations defined at registration and execution time. +type AdminAnnotations struct { + // Map of custom annotations to be applied to the execution resource. + Values map[string]string `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go new file mode 100644 index 0000000000..a2a3eebf90 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines permissions associated with executions created by this launch plan spec. +type AdminAuth struct { + AssumableIamRole string `json:"assumable_iam_role,omitempty"` + KubernetesServiceAccount string `json:"kubernetes_service_account,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go new file mode 100644 index 0000000000..ca2bba416c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Namespace within a project commonly used to differentiate between different service instances. e.g. \"production\", \"development\", etc. +type AdminDomain struct { + Id string `json:"id,omitempty"` + // Display name. + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go new file mode 100644 index 0000000000..d1bfe3c40c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminEmailNotification struct { + // The list of email addresses recipients for this notification. + RecipientsEmail []string `json:"recipients_email,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go new file mode 100644 index 0000000000..ac331c3483 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A workflow execution represents an instantiated workflow, including all inputs and additional metadata as well as computed results included state, outputs, and duration-based attributes. Used as a response object used in Get and List execution requests. +type AdminExecution struct { + // Unique identifier of the workflow execution. + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + // User-provided configuration and inputs for launching the execution. + Spec *AdminExecutionSpec `json:"spec,omitempty"` + // Execution results. + Closure *AdminExecutionClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go new file mode 100644 index 0000000000..9dcb0b83ad --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go @@ -0,0 +1,38 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type AdminExecutionClosure struct { + // A map of outputs in the case of a successful execution. + Outputs *AdminLiteralMapBlob `json:"outputs,omitempty"` + // Error information in the case of a failed execution. + Error_ *CoreExecutionError `json:"error,omitempty"` + // In the case of a user-specified abort, this will pass along the user-supplied cause. + AbortCause string `json:"abort_cause,omitempty"` + ComputedInputs *CoreLiteralMap `json:"computed_inputs,omitempty"` + // Most recent recorded phase for the execution. + Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"` + // Reported ime at which the execution began running. + StartedAt time.Time `json:"started_at,omitempty"` + // The amount of time the execution spent running. + Duration string `json:"duration,omitempty"` + // Reported time at which the execution was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Reported time at which the execution was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. + Notifications []AdminNotification `json:"notifications,omitempty"` + // Identifies the workflow definition for this execution. + WorkflowId *CoreIdentifier `json:"workflow_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go new file mode 100644 index 0000000000..ea01a1261c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to launch an execution with the given project, domain and optionally name. +type AdminExecutionCreateRequest struct { + // Name of the project the execution belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the execution belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + Name string `json:"name,omitempty"` + // Additional fields necessary to launch the execution. + Spec *AdminExecutionSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go new file mode 100644 index 0000000000..540bc7e143 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// The unique identifier for a successfully created execution. If the name was *not* specified in the create request, this identifier will include a generated name. +type AdminExecutionCreateResponse struct { + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go new file mode 100644 index 0000000000..2d3390aa71 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Used as a response for request to list executions. +type AdminExecutionList struct { + Executions []AdminExecution `json:"executions,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go new file mode 100644 index 0000000000..0d95c9525b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go @@ -0,0 +1,28 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. These attributes are assigned at launch time and do not change. +type AdminExecutionMetadata struct { + Mode *ExecutionMetadataExecutionMode `json:"mode,omitempty"` + // Identifier of the entity that triggered this execution. + Principal string `json:"principal,omitempty"` + // Indicates the \"nestedness\" of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. + Nesting int64 `json:"nesting,omitempty"` + // For scheduled executions, the requested time for execution for this specific schedule invocation. + ScheduledAt time.Time `json:"scheduled_at,omitempty"` + ParentNodeExecution *CoreNodeExecutionIdentifier `json:"parent_node_execution,omitempty"` + // Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. + ReferenceExecution *CoreWorkflowExecutionIdentifier `json:"reference_execution,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go new file mode 100644 index 0000000000..e504ad2551 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to relaunch the referenced execution. +type AdminExecutionRelaunchRequest struct { + // Identifier of the workflow execution to relaunch. + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go new file mode 100644 index 0000000000..bddada5cdc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime of an execution as it progresses across phase changes.. +type AdminExecutionSpec struct { + LaunchPlan *CoreIdentifier `json:"launch_plan,omitempty"` + Inputs *CoreLiteralMap `json:"inputs,omitempty"` + Metadata *AdminExecutionMetadata `json:"metadata,omitempty"` + // List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. + Notifications *AdminNotificationList `json:"notifications,omitempty"` + // This should be set to true if all notifications are intended to be disabled for this execution. + DisableAll bool `json:"disable_all,omitempty"` + // Labels to apply to the execution resource. + Labels *AdminLabels `json:"labels,omitempty"` + // Annotations to apply to the execution resource. + Annotations *AdminAnnotations `json:"annotations,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go new file mode 100644 index 0000000000..fe49673450 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to terminate an in-progress execution. This action is irreversible. If an execution is already terminated, this request will simply be a no-op. This request will fail if it references a non-existent execution. If the request succeeds the phase \"ABORTED\" will be recorded for the termination with the optional cause added to the output_result. +type AdminExecutionTerminateRequest struct { + // Uniquely identifies the individual workflow execution to be terminated. + Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` + // Optional reason for aborting. + Cause string `json:"cause,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go new file mode 100644 index 0000000000..7471278b35 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminExecutionTerminateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go new file mode 100644 index 0000000000..6ae7a83cce --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Option for schedules run at a certain frequency, e.g. every 2 minutes. +type AdminFixedRate struct { + Value int64 `json:"value,omitempty"` + Unit *AdminFixedRateUnit `json:"unit,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go new file mode 100644 index 0000000000..4a6dd4877a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminFixedRateUnit : Represents a frequency at which to run a schedule. +type AdminFixedRateUnit string + +// List of adminFixedRateUnit +const ( + AdminFixedRateUnitMINUTE AdminFixedRateUnit = "MINUTE" + AdminFixedRateUnitHOUR AdminFixedRateUnit = "HOUR" + AdminFixedRateUnitDAY AdminFixedRateUnit = "DAY" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go new file mode 100644 index 0000000000..a544db3a14 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Label values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge labels defined at registration and execution time. +type AdminLabels struct { + // Map of custom labels to be applied to the execution resource. + Values map[string]string `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go new file mode 100644 index 0000000000..fb4049ee5d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A LaunchPlan provides the capability to templatize workflow executions. Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow definition doesn't necessarily have a default value for said input. +type AdminLaunchPlan struct { + Id *CoreIdentifier `json:"id,omitempty"` + Spec *AdminLaunchPlanSpec `json:"spec,omitempty"` + Closure *AdminLaunchPlanClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go new file mode 100644 index 0000000000..59226a1b4b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Values computed by the flyte platform after launch plan registration. These include expected_inputs required to be present in a CreateExecutionRequest to launch the reference workflow as well timestamp values associated with the launch plan. +type AdminLaunchPlanClosure struct { + State *AdminLaunchPlanState `json:"state,omitempty"` + ExpectedInputs *CoreParameterMap `json:"expected_inputs,omitempty"` + ExpectedOutputs *CoreVariableMap `json:"expected_outputs,omitempty"` + // Time at which the launch plan was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Time at which the launch plan was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go new file mode 100644 index 0000000000..181c372a85 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan. +type AdminLaunchPlanCreateRequest struct { + // Uniquely identifies a launch plan entity. + Id *CoreIdentifier `json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *AdminLaunchPlanSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go new file mode 100644 index 0000000000..7203a99c80 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminLaunchPlanCreateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go new file mode 100644 index 0000000000..26cd09de61 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response object for list launch plan requests. +type AdminLaunchPlanList struct { + LaunchPlans []AdminLaunchPlan `json:"launch_plans,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go new file mode 100644 index 0000000000..f368501cd8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch the reference workflow. +type AdminLaunchPlanMetadata struct { + Schedule *AdminSchedule `json:"schedule,omitempty"` + Notifications []AdminNotification `json:"notifications,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go new file mode 100644 index 0000000000..469138f517 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// User-provided launch plan definition and configuration values. +type AdminLaunchPlanSpec struct { + WorkflowId *CoreIdentifier `json:"workflow_id,omitempty"` + EntityMetadata *AdminLaunchPlanMetadata `json:"entity_metadata,omitempty"` + DefaultInputs *CoreParameterMap `json:"default_inputs,omitempty"` + FixedInputs *CoreLiteralMap `json:"fixed_inputs,omitempty"` + Role string `json:"role,omitempty"` + // Custom labels to be applied to the execution resource. + Labels *AdminLabels `json:"labels,omitempty"` + // Custom annotations to be applied to the execution resource. + Annotations *AdminAnnotations `json:"annotations,omitempty"` + // Indicates the permission associated with workflow executions triggered with this launch plan. + Auth *AdminAuth `json:"auth,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go new file mode 100644 index 0000000000..f0a1d32782 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// AdminLaunchPlanState : By default any launch plan regardless of state can be used to launch a workflow execution. However, at most one version of a launch plan (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier group will be observed and trigger executions at a defined cadence. +type AdminLaunchPlanState string + +// List of adminLaunchPlanState +const ( + AdminLaunchPlanStateINACTIVE AdminLaunchPlanState = "INACTIVE" + AdminLaunchPlanStateACTIVE AdminLaunchPlanState = "ACTIVE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go new file mode 100644 index 0000000000..6d3baae96b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to set the referenced launch plan state to the configured value. +type AdminLaunchPlanUpdateRequest struct { + // Identifier of launch plan for which to change state. + Id *CoreIdentifier `json:"id,omitempty"` + // Desired state to apply to the launch plan. + State *AdminLaunchPlanState `json:"state,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go new file mode 100644 index 0000000000..84397b0166 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Purposefully empty, may be populated in the future. +type AdminLaunchPlanUpdateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go new file mode 100644 index 0000000000..ac5e29d42c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminLiteralMapBlob struct { + Values *CoreLiteralMap `json:"values,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go new file mode 100644 index 0000000000..14035027b0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that identifies a Flyte resource. A resource can internally have multiple versions. +type AdminNamedEntityIdentifier struct { + // Name of the project the resource belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go new file mode 100644 index 0000000000..d1731143db --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a list of Identifiers. +type AdminNamedEntityIdentifierList struct { + // A list of identifiers. + Entities []AdminNamedEntityIdentifier `json:"entities,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go new file mode 100644 index 0000000000..e3bde213ff --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go @@ -0,0 +1,31 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Container for node execution details and results. +type AdminNodeExecutionClosure struct { + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + // The last recorded phase for this node execution. + Phase *CoreNodeExecutionPhase `json:"phase,omitempty"` + // Time at which the node execution began running. + StartedAt time.Time `json:"started_at,omitempty"` + // The amount of time the node execution spent running. + Duration string `json:"duration,omitempty"` + // Time at which the node execution was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Time at which the node execution was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` + WorkflowNodeMetadata *FlyteidladminWorkflowNodeMetadata `json:"workflow_node_metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go new file mode 100644 index 0000000000..f31d2ce272 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to send a notification that a node execution event has occurred. +type AdminNodeExecutionEventRequest struct { + RequestId string `json:"request_id,omitempty"` + // Details about the event that occurred. + Event *EventNodeExecutionEvent `json:"event,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go new file mode 100644 index 0000000000..a1bec33b15 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminNodeExecutionEventResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go new file mode 100644 index 0000000000..3d35b2c8af --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +type AdminNodeExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of node execution inputs. + Inputs *AdminUrlBlob `json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of node execution outputs. + Outputs *AdminUrlBlob `json:"outputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go new file mode 100644 index 0000000000..426c4eaf25 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request structure to retrieve a list of node execution entities. +type AdminNodeExecutionList struct { + NodeExecutions []FlyteidladminNodeExecution `json:"node_executions,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go new file mode 100644 index 0000000000..7146512052 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a structure for notifications based on execution status. The Notification content is configured within Admin. Future iterations could expose configuring notifications with custom content. +type AdminNotification struct { + // A list of phases to which users can associate the notifications to. + Phases []CoreWorkflowExecutionPhase `json:"phases,omitempty"` + Email *AdminEmailNotification `json:"email,omitempty"` + PagerDuty *AdminPagerDutyNotification `json:"pager_duty,omitempty"` + Slack *AdminSlackNotification `json:"slack,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go new file mode 100644 index 0000000000..b89a82f831 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminNotificationList struct { + Notifications []AdminNotification `json:"notifications,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go new file mode 100644 index 0000000000..b3458ca7b3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminPagerDutyNotification struct { + // Currently, PagerDuty notifications leverage email to trigger a notification. + RecipientsEmail []string `json:"recipients_email,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go new file mode 100644 index 0000000000..92f7749c13 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Top-level namespace used to classify different entities like workflows and executions. +type AdminProject struct { + Id string `json:"id,omitempty"` + // Display name. + Name string `json:"name,omitempty"` + Domains []AdminDomain `json:"domains,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go new file mode 100644 index 0000000000..075f0de866 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectRegisterRequest struct { + Project *AdminProject `json:"project,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go new file mode 100644 index 0000000000..05f45a1d02 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjectRegisterResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go new file mode 100644 index 0000000000..655185d15e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminProjects struct { + Projects []AdminProject `json:"projects,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go new file mode 100644 index 0000000000..6b372ce957 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines complete set of information required to trigger an execution on a schedule. +type AdminSchedule struct { + CronExpression string `json:"cron_expression,omitempty"` + Rate *AdminFixedRate `json:"rate,omitempty"` + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + KickoffTimeInputArg string `json:"kickoff_time_input_arg,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go new file mode 100644 index 0000000000..eff6a049f4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminSlackNotification struct { + // Currently, Slack notifications leverage email to trigger a notification. + RecipientsEmail []string `json:"recipients_email,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go new file mode 100644 index 0000000000..10a8dfae22 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Species sort ordering in a list request. +type AdminSort struct { + // Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + Key string `json:"key,omitempty"` + Direction *SortDirection `json:"direction,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go new file mode 100644 index 0000000000..5df22b24f6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks arranged to process workflow inputs and produce a deterministic set of outputs. Tasks can come in many varieties tuned for specialized behavior. +type AdminTask struct { + // id represents the unique identifier of the task. + Id *CoreIdentifier `json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the task. + Closure *AdminTaskClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go new file mode 100644 index 0000000000..0491fd6b2b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data and task metadata. +type AdminTaskClosure struct { + // Represents the compiled representation of the task from the specification provided. + CompiledTask *CoreCompiledTask `json:"compiled_task,omitempty"` + // Time at which the task was created. + CreatedAt time.Time `json:"created_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_request.go new file mode 100644 index 0000000000..78cde2f116 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a request structure to create a revision of a task. +type AdminTaskCreateRequest struct { + // id represents the unique identifier of the task. + Id *CoreIdentifier `json:"id,omitempty"` + // Represents the specification for task. + Spec *AdminTaskSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_response.go new file mode 100644 index 0000000000..5c692db5c8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_create_response.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a response structure if task creation succeeds. +type AdminTaskCreateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go new file mode 100644 index 0000000000..58c9f39763 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go @@ -0,0 +1,36 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Container for task execution details and results. +type AdminTaskExecutionClosure struct { + // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + OutputUri string `json:"output_uri,omitempty"` + // Error information for the task execution. Populated if the execution failed. + Error_ *CoreExecutionError `json:"error,omitempty"` + // The last recorded phase for this task execution. + Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` + // Detailed log information output by the task execution. + Logs []CoreTaskLog `json:"logs,omitempty"` + // Time at which the task execution began running. + StartedAt time.Time `json:"started_at,omitempty"` + // The amount of time the task execution spent running. + Duration string `json:"duration,omitempty"` + // Time at which the task execution was created. + CreatedAt time.Time `json:"created_at,omitempty"` + // Time at which the task execution was last updated. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // Custom data specific to the task plugin. + CustomInfo *ProtobufStruct `json:"custom_info,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go new file mode 100644 index 0000000000..47fe4cb73d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to send a notification that a task execution event has occurred. +type AdminTaskExecutionEventRequest struct { + RequestId string `json:"request_id,omitempty"` + // Details about the event that occurred. + Event *EventTaskExecutionEvent `json:"event,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go new file mode 100644 index 0000000000..f30c09a8f0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminTaskExecutionEventResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go new file mode 100644 index 0000000000..ea463fdf46 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +type AdminTaskExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of task execution inputs. + Inputs *AdminUrlBlob `json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of task execution outputs. + Outputs *AdminUrlBlob `json:"outputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go new file mode 100644 index 0000000000..7a80ddfacb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for a query to list of task execution entities. +type AdminTaskExecutionList struct { + TaskExecutions []FlyteidladminTaskExecution `json:"task_executions,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go new file mode 100644 index 0000000000..7f56211650 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a list of tasks returned from the admin. +type AdminTaskList struct { + // A list of tasks returned based on the request. + Tasks []AdminTask `json:"tasks,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go new file mode 100644 index 0000000000..84ee0ec724 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a structure that encapsulates the user-configured specification of the task. +type AdminTaskSpec struct { + // Template of the task that encapsulates all the metadata of the task. + Template *CoreTaskTemplate `json:"template,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go new file mode 100644 index 0000000000..fc2ac8662f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a string url and associated metadata used throughout the platform. +type AdminUrlBlob struct { + // Actual url value. + Url string `json:"url,omitempty"` + // Represents the size of the file accessible at the above url. + Bytes string `json:"bytes,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go new file mode 100644 index 0000000000..be78c65504 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents the workflow structure stored in the Admin A workflow is created by ordering tasks and associating outputs to inputs in order to produce a directed-acyclic execution graph. +type AdminWorkflow struct { + // id represents the unique identifier of the workflow. + Id *CoreIdentifier `json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the workflow. + Closure *AdminWorkflowClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go new file mode 100644 index 0000000000..585ef055b9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +type AdminWorkflowClosure struct { + // Represents the compiled representation of the workflow from the specification provided. + CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` + // Time at which the workflow was created. + CreatedAt time.Time `json:"created_at,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go new file mode 100644 index 0000000000..d623d1e147 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a request structure to create a revision of a workflow. +type AdminWorkflowCreateRequest struct { + // id represents the unique identifier of the workflow. + Id *CoreIdentifier `json:"id,omitempty"` + // Represents the specification for workflow. + Spec *AdminWorkflowSpec `json:"spec,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go new file mode 100644 index 0000000000..badaea629f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowCreateResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go new file mode 100644 index 0000000000..b44cf1fc95 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Request to send a notification that a workflow execution event has occurred. +type AdminWorkflowExecutionEventRequest struct { + RequestId string `json:"request_id,omitempty"` + // Details about the event that occurred. + Event *EventWorkflowExecutionEvent `json:"event,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go new file mode 100644 index 0000000000..e6805a3462 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go @@ -0,0 +1,13 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type AdminWorkflowExecutionEventResponse struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go new file mode 100644 index 0000000000..0c56cfc45f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +type AdminWorkflowExecutionGetDataResponse struct { + // Signed url to fetch a core.LiteralMap of execution outputs. + Outputs *AdminUrlBlob `json:"outputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go new file mode 100644 index 0000000000..608863927c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a list of workflows returned from the admin. +type AdminWorkflowList struct { + // A list of workflows returned based on the request. + Workflows []AdminWorkflow `json:"workflows,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 `json:"token,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go new file mode 100644 index 0000000000..aaf5e66b04 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents a structure that encapsulates the specification of the workflow. +type AdminWorkflowSpec struct { + // Template of the task that encapsulates all the metadata of the workflow. + Template *CoreWorkflowTemplate `json:"template,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go new file mode 100644 index 0000000000..c2557772aa --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type BlobTypeBlobDimensionality string + +// List of BlobTypeBlobDimensionality +const ( + BlobTypeBlobDimensionalitySINGLE BlobTypeBlobDimensionality = "SINGLE" + BlobTypeBlobDimensionalityMULTIPART BlobTypeBlobDimensionality = "MULTIPART" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go new file mode 100644 index 0000000000..f12c82ff7d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ComparisonExpressionOperator : - GT: Greater Than - LT: Less Than +type ComparisonExpressionOperator string + +// List of ComparisonExpressionOperator +const ( + ComparisonExpressionOperatorEQ ComparisonExpressionOperator = "EQ" + ComparisonExpressionOperatorNEQ ComparisonExpressionOperator = "NEQ" + ComparisonExpressionOperatorGT ComparisonExpressionOperator = "GT" + ComparisonExpressionOperatorGTE ComparisonExpressionOperator = "GTE" + ComparisonExpressionOperatorLT ComparisonExpressionOperator = "LT" + ComparisonExpressionOperatorLTE ComparisonExpressionOperator = "LTE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go new file mode 100644 index 0000000000..537e3b45e7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ConjunctionExpressionLogicalOperator : - AND: Conjunction +type ConjunctionExpressionLogicalOperator string + +// List of ConjunctionExpressionLogicalOperator +const ( + ConjunctionExpressionLogicalOperatorAND ConjunctionExpressionLogicalOperator = "AND" + ConjunctionExpressionLogicalOperatorOR ConjunctionExpressionLogicalOperator = "OR" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go new file mode 100644 index 0000000000..6a6396583f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type ConnectionSetIdList struct { + Ids []string `json:"ids,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go new file mode 100644 index 0000000000..2e0276e490 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Links a variable to an alias. +type CoreAlias struct { + // Must match one of the output variable names on a node. + Var_ string `json:"var,omitempty"` + // A workflow-level unique alias that downstream nodes can refer to in their input. + Alias string `json:"alias,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go new file mode 100644 index 0000000000..b66a50bd78 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +type CoreBinary struct { + Value string `json:"value,omitempty"` + Tag string `json:"tag,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go new file mode 100644 index 0000000000..479a2a60ff --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// An input/output binding of a variable to either static value or a node output. +type CoreBinding struct { + // Variable name must match an input/output variable of the node. + Var_ string `json:"var,omitempty"` + // Data to use to bind this variable. + Binding *CoreBindingData `json:"binding,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go new file mode 100644 index 0000000000..0d4912540d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Specifies either a simple value or a reference to another output. +type CoreBindingData struct { + // A simple scalar value. + Scalar *CoreScalar `json:"scalar,omitempty"` + // A collection of binding data. This allows nesting of binding data to any number of levels. + Collection *CoreBindingDataCollection `json:"collection,omitempty"` + // References an output promised by another node. + Promise *CoreOutputReference `json:"promise,omitempty"` + // A map of bindings. The key is always a string. + Map_ *CoreBindingDataMap `json:"map,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go new file mode 100644 index 0000000000..e83621557e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A collection of BindingData items. +type CoreBindingDataCollection struct { + Bindings []CoreBindingData `json:"bindings,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go new file mode 100644 index 0000000000..d63199bc45 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A map of BindingData items. +type CoreBindingDataMap struct { + Bindings map[string]CoreBindingData `json:"bindings,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go new file mode 100644 index 0000000000..081e36a03d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +type CoreBlob struct { + Metadata *CoreBlobMetadata `json:"metadata,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go new file mode 100644 index 0000000000..1dfb19dda9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreBlobMetadata struct { + Type_ *CoreBlobType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go new file mode 100644 index 0000000000..5c751b9562 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreBlobType struct { + Format string `json:"format,omitempty"` + Dimensionality *BlobTypeBlobDimensionality `json:"dimensionality,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go new file mode 100644 index 0000000000..0ee33d7c3a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +type CoreBooleanExpression struct { + Conjunction *CoreConjunctionExpression `json:"conjunction,omitempty"` + Comparison *CoreComparisonExpression `json:"comparison,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go new file mode 100644 index 0000000000..6794c49922 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives). +type CoreBranchNode struct { + IfElse *CoreIfElseBlock `json:"if_else,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go new file mode 100644 index 0000000000..86e9586a7d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// 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. +type CoreComparisonExpression struct { + Operator *ComparisonExpressionOperator `json:"operator,omitempty"` + LeftValue *CoreOperand `json:"left_value,omitempty"` + RightValue *CoreOperand `json:"right_value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go new file mode 100644 index 0000000000..f5a06ebd27 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreCompiledTask struct { + Template *CoreTaskTemplate `json:"template,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go new file mode 100644 index 0000000000..c30998d66c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreCompiledWorkflow struct { + Template *CoreWorkflowTemplate `json:"template,omitempty"` + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + Connections *CoreConnectionSet `json:"connections,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go new file mode 100644 index 0000000000..64753a21b5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of compiled subworkflows. +type CoreCompiledWorkflowClosure struct { + Primary *CoreCompiledWorkflow `json:"primary,omitempty"` + SubWorkflows []CoreCompiledWorkflow `json:"sub_workflows,omitempty"` + Tasks []CoreCompiledTask `json:"tasks,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go new file mode 100644 index 0000000000..cf8c99b9bb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a conjunction expression of two boolean expressions. +type CoreConjunctionExpression struct { + Operator *ConjunctionExpressionLogicalOperator `json:"operator,omitempty"` + LeftExpression *CoreBooleanExpression `json:"left_expression,omitempty"` + RightExpression *CoreBooleanExpression `json:"right_expression,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go new file mode 100644 index 0000000000..8d7b9bc344 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreConnectionSet struct { + Downstream map[string]ConnectionSetIdList `json:"downstream,omitempty"` + Upstream map[string]ConnectionSetIdList `json:"upstream,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go new file mode 100644 index 0000000000..510d3c5cef --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreContainer struct { + Image string `json:"image,omitempty"` + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + Command []string `json:"command,omitempty"` + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. + Args []string `json:"args,omitempty"` + // Container resources requirement as specified by the container engine. + Resources *CoreResources `json:"resources,omitempty"` + // Environment variables will be set as the container is starting up. + Env []CoreKeyValuePair `json:"env,omitempty"` + // Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. + Config []CoreKeyValuePair `json:"config,omitempty"` + Ports []CoreContainerPort `json:"ports,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go new file mode 100644 index 0000000000..40e941c7e6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines port properties for a container. +type CoreContainerPort struct { + // Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. + ContainerPort int64 `json:"container_port,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go new file mode 100644 index 0000000000..de5a0f838c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents an error thrown from a node. +type CoreError struct { + // The node id that threw the error. + FailedNodeId string `json:"failed_node_id,omitempty"` + // Error message thrown. + Message string `json:"message,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go new file mode 100644 index 0000000000..d11a1ea1c3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Represents the error message from the execution. +type CoreExecutionError struct { + Code string `json:"code,omitempty"` + // Detailed description of the error - including stack trace. + Message string `json:"message,omitempty"` + ErrorUri string `json:"error_uri,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go new file mode 100644 index 0000000000..65a66cf42e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go @@ -0,0 +1,24 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that uniquely identifies a Flyte resource. +type CoreIdentifier struct { + // Identifies the specific type of resource that this identifer corresponds to. + ResourceType *CoreResourceType `json:"resource_type,omitempty"` + // Name of the project the resource belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + // User provided value for the resource. + Name string `json:"name,omitempty"` + // Specific version of the resource. + Version string `json:"version,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go new file mode 100644 index 0000000000..88c084f857 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +type CoreIfBlock struct { + Condition *CoreBooleanExpression `json:"condition,omitempty"` + ThenNode *CoreNode `json:"then_node,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go new file mode 100644 index 0000000000..f9e2b64918 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. If no conditions were satisfied, the else_node or the error will execute. +type CoreIfElseBlock struct { + // +required. First condition to evaluate. + Case_ *CoreIfBlock `json:"case,omitempty"` + // +optional. Additional branches to evaluate. + Other []CoreIfBlock `json:"other,omitempty"` + // The node to execute in case none of the branches were taken. + ElseNode *CoreNode `json:"else_node,omitempty"` + // An error to throw in case none of the branches were taken. + Error_ *CoreError `json:"error,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go new file mode 100644 index 0000000000..62a32a04af --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A generic key value pair. +type CoreKeyValuePair struct { + // required. + Key string `json:"key,omitempty"` + // +optional. + Value string `json:"value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go new file mode 100644 index 0000000000..1a54f8fcac --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +type CoreLiteral struct { + // A simple value. + Scalar *CoreScalar `json:"scalar,omitempty"` + // A collection of literals to allow nesting. + Collection *CoreLiteralCollection `json:"collection,omitempty"` + // A map of strings to literals. + Map_ *CoreLiteralMap `json:"map,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go new file mode 100644 index 0000000000..b7de3d8c49 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type CoreLiteralCollection struct { + Literals []CoreLiteral `json:"literals,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go new file mode 100644 index 0000000000..58728f6325 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type CoreLiteralMap struct { + Literals map[string]CoreLiteral `json:"literals,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go new file mode 100644 index 0000000000..aa0a63a63f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a strong type to allow type checking between interfaces. +type CoreLiteralType struct { + // A simple type that can be compared one-to-one with another. + Simple *CoreSimpleType `json:"simple,omitempty"` + // A complex type that requires matching of inner fields. + Schema *CoreSchemaType `json:"schema,omitempty"` + // Defines the type of the value of a collection. Only homogeneous collections are allowed. + CollectionType *CoreLiteralType `json:"collection_type,omitempty"` + // Defines the type of the value of a map type. The type of the key is always a string. + MapValueType *CoreLiteralType `json:"map_value_type,omitempty"` + // A blob might have specialized implementation details depending on associated metadata. + Blob *CoreBlobType `json:"blob,omitempty"` + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. + Metadata *ProtobufStruct `json:"metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go new file mode 100644 index 0000000000..5e898169c6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go @@ -0,0 +1,30 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch node. +type CoreNode struct { + // A workflow-level unique identifier that identifies this node in the workflow. \"inputs\" and \"outputs\" are reserved node ids that cannot be used by other nodes. + Id string `json:"id,omitempty"` + // Extra metadata about the node. + Metadata *CoreNodeMetadata `json:"metadata,omitempty"` + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fullfilled. + Inputs []CoreBinding `json:"inputs,omitempty"` + // +optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs field. + UpstreamNodeIds []string `json:"upstream_node_ids,omitempty"` + // +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. + OutputAliases []CoreAlias `json:"output_aliases,omitempty"` + // Information about the Task to execute in this node. + TaskNode *CoreTaskNode `json:"task_node,omitempty"` + // Information about the Workflow to execute in this mode. + WorkflowNode *CoreWorkflowNode `json:"workflow_node,omitempty"` + // Information about the branch node to evaluate in this node. + BranchNode *CoreBranchNode `json:"branch_node,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go new file mode 100644 index 0000000000..2a391e095f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that identify a Flyte node execution entity. +type CoreNodeExecutionIdentifier struct { + NodeId string `json:"node_id,omitempty"` + ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go new file mode 100644 index 0000000000..ab642a4d84 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreNodeExecutionPhase string + +// List of coreNodeExecutionPhase +const ( + CoreNodeExecutionPhaseUNDEFINED CoreNodeExecutionPhase = "UNDEFINED" + CoreNodeExecutionPhaseQUEUED CoreNodeExecutionPhase = "QUEUED" + CoreNodeExecutionPhaseRUNNING CoreNodeExecutionPhase = "RUNNING" + CoreNodeExecutionPhaseSUCCEEDED CoreNodeExecutionPhase = "SUCCEEDED" + CoreNodeExecutionPhaseFAILING CoreNodeExecutionPhase = "FAILING" + CoreNodeExecutionPhaseFAILED CoreNodeExecutionPhase = "FAILED" + CoreNodeExecutionPhaseABORTED CoreNodeExecutionPhase = "ABORTED" + CoreNodeExecutionPhaseSKIPPED CoreNodeExecutionPhase = "SKIPPED" + CoreNodeExecutionPhaseTIMED_OUT CoreNodeExecutionPhase = "TIMED_OUT" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go new file mode 100644 index 0000000000..0f566dd154 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines extra information about the Node. +type CoreNodeMetadata struct { + Name string `json:"name,omitempty"` + // The overall timeout of a task. + Timeout string `json:"timeout,omitempty"` + // Number of retries per task. + Retries *CoreRetryStrategy `json:"retries,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go new file mode 100644 index 0000000000..578ca555d1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines an operand to a comparison expression. +type CoreOperand struct { + Primitive *CorePrimitive `json:"primitive,omitempty"` + Var_ string `json:"var,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go new file mode 100644 index 0000000000..9d05e33ebd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A reference to an output produced by a node. The type can be retrieved -and validated- from the underlying interface of the node. +type CoreOutputReference struct { + // Node id must exist at the graph layer. + NodeId string `json:"node_id,omitempty"` + // Variable name must refer to an output variable for the node. + Var_ string `json:"var,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go new file mode 100644 index 0000000000..096c7efb0e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A parameter is used as input to a launch plan and has the special ability to have a default value or mark itself as required. +type CoreParameter struct { + // +required Variable. Defines the type of the variable backing this parameter. + Var_ *CoreVariable `json:"var,omitempty"` + // Defines a default value that has to match the variable type defined. + Default_ *CoreLiteral `json:"default,omitempty"` + // +optional, is this value required to be filled. + Required bool `json:"required,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go new file mode 100644 index 0000000000..0c6fc94fb0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A map of Parameters. +type CoreParameterMap struct { + // Defines a map of parameter names to parameters. + Parameters map[string]CoreParameter `json:"parameters,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go new file mode 100644 index 0000000000..efe369c246 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go @@ -0,0 +1,23 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type CorePrimitive struct { + Integer string `json:"integer,omitempty"` + FloatValue float64 `json:"float_value,omitempty"` + StringValue string `json:"string_value,omitempty"` + Boolean bool `json:"boolean,omitempty"` + Datetime time.Time `json:"datetime,omitempty"` + Duration string `json:"duration,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go new file mode 100644 index 0000000000..cc3b990080 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CoreResourceType : Indicates a resource type within Flyte. +type CoreResourceType string + +// List of coreResourceType +const ( + CoreResourceTypeUNSPECIFIED CoreResourceType = "UNSPECIFIED" + CoreResourceTypeTASK CoreResourceType = "TASK" + CoreResourceTypeWORKFLOW CoreResourceType = "WORKFLOW" + CoreResourceTypeLAUNCH_PLAN CoreResourceType = "LAUNCH_PLAN" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go new file mode 100644 index 0000000000..7bb747b22f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A customizable interface to convey resources requested for a container. This can be interpretted differently for different container engines. +type CoreResources struct { + // The desired set of resources requested. ResourceNames must be unique within the list. + Requests []ResourcesResourceEntry `json:"requests,omitempty"` + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. + Limits []ResourcesResourceEntry `json:"limits,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go new file mode 100644 index 0000000000..4766ef1445 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Retry strategy associated with an executable unit. +type CoreRetryStrategy struct { + // Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. + Retries int64 `json:"retries,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go new file mode 100644 index 0000000000..52e0ebac01 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Runtime information. This is losely defined to allow for extensibility. +type CoreRuntimeMetadata struct { + // Type of runtime. + Type_ *RuntimeMetadataRuntimeType `json:"type,omitempty"` + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. + Version string `json:"version,omitempty"` + // +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + Flavor string `json:"flavor,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go new file mode 100644 index 0000000000..c916f614c1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreScalar struct { + Primitive *CorePrimitive `json:"primitive,omitempty"` + Blob *CoreBlob `json:"blob,omitempty"` + Binary *CoreBinary `json:"binary,omitempty"` + Schema *FlyteidlcoreSchema `json:"schema,omitempty"` + NoneType *CoreVoid `json:"none_type,omitempty"` + Error_ *CoreError `json:"error,omitempty"` + Generic *ProtobufStruct `json:"generic,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go new file mode 100644 index 0000000000..52df3a083e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines schema columns and types to strongly type-validate schemas interoperability. +type CoreSchemaType struct { + // A list of ordered columns this schema comprises of. + Columns []SchemaTypeSchemaColumn `json:"columns,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go new file mode 100644 index 0000000000..23988bb9c1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// CoreSimpleType : Define a set of simple types. +type CoreSimpleType string + +// List of coreSimpleType +const ( + CoreSimpleTypeNONE CoreSimpleType = "NONE" + CoreSimpleTypeINTEGER CoreSimpleType = "INTEGER" + CoreSimpleTypeFLOAT CoreSimpleType = "FLOAT" + CoreSimpleTypeSTRING_ CoreSimpleType = "STRING" + CoreSimpleTypeBOOLEAN CoreSimpleType = "BOOLEAN" + CoreSimpleTypeDATETIME CoreSimpleType = "DATETIME" + CoreSimpleTypeDURATION CoreSimpleType = "DURATION" + CoreSimpleTypeBINARY CoreSimpleType = "BINARY" + CoreSimpleTypeERROR_ CoreSimpleType = "ERROR" + CoreSimpleTypeSTRUCT_ CoreSimpleType = "STRUCT" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go new file mode 100644 index 0000000000..c0f0264ad2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulation of fields that identify a Flyte task execution entity. +type CoreTaskExecutionIdentifier struct { + TaskId *CoreIdentifier `json:"task_id,omitempty"` + NodeExecutionId *CoreNodeExecutionIdentifier `json:"node_execution_id,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go new file mode 100644 index 0000000000..9d52259be1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreTaskExecutionPhase string + +// List of coreTaskExecutionPhase +const ( + CoreTaskExecutionPhaseUNDEFINED CoreTaskExecutionPhase = "UNDEFINED" + CoreTaskExecutionPhaseQUEUED CoreTaskExecutionPhase = "QUEUED" + CoreTaskExecutionPhaseRUNNING CoreTaskExecutionPhase = "RUNNING" + CoreTaskExecutionPhaseSUCCEEDED CoreTaskExecutionPhase = "SUCCEEDED" + CoreTaskExecutionPhaseABORTED CoreTaskExecutionPhase = "ABORTED" + CoreTaskExecutionPhaseFAILED CoreTaskExecutionPhase = "FAILED" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go new file mode 100644 index 0000000000..1eef3655de --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreTaskLog struct { + Uri string `json:"uri,omitempty"` + Name string `json:"name,omitempty"` + MessageFormat *TaskLogMessageFormat `json:"message_format,omitempty"` + Ttl string `json:"ttl,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go new file mode 100644 index 0000000000..cd5325c7d8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreTaskMetadata struct { + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + Discoverable bool `json:"discoverable,omitempty"` + // Runtime information about the task. + Runtime *CoreRuntimeMetadata `json:"runtime,omitempty"` + // The overall timeout of a task including user-triggered retries. + Timeout string `json:"timeout,omitempty"` + // Number of retries per task. + Retries *CoreRetryStrategy `json:"retries,omitempty"` + // Indicates a logical version to apply to this task for the purpose of discovery. + DiscoveryVersion string `json:"discovery_version,omitempty"` + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. + DeprecatedErrorMessage string `json:"deprecated_error_message,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go new file mode 100644 index 0000000000..07702a9bd6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Refers to the task that the Node is to execute. +type CoreTaskNode struct { + // A globally unique identifier for the task. + ReferenceId *CoreIdentifier `json:"reference_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go new file mode 100644 index 0000000000..e6d4941d52 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A Task structure that uniquely identifies a task in the system Tasks are registered as a first step in the system. +type CoreTaskTemplate struct { + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Id *CoreIdentifier `json:"id,omitempty"` + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. + Type_ string `json:"type,omitempty"` + // Extra metadata about the task. + Metadata *CoreTaskMetadata `json:"metadata,omitempty"` + // A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees compile-time validation of the workflow to avoid costly runtime failures. + Interface_ *CoreTypedInterface `json:"interface,omitempty"` + // Custom data about the task. This is extensible to allow various plugins in the system. + Custom *ProtobufStruct `json:"custom,omitempty"` + Container *CoreContainer `json:"container,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go new file mode 100644 index 0000000000..8a14876460 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines strongly typed inputs and outputs. +type CoreTypedInterface struct { + Inputs *CoreVariableMap `json:"inputs,omitempty"` + Outputs *CoreVariableMap `json:"outputs,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go new file mode 100644 index 0000000000..40e43f0588 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Defines a strongly typed variable. +type CoreVariable struct { + // Variable literal type. + Type_ *CoreLiteralType `json:"type,omitempty"` + Description string `json:"description,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go new file mode 100644 index 0000000000..581bc9668a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go @@ -0,0 +1,15 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreVariableMap struct { + // Defines a map of variable names to variables. + Variables map[string]CoreVariable `json:"variables,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go new file mode 100644 index 0000000000..94fc7ee1fc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally undefined since it can be assigned to a scalar of any LiteralType. +type CoreVoid struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go new file mode 100644 index 0000000000..cf61bea6ca --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreWorkflowExecutionIdentifier struct { + // Name of the project the resource belongs to. + Project string `json:"project,omitempty"` + // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. + Domain string `json:"domain,omitempty"` + // User or system provided value for the resource. + Name string `json:"name,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go new file mode 100644 index 0000000000..607786dbc8 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type CoreWorkflowExecutionPhase string + +// List of coreWorkflowExecutionPhase +const ( + CoreWorkflowExecutionPhaseUNDEFINED CoreWorkflowExecutionPhase = "UNDEFINED" + CoreWorkflowExecutionPhaseQUEUED CoreWorkflowExecutionPhase = "QUEUED" + CoreWorkflowExecutionPhaseRUNNING CoreWorkflowExecutionPhase = "RUNNING" + CoreWorkflowExecutionPhaseSUCCEEDING CoreWorkflowExecutionPhase = "SUCCEEDING" + CoreWorkflowExecutionPhaseSUCCEEDED CoreWorkflowExecutionPhase = "SUCCEEDED" + CoreWorkflowExecutionPhaseFAILING CoreWorkflowExecutionPhase = "FAILING" + CoreWorkflowExecutionPhaseFAILED CoreWorkflowExecutionPhase = "FAILED" + CoreWorkflowExecutionPhaseABORTED CoreWorkflowExecutionPhase = "ABORTED" + CoreWorkflowExecutionPhaseTIMED_OUT CoreWorkflowExecutionPhase = "TIMED_OUT" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go new file mode 100644 index 0000000000..31902b9d6d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Metadata for the entire workflow. To be used in the future. +type CoreWorkflowMetadata struct { +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go new file mode 100644 index 0000000000..42b07706aa --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Refers to a the workflow the node is to execute. +type CoreWorkflowNode struct { + // A globally unique identifier for the launch plan. + LaunchplanRef *CoreIdentifier `json:"launchplan_ref,omitempty"` + SubWorkflowRef *CoreIdentifier `json:"sub_workflow_ref,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go new file mode 100644 index 0000000000..109d01ac3a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, directed acyclic graph. +type CoreWorkflowTemplate struct { + // This is an autogenerated id by the system. The id is globally unique across the system. + Id *CoreIdentifier `json:"id,omitempty"` + // Extra metadata about the workflow. + Metadata *CoreWorkflowMetadata `json:"metadata,omitempty"` + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + Interface_ *CoreTypedInterface `json:"interface,omitempty"` + // A list of nodes. In addition, \"globals\" is a special reserved node id that can be used to consume workflow inputs. + Nodes []CoreNode `json:"nodes,omitempty"` + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. + Outputs []CoreBinding `json:"outputs,omitempty"` + // +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named \"error\" of type pb.lyft.flyte.core.Error. + FailureNode *CoreNode `json:"failure_node,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go new file mode 100644 index 0000000000..4a53b7294c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go @@ -0,0 +1,29 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type EventNodeExecutionEvent struct { + Id *CoreNodeExecutionIdentifier `json:"id,omitempty"` + ProducerId string `json:"producer_id,omitempty"` + Phase *CoreNodeExecutionPhase `json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated by the executor of the node. + OccurredAt time.Time `json:"occurred_at,omitempty"` + InputUri string `json:"input_uri,omitempty"` + // URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + WorkflowNodeMetadata *FlyteidleventWorkflowNodeMetadata `json:"workflow_node_metadata,omitempty"` + // Specifies which task (if any) launched this node. + ParentTaskMetadata *EventParentTaskExecutionMetadata `json:"parent_task_metadata,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go new file mode 100644 index 0000000000..c5276ee64c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type EventParentTaskExecutionMetadata struct { + Id *CoreTaskExecutionIdentifier `json:"id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go new file mode 100644 index 0000000000..5a5d271ee4 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go @@ -0,0 +1,36 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +type EventTaskExecutionEvent struct { + // ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. + TaskId *CoreIdentifier `json:"task_id,omitempty"` + ParentNodeExecutionId *CoreNodeExecutionIdentifier `json:"parent_node_execution_id,omitempty"` + RetryAttempt int64 `json:"retry_attempt,omitempty"` + Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` + ProducerId string `json:"producer_id,omitempty"` + Logs []CoreTaskLog `json:"logs,omitempty"` + // This timestamp represents when the original event occurred, it is generated by the executor of the task. + OccurredAt time.Time `json:"occurred_at,omitempty"` + // URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... + InputUri string `json:"input_uri,omitempty"` + // URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + CustomInfo *ProtobufStruct `json:"custom_info,omitempty"` + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. + PhaseVersion int64 `json:"phase_version,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go new file mode 100644 index 0000000000..32984251e0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go @@ -0,0 +1,25 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "time" +) + +type EventWorkflowExecutionEvent struct { + ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` + ProducerId string `json:"producer_id,omitempty"` + Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated by the executor of the workflow. + OccurredAt time.Time `json:"occurred_at,omitempty"` + // URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... + OutputUri string `json:"output_uri,omitempty"` + Error_ *CoreExecutionError `json:"error,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go new file mode 100644 index 0000000000..24e864a919 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ExecutionMetadataExecutionMode : The method by which this execution was launched. - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual. - SCHEDULED: A schedule triggered this execution launch. - SYSTEM: A system process was responsible for launching this execution rather an individual. - RELAUNCH: This execution was launched with identical inputs as a previous execution. - CHILD_WORKFLOW: This execution was triggered by another execution. +type ExecutionMetadataExecutionMode string + +// List of ExecutionMetadataExecutionMode +const ( + ExecutionMetadataExecutionModeMANUAL ExecutionMetadataExecutionMode = "MANUAL" + ExecutionMetadataExecutionModeSCHEDULED ExecutionMetadataExecutionMode = "SCHEDULED" + ExecutionMetadataExecutionModeSYSTEM ExecutionMetadataExecutionMode = "SYSTEM" + ExecutionMetadataExecutionModeRELAUNCH ExecutionMetadataExecutionMode = "RELAUNCH" + ExecutionMetadataExecutionModeCHILD_WORKFLOW ExecutionMetadataExecutionMode = "CHILD_WORKFLOW" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go new file mode 100644 index 0000000000..85c39859f0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go @@ -0,0 +1,20 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates all details for a single node execution entity. A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested sub-workflow, or even a separate child-workflow execution. The same task can be called repeatedly in a single workflow but each node is unique. +type FlyteidladminNodeExecution struct { + // Uniquely identifies an individual node execution. + Id *CoreNodeExecutionIdentifier `json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `json:"input_uri,omitempty"` + // Computed results associated with this node execution. + Closure *AdminNodeExecutionClosure `json:"closure,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go new file mode 100644 index 0000000000..e0532d1a27 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates all details for a single task execution entity. A task execution represents an instantiated task, including all inputs and additional metadata as well as computed results included state, outputs, and duration-based attributes. +type FlyteidladminTaskExecution struct { + // Unique identifier for the task execution. + Id *CoreTaskExecutionIdentifier `json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `json:"input_uri,omitempty"` + // Task execution details and results. + Closure *AdminTaskExecutionClosure `json:"closure,omitempty"` + // Whether this task spawned nodes. + IsParent bool `json:"is_parent,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go new file mode 100644 index 0000000000..82fc991c2f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidladminWorkflowNodeMetadata struct { + ExecutionId *CoreWorkflowExecutionIdentifier `json:"executionId,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlcore_schema.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlcore_schema.go new file mode 100644 index 0000000000..307252b185 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlcore_schema.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +type FlyteidlcoreSchema struct { + Uri string `json:"uri,omitempty"` + Type_ *CoreSchemaType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go new file mode 100644 index 0000000000..0530d49c8d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go @@ -0,0 +1,14 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type FlyteidleventWorkflowNodeMetadata struct { + ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go new file mode 100644 index 0000000000..bc715dd55e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// `ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array. +type ProtobufListValue struct { + // Repeated field of dynamically typed values. + Values []ProtobufValue `json:"values,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go new file mode 100644 index 0000000000..b7bb2d3e80 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ProtobufNullValue : `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. +type ProtobufNullValue string + +// List of protobufNullValue +const ( + ProtobufNullValueNULL_VALUE ProtobufNullValue = "NULL_VALUE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go new file mode 100644 index 0000000000..377cb9bbcd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. +type ProtobufStruct struct { + // Unordered map of dynamically typed values. + Fields map[string]ProtobufValue `json:"fields,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go new file mode 100644 index 0000000000..67738ccee2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go @@ -0,0 +1,26 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// `Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error. The JSON representation for `Value` is JSON value. +type ProtobufValue struct { + // Represents a null value. + NullValue *ProtobufNullValue `json:"null_value,omitempty"` + // Represents a double value. + NumberValue float64 `json:"number_value,omitempty"` + // Represents a string value. + StringValue string `json:"string_value,omitempty"` + // Represents a boolean value. + BoolValue bool `json:"bool_value,omitempty"` + // Represents a structured value. + StructValue *ProtobufStruct `json:"struct_value,omitempty"` + // Represents a repeated `Value`. + ListValue *ProtobufListValue `json:"list_value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go new file mode 100644 index 0000000000..cb02920221 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go @@ -0,0 +1,17 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +// Encapsulates a resource name and value. +type ResourcesResourceEntry struct { + // Resource name. + Name *ResourcesResourceName `json:"name,omitempty"` + Value string `json:"value,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go new file mode 100644 index 0000000000..d30481805c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go @@ -0,0 +1,21 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin +// ResourcesResourceName : Known resource names. +type ResourcesResourceName string + +// List of ResourcesResourceName +const ( + ResourcesResourceNameUNKNOWN ResourcesResourceName = "UNKNOWN" + ResourcesResourceNameCPU ResourcesResourceName = "CPU" + ResourcesResourceNameGPU ResourcesResourceName = "GPU" + ResourcesResourceNameMEMORY ResourcesResourceName = "MEMORY" + ResourcesResourceNameSTORAGE ResourcesResourceName = "STORAGE" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go new file mode 100644 index 0000000000..85abd1fbcc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type RuntimeMetadataRuntimeType string + +// List of RuntimeMetadataRuntimeType +const ( + RuntimeMetadataRuntimeTypeOTHER RuntimeMetadataRuntimeType = "OTHER" + RuntimeMetadataRuntimeTypeFLYTE_SDK RuntimeMetadataRuntimeType = "FLYTE_SDK" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go new file mode 100644 index 0000000000..ece75c9671 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go @@ -0,0 +1,22 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type SchemaColumnSchemaColumnType string + +// List of SchemaColumnSchemaColumnType +const ( + SchemaColumnSchemaColumnTypeINTEGER SchemaColumnSchemaColumnType = "INTEGER" + SchemaColumnSchemaColumnTypeFLOAT SchemaColumnSchemaColumnType = "FLOAT" + SchemaColumnSchemaColumnTypeSTRING_ SchemaColumnSchemaColumnType = "STRING" + SchemaColumnSchemaColumnTypeBOOLEAN SchemaColumnSchemaColumnType = "BOOLEAN" + SchemaColumnSchemaColumnTypeDATETIME SchemaColumnSchemaColumnType = "DATETIME" + SchemaColumnSchemaColumnTypeDURATION SchemaColumnSchemaColumnType = "DURATION" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go new file mode 100644 index 0000000000..33bc8433ad --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go @@ -0,0 +1,16 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type SchemaTypeSchemaColumn struct { + Name string `json:"name,omitempty"` + // The column type. This allows a limited set of types currently. + Type_ *SchemaColumnSchemaColumnType `json:"type,omitempty"` +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go new file mode 100644 index 0000000000..f05c42ef57 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go @@ -0,0 +1,18 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type SortDirection string + +// List of SortDirection +const ( + SortDirectionDESCENDING SortDirection = "DESCENDING" + SortDirectionASCENDING SortDirection = "ASCENDING" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go new file mode 100644 index 0000000000..46eab08cba --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go @@ -0,0 +1,19 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +type TaskLogMessageFormat string + +// List of TaskLogMessageFormat +const ( + TaskLogMessageFormatUNKNOWN TaskLogMessageFormat = "UNKNOWN" + TaskLogMessageFormatCSV TaskLogMessageFormat = "CSV" + TaskLogMessageFormatJSON TaskLogMessageFormat = "JSON" +) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go new file mode 100644 index 0000000000..d8bc6fdc65 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go @@ -0,0 +1,43 @@ +/* + * flyteidl/service/admin.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package flyteadmin + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the swagger operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/openapi.go b/flyteidl/gen/pb-go/flyteidl/service/openapi.go new file mode 100644 index 0000000000..7bd6621cd2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/openapi.go @@ -0,0 +1,244 @@ +// Package service Code generated by go-bindata. (@generated) DO NOT EDIT. +// sources: +// ../service/admin.swagger.json +package service + +import ( + "bytes" + "compress/gzip" + "fmt" + "io" + "io/ioutil" + "os" + "path/filepath" + "strings" + "time" +) + +func bindataRead(data []byte, name string) ([]byte, error) { + gz, err := gzip.NewReader(bytes.NewBuffer(data)) + if err != nil { + return nil, fmt.Errorf("Read %q: %v", name, err) + } + + var buf bytes.Buffer + _, err = io.Copy(&buf, gz) + clErr := gz.Close() + + if err != nil { + return nil, fmt.Errorf("Read %q: %v", name, err) + } + if clErr != nil { + return nil, err + } + + return buf.Bytes(), nil +} + +type asset struct { + bytes []byte + info os.FileInfo +} + +type bindataFileInfo struct { + name string + size int64 + mode os.FileMode + modTime time.Time +} + +// Name return file name +func (fi bindataFileInfo) Name() string { + return fi.name +} + +// Size return file size +func (fi bindataFileInfo) Size() int64 { + return fi.size +} + +// Mode return file mode +func (fi bindataFileInfo) Mode() os.FileMode { + return fi.mode +} + +// Mode return file modify time +func (fi bindataFileInfo) ModTime() time.Time { + return fi.modTime +} + +// IsDir return file whether a directory +func (fi bindataFileInfo) IsDir() bool { + return fi.mode&os.ModeDir != 0 +} + +// Sys return file is sys mode +func (fi bindataFileInfo) Sys() interface{} { + return nil +} + +var _adminSwaggerJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xfd\x73\xe3\x36\x92\x3f\xfc\xfb\xfe\x15\x78\xfc\xbd\xaa\x64\x76\x65\x3b\xd9\xbd\xbd\xba\x67\x9e\xba\x7a\x4a\xb1\x3d\x13\x6f\x3c\xb6\xcf\x2f\x99\xda\x3a\x6d\x39\x10\x09\x49\x88\x29\x80\x0b\x80\xf6\x68\xaf\xf2\xbf\x7f\x0b\x8d\x17\x02\x14\x49\x89\x92\xec\xd1\x4c\x78\x57\x77\x19\x4b\x22\x08\x34\x1a\x8d\x7e\xf9\x74\xf7\xff\xfe\x01\xa1\x03\xf9\x8c\xa7\x53\x22\x0e\xde\xa2\x83\x3f\x1f\x7d\x77\x30\xd0\x9f\x51\x36\xe1\x07\x6f\x91\xfe\x1e\xa1\x03\x45\x55\x46\xf4\xf7\x93\x6c\xa1\x08\x4d\xb3\x63\x49\xc4\x13\x4d\xc8\x31\x4e\xe7\x94\x1d\xe5\x82\x2b\x0e\x0f\x22\x74\xf0\x44\x84\xa4\x9c\xe9\x9f\xdb\x7f\x22\xc6\x15\x92\x44\x1d\xfc\x01\xa1\xdf\x60\x78\x99\xcc\xc8\x9c\xc8\x83\xb7\xe8\x7f\xcc\x43\x33\xa5\x72\x37\x80\xfe\xb7\xd4\xbf\xfd\x07\xfc\x36\xe1\x4c\x16\xd1\x8f\x71\x9e\x67\x34\xc1\x8a\x72\x76\xfc\xab\xe4\xac\xfc\x6d\x2e\x78\x5a\x24\x6b\xfe\x16\xab\x99\x2c\xd7\x78\x8c\x73\x7a\xfc\xf4\xfd\x71\x32\xa3\x59\x2a\x08\x3b\x56\x58\x3e\x3e\x90\x4f\x24\x29\xf4\xc3\xf2\xf8\x7f\xe3\x0f\x1e\x68\x7a\xc4\x78\x4a\xe2\x4f\xa2\x3f\x72\xc1\x7f\x25\x89\xfa\x6d\x83\x47\x53\x3e\xc7\x94\x6d\xf2\x24\xc3\x73\xb2\xe6\x73\xf0\x09\x4d\x6b\x7f\x0d\x9f\xac\x58\x83\xfb\x4d\xcb\x64\xdd\x4f\x1a\x67\xe5\x7e\x60\x59\xa5\xf6\x37\x82\x28\xb1\x78\xc0\x4a\x91\x79\xae\x7e\xf3\x5b\x86\xd0\xc1\x94\xa8\xe0\x4f\x84\x0e\x78\x4e\x04\x6c\xf6\x79\xaa\x19\xf0\x82\x4a\x75\xc9\x53\x72\xe6\xb7\xf1\x1d\x17\x77\x58\x3e\x5a\x5e\x83\x67\x04\x91\x39\x67\x92\xc8\x68\x28\x84\x0e\xfe\xfc\xdd\x77\x95\x8f\x10\x3a\x48\x89\x4c\x04\xcd\x95\x65\xf1\x60\x20\xf8\x1a\x38\x1b\x2f\x3d\x86\xd0\xc1\xbf\x09\x32\xd1\x4f\xfc\x9f\xe3\x94\x4c\x28\xa3\x86\xab\xe0\x00\x45\x53\xd4\x73\x3e\x88\x1e\xfe\xed\x0f\x75\xff\xfe\x2d\x58\x42\x8e\x05\x9e\x13\x45\x44\xc9\xf9\xe6\x7f\x2a\x93\xd7\xdb\xa0\xe7\xb0\x29\x2b\x57\x57\x5b\x21\xc6\x25\x9e\x13\xc4\x27\x48\xcd\x08\xb2\x4f\xc0\xbf\x05\x91\xbc\x10\x09\x41\x63\x92\x71\x36\x95\x48\xf1\xa3\xea\x50\x14\x46\xd0\x87\xb2\xfa\x8d\x20\xff\x2c\xa8\x20\x7a\x43\x95\x28\x48\xe5\x5b\xb5\xc8\x61\x49\x52\x09\xca\xa6\x21\xe1\x7e\x1b\xbc\x00\x21\x0c\xaf\x77\xa0\x83\x79\xa0\x91\x0c\x23\x36\x74\x3f\x49\x30\x43\x63\x82\xb4\xbc\xa3\x29\x11\x24\x45\x58\x22\x8c\x64\x31\x96\x44\xa1\x67\xaa\x66\x94\xe9\xbf\x73\x92\xd0\x09\x4d\x1c\x85\xbf\x54\x4a\xc2\x83\xed\x74\xbc\x97\x44\x20\x2e\x90\x5c\x48\x45\xe6\x7a\xc1\x4f\x34\x25\x29\x7a\xc2\x59\x41\xd0\x84\x8b\x88\xac\x5f\x10\x21\xac\xe4\xdd\xd7\x09\x57\x84\xff\xef\xe0\xd4\xc7\x57\x59\x7f\xbc\x3b\x90\x6c\xdd\x73\xfc\xa5\x9e\xde\x8a\x86\xb2\x62\xa9\xb7\x6e\xfb\x9c\xee\x6b\xf9\x64\xef\x97\x19\x29\x59\xbb\x9e\x24\x65\x8a\x68\x13\xa3\xf2\xf5\x84\x8b\x39\x56\xf6\x07\xff\xf1\xef\xbb\xdb\x2b\x47\xed\x07\x98\x40\xfb\x8e\x9d\xa7\x84\x29\x3a\xa1\x44\xc2\x46\xf9\xf3\xa7\x1f\xd5\xbb\xe7\x8f\xb5\x9a\x61\x2d\xd8\xa8\x44\xd4\x3c\x42\x04\x4a\xb8\x30\xea\x63\xda\x22\xde\xfe\x59\x10\xb1\x68\x21\xdc\x04\x67\x72\xc5\xf6\x56\xbe\x25\xac\x98\x57\x34\x3d\xf8\xfc\xfe\xf2\xf6\xfa\xec\xe4\xfc\xdd\xf9\xd9\x69\xe5\x11\x84\x0e\xee\x86\xb7\x3f\x2d\x7f\xfa\xf1\xea\xe6\xa7\x77\x17\x57\x1f\x97\xbf\xb9\x18\xde\x5f\x9e\xfc\xf8\x70\x7d\x31\xbc\x8c\xf5\xd1\x7f\x2c\x11\x74\x82\x8b\x0c\xf6\x31\x9c\x40\xc7\xdd\xcc\xe8\x9c\xae\xba\x6a\xce\x59\xaa\x8d\x39\xbb\x55\xac\x98\x8f\xb5\x82\x50\xee\x91\xde\x04\x2d\x64\x05\x51\x85\x60\x24\x7d\x81\x0d\x79\x21\x56\xe6\x8f\x64\x95\x68\x39\x37\xd7\x4c\x82\x25\xf0\xe5\xbc\xc8\x14\xcd\x33\x82\x72\x3c\x25\xd2\x52\xa1\xc8\x94\x1c\xe8\x9f\x0d\x90\x36\xd1\x89\x38\xf4\x62\x17\x5e\xe1\x6e\xa1\x42\xc2\x27\x68\x42\x54\x32\x33\xc4\x24\x9f\x14\x0c\x35\x62\x70\x0f\x01\x8d\x8e\x46\xec\x4f\x1c\x26\x80\xb3\x97\x63\xee\x8e\xb4\x9a\xd0\x0c\x2c\x9d\x75\x59\x05\xa3\x8c\x4a\xa5\x09\x64\x9f\x44\x39\x96\xd2\xdc\xbf\x66\x06\x47\x23\xf6\x81\x0b\x82\x28\x9b\x70\xc4\x19\xdc\xd1\x4a\x14\x89\xa2\x6c\xea\x1f\x7a\x8b\x46\xc5\x77\xdf\xfd\x25\xb9\xa0\xec\x11\xfe\x45\xf6\x91\x38\x92\x0b\xf5\x30\x5e\x1c\x3d\x92\xa5\xf7\x36\x13\x88\x21\xac\x94\xa0\xe3\x42\x11\xcd\x14\x7a\x0c\x77\x69\x81\x65\x6c\xae\x6c\x79\x34\x62\x77\x57\xa7\x57\xdf\x3e\x62\x25\xf8\x14\xb3\x37\x6f\xd1\x30\x4d\x2d\x0d\xf5\x6f\x68\x0a\xb6\x37\x9a\x11\x41\x8e\xd0\x9d\x16\x95\x72\xc6\x8b\x2c\x45\x8c\x3c\x11\xa1\x19\x4f\xdf\x2e\x8b\xbd\xa3\x56\x4a\x05\x49\xd4\xea\xdb\x3d\x96\x3f\xfe\x29\x4d\x34\x9c\xe7\xd9\xc2\x90\xee\x91\x2c\x40\xbd\x59\x26\xdf\x2b\xf0\xcb\x9a\x37\xc5\xe9\xd9\xed\xc9\xd9\xe5\xe9\xf9\xe5\xfb\x65\xc1\x3f\xf4\x5f\xad\x2b\xf6\x83\xd1\x6a\x7d\x15\xc1\xa3\x07\x0a\x4f\xab\x5e\x8a\x83\x61\x3a\xa7\xec\xd6\xf8\x14\xcb\x11\xfe\xf1\x87\x70\x1c\xbb\x9f\xde\x51\x97\x62\x85\x8f\x43\xff\x5c\xe4\xad\x0a\xdd\x52\xce\xff\xd4\xc5\x73\xf4\x9e\x28\xef\x91\x39\xc5\x0a\xef\x97\xc3\xe8\x23\x17\x8f\x93\x8c\x3f\xfb\x29\xbe\x27\x4a\xcf\xf2\xc6\xce\xec\xa5\xfd\x47\x5f\xb1\x6d\xd8\x1b\x81\xad\xb4\xf9\x22\xbd\x36\x2f\x2f\x87\x62\x17\x8f\x11\x46\x0d\xb1\x80\x46\x57\x7f\x83\x27\x3f\x70\xd4\x77\x14\x60\x91\x5b\x79\xff\x84\x58\x34\xbd\xd7\x17\x60\xbf\x0b\xff\x76\xef\xbe\xde\x90\x50\x5f\xa4\x9c\x5b\x53\x84\xbf\x9a\xf3\xf9\xe5\xe5\xee\x52\x90\xb6\x4b\x54\xb6\x43\x18\x76\xed\xb8\xeb\x8a\x40\x6b\x6d\x64\xb5\x2e\x94\xba\x1c\x3b\xad\x0d\x96\x6e\x15\x1d\x7d\x4f\xd4\x1d\x96\x8f\x7b\x7c\x45\x44\xd3\x7b\xfd\x2b\xe2\x77\x1a\x14\xed\xa3\xa0\x2f\x48\xba\xaf\xfd\x62\xd9\xdf\x38\xe7\xef\x20\xb0\xd9\x47\x32\x3b\xd1\xe8\xeb\x0a\x5d\x7e\xad\xb1\xca\x2f\x33\x38\xd9\x47\x23\xf7\x37\x1a\xf9\xa2\x76\x09\x79\x22\x4c\x49\xf0\x08\x85\x8a\xf3\x41\xce\x65\xbb\x3a\x7e\x22\x08\x56\x04\xbc\x22\x7a\x88\xfd\xd2\xc4\x23\x67\x0d\xcc\xef\xb5\xf4\xf0\x31\x4f\x97\xd8\xd5\x70\x72\xdd\x37\xed\x47\x7e\x67\x4b\xff\x67\x41\xd6\x43\x69\xbe\x20\x87\x69\xf1\xb2\x09\x87\x81\x51\xb5\x7f\x1c\x16\xd9\x7a\xbf\x2f\x0e\xab\x5b\xfa\x3e\x70\xd8\xb3\x0d\x33\x6d\xc2\x65\x3e\x44\xb5\x7f\x9c\xb6\x14\x3d\xfb\x7d\x71\x5b\xd3\xf2\x3f\x2f\xc7\x79\x1f\x5e\x3b\xaf\x55\xf8\xc1\xf0\x1a\xc2\xc8\xb1\x2a\xf2\x03\x85\x3c\x57\xcb\xa1\x67\x75\xbf\xfc\xfc\xdc\xe9\xa7\x65\x66\xb9\x06\x5b\x86\x6f\x3d\xf8\xf7\x35\xe6\x79\x63\xe1\x51\x60\xc9\x8c\x71\x8a\x84\xd9\x7c\xa3\x54\xce\xf1\x02\xcd\xf0\x13\x41\x13\x4c\x33\x63\xf4\x58\x60\xc7\x92\x46\x59\x2e\xb0\x6d\x42\xff\x6f\xb7\x09\xe1\x78\x3a\x82\x4c\x88\x20\x2c\x31\x40\x15\xa3\xec\x26\x38\x43\xfa\xbf\x6a\x61\x7e\x33\xd3\x06\x68\x26\x08\x4e\x17\x68\x4c\x08\x43\x82\x4c\xa9\x54\xda\x36\x5d\x77\xce\x5f\xc7\xd9\x5e\x62\x9e\x3d\x39\xd4\xc7\x82\x64\xb8\x60\xc9\xac\xd3\xe9\xbe\xb1\x0f\x75\x3d\xdf\xee\xb9\xfe\x84\xf7\x27\xbc\x86\xa0\x5f\xc7\x09\x77\x4c\xbe\x3f\x67\xbc\x09\x81\xd5\x35\x63\xaf\xcc\xd6\xdb\xd3\x73\xfb\x1a\x29\x7a\x5f\xb7\x97\xba\xf7\x4e\x6f\x0f\xb1\x5a\xe5\x95\x1e\xb1\xbb\x99\xa6\xc3\x7c\x4c\x99\xc1\xe5\xf2\x89\xe7\x90\x3f\x39\x72\xfd\x09\xe9\xf7\xa1\x82\xd1\x7f\x16\x24\x5b\x38\x6f\xa2\x73\x40\x06\xa3\x79\xf0\x2a\x3a\x44\x9a\xce\x44\x28\xa0\x37\x67\x8a\x7c\x52\x12\x1d\xa2\x8c\x3e\x12\xf4\x8d\x3e\x1d\x68\x78\x7d\xfe\xcd\x00\x7d\x73\x61\xee\xef\x3c\xc3\x4c\x7e\xb3\x37\xb0\xdf\x3e\xd5\x60\x87\xa9\x06\x54\xf6\xa9\x06\x7d\xaa\xc1\xba\x04\xea\x53\x0d\xfa\x54\x83\xe0\xbb\x2f\x23\xd5\xe0\x55\xb2\x0c\xf6\x54\xd7\xed\xf5\xdc\x5e\xcf\xed\x53\x09\xfc\xd2\x76\x25\x67\xdc\xd3\x07\x29\xc9\x88\x22\xad\x52\xe2\x8e\x88\xb9\x56\xe1\xf7\xde\x63\xed\x27\xda\xe7\x21\xf5\xc2\xa3\x17\x1e\x9b\x2c\x6d\x7f\xfc\x8b\xc1\x61\xfe\xac\x0e\x46\xe3\xe5\x7c\xc8\x33\xcc\x1e\x68\x2a\x8f\xff\xb7\x54\xbf\x36\xf4\x2f\x1a\xa7\xc4\x75\x86\xd9\x79\xba\x67\x2e\x46\x7d\x9a\xd3\x33\xf0\x7b\x7b\x24\x98\x78\x0d\x77\xe3\x36\x62\x14\x2b\x70\x02\x61\xca\x8c\xb1\xe2\x5d\x48\x42\xee\xc9\xa9\xda\x46\x92\x06\xab\x09\x84\xa9\x93\x91\x01\x25\xf6\x64\xad\xbd\x73\x6b\x87\xce\x2d\xf2\xf5\xfa\xb6\x7a\xf7\xcd\x26\xd4\xea\xdd\x37\xe1\x77\x5f\x86\xfb\x26\xd0\x20\x36\x43\x17\xb1\xd4\x87\x9b\x11\x46\x59\x19\xd3\x40\xe5\x05\xbe\x12\x6e\x54\x6a\x1d\xfb\xa5\x72\x94\xf3\xea\xe1\x08\x3d\x1c\x61\x7b\xee\xd9\x17\x63\x61\x77\x78\x84\x72\x8d\xf2\xcf\xfb\x7a\x76\x7b\x48\x42\xef\x6d\xf9\xfc\xde\x96\x1e\x92\xd0\x5b\x6d\x7b\x60\xb5\xf5\x90\x84\x1e\x92\xd0\xdb\xb4\x6b\x53\xab\xb7\x69\xc3\xef\xbe\x3c\x9b\x76\xc7\xa0\x84\x8a\xca\xdb\x6b\xbc\xbd\xc6\xdb\x6b\xbc\x5f\x8d\xc6\xbb\x1f\x14\xee\xd5\xdd\x5e\xdd\xed\xd5\xdd\x5e\xdd\xed\xd5\xdd\x5e\xdd\xb5\x4f\xed\x52\xdd\x85\x7f\xb9\x2a\x89\x1d\x01\xb9\xfb\x1f\xa7\xe9\xb5\xde\x5e\xeb\xdd\x6f\xad\x77\x6f\x16\xf4\xf5\x15\x42\xeb\x4b\x89\x2d\x5d\x61\x5f\x43\x29\x31\xf7\xf4\x41\x5e\xb4\xdf\x50\xf7\x79\xfa\x45\x80\x09\xcc\x3c\x7b\x20\x78\x7f\x65\xf5\x57\x56\xa7\x05\x7d\x55\x57\xd6\x1e\xe1\x53\x9c\x40\xfa\xac\xf8\x94\xfd\xef\x13\xb2\x37\xf7\x89\xeb\x35\xbf\x5c\x83\xb1\x6f\x0e\xe2\xbe\xed\x9b\x83\x7c\x16\x42\x7d\xad\xc9\x47\x5f\x4f\x73\x90\x25\x39\xeb\xea\x87\x3d\x34\x48\xdb\xfa\xef\xbd\xcc\xad\xff\x7a\xa3\xd0\x6a\x24\xca\xf6\x2c\xba\x1a\xcd\xed\x35\x02\xac\xad\xdb\xf2\xd5\x09\xdc\x36\x26\xeb\xc5\xee\x9a\xe4\xfa\x5a\x85\x6f\x1f\x12\xdd\x61\x48\xb4\xef\x7f\xdc\x87\x44\xfb\x90\xe8\xda\xd4\xea\x43\xa2\xe1\x77\x5f\x46\x48\xd4\xde\xd5\xb2\xab\xfe\x79\xed\x9e\xdb\x2b\xcd\xd3\xcf\xaa\xa3\xc2\xb9\x95\xab\x7d\x75\xfd\x61\x9f\xf4\xe7\x14\x4c\xac\xd5\x2c\xd0\x9c\xcc\x81\xb7\x9a\x56\x44\xcd\xa5\x6a\xc4\x66\x94\xeb\x25\xad\x76\x7f\xe8\xee\xe6\xd8\x35\xf9\xef\xcf\xdf\x7d\xdf\x2d\xd7\x4e\x16\x49\x42\xa4\x9c\x14\x99\x4d\x99\x13\xdb\x24\xfa\x7d\xfe\xcc\xc3\x9d\x58\x41\x9f\xdd\x4b\xba\xc4\x05\x9f\xd5\x49\xda\x37\xf5\xdc\x61\x53\xcf\xbd\x11\x37\x91\x3f\x37\x9e\x62\x47\x99\xdf\x77\xf2\x44\x1d\x1d\x7a\x7d\x27\xcf\xbe\x93\xe7\x76\x2b\xef\x3b\x79\xf6\x9d\x3c\xf7\xf0\x88\xf6\x9d\x3c\xbf\x24\x34\x40\xdf\xc9\xb3\x87\xdf\xed\x27\xfc\x6e\x3d\x3b\x64\x6d\x23\x64\x5d\x0b\x64\x3d\xf3\xa3\xd9\xf6\xe8\xea\xfb\x89\xd4\xee\x3d\xf3\x00\x45\x73\x7b\x8d\xd8\xe3\xef\xd4\x26\xe8\x0d\x82\x17\xa1\xdb\xd7\x6a\x0d\xec\xb9\x29\xd0\x47\x4d\x77\x19\x35\xed\x83\xa6\x7d\xd0\x74\x5d\x02\xf5\x41\xd3\x3e\x68\x1a\x7c\xf7\x65\x04\x4d\xad\x21\xb7\x8b\x2a\xe2\x5a\x5f\xed\xeb\x87\xf7\xf5\xc3\xfb\xfa\xe1\xbd\x46\xf5\x7b\xd4\xa8\x7a\xa5\x61\x13\x6a\xf5\x4a\x43\xf8\xdd\x97\xa3\x34\xec\xa2\x70\xb8\x1e\xa7\x4b\xc5\x70\xad\x61\xec\x97\x7a\xa1\x67\xd4\x57\x09\xef\xab\x84\x6f\xc3\x37\x9f\x1d\x5a\xb4\xbb\xc2\xe0\x7a\x59\xfb\x56\x12\x5c\xcf\xa9\x2f\x8d\xd8\x67\xdc\xef\x7f\xc6\xfd\xde\x95\x46\xdc\x1b\x65\xb1\x37\xc1\x76\x68\x82\xf5\xd5\x11\x7b\xaf\x76\x6f\xa0\xae\x4d\xad\xde\x40\x0d\xbf\xfb\x82\x0c\xd4\x17\xa8\x02\x0e\xfa\x6d\xaf\xde\xf6\xea\x6d\xaf\xde\x7e\x05\xea\xed\x7e\x50\xb8\xd7\x6d\x7b\xdd\xb6\xd7\x6d\x7b\xdd\xb6\xd7\x6d\x7b\xdd\xd6\x3e\xb5\x13\xdd\x76\x9b\x92\xdf\xfb\x19\x68\xe9\x55\xdc\x5e\xc5\xdd\x6f\x15\x77\x6f\x16\xf4\xf5\x65\x49\xf5\x79\x46\x4b\xf7\xd5\x57\x9b\x67\xe4\xeb\x9c\xed\x06\x98\xf8\xd1\x0e\xd7\x83\x13\x7b\x70\x62\x0f\x4e\xec\xbd\x07\x3d\x38\x71\x3d\x6e\xe9\xed\xe3\xde\x3e\x0e\xbf\xfb\x32\xec\x63\xa7\x3c\xec\x02\xa0\xe8\xc6\xea\x02\x52\x74\xda\xc6\x7e\xa9\x1a\x6e\x56\x3d\x58\xb1\x07\x2b\x6e\xcb\x3b\x9f\x15\xb0\xe8\x8f\xf7\xce\x40\x8b\x6e\x79\xfb\x06\x5c\x74\xf3\xea\xa3\xbb\xbd\xeb\x6b\xff\x5d\x5f\x7b\x17\xdd\xdd\x1b\x65\xb2\x37\xd1\xfa\x00\x6f\x1f\xe0\xed\x0d\xd8\xde\x80\xed\x0d\x58\xfb\xd4\x96\x1a\xee\xe6\x00\x46\xaf\xeb\xf6\xaa\x6e\xaf\xea\xf6\xaa\xee\x57\xa2\xea\xee\x07\x85\x7b\x3d\xb7\xd7\x73\x7b\x3d\xb7\xd7\x73\x7b\x3d\xb7\xd7\x73\xed\x53\x3b\xd3\x73\xb7\x01\x33\xee\x77\x40\xa6\x57\x77\x7b\x75\x77\xbf\xd5\xdd\xbd\x59\x50\x0f\x6a\xec\x41\x8d\x4b\xdf\xec\x2f\xa8\xf1\x0f\x96\x11\x0e\x02\xd9\xef\x2f\x89\x83\x1f\x32\x3e\xbe\x5b\xe4\x44\xff\xf7\x94\xce\x09\x93\xa0\x57\x50\xb5\x08\xaf\xb7\x06\x02\x2f\x93\xf6\xe0\xf6\xfc\xf2\xfd\xc5\x59\x78\xc7\x7d\xb8\xbf\xb8\x3b\xbf\x1e\xde\xdc\xb9\x19\xfa\x55\x85\xb4\xb0\xcf\x45\x37\xf4\x09\x9f\xe7\x58\x50\xc9\xd9\xd9\xa7\x5c\x10\xa9\xa7\x76\x05\xf7\x2a\x17\x9b\xcd\xee\xec\xbf\xc3\x99\x5d\xc6\x7f\xbe\xbf\x8b\xff\x8a\x56\x71\x71\x17\xff\x75\xd6\xba\x9a\x60\xe0\xea\x09\x3a\x44\xef\xef\xde\xa2\xf7\x10\xc3\x16\xe8\x6e\x86\xd9\x88\xa1\x43\x74\x71\xf7\x16\x5d\x10\x29\xe1\x93\xf2\x61\x45\x55\x06\x6b\xfb\x81\x32\x2c\x16\xc8\x2d\x1f\xc4\x23\xc1\xc9\x0c\x11\x4f\x9a\x2a\xf1\xd8\xaf\x05\x03\xb5\xb2\xa4\xde\x05\x9f\xd2\x04\x67\xdb\x11\x71\x78\x19\x9e\x97\x83\xab\x9b\x56\x52\x84\xbf\x5e\xa6\xc5\xf0\xf2\xf4\x2d\x0a\xa6\x5a\xb3\xf2\x4b\x22\x15\x49\xf5\x05\x98\x1a\xe6\xd5\x16\x01\x59\x04\x17\xe3\xaf\x9c\x32\x92\xa2\x42\x6a\xf3\x61\x78\x79\x8a\x8e\xd1\xd5\xcd\x88\x5d\x89\xd4\x58\xf5\x44\xdf\x28\xc6\xa2\xa0\x12\x31\xae\x10\x9d\xe7\x5c\x28\xcc\x94\xbe\x4c\xb5\x20\xe3\x96\x22\x12\x61\x41\xd0\x09\x9f\xcf\x0b\x85\x15\x7d\x22\x4b\x44\x65\x46\x55\xbf\x25\xea\x3c\x05\x3f\x61\x0d\x0d\xf9\x38\x52\x74\x0e\x72\xa1\xc7\x57\xb4\xa2\xe7\x1d\xd0\x74\x49\xf1\x73\x43\x60\x21\x70\x2c\x06\x0f\xa8\x22\xf3\xea\xef\xd7\x6c\xe5\xfe\x5b\xad\x06\xec\xab\xfa\x7f\x20\x0a\xa7\x58\xe1\xf2\x03\x9e\x92\xcd\x98\xe3\xc3\xf0\xf2\x7e\x78\x11\xf2\xc7\xed\xc9\x8f\x67\xa7\xf7\x17\x91\x90\x3d\xb8\xfd\xfb\xed\xdd\xd9\x87\xf0\x93\x9b\x33\x23\x42\xc3\xcf\x4e\x7e\x3c\xbf\x38\x7d\xf0\x42\xb7\x8d\xcd\x2a\xef\xad\x72\xda\xdd\x8c\xa0\x39\x51\x33\x9e\xa2\xf1\x02\x3d\xcf\x28\x78\x2b\xa8\x44\xbe\x82\x3a\x7a\xc6\x12\x65\xe0\xce\x22\xe9\xd1\xc8\x9c\x4a\x33\xea\x5b\xcd\x70\xc8\xbe\x2c\x78\x62\xce\x53\x32\xb0\xbf\xd1\x2c\x95\x99\x6b\x11\x2b\x6d\x09\xd7\x0f\xac\xdf\x8e\x19\xa2\x2c\xa5\x4f\x34\x2d\x70\x76\x04\xef\xf1\x34\x7a\x8b\x86\x48\xeb\xf1\x69\x91\x11\xa4\x04\x9d\x4e\x41\xe5\xab\x4c\xd5\x8c\x66\x1f\x05\x4a\xc2\x73\xbe\x7c\x7d\xa2\x05\x89\x7e\xad\xb5\x2f\xe8\x38\x33\x0a\x95\x79\x50\x1f\x93\xca\x88\x02\xab\x19\x11\x75\x53\x73\xfb\xf2\xd6\xd8\xe1\x0d\xcb\x82\xc6\x9b\x25\x7e\x89\xb2\xbc\x50\xd2\x68\xaa\xb9\x20\x4f\x94\x17\xc1\xa3\x66\xe0\x78\x73\x6b\x87\x2f\x09\x00\x64\xe3\x30\xc7\x72\x98\xf8\x6c\xde\x38\xdf\x9d\xfb\xc7\x19\x53\xa2\xf6\x16\x5b\xf7\x78\x5a\x1d\x29\x3a\x9f\xf5\xa6\xd4\xd2\xbb\x2f\xab\x4a\xef\x32\x2a\xcc\x2a\x4a\xfa\x25\x47\x07\xb5\x36\x16\x28\xc2\x4d\x02\xa2\x46\xd7\x29\x65\xe6\xcf\xa0\x42\xcf\x0b\xa9\xb4\x88\xc4\xb6\x25\xea\xe3\x7f\x4a\xf4\xcf\x02\x03\xb6\xec\x08\xdd\x12\x32\x62\x33\xa5\x72\xf9\xf6\xf8\x78\x4a\xd5\xac\x18\x1f\x25\x7c\x7e\xfc\x58\x8c\x89\x60\x44\x11\xa9\x2d\xe4\x39\xd6\xfc\x42\xc4\xe2\x78\x9c\xf1\xf1\xf1\x1c\x4b\x45\xc4\x71\xfe\x38\x05\xf3\xd9\xa9\x7b\xc7\x7e\xd8\x29\xff\x3f\x17\x7f\xf9\xee\xf0\xe2\x3f\xbf\x3b\x58\x96\x3e\x4d\xa7\xf3\x8c\x25\x38\x97\x45\x66\xdd\x6c\x22\xa4\x0d\x60\x21\x81\x12\xab\xf6\xfb\x32\xde\xae\x0e\x42\xeb\xfe\xf2\xa7\xcb\xab\x8f\x97\x91\xe8\xb9\xbe\x8f\xb4\x81\xf8\xcf\x0f\x67\x1f\xae\x6e\xfe\x1e\x09\xb4\xbb\xab\x9b\xe1\xfb\x76\xad\xa0\xfa\x9a\x2a\x19\x7e\x62\xfc\x99\xc5\xab\x97\xd5\x45\x17\x4c\xd1\x39\x71\x02\xdb\xfe\x79\x67\x56\xba\xc1\xca\xaf\xee\x7e\x3c\xbb\x09\xd7\xf1\xee\xe2\xef\x77\x67\x0f\xb7\xa7\x3f\xb5\xae\xc4\x3c\x16\xcd\xec\x16\xbc\x0f\x27\x3c\x2b\xe6\x2c\xfc\xf7\xe6\x73\x3b\xbf\xbc\x3b\x7b\x5f\x9d\xdd\xd5\xf0\x2e\x26\xfb\x4d\xec\x7a\x3a\xf8\xe1\xea\xea\xe2\x6c\x18\xed\xe5\xe9\xf0\xee\xec\xee\xfc\x43\xa4\xcf\x9d\xde\xdf\x0c\xef\xce\xaf\x2e\x5b\x97\xe9\x66\x50\xb3\x50\xbd\xac\x70\x99\xbb\x96\x33\x6b\x1d\xf3\xa1\x0d\xeb\x98\x83\x72\x18\x64\x87\x18\x5f\x10\x98\x65\x87\xde\x94\x4e\xcc\x4c\x6b\x65\x8d\x8a\xb7\x09\x35\xcb\xba\xd6\x8d\x6e\x13\x79\x77\x7e\x0a\x30\x2f\xeb\xd8\xc5\x59\xc6\x9f\x8d\x73\x7d\x4e\xb5\xa2\x27\x09\xf8\xd8\xf5\x4f\x24\x4a\x0a\x21\x08\x53\xd9\xe2\xa8\x46\x9c\xc4\xdb\xc2\x85\x3a\xf5\xee\xd7\x8d\x18\xae\xd6\x97\xb9\xec\xc5\xac\x65\x95\xaa\xe7\xd2\x4d\x0b\xea\xe2\xf0\xe9\x07\x22\x25\x9e\x92\x77\x2e\xba\xb3\x23\x21\x75\xfb\x73\xf8\xe7\xdf\x6e\x57\xf0\xb3\x1b\x22\x9a\x21\xb8\x01\x87\x8c\x71\x85\x63\xdb\x70\x03\x4e\x36\x0e\xea\x26\x5e\xae\x8c\x62\xdf\x6e\xb4\x7a\x9c\x5d\xd7\x8f\x59\x47\xa5\x50\xc7\x6d\xe3\xb8\x0f\x38\xd7\xac\x94\x14\x52\xf1\x39\xc2\xe5\x1a\x6d\x78\x0f\xe7\x5a\x67\x83\x00\x96\x3e\x1f\x81\x3a\xe4\x9d\x34\xeb\x5f\x62\x25\x09\xad\x9f\x7e\xf9\x25\x91\x5a\x18\x44\x5e\x6d\x44\x6e\x52\xa8\x42\xe8\xeb\x5a\x2b\x96\xe8\x5b\x72\x34\x3d\x42\x57\x3f\x9f\xdd\xdc\x9c\x9f\x9e\x0d\xd0\xf0\xfa\xfa\xec\xf2\x74\x80\x88\x4a\xde\x38\xe3\x07\xce\x25\x49\x47\x4c\x71\xeb\x8b\x59\xa0\x19\x7f\xd6\xef\x9a\x13\x31\x25\xd1\x9a\xed\x8f\x11\xe0\xce\xcb\x16\xdf\x70\xc1\x96\xd3\xd2\xf7\xc9\x51\x1d\x87\x14\x6a\xb6\x0d\x6b\x60\x29\x8b\x39\x1e\x67\xe4\x81\xe2\xf9\x83\xe0\xd9\x2a\x91\x57\x2b\xa6\x4a\xe5\xe4\x41\x1a\xbf\xc7\x03\x4e\x12\x5e\x30\xb5\xf6\x68\xab\xf6\xf1\x14\xc8\x24\x51\x4e\xc4\x9c\x82\xd5\xac\x15\x59\xc9\x13\x8a\x95\xd3\x74\xcb\xe6\x73\x28\x01\x4b\x1e\x34\x54\xd0\xa9\xb3\x32\x22\x0e\x5b\x52\x47\xcb\x53\xe3\x2e\xde\xca\x72\xdc\x84\x7a\x5d\x2f\x9a\x2a\x65\xa8\xcc\x33\xbc\x58\x52\x59\x57\x51\x54\x2b\x66\x32\xc7\x09\x29\xdd\xd5\xce\xb3\x9f\xf0\xf9\x9c\xb3\x6c\xe1\x03\xc9\x29\x9d\x40\x4a\x84\xd2\xd4\x46\x63\xa2\x9e\x09\x61\xe5\xa7\xc8\xee\x3a\xa2\x4c\x2a\xcc\x12\x88\x86\xc1\x41\x19\x69\x5a\xa5\x05\x88\xff\xd1\xc1\x00\x8d\x0e\x52\xf2\x44\x32\x9e\xcf\x09\x53\xfa\x03\xa2\x6a\xf7\xe2\x6c\x8e\x69\x76\xc9\x15\x9d\xd0\x04\x37\xdd\x1d\xeb\x6e\x8b\x20\x09\xcd\x29\x61\x4a\x3e\x10\x3d\xee\x8b\x5a\xf7\xab\xee\x5a\x17\xad\x86\x99\x20\x9c\xa6\x82\x48\x49\xb4\x51\xe8\x26\x69\x35\x03\xe3\x14\xf1\x04\x58\x79\xd5\x1a\xba\xf9\x2e\xe1\x3b\x65\xe3\x7a\x9d\x23\xe1\xc2\x27\x34\xf9\x17\x97\xb9\xca\xad\x5c\x7b\x6f\x54\xa4\x32\xa3\xd6\x79\xe2\x7d\x56\x55\xd5\xa2\xac\x1e\x1b\x7d\x8c\xd7\x9b\x67\x4c\x99\x5b\xfd\x5c\xeb\xd4\x64\x08\xac\x48\x38\x9b\xd0\x69\x11\x48\x65\x6b\x46\x57\x2d\x77\xb2\x72\xc6\x49\xc6\x65\x21\xd6\x54\xe8\xe2\x49\x9f\xd8\x47\xdb\xe6\x7d\x16\x5e\x62\x45\xa6\x64\xa7\x7b\xb2\x86\xf0\x48\x90\x5c\x10\x09\x3c\x09\x3e\x08\x7d\xb8\x95\x15\xb8\xf6\xd7\x03\x44\x59\x92\x15\xa9\xa6\x01\xce\x4a\x1f\x03\x4b\x51\xa9\x44\x8c\xd8\xdc\x9a\x46\x08\x4b\xf4\x4c\xb2\x4c\xff\x37\xe1\xf3\xbc\xd0\x63\xd9\xe9\xda\x91\xb4\xb2\xa9\xb0\x22\x03\xc4\x0b\xa5\x07\x1b\xc0\x68\xa9\xdd\x82\xc3\x31\x06\x74\x87\x83\x34\x68\x51\x73\x2f\x5d\x00\xce\x07\xe5\x0d\xaf\x1b\x01\x46\x19\x7a\x4f\x14\x8c\x02\x28\xa9\x70\x81\x90\xae\x54\xb5\xe7\xea\x69\xbf\xc5\x89\xb2\x2b\xe9\xb0\xf3\x17\x54\x11\x81\xb3\x0f\x38\xff\x21\xe3\xe3\xd6\x7d\x1f\xa2\xb9\xd1\xa8\xec\x5b\x10\x8d\xa1\x44\x18\xc9\x22\x49\x88\x94\x93\x22\x5b\xc9\xa3\x44\x88\xc8\x03\xbd\xe2\xf8\x7b\x22\x9d\xc1\x73\xad\xec\xa9\x7f\x01\x20\x1c\xad\x6d\x83\xdb\xb7\x3a\x4f\x9b\xfe\xb7\x6a\x8e\x78\xcc\x85\x7a\x48\x70\x21\xb7\xb9\x37\xcf\xab\x6f\x2f\xf4\xb9\xb7\xb1\x33\xcd\x4f\xfa\x2d\x16\x6d\xf5\x4c\xb3\x0c\x70\x45\x08\x67\xdc\x9e\x76\xf3\xf3\xc2\xea\x91\x30\x9b\xa6\x73\x6f\x19\xfd\xc1\x1c\x8e\xf5\xa9\x5b\x32\x41\x83\xa9\x79\x6e\x4e\x9b\x3f\x49\x9a\xc5\x2d\xfc\x09\x42\x11\x81\x6f\xaf\x32\x09\x94\x92\x9c\xb0\x54\x22\xd8\x07\xc7\x36\x91\x90\x1c\xa0\x09\xfd\x64\x07\x75\x6e\xd6\xf2\xa7\x81\x46\x55\xbf\xea\x7c\x86\x97\xf7\xa7\xc3\x45\x72\x0d\xcf\xb7\x1a\x12\x5c\x6a\xa5\x39\xd1\x1a\x88\x20\x09\x17\x5a\x76\xc0\x6b\xbd\x71\xbd\xf2\x12\x51\x58\x68\xa2\xe0\x55\x9a\x6a\x34\x8f\x12\x0e\x98\x62\x45\x0e\xb5\x72\xbe\xc2\xad\x98\x73\xfd\x1a\x44\xe7\x44\x2b\xfa\xce\xd3\x1d\x1a\x37\x63\x32\xc5\x0c\x89\x82\x31\xca\xa6\x0d\xb3\x75\x32\x70\x0b\xae\xd7\x2a\x08\x9e\x6b\xd5\x1c\x2e\x5c\x3d\xa1\x78\x1e\x32\x07\x72\xb6\xce\xc3\x6a\xd7\xaf\x45\x35\xd5\x42\xb6\x67\xec\x95\xfd\x86\xc9\x16\x79\xba\x4f\x93\xcd\xb0\x54\xc8\xce\xa9\x61\xc6\xa1\xda\xb7\x83\x50\x54\x5b\x8d\x99\x50\xc3\xee\xa2\xc5\x86\x53\x44\x92\x28\x45\x6d\x2d\x94\x42\x12\x84\x27\x8a\x08\x30\x75\x9d\x66\x64\x92\x83\xfd\xd1\xb6\x59\xc2\x20\x59\xf4\xd7\x81\x2c\x19\xb1\xda\xa1\x8f\xd0\x90\x2d\x85\x5a\x9c\xdd\x17\xd1\xcb\xc8\x6a\x9c\x3d\xe3\x85\x44\x39\xa4\x72\x9b\xe8\x4f\xb9\x78\x30\xcc\xe3\x87\x9c\x15\xae\x35\x0f\x9a\xe0\x2c\x5b\x20\xb0\x88\x82\x99\x35\x6c\x56\x50\x8e\x68\x7d\x61\xb7\xa6\x92\x5c\xc1\x75\xd4\x14\x1c\x28\x6d\x85\x5a\x49\xb7\xa4\xf5\xf9\x9b\x23\x72\xee\x5b\x04\x0c\x28\x61\x56\x0d\x2f\x0d\x89\x36\xcd\x28\xca\xf9\xde\x42\x3f\x72\x20\xb4\xcd\xe5\x5a\x13\x40\x2d\x14\xb0\x25\x42\xad\x5e\xba\x56\xed\xff\x6d\xe6\x10\x40\xc9\x6a\xa7\x80\x76\x01\x26\xdb\x89\x3b\xc1\xb3\xc4\x9a\xe9\x0d\xe7\x13\xc4\x38\x23\x88\xca\xf2\xc7\xe0\xdc\x36\x81\x4e\x38\x7e\x53\xc2\x88\x80\x92\x19\xce\x17\xee\xa1\xd8\x1e\x24\xfb\xca\x56\xdd\xd0\x5b\x23\x68\x42\x49\x96\x4a\xc4\x88\x56\x8a\xb1\x58\x68\xb9\x65\x0f\x7a\xa3\xce\xb0\xca\x7e\x72\x22\xad\x1c\x2a\x8e\x36\x6b\x39\xa5\x07\x9f\xd2\x27\xc2\xdc\x0e\x0e\x1c\x07\x68\x41\xe8\xe8\x92\x45\xae\x9c\xf6\x83\x67\x0b\x75\xec\x81\xad\xbf\x3e\xa5\xf4\xf5\x51\x2c\x59\xff\xa6\x0c\x47\x69\xa8\x64\x0b\xef\xc3\x0b\xb5\xd8\x73\x73\xba\x20\xb2\xa2\x6f\xd3\x3f\x32\xae\xfe\x88\x4a\xa5\xdd\x99\x14\xa6\x60\x8b\x35\xef\x06\x11\xe4\x4d\xbf\x0d\x98\xd4\x9a\x9b\x08\x7b\x76\x4d\x57\x53\x7e\x5b\x70\x49\xe9\xa3\x7c\xd1\x8b\xbd\x22\xbe\xe3\xad\xa9\xc4\x98\x20\x39\x65\x67\x76\xd4\x6b\xd4\xd0\x42\x86\x0d\x04\x01\x5c\x10\xe3\x68\xce\x05\xa9\x24\xc8\x18\xf9\x05\x1b\x5d\x26\x26\xac\xcf\xa5\x35\x2e\x05\x03\xfa\x2f\x8f\x79\xe4\x4a\x68\x77\x21\xb8\xc8\xf0\x36\x9c\x33\x8f\xd1\x3f\x2d\x1c\xb0\x02\x41\x54\x6f\xad\x09\xca\x12\x9a\xe3\x46\xe7\xe8\x3a\x9c\xb0\xe4\xcc\x0b\x2b\xe6\x34\xe1\x66\x9a\xae\x31\x22\xb5\xe6\xd7\x34\x9d\xba\x44\xad\xa5\x34\xad\x76\xb6\x0d\x93\x3d\x46\xf0\x3e\x92\x32\x22\xe5\xe8\xc0\x4c\x9f\xca\xaa\xe8\x31\x3e\x02\xa7\x7d\xca\xb0\x06\x94\xff\xa5\x61\x73\x67\x2f\xdb\x55\xe8\xcb\xf2\x3b\x27\xbe\x22\x40\xcd\xa4\x10\x80\x9f\xa9\x1b\xf3\xdb\x64\x46\xb3\xd2\xd5\xf6\x66\x60\x8f\x84\x19\x32\x23\x4f\x24\xd3\x03\x53\x96\x08\x32\x27\xcc\xc6\x3b\xbe\x43\xff\x65\x12\x98\xd0\xf7\x23\xf6\x1e\x24\x5b\x96\x2d\x06\x88\x4e\xca\x91\xb1\xaa\x0c\xf3\x58\x3b\x01\x35\x23\xf6\x70\x47\x13\x31\xa7\x6a\x86\x9f\xc8\x88\xb9\x61\xfe\x0b\x3d\xa2\x3f\xa1\xef\x9b\xcc\x6c\x0b\x9e\x7a\x69\x2b\xec\x1d\x17\x1e\xa8\x15\x5c\x1c\x56\xf6\xd8\xc3\xeb\x8c\xb4\xc8\x43\x52\x2a\xd2\x5e\xcd\xf2\x88\x2f\xca\x9e\xf8\xb2\x13\x3e\x3c\x3c\x58\x10\xa6\x1e\x18\x4f\xc9\x03\xa9\xf1\xc0\xb7\x9c\x55\x7d\xaf\x5e\xf2\x94\xac\xf4\x9f\x7b\x35\xed\x23\x18\x96\xb2\x18\xfb\xed\xd0\xef\x2d\x4d\xa2\x98\xc1\xea\x27\xec\x2b\x5c\x6d\x32\xdd\x4d\x5d\xfe\x57\x56\xc1\x19\x80\x50\xb5\x13\xa8\x77\x3b\x67\x70\x19\x43\x00\xb8\x7a\x0a\xab\x5e\x3b\xfd\x63\xbd\x72\x2b\xf6\x83\xda\x5d\x80\x20\x15\x74\x4a\xb5\xce\xd7\x1e\x56\x58\xad\xdd\x95\x8e\x70\xef\x78\x46\x78\xcc\x8b\x2a\xaa\x10\x36\xc7\xdc\x4a\x0a\x39\x80\x7c\x93\x82\x89\xc6\xfa\x79\x01\x17\xdf\xa4\xc8\xf4\xcf\x8c\x1f\xcb\x64\x11\x6b\x53\x3a\x78\x9b\xbe\xee\xa4\xa4\x53\x1b\x2d\x76\x03\x52\x8b\xc6\x4a\xc1\xa6\x45\xc9\x0c\xb3\x69\xbb\x0e\x73\x63\x49\xb6\x03\xc3\xed\x35\x42\x45\xcb\xd7\x4a\x0d\xcf\x00\xe9\x2c\x02\xf3\x55\xed\x22\x7f\xee\x2a\x77\xc5\xae\x6d\xa4\x0e\x06\x88\x9b\x94\x9d\xa1\x3d\x10\xcb\x7e\xf5\x7a\xee\xb8\x8d\x2d\xb0\xce\x2c\x61\xde\xfd\x00\x8e\xe1\xad\x1d\x22\x7e\x13\x82\x94\x76\x8b\xe0\x30\xab\x21\x69\xfd\x6e\xbf\x8c\xab\x3d\xc6\x90\x04\x9e\xf6\xe8\x58\xd7\xcf\x68\xbe\xac\x03\xb6\xcc\xa9\x41\x7f\xac\x9f\x9b\xfb\x7a\xdd\xa9\xb4\x3a\x18\xd7\x74\x17\x82\x21\xd4\x76\x6c\x2f\x6c\xa0\x3b\x76\xb4\x99\xe8\x1d\x0f\x42\x0d\xe0\x73\x2b\x24\x52\x02\x33\x69\xde\x36\x62\x1f\x8d\xe6\x41\xa5\x51\xb3\x6d\x82\x00\x68\xf1\x88\xc2\xdf\x60\x2b\x58\x80\xb4\x9a\x61\x6d\x43\x2f\x1a\x9c\x7a\x3e\xa5\xcf\x9f\x84\xd0\xad\x57\xf7\x32\x78\x91\x55\xb7\x6a\x87\x74\x84\x0e\x71\x25\xce\xd6\xb0\xd0\xa2\x26\x2f\x13\x95\x80\xb7\xc1\x59\xa3\xaa\x3d\xe6\x3c\x23\x98\x35\xa9\x42\xb5\x5f\x2f\x19\xd9\x65\x76\xf6\x98\x00\x7a\x4f\xdf\xa6\x42\x1b\xdd\x13\x08\xd4\xc6\xeb\xc2\x90\x1f\xaf\x08\x33\x36\x19\xa0\x98\xcc\x44\xd3\x15\x2e\xc6\x41\x78\xf2\xc7\x24\xeb\x14\xe4\x34\x0f\xb4\x72\x11\xfc\xa4\x4c\xc1\x5e\x0b\x14\x16\xc6\x0a\x6b\x21\x74\xab\x26\x16\x02\xef\x5a\x9d\x4a\x31\x78\xad\xc3\x14\x57\x89\xf3\x61\x25\x18\x87\x08\x44\xf0\x30\x60\x45\xf4\xfe\xc1\x79\x77\x06\xb3\x97\xf7\xd1\x2e\x41\x82\x04\x3c\x9c\x72\x22\x03\xed\x00\xf1\x27\x62\xf9\x97\x4e\x88\xd6\x20\x46\x4c\x2b\x53\xa1\x26\x83\xa5\x3e\x68\xb9\xe0\x53\x0b\x50\xc1\x89\xe0\x52\xda\xf8\x9a\x19\x47\x1e\xb5\xde\x24\x77\x44\xcc\x29\xdb\x8d\x87\xf8\xf5\x30\x29\xcb\xd5\x58\xca\xe4\x8b\x06\xcd\x63\x4c\x90\x72\x6b\x6d\x3a\xf7\xdb\x86\xab\x9d\xf6\x8c\x04\xc1\xd2\xda\x2b\x10\xa2\xae\x84\xe9\x3a\xe8\x09\x7e\xce\x06\xdd\x71\xe8\x36\x3b\x64\x21\x0b\x07\x36\x85\x10\xb4\xb1\x29\x04\x81\xdc\xd9\x71\x66\x9d\xc1\x11\xd7\xd0\xb2\x2a\x6e\x49\x11\xaf\x9a\x9b\x37\x83\x9c\x94\x74\xae\xcf\x0a\xe4\x41\x30\x7e\xc8\x73\x50\x79\xab\xbf\x9a\x60\x9a\x69\x81\x45\xe3\xa2\xbc\x5a\xb9\x3a\x24\x9f\xa8\x54\x84\xa9\x3a\xff\xa0\x1b\x04\xfc\x89\x24\x35\xdb\x68\x38\x77\x74\x30\xfc\xe1\xea\xe6\xee\xec\x74\x74\xe0\x25\xb6\x0f\x1e\x3b\xb1\xee\xe6\x0e\xc1\x22\xef\xbb\xf5\x95\x78\x60\x2f\x11\x4e\xd3\x12\xa5\x6a\xb0\x17\x0f\xc6\x07\xb5\xee\xa9\x58\xe9\xbe\x5d\x1e\xe6\x1d\xfd\x44\xd2\x1b\xac\xb6\x72\xfa\xb6\xa6\xb0\xac\xe5\x59\xa9\x65\xf1\x82\xd1\x25\xeb\xbe\x45\xc8\xfa\xa5\xdc\xeb\xe7\xd6\xe7\x60\x73\x12\x60\xaf\x9c\x89\x2e\x91\x28\x98\x36\x8a\xb0\x2f\x90\x34\x01\x1e\x60\xc9\x62\x80\x00\x89\xa8\xb9\x76\x81\xfe\x8c\xe6\x94\x01\x6a\xa8\x8d\xb6\xf7\xf1\x42\xba\x24\xda\x9d\x5f\xde\xc7\x29\xaa\x3f\x5e\xdd\xdf\xc4\x69\x0f\x7f\x6f\x4f\x99\x8b\x47\x68\xb3\x44\xcb\x35\x06\x01\x67\x6e\x48\xe1\x49\x53\xb7\xd0\x8b\xea\x45\xfd\x75\x41\xca\x33\xaf\x33\xec\x1a\x4d\x0e\x84\xdb\x23\x20\xb9\x5d\xe9\x76\x18\x72\x63\x5a\x5d\xc7\xf6\xda\x8b\x5e\xd0\xb5\x71\xa3\xcd\x83\x80\xe5\x02\xc0\x76\xad\xbf\x7e\x3b\x63\x2f\xcb\x51\x1d\x00\xb0\x83\xf6\x86\xca\xa7\x9d\x07\x40\x5a\xc7\x55\x8e\xc7\x34\x03\xaf\xb8\xbe\x81\xe7\x79\x86\x15\xfd\x57\x9d\x4f\x43\x1e\x8d\x58\x58\xc9\xcd\xdc\x99\x9a\x07\x1c\xf0\x9d\xb2\x29\xe2\x8c\x20\x2e\x4c\x04\xc4\x8b\xc3\x41\x88\xc3\xac\xc2\x23\xd4\x0c\x2d\x78\x21\xfc\x1b\x97\xde\x63\xb9\x4f\xce\xb0\xb0\xf0\x2f\xa7\x67\x5a\x1f\x7e\x88\xb4\x87\xf1\x72\x41\x4a\x63\x0b\x5e\x4c\x9e\x08\x43\xcf\xda\xb0\x2a\xfd\xc9\x23\x16\x00\x17\xb4\x4a\xca\xbe\x51\x3e\x0a\x4b\x33\xdb\x03\x00\x7b\xe7\x79\xe9\x6a\x91\x98\xda\x91\xdb\x19\x78\x07\x50\x4d\xc0\x9e\x6e\xc6\x7c\xf0\x64\x93\xf7\xc0\x44\x1b\x80\x07\x42\x5f\x86\x41\xc9\xd5\xb2\x2c\xf9\x94\x93\x64\x13\xd8\xe0\xb5\xab\x02\xd4\xe6\xcd\x08\xa3\x1f\x36\xb9\xcb\x6e\x9d\xe2\xce\xb7\x52\x9d\xed\x8a\x79\x76\x42\xb9\xea\x89\xfe\x8c\x05\xd5\x36\x66\xc7\x79\x3a\x9c\xeb\x44\xf0\xf9\x7a\x53\x7c\x1d\xc0\xda\xdd\x12\xf4\x2b\x72\x0f\xec\x09\x52\x6d\xf5\x2c\x9b\x20\x6a\xab\xa4\xde\xcf\xe6\x5e\xf4\x68\x54\x48\xbe\x21\x68\x92\x2d\x14\xd1\xa3\x2b\x3d\x55\x8b\x0e\x0b\xdf\x19\xde\x59\xde\xf3\xed\xa2\xf3\x95\x53\x10\xf9\xd4\xc7\x04\x59\x6d\xc8\xa0\xb5\xea\x61\x66\x70\x7d\xd6\x79\x44\x83\x78\x98\x45\xa5\x6b\xe2\x49\x85\xe7\xb9\xbb\xe3\xab\x29\x46\x15\x72\xad\x90\x46\xbb\x82\x47\xbd\x00\xb4\xac\xce\xd6\x8d\xe0\x6e\x36\x76\xbb\x9b\xe4\x8b\xca\x0d\xdd\x3a\xb1\x28\xfb\x22\x9c\x50\x4a\x14\xa6\x99\x0c\x33\x0e\x96\xb7\x32\xba\xf9\x4c\x69\x02\xe7\x78\xdd\xd0\x4a\x0e\x3a\xfe\x84\x3b\x8f\xc2\x3b\x1e\x9c\x2c\x73\xbc\x08\x30\x25\xfa\x14\x64\x44\xc1\xe5\x4c\x99\xff\x2b\x16\xb5\x8e\x99\x43\x16\xad\x0b\x2a\x1f\xa1\x1f\x16\xfe\x5a\xc4\x59\x16\xce\xc4\x38\xef\xca\xf6\x33\xfa\x28\xc0\x25\x86\xce\x2f\x87\x27\x77\xe7\x3f\x9f\x01\x5e\x62\xc1\x0b\xf4\x4c\xa5\xb6\x10\x46\x0c\xfc\x81\x5a\xa0\xc2\xef\x14\x47\xe6\x87\x03\xf8\x15\x14\x28\x90\xc5\x78\x4e\xb5\x3d\x55\x2e\xf2\x1e\x24\xc2\x8d\xc3\xd4\x98\x73\xac\x1f\x80\x6b\xdb\xa1\x75\xea\x30\x93\x2b\xce\xc7\x06\x66\x70\x39\xc8\xb6\x80\x9c\x20\x5c\xf1\xb2\x90\x9c\x40\xcd\x0e\xcd\x9a\xda\xe3\xd5\x63\x72\xea\x0f\x65\x9c\xdc\x03\x19\x58\x54\xaa\xca\x65\xd2\x9c\xd2\x53\x6e\xc1\x2e\x00\x39\x4e\xdb\xee\x20\x07\x6f\xdd\x23\xf5\xda\xce\xad\xaf\x31\x53\xab\x82\x5d\x37\xea\x37\xfb\x86\x18\x2f\xc3\x76\x9b\x07\x81\xba\x98\x5b\x25\xb6\x33\x64\x85\x20\x78\xee\x53\xcb\x6c\x2c\xa8\x22\xba\x19\x57\x10\x7d\x4d\x54\xb6\xa8\x89\xda\x8f\x58\xbd\xde\xd0\xce\x63\xdb\x06\x52\x77\x8a\x2c\xf7\x3b\x72\xe3\x57\x61\x3d\x22\x1f\x3d\xda\xc7\x18\xa3\xbe\x4a\x20\xa9\x9c\x2b\xe7\x7f\x6d\xb0\x02\x40\x5d\x78\xd8\x20\xca\x59\x73\x2a\xd7\x0c\x73\xae\x3c\x17\xf6\xca\x7c\x19\x0b\x6a\xcb\x78\x30\x24\x57\xed\x3e\x25\x0c\x9c\x98\x03\xf0\x90\xf3\x27\x22\x04\x4d\xb5\x85\x15\x26\xad\xae\x45\xb9\x35\x4a\x01\x34\xc8\x30\x53\x2f\x5a\x71\x08\x9b\x78\x9b\x57\x8f\xe7\xf2\x43\x2a\xd2\xcd\xab\x3b\x05\x4b\x89\x60\x04\xab\xd9\xeb\xc5\x17\x4f\xb6\x75\x19\xbe\x5a\xac\xf1\x64\x27\xf5\x32\xc2\xe9\xc6\xb5\x23\x56\xce\xb3\xa8\xd4\x40\x6d\x47\x54\x96\x85\x1a\x96\x8c\xa8\x1a\x57\x57\x80\x0e\xb5\x76\x56\x5c\xb4\xa1\x23\x74\xb7\xd1\x82\xf0\xee\x27\x6d\x1e\xc4\xa9\xdd\xb6\x8c\x77\xbb\x48\x57\x0d\x91\x97\x75\xea\x26\x19\x1d\x3b\x2a\x62\x63\x3e\xb1\x1f\x34\x14\x3b\xaa\x3c\x56\x5d\x6d\x68\x18\xb0\x45\xd5\xae\xc6\x22\xcd\x88\x04\x95\xcf\xe8\xfa\x15\xad\xae\xcd\xe6\x18\xb1\x1f\xf9\x33\x79\x22\x62\x80\xb0\x42\x73\xae\x6f\x72\x46\xc2\xca\xb9\x38\xce\xdc\x32\x2e\x6d\x8c\x6a\x3b\x97\x3b\xcb\xc7\x7a\x15\xeb\x32\x20\x00\xd5\x6f\xb6\xc1\xb9\xc0\x47\x0c\x27\x8a\x3e\x11\x13\xdb\x01\xac\x1b\x75\x0b\x03\xfe\xff\xa3\xf7\x79\xfe\xf1\x08\xdd\xe9\x8b\x8b\xca\x78\xbe\x01\x8c\xb3\x69\x6e\x23\x36\x15\xbc\xc8\xbd\x66\xca\xc7\xa0\x12\x1b\xdf\x67\x8d\xcf\x13\x26\xe3\x1c\x9e\x09\x4e\xf5\xb5\xd8\xce\x38\x91\xed\xb4\x67\xae\x80\x18\x5f\x17\x32\x90\xbe\x2d\x7c\x58\xc9\x42\x07\x80\x8d\x9a\xb3\x69\x77\xe7\x3b\x5d\x2a\x00\x23\x41\x29\xf3\x26\x6b\x04\xb6\xd8\x50\x54\x04\x66\xbe\x33\x89\xeb\x51\x42\xe5\x6b\x4d\xc9\x2e\x23\x38\x48\x7d\x0d\xbc\x86\xbd\x5f\x3f\x59\xa7\x32\xcb\xeb\x42\xe4\x1c\x10\xa2\xd9\xc2\x41\x93\xe6\x18\x82\xe7\x39\xcf\x0b\x03\x96\xa5\x61\x90\xa9\x76\x42\x71\x45\x81\x9d\x07\xff\xb6\xd0\x59\x4e\xb5\x52\x47\x19\x2a\x7f\x88\xac\x57\xb3\x96\xcd\x0a\x41\x37\x52\x4d\xac\x55\x4c\x9e\x08\x53\xa5\x92\x3b\xc7\x39\xa2\x5a\x96\x68\x69\x28\xa6\x64\x80\x9e\x5d\x8b\x19\x84\x51\x21\xa8\xdb\x75\xd0\x4c\x5b\x78\x2b\x56\x0d\x8f\x8d\x97\xda\xe0\x74\x12\x1c\x14\xd3\xb0\x85\x33\x13\x55\x60\x1f\x4b\x84\xec\xa7\x8c\xb2\x47\xfd\xb2\x67\x30\xa3\x9d\x07\x52\xe8\x33\xc7\x85\x03\x3a\x46\x7b\x5a\x2b\xcd\xf6\x33\x11\xb3\xb6\x53\x40\xbd\xd2\xfe\x42\x79\x98\x2f\x55\xd2\xbf\xde\x22\x7f\xe1\x2c\xcc\x7d\x6b\x32\xb5\xbe\xcc\x2d\x33\x8f\xed\xbc\x6d\x3a\x26\x1c\xc8\xc8\x1b\xfd\x0e\x02\x07\xc1\x34\x87\xe5\x1e\x26\x00\x59\x52\x44\x98\x8c\x49\x70\x41\x7a\x37\x97\x55\x51\x6a\x95\xb9\xda\x23\xb3\x75\x56\x9f\x1e\x6f\x19\xd0\xb0\x63\xd7\x4b\xed\x61\x6f\xf4\xc1\x2c\x85\xa4\x5d\xe5\xa9\x32\x0f\x52\x36\x30\x6f\xef\x7e\xac\x5b\x55\x04\xbd\x71\xc4\x3c\x5f\x22\x66\xcc\x6d\x61\x6a\xcf\xce\x0a\x09\x3d\xac\xbe\x01\xeb\x7d\x34\xbb\x2b\xee\x53\x16\x12\x58\x2a\xeb\xe3\xa4\xd5\x65\x73\xb2\x61\xb7\xd2\x30\x11\x11\x57\x97\x85\x81\x2a\x6b\x58\x36\xd4\x84\x01\x28\x79\xba\x2f\x95\x61\x96\x83\xb1\xf1\xe4\x3e\x73\x59\x98\xca\x64\xf6\xa7\x36\xcc\x4a\xba\xed\x6f\xb4\xbd\x66\xa2\x6b\xd4\x84\xf1\xce\x60\x48\x32\xec\xe6\x65\x85\x00\x3c\x4d\xb3\xa8\xb5\x94\x3e\x54\xde\xdf\xba\xbe\x10\x3c\xe1\x4c\xab\x06\x36\x63\xbf\xb2\x16\x1b\xa1\x05\xb3\x39\xae\x41\xd7\x2c\x14\xcf\xb4\x36\xbe\x03\xc3\xd8\xc6\x7d\x6a\x9c\xe5\xeb\xa9\x5d\x26\x05\xeb\xfc\xb4\x14\x13\x3e\xd7\x5b\x2b\x26\xf6\x3a\x52\x02\x6b\xcb\xd0\x55\xc0\xb4\x75\x2f\x9b\x5c\xe2\x7a\x69\xeb\x6d\x11\xfc\x74\x99\x2e\x2b\x2c\x62\x4b\x6d\x48\x43\xac\x58\x36\x3c\x81\x22\xcd\x9d\xf0\x1b\x91\x35\xcc\x52\xc0\x59\x07\xb5\x78\x4c\x0f\x85\xea\x9e\x9b\x77\xce\xb0\xac\xbe\x72\xe5\x96\x6f\x10\xf6\x8d\x86\x79\x4f\x94\x36\x1c\x77\x52\x05\xa3\x83\x17\x1e\x26\x72\x2f\xb2\x95\x75\xf9\x6e\x4d\xaa\x66\x21\xb2\x52\x81\xc1\x48\x5f\x68\x47\x81\xa1\x0b\xc1\xb1\x88\xa2\x66\x32\x0d\x72\xa0\x7b\x25\xc1\x97\x9c\xaa\x9d\xcd\x46\x41\x5c\xd3\x83\xb3\x10\xe6\x62\xae\xdf\x59\x9b\x0a\x00\xb2\x33\x31\x92\x47\x46\x00\x0f\x87\x04\x03\xfb\xb9\xf6\x5e\x6f\xe6\x9f\x6d\x95\xfe\x38\xdd\xfb\xc5\x74\xff\x48\x7a\x47\x0b\xe8\x71\x04\x9b\x2a\xf2\x36\x3b\xc4\x73\x20\xc0\x7c\x94\xa0\x04\xf0\xa7\x99\x0f\x5a\xc7\x92\xce\x1a\x79\xf5\x8c\xb5\x9b\x52\xc5\xa0\xa9\xbe\x18\x2b\xb5\xd4\x59\xec\x6e\x46\x9a\xa9\x1a\x7f\x95\x3e\x9f\x85\x24\xc2\x60\x87\x7d\xbc\xa7\x26\x81\xb2\xd1\xeb\x53\x5b\x99\xb9\x2d\x37\x76\xa9\x42\x74\xfd\xc5\x6e\x3c\x1b\xe8\x5b\xdb\xc0\x96\x1c\xb9\xf0\xfe\x1b\xf4\x5f\x90\x10\xf9\xff\x35\xd5\x74\x98\x12\xf1\x90\x16\x51\xcb\xb5\x55\x93\xba\xd6\x0f\x9d\x16\x6a\x51\x0f\x93\x88\xec\x8b\x0c\x27\x8f\x5d\xa0\x23\xfa\xf7\x0d\xc3\x76\xb2\x5c\x63\xb9\xdb\x00\xcc\x20\x15\x60\x86\xf5\x38\x85\xef\x37\xde\x21\x06\xf9\xb2\x81\x43\xdc\x3a\xca\xa0\x09\xde\x11\x7a\x67\x72\x1e\xe0\x0e\x31\xaf\x48\x78\x91\xa5\x23\x46\x3e\xe5\x5c\x96\x9e\x74\xca\xa6\x75\x38\x75\x9b\xd0\x61\xdf\xb4\xea\xe0\x6d\x2f\xd0\x3f\x3b\x8a\x66\x79\x4f\x97\x97\x5c\xcf\x64\x5b\xa9\xce\x7b\x52\x1f\xfd\xc4\xf5\x15\x19\x20\xbf\xc8\x0a\x5b\x64\xe4\x89\x08\x3c\x25\xb6\x7e\x7a\x90\x93\x80\x37\x28\x97\x7e\xbd\xe4\xee\xfe\xb2\x6b\xfe\x2f\x79\xd1\x5f\x96\x8d\x6d\xc7\x84\x76\x06\x6e\x12\x4a\x77\x3c\x3f\x34\xc5\x87\x98\xef\x44\xe0\x94\x84\x24\xc3\x52\xd2\xc9\x22\x68\x31\xe0\x6e\x5f\xe3\x89\xf6\xb9\x2b\x71\x8e\x53\xed\xdd\x6c\x37\xf9\xc6\x22\x64\x5f\xae\x5c\x65\xdb\xc5\x60\x9f\xe8\xc0\x94\xe5\x7c\x37\x30\x94\xec\x18\x5b\xe5\xf8\xe5\xcb\x63\xec\x9e\x85\x96\x08\xb3\xa6\x10\xbc\x5d\x06\x5f\x76\x5e\x60\x22\x38\x7b\x08\x3a\x75\x6e\x18\xae\x91\x68\xf8\xf1\x16\xc9\x05\x53\xf8\xd3\x5b\x34\x3a\xf8\x60\x32\x4c\xd1\x8f\xbc\x10\x12\x9d\xe2\xc5\x21\x9f\x1c\xce\x39\x53\x33\xf4\x01\xfe\xbf\xfd\xe8\x99\x90\x47\xf4\x77\x82\xc5\xe8\xc0\x76\xcb\xb0\x45\x10\x3d\x0a\x54\x1b\xdc\xa2\x60\xd2\x26\xaf\x7e\xff\x57\x97\xbd\xaa\x5f\xf3\xdd\xf1\xf7\x7f\x45\x7f\x84\xff\xfd\xff\xd1\x1f\x47\x07\x0d\x38\xae\x6e\x11\xf9\x32\xbd\xb8\x76\xb4\x47\x9a\x3c\xf2\xc9\xe4\x41\xd1\x39\x31\xd0\xb5\x07\x2c\x1a\x6b\xb4\x75\x0c\xd5\x51\x8b\xa8\x33\x39\x41\x65\x80\xd6\xbe\xd4\x78\x25\x9d\xd2\xef\x0b\xaf\x9b\x78\x29\x8b\x91\x64\x54\xc2\x53\x5a\x97\x99\x4c\xba\x98\x06\xae\xcd\xcc\x32\x5e\xbf\xf4\x6f\x87\xf8\x50\x7f\xf9\x84\x2a\x13\x5f\x95\x7f\xbb\xac\xcb\x7d\x65\xb7\x37\x2c\xf0\x45\x6f\xee\x5b\x2e\xb6\x12\xe1\x8f\x64\x49\xaf\xef\x64\x17\x3b\xa8\x5b\x08\x33\x06\xc7\x19\x17\x3e\xde\x6d\xfc\x1c\x16\x57\x36\x62\x77\x57\xa7\x57\xdf\x3e\x62\x25\xf8\x14\xb3\x37\x6f\xd1\x30\x4d\x6d\xc9\x27\x64\x8d\x13\xcd\x3c\xda\xf4\xb5\x4d\xd8\x6c\xfd\x16\xa6\x09\x57\x6b\xe8\x86\xd7\x7d\x4d\x93\x35\xd4\x7c\xd8\xe3\xbe\x6c\x4d\x70\x89\x10\xcf\xe7\x5f\x50\x62\x6f\x60\xad\x8f\x64\x61\x2b\x63\x56\xd7\xbb\x49\x15\x2b\xe8\xcf\x4e\xa4\x19\x9a\x8b\x94\x00\x79\x4c\x29\x6e\x2a\x95\xf3\xc9\xd6\x1d\xaa\x3b\x2c\x1f\xf7\x0c\x59\x45\xd3\xb0\x85\x8a\xaa\x2d\x7c\x6b\x85\x9f\xc2\xf2\x71\x67\x6d\x63\x34\x29\xd6\xe9\x18\x63\x47\x46\x24\xea\xf4\x99\x65\x06\x49\x14\x84\xe5\xe7\x38\x37\x05\x6e\x40\x30\x42\x93\x8e\x4a\x03\xfd\xea\xfc\x57\x6d\xb4\x89\xed\x07\x6a\x9c\x00\x3c\x83\x36\x0a\x53\x70\x35\x61\xb6\x30\x0c\xa0\x05\x2d\x96\x8f\xd2\xc3\xfb\x90\x9c\xe3\x2c\x1b\x20\x41\x0a\xa8\x50\x34\x40\x92\x64\x93\x43\xeb\x1f\x24\x29\xca\x4c\x3f\x6d\x34\xce\x78\xf2\x28\x47\x4c\x4b\x3e\x36\x35\x02\xdb\xf7\xe1\xf5\x57\x45\xe9\x4d\x34\xad\xaa\x4c\x06\xb2\xa9\x00\x42\xa5\xa2\x49\x25\xed\x54\x9f\x64\x3d\x1f\x70\x75\x24\xdc\x20\x12\x61\xba\xfa\xea\x22\xa0\xa3\xaa\xc2\x15\x89\x02\xb8\x08\xce\xe8\xbf\x20\x6a\x30\xc3\x4f\x94\x8b\x26\xee\xdd\x41\x7c\xd8\x6d\xcf\x83\x8a\x4f\xc3\x0a\x7e\x3e\xb1\x8f\xc1\x19\x6a\xe3\x98\x9b\x98\x9d\x3d\x37\x78\x36\xf7\xa8\x0e\xc7\x14\x65\x96\xae\x43\xce\x98\x9f\x38\x2f\xe1\x9e\x85\x11\x61\xca\x0d\xc1\xc3\x55\x3c\x7d\x62\x12\x5f\xcd\x18\x41\xf2\x89\x19\xdd\xa5\x06\x5a\x5c\x97\x16\x6d\x4f\x9a\x49\x1c\x79\x34\xed\x4d\xdb\x95\xa0\x47\x52\x9e\x15\x53\xca\x0e\x3d\xe8\x28\xc5\x0a\x8f\x18\xc0\x52\xf5\x4b\x2a\xa9\x8d\xcb\x1c\xb5\xc7\x19\xa8\xbb\x11\x8e\x1d\x13\x51\x1d\x91\xbb\x30\x79\xcc\xb7\x10\x1e\xec\x28\xec\x22\xff\x9b\xa8\xf3\x3e\xdb\x82\xe5\xfa\xdb\x27\x5a\xc2\xab\x83\x17\x35\xee\xed\xc6\xb0\xd2\xca\xac\x96\xc2\x32\x74\x62\x98\x0c\xe6\x06\xae\x40\x5b\x4d\xa9\x69\x46\x9f\x05\xe8\xd2\xb6\x91\xd7\x58\x99\x8a\x38\x64\xce\x95\x01\x70\x1a\x2c\xa5\x85\x58\x5a\x88\xe6\x38\xe3\x63\xb8\x57\x00\x66\x09\xeb\x8e\x5b\xe2\x98\x75\x93\x14\x7d\x1b\x5c\x13\x3e\xfa\xf4\x66\x0f\x5a\x69\xf9\xc2\x55\x7a\xc3\x82\xb4\xe1\xeb\x12\x1f\x5c\x5d\x95\x69\xb6\xd5\x54\xd1\xb8\x1b\x42\x27\xda\xfd\x1d\x20\x74\x2a\xcb\x68\x48\x07\xe2\xd3\x17\x8d\x94\xd8\x26\xc1\x6b\xdb\x3f\x26\x1e\x6f\xf4\x8f\x68\x73\x1c\x9b\x2d\xea\xb6\x68\xbf\xd0\x47\xf1\xe4\x3e\x33\xfa\xa8\x32\x99\x7d\x46\x1f\x55\xa6\xba\xbf\xe8\xa3\x9a\x89\xae\x81\x3e\x32\x71\x98\x07\xcd\xd4\xeb\x09\x85\x5c\x70\xc5\xc7\xc5\xe4\x16\x6e\x93\x75\xf2\xda\x8c\x70\x76\x7a\x8e\x85\xdc\xc3\x6c\x8d\x0e\xd4\x4d\x11\x0b\x41\x4a\x95\x25\xaf\x09\x52\x8a\x44\x5a\x0f\x52\xf2\x20\xa5\x65\xba\xec\x23\x48\xa9\xb2\xe7\xeb\x81\x94\xea\xb6\x7c\x03\xdf\x7b\x34\xcc\x57\x03\x52\xaa\x50\x74\x9f\x41\x4a\x95\xa9\xee\x0e\xa4\x54\xbf\xb3\xdd\x40\x4a\xb5\xd7\x7f\x33\xff\x6c\x1b\xd3\xd6\xaf\x7b\x6d\x90\x52\xb4\x80\x1e\xa4\xb4\x65\xb1\x93\x98\x05\xed\x0c\x7c\x03\xa2\x65\x76\x6f\x83\x29\x81\x4a\xbb\x03\x8e\x7a\xd9\x98\x20\x78\xa1\xd6\xd5\xba\x87\x11\x1d\xa4\xcd\xdc\xd3\xd7\x9f\xc3\xb2\x04\x05\x81\xfb\x7c\x97\x6d\xf3\x5d\x2a\x44\xf6\xde\x2b\xd8\xb8\x26\x96\xdb\xb6\x12\x8a\xab\x4c\xd2\xcd\x20\xbd\x73\x4f\xb5\x6a\xc8\xae\xe8\x49\xe8\xb2\x04\x25\xa2\xd6\x29\xee\xfb\x98\x6f\xe8\xf6\x6e\x40\x62\x2d\xbf\x50\xb9\x0e\xd3\x01\xb4\x2a\x76\x44\x2d\xcf\x20\xa2\xbb\xbb\x51\xb7\x20\x7b\x21\xb6\xe9\x06\x36\x34\x09\xae\xfa\xba\x0e\x93\xa4\xab\x67\x6f\xbc\x50\xcd\x80\xc7\x76\x1b\x68\x75\x93\xaf\xaa\x27\x8f\xfe\xcb\x6f\xf4\x84\x66\x04\x61\x68\x37\x48\xc7\x19\x58\x49\xc0\xc7\x63\xfe\x44\xf4\xa4\xb7\xd9\x55\xca\xa6\xb0\x6e\xe8\x82\x5f\x16\xbf\xf0\xcc\x63\x0e\xf9\x4c\xf0\x62\x3a\x73\x6a\xb1\xab\x8f\x58\xb7\x97\x0e\xb3\xf9\xe5\x7a\x70\x2b\x15\x93\xaa\x4c\xd0\x3d\xc4\xe5\x48\xf2\xca\x61\xae\xba\x75\x74\xe0\x8e\x08\xa4\x50\x1e\x7f\xe7\x78\x34\xd7\x08\x40\x27\x47\x6c\x18\xc1\x19\x5c\x79\xbd\xf1\xa2\x0c\x8b\x1a\x59\x1c\x32\x19\x14\x04\xb6\xea\x26\x54\xe0\xd1\xff\x82\x7b\x03\x1e\xb2\x01\x30\x17\xe4\x82\x88\x2e\x49\x0f\x71\xb2\x48\x32\x9a\x04\x3a\xc4\x54\xe0\x7c\xd6\xc6\x89\xbb\x0c\x55\x3d\x2f\x73\xf7\x0a\xfe\x74\xe1\xaa\x2e\x4c\xd0\x2d\x72\xe5\x49\xff\x65\x45\xaf\xca\x0e\x7d\x9b\x45\xb0\x86\xce\x80\x21\x02\xcd\x78\x96\xba\xfe\xdd\x9e\x5a\xfe\x05\xde\x09\xee\x09\xe4\x36\x03\x0a\xaa\x01\x53\x96\x55\xd9\xda\xe2\x54\x7e\x13\xbf\x8e\x58\xd5\x0a\x49\xd7\x31\x5e\x15\x12\x75\xbb\x98\xd5\x96\x92\xab\x5b\xdc\xaa\xad\x40\x5e\x75\xbf\x37\xf0\xb0\x2c\xe5\x30\xf4\xfe\x39\xef\x9f\xab\xa7\xcd\x3e\xfa\xe8\x6a\x7a\xe9\xac\xe7\xa7\x6b\xda\xfe\x5d\x70\xd2\x0e\xfd\x75\x9f\xd9\x0b\xf6\x12\x0e\xb0\x66\x72\x75\x72\x82\xb1\x76\x07\x98\x7b\xcb\xb6\x9e\x0a\x8f\x2e\x7a\x51\x6f\x85\x57\xce\xbb\x7b\x2c\x4a\xf8\x53\xef\xb5\x78\x51\xaf\x45\x0d\xa1\x57\x7b\x2e\xa2\xbb\xf7\x55\xbd\x17\xee\xcd\xaf\xe1\xc1\xd8\x5a\x2f\x58\xe5\xc5\xa8\xf5\x5a\x34\x28\x08\x7a\xf1\xc3\x8c\xe2\x2d\x7b\x13\x2d\xa1\x2e\x3a\x9c\x8a\x0f\x85\xd4\x86\xa0\xe6\x63\x68\xad\x62\xe6\x6b\x43\xf8\x1e\x9c\x0e\x29\x2b\x06\xe8\xcd\x78\xda\x58\x61\xb3\xb2\x94\xae\x73\x29\x4d\x40\x9b\x29\x63\xb5\x4e\x18\xd7\x90\x3b\xe5\xcf\x4c\x2a\x41\xf0\x1c\x26\x22\x6d\xa9\xb1\x89\x31\xf6\x8c\x45\x49\x45\xd4\x3b\x65\xad\x2d\xbe\xa0\x4c\xdb\x96\x01\x1c\x1f\xfa\x1b\xc1\x9b\x6b\x36\xed\x07\xca\xb0\x58\x6c\xb7\x6b\x2d\x3d\xc9\xda\xad\xa5\xf1\xa2\x29\x5f\x41\xe1\x55\xc9\x09\x5d\x6c\x23\xe8\xbf\x43\x90\x7e\x1d\x82\xab\xc3\x24\x29\x62\xa4\x30\x14\xbc\x9d\x91\x2c\x0f\x32\x96\x72\x2c\x94\x74\x0c\x64\x3b\xff\x26\x7c\x3e\x2f\x98\x29\x8b\x6b\xd4\xad\x67\x0b\x6a\xb5\xc6\x7f\x39\xf8\xd1\x88\x9d\xab\x6f\xa4\x3e\x5f\x9c\x4d\xb3\x05\xc2\xe9\x93\x69\xc9\x69\x95\x49\xce\x64\x31\x27\x42\xfa\x6e\xf5\x7a\x69\xb6\x2c\x65\xd9\x54\x58\xcf\x4d\x5f\xc0\x2e\xff\xd5\xca\x88\x29\x1a\x93\x89\x16\xbe\x39\x16\xd2\x99\x79\x35\x26\x9a\xdd\xdc\x34\x6e\xc5\xff\xca\x67\xf2\xe7\xf0\xd8\x99\xfe\x04\xe6\x84\x62\x1b\x88\x3c\xae\x9e\x4f\x4b\xf5\x96\xb3\x39\x5e\x5a\x14\x6a\x17\xca\x96\x0a\xa7\x4b\xf5\xa9\xab\xda\xb4\x16\xae\x65\xa5\x63\xfd\x1e\x77\xb1\x99\xc9\x75\x6c\x03\x1a\x2d\xd0\xce\xda\x58\x59\xe1\xd9\x24\x14\x7a\x5d\x48\x85\x15\x4d\xec\x1d\x5a\x16\x45\x30\x4f\x37\x6f\xed\xe9\xd6\xa5\xf0\x71\xb6\xbc\xc3\xcd\xb4\xbc\x35\xbf\x6f\x97\x7d\xf6\xb8\x99\xb1\x5b\x7d\xc8\x09\xcf\xb2\x2e\xd9\x0f\x95\x95\x9f\x94\x8f\xb7\xcf\xa8\x7c\x8f\xde\x00\xb7\x17\x70\x6a\x6c\x9f\xcc\x0c\x94\x0c\x46\xa4\xb2\xbb\x14\xfe\xc8\xc8\xd0\x05\x62\xc5\x7c\x4c\x04\xb4\x5c\x05\xb1\xde\x14\x46\xcf\x05\x9f\xd3\x2e\x30\xbc\x2b\xd8\x66\x5f\xe1\x7d\x85\xc3\xa0\xec\xa7\xe9\x21\x6a\xf6\x8d\xa6\x40\x25\x33\xed\x53\x5a\xce\xd0\x1c\xe7\x1b\x11\x7c\xa9\x12\xe8\x12\xa5\xe7\xc6\x86\xb1\xd4\x93\xa6\x95\xed\x23\x59\x98\x06\xa3\xcf\x78\x51\x7a\xda\xbb\x1c\xa7\x5b\xa3\x8b\x10\xe9\xce\x0b\x76\x5c\x16\x9c\x18\x11\x56\xc8\x77\x54\x58\xe7\x04\x9d\xd4\xb1\x61\xe7\xb3\xe4\xd6\xfc\x92\xd0\xc6\xf0\xd8\x87\x66\x4b\x97\xdb\x30\x3e\x0c\xc1\x88\x08\xa6\xd3\x4e\xaa\x0f\x11\xe7\xec\x9c\x46\x9b\x37\xa0\x7c\x59\x9a\x59\xb6\x5e\x8b\x58\x5b\x06\xef\xba\x95\x08\x73\x6f\xac\xa9\x08\x16\x82\x16\x3b\x94\x1d\x5c\x6d\x43\x4c\xb4\xee\x62\xd4\x4a\x3e\x99\x64\x1c\x6b\xb3\xd2\xe6\xda\x4c\x68\x46\xe4\x11\x3a\xaf\xb1\x27\x40\xcb\x71\x5a\x15\x80\xb9\xc1\xd9\xec\xf4\x9d\x42\x50\x5b\xb7\x9a\x08\xe2\xb5\x1a\x44\x6d\x09\x8b\xd2\xf4\x14\xc4\x74\xfc\x80\xe4\x44\xce\x4c\x63\xcd\x99\x19\x80\x4a\x5b\x80\x58\xe9\x29\x51\x2d\x0b\xa8\x6d\x49\x9c\x92\x9c\xb0\xd4\x3f\xc0\x4d\x15\x52\x9c\xa8\xb2\x41\x18\xcc\xaa\x61\x4b\x77\xd1\x78\xc6\xfe\xbe\xc3\xb6\xde\xe9\x27\x96\xf7\xa6\x76\x86\x77\xf1\xe8\x9d\x67\xe7\xf5\xf2\xee\xfe\xd3\x77\xf0\xa8\x73\x2a\x40\x7f\x5b\xf0\x3b\xcd\x7d\x50\x95\xa5\x44\x48\xc5\x39\xdc\x50\xb7\xa7\x3f\x1d\xdf\x9f\x23\xa2\x12\x28\x0a\x30\x62\x89\x7c\x1a\x68\x85\xf6\x9f\x05\x51\xfa\xe3\xa6\x54\xc9\x39\x61\x12\x24\x01\x5d\xb7\xba\x8b\x23\x8c\xfe\xef\x69\xfc\x7c\x0b\xcb\x97\x05\xae\x6d\x5a\x31\xf0\xae\x4b\x03\x03\x36\x85\xdc\x03\x43\x5a\x59\xc3\x31\xa6\xd5\xff\x59\x5d\x8e\xfa\x06\x01\x37\xf6\x6b\xc1\x3a\xaa\x49\x27\xe5\x43\xc1\x2c\x1a\xb4\xb0\x79\x8e\x05\x95\xdd\x86\x77\xcf\xd4\x8e\xbe\x4a\x88\x38\xba\x62\x34\x36\x94\x42\x65\x3a\x3f\x52\x82\x10\x10\x21\x9e\x9f\xec\x5d\x0f\xb7\x7c\x40\x8d\xe0\xa1\xa3\x11\xfb\xe0\xfc\x60\xe5\xa7\xb2\x2c\x0e\x3d\x1f\x43\x8a\x61\x01\x36\x53\x3c\x0a\x0c\x9b\x52\xe9\x3f\x80\xcc\x13\x59\x64\xb6\x3b\xe1\x84\x32\x9c\xf9\x89\xd6\x76\x0a\x87\x3d\x17\x98\x25\x33\x28\x9e\xba\x4d\x10\x6c\xf2\x40\xb2\x2e\xba\xe3\xf9\xe4\x2c\x93\x9a\xbf\x93\xc7\x86\xd3\xf9\x27\x97\xf8\xde\x61\x83\xca\xc5\x80\xe6\xe6\xd2\x21\x8d\x55\x62\xe2\x00\x99\x22\x26\x77\x05\x62\x01\xd5\xf8\xab\x89\x44\xeb\x5d\xb4\xba\xb5\xad\xbf\xaf\x04\xcf\xcc\x13\xda\xc6\x82\xb7\x20\xac\x46\x4c\x14\x0c\xf2\x07\xbc\x1f\x15\x23\x49\x04\x35\x0e\xcd\x84\x33\xa3\x03\x58\xe7\xc9\x54\x8b\x09\xad\xf9\x41\x68\x1d\x7a\x80\x08\xca\x0b\xa9\x65\x88\xe9\xff\x23\x6d\x9f\x66\xe3\xc9\x1e\xa0\x5c\xd0\xb9\xa2\x4f\xc4\x27\xfd\x84\x3b\x57\xcb\xcc\xdb\x04\x10\x72\x22\xb0\x5a\x37\x87\xa8\xee\xed\x57\x6e\x84\xda\x03\x9b\x91\x89\x7a\xa8\xf5\xbb\xb4\x98\x18\x7a\x44\x96\x36\x14\x9b\xa0\xd3\xd9\x0e\x46\x5c\xff\xd4\xff\xd9\xfa\xc5\xf4\x51\x0f\x6e\x7c\xc1\xb9\x32\xfc\x56\xca\x24\xe4\xa8\x09\xea\x82\x7d\xa9\xc9\x3b\xd6\x9b\x4a\x61\x57\xf5\x19\x7e\x64\xfc\x99\x79\xdb\x5a\xab\x0d\x67\x38\x99\x85\x82\xc5\xfa\xab\xcd\xa9\x5e\x79\x9e\xa3\xdc\xda\x3d\x01\xc1\xf9\x33\x7d\x62\xeb\x5c\x64\x0b\x54\xe6\x4f\x47\xcf\xad\x73\xbd\x19\xbb\xd3\x9d\x5d\xb3\x60\x9b\x32\xa8\x48\x6e\x6d\x63\xdb\xb4\xcf\xc7\xd1\xc1\xbd\xaa\x5f\x75\x84\x3e\x3a\x4d\x0e\xc2\x01\xde\x43\x0d\x90\x2c\xe8\x03\xb4\x70\x85\xce\xeb\x08\xbb\x0b\x74\xd4\xae\x7d\xf4\xed\x04\xf6\x2d\xd7\x6a\xa8\x1c\x5d\xa8\x8c\x19\x0b\xab\x43\xb3\x8d\x13\xff\xd0\x2d\x69\x0f\xfb\xbe\x83\x1c\x42\x53\x42\x1f\xbc\x55\x9c\x65\x8b\xff\xc7\x6c\x16\xa0\xa2\xf4\x11\x2a\x64\xd9\xc8\xd7\xfa\x30\xf5\xf9\x01\x1f\x1c\xe3\x4a\x5f\x8a\x13\x9a\x65\x80\x5e\x3a\x42\x43\xc8\x82\x87\xfc\x66\xd3\x34\xc1\x04\x71\xe8\x94\xf1\x55\x21\xe4\x06\x66\x4a\x02\x66\xba\x6d\x66\x26\x09\xdc\xe4\xa3\x0a\x3b\xe2\xa8\x1d\xa0\x9c\xb4\x6c\x89\x3d\xe3\x2b\xf7\xaf\xc2\xd5\xeb\x5f\xc6\x21\xcc\xa4\x18\x3f\xbc\x78\xf8\xb3\x76\xba\xa1\x69\x5c\x3f\xf5\xf7\x05\x16\x98\x29\x02\x18\x48\x03\xbb\x14\x36\xe0\xa7\x39\x10\x91\x4f\xd4\xb6\x6e\x82\xc0\xb1\xfe\x28\xdc\x5c\xe7\x74\x9f\xd2\x27\xc2\x10\x4d\x07\x88\x1e\x91\xa3\x81\xad\x91\x24\x8b\x71\xf9\xcb\x19\x96\x08\x8f\xd8\x12\x56\xe7\x08\x0d\x33\xc9\xed\x13\x84\x25\x19\x54\x9d\x90\xc5\x38\x44\xdc\x01\xe7\x5b\x37\xd1\x78\x81\x30\xb2\x5b\x59\x0e\xcf\xed\x17\xc1\x83\x23\x86\xa5\xf1\x4a\x67\x70\xd2\xcb\xcf\xeb\xaa\xa1\x44\x91\x8a\x17\x44\xd5\x2f\x5d\x43\x2f\xb6\x49\xa6\x7c\x42\xdb\x06\xc1\x2f\x60\x63\x4a\x0c\xd5\x88\x79\x76\x46\xdf\x62\x95\x11\x2c\x15\xfa\xfe\x4d\xa7\xe0\x8c\x5b\x5f\x29\x5c\xed\xe9\x2d\xe1\x08\x2e\x04\xda\x54\xcc\x09\x92\x6e\x11\x46\x8c\x04\x98\x94\x81\xde\x66\xc5\xd1\x13\x95\x05\xd4\xf1\x08\x90\x2b\xa6\x12\x03\x55\xd2\x25\x15\x1a\x3f\x65\x83\x18\x71\xf5\x7c\xac\xff\xd2\x4e\xab\x86\xb1\x06\xb6\x17\x8a\xb4\xfd\x89\x28\x2b\x79\x4e\x7f\x33\x62\x56\xb0\xba\xb8\x4d\x90\xf0\x3d\xcc\xb2\x90\x1f\x8d\x82\x93\x12\xa6\x17\x0c\x55\x48\x8e\x50\x58\x01\x5e\x96\xb1\xc2\xb8\x80\x56\xd9\xd6\x02\xf1\xc9\x88\x79\x00\x60\x38\x76\xad\xb2\x53\x67\x2e\xbe\xa2\x0e\x5c\xf3\xfa\x0b\x53\x0e\x66\x0d\x5d\xb8\xb9\x16\x5c\x8b\x7b\x65\xc9\x44\x6f\x51\x8d\x77\xfd\x82\xf5\x35\xe5\x7a\x73\x17\x6e\xd9\x67\x5e\x63\x3d\x37\x6c\x6e\xa0\x5a\x6c\xb1\xa9\x65\xd0\xfa\xb5\x1c\xb8\xd1\xd4\xcf\x53\x40\x16\xad\x16\x82\x25\x52\xc7\x89\x0e\xb0\x5b\xa9\xc3\x8b\xc3\xd9\x2a\x03\xf0\x00\x29\x71\x72\xcf\xfe\xb2\x29\xfb\xfb\xcb\x5e\xfe\xa0\x5c\xbf\x5b\x8a\x8f\x42\x2f\x2f\xbc\x59\xd7\x1b\xa6\xbf\xe2\x84\xb0\x64\x61\xde\xe4\xaa\x58\x94\x7a\x1c\x28\x7b\x01\xfc\x1d\x83\x6d\x5e\xab\x1d\xda\xca\x4e\x47\xe8\x0c\xee\x19\x57\xe8\xc9\xb4\xa9\xaf\xfc\x78\xc4\xb4\x61\xa2\xaf\x78\x69\x26\xed\xc6\x8f\x59\xbc\xee\x04\x18\x74\xf4\x56\xae\x99\x39\x9e\x76\x42\x3a\x04\xc6\x84\x03\x67\xc3\x18\x90\xa6\x82\xce\xa6\x6f\x51\xca\x93\x47\x22\x8e\x05\x49\xa9\x7c\x0b\xae\xf2\x86\xd6\x79\x09\x9f\xcf\xb5\xb1\xbd\xb5\xa2\xb1\x69\x8d\x40\xf3\x7e\xdb\xb9\xd6\x76\x01\xd6\x1a\x02\xb4\x08\xf7\xb0\x7a\x03\x39\x73\x7d\x4d\x09\x53\x62\x91\x73\xca\x94\x43\x49\x24\x15\x42\x38\x43\x43\xeb\x6c\x4d\x58\x1c\xb1\x8b\x90\xda\x86\xcb\xbe\x9b\x11\x49\x5c\xfc\xc0\x2c\x4a\x71\xdb\xdf\xcc\x88\x8b\x1c\xab\x99\x04\x7c\x5c\x4c\x03\x6b\x73\xc1\xa3\x9a\x42\x38\x87\xf0\x83\x71\x52\x94\x0f\x79\xe0\x97\x54\x34\xcb\x46\x8c\x11\x92\x4a\x04\x59\xb9\xdf\xd4\xe2\x30\xf5\xa3\x03\x84\xd3\x14\xfd\xdb\xb7\xef\x2e\xfe\x7e\x77\xf6\x70\x7e\x79\x7d\x7f\xf7\xf0\xee\xfc\xe2\xec\xcd\xc0\x7f\x78\x75\x7f\xe7\x3f\x35\x0e\x96\x27\x22\xd0\x1c\x3f\x82\x85\xc7\xa4\x51\xff\xd4\x8c\x8c\x58\x38\x53\xd7\x96\x52\x7f\x23\x89\x83\x9a\x58\x35\xc5\xe7\x14\xd8\x3d\x6c\xd8\x30\xd7\xea\xad\x83\xed\x7b\xe3\x1f\x69\xe7\x41\xc7\x3c\xfe\x15\x4e\x0d\x9c\x13\xa6\xb4\x8c\xb1\x98\xb5\xd2\xf4\x2d\x19\x8e\xb0\x29\x65\x4d\x01\x71\xc2\x9e\x5e\x52\x87\xff\x89\x2c\x7e\xd6\xd6\xf5\x35\xa6\xeb\x37\x7e\x3b\x63\x4f\x54\x70\x06\x4b\xf3\x5e\xad\xb2\x8e\x2a\x81\x05\x57\x0e\x95\x34\xba\x30\x84\x5c\xf2\x46\xd0\x05\x9b\xd0\x46\x78\xd5\x67\x5b\xee\xd0\xb8\x89\xc9\x27\x25\xb0\x2d\x2f\xef\x1b\x65\x3f\x61\x9a\x01\x60\xc6\x5d\x34\x25\x0f\x9a\xf2\x9c\x6f\x11\xc9\xf0\x98\x0b\x80\x53\x9a\x08\x9f\x1b\xc2\x12\x0c\x0a\xfe\xf9\x81\x9a\x80\x1b\x5c\xbc\x5c\xd9\xe4\xe8\x1e\xba\xe6\x62\x9d\x9b\x5c\xff\x0c\xa8\xc0\x73\x6d\x92\x55\x84\xa8\xbd\x66\x27\x04\x9b\xba\x5f\x12\x24\x8d\x2c\x72\xbd\x0e\x0b\x06\xc9\xb2\x28\xc5\x5c\x9f\x01\x79\x64\x9d\xe3\xe5\x2f\x39\x43\x3f\xfd\xa7\x44\xe3\x42\x8d\x58\x3c\x06\x67\x50\x25\xf9\x07\xac\x92\x59\x9d\x61\xd7\x7c\xd5\x5e\x6f\x59\xe9\xd5\x2f\xf3\x21\x8f\x47\x8a\x46\xa3\x4c\x91\x69\x35\x0b\xa8\x4b\xaa\xe9\x25\x80\x7a\xa0\x31\x06\x94\x80\xe5\xc8\xb6\x38\xb0\x58\xee\x9c\xa7\xdf\x48\x74\x7e\xad\x65\xae\xd6\xb1\x21\x1c\x4d\xa5\xf1\xa4\x41\x74\x0a\x10\x7a\xe6\x69\x83\x10\x1a\xa0\xef\xd0\xa8\xf8\xee\xbb\xbf\x24\xe8\x93\xfb\xc7\x7f\xfc\xf5\xaf\x7f\xf9\x8f\x4d\x2a\x1a\xc3\xb8\x25\x8d\x6c\x31\x81\xaa\x10\x0e\x77\xe0\xac\x52\xbf\xac\x7b\x24\x18\xca\x61\x99\x8e\x65\xdd\x32\x6a\x6a\xea\x43\x59\xb5\xd2\x79\x23\x04\x31\xd1\x7a\x28\xb2\xd6\x04\x4f\x22\x52\x76\x54\xb5\x6a\x0b\xad\xd9\x71\x20\x63\xf7\xb9\x63\x7f\xe9\x12\x28\xcd\xcc\x5c\xed\x28\xce\x58\x08\xd0\x55\x11\xed\xe3\x62\x70\x5b\xb1\x7f\xba\x99\xb2\x69\xd6\x9e\x00\xd9\xcb\x72\xc7\x08\x3a\xa5\x7b\x08\xa2\x03\x63\x98\x6d\x18\xb1\x0f\xfa\x9e\x3f\x67\x13\xfe\xd6\x32\xec\x05\x65\x8f\xf0\xaf\x06\x1f\xf7\xf6\x7b\xe4\xcb\xae\x05\x9f\x3b\xfb\xc0\x50\xfc\xd0\xd6\xde\xd4\xb3\x96\x0a\x27\x8f\x26\x03\xab\xad\x6c\x5f\xd7\xc2\x83\x25\x84\xa1\xd0\x92\xd2\x92\x0e\xba\x96\xc8\x30\xcb\xfc\x89\x62\x84\xd1\xfd\xcd\xf9\xe6\xf9\xc3\x24\xe2\x49\x9f\xc6\xd0\x94\x51\x53\xc9\x72\xdc\x2a\x39\xce\x68\x4b\x0f\xdd\xf0\x27\x4e\x29\x03\x5c\x49\xdb\x46\x9e\xc7\xed\x89\xcb\x5a\x60\x96\xc7\x7c\xef\x5f\x2b\x02\xb4\x65\x68\x1e\x21\x9a\xd8\xc2\x94\xb0\x4c\x5b\x7a\x0c\xf5\xdd\xad\x3f\x53\x77\xeb\xca\x12\xd6\xea\x71\x5d\xff\x66\x9b\x8f\xbf\xc5\xcb\x6f\xdd\x12\x2b\xa9\xfd\x75\x2f\x5e\x75\x34\x5b\x7b\x59\xd7\xf5\xdd\x5e\x6a\x6a\x5d\x73\x58\x27\x06\x84\xb1\x9d\xca\x63\x7c\x45\x3b\x77\x63\xaa\x19\x61\x70\xa1\xaf\x3f\x72\xa5\x0d\xf0\xba\xfa\x0a\x2e\xd1\x1a\xce\xc6\x0c\x34\xd0\x82\x51\x9b\x9f\x6a\x9d\xea\x81\x37\xc1\x95\x3a\x2d\x9f\xd7\xf6\x0c\x56\x54\x6a\x8b\xae\x96\xe2\x25\xf4\x65\x1b\xaa\x77\x2a\x99\xea\xb6\xb9\x8d\x55\x7d\x54\xe4\x08\xbd\xa3\x42\xaa\x60\x49\x5a\xbf\xb4\xc8\x95\xa6\x22\x6c\x6a\x46\x1a\x93\x2e\x76\x61\x84\xb8\x15\xac\x6b\x99\xf9\x08\xd8\x11\x1a\x96\xa5\x01\x0c\x76\xc7\x34\x92\x5b\xb1\x22\x92\x49\xb2\x09\xf3\xad\xa5\x5a\x82\xc2\x0e\x0c\x04\x1d\xf0\xb1\xd4\x9f\x97\x09\x60\x7e\x9a\xcf\x00\x32\xc1\x8f\xa4\xa9\x74\x6b\xd7\xb2\xbf\x2b\xab\xfd\x0e\xbd\xe6\xc8\x8d\xf2\xb8\xc9\x04\xd7\x3f\x76\x25\x5c\x8a\x4e\x8e\x35\xc9\x6d\x1d\x7d\x13\xdb\x9a\x00\x1f\x5a\xc0\xd5\xf3\xcc\xf6\x70\xb3\x4c\xe9\xf6\x4f\x9a\xee\x1e\x05\x71\x31\x2c\x08\x0d\x7a\x02\x1f\x8d\xd8\xf9\x04\x31\x1e\xe2\xb1\x60\xd6\xfe\x90\x1a\xdf\x97\xdf\x6f\x64\xef\x06\x43\x06\xb0\xc4\xdd\x50\xcb\xa7\x39\xf2\x1a\x6c\x71\x9c\xb7\xeb\x10\xe2\x4f\x6e\xc3\x35\xd6\x35\xdb\xad\xf1\x2c\x75\x0a\x92\x4e\x09\x23\x82\x26\x90\x49\x61\xae\xdd\x1c\xd3\x3a\xdb\xcf\xa6\x92\xef\x6b\x4e\xd0\xae\x93\x81\xec\x72\x37\x4c\x04\xca\xcc\xd3\x06\xcc\x9e\x65\xfc\xd9\x25\x00\xed\x22\x6d\xa6\x4c\xea\x5f\x2f\x65\xc6\x30\x8f\x34\x05\x02\xcd\xbc\xba\xf1\x48\x44\x62\xdb\x88\xc6\xb8\x71\x24\x64\x2f\x19\xc4\x1d\x9f\xf8\x2c\x27\xe3\x04\x32\x09\x91\xda\x28\x5c\xfa\xc7\x0f\x19\x1f\xcb\x37\x61\x5b\x03\xfb\x8e\x12\x78\xd7\xcc\x82\xbb\x49\xaa\x71\xa4\x78\xc9\xfb\xd0\x9d\x99\xf0\x3e\xec\x42\xf8\x7a\xa6\x2a\x63\x60\x06\x77\x80\x05\x2f\x98\x4b\x4a\xe0\x8c\xf0\x09\x00\x11\xa1\xe0\xb2\xb3\x0a\x01\xaf\xcc\xb8\x0a\x30\x06\x82\xe4\x26\xc2\x05\x1a\x6a\x33\xb9\xb7\x4c\xcc\x59\x45\xe7\x97\x48\xcc\xd9\x96\xee\xf6\xe0\x7c\x26\x82\x6f\x9b\x6e\x61\x8e\x52\x07\x31\x0b\xbf\x5f\x69\x8c\x7b\x39\x00\xd6\x77\x58\xbd\xc6\x40\x6a\xc1\xa5\x4b\x0e\x15\x3f\x04\x6c\x16\x20\x7e\x4c\xaa\x5c\x53\xe1\xa3\x64\x46\xe6\x1d\xb2\x91\x6e\xe1\xf7\x6b\xcc\xd3\xb4\x6a\xfb\x14\x4c\xd4\xde\xbd\xd2\x24\x09\x5b\x5f\x15\x65\x50\x0f\x1c\xec\xb3\x95\x37\x47\x47\x17\x47\xb8\x95\xed\xae\x2a\x9b\x06\x52\x49\x63\xb2\xc9\x87\x13\x30\x7a\xdc\x1c\x8e\xd0\x15\xcb\x16\x68\xc6\xe7\x5c\x5f\xdb\xbc\x90\xc1\x97\x06\xd7\x03\x97\x4d\xa3\x8e\x31\xc7\xb9\xc1\x62\x7f\xbe\xd5\xe8\xa3\xa5\xbf\x32\xba\x63\xf8\xa3\xd5\xb9\x9c\xc1\x4a\xc6\x71\x2e\xdc\x8a\xf9\xfb\x24\xa6\x76\xbe\x81\xcc\x9b\x39\x9d\xce\x14\x9a\xe1\x27\x12\x75\x6a\x02\xd6\x9f\xfb\xa2\x70\xae\x64\xbc\xc9\xfd\x02\x86\x62\x75\x85\x1d\x1b\xfd\xd0\x5d\x52\xf1\x3a\x94\xce\x0f\xa0\xba\x1e\xe4\x06\x44\xf6\x80\x57\x07\x24\xf3\x0f\x3e\x95\x75\x42\x16\x39\x19\xa0\x71\x01\xdf\x5f\x5e\xdd\x85\xbe\x21\xca\xe0\xeb\xc3\x64\x46\x92\x47\xbd\x2f\xc8\x08\x45\x43\x2e\x57\xf0\x65\xbc\x18\xb1\xb2\x0a\x81\xe2\xce\xd1\xb1\xf0\x69\x1e\x3e\xd5\x89\x0b\x94\xda\x9e\xb5\xe4\x93\x22\x2c\x85\x97\xd4\xf4\x2f\xd1\xcc\xb2\x99\xd9\x02\x65\x12\xac\x14\x70\x7a\x18\xfc\xe5\x16\xe1\x0b\x6e\x01\xe8\x79\x82\x93\x5a\xb5\x63\xeb\xc4\x9b\x6d\x02\x1d\x4d\x05\x3f\x82\x32\x73\x66\x47\x43\x57\xa9\xc7\xdc\xb0\x0a\x78\x66\x64\x4b\xc6\x8f\x0e\xc0\x83\x32\x72\x15\xa9\xf4\xdf\xa6\xec\x0e\x11\x4f\x24\x1d\xb1\x18\xd5\x64\xaf\xb2\x72\x97\x51\x99\x08\xde\x24\x3a\xbb\x67\x9b\x6a\x3a\xfb\x64\xc8\xd6\x18\x0c\x44\x72\x4b\x08\xb7\x2f\x52\xd6\x92\x98\x5e\x5f\x2a\xff\x05\x32\xa8\xd7\x76\x7e\x94\x99\xe7\x36\x6d\xd4\xd6\x85\x20\x26\xa7\x31\x5b\x98\x3e\x87\x96\x31\x3d\x66\xc3\x00\x3a\x3d\x48\xd5\x02\x39\x4a\x78\x82\xdd\xf3\xba\x31\x46\xcc\x85\x16\x27\x45\x96\x19\x90\x7e\x63\x33\x12\x83\xe1\x72\xa1\xba\xcf\x07\x94\xf1\x76\x2d\x0a\x52\xf5\x83\xd6\x1d\x79\xaa\x65\x07\x4b\x16\x65\x85\x3d\x60\x5e\xc2\xa4\x69\x22\xef\xd2\x74\x01\x91\x3c\x25\xca\xf7\x61\x05\xcc\x91\x28\x98\x05\x84\xe1\x2c\x43\x54\xc9\x11\xf3\xf8\x35\x53\x3e\x07\xae\x02\xd7\xfd\x35\xb5\xba\x20\xbc\x02\x86\x85\xaf\x31\x83\x0b\x82\x26\x54\x45\x53\x02\x4f\xe5\x22\xcc\x6d\xcb\x73\x82\x05\xa8\x8b\xae\x14\x6b\xa8\x0d\x56\xb7\xc1\xf6\xbc\x82\x1a\x3b\xcd\x35\x91\x77\xc1\xbd\xa6\xc6\x52\xe7\x4d\x39\x42\x43\xb3\x3a\xad\x0a\xba\x42\x33\x66\xb6\xae\x77\xb1\x89\x27\x68\x7d\x4b\x49\x5f\x78\xce\x6b\xd4\x39\x16\x8a\x26\x45\x86\x45\xb6\xd0\xd2\x65\x52\x64\x88\x4e\x82\x9a\x39\xb0\x09\x06\xbe\x04\xe5\x25\x39\xdc\x11\x0e\x9e\x2c\x31\x74\x5b\xb4\x0c\xee\x0c\xcf\x2c\x70\x22\x9a\x94\x2c\xe3\x9d\xd2\x63\xbd\x39\x42\xa7\xd5\x0a\x49\x70\x2c\x02\xd8\x33\x95\x46\x02\xfa\xf9\xda\xec\x4e\x28\x0e\x06\x95\x96\xe8\x44\x2b\xbb\xdf\x04\x07\xaf\xa9\x24\x1b\x96\x8f\x1d\x3d\x94\x77\x58\x3e\xae\xf4\x52\x9e\x07\x57\x65\x29\x00\xef\xa0\xd2\x57\xe4\xb7\xf4\x27\xa2\x61\x82\xee\x72\xe8\x38\xc9\x10\x32\xbe\xc1\x44\x3d\x24\xbf\x66\xb2\xf3\x96\x12\x3d\xb0\x8f\x1d\xa7\x1a\xa4\xcf\x76\x9f\x68\xc0\x39\xa1\x3f\xba\x91\xb2\xab\x8d\xcb\x8f\x51\x22\x2b\xd2\xf3\xd2\x8a\x3d\x31\x11\x8c\xa8\x4c\xa3\x95\xe5\x36\xe3\x15\x92\x0e\xfd\x61\x1b\x13\x94\x51\xf6\x68\x4e\x05\x86\x9d\x1f\x20\x5c\x8e\x0e\x87\xcf\xcc\xde\x30\x73\x83\x66\xe3\x71\x05\xbb\x09\x09\xaf\x07\xed\xa8\xdd\x5c\xbf\xee\x9a\xe7\x57\x33\x62\xdd\x3a\xd6\xdf\x96\xd6\xb0\x9d\x57\x62\x5d\xac\xce\x5c\x30\x71\x7f\x8d\xc5\x2a\xfa\x5e\x57\x1a\xe8\x35\x69\x81\x07\x84\x15\xf3\x83\xb7\xe8\x7f\x4a\xca\xdc\x5f\x9e\x9e\xbd\x3b\xbf\x3c\x3b\x0d\x18\xf8\xe0\xbf\xef\xcf\xee\xe3\x4f\x6e\xee\x2f\x2f\xcf\x2f\xdf\x87\x1f\xdd\xde\x9f\x9c\x9c\x9d\x9d\xc6\xbf\x7b\x37\x3c\xbf\xa8\xfc\x4e\x7f\x14\xff\x68\xf8\xc3\xd5\xcd\x5d\xfc\xd1\xed\x4f\xe7\xd7\xd7\xf1\x47\x77\xe7\x1f\xce\x4e\x1f\xae\xee\xef\x1c\xad\xff\x11\x50\x18\x60\xad\x10\xdd\xf5\xf3\xaf\x25\xd1\x2e\x2a\x60\x74\x8d\x3f\x07\x90\xf6\x89\xa0\x84\xa5\xd9\xc2\xd4\x12\x73\x76\x47\x25\x48\x19\x8a\x74\x3a\x27\xbc\xd8\x06\x33\xa0\x4d\x5f\xfe\xa4\x4d\xea\x0c\xd9\xd1\x96\xba\x7b\x56\xdf\x2a\x88\x12\xcb\x6e\xb0\x56\x94\x85\x12\x8b\x5b\x25\xb0\x22\xd3\xc5\x9a\x40\x35\xfb\x12\x94\x93\xee\x2d\x4d\x9d\xe1\x65\x70\x96\xb4\x56\x9a\x5e\xd6\xcb\x21\x97\xf0\xbd\x65\x56\x25\x38\x8e\xd7\x27\xd0\xb5\x7f\xa4\x9e\x33\x4e\x5c\x91\x08\x6d\xd1\x2a\xcc\x1a\x00\xf4\x1d\x0b\xd9\x95\x59\xad\xa2\x2c\x27\x69\x2f\x12\xa7\xe4\x97\xa8\xdc\x4d\x0c\x5f\x9b\xd8\xce\xd2\xb2\x71\x81\x4d\x78\x0f\xaa\x5a\xd4\x6c\x42\xa5\x54\xd8\x8b\x5f\x02\xad\x2c\x69\xb1\x7d\xa0\x99\x99\xcc\x42\xdb\x8e\xc3\xdc\x9a\x90\xae\xdb\x18\x49\xdb\x71\x65\x41\xaf\x19\x96\x65\xd1\x7c\xa1\x3d\x27\x2e\xba\xeb\x01\x95\xa2\x62\x41\xc1\x35\x53\x46\x1f\x12\x49\x61\xd8\xd2\x55\x66\x2f\x7e\x73\x4c\x9f\x48\x8a\x0e\xc3\x42\x8e\xe9\x21\x80\xbf\x46\xac\xc9\x00\xac\x29\x82\x18\x72\xc0\xb5\xab\x71\xb1\xcd\xde\xd7\x50\xbf\xf9\x08\x3a\x62\xaf\x87\x79\x40\xee\xe7\x47\xa8\xd9\xd3\x68\xf7\x65\x8c\x8d\x87\x07\xce\x96\x2f\xde\xd1\x84\xc0\xf2\x57\x55\x37\x87\xe8\x5a\xce\x50\xec\x13\x3c\x8c\x1b\x14\x54\x8a\x19\x06\xf7\x98\xa9\x59\x19\x4d\x3c\x28\xd9\xd9\x64\x53\xf8\x44\xef\x06\x2e\xb7\xb9\x7b\x8d\xc5\x51\xeb\xbe\x6e\x32\xf0\x06\x26\x60\xef\xab\x30\x87\xd9\xb1\x3e\xd3\xbf\x1b\xe3\xfb\xdd\xf0\x39\xd5\xd8\xc9\x3d\x10\x58\x19\x2e\xb4\xca\x9d\x67\xd8\xe0\x7c\x66\x58\x1a\x96\x76\x3e\x44\x3c\xa6\x19\x55\xd0\xf1\xcc\x58\xdf\x15\x0a\x73\x81\xe6\x58\x3c\x6a\x83\x93\x64\x13\x3d\x7a\x25\xf6\x5e\xcb\xf4\x5b\xc6\xb9\xca\x02\x31\xaf\x19\xe9\x2a\x8f\xec\xba\xa6\x7b\xc9\x96\x36\xca\x55\x6e\x87\x29\x61\xac\x78\x50\xec\xa6\xdb\xce\xda\x11\xaf\xab\x8f\x47\xf4\xae\xb9\xa8\x37\x68\x7c\x69\xb0\xf9\x1d\xc4\x7c\x15\xb9\x5f\x7b\xb2\x26\x19\xc7\x0d\xe5\x6a\xdc\xd8\x06\x88\xdf\x34\x76\xca\x0b\x2d\xce\x6a\x07\x37\xb3\x6a\x1f\xbd\xcd\x3e\x72\xe7\x76\xbb\x53\x5f\x2f\x00\xb1\x22\xd0\x5c\x66\x23\x82\x96\xbd\x69\xea\x07\x5f\xaf\x1d\x74\x0b\xa3\x95\x59\x2b\x8e\x79\xd0\xdd\x22\x27\x35\xe5\xd1\x22\x68\xf1\x86\xb6\xd6\xed\xf5\xd9\xc9\xf9\xbb\xf3\x8a\xa1\x33\xbc\xfd\x29\xfc\xfb\xe3\xd5\xcd\x4f\xef\x2e\xae\x3e\x86\x9f\x5d\x0c\xef\x2f\x4f\x7e\x7c\xb8\xbe\x18\x5e\xae\x30\x87\x96\x5f\xb1\xec\x8d\x28\x01\xf6\x25\xcc\x59\xdf\x0d\x16\x99\x0b\x96\x68\xcd\xf9\xba\xa9\x49\x92\xdb\xb4\xeb\xc9\x8b\x79\x1c\xfd\x24\xdd\x3f\xce\x98\x12\x8b\x2e\xc9\x93\x28\x25\x12\xee\x21\xeb\x5c\x8c\x13\xf7\x88\x04\x57\xad\x1b\xfd\x12\x04\x9b\x73\x7e\xdb\x08\x8a\xa5\xa3\xbe\x58\x32\xda\xd8\x52\x21\xd3\x0c\xb7\xaf\x74\x08\x21\x7a\x40\x85\x31\x2f\x58\xea\x2a\x94\xcd\x29\x3b\x9e\xe3\x4f\x6f\xdc\x4a\x2b\x2d\xbf\x4d\x59\xf8\x4c\x6b\x1d\x0b\x24\x0a\xd6\x4e\xae\x11\x6b\xa1\xd7\xea\x9b\xc1\xb4\x0b\xa7\xff\x02\x15\xa7\xd4\x47\x8d\x43\xf7\x89\x2c\xea\xf6\x6f\x29\x21\xc9\x38\x8d\xad\x0e\x0c\x83\xe4\x82\x40\x41\x4e\xef\x2e\xce\x4c\x18\xc0\xff\x0d\xe1\xc8\x28\x4f\xb3\xee\x4e\x8a\x4d\xe5\xad\xce\x4d\xad\x91\xfe\x02\x29\x65\xf6\x4d\x7a\xd3\x8c\xc9\xee\xd2\x37\x6d\xf8\x35\x45\xcf\x33\x62\x76\xeb\x57\x3e\x46\x13\x88\x56\xdb\x32\x2c\x82\x24\xe0\x7d\xd0\x7b\xe1\xd2\x74\x00\xf5\xba\xe4\x07\x70\x3c\x90\x11\x09\xbe\x30\x28\x69\x48\xfe\x59\x58\x68\xdb\xf7\xdf\x75\x4b\x7d\x52\x62\x81\xa4\x25\x73\x18\x2d\xb7\x60\x11\xeb\x52\x83\x79\x15\x8c\xd6\x95\x4e\xbb\x31\xc5\xfc\x5e\xb7\x66\x6a\xe5\xa5\xf6\xcf\x95\x80\x82\x3b\x97\xa5\x62\x7e\xff\x62\xe9\x0b\x3f\x57\xb2\x16\xec\xeb\x20\x4e\x68\x47\x97\x01\x28\x5e\x5b\x46\xcf\x58\xa4\xc6\x31\xa0\x28\xd8\x53\x3f\xf2\x67\xf2\x44\xc4\x00\x25\x44\x28\x6c\xd1\xc4\xfa\xac\x65\x19\x1c\x28\x3b\xce\x88\x41\xe8\xdc\x40\xb3\x19\x94\xb0\x51\x74\x3a\xd3\xca\xa3\x35\x42\x6d\xd9\x4b\x49\x14\x20\x01\xc9\xa7\x9c\x24\x06\x33\xd1\x14\x28\x9e\x64\xf8\x69\x19\x1e\xbd\x09\xf2\x35\xa8\xec\xe9\xda\xcf\xd8\x94\x92\x56\xa7\x94\x2b\x10\x69\xa4\x66\xbe\x50\x33\xce\x06\x68\xca\x33\xcc\xa6\x47\x47\x47\x88\xa8\xe4\xe8\x4d\x27\x46\xb7\x03\x06\xaf\x2b\x03\x5e\x19\x97\x24\x5b\x38\x0b\xaf\x04\x26\x68\x2a\x03\x10\x42\x52\x63\xde\xd4\x70\xff\x6d\x15\x40\xfb\xba\x6e\xb2\x7a\xad\xb4\x33\x12\xa7\x61\x9c\x6a\xbf\x90\x55\x23\x99\xdf\xd7\x6b\xda\x1d\x90\x65\xae\x4f\x79\x89\x30\x6b\x48\x70\xe2\xac\x2b\x6c\xea\x67\xde\x54\xed\x65\xa3\x8c\x80\xda\x91\x2c\x7e\x7b\x23\x20\xd1\x32\x47\xd7\x70\x9c\xc7\xdc\x6d\x95\x7d\x94\x15\xf3\x97\x6b\x35\x5f\x4e\xd2\xfc\xeb\x04\x5e\xb7\x7e\x7d\x00\x5f\xd4\x06\x5a\xa2\x12\x2d\x19\x61\xbe\xc6\xef\x61\x98\x09\xa4\xa5\xa0\x12\xf2\x20\x36\x71\x8b\xfb\x61\xcc\xd0\xe0\x9e\xd5\x36\x8c\x29\x33\x66\x1b\xba\x00\xc4\xca\xf7\x65\x31\x8f\x48\xa3\xea\x80\x4f\xb7\x59\x32\x94\x18\xce\x8d\xac\x9e\xcb\xab\xcb\xb3\xd0\x94\x39\xbf\xbc\x3b\x7b\x7f\x76\x13\x85\x88\x2e\xae\x86\x77\x51\x38\xe8\xee\xa6\x12\x45\xfa\xe1\xea\xea\xe2\x6c\x78\x19\x7e\x74\x3a\xbc\x3b\xbb\x3b\xff\x10\x0d\x7e\x7a\x7f\x33\xbc\x3b\xbf\x8a\x7e\xf7\xc3\xf9\xe5\xf0\xe6\xef\xe1\x27\x67\x37\x37\x57\x37\x95\xf7\xdd\x9f\xb4\x07\x9a\xa2\x65\xd4\xef\x44\xa9\x2c\x07\x70\xd6\x3a\xa5\xf0\x0e\xcb\xc7\x1d\x07\x47\x01\x0c\xb0\x61\x33\xd2\x06\xa1\x94\x92\x87\xcd\xe2\xa6\x4d\xb1\xdf\xda\xf7\x68\x7d\x70\xf1\x80\x95\x22\xf3\x7c\xbb\x82\x09\xeb\x1f\x9c\x6e\x21\x59\x30\x69\xd6\x08\xc9\x46\xbb\xba\x3f\x21\xd9\x9a\x68\xab\x0d\xc9\xb6\xb1\x7b\x4b\x5c\x55\xaf\xf3\x82\x6f\xd5\xa1\xa9\x4b\x6f\x87\x90\x27\x57\x47\x62\x6b\x9f\xb3\xc0\xf9\x87\xfa\x6e\x01\xf5\x8c\x6c\x57\xf9\xc1\x3c\x6a\x9a\x05\x34\x04\x6d\xd5\xaa\xce\xf5\x2d\x9c\xe9\xfd\x4f\x17\x7c\x5a\x0f\x52\xf5\x1d\xf6\xa8\x0c\xd2\xd4\xc1\x9b\xcd\xa7\x48\x52\xf6\x38\x62\x1f\xb5\x41\xc6\x0b\x61\x3e\x52\x5c\x00\xde\x79\x92\x15\x72\x46\xa0\x0c\xd3\x00\x3d\x13\x34\xc7\x0b\xe3\xd5\x8e\xeb\xd4\x42\xb1\xcd\x8c\x3e\x12\x78\x3a\xa3\x4c\x73\x7b\x4e\x9d\x06\x54\xdd\xfa\x5d\x18\x48\x29\x95\xde\x4e\x7c\xc1\x50\x43\xe9\xe9\x7a\x9e\x11\x80\x95\x06\x55\xae\x5c\x81\x4c\x23\x79\x20\x85\x89\xf3\xc7\x22\xb7\xed\xcd\xb0\x7c\xfc\xc6\x81\xb4\x80\xdc\x4f\x9c\xa6\x28\x2d\xf2\x2c\xe8\x2e\xf8\xcc\x45\x63\x50\xdd\x68\xea\x1d\x82\xea\x15\xfb\xb3\x6d\x61\x35\x66\x40\x60\x75\xb4\x84\xfa\x5f\x18\x60\x10\xd4\xbe\x28\x24\x11\x87\x4a\xd0\xe9\x14\xf4\x1e\xe7\x54\xd8\x53\x04\xc2\x60\x99\x37\x17\x0f\xdb\xdb\xcf\xa1\xab\x35\x33\x95\x41\x7d\x25\x00\xcd\x53\x79\x9e\x2d\x1c\x2e\xd0\x10\xd0\x1d\xfb\xbc\x10\xa6\xa0\xcf\x04\xf9\x09\x35\x86\x18\x73\x41\x12\x68\x01\x6f\xca\x89\x6c\x5f\xe6\xe4\x7c\xa2\x35\x19\xdb\x23\xb5\x2c\xc8\x52\xd6\xc2\x30\x9b\x0d\x49\x0a\xf6\xdd\x0e\xb5\x6f\x12\x66\x99\x69\x8c\xf7\xcc\x5c\xcb\x40\x2c\x8d\x69\x0f\xbd\x99\x17\x65\x3f\x41\x68\x4c\x06\xe9\xb6\xbe\xd7\x9c\x4d\x00\xb4\x3e\x3a\x53\xb1\x6e\x25\x62\xc4\xcb\x51\xc0\x29\xc6\x9d\x85\xaa\x12\x6c\x5b\xd4\xbd\x0f\xaf\x6f\xaa\x70\xb5\x9b\x0c\xd3\x8c\x8f\x71\x96\x2d\x6a\xf0\xf8\xe1\xa5\xd0\xcd\x3f\xe6\xfa\x1f\xc5\x57\x8a\x03\xce\x40\x24\x96\xb7\xe4\x39\x47\x55\xfa\x77\x9a\xb0\xb0\x3d\xc1\x0a\xc5\x4d\xae\x31\x38\xfc\xf4\xe2\xce\x2b\x55\xe4\x8f\x0c\x7a\xf5\x3c\xad\x2d\x93\x51\x32\xb4\xa3\x7c\x93\xf0\xac\x31\xd1\x3b\xe5\x5b\xe4\x82\x38\xe7\xcc\x82\x28\xef\x93\xc9\x1c\xba\x76\x91\xc7\x85\xc3\x43\xa7\xb4\x73\x3b\x39\x77\x37\x01\xf8\x77\x50\x9a\x94\x33\xc2\x94\x29\xd0\xc8\xf8\x88\xd9\xc1\x5d\xf6\x96\x2f\x80\x62\xfd\xec\x86\x30\x03\xab\xe2\xc2\xa1\x15\x44\xf2\xec\xc9\xf6\xec\xf4\x34\x51\x1c\xd0\xd5\x7a\x82\x27\x5a\xda\x6a\xdd\x42\x5b\x98\xbe\xb4\xe4\x8c\x8c\x58\x25\x85\x49\x90\x29\x95\x0a\xe4\xbe\xe3\xd8\xf0\xf9\x9d\xa5\x75\x44\xea\x48\x1b\xe9\x1b\xd3\x3a\x5a\xee\x01\x1f\x4a\xe8\x30\x9f\x45\x4e\xd2\x73\xff\x5c\x3b\x33\x44\x96\x79\x1a\x44\x2e\xa2\x43\x6e\x78\xc0\xc8\x53\x69\x72\x63\xa4\x6f\xf8\xe9\x37\xc9\x97\xd4\xf1\x35\xb5\xf5\x16\x4d\xb1\xab\xab\x2e\x7d\x51\x6d\x08\xa6\x46\x1e\xd5\x4a\x0f\x1c\xaf\xea\x24\x5c\x2a\x13\xbe\x81\x47\x26\x98\x66\x85\x68\xbc\xc1\x0d\x5b\xee\x3c\xe9\xec\x04\x86\x45\x75\xbb\xe6\xdd\x9e\xc1\x31\xf2\x2e\x4f\xdf\x5b\x27\x2b\xa6\xa6\x39\x7c\x28\x0e\x9a\x32\x32\x97\xeb\xed\xae\xd8\xf0\xb2\x44\xef\xfa\xb2\x78\x68\x0e\x7b\xa5\x93\x75\x7d\xfd\x1e\xab\x53\x05\x73\x1f\xb1\x3b\xb8\x4a\x4d\x4e\x95\x3f\x66\x50\x5f\xc9\x94\xcb\x80\x62\xc3\x75\xeb\x8d\xe4\x79\xcc\xa9\x5b\xe1\x25\xea\xb2\x9f\x56\xe3\xb2\x3e\xe0\xbc\x2d\x31\x65\xeb\x11\x57\x6d\x83\x77\x9e\x55\x8f\x61\xb5\x7a\x6d\x0d\xf5\x3c\xb6\xec\x55\x62\x44\x5d\xd2\x64\x3d\xc4\xd0\x26\x98\x2f\xe5\x38\x46\x7a\x63\xf8\x68\x77\x94\x69\x19\x1c\xb1\x0d\xf3\xcc\x80\x63\x83\x0b\x0c\xa1\x8c\x5b\xe4\x58\xfa\x8d\xa9\x34\x34\xae\xdb\x8e\x2d\x61\x56\x25\x32\xf6\x15\x51\x56\x3f\x2f\x91\xa8\x2b\xc8\xaa\xd2\x26\x5e\xf1\xa0\x9d\xd4\x5a\x1a\xb3\x07\x57\xfd\x1c\x43\x83\x23\x12\x73\xba\x16\x86\x7a\xb9\xf6\x1a\x28\x2d\x29\x61\x5c\x11\x84\x11\xa3\xd9\x31\x2b\xb2\xec\xf8\x12\xba\x79\x48\x49\xa7\xa6\x58\x30\x38\x34\xa2\xee\xcb\x00\x4d\x0d\xa0\xa6\xc1\x11\x80\x2b\x52\x4f\xc9\xf4\x32\x57\x5a\x62\xea\x2d\xc8\x16\x23\xa6\x9f\x30\x2a\x96\x6f\xa5\xe9\x5a\xf2\xc1\xdb\x5c\x56\x8b\x7d\x97\x36\x5d\xd9\x22\x1c\xbc\x86\xc1\xda\x12\x41\xb6\x8a\x98\xf5\x15\x02\xf7\xa6\x42\x20\x17\xce\x31\xd4\xa1\x56\x60\xf3\xa1\xda\xb8\x58\x9f\x57\xc4\xbc\xc7\x79\x0d\x7e\xfc\x9c\xde\xe6\x97\x4c\x0b\xda\x3a\x07\xc8\x51\xaa\x8b\xd3\xb2\xc2\x1d\xee\x51\xcf\x08\x7a\xcb\x44\x90\xfa\x3e\x62\x77\xdc\x5b\x68\x96\xfd\x27\x85\x56\xed\x5a\x44\xc9\xb6\x3e\x08\x83\x64\xce\x33\xcc\x1e\xcc\xdd\xf2\x19\xbc\x10\x01\x9a\xba\xa9\x0e\x4b\xd0\x19\x6c\x37\xf3\xf4\x07\xec\x26\xca\x71\x08\x5b\x05\x0d\xaa\xb5\x1a\xdd\x85\xe0\x7b\x26\x5b\x5b\xc8\x56\xcd\xfd\x54\x17\xae\x5e\xed\x49\xc1\x15\xbb\xc9\x97\x8d\x5e\xe1\x4a\x59\xea\xe5\xb7\x5f\xee\x14\x5f\x8f\x88\x21\x5c\x28\x5e\x3a\x56\xe8\xb2\x53\x65\x06\x89\x34\x54\x2e\x31\x0b\x4e\x04\x97\x72\xb5\xc9\xd5\xdd\xe4\x5f\x3a\xd0\x1b\x99\xfd\xfe\xec\x7e\x0e\xd3\xbf\x51\xc5\x5d\x76\x01\x7c\x8c\x7b\xd3\x24\xd0\xec\x2d\xc9\x8a\x94\x20\xc9\xf5\xbd\xeb\x34\xf0\x7a\x58\x7d\x25\x9c\xfb\xa2\x59\xfe\x71\x52\xe3\xda\xb8\x08\x53\xe7\x03\x9d\x33\xe4\x34\xe9\x01\x1a\x1d\x18\x7e\x92\xa3\x83\xb8\x91\xaf\x2b\x22\x12\xd7\x67\xaf\x3a\xc8\x8c\x6b\x39\x68\x2f\xc6\x02\x33\xae\x4a\x97\x06\x6b\xf3\x73\x56\xef\x08\x40\x23\x26\xfa\x34\x36\x03\x58\xe5\xc1\xe8\x44\x0b\x57\xda\x03\x32\x08\x45\x91\xa8\xa0\x55\xa0\xab\x84\xf0\x83\x7b\x50\x93\x28\x2f\x32\xdb\x0a\xd9\x55\x1e\xe0\x62\xc4\xdc\x68\x65\x41\xb2\x61\x96\x2d\x0d\xb5\x5c\x04\x24\xe0\x55\x28\x09\xe4\xe0\x9c\x00\x13\xd6\x3f\x02\xc0\xcb\x52\x93\xa5\x11\x33\xc9\x3d\x3e\xaf\xec\x08\x0d\x2b\x2d\x14\xe3\x7a\x17\x61\xb9\x8b\x2c\x73\xb5\x1e\x4c\x05\x85\x20\xc1\x5f\x16\x50\xf6\x7c\x52\x68\x21\xe4\xdf\xae\xf8\x88\x41\xe9\x13\xd3\x0d\xdb\xd1\x65\xc4\x3e\x70\xe9\xda\x3a\xc9\x92\x1e\x0e\xe7\x6a\xc9\xf6\x8d\x47\xb5\xda\x0f\x4e\xb5\x10\xd1\x4f\x69\x13\xa4\x92\xd3\x08\xe1\x0f\x08\xd2\x0e\xd0\x82\x17\xa2\x5c\x54\x82\xd9\x88\xfd\xaa\xc9\xe3\xea\x79\x70\xdf\x74\x14\x0e\xb1\xcb\x01\x45\xdf\xfe\x62\x06\xfd\xf6\xaf\x6f\x7e\x79\x63\xaa\x25\x15\xb2\xd0\x72\x75\x10\xdf\x35\x6e\xa2\x7a\x4b\x29\x9b\x8e\x98\x5b\x81\x2f\xd0\x5e\xbe\xa2\x35\xf3\xd7\x3a\xf5\x76\x5d\xe7\xb6\xf4\x0c\x0c\x51\x82\x55\x32\x3b\xc4\x96\xf7\xc2\x1a\x27\x54\x96\x55\x94\x9f\x67\x84\x41\xb7\x9f\xb8\xf2\xb2\xc1\x55\xa3\x54\x4b\xb6\xb9\xcf\xca\x8b\xf8\xc5\xf4\x7d\xb0\x30\xe3\x4a\x3a\xa2\x7b\x13\x30\x67\x99\x10\xf7\xb1\x94\x0c\xee\xe7\x0e\x26\x5c\x9a\xf3\xd6\x85\xa1\x4d\x8b\x14\x8d\x0c\xac\x6e\x74\xe0\xb6\x7f\xc4\xf2\xf1\x51\xb6\x98\xa8\x23\x00\xf9\x1d\x69\xb2\x1c\x9d\x55\xdb\x43\xac\x52\x26\x8c\xc6\xef\xa7\x73\x1b\xbb\x04\x89\x37\x21\x88\x71\xf3\x0e\x7c\xef\x71\x16\x37\x10\xf5\xc7\x01\xea\x97\xe8\x7b\x05\x2b\x9a\xc0\x85\x8c\x19\xce\x16\x80\x8d\x1f\x8c\x58\x4a\x05\x49\xa0\xb3\x59\xb2\x48\x32\x9a\xd8\xf2\x0f\xb1\x8e\x42\x9e\x08\x53\x11\x84\xe7\x4c\x7f\xf2\x5a\x6a\x4a\x13\x78\xa8\x5e\x0b\xbc\x6f\x50\x4e\x7d\xa9\x9e\xd8\x88\xaa\xf2\xbf\xcd\x88\x15\x1d\x33\x8a\xfd\xeb\x95\xd1\x80\xac\xf9\xcb\x05\x9d\x52\x06\x6d\xbf\xbf\x05\x6f\x50\x96\x11\xf1\xc6\xb7\x87\x00\x2a\xd6\x4f\x63\xd6\xa9\x9a\x77\x4d\xed\x87\xfa\xbb\x2d\x49\x0a\x21\x48\xfa\xb0\x8c\x79\xe9\x9a\x7d\xb5\x52\x63\xd4\xbf\x92\x0a\xcf\xf3\xb0\x4d\xb2\xcf\x13\xb0\x94\xc9\x0c\x11\x90\x9b\xd8\x00\x51\x80\xb5\x78\x25\x73\xc4\xac\x8a\x69\xf6\x8d\x8b\x9a\xb4\xe2\xea\x2a\xe1\x9c\xae\xd1\x42\xa3\xe5\xfa\xef\xda\x80\xa3\xea\x3f\xb8\xb9\x70\xa1\x55\x1e\xf5\x93\x0e\xfa\xba\x52\x38\xcf\x70\x4e\x6b\x3a\xc3\x8e\x58\x09\x9c\x38\xc9\x78\x91\x22\xeb\x3d\xb1\xbe\x08\x71\x84\x28\x39\x1a\x20\xf9\x97\xb7\xc7\xc7\x47\x47\x3b\x2a\x06\x1e\xb7\x7d\xa9\xe7\x70\xd3\x98\xa5\x0e\x98\xb4\xe2\x68\x45\xc5\x7f\x1e\xba\x29\xfa\x0e\x38\x0d\xdc\x12\x5a\xcc\x71\x5c\xbf\xfa\xca\x1c\x0b\xc2\xd4\x03\x40\x21\xbb\xbd\x10\x5e\x74\x0d\x8f\x47\x28\xbe\xb5\xac\x8c\xb2\x78\x98\x4d\x83\xc2\xf2\x11\x7d\x4b\xc1\xb1\xf8\xc6\x1a\xc9\xd0\xd9\xb8\xa5\xa6\xcf\xb2\x04\x6e\x9b\xcd\x2b\x89\xe2\x26\x98\xea\x3a\xd3\x8f\x9e\xdd\xfa\x02\xd9\x06\xdd\xda\x8a\x73\x39\xf5\x05\x2a\x21\xa4\x78\xce\x50\xc2\xe7\x63\x2d\xc4\x35\xab\x7b\x87\x01\x80\x54\x87\x0e\x29\xe6\x61\x2e\x0e\x19\x63\x72\xc8\x2b\x38\x51\xef\xe4\x0b\x71\x2c\x86\x45\x2b\x77\x53\x53\x03\x19\xc3\xce\x2f\x00\xc4\xad\x3f\xea\xc3\xea\x0a\xca\x92\xa9\x8f\x34\x79\x24\xfa\x9e\x9b\x94\xb5\x23\x42\xe9\xe6\xef\x37\x0f\xec\xb1\x6d\xa3\x4d\x98\x9a\xd8\x75\x3f\x50\x53\x18\x8f\xb8\x76\x8d\x01\xc4\xe0\x1b\x59\x4f\x9c\x97\x46\x0d\xd7\xd3\x02\xc6\xf7\xd8\x40\x9b\xbd\xe6\x55\x0b\xa3\x8c\x81\x44\xfe\xb3\x97\x87\x92\x24\x9c\x79\x3c\xe1\x4e\x2e\xfa\x1a\x44\x71\xfd\x74\xe1\xbb\xa5\xb4\xb7\x55\x5a\xc7\x96\xca\x4f\xa9\xf8\xb8\xf6\xb7\xc6\x3e\x85\x70\x0e\xa0\x16\xf4\xbb\x07\xd0\x53\xdc\x1e\x03\x68\x85\x85\x52\x32\x2e\xa6\xd3\xc6\x3b\x39\xe3\xbb\x68\x9e\xda\x4e\xd5\x0b\xde\x62\x8f\xfb\x15\x66\x6d\x98\xdc\x15\x1c\xfa\x15\x29\x5f\xad\x20\x99\x5d\xa8\x4f\xe7\xee\x4d\xc6\xe6\x9a\xd0\x8c\xbc\x8e\xc6\xb4\x23\xf5\xef\x7c\x1d\xf5\xcf\x19\xed\x10\xd8\x32\xeb\xf0\x76\xde\xef\x48\x2f\x34\x40\xa1\x07\xfd\xe4\x8b\xa2\x85\x3c\xbe\x11\x0e\xab\xc1\x01\x69\xd9\x94\x4a\x48\x53\xdd\x3d\x7c\x08\x64\xfb\x2a\xcc\xf0\xd6\x69\xda\xb7\x7c\x4e\x10\xbc\x4a\x0e\x0c\x68\xdf\x46\xe6\x06\xe0\xe4\xd3\x0b\x44\xf3\x22\x53\x34\xcf\xac\xf0\xb7\x5e\xac\x64\x86\xd9\x34\x28\x1f\x8e\xbe\x65\xe4\x19\x69\x59\x3b\x08\xbd\x1e\xc1\xf6\x0c\x10\x51\xc9\x1b\xad\xdb\x44\xd1\x14\x41\x12\x2e\x52\x80\x74\x4f\xb1\x48\x21\x7f\xdb\x32\x7c\x86\x93\x47\xa8\xfb\x02\xd7\x91\x79\xa3\xf5\xcc\x38\xd4\xb3\xf1\x16\x96\xa3\x51\x96\x98\x4e\xc8\x2e\xad\xdc\xcf\xcf\x3c\x2e\xc3\x58\x82\x2b\xf7\x61\xa2\xf6\xa0\x7e\x3d\xd1\xb4\xc0\x99\x79\x63\x17\xd7\xcb\xb5\x65\x08\x17\x60\x0e\x7c\x4e\x20\x25\xa3\x04\xdb\x77\x5c\x58\x04\x33\x50\xfc\xda\xe6\xf1\xfe\x48\x9f\xc8\x00\xdd\xe6\x58\x3c\x0e\xd0\xe9\x82\xe1\x39\x4d\xfe\xc6\xc7\x75\xfe\x94\xa5\x88\xed\xd6\x2a\xf1\xee\x4b\x5a\xd6\x1f\xf4\x8f\x4b\xf1\x68\xd4\x94\x7a\xfa\x65\x7a\x53\x1a\x82\xe9\x5f\xfb\xa5\xbe\x22\x04\xd6\x3b\x46\x76\x7a\x01\xd6\x1a\xca\xce\xcd\x81\xd3\x39\x65\x91\xad\xb6\x57\xce\xd6\xea\xa6\xd6\x81\x57\x22\x61\xbc\x96\x75\xbb\x0b\xcd\xf1\x1a\x6b\x2b\x47\x1b\x94\x73\xae\x88\xb9\xf7\xa5\xe2\x82\xe8\x73\x22\x9c\x3a\x09\xbd\x37\xa0\xcb\x3c\x6f\xee\x91\x96\x64\x5c\x16\x62\x4d\xb1\xb1\xbc\x61\x27\xf6\xf1\x56\xed\x84\xcf\x73\x08\x76\x08\x22\x8b\x4c\xc9\x1a\x7b\x6d\xc9\x6d\xbd\x59\x7f\x50\x7b\x96\x5c\x27\x11\x5b\x2d\x9d\xb2\x69\xd6\x54\x60\x78\xc4\x6c\xb1\xf5\x40\xd6\xe0\x32\xad\xc0\x29\x40\x2e\xf1\xeb\x39\x2a\x34\xed\x2b\xb5\x5b\x40\x08\xb6\x06\xb2\xd7\x43\xe0\xee\x1c\x40\x19\x16\x83\x9d\x61\x50\x85\x67\xc4\x64\x31\x3e\x2c\x61\x1b\x5c\x80\x34\x83\x34\xea\x1c\x43\x5f\xfc\x64\x46\xb3\xf4\x70\x19\x13\x65\xb5\x0a\xa8\xd1\xee\x4b\x0e\x8d\x09\x54\x15\x01\x0a\x9b\x7e\x48\x26\x18\xe8\xd7\xee\xc7\x19\x17\x0a\x11\x5f\xf3\x9a\x4a\xeb\xac\xa9\xdc\xdc\xd1\xf9\x8c\x6c\xf1\xcf\xed\x81\x5b\x7d\x3e\x9b\xb2\x86\xbe\xfe\x73\x19\xd1\x6c\x9d\x73\x79\x17\x7b\xbd\xdc\xa9\xc1\xcc\x9f\xd4\x26\x52\xc9\x07\xe3\xb2\x7a\xc1\x14\xd6\x8f\x3e\x71\xd5\xe5\x7a\xc8\x1c\x3f\x33\x8b\x81\xe8\x54\x44\x71\x3d\xf9\x50\x9f\xed\xae\xe5\x43\xe5\x1b\x11\xb5\x9b\xa7\x26\x86\x4d\x7d\x0e\xd6\x20\xc8\x05\x85\xfe\x17\x25\xb0\xbe\x34\x37\x46\xac\x04\xe7\x94\x0d\xfb\x92\xaa\xa0\xb4\x98\x97\x14\x02\x9b\x64\xe0\x02\xf6\x03\x93\x88\x64\x8d\x82\xc3\x31\x86\x82\x9f\x4a\x09\x3a\x2e\xd4\x52\xe1\x85\xe8\x34\xd7\x06\x15\x76\xa1\x8d\x9f\xbf\x7c\x7d\x79\xaf\x82\x44\xc8\xc4\xb2\x3e\x7f\x89\xc4\xa9\x2e\x3d\x28\x44\xf3\xfa\xc9\xfb\xdd\x12\x1e\x82\xea\x30\xeb\x73\xf8\x52\x52\x95\xad\x8c\x02\x16\x6c\x1a\xd4\xf5\x8d\x70\x02\x40\xc2\xb2\xee\xb1\xc7\x50\x04\xd8\x73\x2d\xa2\xf0\x94\xa0\x39\x49\x69\x51\xcd\xa7\x59\x1d\xad\xda\x2b\x33\x6f\x1d\xce\xd2\x06\xaf\x37\xfc\x2e\x41\x39\x7f\xd6\xb7\xb6\x41\x58\x81\x93\xa1\x3e\xf5\x3c\x80\x43\x62\xf5\x8d\xf4\xd1\xaf\x98\x62\xce\xa5\x73\x41\xa5\xfa\xb9\x52\xb3\x74\x83\xb4\x8d\xac\x78\x39\x68\x9b\x9b\xaa\x99\x66\xf0\x44\x2b\x84\xeb\x26\xea\xc7\x08\x4c\x66\xdc\x03\x80\xc9\x70\x09\x2d\x7a\xde\x5d\x04\xf8\x2f\x9e\x5e\xbf\xd8\x8e\x91\x02\xe7\x39\x11\xc8\x76\x8d\xac\xf6\x81\x34\xd9\x21\xf0\x96\x11\x33\x0a\xd3\xdf\x6e\xaf\x2e\x4b\xc9\x5d\xda\x2d\x95\xa1\xe1\x67\x40\xba\xa3\xfa\x9d\xbb\x2c\xb2\xac\x71\xe7\xd6\xa8\x09\x74\x7f\x71\xf1\xf0\xf3\xf0\xe2\xfe\xac\xbd\xe6\x4e\xf9\xb3\x46\x9a\xf8\x99\x58\x9a\x98\x6b\x4c\xc1\xd5\x55\xcc\x89\x75\x18\x81\x32\x62\x57\x6d\x00\x05\x45\x96\xc5\x00\xff\x11\xfb\xc5\x8e\x03\xf8\xae\x82\x19\x35\x73\xc4\x50\x2b\xe1\xe2\xf7\xc3\xcf\x7e\xd1\x83\xff\x62\x9e\x3d\x44\xe5\x22\xde\xa2\x4b\xff\xd6\x06\xba\x5a\x27\xe7\x16\xc7\xc1\xe4\x19\xbc\x56\x0a\xd3\x66\xc7\xe3\x9e\xb9\x72\x58\x36\xf3\x68\x27\xa7\xc3\xd0\xee\x97\xd8\x84\xf1\x69\x96\xa9\x91\xf3\x30\xee\xc0\x24\x9e\x98\x8e\xc2\x3e\x37\x63\xc4\x4c\xfc\x1e\xfa\x48\xf2\xe6\x39\xa1\x73\x66\x80\x7b\x19\x66\xd3\x02\x4f\x89\x1c\x20\xf7\xf2\x11\xf3\x5d\x0b\x6d\x19\x03\x5f\x6e\x1f\x43\x71\xe1\x98\x85\x8c\x6b\x91\x7c\xc2\xf3\x1c\x42\x1e\x6c\xc4\xec\x9a\xd8\xb4\x1c\xde\x78\x1d\xff\x76\xeb\x97\xa3\x39\xcd\x0f\x64\x73\x67\xd8\x88\x99\xcd\x35\xb8\x6c\xa7\xdb\x81\xc3\x05\xda\x94\x46\xac\x8b\x05\x71\xe9\x7a\x20\xd3\xa7\xa0\x65\x9a\x4a\xac\x2e\xa4\xa7\x25\x7d\x50\x8a\xc1\x38\x78\xcd\x94\x56\xcb\x13\xb7\x19\xee\x4c\xd8\xb9\xd5\x73\xfd\xd6\x77\x80\x3e\x70\xf5\xd5\xaf\xdb\xd9\xb6\x14\x63\x2b\xa4\x79\xc9\x50\xac\x7a\x84\x51\x15\x69\x0d\xc1\xe2\x1d\x54\xfa\x5e\x7b\x4a\xe6\xf7\xad\x93\xea\x50\x20\x7c\xed\xd7\xda\xac\xcf\xb6\xd7\x6a\x0b\xa7\xfd\xa5\x3b\x30\x91\xa2\x49\xd9\x07\x56\x11\xa3\x48\x1a\x6a\xb1\x6f\x1d\x83\xaa\x92\xc8\x49\x9f\xb6\x09\x65\x54\x6e\x34\x9d\x52\x7f\x5a\x7b\x46\x5e\x43\xb0\x97\x5d\x27\x09\x6b\xef\xb9\x48\xc0\x36\x88\x49\x8b\x85\xb2\x6e\x19\x42\x8d\x78\xd1\x87\x67\x00\x87\x48\xf3\xff\xc0\x33\xd1\xa0\xdc\xb9\x81\xa9\x22\x5c\x08\xa9\xc5\xa5\x95\x77\x56\x6a\x6b\x33\x67\xc4\x1c\x3a\xde\x89\xe3\xa1\x6b\x6c\x22\xfc\xa7\x26\xae\x97\x1b\xb0\x2b\x68\xac\xaa\xec\x88\x83\xd5\x88\x41\x8a\x2c\x03\x13\x72\x2c\x21\x8b\xc8\x26\x82\xda\x2f\x82\xa2\x37\x98\xf9\x4a\xc6\x2b\x64\x5e\x45\x0d\x88\xee\xf9\x3f\xe8\xff\xfb\xed\x0f\xff\x37\x00\x00\xff\xff\x75\x3d\xd6\x8b\xd6\x5b\x02\x00") + +func adminSwaggerJsonBytes() ([]byte, error) { + return bindataRead( + _adminSwaggerJson, + "admin.swagger.json", + ) +} + +func adminSwaggerJson() (*asset, error) { + bytes, err := adminSwaggerJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "admin.swagger.json", size: 154582, mode: os.FileMode(420), modTime: time.Unix(1562572800, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +// Asset loads and returns the asset for the given name. +// It returns an error if the asset could not be found or +// could not be loaded. +func Asset(name string) ([]byte, error) { + cannonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[cannonicalName]; ok { + a, err := f() + if err != nil { + return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) + } + return a.bytes, nil + } + return nil, fmt.Errorf("Asset %s not found", name) +} + +// MustAsset is like Asset but panics when Asset would return an error. +// It simplifies safe initialization of global variables. +func MustAsset(name string) []byte { + a, err := Asset(name) + if err != nil { + panic("asset: Asset(" + name + "): " + err.Error()) + } + + return a +} + +// AssetInfo loads and returns the asset info for the given name. +// It returns an error if the asset could not be found or +// could not be loaded. +func AssetInfo(name string) (os.FileInfo, error) { + cannonicalName := strings.Replace(name, "\\", "/", -1) + if f, ok := _bindata[cannonicalName]; ok { + a, err := f() + if err != nil { + return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) + } + return a.info, nil + } + return nil, fmt.Errorf("AssetInfo %s not found", name) +} + +// AssetNames returns the names of the assets. +func AssetNames() []string { + names := make([]string, 0, len(_bindata)) + for name := range _bindata { + names = append(names, name) + } + return names +} + +// _bindata is a table, holding each asset generator, mapped to its name. +var _bindata = map[string]func() (*asset, error){ + "admin.swagger.json": adminSwaggerJson, +} + +// AssetDir returns the file names below a certain +// directory embedded in the file by go-bindata. +// For example if you run go-bindata on data/... and data contains the +// following hierarchy: +// data/ +// foo.txt +// img/ +// a.png +// b.png +// then AssetDir("data") would return []string{"foo.txt", "img"} +// AssetDir("data/img") would return []string{"a.png", "b.png"} +// AssetDir("foo.txt") and AssetDir("notexist") would return an error +// AssetDir("") will return []string{"data"}. +func AssetDir(name string) ([]string, error) { + node := _bintree + if len(name) != 0 { + cannonicalName := strings.Replace(name, "\\", "/", -1) + pathList := strings.Split(cannonicalName, "/") + for _, p := range pathList { + node = node.Children[p] + if node == nil { + return nil, fmt.Errorf("Asset %s not found", name) + } + } + } + if node.Func != nil { + return nil, fmt.Errorf("Asset %s not found", name) + } + rv := make([]string, 0, len(node.Children)) + for childName := range node.Children { + rv = append(rv, childName) + } + return rv, nil +} + +type bintree struct { + Func func() (*asset, error) + Children map[string]*bintree +} + +var _bintree = &bintree{nil, map[string]*bintree{ + "admin.swagger.json": &bintree{adminSwaggerJson, map[string]*bintree{}}, +}} + +// RestoreAsset restores an asset under the given directory +func RestoreAsset(dir, name string) error { + data, err := Asset(name) + if err != nil { + return err + } + info, err := AssetInfo(name) + if err != nil { + return err + } + err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) + if err != nil { + return err + } + err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) + if err != nil { + return err + } + err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) + if err != nil { + return err + } + return nil +} + +// RestoreAssets restores an asset under the given directory recursively +func RestoreAssets(dir, name string) error { + children, err := AssetDir(name) + // File + if err != nil { + return RestoreAsset(dir, name) + } + // Dir + for _, child := range children { + err = RestoreAssets(dir, filepath.Join(name, child)) + if err != nil { + return err + } + } + return nil +} + +func _filePath(dir, name string) string { + cannonicalName := strings.Replace(name, "\\", "/", -1) + return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Common.java b/flyteidl/gen/pb-java/flyteidl/admin/Common.java new file mode 100644 index 0000000000..0173f95bbf --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Common.java @@ -0,0 +1,12054 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/common.proto + +package flyteidl.admin; + +public final class Common { + private Common() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface NamedEntityIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that identifies a Flyte resource.
+   * A resource can internally have multiple versions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class NamedEntityIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) + NamedEntityIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifier.newBuilder() to construct. + private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifier( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + 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.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the resource.
+     * The combination of project + domain + name uniquely identifies the resource.
+     * +optional - in certain contexts - like 'List API', 'Launch plans'
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + 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.Common.NamedEntityIdentifier)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && getDomain() + .equals(other.getDomain()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulation of fields that identifies a Flyte resource.
+     * A resource can internally have multiple versions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + } + + public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); + } + + public flyteidl.admin.Common.NamedEntityIdentifier build() { + flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifier) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * The combination of project + domain + name uniquely identifies the resource.
+       * +optional - in certain contexts - like 'List API', 'Launch plans'
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NamedEntityIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + int getDirectionValue(); + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + flyteidl.admin.Common.Sort.Direction getDirection(); + } + /** + *
+   * Species sort ordering in a list request.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Sort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) + SortOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sort.newBuilder() to construct. + private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Sort() { + key_ = ""; + direction_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sort( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + 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.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.admin.Sort.Direction} + */ + public enum Direction + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DESCENDING = 0; + */ + DESCENDING(0), + /** + * ASCENDING = 1; + */ + ASCENDING(1), + UNRECOGNIZED(-1), + ; + + /** + * DESCENDING = 0; + */ + public static final int DESCENDING_VALUE = 0; + /** + * ASCENDING = 1; + */ + public static final int ASCENDING_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Direction valueOf(int value) { + return forNumber(value); + } + + public static Direction forNumber(int value) { + switch (value) { + case 0: return DESCENDING; + case 1: return ASCENDING; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Direction> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Direction findValueByNumber(int number) { + return Direction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); + } + + private static final Direction[] VALUES = values(); + + public static Direction valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Direction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + *
+     * Indicates an attribute to sort the response values.
+     * TODO(katrogan): Add string validation here. This should never be empty.
+     * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private int direction_; + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+     * Indicates the direction to apply sort key for response values.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + output.writeEnum(2, direction_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, direction_); + } + 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.Common.Sort)) { + return super.equals(obj); + } + flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; + + boolean result = true; + result = result && getKey() + .equals(other.getKey()); + result = result && direction_ == other.direction_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort 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.Common.Sort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Sort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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.Common.Sort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort 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.Common.Sort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Sort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Sort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Species sort ordering in a list request.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Sort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) + flyteidl.admin.Common.SortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); + } + + // Construct using flyteidl.admin.Common.Sort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + key_ = ""; + + direction_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; + } + + public flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return flyteidl.admin.Common.Sort.getDefaultInstance(); + } + + public flyteidl.admin.Common.Sort build() { + flyteidl.admin.Common.Sort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.Sort buildPartial() { + flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); + result.key_ = key_; + result.direction_ = direction_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Sort) { + return mergeFrom((flyteidl.admin.Common.Sort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Sort other) { + if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Sort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * Indicates an attribute to sort the response values.
+       * TODO(katrogan): Add string validation here. This should never be empty.
+       * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private int direction_ = 0; + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public int getDirectionValue() { + return direction_; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public flyteidl.admin.Common.Sort.Direction getDirection() { + flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); + return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicates the direction to apply sort key for response values.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort.Direction direction = 2; + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Sort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); + } + + public static flyteidl.admin.Common.Sort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Sort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sort(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.Sort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * 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.
+     * +optional
+     * 
+ * + * string token = 4; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to list identifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class NamedEntityIdentifierListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + NamedEntityIdentifierListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierListRequest.newBuilder() to construct. + private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierListRequest() { + project_ = ""; + domain_ = ""; + limit_ = 0; + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierListRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 24: { + + limit_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + 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.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project that contains the identifiers.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the identifiers belongs to within the project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + + 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.
+     * +optional
+     * 
+ * + * 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.
+     * +optional
+     * 
+ * + * 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; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (limit_ != 0) { + output.writeUInt32(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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.Common.NamedEntityIdentifierListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && getDomain() + .equals(other.getDomain()); + result = result && (getLimit() + == other.getLimit()); + result = result && getToken() + .equals(other.getToken()); + result = result && (hasSortBy() == other.hasSortBy()); + if (hasSortBy()) { + result = result && getSortBy() + .equals(other.getSortBy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityIdentifierListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to list identifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) + flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + limit_ = 0; + + token_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + } + + public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); + } + + public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.limit_ = limit_; + result.token_ = token_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifierListRequest) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifierListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project that contains the identifiers.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the identifiers belongs to within the project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 3; + */ + public Builder clearLimit() { + + limit_ = 0; + 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.
+       * +optional
+       * 
+ * + * 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.
+       * +optional
+       * 
+ * + * 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.
+       * +optional
+       * 
+ * + * 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.
+       * +optional
+       * 
+ * + * 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.
+       * +optional
+       * 
+ * + * string token = 4; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NamedEntityIdentifierListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NamedEntityIdentifierListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + int getEntitiesCount(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + java.util.List + getEntitiesOrBuilderList(); + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + 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(); + } + /** + *
+   * Represents a list of Identifiers.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class NamedEntityIdentifierList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) + NamedEntityIdentifierListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NamedEntityIdentifierList.newBuilder() to construct. + private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NamedEntityIdentifierList() { + entities_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NamedEntityIdentifierList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + entities_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entities_.add( + input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + private int bitField0_; + public static final int ENTITIES_FIELD_NUMBER = 1; + private java.util.List entities_; + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + return entities_; + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + return entities_.size(); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + return entities_.get(index); + } + /** + *
+     * A list of identifiers.
+     * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + return entities_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < entities_.size(); i++) { + output.writeMessage(1, entities_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < entities_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, entities_.get(i)); + } + 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.Common.NamedEntityIdentifierList)) { + return super.equals(obj); + } + flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; + + boolean result = true; + result = result && getEntitiesList() + .equals(other.getEntitiesList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEntitiesCount() > 0) { + hash = (37 * hash) + ENTITIES_FIELD_NUMBER; + hash = (53 * hash) + getEntitiesList().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.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.NamedEntityIdentifierList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a list of Identifiers.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) + flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); + } + + // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEntitiesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + entitiesBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + } + + public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); + } + + public flyteidl.admin.Common.NamedEntityIdentifierList build() { + flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { + flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (entitiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + entities_ = java.util.Collections.unmodifiableList(entities_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entities_ = entities_; + } else { + result.entities_ = entitiesBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.NamedEntityIdentifierList) { + return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { + if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; + if (entitiesBuilder_ == null) { + if (!other.entities_.isEmpty()) { + if (entities_.isEmpty()) { + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntitiesIsMutable(); + entities_.addAll(other.entities_); + } + onChanged(); + } + } else { + if (!other.entities_.isEmpty()) { + if (entitiesBuilder_.isEmpty()) { + entitiesBuilder_.dispose(); + entitiesBuilder_ = null; + entities_ = other.entities_; + bitField0_ = (bitField0_ & ~0x00000001); + entitiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntitiesFieldBuilder() : null; + } else { + entitiesBuilder_.addAllMessages(other.entities_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.NamedEntityIdentifierList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List entities_ = + java.util.Collections.emptyList(); + private void ensureEntitiesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + entities_ = new java.util.ArrayList(entities_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; + + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List getEntitiesList() { + if (entitiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entities_); + } else { + return entitiesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public int getEntitiesCount() { + if (entitiesBuilder_ == null) { + return entities_.size(); + } else { + return entitiesBuilder_.getCount(); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); + } else { + return entitiesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.set(index, value); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder setEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.set(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(value); + onChanged(); + } else { + entitiesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier value) { + if (entitiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntitiesIsMutable(); + entities_.add(index, value); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addEntities( + int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.add(index, builderForValue.build()); + onChanged(); + } else { + entitiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder addAllEntities( + java.lang.Iterable values) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entities_); + onChanged(); + } else { + entitiesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder clearEntities() { + if (entitiesBuilder_ == null) { + entities_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entitiesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public Builder removeEntities(int index) { + if (entitiesBuilder_ == null) { + ensureEntitiesIsMutable(); + entities_.remove(index); + onChanged(); + } else { + entitiesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( + int index) { + if (entitiesBuilder_ == null) { + return entities_.get(index); } else { + return entitiesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesOrBuilderList() { + if (entitiesBuilder_ != null) { + return entitiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entities_); + } + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { + return getEntitiesFieldBuilder().addBuilder( + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( + int index) { + return getEntitiesFieldBuilder().addBuilder( + index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); + } + /** + *
+       * A list of identifiers.
+       * 
+ * + * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + public java.util.List + getEntitiesBuilderList() { + return getEntitiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getEntitiesFieldBuilder() { + if (entitiesBuilder_ == null) { + entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + entities_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + entities_ = null; + } + return entitiesBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NamedEntityIdentifierList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) + private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); + } + + public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NamedEntityIdentifierList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NamedEntityIdentifierList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ObjectGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Represents a structure to fetch a single resource.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class ObjectGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) + ObjectGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ObjectGetRequest.newBuilder() to construct. + private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ObjectGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ObjectGetRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Indicates a unique version of resource.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.Common.ObjectGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ObjectGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.ObjectGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a structure to fetch a single resource.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ObjectGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) + flyteidl.admin.Common.ObjectGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ObjectGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + } + + public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); + } + + public flyteidl.admin.Common.ObjectGetRequest build() { + flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.ObjectGetRequest buildPartial() { + flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.ObjectGetRequest) { + return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { + if (other == flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.ObjectGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Indicates a unique version of resource.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ObjectGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); + } + + public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ObjectGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifier getId(); + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + java.lang.String getToken(); + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of resources.
+   * Resources include: Task, Workflow, LaunchPlan
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class ResourceListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) + ResourceListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceListRequest.newBuilder() to construct. + private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceListRequest() { + limit_ = 0; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceListRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + 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.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.admin.Common.NamedEntityIdentifier id_; + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the resource.
+     * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object token_; + /** + *
+     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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, this server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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.Common.ResourceListRequest)) { + return super.equals(obj); + } + flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (getLimit() + == other.getLimit()); + result = result && getToken() + .equals(other.getToken()); + result = result && getFilters() + .equals(other.getFilters()); + result = result && (hasSortBy() == other.hasSortBy()); + if (hasSortBy()) { + result = result && getSortBy() + .equals(other.getSortBy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.ResourceListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.ResourceListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to retrieve a list of resources.
+     * Resources include: Task, Workflow, LaunchPlan
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ResourceListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) + flyteidl.admin.Common.ResourceListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); + } + + // Construct using flyteidl.admin.Common.ResourceListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; + } + + public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); + } + + public flyteidl.admin.Common.ResourceListRequest build() { + flyteidl.admin.Common.ResourceListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.ResourceListRequest buildPartial() { + flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.ResourceListRequest) { + return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { + if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.ResourceListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.NamedEntityIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder setId( + flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the resource.
+       * 
+ * + * .flyteidl.admin.NamedEntityIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object token_ = ""; + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder clearToken() { + + token_ = getDefaultInstance().getToken(); + onChanged(); + return this; + } + /** + *
+       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
+       * in a query.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ResourceListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); + } + + public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ResourceListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmailNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.EmailNotification} + */ + public static final class EmailNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) + EmailNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailNotification.newBuilder() to construct. + private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailNotification( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + 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) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses recipients for this notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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.Common.EmailNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; + + boolean result = true; + result = result && getRecipientsEmailList() + .equals(other.getRecipientsEmailList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.EmailNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.EmailNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.EmailNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) + flyteidl.admin.Common.EmailNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.EmailNotification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; + } + + public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + public flyteidl.admin.Common.EmailNotification build() { + flyteidl.admin.Common.EmailNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.EmailNotification buildPartial() { + flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.EmailNotification) { + return mergeFrom((flyteidl.admin.Common.EmailNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { + if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.EmailNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses recipients for this notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EmailNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); + } + + public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EmailNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailNotification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PagerDutyNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.PagerDutyNotification} + */ + public static final class PagerDutyNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) + PagerDutyNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PagerDutyNotification.newBuilder() to construct. + private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PagerDutyNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PagerDutyNotification( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + 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) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, PagerDuty notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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.Common.PagerDutyNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; + + boolean result = true; + result = result && getRecipientsEmailList() + .equals(other.getRecipientsEmailList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.PagerDutyNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.PagerDutyNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.PagerDutyNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) + flyteidl.admin.Common.PagerDutyNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.PagerDutyNotification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + } + + public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + public flyteidl.admin.Common.PagerDutyNotification build() { + flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.PagerDutyNotification buildPartial() { + flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.PagerDutyNotification) { + return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { + if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.PagerDutyNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, PagerDuty notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.PagerDutyNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); + } + + public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PagerDutyNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PagerDutyNotification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SlackNotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + } + /** + * Protobuf type {@code flyteidl.admin.SlackNotification} + */ + public static final class SlackNotification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) + SlackNotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SlackNotification.newBuilder() to construct. + private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SlackNotification() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SlackNotification( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + 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) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * Currently, Slack notifications leverage email to trigger a notification.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + 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.Common.SlackNotification)) { + return super.equals(obj); + } + flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; + + boolean result = true; + result = result && getRecipientsEmailList() + .equals(other.getRecipientsEmailList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.SlackNotification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.SlackNotification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.SlackNotification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) + flyteidl.admin.Common.SlackNotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); + } + + // Construct using flyteidl.admin.Common.SlackNotification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; + } + + public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + public flyteidl.admin.Common.SlackNotification build() { + flyteidl.admin.Common.SlackNotification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.SlackNotification buildPartial() { + flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.SlackNotification) { + return mergeFrom((flyteidl.admin.Common.SlackNotification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { + if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.SlackNotification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Currently, Slack notifications leverage email to trigger a notification.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.SlackNotification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); + } + + public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SlackNotification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SlackNotification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List getPhasesList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesCount(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + java.util.List + getPhasesValueList(); + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + int getPhasesValue(int index); + + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + boolean hasEmail(); + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotification getEmail(); + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); + + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + boolean hasPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); + + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + boolean hasSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotification getSlack(); + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); + + public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); + } + /** + *
+   * Represents a structure for notifications based on execution status.
+   * The Notification content is configured within Admin. Future iterations could
+   * expose configuring notifications with custom content.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Notification extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) + NotificationOrBuilder { + private static final long serialVersionUID = 0L; + // Use Notification.newBuilder() to construct. + private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Notification() { + phases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Notification( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + break; + } + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phases_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 18: { + flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + 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) == 0x00000001)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + private int bitField0_; + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + EMAIL(2), + PAGER_DUTY(3), + SLACK(4), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 2: return EMAIL; + case 3: return PAGER_DUTY; + case 4: return SLACK; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int PHASES_FIELD_NUMBER = 1; + private java.util.List phases_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { + public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + }; + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return phases_; + } + /** + *
+     * A list of phases to which users can associate the notifications to.
+     * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + private int phasesMemoizedSerializedSize; + + public static final int EMAIL_FIELD_NUMBER = 2; + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + /** + *
+     * option (validate.required) = true;
+     * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + + public static final int PAGER_DUTY_FIELD_NUMBER = 3; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + + public static final int SLACK_FIELD_NUMBER = 4; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getPhasesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(phasesMemoizedSerializedSize); + } + for (int i = 0; i < phases_.size(); i++) { + output.writeEnumNoTag(phases_.get(i)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < phases_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(phases_.get(i)); + } + size += dataSize; + if (!getPhasesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }phasesMemoizedSerializedSize = dataSize; + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); + } + 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.Common.Notification)) { + return super.equals(obj); + } + flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; + + boolean result = true; + result = result && phases_.equals(other.phases_); + result = result && getTypeCase().equals( + other.getTypeCase()); + if (!result) return false; + switch (typeCase_) { + case 2: + result = result && getEmail() + .equals(other.getEmail()); + break; + case 3: + result = result && getPagerDuty() + .equals(other.getPagerDuty()); + break; + case 4: + result = result && getSlack() + .equals(other.getSlack()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPhasesCount() > 0) { + hash = (37 * hash) + PHASES_FIELD_NUMBER; + hash = (53 * hash) + phases_.hashCode(); + } + switch (typeCase_) { + case 2: + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + break; + case 3: + hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; + hash = (53 * hash) + getPagerDuty().hashCode(); + break; + case 4: + hash = (37 * hash) + SLACK_FIELD_NUMBER; + hash = (53 * hash) + getSlack().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification 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.Common.Notification parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Notification parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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.Common.Notification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification 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.Common.Notification parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Notification parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Notification prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a structure for notifications based on execution status.
+     * The Notification content is configured within Admin. Future iterations could
+     * expose configuring notifications with custom content.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Notification} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) + flyteidl.admin.Common.NotificationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); + } + + // Construct using flyteidl.admin.Common.Notification.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + typeCase_ = 0; + type_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; + } + + public flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return flyteidl.admin.Common.Notification.getDefaultInstance(); + } + + public flyteidl.admin.Common.Notification build() { + flyteidl.admin.Common.Notification result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.Notification buildPartial() { + flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.phases_ = phases_; + if (typeCase_ == 2) { + if (emailBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = emailBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (pagerDutyBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = pagerDutyBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (slackBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = slackBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Notification) { + return mergeFrom((flyteidl.admin.Common.Notification)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Notification other) { + if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; + if (!other.phases_.isEmpty()) { + if (phases_.isEmpty()) { + phases_ = other.phases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePhasesIsMutable(); + phases_.addAll(other.phases_); + } + onChanged(); + } + switch (other.getTypeCase()) { + case EMAIL: { + mergeEmail(other.getEmail()); + break; + } + case PAGER_DUTY: { + mergePagerDuty(other.getPagerDuty()); + break; + } + case SLACK: { + mergeSlack(other.getSlack()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Notification parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.util.List phases_ = + java.util.Collections.emptyList(); + private void ensurePhasesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + phases_ = new java.util.ArrayList(phases_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List getPhasesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesCount() { + return phases_.size(); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { + return phases_converter_.convert(phases_.get(index)); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhases( + int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhases( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { + phases_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder clearPhases() { + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public java.util.List + getPhasesValueList() { + return java.util.Collections.unmodifiableList(phases_); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public int getPhasesValue(int index) { + return phases_.get(index); + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder setPhasesValue( + int index, int value) { + ensurePhasesIsMutable(); + phases_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addPhasesValue(int value) { + ensurePhasesIsMutable(); + phases_.add(value); + onChanged(); + return this; + } + /** + *
+       * A list of phases to which users can associate the notifications to.
+       * 
+ * + * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + public Builder addAllPhasesValue( + java.lang.Iterable values) { + ensurePhasesIsMutable(); + for (int value : values) { + phases_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public boolean hasEmail() { + return typeCase_ == 2; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification getEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return emailBuilder_.getMessage(); + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder setEmail( + flyteidl.admin.Common.EmailNotification.Builder builderForValue) { + if (emailBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + emailBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { + if (emailBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + emailBuilder_.mergeFrom(value); + } + emailBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public Builder clearEmail() { + if (emailBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + emailBuilder_.clear(); + } + return this; + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { + return getEmailFieldBuilder().getBuilder(); + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { + if ((typeCase_ == 2) && (emailBuilder_ != null)) { + return emailBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.admin.Common.EmailNotification) type_; + } + return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + } + /** + *
+       * option (validate.required) = true;
+       * 
+ * + * .flyteidl.admin.EmailNotification email = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> + getEmailFieldBuilder() { + if (emailBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); + } + emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( + (flyteidl.admin.Common.EmailNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return emailBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public boolean hasPagerDuty() { + return typeCase_ == 3; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return pagerDutyBuilder_.getMessage(); + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder setPagerDuty( + flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { + if (pagerDutyBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + pagerDutyBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + pagerDutyBuilder_.mergeFrom(value); + } + pagerDutyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public Builder clearPagerDuty() { + if (pagerDutyBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + pagerDutyBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { + return getPagerDutyFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { + if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { + return pagerDutyBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.admin.Common.PagerDutyNotification) type_; + } + return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> + getPagerDutyFieldBuilder() { + if (pagerDutyBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); + } + pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( + (flyteidl.admin.Common.PagerDutyNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return pagerDutyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public boolean hasSlack() { + return typeCase_ == 4; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification getSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return slackBuilder_.getMessage(); + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder setSlack( + flyteidl.admin.Common.SlackNotification.Builder builderForValue) { + if (slackBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + slackBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { + if (slackBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { + type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + slackBuilder_.mergeFrom(value); + } + slackBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public Builder clearSlack() { + if (slackBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + slackBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { + return getSlackFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { + if ((typeCase_ == 4) && (slackBuilder_ != null)) { + return slackBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.admin.Common.SlackNotification) type_; + } + return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.SlackNotification slack = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> + getSlackFieldBuilder() { + if (slackBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); + } + slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( + (flyteidl.admin.Common.SlackNotification) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return slackBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Notification) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); + } + + public static flyteidl.admin.Common.Notification getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Notification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Notification(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.Notification getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UrlBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + java.lang.String getUrl(); + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + com.google.protobuf.ByteString + getUrlBytes(); + + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + long getBytes(); + } + /** + *
+   * Represents a string url and associated metadata used throughout the platform.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class UrlBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) + UrlBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use UrlBlob.newBuilder() to construct. + private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UrlBlob() { + url_ = ""; + bytes_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UrlBlob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + url_ = s; + break; + } + case 16: { + + bytes_ = input.readInt64(); + 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.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + public static final int URL_FIELD_NUMBER = 1; + private volatile java.lang.Object url_; + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + /** + *
+     * Actual url value.
+     * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BYTES_FIELD_NUMBER = 2; + private long bytes_; + /** + *
+     * Represents the size of the file accessible at the above url.
+     * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUrlBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); + } + if (bytes_ != 0L) { + output.writeInt64(2, bytes_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUrlBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); + } + if (bytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, bytes_); + } + 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.Common.UrlBlob)) { + return super.equals(obj); + } + flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; + + boolean result = true; + result = result && getUrl() + .equals(other.getUrl()); + result = result && (getBytes() + == other.getBytes()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBytes()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.UrlBlob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.UrlBlob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a string url and associated metadata used throughout the platform.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.UrlBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) + flyteidl.admin.Common.UrlBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); + } + + // Construct using flyteidl.admin.Common.UrlBlob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + url_ = ""; + + bytes_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; + } + + public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); + } + + public flyteidl.admin.Common.UrlBlob build() { + flyteidl.admin.Common.UrlBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.UrlBlob buildPartial() { + flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); + result.url_ = url_; + result.bytes_ = bytes_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.UrlBlob) { + return mergeFrom((flyteidl.admin.Common.UrlBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { + if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + onChanged(); + } + if (other.getBytes() != 0L) { + setBytes(other.getBytes()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.UrlBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object url_ = ""; + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + url_ = value; + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder clearUrl() { + + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + *
+       * Actual url value.
+       * 
+ * + * string url = 1; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + url_ = value; + onChanged(); + return this; + } + + private long bytes_ ; + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public long getBytes() { + return bytes_; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder setBytes(long value) { + + bytes_ = value; + onChanged(); + return this; + } + /** + *
+       * Represents the size of the file accessible at the above url.
+       * 
+ * + * int64 bytes = 2; + */ + public Builder clearBytes() { + + bytes_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.UrlBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); + } + + public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UrlBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UrlBlob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LabelsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Label values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge labels defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Labels extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) + LabelsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Labels.newBuilder() to construct. + private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Labels() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Labels( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + 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.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom labels to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + 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.Common.Labels)) { + return super.equals(obj); + } + flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; + + boolean result = true; + result = result && internalGetValues().equals( + other.internalGetValues()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels 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.Common.Labels parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Labels parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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.Common.Labels parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels 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.Common.Labels parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Labels parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Labels prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Label values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge labels defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Labels} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) + flyteidl.admin.Common.LabelsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); + } + + // Construct using flyteidl.admin.Common.Labels.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableValues().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; + } + + public flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return flyteidl.admin.Common.Labels.getDefaultInstance(); + } + + public flyteidl.admin.Common.Labels build() { + flyteidl.admin.Common.Labels result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.Labels buildPartial() { + flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Labels) { + return mergeFrom((flyteidl.admin.Common.Labels)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Labels other) { + if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Labels parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom labels to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Labels) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); + } + + public static flyteidl.admin.Common.Labels getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Labels parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Labels(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.Labels getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AnnotationsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + int getValuesCount(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + boolean containsValues( + java.lang.String key); + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getValues(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + java.util.Map + getValuesMap(); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + java.lang.String getValuesOrThrow( + java.lang.String key); + } + /** + *
+   * Annotation values to be applied to an execution resource.
+   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+   * to specify how to merge annotations defined at registration and execution time.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Annotations extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) + AnnotationsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Annotations.newBuilder() to construct. + private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Annotations() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Annotations( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + values__ = input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + values_.getMutableMap().put( + values__.getKey(), values__.getValue()); + 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.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Map of custom annotations to be applied to the execution resource.
+     * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetValues(), + ValuesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry + values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, values__); + } + 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.Common.Annotations)) { + return super.equals(obj); + } + flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; + + boolean result = true; + result = result && internalGetValues().equals( + other.internalGetValues()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations 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.Common.Annotations parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Common.Annotations parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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.Common.Annotations parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations 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.Common.Annotations parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Common.Annotations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Common.Annotations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Annotation values to be applied to an execution resource.
+     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
+     * to specify how to merge annotations defined at registration and execution time.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Annotations} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) + flyteidl.admin.Common.AnnotationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); + } + + // Construct using flyteidl.admin.Common.Annotations.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableValues().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; + } + + public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return flyteidl.admin.Common.Annotations.getDefaultInstance(); + } + + public flyteidl.admin.Common.Annotations build() { + flyteidl.admin.Common.Annotations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Common.Annotations buildPartial() { + flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); + int from_bitField0_ = bitField0_; + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Common.Annotations) { + return mergeFrom((flyteidl.admin.Common.Annotations)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { + if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom( + other.internalGetValues()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Common.Annotations parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> values_; + private com.google.protobuf.MapField + internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + private com.google.protobuf.MapField + internalGetMutableValues() { + onChanged();; + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField( + ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public boolean containsValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetValues().getMap().containsKey(key); + } + /** + * Use {@link #getValuesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public java.lang.String getValuesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + internalGetMutableValues().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder removeValues( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableValues() { + return internalGetMutableValues().getMutableMap(); + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + public Builder putValues( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableValues().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Map of custom annotations to be applied to the execution resource.
+       * 
+ * + * map<string, string> values = 1; + */ + + public Builder putAllValues( + java.util.Map values) { + internalGetMutableValues().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Annotations) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); + } + + public static flyteidl.admin.Common.Annotations getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Annotations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Annotations(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Sort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Sort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ObjectGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ResourceListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_PagerDutyNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_SlackNotification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Notification_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Notification_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_UrlBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033flyteidl/admin/common.proto\022\016flyteidl." + + "admin\032\035flyteidl/core/execution.proto\032\036fl" + + "yteidl/core/identifier.proto\"F\n\025NamedEnt" + + "ityIdentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + + "\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"r\n\004Sort\022\013\n\003key\030\001 \001(" + + "\t\0221\n\tdirection\030\002 \001(\0162\036.flyteidl.admin.So" + + "rt.Direction\"*\n\tDirection\022\016\n\nDESCENDING\020" + + "\000\022\r\n\tASCENDING\020\001\"\210\001\n NamedEntityIdentifi" + + "erListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain" + + "\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n\007" + + "sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"c\n\031N" + + "amedEntityIdentifierList\0227\n\010entities\030\001 \003" + + "(\0132%.flyteidl.admin.NamedEntityIdentifie" + + "r\022\r\n\005token\030\002 \001(\t\"9\n\020ObjectGetRequest\022%\n\002" + + "id\030\001 \001(\0132\031.flyteidl.core.Identifier\"\236\001\n\023" + + "ResourceListRequest\0221\n\002id\030\001 \001(\0132%.flytei" + + "dl.admin.NamedEntityIdentifier\022\r\n\005limit\030" + + "\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n" + + "\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"-\n\021" + + "EmailNotification\022\030\n\020recipients_email\030\001 " + + "\003(\t\"1\n\025PagerDutyNotification\022\030\n\020recipien" + + "ts_email\030\001 \003(\t\"-\n\021SlackNotification\022\030\n\020r" + + "ecipients_email\030\001 \003(\t\"\363\001\n\014Notification\0226" + + "\n\006phases\030\001 \003(\0162&.flyteidl.core.WorkflowE" + + "xecution.Phase\0222\n\005email\030\002 \001(\0132!.flyteidl" + + ".admin.EmailNotificationH\000\022;\n\npager_duty" + + "\030\003 \001(\0132%.flyteidl.admin.PagerDutyNotific" + + "ationH\000\0222\n\005slack\030\004 \001(\0132!.flyteidl.admin." + + "SlackNotificationH\000B\006\n\004type\"%\n\007UrlBlob\022\013" + + "\n\003url\030\001 \001(\t\022\r\n\005bytes\030\002 \001(\003\"k\n\006Labels\0222\n\006" + + "values\030\001 \003(\0132\".flyteidl.admin.Labels.Val" + + "uesEntry\032-\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"u\n\013Annotations\0227\n\006values" + + "\030\001 \003(\0132\'.flyteidl.admin.Annotations.Valu" + + "esEntry\032-\n\013ValuesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001B3Z1github.com/lyft/flytei" + + "dl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_admin_Sort_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Sort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Sort_descriptor, + new java.lang.String[] { "Key", "Direction", }); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, + new java.lang.String[] { "Entities", "Token", }); + internal_static_flyteidl_admin_ObjectGetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ObjectGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_ResourceListRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ResourceListRequest_descriptor, + new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_EmailNotification_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_PagerDutyNotification_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_PagerDutyNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_SlackNotification_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_SlackNotification_descriptor, + new java.lang.String[] { "RecipientsEmail", }); + internal_static_flyteidl_admin_Notification_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_Notification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Notification_descriptor, + new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); + internal_static_flyteidl_admin_UrlBlob_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_UrlBlob_descriptor, + new java.lang.String[] { "Url", "Bytes", }); + internal_static_flyteidl_admin_Labels_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_Labels_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_admin_Annotations_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_descriptor, + new java.lang.String[] { "Values", }); + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = + internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Event.java b/flyteidl/gen/pb-java/flyteidl/admin/Event.java new file mode 100644 index 0000000000..6018f8cb52 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Event.java @@ -0,0 +1,5004 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/event.proto + +package flyteidl.admin; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EventErrorAlreadyInTerminalStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) + com.google.protobuf.MessageOrBuilder { + + /** + * string current_phase = 1; + */ + java.lang.String getCurrentPhase(); + /** + * string current_phase = 1; + */ + com.google.protobuf.ByteString + getCurrentPhaseBytes(); + } + /** + * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class EventErrorAlreadyInTerminalState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + EventErrorAlreadyInTerminalStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. + private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventErrorAlreadyInTerminalState() { + currentPhase_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventErrorAlreadyInTerminalState( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + currentPhase_ = s; + 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.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + public static final int CURRENT_PHASE_FIELD_NUMBER = 1; + private volatile java.lang.Object currentPhase_; + /** + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + 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(); + currentPhase_ = s; + return s; + } + } + /** + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCurrentPhaseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCurrentPhaseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); + } + 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.Event.EventErrorAlreadyInTerminalState)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; + + boolean result = true; + result = result && getCurrentPhase() + .equals(other.getCurrentPhase()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CURRENT_PHASE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentPhase().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.EventErrorAlreadyInTerminalState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + currentPhase_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + } + + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); + result.currentPhase_ = currentPhase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.EventErrorAlreadyInTerminalState) { + return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { + if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; + if (!other.getCurrentPhase().isEmpty()) { + currentPhase_ = other.currentPhase_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object currentPhase_ = ""; + /** + * string current_phase = 1; + */ + public java.lang.String getCurrentPhase() { + java.lang.Object ref = currentPhase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPhase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string current_phase = 1; + */ + public com.google.protobuf.ByteString + getCurrentPhaseBytes() { + java.lang.Object ref = currentPhase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + currentPhase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string current_phase = 1; + */ + public Builder setCurrentPhase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentPhase_ = value; + onChanged(); + return this; + } + /** + * string current_phase = 1; + */ + public Builder clearCurrentPhase() { + + currentPhase_ = getDefaultInstance().getCurrentPhase(); + onChanged(); + return this; + } + /** + * string current_phase = 1; + */ + public Builder setCurrentPhaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentPhase_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); + } + + public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EventErrorAlreadyInTerminalState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventErrorAlreadyInTerminalState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventFailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + boolean hasAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); + + public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); + } + /** + * Protobuf type {@code flyteidl.admin.EventFailureReason} + */ + public static final class EventFailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) + EventFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventFailureReason.newBuilder() to construct. + private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventFailureReason() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventFailureReason( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; + if (reasonCase_ == 1) { + subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 1; + 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.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite { + ALREADY_IN_TERMINAL_STATE(1), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return ALREADY_IN_TERMINAL_STATE; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); + } + 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.Event.EventFailureReason)) { + return super.equals(obj); + } + flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; + + boolean result = true; + result = result && getReasonCase().equals( + other.getReasonCase()); + if (!result) return false; + switch (reasonCase_) { + case 1: + result = result && getAlreadyInTerminalState() + .equals(other.getAlreadyInTerminalState()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.EventFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.EventFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.EventFailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) + flyteidl.admin.Event.EventFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); + } + + // Construct using flyteidl.admin.Event.EventFailureReason.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + reasonCase_ = 0; + reason_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; + } + + public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); + } + + public flyteidl.admin.Event.EventFailureReason build() { + flyteidl.admin.Event.EventFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.EventFailureReason buildPartial() { + flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); + if (reasonCase_ == 1) { + if (alreadyInTerminalStateBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = alreadyInTerminalStateBuilder_.build(); + } + } + result.reasonCase_ = reasonCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.EventFailureReason) { + return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { + if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case ALREADY_IN_TERMINAL_STATE: { + mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); + break; + } + case REASON_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.EventFailureReason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.EventFailureReason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public boolean hasAlreadyInTerminalState() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return alreadyInTerminalStateBuilder_.getMessage(); + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder setAlreadyInTerminalState( + flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { + if (alreadyInTerminalStateBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + alreadyInTerminalStateBuilder_.mergeFrom(value); + } + alreadyInTerminalStateBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public Builder clearAlreadyInTerminalState() { + if (alreadyInTerminalStateBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + alreadyInTerminalStateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { + return getAlreadyInTerminalStateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { + if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { + return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; + } + return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> + getAlreadyInTerminalStateFieldBuilder() { + if (alreadyInTerminalStateBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); + } + alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( + (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged();; + return alreadyInTerminalStateBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EventFailureReason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); + } + + public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EventFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventFailureReason(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a workflow execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class WorkflowExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) + WorkflowExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventRequest.newBuilder() to construct. + private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = subBuilder.buildPartial(); + } + + 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.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.WorkflowExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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.Event.WorkflowExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; + + boolean result = true; + result = result && getRequestId() + .equals(other.getRequestId()); + result = result && (hasEvent() == other.hasEvent()); + if (hasEvent()) { + result = result && getEvent() + .equals(other.getEvent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.WorkflowExecutionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to send a notification that a workflow execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) + flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + } + + public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); + } + + public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.WorkflowExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.WorkflowExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.WorkflowExecutionEvent event_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.WorkflowExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class WorkflowExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) + WorkflowExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEventResponse.newBuilder() to construct. + private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEventResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Event.WorkflowExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.WorkflowExecutionEventResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) + flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + } + + public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); + } + + public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { + flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.WorkflowExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { + if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.WorkflowExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); + } + + public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEventResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a node execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class NodeExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) + NodeExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventRequest.newBuilder() to construct. + private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = subBuilder.buildPartial(); + } + + 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.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.NodeExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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.Event.NodeExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; + + boolean result = true; + result = result && getRequestId() + .equals(other.getRequestId()); + result = result && (hasEvent() == other.hasEvent()); + if (hasEvent()) { + result = result && getEvent() + .equals(other.getEvent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.NodeExecutionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to send a notification that a node execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) + flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + } + + public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); + } + + public flyteidl.admin.Event.NodeExecutionEventRequest build() { + flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { + flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.NodeExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { + if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.NodeExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.NodeExecutionEvent event_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.NodeExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); + } + + public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class NodeExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) + NodeExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEventResponse.newBuilder() to construct. + private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEventResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Event.NodeExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.NodeExecutionEventResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) + flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + } + + public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); + } + + public flyteidl.admin.Event.NodeExecutionEventResponse build() { + flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { + flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.NodeExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { + if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.NodeExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); + } + + public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEventResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + java.lang.String getRequestId(); + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + boolean hasEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEvent getEvent(); + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); + } + /** + *
+   * Request to send a notification that a task execution event has occurred.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class TaskExecutionEventRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) + TaskExecutionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventRequest.newBuilder() to construct. + private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventRequest() { + requestId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 18: { + flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; + if (event_ != null) { + subBuilder = event_.toBuilder(); + } + event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(event_); + event_ = subBuilder.buildPartial(); + } + + 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.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object requestId_; + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + /** + *
+     * Unique ID for this request that can be traced between services
+     * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_FIELD_NUMBER = 2; + private flyteidl.event.Event.TaskExecutionEvent event_; + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return event_ != null; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + /** + *
+     * Details about the event that occurred.
+     * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + return getEvent(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getRequestIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); + } + if (event_ != null) { + output.writeMessage(2, getEvent()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRequestIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); + } + if (event_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvent()); + } + 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.Event.TaskExecutionEventRequest)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; + + boolean result = true; + result = result && getRequestId() + .equals(other.getRequestId()); + result = result && (hasEvent() == other.hasEvent()); + if (hasEvent()) { + result = result && getEvent() + .equals(other.getEvent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasEvent()) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.TaskExecutionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to send a notification that a task execution event has occurred.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) + flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + requestId_ = ""; + + if (eventBuilder_ == null) { + event_ = null; + } else { + event_ = null; + eventBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + } + + public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); + } + + public flyteidl.admin.Event.TaskExecutionEventRequest build() { + flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { + flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); + result.requestId_ = requestId_; + if (eventBuilder_ == null) { + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.TaskExecutionEventRequest) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { + if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.hasEvent()) { + mergeEvent(other.getEvent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.TaskExecutionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object requestId_ = ""; + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public com.google.protobuf.ByteString + getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestId_ = value; + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder clearRequestId() { + + requestId_ = getDefaultInstance().getRequestId(); + onChanged(); + return this; + } + /** + *
+       * Unique ID for this request that can be traced between services
+       * 
+ * + * string request_id = 1; + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + private flyteidl.event.Event.TaskExecutionEvent event_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public boolean hasEvent() { + return eventBuilder_ != null || event_ != null; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent getEvent() { + if (eventBuilder_ == null) { + return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } else { + return eventBuilder_.getMessage(); + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + eventBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder setEvent( + flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { + if (eventBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + eventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { + if (eventBuilder_ == null) { + if (event_ != null) { + event_ = + flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + eventBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = null; + onChanged(); + } else { + event_ = null; + eventBuilder_ = null; + } + + return this; + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { + + onChanged(); + return getEventFieldBuilder().getBuilder(); + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilder(); + } else { + return event_ == null ? + flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; + } + } + /** + *
+       * Details about the event that occurred.
+       * 
+ * + * .flyteidl.event.TaskExecutionEvent event = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> + getEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( + getEvent(), + getParentForChildren(), + isClean()); + event_ = null; + } + return eventBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionEventRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); + } + + public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * a placeholder for now
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class TaskExecutionEventResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) + TaskExecutionEventResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEventResponse.newBuilder() to construct. + private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEventResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEventResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Event.TaskExecutionEventResponse)) { + return super.equals(obj); + } + flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Event.TaskExecutionEventResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 placeholder for now
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) + flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); + } + + // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + } + + public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); + } + + public flyteidl.admin.Event.TaskExecutionEventResponse build() { + flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { + flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Event.TaskExecutionEventResponse) { + return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { + if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Event.TaskExecutionEventResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionEventResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); + } + + public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionEventResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEventResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EventFailureReason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/admin/event.proto\022\016flyteidl.a" + + "dmin\032\032flyteidl/event/event.proto\"9\n Even" + + "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + + "phase\030\001 \001(\t\"u\n\022EventFailureReason\022U\n\031alr" + + "eady_in_terminal_state\030\001 \001(\01320.flyteidl." + + "admin.EventErrorAlreadyInTerminalStateH\000" + + "B\010\n\006reason\"j\n\035WorkflowExecutionEventRequ" + + "est\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005event\030\002 \001(\0132&" + + ".flyteidl.event.WorkflowExecutionEvent\" " + + "\n\036WorkflowExecutionEventResponse\"b\n\031Node" + + "ExecutionEventRequest\022\022\n\nrequest_id\030\001 \001(" + + "\t\0221\n\005event\030\002 \001(\0132\".flyteidl.event.NodeEx" + + "ecutionEvent\"\034\n\032NodeExecutionEventRespon" + + "se\"b\n\031TaskExecutionEventRequest\022\022\n\nreque" + + "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + + "ent.TaskExecutionEvent\"\034\n\032TaskExecutionE" + + "ventResponseB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.event.Event.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, + new java.lang.String[] { "CurrentPhase", }); + internal_static_flyteidl_admin_EventFailureReason_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EventFailureReason_descriptor, + new java.lang.String[] { "AlreadyInTerminalState", "Reason", }); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, + new java.lang.String[] { "RequestId", "Event", }); + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, + new java.lang.String[] { }); + flyteidl.event.Event.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java new file mode 100644 index 0000000000..544f120596 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java @@ -0,0 +1,17222 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/execution.proto + +package flyteidl.admin; + +public final class ExecutionOuterClass { + private ExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ExecutionCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + boolean hasSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Request to launch an execution with the given project, domain and optionally name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class ExecutionCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) + ExecutionCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateRequest.newBuilder() to construct. + private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateRequest() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the execution belongs to. 
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the execution belongs to. 
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the resource.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPEC_FIELD_NUMBER = 4; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Additional fields necessary to launch the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + if (spec_ != null) { + output.writeMessage(4, getSpec()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + 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.ExecutionOuterClass.ExecutionCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && getDomain() + .equals(other.getDomain()); + result = result && getName() + .equals(other.getName()); + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to launch an execution with the given project, domain and optionally name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the execution belongs to. 
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the execution belongs to. 
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Additional fields necessary to launch the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionRelaunchRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Request to relaunch the referenced execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class ExecutionRelaunchRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) + ExecutionRelaunchRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionRelaunchRequest.newBuilder() to construct. + private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionRelaunchRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionRelaunchRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of the workflow execution to relaunch.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the relaunched execution.
+     * If none is provided the system will generate a unique string.
+     * +optional
+     * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); + } + 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.ExecutionOuterClass.ExecutionRelaunchRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to relaunch the referenced execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + name_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.name_ = name_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of the workflow execution to relaunch.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the relaunched execution.
+       * If none is provided the system will generate a unique string.
+       * +optional
+       * 
+ * + * string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionRelaunchRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionRelaunchRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionRelaunchRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The unique identifier for a successfully created execution.
+   * If the name was *not* specified in the create request, this identifier will include a generated name.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class ExecutionCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) + ExecutionCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionCreateResponse.newBuilder() to construct. + private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionCreateResponse( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.ExecutionOuterClass.ExecutionCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * The unique identifier for a successfully created execution.
+     * If the name was *not* specified in the create request, this identifier will include a generated name.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single workflow execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class WorkflowExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) + WorkflowExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetRequest.newBuilder() to construct. + private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.ExecutionOuterClass.WorkflowExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 message used to fetch a single workflow execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A workflow execution represents an instantiated workflow, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * Used as a response object used in Get and List execution requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Execution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) + ExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Execution.newBuilder() to construct. + private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Execution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Execution( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier of the workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided configuration and inputs for launching the execution.
+     * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Execution results. 
+     * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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.ExecutionOuterClass.Execution)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasClosure() == other.hasClosure()); + if (hasClosure()) { + result = result && getClosure() + .equals(other.getClosure()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.Execution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 workflow execution represents an instantiated workflow, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * Used as a response object used in Get and List execution requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Execution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.Execution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.Execution build() { + flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { + flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.Execution) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { + if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.Execution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier of the workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided configuration and inputs for launching the execution.
+       * 
+ * + * .flyteidl.admin.ExecutionSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Execution results. 
+       * 
+ * + * .flyteidl.admin.ExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Execution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); + } + + public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Execution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + int getExecutionsCount(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + java.util.List + getExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + 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(); + } + /** + *
+   * Used as a response for request to list executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class ExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) + ExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionList.newBuilder() to construct. + private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionList() { + executions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + executions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + executions_.add( + input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + private int bitField0_; + public static final int EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List executions_; + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + return executions_; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + return executions_.size(); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + return executions_.get(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + return executions_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < executions_.size(); i++) { + output.writeMessage(1, executions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < executions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); + } + 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.ExecutionOuterClass.ExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; + + boolean result = true; + result = result && getExecutionsList() + .equals(other.getExecutionsList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExecutionsCount() > 0) { + hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExecutionsList().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.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Used as a response for request to list executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) + flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExecutionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + executionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (executionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + executions_ = java.util.Collections.unmodifiableList(executions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.executions_ = executions_; + } else { + result.executions_ = executionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; + if (executionsBuilder_ == null) { + if (!other.executions_.isEmpty()) { + if (executions_.isEmpty()) { + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExecutionsIsMutable(); + executions_.addAll(other.executions_); + } + onChanged(); + } + } else { + if (!other.executions_.isEmpty()) { + if (executionsBuilder_.isEmpty()) { + executionsBuilder_.dispose(); + executionsBuilder_ = null; + executions_ = other.executions_; + bitField0_ = (bitField0_ & ~0x00000001); + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExecutionsFieldBuilder() : null; + } else { + executionsBuilder_.addAllMessages(other.executions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List executions_ = + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + executions_ = new java.util.ArrayList(executions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; + + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List getExecutionsList() { + if (executionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(executions_); + } else { + return executionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public int getExecutionsCount() { + if (executionsBuilder_ == null) { + return executions_.size(); + } else { + return executionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); + } else { + return executionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.set(index, value); + onChanged(); + } else { + executionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder setExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.set(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(value); + onChanged(); + } else { + executionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution value) { + if (executionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExecutionsIsMutable(); + executions_.add(index, value); + onChanged(); + } else { + executionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addExecutions( + int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(index, builderForValue.build()); + onChanged(); + } else { + executionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder addAllExecutions( + java.lang.Iterable values) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); + onChanged(); + } else { + executionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder clearExecutions() { + if (executionsBuilder_ == null) { + executions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + executionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public Builder removeExecutions(int index) { + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.remove(index); + onChanged(); + } else { + executionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( + int index) { + if (executionsBuilder_ == null) { + return executions_.get(index); } else { + return executionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsOrBuilderList() { + if (executionsBuilder_ != null) { + return executionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(executions_); + } + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { + return getExecutionsFieldBuilder().addBuilder( + flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( + int index) { + return getExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Execution executions = 1; + */ + public java.util.List + getExecutionsBuilderList() { + return getExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> + getExecutionsFieldBuilder() { + if (executionsBuilder_ == null) { + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + executions_ = null; + } + return executionsBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapBlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + boolean hasValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + flyteidl.core.Literals.LiteralMap getValues(); + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); + + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + java.lang.String getUri(); + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + com.google.protobuf.ByteString + getUriBytes(); + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); + } + /** + *
+   * Input/output data can represented by actual values or a link to where values are stored
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class LiteralMapBlob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) + LiteralMapBlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMapBlob.newBuilder() to construct. + private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMapBlob() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMapBlob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (dataCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); + } + data_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); + data_ = subBuilder.buildPartial(); + } + dataCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = s; + 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.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + private int dataCase_ = 0; + private java.lang.Object data_; + public enum DataCase + implements com.google.protobuf.Internal.EnumLite { + VALUES(1), + URI(2), + DATA_NOT_SET(0); + private final int value; + private DataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: return VALUES; + case 2: return URI; + case 0: return DATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public static final int VALUES_FIELD_NUMBER = 1; + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap getValues() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * Data in LiteralMap format
+     * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public static final int URI_FIELD_NUMBER = 2; + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + 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(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } + } + /** + *
+     * In the event that the map is too large, we return a uri to the data
+     * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); + } + 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.ExecutionOuterClass.LiteralMapBlob)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; + + boolean result = true; + result = result && getDataCase().equals( + other.getDataCase()); + if (!result) return false; + switch (dataCase_) { + case 1: + result = result && getValues() + .equals(other.getValues()); + break; + case 2: + result = result && getUri() + .equals(other.getUri()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValues().hashCode(); + break; + case 2: + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Input/output data can represented by actual values or a link to where values are stored
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LiteralMapBlob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + dataCase_ = 0; + data_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); + if (dataCase_ == 1) { + if (valuesBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = valuesBuilder_.build(); + } + } + if (dataCase_ == 2) { + result.data_ = data_; + } + result.dataCase_ = dataCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { + if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; + switch (other.getDataCase()) { + case VALUES: { + mergeValues(other.getValues()); + break; + } + case URI: { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case DATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataCase_ = 0; + private java.lang.Object data_; + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public boolean hasValues() { + return dataCase_ == 1; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap getValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (dataCase_ == 1) { + return valuesBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder setValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder setValues( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (valuesBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + valuesBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { + if (valuesBuilder_ == null) { + if (dataCase_ == 1 && + data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) + .mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 1) { + valuesBuilder_.mergeFrom(value); + } + valuesBuilder_.setMessage(value); + } + dataCase_ = 1; + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + } + valuesBuilder_.clear(); + } + return this; + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { + return getValuesFieldBuilder().getBuilder(); + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { + if ((dataCase_ == 1) && (valuesBuilder_ != null)) { + return valuesBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 1) { + return (flyteidl.core.Literals.LiteralMap) data_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * Data in LiteralMap format
+       * 
+ * + * .flyteidl.core.LiteralMap values = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + if (!(dataCase_ == 1)) { + data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 1; + onChanged();; + return valuesBuilder_; + } + + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public java.lang.String getUri() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder clearUri() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the event that the map is too large, we return a uri to the data
+       * 
+ * + * string uri = 2; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LiteralMapBlob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); + } + + public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LiteralMapBlob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMapBlob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + boolean hasOutputs(); + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); + + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10; + */ + java.lang.String getAbortCause(); + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10; + */ + com.google.protobuf.ByteString + getAbortCauseBytes(); + + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + boolean hasComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + flyteidl.core.Literals.LiteralMap getComputedInputs(); + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); + + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + int getNotificationsCount(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + boolean hasWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Encapsulates the results of the Execution
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class ExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) + ExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionClosure.newBuilder() to construct. + private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionClosure() { + phase_ = 0; + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; + if (outputResultCase_ == 1) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 1; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (computedInputs_ != null) { + subBuilder = computedInputs_.toBuilder(); + } + computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(computedInputs_); + computedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 10; + outputResult_ = s; + break; + } + case 90: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + 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_ & 0x00000200) == 0x00000200)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUTS(1), + ERROR(2), + ABORT_CAUSE(10), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUTS; + case 2: return ERROR; + case 10: return ABORT_CAUSE; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + /** + *
+     * A map of outputs in the case of a successful execution.
+     * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information in the case of a failed execution. 
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int ABORT_CAUSE_FIELD_NUMBER = 10; + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10; + */ + public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * In the case of a user-specified abort, this will pass along the user-supplied cause.
+     * 
+ * + * string abort_cause = 10; + */ + public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Literals.LiteralMap computedInputs_; + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public boolean hasComputedInputs() { + return computedInputs_ != null; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getComputedInputs() { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + /** + *
+     * Inputs computed and passed for execution.
+     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+     * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + return getComputedInputs(); + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Most recent recorded phase for the execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Reported ime at which the execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Reported time at which the execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Reported time at which the execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 9; + private java.util.List notifications_; + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+     * notification settings. An execution launched with notifications will always prefer that definition
+     * to notifications defined statically in a launch plan.
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 11; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Identifies the workflow definition for this execution.
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + output.writeMessage(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); + } + if (workflowId_ != null) { + output.writeMessage(11, getWorkflowId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (computedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getComputedInputs()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, notifications_.get(i)); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); + } + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getWorkflowId()); + } + 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.ExecutionOuterClass.ExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; + + boolean result = true; + result = result && (hasComputedInputs() == other.hasComputedInputs()); + if (hasComputedInputs()) { + result = result && getComputedInputs() + .equals(other.getComputedInputs()); + } + result = result && phase_ == other.phase_; + result = result && (hasStartedAt() == other.hasStartedAt()); + if (hasStartedAt()) { + result = result && getStartedAt() + .equals(other.getStartedAt()); + } + result = result && (hasDuration() == other.hasDuration()); + if (hasDuration()) { + result = result && getDuration() + .equals(other.getDuration()); + } + result = result && (hasCreatedAt() == other.hasCreatedAt()); + if (hasCreatedAt()) { + result = result && getCreatedAt() + .equals(other.getCreatedAt()); + } + result = result && (hasUpdatedAt() == other.hasUpdatedAt()); + if (hasUpdatedAt()) { + result = result && getUpdatedAt() + .equals(other.getUpdatedAt()); + } + result = result && getNotificationsList() + .equals(other.getNotificationsList()); + result = result && (hasWorkflowId() == other.hasWorkflowId()); + if (hasWorkflowId()) { + result = result && getWorkflowId() + .equals(other.getWorkflowId()); + } + result = result && getOutputResultCase().equals( + other.getOutputResultCase()); + if (!result) return false; + switch (outputResultCase_) { + case 1: + result = result && getOutputs() + .equals(other.getOutputs()); + break; + case 2: + result = result && getError() + .equals(other.getError()); + break; + case 10: + result = result && getAbortCause() + .equals(other.getAbortCause()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasComputedInputs()) { + hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getComputedInputs().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 10: + hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getAbortCause().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulates the results of the Execution
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) + flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + notificationsBuilder_.clear(); + } + if (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + if (outputsBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = outputsBuilder_.build(); + } + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (outputResultCase_ == 10) { + result.outputResult_ = outputResult_; + } + if (computedInputsBuilder_ == null) { + result.computedInputs_ = computedInputs_; + } else { + result.computedInputs_ = computedInputsBuilder_.build(); + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionClosure) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; + if (other.hasComputedInputs()) { + mergeComputedInputs(other.getComputedInputs()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000200); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + switch (other.getOutputResultCase()) { + case OUTPUTS: { + mergeOutputs(other.getOutputs()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case ABORT_CAUSE: { + outputResultCase_ = 10; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputResultCase_ == 1; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } else { + if (outputResultCase_ == 1) { + return outputsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder setOutputs( + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1 && + outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 1) { + outputsBuilder_.mergeFrom(value); + } + outputsBuilder_.setMessage(value); + } + outputResultCase_ = 1; + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + } + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { + if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 1) { + return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; + } + return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + } + /** + *
+       * A map of outputs in the case of a successful execution.
+       * 
+ * + * .flyteidl.admin.LiteralMapBlob outputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + if (!(outputResultCase_ == 1)) { + outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); + } + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 1; + onChanged();; + return outputsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information in the case of a failed execution. 
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10; + */ + public java.lang.String getAbortCause() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 10) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10; + */ + public com.google.protobuf.ByteString + getAbortCauseBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 10) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 10) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10; + */ + public Builder setAbortCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10; + */ + public Builder clearAbortCause() { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * In the case of a user-specified abort, this will pass along the user-supplied cause.
+       * 
+ * + * string abort_cause = 10; + */ + public Builder setAbortCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 10; + outputResult_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.LiteralMap computedInputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public boolean hasComputedInputs() { + return computedInputsBuilder_ != null || computedInputs_ != null; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap getComputedInputs() { + if (computedInputsBuilder_ == null) { + return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } else { + return computedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + computedInputs_ = value; + onChanged(); + } else { + computedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public Builder setComputedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (computedInputsBuilder_ == null) { + computedInputs_ = builderForValue.build(); + onChanged(); + } else { + computedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { + if (computedInputsBuilder_ == null) { + if (computedInputs_ != null) { + computedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); + } else { + computedInputs_ = value; + } + onChanged(); + } else { + computedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public Builder clearComputedInputs() { + if (computedInputsBuilder_ == null) { + computedInputs_ = null; + onChanged(); + } else { + computedInputs_ = null; + computedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { + + onChanged(); + return getComputedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { + if (computedInputsBuilder_ != null) { + return computedInputsBuilder_.getMessageOrBuilder(); + } else { + return computedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; + } + } + /** + *
+       * Inputs computed and passed for execution.
+       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
+       * 
+ * + * .flyteidl.core.LiteralMap computed_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getComputedInputsFieldBuilder() { + if (computedInputsBuilder_ == null) { + computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getComputedInputs(), + getParentForChildren(), + isClean()); + computedInputs_ = null; + } + return computedInputsBuilder_; + } + + private int phase_ = 0; + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Most recent recorded phase for the execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Reported ime at which the execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Reported time at which the execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Reported time at which the execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
+       * notification settings. An execution launched with notifications will always prefer that definition
+       * to notifications defined statically in a launch plan.
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 9; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Identifies the workflow definition for this execution.
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + int getModeValue(); + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); + + /** + *
+     * Identifier of the entity that triggered this execution.
+     * 
+ * + * string principal = 2; + */ + java.lang.String getPrincipal(); + /** + *
+     * Identifier of the entity that triggered this execution.
+     * 
+ * + * string principal = 2; + */ + com.google.protobuf.ByteString + getPrincipalBytes(); + + /** + *
+     * Indicates the "nestedness" of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + int getNesting(); + + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + boolean hasScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.Timestamp getScheduledAt(); + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); + + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + boolean hasParentNodeExecution(); + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); + + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + boolean hasReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); + } + /** + *
+   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+   * These attributes are assigned at launch time and do not change.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class ExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) + ExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionMetadata.newBuilder() to construct. + private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionMetadata() { + mode_ = 0; + principal_ = ""; + nesting_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + mode_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + principal_ = s; + break; + } + case 24: { + + nesting_ = input.readUInt32(); + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduledAt_ != null) { + subBuilder = scheduledAt_.toBuilder(); + } + scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduledAt_); + scheduledAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecution_ != null) { + subBuilder = parentNodeExecution_.toBuilder(); + } + parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecution_); + parentNodeExecution_ = subBuilder.buildPartial(); + } + + break; + } + case 130: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (referenceExecution_ != null) { + subBuilder = referenceExecution_.toBuilder(); + } + referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(referenceExecution_); + referenceExecution_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + /** + *
+     * The method by which this execution was launched.
+     * 
+ * + * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} + */ + public enum ExecutionMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + MANUAL(0), + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + SCHEDULED(1), + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + RELAUNCH(3), + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + CHILD_WORKFLOW(4), + UNRECOGNIZED(-1), + ; + + /** + *
+       * The default execution mode, MANUAL implies that an execution was launched by an individual.
+       * 
+ * + * MANUAL = 0; + */ + public static final int MANUAL_VALUE = 0; + /** + *
+       * A schedule triggered this execution launch.
+       * 
+ * + * SCHEDULED = 1; + */ + public static final int SCHEDULED_VALUE = 1; + /** + *
+       * A system process was responsible for launching this execution rather an individual.
+       * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + *
+       * This execution was launched with identical inputs as a previous execution.
+       * 
+ * + * RELAUNCH = 3; + */ + public static final int RELAUNCH_VALUE = 3; + /** + *
+       * This execution was triggered by another execution.
+       * 
+ * + * CHILD_WORKFLOW = 4; + */ + public static final int CHILD_WORKFLOW_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExecutionMode valueOf(int value) { + return forNumber(value); + } + + public static ExecutionMode forNumber(int value) { + switch (value) { + case 0: return MANUAL; + case 1: return SCHEDULED; + case 2: return SYSTEM; + case 3: return RELAUNCH; + case 4: return CHILD_WORKFLOW; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionMode findValueByNumber(int number) { + return ExecutionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final ExecutionMode[] VALUES = values(); + + public static ExecutionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExecutionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_; + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + *
+     * [(validate.rules).enum.defined_only = true];
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + + public static final int PRINCIPAL_FIELD_NUMBER = 2; + private volatile java.lang.Object principal_; + /** + *
+     * Identifier of the entity that triggered this execution.
+     * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + 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(); + principal_ = s; + return s; + } + } + /** + *
+     * Identifier of the entity that triggered this execution.
+     * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NESTING_FIELD_NUMBER = 3; + private int nesting_; + /** + *
+     * Indicates the "nestedness" of this execution.
+     * If a user launches a workflow execution, the default nesting is 0.
+     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+     * nesting = k + 1.
+     * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + + public static final int SCHEDULED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp scheduledAt_; + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAt_ != null; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + /** + *
+     * For scheduled executions, the requested time for execution for this specific schedule invocation.
+     * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + return getScheduledAt(); + } + + public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecution_ != null; + } + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + /** + *
+     * Which subworkflow node launched this execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + return getParentNodeExecution(); + } + + public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecution_ != null; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + /** + *
+     * Optional, a reference workflow execution related to this execution.
+     * In the case of a relaunch, this references the original workflow execution.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + return getReferenceExecution(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + output.writeEnum(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + if (nesting_ != 0) { + output.writeUInt32(3, nesting_); + } + if (scheduledAt_ != null) { + output.writeMessage(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + output.writeMessage(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + output.writeMessage(16, getReferenceExecution()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, mode_); + } + if (!getPrincipalBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + if (nesting_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, nesting_); + } + if (scheduledAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScheduledAt()); + } + if (parentNodeExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getParentNodeExecution()); + } + if (referenceExecution_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getReferenceExecution()); + } + 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.ExecutionOuterClass.ExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; + + boolean result = true; + result = result && mode_ == other.mode_; + result = result && getPrincipal() + .equals(other.getPrincipal()); + result = result && (getNesting() + == other.getNesting()); + result = result && (hasScheduledAt() == other.hasScheduledAt()); + if (hasScheduledAt()) { + result = result && getScheduledAt() + .equals(other.getScheduledAt()); + } + result = result && (hasParentNodeExecution() == other.hasParentNodeExecution()); + if (hasParentNodeExecution()) { + result = result && getParentNodeExecution() + .equals(other.getParentNodeExecution()); + } + result = result && (hasReferenceExecution() == other.hasReferenceExecution()); + if (hasReferenceExecution()) { + result = result && getReferenceExecution() + .equals(other.getReferenceExecution()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getPrincipal().hashCode(); + hash = (37 * hash) + NESTING_FIELD_NUMBER; + hash = (53 * hash) + getNesting(); + if (hasScheduledAt()) { + hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; + hash = (53 * hash) + getScheduledAt().hashCode(); + } + if (hasParentNodeExecution()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecution().hashCode(); + } + if (hasReferenceExecution()) { + hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; + hash = (53 * hash) + getReferenceExecution().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
+     * These attributes are assigned at launch time and do not change.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + mode_ = 0; + + principal_ = ""; + + nesting_ = 0; + + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); + result.mode_ = mode_; + result.principal_ = principal_; + result.nesting_ = nesting_; + if (scheduledAtBuilder_ == null) { + result.scheduledAt_ = scheduledAt_; + } else { + result.scheduledAt_ = scheduledAtBuilder_.build(); + } + if (parentNodeExecutionBuilder_ == null) { + result.parentNodeExecution_ = parentNodeExecution_; + } else { + result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); + } + if (referenceExecutionBuilder_ == null) { + result.referenceExecution_ = referenceExecution_; + } else { + result.referenceExecution_ = referenceExecutionBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getPrincipal().isEmpty()) { + principal_ = other.principal_; + onChanged(); + } + if (other.getNesting() != 0) { + setNesting(other.getNesting()); + } + if (other.hasScheduledAt()) { + mergeScheduledAt(other.getScheduledAt()); + } + if (other.hasParentNodeExecution()) { + mergeParentNodeExecution(other.getParentNodeExecution()); + } + if (other.hasReferenceExecution()) { + mergeReferenceExecution(other.getReferenceExecution()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int mode_ = 0; + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public int getModeValue() { + return mode_; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setModeValue(int value) { + mode_ = value; + onChanged(); + return this; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); + return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { + if (value == null) { + throw new NullPointerException(); + } + + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * [(validate.rules).enum.defined_only = true];
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + public Builder clearMode() { + + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object principal_ = ""; + /** + *
+       * Identifier of the entity that triggered this execution.
+       * 
+ * + * string principal = 2; + */ + public java.lang.String getPrincipal() { + java.lang.Object ref = principal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + principal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * 
+ * + * string principal = 2; + */ + public com.google.protobuf.ByteString + getPrincipalBytes() { + java.lang.Object ref = principal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + principal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipal( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + principal_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * 
+ * + * string principal = 2; + */ + public Builder clearPrincipal() { + + principal_ = getDefaultInstance().getPrincipal(); + onChanged(); + return this; + } + /** + *
+       * Identifier of the entity that triggered this execution.
+       * 
+ * + * string principal = 2; + */ + public Builder setPrincipalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + principal_ = value; + onChanged(); + return this; + } + + private int nesting_ ; + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public int getNesting() { + return nesting_; + } + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder setNesting(int value) { + + nesting_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the "nestedness" of this execution.
+       * If a user launches a workflow execution, the default nesting is 0.
+       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
+       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
+       * nesting = k + 1.
+       * 
+ * + * uint32 nesting = 3; + */ + public Builder clearNesting() { + + nesting_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp scheduledAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public boolean hasScheduledAt() { + return scheduledAtBuilder_ != null || scheduledAt_ != null; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp getScheduledAt() { + if (scheduledAtBuilder_ == null) { + return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } else { + return scheduledAtBuilder_.getMessage(); + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduledAt_ = value; + onChanged(); + } else { + scheduledAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder setScheduledAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = builderForValue.build(); + onChanged(); + } else { + scheduledAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { + if (scheduledAtBuilder_ == null) { + if (scheduledAt_ != null) { + scheduledAt_ = + com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); + } else { + scheduledAt_ = value; + } + onChanged(); + } else { + scheduledAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public Builder clearScheduledAt() { + if (scheduledAtBuilder_ == null) { + scheduledAt_ = null; + onChanged(); + } else { + scheduledAt_ = null; + scheduledAtBuilder_ = null; + } + + return this; + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { + + onChanged(); + return getScheduledAtFieldBuilder().getBuilder(); + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { + if (scheduledAtBuilder_ != null) { + return scheduledAtBuilder_.getMessageOrBuilder(); + } else { + return scheduledAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; + } + } + /** + *
+       * For scheduled executions, the requested time for execution for this specific schedule invocation.
+       * 
+ * + * .google.protobuf.Timestamp scheduled_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getScheduledAtFieldBuilder() { + if (scheduledAtBuilder_ == null) { + scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getScheduledAt(), + getParentForChildren(), + isClean()); + scheduledAt_ = null; + } + return scheduledAtBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public boolean hasParentNodeExecution() { + return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } else { + return parentNodeExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecution_ = value; + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder setParentNodeExecution( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionBuilder_ == null) { + if (parentNodeExecution_ != null) { + parentNodeExecution_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecution_ = value; + } + onChanged(); + } else { + parentNodeExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public Builder clearParentNodeExecution() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecution_ = null; + onChanged(); + } else { + parentNodeExecution_ = null; + parentNodeExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { + + onChanged(); + return getParentNodeExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { + if (parentNodeExecutionBuilder_ != null) { + return parentNodeExecutionBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecution_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; + } + } + /** + *
+       * Which subworkflow node launched this execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionFieldBuilder() { + if (parentNodeExecutionBuilder_ == null) { + parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecution(), + getParentForChildren(), + isClean()); + parentNodeExecution_ = null; + } + return parentNodeExecutionBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public boolean hasReferenceExecution() { + return referenceExecutionBuilder_ != null || referenceExecution_ != null; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } else { + return referenceExecutionBuilder_.getMessage(); + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + referenceExecution_ = value; + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder setReferenceExecution( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = builderForValue.build(); + onChanged(); + } else { + referenceExecutionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (referenceExecutionBuilder_ == null) { + if (referenceExecution_ != null) { + referenceExecution_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); + } else { + referenceExecution_ = value; + } + onChanged(); + } else { + referenceExecutionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public Builder clearReferenceExecution() { + if (referenceExecutionBuilder_ == null) { + referenceExecution_ = null; + onChanged(); + } else { + referenceExecution_ = null; + referenceExecutionBuilder_ = null; + } + + return this; + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { + + onChanged(); + return getReferenceExecutionFieldBuilder().getBuilder(); + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { + if (referenceExecutionBuilder_ != null) { + return referenceExecutionBuilder_.getMessageOrBuilder(); + } else { + return referenceExecution_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; + } + } + /** + *
+       * Optional, a reference workflow execution related to this execution.
+       * In the case of a relaunch, this references the original workflow execution.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getReferenceExecutionFieldBuilder() { + if (referenceExecutionBuilder_ == null) { + referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getReferenceExecution(), + getParentForChildren(), + isClean()); + referenceExecution_ = null; + } + return referenceExecutionBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NotificationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + int getNotificationsCount(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.NotificationList} + */ + public static final class NotificationList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) + NotificationListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NotificationList.newBuilder() to construct. + private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NotificationList() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NotificationList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + 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) == 0x00000001)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 1; + private java.util.List notifications_; + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(1, notifications_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notifications_.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.ExecutionOuterClass.NotificationList)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; + + boolean result = true; + result = result && getNotificationsList() + .equals(other.getNotificationsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.NotificationList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.NotificationList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.NotificationList build() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { + flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); + int from_bitField0_ = bitField0_; + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.NotificationList) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { + if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000001); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.NotificationList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Notification notifications = 1; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NotificationList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); + } + + public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NotificationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NotificationList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + boolean hasLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + boolean hasInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + flyteidl.core.Literals.LiteralMap getInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); + + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + boolean hasNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); + + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + boolean getDisableAll(); + + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + boolean hasLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + boolean hasAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); + } + /** + *
+   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+   * of an execution as it progresses across phase changes..
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class ExecutionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) + ExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionSpec.newBuilder() to construct. + private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionSpec( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (launchPlan_ != null) { + subBuilder = launchPlan_.toBuilder(); + } + launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(launchPlan_); + launchPlan_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; + if (notificationOverridesCase_ == 5) { + subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); + } + notificationOverrides_ = + input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + notificationOverrides_ = subBuilder.buildPartial(); + } + notificationOverridesCase_ = 5; + break; + } + case 48: { + notificationOverridesCase_ = 6; + notificationOverrides_ = input.readBool(); + break; + } + case 58: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public enum NotificationOverridesCase + implements com.google.protobuf.Internal.EnumLite { + NOTIFICATIONS(5), + DISABLE_ALL(6), + NOTIFICATIONOVERRIDES_NOT_SET(0); + private final int value; + private NotificationOverridesCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationOverridesCase valueOf(int value) { + return forNumber(value); + } + + public static NotificationOverridesCase forNumber(int value) { + switch (value) { + case 5: return NOTIFICATIONS; + case 6: return DISABLE_ALL; + case 0: return NOTIFICATIONOVERRIDES_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlan_ != null; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + /** + *
+     * Launch plan to be executed
+     * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + return getLaunchPlan(); + } + + public static final int INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Literals.LiteralMap inputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Metadata for the execution
+     * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 5; + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+     * When this list is empty, the notifications defined for the launch plan will be applied.
+     * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + + public static final int DISABLE_ALL_FIELD_NUMBER = 6; + /** + *
+     * This should be set to true if all notifications are intended to be disabled for this execution.
+     * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + + public static final int LABELS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Labels to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 8; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Annotations to apply to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (launchPlan_ != null) { + output.writeMessage(1, getLaunchPlan()); + } + if (inputs_ != null) { + output.writeMessage(2, getInputs()); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + output.writeBool( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + output.writeMessage(7, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(8, getAnnotations()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (launchPlan_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLaunchPlan()); + } + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputs()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (notificationOverridesCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); + } + if (notificationOverridesCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 6, (boolean)((java.lang.Boolean) notificationOverrides_)); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAnnotations()); + } + 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.ExecutionOuterClass.ExecutionSpec)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; + + boolean result = true; + result = result && (hasLaunchPlan() == other.hasLaunchPlan()); + if (hasLaunchPlan()) { + result = result && getLaunchPlan() + .equals(other.getLaunchPlan()); + } + result = result && (hasInputs() == other.hasInputs()); + if (hasInputs()) { + result = result && getInputs() + .equals(other.getInputs()); + } + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasLabels() == other.hasLabels()); + if (hasLabels()) { + result = result && getLabels() + .equals(other.getLabels()); + } + result = result && (hasAnnotations() == other.hasAnnotations()); + if (hasAnnotations()) { + result = result && getAnnotations() + .equals(other.getAnnotations()); + } + result = result && getNotificationOverridesCase().equals( + other.getNotificationOverridesCase()); + if (!result) return false; + switch (notificationOverridesCase_) { + case 5: + result = result && getNotifications() + .equals(other.getNotifications()); + break; + case 6: + result = result && (getDisableAll() + == other.getDisableAll()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLaunchPlan()) { + hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlan().hashCode(); + } + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + switch (notificationOverridesCase_) { + case 5: + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotifications().hashCode(); + break; + case 6: + hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisableAll()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
+     * of an execution as it progresses across phase changes..
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) + flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (launchPlanBuilder_ == null) { + launchPlan_ = null; + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); + if (launchPlanBuilder_ == null) { + result.launchPlan_ = launchPlan_; + } else { + result.launchPlan_ = launchPlanBuilder_.build(); + } + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (notificationOverridesCase_ == 5) { + if (notificationsBuilder_ == null) { + result.notificationOverrides_ = notificationOverrides_; + } else { + result.notificationOverrides_ = notificationsBuilder_.build(); + } + } + if (notificationOverridesCase_ == 6) { + result.notificationOverrides_ = notificationOverrides_; + } + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + result.notificationOverridesCase_ = notificationOverridesCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionSpec) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; + if (other.hasLaunchPlan()) { + mergeLaunchPlan(other.getLaunchPlan()); + } + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + switch (other.getNotificationOverridesCase()) { + case NOTIFICATIONS: { + mergeNotifications(other.getNotifications()); + break; + } + case DISABLE_ALL: { + setDisableAll(other.getDisableAll()); + break; + } + case NOTIFICATIONOVERRIDES_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int notificationOverridesCase_ = 0; + private java.lang.Object notificationOverrides_; + public NotificationOverridesCase + getNotificationOverridesCase() { + return NotificationOverridesCase.forNumber( + notificationOverridesCase_); + } + + public Builder clearNotificationOverrides() { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public boolean hasLaunchPlan() { + return launchPlanBuilder_ != null || launchPlan_ != null; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { + if (launchPlanBuilder_ == null) { + return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } else { + return launchPlanBuilder_.getMessage(); + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + launchPlan_ = value; + onChanged(); + } else { + launchPlanBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder setLaunchPlan( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchPlanBuilder_ == null) { + launchPlan_ = builderForValue.build(); + onChanged(); + } else { + launchPlanBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchPlanBuilder_ == null) { + if (launchPlan_ != null) { + launchPlan_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); + } else { + launchPlan_ = value; + } + onChanged(); + } else { + launchPlanBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public Builder clearLaunchPlan() { + if (launchPlanBuilder_ == null) { + launchPlan_ = null; + onChanged(); + } else { + launchPlan_ = null; + launchPlanBuilder_ = null; + } + + return this; + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { + + onChanged(); + return getLaunchPlanFieldBuilder().getBuilder(); + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { + if (launchPlanBuilder_ != null) { + return launchPlanBuilder_.getMessageOrBuilder(); + } else { + return launchPlan_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; + } + } + /** + *
+       * Launch plan to be executed
+       * 
+ * + * .flyteidl.core.Identifier launch_plan = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchPlanFieldBuilder() { + if (launchPlanBuilder_ == null) { + launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getLaunchPlan(), + getParentForChildren(), + isClean()); + launchPlan_ = null; + } + return launchPlanBuilder_; + } + + private flyteidl.core.Literals.LiteralMap inputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public flyteidl.core.Literals.LiteralMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public Builder setInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.LiteralMap inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Metadata for the execution
+       * 
+ * + * .flyteidl.admin.ExecutionMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public boolean hasNotifications() { + return notificationOverridesCase_ == 5; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } else { + if (notificationOverridesCase_ == 5) { + return notificationsBuilder_.getMessage(); + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notificationOverrides_ = value; + onChanged(); + } else { + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder setNotifications( + flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { + if (notificationsBuilder_ == null) { + notificationOverrides_ = builderForValue.build(); + onChanged(); + } else { + notificationsBuilder_.setMessage(builderForValue.build()); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5 && + notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) + .mergeFrom(value).buildPartial(); + } else { + notificationOverrides_ = value; + } + onChanged(); + } else { + if (notificationOverridesCase_ == 5) { + notificationsBuilder_.mergeFrom(value); + } + notificationsBuilder_.setMessage(value); + } + notificationOverridesCase_ = 5; + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + } else { + if (notificationOverridesCase_ == 5) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + } + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { + return getNotificationsFieldBuilder().getBuilder(); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { + if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { + return notificationsBuilder_.getMessageOrBuilder(); + } else { + if (notificationOverridesCase_ == 5) { + return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; + } + return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
+       * When this list is empty, the notifications defined for the launch plan will be applied.
+       * 
+ * + * .flyteidl.admin.NotificationList notifications = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + if (!(notificationOverridesCase_ == 5)) { + notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); + } + notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( + (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, + getParentForChildren(), + isClean()); + notificationOverrides_ = null; + } + notificationOverridesCase_ = 5; + onChanged();; + return notificationsBuilder_; + } + + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public boolean getDisableAll() { + if (notificationOverridesCase_ == 6) { + return (java.lang.Boolean) notificationOverrides_; + } + return false; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder setDisableAll(boolean value) { + notificationOverridesCase_ = 6; + notificationOverrides_ = value; + onChanged(); + return this; + } + /** + *
+       * This should be set to true if all notifications are intended to be disabled for this execution.
+       * 
+ * + * bool disable_all = 6; + */ + public Builder clearDisableAll() { + if (notificationOverridesCase_ == 6) { + notificationOverridesCase_ = 0; + notificationOverrides_ = null; + onChanged(); + } + return this; + } + + private flyteidl.admin.Common.Labels labels_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Labels to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Annotations to apply to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + java.lang.String getCause(); + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + com.google.protobuf.ByteString + getCauseBytes(); + } + /** + *
+   * Request to terminate an in-progress execution.  This action is irreversible.
+   * If an execution is already terminated, this request will simply be a no-op.
+   * This request will fail if it references a non-existent execution.
+   * If the request succeeds the phase "ABORTED" will be recorded for the termination
+   * with the optional cause added to the output_result.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class ExecutionTerminateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) + ExecutionTerminateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateRequest.newBuilder() to construct. + private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateRequest() { + cause_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + cause_ = s; + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies the individual workflow execution to be terminated. 
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CAUSE_FIELD_NUMBER = 2; + private volatile java.lang.Object cause_; + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + 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(); + cause_ = s; + return s; + } + } + /** + *
+     * Optional reason for aborting.
+     * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getCauseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getCauseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); + } + 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.ExecutionOuterClass.ExecutionTerminateRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && getCause() + .equals(other.getCause()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + CAUSE_FIELD_NUMBER; + hash = (53 * hash) + getCause().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to terminate an in-progress execution.  This action is irreversible.
+     * If an execution is already terminated, this request will simply be a no-op.
+     * This request will fail if it references a non-existent execution.
+     * If the request succeeds the phase "ABORTED" will be recorded for the termination
+     * with the optional cause added to the output_result.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + cause_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.cause_ = cause_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getCause().isEmpty()) { + cause_ = other.cause_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies the individual workflow execution to be terminated. 
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object cause_ = ""; + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public java.lang.String getCause() { + java.lang.Object ref = cause_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cause_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public com.google.protobuf.ByteString + getCauseBytes() { + java.lang.Object ref = cause_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cause_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCause( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + cause_ = value; + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder clearCause() { + + cause_ = getDefaultInstance().getCause(); + onChanged(); + return this; + } + /** + *
+       * Optional reason for aborting.
+       * 
+ * + * string cause = 2; + */ + public Builder setCauseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + cause_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionTerminateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionTerminateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionTerminateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class ExecutionTerminateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) + ExecutionTerminateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionTerminateResponse.newBuilder() to construct. + private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionTerminateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionTerminateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.ExecutionOuterClass.ExecutionTerminateResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ExecutionTerminateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionTerminateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionTerminateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class WorkflowExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + WorkflowExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. + private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class WorkflowExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + WorkflowExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. + private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionGetDataResponse( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + 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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + public static final int OUTPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputs_ != null) { + output.writeMessage(1, getOutputs()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOutputs()); + } + 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; + + boolean result = true; + result = result && (hasOutputs() == other.hasOutputs()); + if (hasOutputs()) { + result = result && getOutputs() + .equals(other.getOutputs()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { + if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob outputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); + } + + public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionGetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Execution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Execution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LiteralMapBlob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NotificationList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036flyteidl/admin/execution.proto\022\016flytei" + + "dl.admin\032\033flyteidl/admin/common.proto\032\034f" + + "lyteidl/core/literals.proto\032\035flyteidl/co" + + "re/execution.proto\032\036flyteidl/core/identi" + + "fier.proto\032\036google/protobuf/duration.pro" + + "to\032\037google/protobuf/timestamp.proto\"t\n\026E" + + "xecutionCreateRequest\022\017\n\007project\030\001 \001(\t\022\016" + + "\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004spec\030\004 \001" + + "(\0132\035.flyteidl.admin.ExecutionSpec\"`\n\030Exe" + + "cutionRelaunchRequest\0226\n\002id\030\001 \001(\0132*.flyt" + + "eidl.core.WorkflowExecutionIdentifier\022\014\n" + + "\004name\030\003 \001(\t\"Q\n\027ExecutionCreateResponse\0226" + + "\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExecu" + + "tionIdentifier\"U\n\033WorkflowExecutionGetRe" + + "quest\0226\n\002id\030\001 \001(\0132*.flyteidl.core.Workfl" + + "owExecutionIdentifier\"\243\001\n\tExecution\0226\n\002i" + + "d\030\001 \001(\0132*.flyteidl.core.WorkflowExecutio" + + "nIdentifier\022+\n\004spec\030\002 \001(\0132\035.flyteidl.adm" + + "in.ExecutionSpec\0221\n\007closure\030\003 \001(\0132 .flyt" + + "eidl.admin.ExecutionClosure\"M\n\rExecution" + + "List\022-\n\nexecutions\030\001 \003(\0132\031.flyteidl.admi" + + "n.Execution\022\r\n\005token\030\002 \001(\t\"T\n\016LiteralMap" + + "Blob\022+\n\006values\030\001 \001(\0132\031.flyteidl.core.Lit" + + "eralMapH\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"\252\004\n\020Exe" + + "cutionClosure\0221\n\007outputs\030\001 \001(\0132\036.flyteid" + + "l.admin.LiteralMapBlobH\000\022.\n\005error\030\002 \001(\0132" + + "\035.flyteidl.core.ExecutionErrorH\000\022\025\n\013abor" + + "t_cause\030\n \001(\tH\000\0222\n\017computed_inputs\030\003 \001(\013" + + "2\031.flyteidl.core.LiteralMap\0225\n\005phase\030\004 \001" + + "(\0162&.flyteidl.core.WorkflowExecution.Pha" + + "se\022.\n\nstarted_at\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\022+\n\010duration\030\006 \001(\0132\031.google.pr" + + "otobuf.Duration\022.\n\ncreated_at\030\007 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022.\n\nupdated_at\030\010 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n\rnotif" + + "ications\030\t \003(\0132\034.flyteidl.admin.Notifica" + + "tion\022.\n\013workflow_id\030\013 \001(\0132\031.flyteidl.cor" + + "e.IdentifierB\017\n\routput_result\"\222\003\n\021Execut" + + "ionMetadata\022=\n\004mode\030\001 \001(\0162/.flyteidl.adm" + + "in.ExecutionMetadata.ExecutionMode\022\021\n\tpr" + + "incipal\030\002 \001(\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014schedu" + + "led_at\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\022E\n\025parent_node_execution\030\005 \001(\0132&.flytei" + + "dl.core.NodeExecutionIdentifier\022G\n\023refer" + + "ence_execution\030\020 \001(\0132*.flyteidl.core.Wor" + + "kflowExecutionIdentifier\"X\n\rExecutionMod" + + "e\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED\020\001\022\n\n\006SYSTEM\020\002" + + "\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WORKFLOW\020\004\"G\n\020No" + + "tificationList\0223\n\rnotifications\030\001 \003(\0132\034." + + "flyteidl.admin.Notification\"\353\002\n\rExecutio" + + "nSpec\022.\n\013launch_plan\030\001 \001(\0132\031.flyteidl.co" + + "re.Identifier\022)\n\006inputs\030\002 \001(\0132\031.flyteidl" + + ".core.LiteralMap\0223\n\010metadata\030\003 \001(\0132!.fly" + + "teidl.admin.ExecutionMetadata\0229\n\rnotific" + + "ations\030\005 \001(\0132 .flyteidl.admin.Notificati" + + "onListH\000\022\025\n\013disable_all\030\006 \001(\010H\000\022&\n\006label" + + "s\030\007 \001(\0132\026.flyteidl.admin.Labels\0220\n\013annot" + + "ations\030\010 \001(\0132\033.flyteidl.admin.Annotation" + + "sB\030\n\026notification_overridesJ\004\010\004\020\005\"b\n\031Exe" + + "cutionTerminateRequest\0226\n\002id\030\001 \001(\0132*.fly" + + "teidl.core.WorkflowExecutionIdentifier\022\r" + + "\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTerminateRespo" + + "nse\"Y\n\037WorkflowExecutionGetDataRequest\0226" + + "\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExecu" + + "tionIdentifier\"L\n WorkflowExecutionGetDa" + + "taResponse\022(\n\007outputs\030\001 \001(\0132\027.flyteidl.a" + + "dmin.UrlBlobB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", "Spec", }); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_Execution_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Execution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Execution_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_ExecutionList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionList_descriptor, + new java.lang.String[] { "Executions", "Token", }); + internal_static_flyteidl_admin_LiteralMapBlob_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LiteralMapBlob_descriptor, + new java.lang.String[] { "Values", "Uri", "Data", }); + internal_static_flyteidl_admin_ExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionClosure_descriptor, + new java.lang.String[] { "Outputs", "Error", "AbortCause", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "OutputResult", }); + internal_static_flyteidl_admin_ExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionMetadata_descriptor, + new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", }); + internal_static_flyteidl_admin_NotificationList_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NotificationList_descriptor, + new java.lang.String[] { "Notifications", }); + internal_static_flyteidl_admin_ExecutionSpec_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionSpec_descriptor, + new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "NotificationOverrides", }); + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, + new java.lang.String[] { "Id", "Cause", }); + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.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/admin/LaunchPlanOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java new file mode 100644 index 0000000000..84e1821f97 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java @@ -0,0 +1,10544 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/launch_plan.proto + +package flyteidl.admin; + +public final class LaunchPlanOuterClass { + private LaunchPlanOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * By default any launch plan regardless of state can be used to launch a workflow execution.
+   * However, at most one version of a launch plan
+   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
+   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
+   * group will be observed and trigger executions at a defined cadence.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.LaunchPlanState} + */ + public enum LaunchPlanState + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INACTIVE = 0; + */ + INACTIVE(0), + /** + * ACTIVE = 1; + */ + ACTIVE(1), + UNRECOGNIZED(-1), + ; + + /** + * INACTIVE = 0; + */ + public static final int INACTIVE_VALUE = 0; + /** + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LaunchPlanState valueOf(int value) { + return forNumber(value); + } + + public static LaunchPlanState forNumber(int value) { + switch (value) { + case 0: return INACTIVE; + case 1: return ACTIVE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LaunchPlanState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LaunchPlanState findValueByNumber(int number) { + return LaunchPlanState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final LaunchPlanState[] VALUES = values(); + + public static LaunchPlanState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LaunchPlanState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) + } + + public interface LaunchPlanCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
+   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class LaunchPlanCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) + LaunchPlanCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateRequest.newBuilder() to construct. + private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies a launch plan entity.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + *
+     * User-provided launch plan details, including reference workflow, inputs and other metadata.
+     * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required
+     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
+     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies a launch plan entity.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * User-provided launch plan details, including reference workflow, inputs and other metadata.
+       * 
+ * + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class LaunchPlanCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) + LaunchPlanCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanCreateResponse.newBuilder() to construct. + private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + boolean hasSpec(); + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); + + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + boolean hasClosure(); + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * A LaunchPlan provides the capability to templatize workflow executions.
+   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+   * definition doesn't necessarily have a default value for said input.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class LaunchPlan extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) + LaunchPlanOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlan.newBuilder() to construct. + private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlan() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlan( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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.LaunchPlanOuterClass.LaunchPlan)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasClosure() == other.hasClosure()); + if (hasClosure()) { + result = result && getClosure() + .equals(other.getClosure()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 LaunchPlan provides the capability to templatize workflow executions.
+     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
+     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
+     * definition doesn't necessarily have a default value for said input.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlan} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; + } + } + /** + * .flyteidl.admin.LaunchPlanSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; + } + } + /** + * .flyteidl.admin.LaunchPlanClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlan) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlan parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlan(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + int getLaunchPlansCount(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + java.util.List + getLaunchPlansOrBuilderList(); + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + 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(); + } + /** + *
+   * Response object for list launch plan requests.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class LaunchPlanList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) + LaunchPlanListOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanList.newBuilder() to construct. + private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanList() { + launchPlans_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + launchPlans_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + launchPlans_.add( + input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + private int bitField0_; + public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; + private java.util.List launchPlans_; + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + return launchPlans_; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + return launchPlans_.size(); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + return launchPlans_.get(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + return launchPlans_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < launchPlans_.size(); i++) { + output.writeMessage(1, launchPlans_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < launchPlans_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, launchPlans_.get(i)); + } + 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.LaunchPlanOuterClass.LaunchPlanList)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; + + boolean result = true; + result = result && getLaunchPlansList() + .equals(other.getLaunchPlansList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLaunchPlansCount() > 0) { + hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; + hash = (53 * hash) + getLaunchPlansList().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.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Response object for list launch plan requests.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLaunchPlansFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + launchPlansBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (launchPlansBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.launchPlans_ = launchPlans_; + } else { + result.launchPlans_ = launchPlansBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; + if (launchPlansBuilder_ == null) { + if (!other.launchPlans_.isEmpty()) { + if (launchPlans_.isEmpty()) { + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLaunchPlansIsMutable(); + launchPlans_.addAll(other.launchPlans_); + } + onChanged(); + } + } else { + if (!other.launchPlans_.isEmpty()) { + if (launchPlansBuilder_.isEmpty()) { + launchPlansBuilder_.dispose(); + launchPlansBuilder_ = null; + launchPlans_ = other.launchPlans_; + bitField0_ = (bitField0_ & ~0x00000001); + launchPlansBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLaunchPlansFieldBuilder() : null; + } else { + launchPlansBuilder_.addAllMessages(other.launchPlans_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List launchPlans_ = + java.util.Collections.emptyList(); + private void ensureLaunchPlansIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + launchPlans_ = new java.util.ArrayList(launchPlans_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; + + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List getLaunchPlansList() { + if (launchPlansBuilder_ == null) { + return java.util.Collections.unmodifiableList(launchPlans_); + } else { + return launchPlansBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public int getLaunchPlansCount() { + if (launchPlansBuilder_ == null) { + return launchPlans_.size(); + } else { + return launchPlansBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); + } else { + return launchPlansBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, value); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder setLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.set(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { + if (launchPlansBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, value); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addLaunchPlans( + int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.add(index, builderForValue.build()); + onChanged(); + } else { + launchPlansBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder addAllLaunchPlans( + java.lang.Iterable values) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, launchPlans_); + onChanged(); + } else { + launchPlansBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder clearLaunchPlans() { + if (launchPlansBuilder_ == null) { + launchPlans_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + launchPlansBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public Builder removeLaunchPlans(int index) { + if (launchPlansBuilder_ == null) { + ensureLaunchPlansIsMutable(); + launchPlans_.remove(index); + onChanged(); + } else { + launchPlansBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( + int index) { + if (launchPlansBuilder_ == null) { + return launchPlans_.get(index); } else { + return launchPlansBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansOrBuilderList() { + if (launchPlansBuilder_ != null) { + return launchPlansBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(launchPlans_); + } + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { + return getLaunchPlansFieldBuilder().addBuilder( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( + int index) { + return getLaunchPlansFieldBuilder().addBuilder( + index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; + */ + public java.util.List + getLaunchPlansBuilderList() { + return getLaunchPlansFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> + getLaunchPlansFieldBuilder() { + if (launchPlansBuilder_ == null) { + launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( + launchPlans_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + launchPlans_ = null; + } + return launchPlansBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) + com.google.protobuf.MessageOrBuilder { + + /** + * string assumable_iam_role = 1; + */ + java.lang.String getAssumableIamRole(); + /** + * string assumable_iam_role = 1; + */ + com.google.protobuf.ByteString + getAssumableIamRoleBytes(); + + /** + * string kubernetes_service_account = 2; + */ + java.lang.String getKubernetesServiceAccount(); + /** + * string kubernetes_service_account = 2; + */ + com.google.protobuf.ByteString + getKubernetesServiceAccountBytes(); + + public flyteidl.admin.LaunchPlanOuterClass.Auth.MethodCase getMethodCase(); + } + /** + *
+   * Defines permissions associated with executions created by this launch plan spec.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Auth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) + AuthOrBuilder { + private static final long serialVersionUID = 0L; + // Use Auth.newBuilder() to construct. + private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Auth() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Auth( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + methodCase_ = 1; + method_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + methodCase_ = 2; + method_ = s; + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + private int methodCase_ = 0; + private java.lang.Object method_; + public enum MethodCase + implements com.google.protobuf.Internal.EnumLite { + ASSUMABLE_IAM_ROLE(1), + KUBERNETES_SERVICE_ACCOUNT(2), + METHOD_NOT_SET(0); + private final int value; + private MethodCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MethodCase valueOf(int value) { + return forNumber(value); + } + + public static MethodCase forNumber(int value) { + switch (value) { + case 1: return ASSUMABLE_IAM_ROLE; + case 2: return KUBERNETES_SERVICE_ACCOUNT; + case 0: return METHOD_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + 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(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + 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(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (methodCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (methodCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (methodCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (methodCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + 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.LaunchPlanOuterClass.Auth)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; + + boolean result = true; + result = result && getMethodCase().equals( + other.getMethodCase()); + if (!result) return false; + switch (methodCase_) { + case 1: + result = result && getAssumableIamRole() + .equals(other.getAssumableIamRole()); + break; + case 2: + result = result && getKubernetesServiceAccount() + .equals(other.getKubernetesServiceAccount()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (methodCase_) { + case 1: + hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAssumableIamRole().hashCode(); + break; + case 2: + hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.Auth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines permissions associated with executions created by this launch plan spec.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Auth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) + flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + methodCase_ = 0; + method_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.Auth build() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); + if (methodCase_ == 1) { + result.method_ = method_; + } + if (methodCase_ == 2) { + result.method_ = method_; + } + result.methodCase_ = methodCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.Auth) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; + switch (other.getMethodCase()) { + case ASSUMABLE_IAM_ROLE: { + methodCase_ = 1; + method_ = other.method_; + onChanged(); + break; + } + case KUBERNETES_SERVICE_ACCOUNT: { + methodCase_ = 2; + method_ = other.method_; + onChanged(); + break; + } + case METHOD_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.Auth parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int methodCase_ = 0; + private java.lang.Object method_; + public MethodCase + getMethodCase() { + return MethodCase.forNumber( + methodCase_); + } + + public Builder clearMethod() { + methodCase_ = 0; + method_ = null; + onChanged(); + return this; + } + + + /** + * string assumable_iam_role = 1; + */ + public java.lang.String getAssumableIamRole() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 1) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public com.google.protobuf.ByteString + getAssumableIamRoleBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 1) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 1) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder clearAssumableIamRole() { + if (methodCase_ == 1) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string assumable_iam_role = 1; + */ + public Builder setAssumableIamRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 1; + method_ = value; + onChanged(); + return this; + } + + /** + * string kubernetes_service_account = 2; + */ + public java.lang.String getKubernetesServiceAccount() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (methodCase_ == 2) { + method_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public com.google.protobuf.ByteString + getKubernetesServiceAccountBytes() { + java.lang.Object ref = ""; + if (methodCase_ == 2) { + ref = method_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (methodCase_ == 2) { + method_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccount( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + methodCase_ = 2; + method_ = value; + onChanged(); + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder clearKubernetesServiceAccount() { + if (methodCase_ == 2) { + methodCase_ = 0; + method_ = null; + onChanged(); + } + return this; + } + /** + * string kubernetes_service_account = 2; + */ + public Builder setKubernetesServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + methodCase_ = 2; + method_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Auth) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Auth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Auth(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + boolean hasWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); + + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + boolean hasEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); + + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + boolean hasDefaultInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMap getDefaultInputs(); + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); + + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + boolean hasFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMap getFixedInputs(); + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); + + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated java.lang.String getRole(); + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated com.google.protobuf.ByteString + getRoleBytes(); + + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + boolean hasLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.Labels getLabels(); + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); + + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + boolean hasAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.Annotations getAnnotations(); + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); + + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + boolean hasAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); + } + /** + *
+   * User-provided launch plan definition and configuration values.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class LaunchPlanSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) + LaunchPlanSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanSpec.newBuilder() to construct. + private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanSpec() { + role_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanSpec( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (workflowId_ != null) { + subBuilder = workflowId_.toBuilder(); + } + workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowId_); + workflowId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; + if (entityMetadata_ != null) { + subBuilder = entityMetadata_.toBuilder(); + } + entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(entityMetadata_); + entityMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (defaultInputs_ != null) { + subBuilder = defaultInputs_.toBuilder(); + } + defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultInputs_); + defaultInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (fixedInputs_ != null) { + subBuilder = fixedInputs_.toBuilder(); + } + fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fixedInputs_); + fixedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + role_ = s; + break; + } + case 50: { + flyteidl.admin.Common.Labels.Builder subBuilder = null; + if (labels_ != null) { + subBuilder = labels_.toBuilder(); + } + labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labels_); + labels_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + flyteidl.admin.Common.Annotations.Builder subBuilder = null; + if (annotations_ != null) { + subBuilder = annotations_.toBuilder(); + } + annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotations_); + annotations_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; + if (auth_ != null) { + subBuilder = auth_.toBuilder(); + } + auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(auth_); + auth_ = subBuilder.buildPartial(); + } + + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowId_ != null; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + /** + *
+     * Reference to the Workflow template that the launch plan references
+     * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + return getWorkflowId(); + } + + public static final int ENTITY_METADATA_FIELD_NUMBER = 2; + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadata_ != null; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + /** + *
+     * Metadata for the Launch Plan
+     * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + return getEntityMetadata(); + } + + public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.ParameterMap defaultInputs_; + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputs_ != null; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + /** + *
+     * Input values to be passed for the execution
+     * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + return getDefaultInputs(); + } + + public static final int FIXED_INPUTS_FIELD_NUMBER = 4; + private flyteidl.core.Literals.LiteralMap fixedInputs_; + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputs_ != null; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + /** + *
+     * Fixed, non-overridable inputs for the Launch Plan
+     * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + return getFixedInputs(); + } + + public static final int ROLE_FIELD_NUMBER = 5; + private volatile java.lang.Object role_; + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + 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(); + role_ = s; + return s; + } + } + /** + *
+     * String to indicate the role to use to execute the workflow underneath
+     * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 6; + private flyteidl.admin.Common.Labels labels_; + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labels_ != null; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + /** + *
+     * Custom labels to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + return getLabels(); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 7; + private flyteidl.admin.Common.Annotations annotations_; + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotations_ != null; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + /** + *
+     * Custom annotations to be applied to the execution resource.
+     * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + return getAnnotations(); + } + + public static final int AUTH_FIELD_NUMBER = 8; + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public boolean hasAuth() { + return auth_ != null; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + /** + *
+     * Indicates the permission associated with workflow executions triggered with this launch plan.
+     * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + return getAuth(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowId_ != null) { + output.writeMessage(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + output.writeMessage(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + output.writeMessage(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + output.writeMessage(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); + } + if (labels_ != null) { + output.writeMessage(6, getLabels()); + } + if (annotations_ != null) { + output.writeMessage(7, getAnnotations()); + } + if (auth_ != null) { + output.writeMessage(8, getAuth()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowId()); + } + if (entityMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEntityMetadata()); + } + if (defaultInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDefaultInputs()); + } + if (fixedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFixedInputs()); + } + if (!getRoleBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); + } + if (labels_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLabels()); + } + if (annotations_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getAnnotations()); + } + if (auth_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getAuth()); + } + 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.LaunchPlanOuterClass.LaunchPlanSpec)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; + + boolean result = true; + result = result && (hasWorkflowId() == other.hasWorkflowId()); + if (hasWorkflowId()) { + result = result && getWorkflowId() + .equals(other.getWorkflowId()); + } + result = result && (hasEntityMetadata() == other.hasEntityMetadata()); + if (hasEntityMetadata()) { + result = result && getEntityMetadata() + .equals(other.getEntityMetadata()); + } + result = result && (hasDefaultInputs() == other.hasDefaultInputs()); + if (hasDefaultInputs()) { + result = result && getDefaultInputs() + .equals(other.getDefaultInputs()); + } + result = result && (hasFixedInputs() == other.hasFixedInputs()); + if (hasFixedInputs()) { + result = result && getFixedInputs() + .equals(other.getFixedInputs()); + } + result = result && getRole() + .equals(other.getRole()); + result = result && (hasLabels() == other.hasLabels()); + if (hasLabels()) { + result = result && getLabels() + .equals(other.getLabels()); + } + result = result && (hasAnnotations() == other.hasAnnotations()); + if (hasAnnotations()) { + result = result && getAnnotations() + .equals(other.getAnnotations()); + } + result = result && (hasAuth() == other.hasAuth()); + if (hasAuth()) { + result = result && getAuth() + .equals(other.getAuth()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflowId()) { + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + } + if (hasEntityMetadata()) { + hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEntityMetadata().hashCode(); + } + if (hasDefaultInputs()) { + hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultInputs().hashCode(); + } + if (hasFixedInputs()) { + hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getFixedInputs().hashCode(); + } + hash = (37 * hash) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (hasLabels()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabels().hashCode(); + } + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + if (hasAuth()) { + hash = (37 * hash) + AUTH_FIELD_NUMBER; + hash = (53 * hash) + getAuth().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * User-provided launch plan definition and configuration values.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (workflowIdBuilder_ == null) { + workflowId_ = null; + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + role_ = ""; + + if (labelsBuilder_ == null) { + labels_ = null; + } else { + labels_ = null; + labelsBuilder_ = null; + } + if (annotationsBuilder_ == null) { + annotations_ = null; + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + if (authBuilder_ == null) { + auth_ = null; + } else { + auth_ = null; + authBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); + if (workflowIdBuilder_ == null) { + result.workflowId_ = workflowId_; + } else { + result.workflowId_ = workflowIdBuilder_.build(); + } + if (entityMetadataBuilder_ == null) { + result.entityMetadata_ = entityMetadata_; + } else { + result.entityMetadata_ = entityMetadataBuilder_.build(); + } + if (defaultInputsBuilder_ == null) { + result.defaultInputs_ = defaultInputs_; + } else { + result.defaultInputs_ = defaultInputsBuilder_.build(); + } + if (fixedInputsBuilder_ == null) { + result.fixedInputs_ = fixedInputs_; + } else { + result.fixedInputs_ = fixedInputsBuilder_.build(); + } + result.role_ = role_; + if (labelsBuilder_ == null) { + result.labels_ = labels_; + } else { + result.labels_ = labelsBuilder_.build(); + } + if (annotationsBuilder_ == null) { + result.annotations_ = annotations_; + } else { + result.annotations_ = annotationsBuilder_.build(); + } + if (authBuilder_ == null) { + result.auth_ = auth_; + } else { + result.auth_ = authBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; + if (other.hasWorkflowId()) { + mergeWorkflowId(other.getWorkflowId()); + } + if (other.hasEntityMetadata()) { + mergeEntityMetadata(other.getEntityMetadata()); + } + if (other.hasDefaultInputs()) { + mergeDefaultInputs(other.getDefaultInputs()); + } + if (other.hasFixedInputs()) { + mergeFixedInputs(other.getFixedInputs()); + } + if (!other.getRole().isEmpty()) { + role_ = other.role_; + onChanged(); + } + if (other.hasLabels()) { + mergeLabels(other.getLabels()); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + if (other.hasAuth()) { + mergeAuth(other.getAuth()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier workflowId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public boolean hasWorkflowId() { + return workflowIdBuilder_ != null || workflowId_ != null; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { + if (workflowIdBuilder_ == null) { + return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } else { + return workflowIdBuilder_.getMessage(); + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowId_ = value; + onChanged(); + } else { + workflowIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder setWorkflowId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (workflowIdBuilder_ == null) { + workflowId_ = builderForValue.build(); + onChanged(); + } else { + workflowIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (workflowIdBuilder_ == null) { + if (workflowId_ != null) { + workflowId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); + } else { + workflowId_ = value; + } + onChanged(); + } else { + workflowIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public Builder clearWorkflowId() { + if (workflowIdBuilder_ == null) { + workflowId_ = null; + onChanged(); + } else { + workflowId_ = null; + workflowIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { + + onChanged(); + return getWorkflowIdFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { + if (workflowIdBuilder_ != null) { + return workflowIdBuilder_.getMessageOrBuilder(); + } else { + return workflowId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; + } + } + /** + *
+       * Reference to the Workflow template that the launch plan references
+       * 
+ * + * .flyteidl.core.Identifier workflow_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getWorkflowIdFieldBuilder() { + if (workflowIdBuilder_ == null) { + workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getWorkflowId(), + getParentForChildren(), + isClean()); + workflowId_ = null; + } + return workflowIdBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public boolean hasEntityMetadata() { + return entityMetadataBuilder_ != null || entityMetadata_ != null; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { + if (entityMetadataBuilder_ == null) { + return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } else { + return entityMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + entityMetadata_ = value; + onChanged(); + } else { + entityMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder setEntityMetadata( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = builderForValue.build(); + onChanged(); + } else { + entityMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { + if (entityMetadataBuilder_ == null) { + if (entityMetadata_ != null) { + entityMetadata_ = + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); + } else { + entityMetadata_ = value; + } + onChanged(); + } else { + entityMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public Builder clearEntityMetadata() { + if (entityMetadataBuilder_ == null) { + entityMetadata_ = null; + onChanged(); + } else { + entityMetadata_ = null; + entityMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { + + onChanged(); + return getEntityMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { + if (entityMetadataBuilder_ != null) { + return entityMetadataBuilder_.getMessageOrBuilder(); + } else { + return entityMetadata_ == null ? + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; + } + } + /** + *
+       * Metadata for the Launch Plan
+       * 
+ * + * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> + getEntityMetadataFieldBuilder() { + if (entityMetadataBuilder_ == null) { + entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( + getEntityMetadata(), + getParentForChildren(), + isClean()); + entityMetadata_ = null; + } + return entityMetadataBuilder_; + } + + private flyteidl.core.Interface.ParameterMap defaultInputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public boolean hasDefaultInputs() { + return defaultInputsBuilder_ != null || defaultInputs_ != null; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap getDefaultInputs() { + if (defaultInputsBuilder_ == null) { + return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } else { + return defaultInputsBuilder_.getMessage(); + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultInputs_ = value; + onChanged(); + } else { + defaultInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder setDefaultInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = builderForValue.build(); + onChanged(); + } else { + defaultInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { + if (defaultInputsBuilder_ == null) { + if (defaultInputs_ != null) { + defaultInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); + } else { + defaultInputs_ = value; + } + onChanged(); + } else { + defaultInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public Builder clearDefaultInputs() { + if (defaultInputsBuilder_ == null) { + defaultInputs_ = null; + onChanged(); + } else { + defaultInputs_ = null; + defaultInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { + + onChanged(); + return getDefaultInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { + if (defaultInputsBuilder_ != null) { + return defaultInputsBuilder_.getMessageOrBuilder(); + } else { + return defaultInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; + } + } + /** + *
+       * Input values to be passed for the execution
+       * 
+ * + * .flyteidl.core.ParameterMap default_inputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getDefaultInputsFieldBuilder() { + if (defaultInputsBuilder_ == null) { + defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getDefaultInputs(), + getParentForChildren(), + isClean()); + defaultInputs_ = null; + } + return defaultInputsBuilder_; + } + + private flyteidl.core.Literals.LiteralMap fixedInputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public boolean hasFixedInputs() { + return fixedInputsBuilder_ != null || fixedInputs_ != null; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap getFixedInputs() { + if (fixedInputsBuilder_ == null) { + return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } else { + return fixedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fixedInputs_ = value; + onChanged(); + } else { + fixedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder setFixedInputs( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = builderForValue.build(); + onChanged(); + } else { + fixedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { + if (fixedInputsBuilder_ == null) { + if (fixedInputs_ != null) { + fixedInputs_ = + flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); + } else { + fixedInputs_ = value; + } + onChanged(); + } else { + fixedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public Builder clearFixedInputs() { + if (fixedInputsBuilder_ == null) { + fixedInputs_ = null; + onChanged(); + } else { + fixedInputs_ = null; + fixedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { + + onChanged(); + return getFixedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { + if (fixedInputsBuilder_ != null) { + return fixedInputsBuilder_.getMessageOrBuilder(); + } else { + return fixedInputs_ == null ? + flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; + } + } + /** + *
+       * Fixed, non-overridable inputs for the Launch Plan
+       * 
+ * + * .flyteidl.core.LiteralMap fixed_inputs = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getFixedInputsFieldBuilder() { + if (fixedInputsBuilder_ == null) { + fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + getFixedInputs(), + getParentForChildren(), + isClean()); + fixedInputs_ = null; + } + return fixedInputsBuilder_; + } + + private java.lang.Object role_ = ""; + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public com.google.protobuf.ByteString + getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRole( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + role_ = value; + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder clearRole() { + + role_ = getDefaultInstance().getRole(); + onChanged(); + return this; + } + /** + *
+       * String to indicate the role to use to execute the workflow underneath
+       * 
+ * + * string role = 5 [deprecated = true]; + */ + @java.lang.Deprecated public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + role_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Labels labels_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public boolean hasLabels() { + return labelsBuilder_ != null || labels_ != null; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels getLabels() { + if (labelsBuilder_ == null) { + return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } else { + return labelsBuilder_.getMessage(); + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + labels_ = value; + onChanged(); + } else { + labelsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder setLabels( + flyteidl.admin.Common.Labels.Builder builderForValue) { + if (labelsBuilder_ == null) { + labels_ = builderForValue.build(); + onChanged(); + } else { + labelsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder mergeLabels(flyteidl.admin.Common.Labels value) { + if (labelsBuilder_ == null) { + if (labels_ != null) { + labels_ = + flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); + } else { + labels_ = value; + } + onChanged(); + } else { + labelsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public Builder clearLabels() { + if (labelsBuilder_ == null) { + labels_ = null; + onChanged(); + } else { + labels_ = null; + labelsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { + + onChanged(); + return getLabelsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { + if (labelsBuilder_ != null) { + return labelsBuilder_.getMessageOrBuilder(); + } else { + return labels_ == null ? + flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; + } + } + /** + *
+       * Custom labels to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Labels labels = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> + getLabelsFieldBuilder() { + if (labelsBuilder_ == null) { + labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( + getLabels(), + getParentForChildren(), + isClean()); + labels_ = null; + } + return labelsBuilder_; + } + + private flyteidl.admin.Common.Annotations annotations_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public boolean hasAnnotations() { + return annotationsBuilder_ != null || annotations_ != null; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + onChanged(); + } else { + annotationsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder setAnnotations( + flyteidl.admin.Common.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + onChanged(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { + if (annotationsBuilder_ == null) { + if (annotations_ != null) { + annotations_ = + flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); + } else { + annotations_ = value; + } + onChanged(); + } else { + annotationsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public Builder clearAnnotations() { + if (annotationsBuilder_ == null) { + annotations_ = null; + onChanged(); + } else { + annotations_ = null; + annotationsBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { + + onChanged(); + return getAnnotationsFieldBuilder().getBuilder(); + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null ? + flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; + } + } + /** + *
+       * Custom annotations to be applied to the execution resource.
+       * 
+ * + * .flyteidl.admin.Annotations annotations = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> + getAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( + getAnnotations(), + getParentForChildren(), + isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + private flyteidl.admin.LaunchPlanOuterClass.Auth auth_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public boolean hasAuth() { + return authBuilder_ != null || auth_ != null; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { + if (authBuilder_ == null) { + return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } else { + return authBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + auth_ = value; + onChanged(); + } else { + authBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public Builder setAuth( + flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { + if (authBuilder_ == null) { + auth_ = builderForValue.build(); + onChanged(); + } else { + authBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { + if (authBuilder_ == null) { + if (auth_ != null) { + auth_ = + flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); + } else { + auth_ = value; + } + onChanged(); + } else { + authBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public Builder clearAuth() { + if (authBuilder_ == null) { + auth_ = null; + onChanged(); + } else { + auth_ = null; + authBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { + + onChanged(); + return getAuthFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { + if (authBuilder_ != null) { + return authBuilder_.getMessageOrBuilder(); + } else { + return auth_ == null ? + flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; + } + } + /** + *
+       * Indicates the permission associated with workflow executions triggered with this launch plan.
+       * 
+ * + * .flyteidl.admin.Auth auth = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> + getAuthFieldBuilder() { + if (authBuilder_ == null) { + authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( + getAuth(), + getParentForChildren(), + isClean()); + auth_ = null; + } + return authBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + int getStateValue(); + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + boolean hasExpectedInputs(); + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMap getExpectedInputs(); + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); + + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + boolean hasExpectedOutputs(); + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMap getExpectedOutputs(); + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); + + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + } + /** + *
+   * Values computed by the flyte platform after launch plan registration.
+   * These include expected_inputs required to be present in a CreateExecutionRequest
+   * to launch the reference workflow as well timestamp values associated with the launch plan.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class LaunchPlanClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) + LaunchPlanClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanClosure.newBuilder() to construct. + private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanClosure() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 18: { + flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; + if (expectedInputs_ != null) { + subBuilder = expectedInputs_.toBuilder(); + } + expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedInputs_); + expectedInputs_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (expectedOutputs_ != null) { + subBuilder = expectedOutputs_.toBuilder(); + } + expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expectedOutputs_); + expectedOutputs_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_; + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Indicate the Launch plan phase
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.ParameterMap expectedInputs_; + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputs_ != null; + } + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + /** + *
+     * Indicates the set of inputs to execute the Launch plan
+     * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + return getExpectedInputs(); + } + + public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; + private flyteidl.core.Interface.VariableMap expectedOutputs_; + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputs_ != null; + } + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + /** + *
+     * Indicates the set of outputs from the Launch plan
+     * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + return getExpectedOutputs(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the launch plan was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the launch plan was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(1, state_); + } + if (expectedInputs_ != null) { + output.writeMessage(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + output.writeMessage(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + output.writeMessage(4, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(5, getUpdatedAt()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (expectedInputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpectedInputs()); + } + if (expectedOutputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpectedOutputs()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdatedAt()); + } + 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.LaunchPlanOuterClass.LaunchPlanClosure)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; + + boolean result = true; + result = result && state_ == other.state_; + result = result && (hasExpectedInputs() == other.hasExpectedInputs()); + if (hasExpectedInputs()) { + result = result && getExpectedInputs() + .equals(other.getExpectedInputs()); + } + result = result && (hasExpectedOutputs() == other.hasExpectedOutputs()); + if (hasExpectedOutputs()) { + result = result && getExpectedOutputs() + .equals(other.getExpectedOutputs()); + } + result = result && (hasCreatedAt() == other.hasCreatedAt()); + if (hasCreatedAt()) { + result = result && getCreatedAt() + .equals(other.getCreatedAt()); + } + result = result && (hasUpdatedAt() == other.hasUpdatedAt()); + if (hasUpdatedAt()) { + result = result && getUpdatedAt() + .equals(other.getUpdatedAt()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasExpectedInputs()) { + hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedInputs().hashCode(); + } + if (hasExpectedOutputs()) { + hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getExpectedOutputs().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Values computed by the flyte platform after launch plan registration.
+     * These include expected_inputs required to be present in a CreateExecutionRequest
+     * to launch the reference workflow as well timestamp values associated with the launch plan.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + state_ = 0; + + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); + result.state_ = state_; + if (expectedInputsBuilder_ == null) { + result.expectedInputs_ = expectedInputs_; + } else { + result.expectedInputs_ = expectedInputsBuilder_.build(); + } + if (expectedOutputsBuilder_ == null) { + result.expectedOutputs_ = expectedOutputs_; + } else { + result.expectedOutputs_ = expectedOutputsBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasExpectedInputs()) { + mergeExpectedInputs(other.getExpectedInputs()); + } + if (other.hasExpectedOutputs()) { + mergeExpectedOutputs(other.getExpectedOutputs()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Indicate the Launch plan phase
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 1; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Interface.ParameterMap expectedInputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public boolean hasExpectedInputs() { + return expectedInputsBuilder_ != null || expectedInputs_ != null; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap getExpectedInputs() { + if (expectedInputsBuilder_ == null) { + return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } else { + return expectedInputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedInputs_ = value; + onChanged(); + } else { + expectedInputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder setExpectedInputs( + flyteidl.core.Interface.ParameterMap.Builder builderForValue) { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = builderForValue.build(); + onChanged(); + } else { + expectedInputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { + if (expectedInputsBuilder_ == null) { + if (expectedInputs_ != null) { + expectedInputs_ = + flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); + } else { + expectedInputs_ = value; + } + onChanged(); + } else { + expectedInputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public Builder clearExpectedInputs() { + if (expectedInputsBuilder_ == null) { + expectedInputs_ = null; + onChanged(); + } else { + expectedInputs_ = null; + expectedInputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { + + onChanged(); + return getExpectedInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { + if (expectedInputsBuilder_ != null) { + return expectedInputsBuilder_.getMessageOrBuilder(); + } else { + return expectedInputs_ == null ? + flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; + } + } + /** + *
+       * Indicates the set of inputs to execute the Launch plan
+       * 
+ * + * .flyteidl.core.ParameterMap expected_inputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> + getExpectedInputsFieldBuilder() { + if (expectedInputsBuilder_ == null) { + expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( + getExpectedInputs(), + getParentForChildren(), + isClean()); + expectedInputs_ = null; + } + return expectedInputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap expectedOutputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public boolean hasExpectedOutputs() { + return expectedOutputsBuilder_ != null || expectedOutputs_ != null; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap getExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } else { + return expectedOutputsBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedOutputs_ = value; + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder setExpectedOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = builderForValue.build(); + onChanged(); + } else { + expectedOutputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { + if (expectedOutputsBuilder_ == null) { + if (expectedOutputs_ != null) { + expectedOutputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); + } else { + expectedOutputs_ = value; + } + onChanged(); + } else { + expectedOutputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public Builder clearExpectedOutputs() { + if (expectedOutputsBuilder_ == null) { + expectedOutputs_ = null; + onChanged(); + } else { + expectedOutputs_ = null; + expectedOutputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { + + onChanged(); + return getExpectedOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { + if (expectedOutputsBuilder_ != null) { + return expectedOutputsBuilder_.getMessageOrBuilder(); + } else { + return expectedOutputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; + } + } + /** + *
+       * Indicates the set of outputs from the Launch plan
+       * 
+ * + * .flyteidl.core.VariableMap expected_outputs = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getExpectedOutputsFieldBuilder() { + if (expectedOutputsBuilder_ == null) { + expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getExpectedOutputs(), + getParentForChildren(), + isClean()); + expectedOutputs_ = null; + } + return expectedOutputsBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the launch plan was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the launch plan was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + boolean hasSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); + + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.Notification getNotifications(int index); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + int getNotificationsCount(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + java.util.List + getNotificationsOrBuilderList(); + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index); + } + /** + *
+   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+   * the reference workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class LaunchPlanMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) + LaunchPlanMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanMetadata.newBuilder() to construct. + private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanMetadata() { + notifications_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.ScheduleOuterClass.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + notifications_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + notifications_.add( + input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); + 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_ & 0x00000002) == 0x00000002)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + private int bitField0_; + public static final int SCHEDULE_FIELD_NUMBER = 1; + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return schedule_ != null; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + /** + *
+     * Schedule to execute the Launch Plan
+     * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + return getSchedule(); + } + + public static final int NOTIFICATIONS_FIELD_NUMBER = 2; + private java.util.List notifications_; + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + return notifications_; + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + return notifications_.size(); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + return notifications_.get(index); + } + /** + *
+     * List of notifications based on Execution status transitions
+     * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + return notifications_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schedule_ != null) { + output.writeMessage(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + output.writeMessage(2, notifications_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (schedule_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSchedule()); + } + for (int i = 0; i < notifications_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, notifications_.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.LaunchPlanOuterClass.LaunchPlanMetadata)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; + + boolean result = true; + result = result && (hasSchedule() == other.hasSchedule()); + if (hasSchedule()) { + result = result && getSchedule() + .equals(other.getSchedule()); + } + result = result && getNotificationsList() + .equals(other.getNotificationsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSchedule()) { + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + } + if (getNotificationsCount() > 0) { + hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
+     * the reference workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNotificationsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (scheduleBuilder_ == null) { + schedule_ = null; + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + notificationsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (scheduleBuilder_ == null) { + result.schedule_ = schedule_; + } else { + result.schedule_ = scheduleBuilder_.build(); + } + if (notificationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + notifications_ = java.util.Collections.unmodifiableList(notifications_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.notifications_ = notifications_; + } else { + result.notifications_ = notificationsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; + if (other.hasSchedule()) { + mergeSchedule(other.getSchedule()); + } + if (notificationsBuilder_ == null) { + if (!other.notifications_.isEmpty()) { + if (notifications_.isEmpty()) { + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNotificationsIsMutable(); + notifications_.addAll(other.notifications_); + } + onChanged(); + } + } else { + if (!other.notifications_.isEmpty()) { + if (notificationsBuilder_.isEmpty()) { + notificationsBuilder_.dispose(); + notificationsBuilder_ = null; + notifications_ = other.notifications_; + bitField0_ = (bitField0_ & ~0x00000002); + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; + } else { + notificationsBuilder_.addAllMessages(other.notifications_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.admin.ScheduleOuterClass.Schedule schedule_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public boolean hasSchedule() { + return scheduleBuilder_ != null || schedule_ != null; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { + if (scheduleBuilder_ == null) { + return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } else { + return scheduleBuilder_.getMessage(); + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + onChanged(); + } else { + scheduleBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder setSchedule( + flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { + if (scheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + onChanged(); + } else { + scheduleBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { + if (scheduleBuilder_ == null) { + if (schedule_ != null) { + schedule_ = + flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + } else { + schedule_ = value; + } + onChanged(); + } else { + scheduleBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public Builder clearSchedule() { + if (scheduleBuilder_ == null) { + schedule_ = null; + onChanged(); + } else { + schedule_ = null; + scheduleBuilder_ = null; + } + + return this; + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { + + onChanged(); + return getScheduleFieldBuilder().getBuilder(); + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { + if (scheduleBuilder_ != null) { + return scheduleBuilder_.getMessageOrBuilder(); + } else { + return schedule_ == null ? + flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; + } + } + /** + *
+       * Schedule to execute the Launch Plan
+       * 
+ * + * .flyteidl.admin.Schedule schedule = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> + getScheduleFieldBuilder() { + if (scheduleBuilder_ == null) { + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); + schedule_ = null; + } + return scheduleBuilder_; + } + + private java.util.List notifications_ = + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + notifications_ = new java.util.ArrayList(notifications_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; + + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List getNotificationsList() { + if (notificationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(notifications_); + } else { + return notificationsBuilder_.getMessageList(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public int getNotificationsCount() { + if (notificationsBuilder_ == null) { + return notifications_.size(); + } else { + return notificationsBuilder_.getCount(); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification getNotifications(int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); + } else { + return notificationsBuilder_.getMessage(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.set(index, value); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder setNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.set(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications(flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(value); + onChanged(); + } else { + notificationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification value) { + if (notificationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationsIsMutable(); + notifications_.add(index, value); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addNotifications( + int index, flyteidl.admin.Common.Notification.Builder builderForValue) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(index, builderForValue.build()); + onChanged(); + } else { + notificationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder addAllNotifications( + java.lang.Iterable values) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); + onChanged(); + } else { + notificationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder clearNotifications() { + if (notificationsBuilder_ == null) { + notifications_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + notificationsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public Builder removeNotifications(int index) { + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.remove(index); + onChanged(); + } else { + notificationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( + int index) { + if (notificationsBuilder_ == null) { + return notifications_.get(index); } else { + return notificationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsOrBuilderList() { + if (notificationsBuilder_ != null) { + return notificationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(notifications_); + } + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( + int index) { + return getNotificationsFieldBuilder().addBuilder( + index, flyteidl.admin.Common.Notification.getDefaultInstance()); + } + /** + *
+       * List of notifications based on Execution status transitions
+       * 
+ * + * repeated .flyteidl.admin.Notification notifications = 2; + */ + public java.util.List + getNotificationsBuilderList() { + return getNotificationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> + getNotificationsFieldBuilder() { + if (notificationsBuilder_ == null) { + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( + notifications_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + notifications_ = null; + } + return notificationsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + int getStateValue(); + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); + } + /** + *
+   * Request to set the referenced launch plan state to the configured value.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class LaunchPlanUpdateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) + LaunchPlanUpdateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateRequest.newBuilder() to construct. + private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateRequest() { + state_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + state_ = rawValue; + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Identifier of launch plan for which to change state.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_; + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+     * Desired state to apply to the launch plan.
+     * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); + } + 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && state_ == other.state_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request to set the referenced launch plan state to the configured value.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + state_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.state_ = state_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Identifier of launch plan for which to change state.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private int state_ = 0; + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public int getStateValue() { + return state_; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); + return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Desired state to apply to the launch plan.
+       * 
+ * + * .flyteidl.admin.LaunchPlanState state = 2; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanUpdateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanUpdateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LaunchPlanUpdateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class LaunchPlanUpdateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) + LaunchPlanUpdateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LaunchPlanUpdateResponse.newBuilder() to construct. + private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LaunchPlanUpdateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LaunchPlanUpdateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { + return super.equals(obj); + } + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Purposefully empty, may be populated in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); + } + + // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { + return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { + if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.LaunchPlanUpdateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); + } + + public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LaunchPlanUpdateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LaunchPlanUpdateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlan_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Auth_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Auth_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n flyteidl/admin/launch_plan.proto\022\016flyt" + + "eidl.admin\032\034flyteidl/core/literals.proto" + + "\032\036flyteidl/core/identifier.proto\032\035flytei" + + "dl/core/interface.proto\032\035flyteidl/admin/" + + "schedule.proto\032\033flyteidl/admin/common.pr" + + "oto\032\037google/protobuf/timestamp.proto\"n\n\027" + + "LaunchPlanCreateRequest\022%\n\002id\030\001 \001(\0132\031.fl" + + "yteidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.f" + + "lyteidl.admin.LaunchPlanSpec\"\032\n\030LaunchPl" + + "anCreateResponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 " + + "\001(\0132\031.flyteidl.core.Identifier\022,\n\004spec\030\002" + + " \001(\0132\036.flyteidl.admin.LaunchPlanSpec\0222\n\007" + + "closure\030\003 \001(\0132!.flyteidl.admin.LaunchPla" + + "nClosure\"Q\n\016LaunchPlanList\0220\n\014launch_pla" + + "ns\030\001 \003(\0132\032.flyteidl.admin.LaunchPlan\022\r\n\005" + + "token\030\002 \001(\t\"T\n\004Auth\022\034\n\022assumable_iam_rol" + + "e\030\001 \001(\tH\000\022$\n\032kubernetes_service_account\030" + + "\002 \001(\tH\000B\010\n\006method\"\363\002\n\016LaunchPlanSpec\022.\n\013" + + "workflow_id\030\001 \001(\0132\031.flyteidl.core.Identi" + + "fier\022;\n\017entity_metadata\030\002 \001(\0132\".flyteidl" + + ".admin.LaunchPlanMetadata\0223\n\016default_inp" + + "uts\030\003 \001(\0132\033.flyteidl.core.ParameterMap\022/" + + "\n\014fixed_inputs\030\004 \001(\0132\031.flyteidl.core.Lit" + + "eralMap\022\020\n\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(" + + "\0132\026.flyteidl.admin.Labels\0220\n\013annotations" + + "\030\007 \001(\0132\033.flyteidl.admin.Annotations\022\"\n\004a" + + "uth\030\010 \001(\0132\024.flyteidl.admin.Auth\"\217\002\n\021Laun" + + "chPlanClosure\022.\n\005state\030\001 \001(\0162\037.flyteidl." + + "admin.LaunchPlanState\0224\n\017expected_inputs" + + "\030\002 \001(\0132\033.flyteidl.core.ParameterMap\0224\n\020e" + + "xpected_outputs\030\003 \001(\0132\032.flyteidl.core.Va" + + "riableMap\022.\n\ncreated_at\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022.\n\nupdated_at\030\005 \001(\0132\032." + + "google.protobuf.Timestamp\"u\n\022LaunchPlanM" + + "etadata\022*\n\010schedule\030\001 \001(\0132\030.flyteidl.adm" + + "in.Schedule\0223\n\rnotifications\030\002 \003(\0132\034.fly" + + "teidl.admin.Notification\"p\n\027LaunchPlanUp" + + "dateRequest\022%\n\002id\030\001 \001(\0132\031.flyteidl.core." + + "Identifier\022.\n\005state\030\002 \001(\0162\037.flyteidl.adm" + + "in.LaunchPlanState\"\032\n\030LaunchPlanUpdateRe" + + "sponse*+\n\017LaunchPlanState\022\014\n\010INACTIVE\020\000\022" + + "\n\n\006ACTIVE\020\001B3Z1github.com/lyft/flyteidl/" + + "gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.admin.ScheduleOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_LaunchPlan_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlan_descriptor, + new java.lang.String[] { "Id", "Spec", "Closure", }); + internal_static_flyteidl_admin_LaunchPlanList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanList_descriptor, + new java.lang.String[] { "LaunchPlans", "Token", }); + internal_static_flyteidl_admin_Auth_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_Auth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Auth_descriptor, + new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", "Method", }); + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, + new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", }); + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, + new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, + new java.lang.String[] { "Schedule", "Notifications", }); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, + new java.lang.String[] { "Id", "State", }); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, + new java.lang.String[] { }); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.admin.ScheduleOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java new file mode 100644 index 0000000000..49022f9906 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java @@ -0,0 +1,10127 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/node_execution.proto + +package flyteidl.admin; + +public final class NodeExecutionOuterClass { + private NodeExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface NodeExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class NodeExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) + NodeExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetRequest.newBuilder() to construct. + private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.NodeExecutionOuterClass.NodeExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 message used to fetch a single node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + boolean hasWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class NodeExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) + NodeExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionListRequest.newBuilder() to construct. + private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionListRequest() { + limit_ = 0; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionListRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (workflowExecutionId_ != null) { + subBuilder = workflowExecutionId_.toBuilder(); + } + workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflowExecutionId_); + workflowExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionId_ != null; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + /** + *
+     * Indicates the workflow execution to filter by.
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + return getWorkflowExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflowExecutionId_ != null) { + output.writeMessage(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflowExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflowExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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.NodeExecutionOuterClass.NodeExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; + + boolean result = true; + result = result && (hasWorkflowExecutionId() == other.hasWorkflowExecutionId()); + if (hasWorkflowExecutionId()) { + result = result && getWorkflowExecutionId() + .equals(other.getWorkflowExecutionId()); + } + result = result && (getLimit() + == other.getLimit()); + result = result && getToken() + .equals(other.getToken()); + result = result && getFilters() + .equals(other.getFilters()); + result = result && (hasSortBy() == other.hasSortBy()); + if (hasSortBy()) { + result = result && getSortBy() + .equals(other.getSortBy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflowExecutionId()) { + hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); + if (workflowExecutionIdBuilder_ == null) { + result.workflowExecutionId_ = workflowExecutionId_; + } else { + result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; + if (other.hasWorkflowExecutionId()) { + mergeWorkflowExecutionId(other.getWorkflowExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public boolean hasWorkflowExecutionId() { + return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } else { + return workflowExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflowExecutionId_ = value; + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder setWorkflowExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = builderForValue.build(); + onChanged(); + } else { + workflowExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (workflowExecutionIdBuilder_ == null) { + if (workflowExecutionId_ != null) { + workflowExecutionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); + } else { + workflowExecutionId_ = value; + } + onChanged(); + } else { + workflowExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public Builder clearWorkflowExecutionId() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionId_ = null; + onChanged(); + } else { + workflowExecutionId_ = null; + workflowExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { + + onChanged(); + return getWorkflowExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { + if (workflowExecutionIdBuilder_ != null) { + return workflowExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return workflowExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; + } + } + /** + *
+       * Indicates the workflow execution to filter by.
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWorkflowExecutionIdFieldBuilder() { + if (workflowExecutionIdBuilder_ == null) { + workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWorkflowExecutionId(), + getParentForChildren(), + isClean()); + workflowExecutionId_ = null; + } + return workflowExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionForTaskListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + boolean hasTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class NodeExecutionForTaskListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + NodeExecutionForTaskListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionForTaskListRequest.newBuilder() to construct. + private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionForTaskListRequest() { + limit_ = 0; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionForTaskListRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (taskExecutionId_ != null) { + subBuilder = taskExecutionId_.toBuilder(); + } + taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskExecutionId_); + taskExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + return getTaskExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskExecutionId_ != null) { + output.writeMessage(1, getTaskExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; + + boolean result = true; + result = result && (hasTaskExecutionId() == other.hasTaskExecutionId()); + if (hasTaskExecutionId()) { + result = result && getTaskExecutionId() + .equals(other.getTaskExecutionId()); + } + result = result && (getLimit() + == other.getLimit()); + result = result && getToken() + .equals(other.getToken()); + result = result && getFilters() + .equals(other.getFilters()); + result = result && (hasSortBy() == other.hasSortBy()); + if (hasSortBy()) { + result = result && getSortBy() + .equals(other.getSortBy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskExecutionId()) { + hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); + if (taskExecutionIdBuilder_ == null) { + result.taskExecutionId_ = taskExecutionId_; + } else { + result.taskExecutionId_ = taskExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; + if (other.hasTaskExecutionId()) { + mergeTaskExecutionId(other.getTaskExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public boolean hasTaskExecutionId() { + return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } else { + return taskExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskExecutionId_ = value; + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder setTaskExecutionId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = builderForValue.build(); + onChanged(); + } else { + taskExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (taskExecutionIdBuilder_ == null) { + if (taskExecutionId_ != null) { + taskExecutionId_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); + } else { + taskExecutionId_ = value; + } + onChanged(); + } else { + taskExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public Builder clearTaskExecutionId() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionId_ = null; + onChanged(); + } else { + taskExecutionId_ = null; + taskExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { + + onChanged(); + return getTaskExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { + if (taskExecutionIdBuilder_ != null) { + return taskExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return taskExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getTaskExecutionIdFieldBuilder() { + if (taskExecutionIdBuilder_ == null) { + taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getTaskExecutionId(), + getParentForChildren(), + isClean()); + taskExecutionId_ = null; + } + return taskExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionForTaskListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionForTaskListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Encapsulates all details for a single node execution entity.
+   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+   * sub-workflow, or even a separate child-workflow execution.
+   * The same task can be called repeatedly in a single workflow but each node is unique.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Uniquely identifies an individual node execution.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Computed results associated with this node execution.
+     * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + 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.NodeExecutionOuterClass.NodeExecution)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && (hasClosure() == other.hasClosure()); + if (hasClosure()) { + result = result && getClosure() + .equals(other.getClosure()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulates all details for a single node execution entity.
+     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
+     * sub-workflow, or even a separate child-workflow execution.
+     * The same task can be called repeatedly in a single workflow but each node is unique.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecution) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Uniquely identifies an individual node execution.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Computed results associated with this node execution.
+       * 
+ * + * .flyteidl.admin.NodeExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + int getNodeExecutionsCount(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + java.util.List + getNodeExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + 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(); + } + /** + *
+   * Request structure to retrieve a list of node execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class NodeExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) + NodeExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionList.newBuilder() to construct. + private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionList() { + nodeExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nodeExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodeExecutions_.add( + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + private int bitField0_; + public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List nodeExecutions_; + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + return nodeExecutions_; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + return nodeExecutions_.size(); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + return nodeExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + return nodeExecutions_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nodeExecutions_.size(); i++) { + output.writeMessage(1, nodeExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodeExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeExecutions_.get(i)); + } + 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.NodeExecutionOuterClass.NodeExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; + + boolean result = true; + result = result && getNodeExecutionsList() + .equals(other.getNodeExecutionsList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodeExecutionsCount() > 0) { + hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionsList().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.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request structure to retrieve a list of node execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodeExecutionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodeExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodeExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodeExecutions_ = nodeExecutions_; + } else { + result.nodeExecutions_ = nodeExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; + if (nodeExecutionsBuilder_ == null) { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutions_.isEmpty()) { + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.addAll(other.nodeExecutions_); + } + onChanged(); + } + } else { + if (!other.nodeExecutions_.isEmpty()) { + if (nodeExecutionsBuilder_.isEmpty()) { + nodeExecutionsBuilder_.dispose(); + nodeExecutionsBuilder_ = null; + nodeExecutions_ = other.nodeExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + nodeExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeExecutionsFieldBuilder() : null; + } else { + nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodeExecutions_ = + java.util.Collections.emptyList(); + private void ensureNodeExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List getNodeExecutionsList() { + if (nodeExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } else { + return nodeExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public int getNodeExecutionsCount() { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.size(); + } else { + return nodeExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); + } else { + return nodeExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder setNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { + if (nodeExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, value); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addNodeExecutions( + int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder addAllNodeExecutions( + java.lang.Iterable values) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeExecutions_); + onChanged(); + } else { + nodeExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder clearNodeExecutions() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodeExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public Builder removeNodeExecutions(int index) { + if (nodeExecutionsBuilder_ == null) { + ensureNodeExecutionsIsMutable(); + nodeExecutions_.remove(index); + onChanged(); + } else { + nodeExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( + int index) { + if (nodeExecutionsBuilder_ == null) { + return nodeExecutions_.get(index); } else { + return nodeExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsOrBuilderList() { + if (nodeExecutionsBuilder_ != null) { + return nodeExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeExecutions_); + } + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { + return getNodeExecutionsFieldBuilder().addBuilder( + flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( + int index) { + return getNodeExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.NodeExecution node_executions = 1; + */ + public java.util.List + getNodeExecutionsBuilderList() { + return getNodeExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> + getNodeExecutionsFieldBuilder() { + if (nodeExecutionsBuilder_ == null) { + nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( + nodeExecutions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + nodeExecutions_ = null; + } + return nodeExecutionsBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + * string output_uri = 1; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); + } + /** + *
+   * Container for node execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class NodeExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) + NodeExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionClosure.newBuilder() to construct. + private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionClosure() { + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(1), + ERROR(2), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the Node
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this node execution.
+     * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int STARTED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the node execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the node execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the node execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the node execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (startedAt_ != null) { + output.writeMessage(4, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(5, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(6, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdatedAt()); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); + } + 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.NodeExecutionOuterClass.NodeExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; + + boolean result = true; + result = result && phase_ == other.phase_; + result = result && (hasStartedAt() == other.hasStartedAt()); + if (hasStartedAt()) { + result = result && getStartedAt() + .equals(other.getStartedAt()); + } + result = result && (hasDuration() == other.hasDuration()); + if (hasDuration()) { + result = result && getDuration() + .equals(other.getDuration()); + } + result = result && (hasCreatedAt() == other.hasCreatedAt()); + if (hasCreatedAt()) { + result = result && getCreatedAt() + .equals(other.getCreatedAt()); + } + result = result && (hasUpdatedAt() == other.hasUpdatedAt()); + if (hasUpdatedAt()) { + result = result && getUpdatedAt() + .equals(other.getUpdatedAt()); + } + result = result && getOutputResultCase().equals( + other.getOutputResultCase()); + if (!result) return false; + switch (outputResultCase_) { + case 1: + result = result && getOutputUri() + .equals(other.getOutputUri()); + break; + case 2: + result = result && getError() + .equals(other.getError()); + break; + case 0: + default: + } + result = result && getTargetMetadataCase().equals( + other.getTargetMetadataCase()); + if (!result) return false; + switch (targetMetadataCase_) { + case 8: + result = result && getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Container for node execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + phase_ = 0; + + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.phase_ = phase_; + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TARGETMETADATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + /** + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string output_uri = 1; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + * string output_uri = 1; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + * string output_uri = 1; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the Node
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this node execution.
+       * 
+ * + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the node execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the node execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the node execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the node execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( + (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Metadata for a WorkflowNode
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTIONID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + 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.NodeExecutionOuterClass.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; + + boolean result = true; + result = result && (hasExecutionId() == other.hasExecutionId()); + if (hasExecutionId()) { + result = result && getExecutionId() + .equals(other.getExecutionId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Metadata for a WorkflowNode
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class NodeExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) + NodeExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataRequest.newBuilder() to construct. + private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the node execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the node execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class NodeExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) + NodeExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionGetDataResponse.newBuilder() to construct. + private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionGetDataResponse( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of node execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; + + boolean result = true; + result = result && (hasInputs() == other.hasInputs()); + if (hasInputs()) { + result = result && getInputs() + .equals(other.getInputs()); + } + result = result && (hasOutputs() == other.hasOutputs()); + if (hasOutputs()) { + result = result && getOutputs() + .equals(other.getOutputs()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { + if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of node execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.NodeExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); + } + + public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionGetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#flyteidl/admin/node_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/dura" + + "tion.proto\"M\n\027NodeExecutionGetRequest\0222\n" + + "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + + "dentifier\"\273\001\n\030NodeExecutionListRequest\022I" + + "\n\025workflow_execution_id\030\001 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier\022\r\n\005lim" + + "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + + "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + + "\272\001\n\037NodeExecutionForTaskListRequest\022A\n\021t" + + "ask_execution_id\030\001 \001(\0132&.flyteidl.core.T" + + "askExecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n" + + "\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by" + + "\030\005 \001(\0132\024.flyteidl.admin.Sort\"\215\001\n\rNodeExe" + + "cution\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + + "xecutionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n" + + "\007closure\030\003 \001(\0132$.flyteidl.admin.NodeExec" + + "utionClosure\"Z\n\021NodeExecutionList\0226\n\017nod" + + "e_executions\030\001 \003(\0132\035.flyteidl.admin.Node" + + "Execution\022\r\n\005token\030\002 \001(\t\"\270\003\n\024NodeExecuti" + + "onClosure\022\024\n\noutput_uri\030\001 \001(\tH\000\022.\n\005error" + + "\030\002 \001(\0132\035.flyteidl.core.ExecutionErrorH\000\022" + + "1\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExecu" + + "tion.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.google." + + "protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031.g" + + "oogle.protobuf.Duration\022.\n\ncreated_at\030\006 " + + "\001(\0132\032.google.protobuf.Timestamp\022.\n\nupdat" + + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + + "F\n\026workflow_node_metadata\030\010 \001(\0132$.flytei" + + "dl.admin.WorkflowNodeMetadataH\001B\017\n\routpu" + + "t_resultB\021\n\017target_metadata\"W\n\024WorkflowN" + + "odeMetadata\022?\n\013executionId\030\001 \001(\0132*.flyte" + + "idl.core.WorkflowExecutionIdentifier\"Q\n\033" + + "NodeExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132" + + "&.flyteidl.core.NodeExecutionIdentifier\"" + + "q\n\034NodeExecutionGetDataResponse\022\'\n\006input" + + "s\030\001 \001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outp" + + "uts\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1gi" + + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + + "l/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, + new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, + new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", }); + internal_static_flyteidl_admin_NodeExecutionList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionList_descriptor, + new java.lang.String[] { "NodeExecutions", "Token", }); + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Notification.java b/flyteidl/gen/pb-java/flyteidl/admin/Notification.java new file mode 100644 index 0000000000..636e148deb --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/Notification.java @@ -0,0 +1,1301 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/notification.proto + +package flyteidl.admin; + +public final class Notification { + private Notification() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EmailMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.util.List + getRecipientsEmailList(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + int getRecipientsEmailCount(); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + java.lang.String getRecipientsEmail(int index); + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + com.google.protobuf.ByteString + getRecipientsEmailBytes(int index); + + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + java.lang.String getSenderEmail(); + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + com.google.protobuf.ByteString + getSenderEmailBytes(); + + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + java.lang.String getSubjectLine(); + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + com.google.protobuf.ByteString + getSubjectLineBytes(); + + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + java.lang.String getBody(); + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + com.google.protobuf.ByteString + getBodyBytes(); + } + /** + *
+   * Represents the Email object that is sent to a publisher/subscriber
+   * to forward the notification.
+   * Note: This is internal to Admin and doesn't need to be exposed to other components.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class EmailMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) + EmailMessageOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmailMessage.newBuilder() to construct. + private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmailMessage() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + senderEmail_ = ""; + subjectLine_ = ""; + body_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmailMessage( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + recipientsEmail_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + senderEmail_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subjectLine_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + body_ = s; + 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) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + private int bitField0_; + public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList recipientsEmail_; + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_; + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+     * The list of email addresses to receive an email with the content populated in the other fields.
+     * Currently, each email recipient will receive its own email.
+     * This populates the TO field.
+     * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + + public static final int SENDER_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object senderEmail_; + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + 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(); + senderEmail_ = s; + return s; + } + } + /** + *
+     * The email of the sender.
+     * This populates the FROM field.
+     * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_LINE_FIELD_NUMBER = 3; + private volatile java.lang.Object subjectLine_; + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + 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(); + subjectLine_ = s; + return s; + } + } + /** + *
+     * The content of the subject line.
+     * This populates the SUBJECT field.
+     * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BODY_FIELD_NUMBER = 4; + private volatile java.lang.Object body_; + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + 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(); + body_ = s; + return s; + } + } + /** + *
+     * The content of the email body.
+     * This populates the BODY field.
+     * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < recipientsEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); + } + if (!getSenderEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < recipientsEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getRecipientsEmailList().size(); + } + if (!getSenderEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); + } + if (!getSubjectLineBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); + } + if (!getBodyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); + } + 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.Notification.EmailMessage)) { + return super.equals(obj); + } + flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; + + boolean result = true; + result = result && getRecipientsEmailList() + .equals(other.getRecipientsEmailList()); + result = result && getSenderEmail() + .equals(other.getSenderEmail()); + result = result && getSubjectLine() + .equals(other.getSubjectLine()); + result = result && getBody() + .equals(other.getBody()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRecipientsEmailCount() > 0) { + hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsEmailList().hashCode(); + } + hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getSenderEmail().hashCode(); + hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getSubjectLine().hashCode(); + hash = (37 * hash) + BODY_FIELD_NUMBER; + hash = (53 * hash) + getBody().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.Notification.EmailMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.Notification.EmailMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents the Email object that is sent to a publisher/subscriber
+     * to forward the notification.
+     * Note: This is internal to Admin and doesn't need to be exposed to other components.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.EmailMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) + flyteidl.admin.Notification.EmailMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); + } + + // Construct using flyteidl.admin.Notification.EmailMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + senderEmail_ = ""; + + subjectLine_ = ""; + + body_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; + } + + public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); + } + + public flyteidl.admin.Notification.EmailMessage build() { + flyteidl.admin.Notification.EmailMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.Notification.EmailMessage buildPartial() { + flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.recipientsEmail_ = recipientsEmail_; + result.senderEmail_ = senderEmail_; + result.subjectLine_ = subjectLine_; + result.body_ = body_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.Notification.EmailMessage) { + return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { + if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; + if (!other.recipientsEmail_.isEmpty()) { + if (recipientsEmail_.isEmpty()) { + recipientsEmail_ = other.recipientsEmail_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRecipientsEmailIsMutable(); + recipientsEmail_.addAll(other.recipientsEmail_); + } + onChanged(); + } + if (!other.getSenderEmail().isEmpty()) { + senderEmail_ = other.senderEmail_; + onChanged(); + } + if (!other.getSubjectLine().isEmpty()) { + subjectLine_ = other.subjectLine_; + onChanged(); + } + if (!other.getBody().isEmpty()) { + body_ = other.body_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.Notification.EmailMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRecipientsEmailIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ProtocolStringList + getRecipientsEmailList() { + return recipientsEmail_.getUnmodifiableView(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public int getRecipientsEmailCount() { + return recipientsEmail_.size(); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public java.lang.String getRecipientsEmail(int index) { + return recipientsEmail_.get(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public com.google.protobuf.ByteString + getRecipientsEmailBytes(int index) { + return recipientsEmail_.getByteString(index); + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder setRecipientsEmail( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addAllRecipientsEmail( + java.lang.Iterable values) { + ensureRecipientsEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recipientsEmail_); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder clearRecipientsEmail() { + recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * The list of email addresses to receive an email with the content populated in the other fields.
+       * Currently, each email recipient will receive its own email.
+       * This populates the TO field.
+       * 
+ * + * repeated string recipients_email = 1; + */ + public Builder addRecipientsEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRecipientsEmailIsMutable(); + recipientsEmail_.add(value); + onChanged(); + return this; + } + + private java.lang.Object senderEmail_ = ""; + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public java.lang.String getSenderEmail() { + java.lang.Object ref = senderEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + senderEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public com.google.protobuf.ByteString + getSenderEmailBytes() { + java.lang.Object ref = senderEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + senderEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + senderEmail_ = value; + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder clearSenderEmail() { + + senderEmail_ = getDefaultInstance().getSenderEmail(); + onChanged(); + return this; + } + /** + *
+       * The email of the sender.
+       * This populates the FROM field.
+       * 
+ * + * string sender_email = 2; + */ + public Builder setSenderEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + senderEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object subjectLine_ = ""; + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public java.lang.String getSubjectLine() { + java.lang.Object ref = subjectLine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectLine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public com.google.protobuf.ByteString + getSubjectLineBytes() { + java.lang.Object ref = subjectLine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLine( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subjectLine_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder clearSubjectLine() { + + subjectLine_ = getDefaultInstance().getSubjectLine(); + onChanged(); + return this; + } + /** + *
+       * The content of the subject line.
+       * This populates the SUBJECT field.
+       * 
+ * + * string subject_line = 3; + */ + public Builder setSubjectLineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subjectLine_ = value; + onChanged(); + return this; + } + + private java.lang.Object body_ = ""; + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public com.google.protobuf.ByteString + getBodyBytes() { + java.lang.Object ref = body_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + body_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBody( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + body_ = value; + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder clearBody() { + + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + /** + *
+       * The content of the email body.
+       * This populates the BODY field.
+       * 
+ * + * string body = 4; + */ + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + body_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.EmailMessage) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); + } + + public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EmailMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmailMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_EmailMessage_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n!flyteidl/admin/notification.proto\022\016fly" + + "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + + "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + + "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB3Z1githu" + + "b.com/lyft/flyteidl/gen/pb-go/flyteidl/a" + + "dminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_EmailMessage_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_EmailMessage_descriptor, + new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java new file mode 100644 index 0000000000..b060eeccec --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java @@ -0,0 +1,4017 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/project.proto + +package flyteidl.admin; + +public final class ProjectOuterClass { + private ProjectOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DomainOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Namespace within a project commonly used to differentiate between different service instances.
+   * e.g. "production", "development", etc.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Domain extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) + DomainOrBuilder { + private static final long serialVersionUID = 0L; + // Use Domain.newBuilder() to construct. + private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Domain() { + id_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Domain( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + 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.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + 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.ProjectOuterClass.Domain)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; + + boolean result = true; + result = result && getId() + .equals(other.getId()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.Domain prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Namespace within a project commonly used to differentiate between different service instances.
+     * e.g. "production", "development", etc.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Domain} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) + flyteidl.admin.ProjectOuterClass.DomainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Domain.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + id_ = ""; + + name_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; + } + + public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); + } + + public flyteidl.admin.ProjectOuterClass.Domain build() { + flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { + flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); + result.id_ = id_; + result.name_ = name_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Domain) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { + if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Domain parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Domain) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); + } + + public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Domain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Domain(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + */ + java.lang.String getId(); + /** + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + java.lang.String getName(); + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + int getDomainsCount(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + java.util.List + getDomainsOrBuilderList(); + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index); + } + /** + *
+   * Top-level namespace used to classify different entities like workflows and executions.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Project extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) + ProjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use Project.newBuilder() to construct. + private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Project() { + id_ = ""; + name_ = ""; + domains_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Project( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + domains_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + domains_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); + 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) == 0x00000004)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * Display name.
+     * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAINS_FIELD_NUMBER = 3; + private java.util.List domains_; + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + return domains_.get(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + return domains_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(3, domains_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, domains_.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.ProjectOuterClass.Project)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; + + boolean result = true; + result = result && getId() + .equals(other.getId()); + result = result && getName() + .equals(other.getName()); + result = result && getDomainsList() + .equals(other.getDomainsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Project parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.Project prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Top-level namespace used to classify different entities like workflows and executions.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Project} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDomainsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + id_ = ""; + + name_ = ""; + + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + domainsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; + } + + public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); + } + + public flyteidl.admin.ProjectOuterClass.Project build() { + flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ProjectOuterClass.Project buildPartial() { + flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + result.name_ = name_; + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Project) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { + if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDomainsFieldBuilder() : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Project parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Display name.
+       * 
+ * + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.util.List domains_ = + java.util.Collections.emptyList(); + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; + + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder setDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addDomains( + int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( + int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( + int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( + int index) { + return getDomainsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Domain domains = 3; + */ + public java.util.List + getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( + domains_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + domains_ = null; + } + return domainsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Project) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); + } + + public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Project parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Project(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectsOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProjects(int index); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + int getProjectsCount(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + java.util.List + getProjectsOrBuilderList(); + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.admin.Projects} + */ + public static final class Projects extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) + ProjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Projects.newBuilder() to construct. + private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Projects() { + projects_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Projects( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + projects_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + projects_.add( + input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry)); + 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) == 0x00000001)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + public static final int PROJECTS_FIELD_NUMBER = 1; + private java.util.List projects_; + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + return projects_; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + return projects_.size(); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + return projects_.get(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + return projects_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < projects_.size(); i++) { + output.writeMessage(1, projects_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < projects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, projects_.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.ProjectOuterClass.Projects)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; + + boolean result = true; + result = result && getProjectsList() + .equals(other.getProjectsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getProjectsCount() > 0) { + hash = (37 * hash) + PROJECTS_FIELD_NUMBER; + hash = (53 * hash) + getProjectsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.Projects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.Projects} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) + flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProjectsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + projectsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; + } + + public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); + } + + public flyteidl.admin.ProjectOuterClass.Projects build() { + flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { + flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); + int from_bitField0_ = bitField0_; + if (projectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + projects_ = java.util.Collections.unmodifiableList(projects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projects_ = projects_; + } else { + result.projects_ = projectsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.Projects) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { + if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; + if (projectsBuilder_ == null) { + if (!other.projects_.isEmpty()) { + if (projects_.isEmpty()) { + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectsIsMutable(); + projects_.addAll(other.projects_); + } + onChanged(); + } + } else { + if (!other.projects_.isEmpty()) { + if (projectsBuilder_.isEmpty()) { + projectsBuilder_.dispose(); + projectsBuilder_ = null; + projects_ = other.projects_; + bitField0_ = (bitField0_ & ~0x00000001); + projectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getProjectsFieldBuilder() : null; + } else { + projectsBuilder_.addAllMessages(other.projects_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.Projects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List projects_ = + java.util.Collections.emptyList(); + private void ensureProjectsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + projects_ = new java.util.ArrayList(projects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; + + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List getProjectsList() { + if (projectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(projects_); + } else { + return projectsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public int getProjectsCount() { + if (projectsBuilder_ == null) { + return projects_.size(); + } else { + return projectsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); + } else { + return projectsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.set(index, value); + onChanged(); + } else { + projectsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder setProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.set(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(value); + onChanged(); + } else { + projectsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project value) { + if (projectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectsIsMutable(); + projects_.add(index, value); + onChanged(); + } else { + projectsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addProjects( + int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.add(index, builderForValue.build()); + onChanged(); + } else { + projectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder addAllProjects( + java.lang.Iterable values) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, projects_); + onChanged(); + } else { + projectsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder clearProjects() { + if (projectsBuilder_ == null) { + projects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public Builder removeProjects(int index) { + if (projectsBuilder_ == null) { + ensureProjectsIsMutable(); + projects_.remove(index); + onChanged(); + } else { + projectsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( + int index) { + return getProjectsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( + int index) { + if (projectsBuilder_ == null) { + return projects_.get(index); } else { + return projectsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsOrBuilderList() { + if (projectsBuilder_ != null) { + return projectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projects_); + } + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { + return getProjectsFieldBuilder().addBuilder( + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( + int index) { + return getProjectsFieldBuilder().addBuilder( + index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.Project projects = 1; + */ + public java.util.List + getProjectsBuilderList() { + return getProjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectsFieldBuilder() { + if (projectsBuilder_ == null) { + projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + projects_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + projects_ = null; + } + return projectsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Projects) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); + } + + public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Projects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Projects(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ProjectListRequest} + */ + public static final class ProjectListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) + ProjectListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectListRequest.newBuilder() to construct. + private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectListRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectListRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.ProjectOuterClass.ProjectListRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.ProjectListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) + flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; + } + + public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); + } + + public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectListRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ProjectListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.Project project = 1; + */ + boolean hasProject(); + /** + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.Project getProject(); + /** + * .flyteidl.admin.Project project = 1; + */ + flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} + */ + public static final class ProjectRegisterRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) + ProjectRegisterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterRequest.newBuilder() to construct. + private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.ProjectOuterClass.Project.Builder subBuilder = null; + if (project_ != null) { + subBuilder = project_.toBuilder(); + } + project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(project_); + project_ = subBuilder.buildPartial(); + } + + 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private flyteidl.admin.ProjectOuterClass.Project project_; + /** + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return project_ != null; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + return getProject(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (project_ != null) { + output.writeMessage(1, getProject()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (project_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProject()); + } + 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.ProjectOuterClass.ProjectRegisterRequest)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; + + boolean result = true; + result = result && (hasProject() == other.hasProject()); + if (hasProject()) { + result = result && getProject() + .equals(other.getProject()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProject()) { + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (projectBuilder_ == null) { + project_ = null; + } else { + project_ = null; + projectBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); + if (projectBuilder_ == null) { + result.project_ = project_; + } else { + result.project_ = projectBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; + if (other.hasProject()) { + mergeProject(other.getProject()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.ProjectOuterClass.Project project_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; + /** + * .flyteidl.admin.Project project = 1; + */ + public boolean hasProject() { + return projectBuilder_ != null || project_ != null; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project getProject() { + if (projectBuilder_ == null) { + return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } else { + return projectBuilder_.getMessage(); + } + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + onChanged(); + } else { + projectBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder setProject( + flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { + if (projectBuilder_ == null) { + project_ = builderForValue.build(); + onChanged(); + } else { + projectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { + if (projectBuilder_ == null) { + if (project_ != null) { + project_ = + flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); + } else { + project_ = value; + } + onChanged(); + } else { + projectBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public Builder clearProject() { + if (projectBuilder_ == null) { + project_ = null; + onChanged(); + } else { + project_ = null; + projectBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { + + onChanged(); + return getProjectFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.Project project = 1; + */ + public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { + if (projectBuilder_ != null) { + return projectBuilder_.getMessageOrBuilder(); + } else { + return project_ == null ? + flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; + } + } + /** + * .flyteidl.admin.Project project = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> + getProjectFieldBuilder() { + if (projectBuilder_ == null) { + projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( + getProject(), + getParentForChildren(), + isClean()); + project_ = null; + } + return projectBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectRegisterRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ProjectRegisterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ProjectRegisterResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} + */ + public static final class ProjectRegisterResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) + ProjectRegisterResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectRegisterResponse.newBuilder() to construct. + private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProjectRegisterResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProjectRegisterResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.ProjectOuterClass.ProjectRegisterResponse)) { + return super.equals(obj); + } + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); + } + + // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) { + return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { + if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.ProjectRegisterResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); + } + + public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ProjectRegisterResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProjectRegisterResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Domain_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Domain_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Project_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Project_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Projects_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Projects_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/admin/project.proto\022\016flyteidl" + + ".admin\"\"\n\006Domain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001" + + "(\t\"L\n\007Project\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022" + + "\'\n\007domains\030\003 \003(\0132\026.flyteidl.admin.Domain" + + "\"5\n\010Projects\022)\n\010projects\030\001 \003(\0132\027.flyteid" + + "l.admin.Project\"\024\n\022ProjectListRequest\"B\n" + + "\026ProjectRegisterRequest\022(\n\007project\030\001 \001(\013" + + "2\027.flyteidl.admin.Project\"\031\n\027ProjectRegi" + + "sterResponseB3Z1github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_Domain_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_Domain_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Domain_descriptor, + new java.lang.String[] { "Id", "Name", }); + internal_static_flyteidl_admin_Project_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Project_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Project_descriptor, + new java.lang.String[] { "Id", "Name", "Domains", }); + internal_static_flyteidl_admin_Projects_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Projects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Projects_descriptor, + new java.lang.String[] { "Projects", }); + internal_static_flyteidl_admin_ProjectListRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectListRequest_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java new file mode 100644 index 0000000000..63b5f540b7 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java @@ -0,0 +1,1801 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/schedule.proto + +package flyteidl.admin; + +public final class ScheduleOuterClass { + private ScheduleOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Represents a frequency at which to run a schedule.
+   * 
+ * + * Protobuf enum {@code flyteidl.admin.FixedRateUnit} + */ + public enum FixedRateUnit + implements com.google.protobuf.ProtocolMessageEnum { + /** + * MINUTE = 0; + */ + MINUTE(0), + /** + * HOUR = 1; + */ + HOUR(1), + /** + * DAY = 2; + */ + DAY(2), + UNRECOGNIZED(-1), + ; + + /** + * MINUTE = 0; + */ + public static final int MINUTE_VALUE = 0; + /** + * HOUR = 1; + */ + public static final int HOUR_VALUE = 1; + /** + * DAY = 2; + */ + public static final int DAY_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FixedRateUnit valueOf(int value) { + return forNumber(value); + } + + public static FixedRateUnit forNumber(int value) { + switch (value) { + case 0: return MINUTE; + case 1: return HOUR; + case 2: return DAY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + FixedRateUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FixedRateUnit findValueByNumber(int number) { + return FixedRateUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final FixedRateUnit[] VALUES = values(); + + public static FixedRateUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FixedRateUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) + } + + public interface FixedRateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 value = 1; + */ + int getValue(); + + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + int getUnitValue(); + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); + } + /** + *
+   * Option for schedules run at a certain frequency, e.g. every 2 minutes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class FixedRate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) + FixedRateOrBuilder { + private static final long serialVersionUID = 0L; + // Use FixedRate.newBuilder() to construct. + private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FixedRate() { + value_ = 0; + unit_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FixedRate( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + value_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + + unit_ = rawValue; + 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.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private int value_; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + + public static final int UNIT_FIELD_NUMBER = 2; + private int unit_; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (value_ != 0) { + output.writeUInt32(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + output.writeEnum(2, unit_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, value_); + } + if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, unit_); + } + 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.ScheduleOuterClass.FixedRate)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; + + boolean result = true; + result = result && (getValue() + == other.getValue()); + result = result && unit_ == other.unit_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + unit_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ScheduleOuterClass.FixedRate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Option for schedules run at a certain frequency, e.g. every 2 minutes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.FixedRate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + value_ = 0; + + unit_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; + } + + public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + public flyteidl.admin.ScheduleOuterClass.FixedRate build() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { + flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); + result.value_ = value_; + result.unit_ = unit_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ScheduleOuterClass.FixedRate) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { + if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; + if (other.getValue() != 0) { + setValue(other.getValue()); + } + if (other.unit_ != 0) { + setUnitValue(other.getUnitValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ScheduleOuterClass.FixedRate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int value_ ; + /** + * uint32 value = 1; + */ + public int getValue() { + return value_; + } + /** + * uint32 value = 1; + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + * uint32 value = 1; + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + + private int unit_ = 0; + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public int getUnitValue() { + return unit_; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnitValue(int value) { + unit_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { + flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); + return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + unit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.admin.FixedRateUnit unit = 2; + */ + public Builder clearUnit() { + + unit_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.FixedRate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); + } + + public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public FixedRate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FixedRate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScheduleOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + java.lang.String getCronExpression(); + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + com.google.protobuf.ByteString + getCronExpressionBytes(); + + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + boolean hasRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); + + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + java.lang.String getKickoffTimeInputArg(); + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + com.google.protobuf.ByteString + getKickoffTimeInputArgBytes(); + + public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); + } + /** + *
+   * Defines complete set of information required to trigger an execution on a schedule.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schedule() { + kickoffTimeInputArg_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schedule( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + scheduleExpressionCase_ = 1; + scheduleExpression_ = s; + break; + } + case 18: { + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; + if (scheduleExpressionCase_ == 2) { + subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); + } + scheduleExpression_ = + input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + scheduleExpression_ = subBuilder.buildPartial(); + } + scheduleExpressionCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + kickoffTimeInputArg_ = s; + 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.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public enum ScheduleExpressionCase + implements com.google.protobuf.Internal.EnumLite { + CRON_EXPRESSION(1), + RATE(2), + SCHEDULEEXPRESSION_NOT_SET(0); + private final int value; + private ScheduleExpressionCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScheduleExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static ScheduleExpressionCase forNumber(int value) { + switch (value) { + case 1: return CRON_EXPRESSION; + case 2: return RATE; + case 0: return SCHEDULEEXPRESSION_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + 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(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } + } + /** + *
+     * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+     * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+     * 
+ * + * string cron_expression = 1; + */ + public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATE_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + + public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; + private volatile java.lang.Object kickoffTimeInputArg_; + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + 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(); + kickoffTimeInputArg_ = s; + return s; + } + } + /** + *
+     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+     * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (scheduleExpressionCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scheduleExpressionCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); + } + if (scheduleExpressionCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); + } + if (!getKickoffTimeInputArgBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); + } + 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.ScheduleOuterClass.Schedule)) { + return super.equals(obj); + } + flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; + + boolean result = true; + result = result && getKickoffTimeInputArg() + .equals(other.getKickoffTimeInputArg()); + result = result && getScheduleExpressionCase().equals( + other.getScheduleExpressionCase()); + if (!result) return false; + switch (scheduleExpressionCase_) { + case 1: + result = result && getCronExpression() + .equals(other.getCronExpression()); + break; + case 2: + result = result && getRate() + .equals(other.getRate()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; + hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); + switch (scheduleExpressionCase_) { + case 1: + hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getCronExpression().hashCode(); + break; + case 2: + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.ScheduleOuterClass.Schedule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines complete set of information required to trigger an execution on a schedule.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Schedule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) + flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); + } + + // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + kickoffTimeInputArg_ = ""; + + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; + } + + public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); + } + + public flyteidl.admin.ScheduleOuterClass.Schedule build() { + flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { + flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); + if (scheduleExpressionCase_ == 1) { + result.scheduleExpression_ = scheduleExpression_; + } + if (scheduleExpressionCase_ == 2) { + if (rateBuilder_ == null) { + result.scheduleExpression_ = scheduleExpression_; + } else { + result.scheduleExpression_ = rateBuilder_.build(); + } + } + result.kickoffTimeInputArg_ = kickoffTimeInputArg_; + result.scheduleExpressionCase_ = scheduleExpressionCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.ScheduleOuterClass.Schedule) { + return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { + if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; + if (!other.getKickoffTimeInputArg().isEmpty()) { + kickoffTimeInputArg_ = other.kickoffTimeInputArg_; + onChanged(); + } + switch (other.getScheduleExpressionCase()) { + case CRON_EXPRESSION: { + scheduleExpressionCase_ = 1; + scheduleExpression_ = other.scheduleExpression_; + onChanged(); + break; + } + case RATE: { + mergeRate(other.getRate()); + break; + } + case SCHEDULEEXPRESSION_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.ScheduleOuterClass.Schedule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int scheduleExpressionCase_ = 0; + private java.lang.Object scheduleExpression_; + public ScheduleExpressionCase + getScheduleExpressionCase() { + return ScheduleExpressionCase.forNumber( + scheduleExpressionCase_); + } + + public Builder clearScheduleExpression() { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + return this; + } + + + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public java.lang.String getCronExpression() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public com.google.protobuf.ByteString + getCronExpressionBytes() { + java.lang.Object ref = ""; + if (scheduleExpressionCase_ == 1) { + ref = scheduleExpression_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (scheduleExpressionCase_ == 1) { + scheduleExpression_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder setCronExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder clearCronExpression() { + if (scheduleExpressionCase_ == 1) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year"
+       * e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *"
+       * 
+ * + * string cron_expression = 1; + */ + public Builder setCronExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleExpressionCase_ = 1; + scheduleExpression_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public boolean hasRate() { + return scheduleExpressionCase_ == 2; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } else { + if (scheduleExpressionCase_ == 2) { + return rateBuilder_.getMessage(); + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduleExpression_ = value; + onChanged(); + } else { + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder setRate( + flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { + if (rateBuilder_ == null) { + scheduleExpression_ = builderForValue.build(); + onChanged(); + } else { + rateBuilder_.setMessage(builderForValue.build()); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2 && + scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) + .mergeFrom(value).buildPartial(); + } else { + scheduleExpression_ = value; + } + onChanged(); + } else { + if (scheduleExpressionCase_ == 2) { + rateBuilder_.mergeFrom(value); + } + rateBuilder_.setMessage(value); + } + scheduleExpressionCase_ = 2; + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public Builder clearRate() { + if (rateBuilder_ == null) { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + onChanged(); + } + } else { + if (scheduleExpressionCase_ == 2) { + scheduleExpressionCase_ = 0; + scheduleExpression_ = null; + } + rateBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { + return getRateFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { + if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { + return rateBuilder_.getMessageOrBuilder(); + } else { + if (scheduleExpressionCase_ == 2) { + return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; + } + return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.FixedRate rate = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> + getRateFieldBuilder() { + if (rateBuilder_ == null) { + if (!(scheduleExpressionCase_ == 2)) { + scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); + } + rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( + (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, + getParentForChildren(), + isClean()); + scheduleExpression_ = null; + } + scheduleExpressionCase_ = 2; + onChanged();; + return rateBuilder_; + } + + private java.lang.Object kickoffTimeInputArg_ = ""; + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public java.lang.String getKickoffTimeInputArg() { + java.lang.Object ref = kickoffTimeInputArg_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kickoffTimeInputArg_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public com.google.protobuf.ByteString + getKickoffTimeInputArgBytes() { + java.lang.Object ref = kickoffTimeInputArg_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kickoffTimeInputArg_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArg( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kickoffTimeInputArg_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder clearKickoffTimeInputArg() { + + kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); + onChanged(); + return this; + } + /** + *
+       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
+       * 
+ * + * string kickoff_time_input_arg = 3; + */ + public Builder setKickoffTimeInputArgBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kickoffTimeInputArg_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Schedule) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); + } + + public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_FixedRate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Schedule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/admin/schedule.proto\022\016flyteid" + + "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + + "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + + "\"\206\001\n\010Schedule\022\031\n\017cron_expression\030\001 \001(\tH\000" + + "\022)\n\004rate\030\002 \001(\0132\031.flyteidl.admin.FixedRat" + + "eH\000\022\036\n\026kickoff_time_input_arg\030\003 \001(\tB\024\n\022S" + + "cheduleExpression*.\n\rFixedRateUnit\022\n\n\006MI" + + "NUTE\020\000\022\010\n\004HOUR\020\001\022\007\n\003DAY\020\002B3Z1github.com/" + + "lyft/flyteidl/gen/pb-go/flyteidl/adminb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_admin_FixedRate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_FixedRate_descriptor, + new java.lang.String[] { "Value", "Unit", }); + internal_static_flyteidl_admin_Schedule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Schedule_descriptor, + new java.lang.String[] { "CronExpression", "Rate", "KickoffTimeInputArg", "ScheduleExpression", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java new file mode 100644 index 0000000000..0254f08f8e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java @@ -0,0 +1,8696 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task_execution.proto + +package flyteidl.admin; + +public final class TaskExecutionOuterClass { + private TaskExecutionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskExecutionGetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * A message used to fetch a single task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class TaskExecutionGetRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) + TaskExecutionGetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetRequest.newBuilder() to construct. + private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.TaskExecutionOuterClass.TaskExecutionGetRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 message used to fetch a single task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionGetRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionGetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + boolean hasNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + int getLimit(); + + /** + *
+     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
+     * in a query.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + com.google.protobuf.ByteString + getTokenBytes(); + + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + java.lang.String getFilters(); + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + com.google.protobuf.ByteString + getFiltersBytes(); + + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + boolean hasSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.Sort getSortBy(); + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); + } + /** + *
+   * Represents a request structure to retrieve a list of task execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class TaskExecutionListRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) + TaskExecutionListRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionListRequest.newBuilder() to construct. + private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionListRequest() { + limit_ = 0; + token_ = ""; + filters_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionListRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + limit_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + filters_ = s; + break; + } + case 42: { + flyteidl.admin.Common.Sort.Builder subBuilder = null; + if (sortBy_ != null) { + subBuilder = sortBy_.toBuilder(); + } + sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sortBy_); + sortBy_ = subBuilder.buildPartial(); + } + + 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + *
+     * Indicates the node execution to filter by.
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private int limit_; + /** + *
+     * Indicates the number of resources to be returned.
+     * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + + public static final int TOKEN_FIELD_NUMBER = 3; + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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.
+     * +optional
+     * 
+ * + * string token = 3; + */ + 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; + } + } + + public static final int FILTERS_FIELD_NUMBER = 4; + private volatile java.lang.Object filters_; + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + 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(); + filters_ = s; + return s; + } + } + /** + *
+     * Indicates a list of filters passed as string.
+     * More info on constructing filters : <Link>
+     * +optional
+     * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SORT_BY_FIELD_NUMBER = 5; + private flyteidl.admin.Common.Sort sortBy_; + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortBy_ != null; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + /** + *
+     * Sort ordering for returned list.
+     * +optional
+     * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + return getSortBy(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (nodeExecutionId_ != null) { + output.writeMessage(1, getNodeExecutionId()); + } + if (limit_ != 0) { + output.writeUInt32(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); + } + if (!getFiltersBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); + } + if (sortBy_ != null) { + output.writeMessage(5, getSortBy()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNodeExecutionId()); + } + if (limit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, limit_); + } + if (!getTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); + } + if (!getFiltersBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); + } + if (sortBy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSortBy()); + } + 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.TaskExecutionOuterClass.TaskExecutionListRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; + + boolean result = true; + result = result && (hasNodeExecutionId() == other.hasNodeExecutionId()); + if (hasNodeExecutionId()) { + result = result && getNodeExecutionId() + .equals(other.getNodeExecutionId()); + } + result = result && (getLimit() + == other.getLimit()); + result = result && getToken() + .equals(other.getToken()); + result = result && getFilters() + .equals(other.getFilters()); + result = result && (hasSortBy() == other.hasSortBy()); + if (hasSortBy()) { + result = result && getSortBy() + .equals(other.getSortBy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + hash = (37 * hash) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (37 * hash) + FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getFilters().hashCode(); + if (hasSortBy()) { + hash = (37 * hash) + SORT_BY_FIELD_NUMBER; + hash = (53 * hash) + getSortBy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to retrieve a list of task execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + limit_ = 0; + + token_ = ""; + + filters_ = ""; + + if (sortByBuilder_ == null) { + sortBy_ = null; + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.limit_ = limit_; + result.token_ = token_; + result.filters_ = filters_; + if (sortByBuilder_ == null) { + result.sortBy_ = sortBy_; + } else { + result.sortBy_ = sortByBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getLimit() != 0) { + setLimit(other.getLimit()); + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + if (!other.getFilters().isEmpty()) { + filters_ = other.filters_; + onChanged(); + } + if (other.hasSortBy()) { + mergeSortBy(other.getSortBy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + *
+       * Indicates the node execution to filter by.
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int limit_ ; + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public int getLimit() { + return limit_; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder setLimit(int value) { + + limit_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates the number of resources to be returned.
+       * 
+ * + * uint32 limit = 2; + */ + public Builder clearLimit() { + + limit_ = 0; + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + 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.
+       * +optional
+       * 
+ * + * string token = 3; + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + token_ = value; + onChanged(); + return this; + } + + private java.lang.Object filters_ = ""; + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public java.lang.String getFilters() { + java.lang.Object ref = filters_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filters_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public com.google.protobuf.ByteString + getFiltersBytes() { + java.lang.Object ref = filters_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filters_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFilters( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filters_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder clearFilters() { + + filters_ = getDefaultInstance().getFilters(); + onChanged(); + return this; + } + /** + *
+       * Indicates a list of filters passed as string.
+       * More info on constructing filters : <Link>
+       * +optional
+       * 
+ * + * string filters = 4; + */ + public Builder setFiltersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filters_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.Common.Sort sortBy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public boolean hasSortBy() { + return sortByBuilder_ != null || sortBy_ != null; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort getSortBy() { + if (sortByBuilder_ == null) { + return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } else { + return sortByBuilder_.getMessage(); + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sortBy_ = value; + onChanged(); + } else { + sortByBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder setSortBy( + flyteidl.admin.Common.Sort.Builder builderForValue) { + if (sortByBuilder_ == null) { + sortBy_ = builderForValue.build(); + onChanged(); + } else { + sortByBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { + if (sortByBuilder_ == null) { + if (sortBy_ != null) { + sortBy_ = + flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); + } else { + sortBy_ = value; + } + onChanged(); + } else { + sortByBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public Builder clearSortBy() { + if (sortByBuilder_ == null) { + sortBy_ = null; + onChanged(); + } else { + sortBy_ = null; + sortByBuilder_ = null; + } + + return this; + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { + + onChanged(); + return getSortByFieldBuilder().getBuilder(); + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { + if (sortByBuilder_ != null) { + return sortByBuilder_.getMessageOrBuilder(); + } else { + return sortBy_ == null ? + flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; + } + } + /** + *
+       * Sort ordering for returned list.
+       * +optional
+       * 
+ * + * .flyteidl.admin.Sort sort_by = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> + getSortByFieldBuilder() { + if (sortByBuilder_ == null) { + sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( + getSortBy(), + getParentForChildren(), + isClean()); + sortBy_ = null; + } + return sortByBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionListRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionListRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + java.lang.String getInputUri(); + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + boolean hasClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); + + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + boolean getIsParent(); + } + /** + *
+   * Encapsulates all details for a single task execution entity.
+   * A task execution represents an instantiated task, including all inputs and additional
+   * metadata as well as computed results included state, outputs, and duration-based attributes.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + inputUri_ = ""; + isParent_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 26: { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + break; + } + case 32: { + + isParent_ = input.readBool(); + 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for the task execution.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 2; + private volatile java.lang.Object inputUri_; + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * Path to remote data store where input blob is stored.
+     * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSURE_FIELD_NUMBER = 3; + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + /** + *
+     * Task execution details and results.
+     * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + public static final int IS_PARENT_FIELD_NUMBER = 4; + private boolean isParent_; + /** + *
+     * Whether this task spawned nodes.
+     * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); + } + if (closure_ != null) { + output.writeMessage(3, getClosure()); + } + if (isParent_ != false) { + output.writeBool(4, isParent_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getClosure()); + } + if (isParent_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isParent_); + } + 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.TaskExecutionOuterClass.TaskExecution)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && (hasClosure() == other.hasClosure()); + if (hasClosure()) { + result = result && getClosure() + .equals(other.getClosure()); + } + result = result && (getIsParent() + == other.getIsParent()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsParent()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulates all details for a single task execution entity.
+     * A task execution represents an instantiated task, including all inputs and additional
+     * metadata as well as computed results included state, outputs, and duration-based attributes.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + inputUri_ = ""; + + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + isParent_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + result.isParent_ = isParent_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecution) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + if (other.getIsParent() != false) { + setIsParent(other.getIsParent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for the task execution.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where input blob is stored.
+       * 
+ * + * string input_uri = 2; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder setClosure( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * Task execution details and results.
+       * 
+ * + * .flyteidl.admin.TaskExecutionClosure closure = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + + private boolean isParent_ ; + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public boolean getIsParent() { + return isParent_; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder setIsParent(boolean value) { + + isParent_ = value; + onChanged(); + return this; + } + /** + *
+       * Whether this task spawned nodes.
+       * 
+ * + * bool is_parent = 4; + */ + public Builder clearIsParent() { + + isParent_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + int getTaskExecutionsCount(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + java.util.List + getTaskExecutionsOrBuilderList(); + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + 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(); + } + /** + *
+   * Response structure for a query to list of task execution entities.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class TaskExecutionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) + TaskExecutionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionList.newBuilder() to construct. + private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionList() { + taskExecutions_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + taskExecutions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + taskExecutions_.add( + input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + private int bitField0_; + public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; + private java.util.List taskExecutions_; + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + return taskExecutions_; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + return taskExecutions_.size(); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + return taskExecutions_.get(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + return taskExecutions_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < taskExecutions_.size(); i++) { + output.writeMessage(1, taskExecutions_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < taskExecutions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, taskExecutions_.get(i)); + } + 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.TaskExecutionOuterClass.TaskExecutionList)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; + + boolean result = true; + result = result && getTaskExecutionsList() + .equals(other.getTaskExecutionsList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTaskExecutionsCount() > 0) { + hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTaskExecutionsList().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.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Response structure for a query to list of task execution entities.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTaskExecutionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + taskExecutionsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskExecutionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.taskExecutions_ = taskExecutions_; + } else { + result.taskExecutions_ = taskExecutionsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; + if (taskExecutionsBuilder_ == null) { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutions_.isEmpty()) { + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTaskExecutionsIsMutable(); + taskExecutions_.addAll(other.taskExecutions_); + } + onChanged(); + } + } else { + if (!other.taskExecutions_.isEmpty()) { + if (taskExecutionsBuilder_.isEmpty()) { + taskExecutionsBuilder_.dispose(); + taskExecutionsBuilder_ = null; + taskExecutions_ = other.taskExecutions_; + bitField0_ = (bitField0_ & ~0x00000001); + taskExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaskExecutionsFieldBuilder() : null; + } else { + taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List taskExecutions_ = + java.util.Collections.emptyList(); + private void ensureTaskExecutionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + taskExecutions_ = new java.util.ArrayList(taskExecutions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; + + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List getTaskExecutionsList() { + if (taskExecutionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taskExecutions_); + } else { + return taskExecutionsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public int getTaskExecutionsCount() { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.size(); + } else { + return taskExecutionsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); + } else { + return taskExecutionsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder setTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.set(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { + if (taskExecutionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, value); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addTaskExecutions( + int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.add(index, builderForValue.build()); + onChanged(); + } else { + taskExecutionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder addAllTaskExecutions( + java.lang.Iterable values) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taskExecutions_); + onChanged(); + } else { + taskExecutionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder clearTaskExecutions() { + if (taskExecutionsBuilder_ == null) { + taskExecutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + taskExecutionsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public Builder removeTaskExecutions(int index) { + if (taskExecutionsBuilder_ == null) { + ensureTaskExecutionsIsMutable(); + taskExecutions_.remove(index); + onChanged(); + } else { + taskExecutionsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( + int index) { + if (taskExecutionsBuilder_ == null) { + return taskExecutions_.get(index); } else { + return taskExecutionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsOrBuilderList() { + if (taskExecutionsBuilder_ != null) { + return taskExecutionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taskExecutions_); + } + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { + return getTaskExecutionsFieldBuilder().addBuilder( + flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( + int index) { + return getTaskExecutionsFieldBuilder().addBuilder( + index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); + } + /** + * repeated .flyteidl.admin.TaskExecution task_executions = 1; + */ + public java.util.List + getTaskExecutionsBuilderList() { + return getTaskExecutionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> + getTaskExecutionsFieldBuilder() { + if (taskExecutionsBuilder_ == null) { + taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( + taskExecutions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + taskExecutions_ = null; + } + return taskExecutionsBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + java.lang.String getOutputUri(); + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + boolean hasError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + int getLogsCount(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + boolean hasStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + boolean hasUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.Timestamp getUpdatedAt(); + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); + + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Container for task execution details and results.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class TaskExecutionClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) + TaskExecutionClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionClosure.newBuilder() to construct. + private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionClosure() { + phase_ = 0; + logs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 1; + outputResult_ = s; + break; + } + case 18: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 2) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startedAt_ != null) { + subBuilder = startedAt_.toBuilder(); + } + startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startedAt_); + startedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (duration_ != null) { + subBuilder = duration_.toBuilder(); + } + duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(duration_); + duration_ = subBuilder.buildPartial(); + } + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updatedAt_ != null) { + subBuilder = updatedAt_.toBuilder(); + } + updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updatedAt_); + updatedAt_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = subBuilder.buildPartial(); + } + + 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_ & 0x00000008) == 0x00000008)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(1), + ERROR(2), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 1: return OUTPUT_URI; + case 2: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 1; + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+     * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the task execution. Populated if the execution failed.
+     * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * The last recorded phase for this task execution.
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int LOGS_FIELD_NUMBER = 4; + private java.util.List logs_; + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * Detailed log information output by the task execution.
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int STARTED_AT_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp startedAt_; + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAt_ != null; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + *
+     * Time at which the task execution began running.
+     * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return getStartedAt(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration duration_; + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+     * The amount of time the task execution spent running.
+     * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return getDuration(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task execution was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + public static final int UPDATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updatedAt_; + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAt_ != null; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + /** + *
+     * Time at which the task execution was last updated.
+     * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + return getUpdatedAt(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 9; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data specific to the task plugin.
+     * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (outputResultCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); + } + if (outputResultCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(4, logs_.get(i)); + } + if (startedAt_ != null) { + output.writeMessage(5, getStartedAt()); + } + if (duration_ != null) { + output.writeMessage(6, getDuration()); + } + if (createdAt_ != null) { + output.writeMessage(7, getCreatedAt()); + } + if (updatedAt_ != null) { + output.writeMessage(8, getUpdatedAt()); + } + if (customInfo_ != null) { + output.writeMessage(9, getCustomInfo()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outputResultCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); + } + if (outputResultCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, logs_.get(i)); + } + if (startedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartedAt()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDuration()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (updatedAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getUpdatedAt()); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCustomInfo()); + } + 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.TaskExecutionOuterClass.TaskExecutionClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; + + boolean result = true; + result = result && phase_ == other.phase_; + result = result && getLogsList() + .equals(other.getLogsList()); + result = result && (hasStartedAt() == other.hasStartedAt()); + if (hasStartedAt()) { + result = result && getStartedAt() + .equals(other.getStartedAt()); + } + result = result && (hasDuration() == other.hasDuration()); + if (hasDuration()) { + result = result && getDuration() + .equals(other.getDuration()); + } + result = result && (hasCreatedAt() == other.hasCreatedAt()); + if (hasCreatedAt()) { + result = result && getCreatedAt() + .equals(other.getCreatedAt()); + } + result = result && (hasUpdatedAt() == other.hasUpdatedAt()); + if (hasUpdatedAt()) { + result = result && getUpdatedAt() + .equals(other.getUpdatedAt()); + } + result = result && (hasCustomInfo() == other.hasCustomInfo()); + if (hasCustomInfo()) { + result = result && getCustomInfo() + .equals(other.getCustomInfo()); + } + result = result && getOutputResultCase().equals( + other.getOutputResultCase()); + if (!result) return false; + switch (outputResultCase_) { + case 1: + result = result && getOutputUri() + .equals(other.getOutputUri()); + break; + case 2: + result = result && getError() + .equals(other.getError()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasUpdatedAt()) { + hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getUpdatedAt().hashCode(); + } + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + switch (outputResultCase_) { + case 1: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Container for task execution details and results.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + phase_ = 0; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + logsBuilder_.clear(); + } + if (startedAtBuilder_ == null) { + startedAt_ = null; + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + if (durationBuilder_ == null) { + duration_ = null; + } else { + duration_ = null; + durationBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (outputResultCase_ == 1) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 2) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.phase_ = phase_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (startedAtBuilder_ == null) { + result.startedAt_ = startedAt_; + } else { + result.startedAt_ = startedAtBuilder_.build(); + } + if (durationBuilder_ == null) { + result.duration_ = duration_; + } else { + result.duration_ = durationBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + if (updatedAtBuilder_ == null) { + result.updatedAt_ = updatedAt_; + } else { + result.updatedAt_ = updatedAtBuilder_.build(); + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000008); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasUpdatedAt()) { + mergeUpdatedAt(other.getUpdatedAt()); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 1; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 1) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 1) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 1) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 1) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
+       * 
+ * + * string output_uri = 1; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 1; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public boolean hasError() { + return outputResultCase_ == 2; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 2; + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 2) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 2) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the task execution. Populated if the execution failed.
+       * 
+ * + * .flyteidl.core.ExecutionError error = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 2)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 2; + onChanged();; + return errorBuilder_; + } + + private int phase_ = 0; + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * The last recorded phase for this task execution.
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * Detailed log information output by the task execution.
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 4; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp startedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public boolean hasStartedAt() { + return startedAtBuilder_ != null || startedAt_ != null; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + onChanged(); + } else { + startedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + onChanged(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (startedAt_ != null) { + startedAt_ = + com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); + } else { + startedAt_ = value; + } + onChanged(); + } else { + startedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public Builder clearStartedAt() { + if (startedAtBuilder_ == null) { + startedAt_ = null; + onChanged(); + } else { + startedAt_ = null; + startedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + *
+       * Time at which the task execution began running.
+       * 
+ * + * .google.protobuf.Timestamp started_at = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private com.google.protobuf.Duration duration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return durationBuilder_ != null || duration_ != null; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (duration_ != null) { + duration_ = + com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); + } else { + duration_ = value; + } + onChanged(); + } else { + durationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + duration_ = null; + onChanged(); + } else { + duration_ = null; + durationBuilder_ = null; + } + + return this; + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+       * The amount of time the task execution spent running.
+       * 
+ * + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task execution was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp updatedAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public boolean hasUpdatedAt() { + return updatedAtBuilder_ != null || updatedAt_ != null; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp getUpdatedAt() { + if (updatedAtBuilder_ == null) { + return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } else { + return updatedAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updatedAt_ = value; + onChanged(); + } else { + updatedAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder setUpdatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updatedAtBuilder_ == null) { + updatedAt_ = builderForValue.build(); + onChanged(); + } else { + updatedAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { + if (updatedAtBuilder_ == null) { + if (updatedAt_ != null) { + updatedAt_ = + com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); + } else { + updatedAt_ = value; + } + onChanged(); + } else { + updatedAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public Builder clearUpdatedAt() { + if (updatedAtBuilder_ == null) { + updatedAt_ = null; + onChanged(); + } else { + updatedAt_ = null; + updatedAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { + + onChanged(); + return getUpdatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { + if (updatedAtBuilder_ != null) { + return updatedAtBuilder_.getMessageOrBuilder(); + } else { + return updatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; + } + } + /** + *
+       * Time at which the task execution was last updated.
+       * 
+ * + * .google.protobuf.Timestamp updated_at = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getUpdatedAtFieldBuilder() { + if (updatedAtBuilder_ == null) { + updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdatedAt(), + getParentForChildren(), + isClean()); + updatedAt_ = null; + } + return updatedAtBuilder_; + } + + private com.google.protobuf.Struct customInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data specific to the task plugin.
+       * 
+ * + * .google.protobuf.Struct custom_info = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * Request structure to fetch inputs and output urls for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class TaskExecutionGetDataRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) + TaskExecutionGetDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataRequest.newBuilder() to construct. + private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * The identifier of the task execution for which to fetch inputs and outputs.
+     * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Request structure to fetch inputs and output urls for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * The identifier of the task execution for which to fetch inputs and outputs.
+       * 
+ * + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionGetDataRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionGetDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionGetDataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + boolean hasInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlob getInputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); + + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + boolean hasOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlob getOutputs(); + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class TaskExecutionGetDataResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) + TaskExecutionGetDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionGetDataResponse.newBuilder() to construct. + private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionGetDataResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionGetDataResponse( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.admin.Common.UrlBlob inputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution inputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.admin.Common.UrlBlob outputs_; + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + /** + *
+     * Signed url to fetch a core.LiteralMap of task execution outputs.
+     * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; + + boolean result = true; + result = result && (hasInputs() == other.hasInputs()); + if (hasInputs()) { + result = result && getInputs() + .equals(other.getInputs()); + } + result = result && (hasOutputs() == other.hasOutputs()); + if (hasOutputs()) { + result = result && getOutputs() + .equals(other.getOutputs()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { + return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { + if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.admin.Common.UrlBlob inputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder setInputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution inputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.admin.Common.UrlBlob outputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder setOutputs( + flyteidl.admin.Common.UrlBlob.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; + } + } + /** + *
+       * Signed url to fetch a core.LiteralMap of task execution outputs.
+       * 
+ * + * .flyteidl.admin.UrlBlob outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskExecutionGetDataResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); + } + + public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionGetDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionGetDataResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n#flyteidl/admin/task_execution.proto\022\016f" + + "lyteidl.admin\032\033flyteidl/admin/common.pro" + + "to\032\035flyteidl/core/execution.proto\032\036flyte" + + "idl/core/identifier.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/dura" + + "tion.proto\032\034google/protobuf/struct.proto" + + "\"M\n\027TaskExecutionGetRequest\0222\n\002id\030\001 \001(\0132" + + "&.flyteidl.core.TaskExecutionIdentifier\"" + + "\263\001\n\030TaskExecutionListRequest\022A\n\021node_exe" + + "cution_id\030\001 \001(\0132&.flyteidl.core.NodeExec" + + "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + + "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + + "\024.flyteidl.admin.Sort\"\240\001\n\rTaskExecution\022" + + "2\n\002id\030\001 \001(\0132&.flyteidl.core.TaskExecutio" + + "nIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007closur" + + "e\030\003 \001(\0132$.flyteidl.admin.TaskExecutionCl" + + "osure\022\021\n\tis_parent\030\004 \001(\010\"Z\n\021TaskExecutio" + + "nList\0226\n\017task_executions\030\001 \003(\0132\035.flyteid" + + "l.admin.TaskExecution\022\r\n\005token\030\002 \001(\t\"\261\003\n" + + "\024TaskExecutionClosure\022\024\n\noutput_uri\030\001 \001(" + + "\tH\000\022.\n\005error\030\002 \001(\0132\035.flyteidl.core.Execu" + + "tionErrorH\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + + "re.TaskExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.f" + + "lyteidl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\013" + + "2\032.google.protobuf.Timestamp\022+\n\010duration" + + "\030\006 \001(\0132\031.google.protobuf.Duration\022.\n\ncre" + + "ated_at\030\007 \001(\0132\032.google.protobuf.Timestam" + + "p\022.\n\nupdated_at\030\010 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\013custom_info\030\t \001(\0132\027.google." + + "protobuf.StructB\017\n\routput_result\"Q\n\033Task" + + "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + + "yteidl.core.TaskExecutionIdentifier\"q\n\034T" + + "askExecutionGetDataResponse\022\'\n\006inputs\030\001 " + + "\001(\0132\027.flyteidl.admin.UrlBlob\022(\n\007outputs\030" + + "\002 \001(\0132\027.flyteidl.admin.UrlBlobB3Z1github" + + ".com/lyft/flyteidl/gen/pb-go/flyteidl/ad" + + "minb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.admin.Common.getDescriptor(), + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, + new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); + internal_static_flyteidl_admin_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecution_descriptor, + new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); + internal_static_flyteidl_admin_TaskExecutionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionList_descriptor, + new java.lang.String[] { "TaskExecutions", "Token", }); + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, + new java.lang.String[] { "OutputUri", "Error", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "OutputResult", }); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + flyteidl.admin.Common.getDescriptor(); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java new file mode 100644 index 0000000000..024ae96dc2 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java @@ -0,0 +1,4958 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/task.proto + +package flyteidl.admin; + +public final class TaskOuterClass { + private TaskOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TaskCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class TaskCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) + TaskCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateRequest.newBuilder() to construct. + private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + 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.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskSpec spec_; + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for task.
+     * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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.TaskOuterClass.TaskCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to create a revision of a task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) + flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + } + + public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); + } + + public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskCreateRequest) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for task.
+       * 
+ * + * .flyteidl.admin.TaskSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Represents a response structure if task creation succeeds.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class TaskCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) + TaskCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskCreateResponse.newBuilder() to construct. + private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.TaskOuterClass.TaskCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a response structure if task creation succeeds.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) + flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + } + + public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); + } + + public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { + flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskCreateResponse) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { + if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); + } + + public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+   * arranged to process workflow inputs and produce a deterministic set of outputs.
+   * Tasks can come in many varieties tuned for specialized behavior. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Task extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) + TaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use Task.newBuilder() to construct. + private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Task() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Task( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + 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.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the task.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.TaskOuterClass.TaskClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the task.
+     * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (closure_ != null) { + output.writeMessage(2, getClosure()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + 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.TaskOuterClass.Task)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasClosure() == other.hasClosure()); + if (hasClosure()) { + result = result && getClosure() + .equals(other.getClosure()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.Task parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.Task prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
+     * arranged to process workflow inputs and produce a deterministic set of outputs.
+     * Tasks can come in many varieties tuned for specialized behavior. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Task} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) + flyteidl.admin.TaskOuterClass.TaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.Task.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; + } + + public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); + } + + public flyteidl.admin.TaskOuterClass.Task build() { + flyteidl.admin.TaskOuterClass.Task result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskOuterClass.Task buildPartial() { + flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.Task) { + return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { + if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.Task parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.Task) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the task.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.TaskOuterClass.TaskClosure closure_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the task.
+       * 
+ * + * .flyteidl.admin.TaskClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Task) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); + } + + public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Task parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Task(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.Task getTasks(int index); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + int getTasksCount(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + 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(); + } + /** + *
+   * Represents a list of tasks returned from the admin.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class TaskList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) + TaskListOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskList.newBuilder() to construct. + private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskList() { + tasks_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + tasks_.add( + input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + private int bitField0_; + public static final int TASKS_FIELD_NUMBER = 1; + private java.util.List tasks_; + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * A list of tasks returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(1, tasks_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, tasks_.get(i)); + } + 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.TaskOuterClass.TaskList)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; + + boolean result = true; + result = result && getTasksList() + .equals(other.getTasksList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().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.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a list of tasks returned from the admin.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) + flyteidl.admin.TaskOuterClass.TaskListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + tasksBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; + } + + public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); + } + + public flyteidl.admin.TaskOuterClass.TaskList build() { + flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { + flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskList) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { + if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000001); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; + + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder setTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addTasks( + int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); + } + /** + *
+       * A list of tasks returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Task tasks = 1; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) + private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); + } + + public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Represents a structure that encapsulates the user-configured specification of the task.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class TaskSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) + TaskSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskSpec.newBuilder() to construct. + private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskSpec( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + 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.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the task.
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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.TaskOuterClass.TaskSpec)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; + + boolean result = true; + result = result && (hasTemplate() == other.hasTemplate()); + if (hasTemplate()) { + result = result && getTemplate() + .equals(other.getTemplate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a structure that encapsulates the user-configured specification of the task.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) + flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; + } + + public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); + } + + public flyteidl.admin.TaskOuterClass.TaskSpec build() { + flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { + flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskSpec) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { + if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the task.
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); + } + + public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + boolean hasCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTask getCompiledTask(); + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); + + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+   * and task metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class TaskClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) + TaskClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskClosure.newBuilder() to construct. + private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Compiler.CompiledTask.Builder subBuilder = null; + if (compiledTask_ != null) { + subBuilder = compiledTask_.toBuilder(); + } + compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledTask_); + compiledTask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + 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.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + public static final int COMPILED_TASK_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledTask compiledTask_; + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTask_ != null; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + /** + *
+     * Represents the compiled representation of the task from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + return getCompiledTask(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the task was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (compiledTask_ != null) { + output.writeMessage(1, getCompiledTask()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledTask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledTask()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + 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.TaskOuterClass.TaskClosure)) { + return super.equals(obj); + } + flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; + + boolean result = true; + result = result && (hasCompiledTask() == other.hasCompiledTask()); + if (hasCompiledTask()) { + result = result && getCompiledTask() + .equals(other.getCompiledTask()); + } + result = result && (hasCreatedAt() == other.hasCreatedAt()); + if (hasCreatedAt()) { + result = result && getCreatedAt() + .equals(other.getCreatedAt()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompiledTask()) { + hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; + hash = (53 * hash) + getCompiledTask().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.TaskOuterClass.TaskClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
+     * and task metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.TaskClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) + flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); + } + + // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (compiledTaskBuilder_ == null) { + compiledTask_ = null; + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; + } + + public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); + } + + public flyteidl.admin.TaskOuterClass.TaskClosure build() { + flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { + flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); + if (compiledTaskBuilder_ == null) { + result.compiledTask_ = compiledTask_; + } else { + result.compiledTask_ = compiledTaskBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.TaskOuterClass.TaskClosure) { + return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { + if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; + if (other.hasCompiledTask()) { + mergeCompiledTask(other.getCompiledTask()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.TaskOuterClass.TaskClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledTask compiledTask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public boolean hasCompiledTask() { + return compiledTaskBuilder_ != null || compiledTask_ != null; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask getCompiledTask() { + if (compiledTaskBuilder_ == null) { + return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } else { + return compiledTaskBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledTask_ = value; + onChanged(); + } else { + compiledTaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder setCompiledTask( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (compiledTaskBuilder_ == null) { + compiledTask_ = builderForValue.build(); + onChanged(); + } else { + compiledTaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { + if (compiledTaskBuilder_ == null) { + if (compiledTask_ != null) { + compiledTask_ = + flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); + } else { + compiledTask_ = value; + } + onChanged(); + } else { + compiledTaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public Builder clearCompiledTask() { + if (compiledTaskBuilder_ == null) { + compiledTask_ = null; + onChanged(); + } else { + compiledTask_ = null; + compiledTaskBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { + + onChanged(); + return getCompiledTaskFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { + if (compiledTaskBuilder_ != null) { + return compiledTaskBuilder_.getMessageOrBuilder(); + } else { + return compiledTask_ == null ? + flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; + } + } + /** + *
+       * Represents the compiled representation of the task from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledTask compiled_task = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getCompiledTaskFieldBuilder() { + if (compiledTaskBuilder_ == null) { + compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + getCompiledTask(), + getParentForChildren(), + isClean()); + compiledTask_ = null; + } + return compiledTaskBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the task was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.TaskClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); + } + + public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Task_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Task_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_TaskClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031flyteidl/admin/task.proto\022\016flyteidl.ad" + + "min\032\036flyteidl/core/identifier.proto\032\031fly" + + "teidl/core/tasks.proto\032\034flyteidl/core/co" + + "mpiler.proto\032\037google/protobuf/timestamp." + + "proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\0132" + + "\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreateR" + + "esponse\"[\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl.c" + + "ore.Identifier\022,\n\007closure\030\002 \001(\0132\033.flytei" + + "dl.admin.TaskClosure\">\n\010TaskList\022#\n\005task" + + "s\030\001 \003(\0132\024.flyteidl.admin.Task\022\r\n\005token\030\002" + + " \001(\t\"9\n\010TaskSpec\022-\n\010template\030\001 \001(\0132\033.fly" + + "teidl.core.TaskTemplate\"q\n\013TaskClosure\0222" + + "\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.core.Co" + + "mpiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.google." + + "protobuf.TimestampB3Z1github.com/lyft/fl" + + "yteidl/gen/pb-go/flyteidl/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Compiler.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_TaskCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_TaskCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Task_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Task_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Task_descriptor, + new java.lang.String[] { "Id", "Closure", }); + internal_static_flyteidl_admin_TaskList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskList_descriptor, + new java.lang.String[] { "Tasks", "Token", }); + internal_static_flyteidl_admin_TaskSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskSpec_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_admin_TaskClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_TaskClosure_descriptor, + new java.lang.String[] { "CompiledTask", "CreatedAt", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Compiler.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java new file mode 100644 index 0000000000..9c46e6f54d --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java @@ -0,0 +1,4961 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/admin/workflow.proto + +package flyteidl.admin; + +public final class WorkflowOuterClass { + private WorkflowOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Represents a request structure to create a revision of a workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class WorkflowCreateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) + WorkflowCreateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateRequest.newBuilder() to construct. + private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateRequest( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + 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.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int SPEC_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return spec_ != null; + } + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Represents the specification for workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + return getSpec(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (spec_ != null) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (spec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + 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.WorkflowOuterClass.WorkflowCreateRequest)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowOuterClass.WorkflowCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowOuterClass.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a request structure to create a revision of a workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (specBuilder_ == null) { + spec_ = null; + } else { + spec_ = null; + specBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public boolean hasSpec() { + return specBuilder_ != null || spec_ != null; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder setSpec( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { + if (specBuilder_ == null) { + if (spec_ != null) { + spec_ = + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + spec_ = null; + specBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { + + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Represents the specification for workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowCreateRequest) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowCreateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Purposefully empty, may be populated in the future. 
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class WorkflowCreateResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) + WorkflowCreateResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowCreateResponse.newBuilder() to construct. + private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowCreateResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowCreateResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.WorkflowOuterClass.WorkflowCreateResponse)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowOuterClass.WorkflowCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowOuterClass.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Purposefully empty, may be populated in the future. 
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowCreateResponse) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowCreateResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowCreateResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + boolean hasClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); + } + /** + *
+   * Represents the workflow structure stored in the Admin
+   * A workflow is created by ordering tasks and associating outputs to inputs
+   * in order to produce a directed-acyclic execution graph.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Workflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) + WorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use Workflow.newBuilder() to construct. + private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Workflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Workflow( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; + if (closure_ != null) { + subBuilder = closure_.toBuilder(); + } + closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closure_); + closure_ = subBuilder.buildPartial(); + } + + 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.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * id represents the unique identifier of the workflow.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int CLOSURE_FIELD_NUMBER = 2; + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closure_ != null; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + /** + *
+     * closure encapsulates all the fields that maps to a compiled version of the workflow.
+     * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + return getClosure(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (closure_ != null) { + output.writeMessage(2, getClosure()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (closure_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getClosure()); + } + 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.WorkflowOuterClass.Workflow)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasClosure() == other.hasClosure()); + if (hasClosure()) { + result = result && getClosure() + .equals(other.getClosure()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasClosure()) { + hash = (37 * hash) + CLOSURE_FIELD_NUMBER; + hash = (53 * hash) + getClosure().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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.WorkflowOuterClass.Workflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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.WorkflowOuterClass.Workflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow 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.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.Workflow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents the workflow structure stored in the Admin
+     * A workflow is created by ordering tasks and associating outputs to inputs
+     * in order to produce a directed-acyclic execution graph.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.Workflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (closureBuilder_ == null) { + closure_ = null; + } else { + closure_ = null; + closureBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; + } + + public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); + } + + public flyteidl.admin.WorkflowOuterClass.Workflow build() { + flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { + flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (closureBuilder_ == null) { + result.closure_ = closure_; + } else { + result.closure_ = closureBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.Workflow) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { + if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasClosure()) { + mergeClosure(other.getClosure()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.Workflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * id represents the unique identifier of the workflow.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public boolean hasClosure() { + return closureBuilder_ != null || closure_ != null; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { + if (closureBuilder_ == null) { + return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } else { + return closureBuilder_.getMessage(); + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closure_ = value; + onChanged(); + } else { + closureBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder setClosure( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { + if (closureBuilder_ == null) { + closure_ = builderForValue.build(); + onChanged(); + } else { + closureBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { + if (closureBuilder_ == null) { + if (closure_ != null) { + closure_ = + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); + } else { + closure_ = value; + } + onChanged(); + } else { + closureBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public Builder clearClosure() { + if (closureBuilder_ == null) { + closure_ = null; + onChanged(); + } else { + closure_ = null; + closureBuilder_ = null; + } + + return this; + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { + + onChanged(); + return getClosureFieldBuilder().getBuilder(); + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { + if (closureBuilder_ != null) { + return closureBuilder_.getMessageOrBuilder(); + } else { + return closure_ == null ? + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; + } + } + /** + *
+       * closure encapsulates all the fields that maps to a compiled version of the workflow.
+       * 
+ * + * .flyteidl.admin.WorkflowClosure closure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> + getClosureFieldBuilder() { + if (closureBuilder_ == null) { + closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( + getClosure(), + getParentForChildren(), + isClean()); + closure_ = null; + } + return closureBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.Workflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); + } + + public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Workflow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + int getWorkflowsCount(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + java.util.List + getWorkflowsOrBuilderList(); + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + 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(); + } + /** + *
+   * Represents a list of workflows returned from the admin.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class WorkflowList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) + WorkflowListOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowList.newBuilder() to construct. + private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowList() { + workflows_ = java.util.Collections.emptyList(); + token_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + workflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + workflows_.add( + input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + token_ = s; + 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) == 0x00000001)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOWS_FIELD_NUMBER = 1; + private java.util.List workflows_; + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + return workflows_; + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + return workflows_.size(); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + return workflows_.get(index); + } + /** + *
+     * A list of workflows returned based on the request.
+     * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + return workflows_.get(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; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < workflows_.size(); i++) { + output.writeMessage(1, workflows_.get(i)); + } + if (!getTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < workflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workflows_.get(i)); + } + 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.WorkflowOuterClass.WorkflowList)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; + + boolean result = true; + result = result && getWorkflowsList() + .equals(other.getWorkflowsList()); + result = result && getToken() + .equals(other.getToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkflowsCount() > 0) { + hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowsList().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.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowOuterClass.WorkflowList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowOuterClass.WorkflowList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a list of workflows returned from the admin.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) + flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getWorkflowsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + workflowsBuilder_.clear(); + } + token_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + workflows_ = java.util.Collections.unmodifiableList(workflows_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.workflows_ = workflows_; + } else { + result.workflows_ = workflowsBuilder_.build(); + } + result.token_ = token_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowList) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; + if (workflowsBuilder_ == null) { + if (!other.workflows_.isEmpty()) { + if (workflows_.isEmpty()) { + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureWorkflowsIsMutable(); + workflows_.addAll(other.workflows_); + } + onChanged(); + } + } else { + if (!other.workflows_.isEmpty()) { + if (workflowsBuilder_.isEmpty()) { + workflowsBuilder_.dispose(); + workflowsBuilder_ = null; + workflows_ = other.workflows_; + bitField0_ = (bitField0_ & ~0x00000001); + workflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkflowsFieldBuilder() : null; + } else { + workflowsBuilder_.addAllMessages(other.workflows_); + } + } + } + if (!other.getToken().isEmpty()) { + token_ = other.token_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List workflows_ = + java.util.Collections.emptyList(); + private void ensureWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + workflows_ = new java.util.ArrayList(workflows_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; + + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List getWorkflowsList() { + if (workflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(workflows_); + } else { + return workflowsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public int getWorkflowsCount() { + if (workflowsBuilder_ == null) { + return workflows_.size(); + } else { + return workflowsBuilder_.getCount(); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); + } else { + return workflowsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.set(index, value); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder setWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.set(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(value); + onChanged(); + } else { + workflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { + if (workflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkflowsIsMutable(); + workflows_.add(index, value); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addWorkflows( + int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.add(index, builderForValue.build()); + onChanged(); + } else { + workflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder addAllWorkflows( + java.lang.Iterable values) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workflows_); + onChanged(); + } else { + workflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder clearWorkflows() { + if (workflowsBuilder_ == null) { + workflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + workflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public Builder removeWorkflows(int index) { + if (workflowsBuilder_ == null) { + ensureWorkflowsIsMutable(); + workflows_.remove(index); + onChanged(); + } else { + workflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { + if (workflowsBuilder_ == null) { + return workflows_.get(index); } else { + return workflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsOrBuilderList() { + if (workflowsBuilder_ != null) { + return workflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(workflows_); + } + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { + return getWorkflowsFieldBuilder().addBuilder( + flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().addBuilder( + index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); + } + /** + *
+       * A list of workflows returned based on the request.
+       * 
+ * + * repeated .flyteidl.admin.Workflow workflows = 1; + */ + public java.util.List + getWorkflowsBuilderList() { + return getWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> + getWorkflowsFieldBuilder() { + if (workflowsBuilder_ == null) { + workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( + workflows_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + workflows_ = null; + } + return workflowsBuilder_; + } + + 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; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Represents a structure that encapsulates the specification of the workflow.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class WorkflowSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) + WorkflowSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowSpec.newBuilder() to construct. + private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowSpec( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + 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.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Template of the task that encapsulates all the metadata of the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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.WorkflowOuterClass.WorkflowSpec)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; + + boolean result = true; + result = result && (hasTemplate() == other.hasTemplate()); + if (hasTemplate()) { + result = result && getTemplate() + .equals(other.getTemplate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowOuterClass.WorkflowSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowOuterClass.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents a structure that encapsulates the specification of the workflow.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) + flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowSpec) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.WorkflowTemplate template_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Template of the task that encapsulates all the metadata of the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + boolean hasCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); + + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + boolean hasCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + } + /** + *
+   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; + if (compiledWorkflow_ != null) { + subBuilder = compiledWorkflow_.toBuilder(); + } + compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(compiledWorkflow_); + compiledWorkflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createdAt_ != null) { + subBuilder = createdAt_.toBuilder(); + } + createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createdAt_); + createdAt_ = subBuilder.buildPartial(); + } + + 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.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflow_ != null; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + /** + *
+     * Represents the compiled representation of the workflow from the specification provided.
+     * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + return getCompiledWorkflow(); + } + + public static final int CREATED_AT_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createdAt_; + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAt_ != null; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + *
+     * Time at which the workflow was created.
+     * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return getCreatedAt(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (compiledWorkflow_ != null) { + output.writeMessage(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + output.writeMessage(2, getCreatedAt()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (compiledWorkflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCompiledWorkflow()); + } + if (createdAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedAt()); + } + 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.WorkflowOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; + + boolean result = true; + result = result && (hasCompiledWorkflow() == other.hasCompiledWorkflow()); + if (hasCompiledWorkflow()) { + result = result && getCompiledWorkflow() + .equals(other.getCompiledWorkflow()); + } + result = result && (hasCreatedAt() == other.hasCreatedAt()); + if (hasCreatedAt()) { + result = result && getCreatedAt() + .equals(other.getCreatedAt()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCompiledWorkflow()) { + hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getCompiledWorkflow().hashCode(); + } + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) + flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + if (createdAtBuilder_ == null) { + createdAt_ = null; + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); + if (compiledWorkflowBuilder_ == null) { + result.compiledWorkflow_ = compiledWorkflow_; + } else { + result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); + } + if (createdAtBuilder_ == null) { + result.createdAt_ = createdAt_; + } else { + result.createdAt_ = createdAtBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasCompiledWorkflow()) { + mergeCompiledWorkflow(other.getCompiledWorkflow()); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public boolean hasCompiledWorkflow() { + return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } else { + return compiledWorkflowBuilder_.getMessage(); + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + compiledWorkflow_ = value; + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder setCompiledWorkflow( + flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = builderForValue.build(); + onChanged(); + } else { + compiledWorkflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { + if (compiledWorkflowBuilder_ == null) { + if (compiledWorkflow_ != null) { + compiledWorkflow_ = + flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); + } else { + compiledWorkflow_ = value; + } + onChanged(); + } else { + compiledWorkflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public Builder clearCompiledWorkflow() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflow_ = null; + onChanged(); + } else { + compiledWorkflow_ = null; + compiledWorkflowBuilder_ = null; + } + + return this; + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { + + onChanged(); + return getCompiledWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { + if (compiledWorkflowBuilder_ != null) { + return compiledWorkflowBuilder_.getMessageOrBuilder(); + } else { + return compiledWorkflow_ == null ? + flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; + } + } + /** + *
+       * Represents the compiled representation of the workflow from the specification provided.
+       * 
+ * + * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> + getCompiledWorkflowFieldBuilder() { + if (compiledWorkflowBuilder_ == null) { + compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( + getCompiledWorkflow(), + getParentForChildren(), + isClean()); + compiledWorkflow_ = null; + } + return compiledWorkflowBuilder_; + } + + private com.google.protobuf.Timestamp createdAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public boolean hasCreatedAt() { + return createdAtBuilder_ != null || createdAt_ != null; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + onChanged(); + } else { + createdAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + onChanged(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (createdAt_ != null) { + createdAt_ = + com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); + } else { + createdAt_ = value; + } + onChanged(); + } else { + createdAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public Builder clearCreatedAt() { + if (createdAtBuilder_ == null) { + createdAt_ = null; + onChanged(); + } else { + createdAt_ = null; + createdAtBuilder_ = null; + } + + return this; + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + *
+       * Time at which the workflow was created.
+       * 
+ * + * .google.protobuf.Timestamp created_at = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_Workflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_Workflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/admin/workflow.proto\022\016flyteid" + + "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + + "lyteidl/core/identifier.proto\032\034flyteidl/" + + "core/workflow.proto\032\033flyteidl/admin/comm" + + "on.proto\032\037google/protobuf/timestamp.prot" + + "o\"j\n\025WorkflowCreateRequest\022%\n\002id\030\001 \001(\0132\031" + + ".flyteidl.core.Identifier\022*\n\004spec\030\002 \001(\0132" + + "\034.flyteidl.admin.WorkflowSpec\"\030\n\026Workflo" + + "wCreateResponse\"c\n\010Workflow\022%\n\002id\030\001 \001(\0132" + + "\031.flyteidl.core.Identifier\0220\n\007closure\030\002 " + + "\001(\0132\037.flyteidl.admin.WorkflowClosure\"J\n\014" + + "WorkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flytei" + + "dl.admin.Workflow\022\r\n\005token\030\002 \001(\t\"A\n\014Work" + + "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + + "re.WorkflowTemplate\"\204\001\n\017WorkflowClosure\022" + + "A\n\021compiled_workflow\030\001 \001(\0132&.flyteidl.co" + + "re.CompiledWorkflowClosure\022.\n\ncreated_at" + + "\030\002 \001(\0132\032.google.protobuf.TimestampB3Z1gi" + + "thub.com/lyft/flyteidl/gen/pb-go/flyteid" + + "l/adminb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Compiler.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, + new java.lang.String[] { "Id", "Spec", }); + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_admin_Workflow_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_Workflow_descriptor, + new java.lang.String[] { "Id", "Closure", }); + internal_static_flyteidl_admin_WorkflowList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowList_descriptor, + new java.lang.String[] { "Workflows", "Token", }); + internal_static_flyteidl_admin_WorkflowSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowSpec_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_admin_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowClosure_descriptor, + new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); + flyteidl.core.Compiler.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Compiler.java b/flyteidl/gen/pb-java/flyteidl/core/Compiler.java new file mode 100644 index 0000000000..9a572590b1 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Compiler.java @@ -0,0 +1,5122 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/compiler.proto + +package flyteidl.core; + +public final class Compiler { + private Compiler() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ConnectionSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + int getDownstreamCount(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + boolean containsDownstream( + java.lang.String key); + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDownstream(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + java.util.Map + getDownstreamMap(); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key); + + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + int getUpstreamCount(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + boolean containsUpstream( + java.lang.String key); + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getUpstream(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + java.util.Map + getUpstreamMap(); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key); + } + /** + *
+   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+   * step uses this created ConnectionSet
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class ConnectionSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) + ConnectionSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectionSet.newBuilder() to construct. + private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectionSet() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionSet( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + downstream__ = input.readMessage( + DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + downstream_.getMutableMap().put( + downstream__.getKey(), downstream__.getValue()); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + upstream__ = input.readMessage( + UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + upstream_.getMutableMap().put( + upstream__.getKey(), upstream__.getValue()); + 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.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + public interface IdListOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string ids = 1; + */ + java.util.List + getIdsList(); + /** + * repeated string ids = 1; + */ + int getIdsCount(); + /** + * repeated string ids = 1; + */ + java.lang.String getIds(int index); + /** + * repeated string ids = 1; + */ + com.google.protobuf.ByteString + getIdsBytes(int index); + } + /** + * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} + */ + public static final class IdList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) + IdListOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdList.newBuilder() to construct. + private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IdList() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IdList( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + ids_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ids_.add(s); + 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) == 0x00000001)) { + ids_ = ids_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + public static final int IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ids_; + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_; + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < ids_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < ids_.size(); i++) { + dataSize += computeStringSizeNoTag(ids_.getRaw(i)); + } + size += dataSize; + size += 1 * getIdsList().size(); + } + 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.Compiler.ConnectionSet.IdList)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; + + boolean result = true; + result = result && getIdsList() + .equals(other.getIdsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getIdsCount() > 0) { + hash = (37 * hash) + IDS_FIELD_NUMBER; + hash = (53 * hash) + getIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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.Compiler.ConnectionSet.IdList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList 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.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.ConnectionSet.IdList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) + flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + } + + public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); + } + + public flyteidl.core.Compiler.ConnectionSet.IdList build() { + flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { + flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + ids_ = ids_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ids_ = ids_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.ConnectionSet.IdList) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { + if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; + if (!other.ids_.isEmpty()) { + if (ids_.isEmpty()) { + ids_ = other.ids_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdsIsMutable(); + ids_.addAll(other.ids_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.ConnectionSet.IdList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIdsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + ids_ = new com.google.protobuf.LazyStringArrayList(ids_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getIdsList() { + return ids_.getUnmodifiableView(); + } + /** + * repeated string ids = 1; + */ + public int getIdsCount() { + return ids_.size(); + } + /** + * repeated string ids = 1; + */ + public java.lang.String getIds(int index) { + return ids_.get(index); + } + /** + * repeated string ids = 1; + */ + public com.google.protobuf.ByteString + getIdsBytes(int index) { + return ids_.getByteString(index); + } + /** + * repeated string ids = 1; + */ + public Builder setIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addAllIds( + java.lang.Iterable values) { + ensureIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ids_); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder clearIds() { + ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string ids = 1; + */ + public Builder addIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIdsIsMutable(); + ids_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ConnectionSet.IdList) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); + } + + public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public IdList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IdList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DOWNSTREAM_FIELD_NUMBER = 7; + private static final class DownstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids that are downstream from a given node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UPSTREAM_FIELD_NUMBER = 8; + private static final class UpstreamDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * A list of all the node ids, that are upstream of this node id
+     * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDownstream(), + DownstreamDefaultEntryHolder.defaultEntry, + 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUpstream(), + UpstreamDefaultEntryHolder.defaultEntry, + 8); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetDownstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, downstream__); + } + for (java.util.Map.Entry entry + : internalGetUpstream().getMap().entrySet()) { + com.google.protobuf.MapEntry + upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, upstream__); + } + 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.Compiler.ConnectionSet)) { + return super.equals(obj); + } + flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; + + boolean result = true; + result = result && internalGetDownstream().equals( + other.internalGetDownstream()); + result = result && internalGetUpstream().equals( + other.internalGetUpstream()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetDownstream().getMap().isEmpty()) { + hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetDownstream().hashCode(); + } + if (!internalGetUpstream().getMap().isEmpty()) { + hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; + hash = (53 * hash) + internalGetUpstream().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet 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.Compiler.ConnectionSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet 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.Compiler.ConnectionSet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.ConnectionSet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.ConnectionSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
+     * step uses this created ConnectionSet
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConnectionSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) + flyteidl.core.Compiler.ConnectionSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 7: + return internalGetDownstream(); + case 8: + return internalGetUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 7: + return internalGetMutableDownstream(); + case 8: + return internalGetMutableUpstream(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); + } + + // Construct using flyteidl.core.Compiler.ConnectionSet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableDownstream().clear(); + internalGetMutableUpstream().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; + } + + public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); + } + + public flyteidl.core.Compiler.ConnectionSet build() { + flyteidl.core.Compiler.ConnectionSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Compiler.ConnectionSet buildPartial() { + flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); + int from_bitField0_ = bitField0_; + result.downstream_ = internalGetDownstream(); + result.downstream_.makeImmutable(); + result.upstream_ = internalGetUpstream(); + result.upstream_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.ConnectionSet) { + return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { + if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; + internalGetMutableDownstream().mergeFrom( + other.internalGetDownstream()); + internalGetMutableUpstream().mergeFrom( + other.internalGetUpstream()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.ConnectionSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; + private com.google.protobuf.MapField + internalGetDownstream() { + if (downstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + return downstream_; + } + private com.google.protobuf.MapField + internalGetMutableDownstream() { + onChanged();; + if (downstream_ == null) { + downstream_ = com.google.protobuf.MapField.newMapField( + DownstreamDefaultEntryHolder.defaultEntry); + } + if (!downstream_.isMutable()) { + downstream_ = downstream_.copy(); + } + return downstream_; + } + + public int getDownstreamCount() { + return internalGetDownstream().getMap().size(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public boolean containsDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDownstream().getMap().containsKey(key); + } + /** + * Use {@link #getDownstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDownstream() { + return getDownstreamMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public java.util.Map getDownstreamMap() { + return internalGetDownstream().getMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDownstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDownstream() { + internalGetMutableDownstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder removeDownstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDownstream() { + return internalGetMutableDownstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + public Builder putDownstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDownstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids that are downstream from a given node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; + */ + + public Builder putAllDownstream( + java.util.Map values) { + internalGetMutableDownstream().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; + private com.google.protobuf.MapField + internalGetUpstream() { + if (upstream_ == null) { + return com.google.protobuf.MapField.emptyMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + return upstream_; + } + private com.google.protobuf.MapField + internalGetMutableUpstream() { + onChanged();; + if (upstream_ == null) { + upstream_ = com.google.protobuf.MapField.newMapField( + UpstreamDefaultEntryHolder.defaultEntry); + } + if (!upstream_.isMutable()) { + upstream_ = upstream_.copy(); + } + return upstream_; + } + + public int getUpstreamCount() { + return internalGetUpstream().getMap().size(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public boolean containsUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetUpstream().getMap().containsKey(key); + } + /** + * Use {@link #getUpstreamMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getUpstream() { + return getUpstreamMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public java.util.Map getUpstreamMap() { + return internalGetUpstream().getMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetUpstream().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearUpstream() { + internalGetMutableUpstream().getMutableMap() + .clear(); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder removeUpstream( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableUpstream() { + return internalGetMutableUpstream().getMutableMap(); + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + public Builder putUpstream( + java.lang.String key, + flyteidl.core.Compiler.ConnectionSet.IdList value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableUpstream().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * A list of all the node ids, that are upstream of this node id
+       * 
+ * + * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; + */ + + public Builder putAllUpstream( + java.util.Map values) { + internalGetMutableUpstream().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ConnectionSet) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); + } + + public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ConnectionSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionSet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getTemplate(); + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); + + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + boolean hasConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSet getConnections(); + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); + } + /** + *
+   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class CompiledWorkflow extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) + CompiledWorkflowOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflow.newBuilder() to construct. + private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflow() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflow( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; + if (connections_ != null) { + subBuilder = connections_.toBuilder(); + } + connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connections_); + connections_ = subBuilder.buildPartial(); + } + + 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.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate template_; + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained Workflow Template
+     * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + public static final int CONNECTIONS_FIELD_NUMBER = 2; + private flyteidl.core.Compiler.ConnectionSet connections_; + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connections_ != null; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + /** + *
+     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+     * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + return getConnections(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + if (connections_ != null) { + output.writeMessage(2, getConnections()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + if (connections_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnections()); + } + 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.Compiler.CompiledWorkflow)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; + + boolean result = true; + result = result && (hasTemplate() == other.hasTemplate()); + if (hasTemplate()) { + result = result && getTemplate() + .equals(other.getTemplate()); + } + result = result && (hasConnections() == other.hasConnections()); + if (hasConnections()) { + result = result && getConnections() + .equals(other.getConnections()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + if (hasConnections()) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnections().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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.Compiler.CompiledWorkflow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow 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.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.CompiledWorkflow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflow} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) + flyteidl.core.Compiler.CompiledWorkflowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + if (connectionsBuilder_ == null) { + connections_ = null; + } else { + connections_ = null; + connectionsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; + } + + public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); + } + + public flyteidl.core.Compiler.CompiledWorkflow build() { + flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { + flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + if (connectionsBuilder_ == null) { + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.CompiledWorkflow) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { + if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + if (other.hasConnections()) { + mergeConnections(other.getConnections()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.CompiledWorkflow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.WorkflowTemplate template_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained Workflow Template
+       * 
+ * + * .flyteidl.core.WorkflowTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + + private flyteidl.core.Compiler.ConnectionSet connections_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public boolean hasConnections() { + return connectionsBuilder_ != null || connections_ != null; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet getConnections() { + if (connectionsBuilder_ == null) { + return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } else { + return connectionsBuilder_.getMessage(); + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connections_ = value; + onChanged(); + } else { + connectionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder setConnections( + flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { + if (connectionsBuilder_ == null) { + connections_ = builderForValue.build(); + onChanged(); + } else { + connectionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { + if (connectionsBuilder_ == null) { + if (connections_ != null) { + connections_ = + flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); + } else { + connections_ = value; + } + onChanged(); + } else { + connectionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = null; + onChanged(); + } else { + connections_ = null; + connectionsBuilder_ = null; + } + + return this; + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { + + onChanged(); + return getConnectionsFieldBuilder().getBuilder(); + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilder(); + } else { + return connections_ == null ? + flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; + } + } + /** + *
+       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
+       * 
+ * + * .flyteidl.core.ConnectionSet connections = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( + getConnections(), + getParentForChildren(), + isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CompiledWorkflow) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); + } + + public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CompiledWorkflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledTaskOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + boolean hasTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplate getTemplate(); + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); + } + /** + *
+   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class CompiledTask extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) + CompiledTaskOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledTask.newBuilder() to construct. + private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledTask() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledTask( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; + if (template_ != null) { + subBuilder = template_.toBuilder(); + } + template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(template_); + template_ = subBuilder.buildPartial(); + } + + 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.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + public static final int TEMPLATE_FIELD_NUMBER = 1; + private flyteidl.core.Tasks.TaskTemplate template_; + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return template_ != null; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + /** + *
+     * Completely contained TaskTemplate
+     * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + return getTemplate(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (template_ != null) { + output.writeMessage(1, getTemplate()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (template_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTemplate()); + } + 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.Compiler.CompiledTask)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; + + boolean result = true; + result = result && (hasTemplate() == other.hasTemplate()); + if (hasTemplate()) { + result = result && getTemplate() + .equals(other.getTemplate()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTemplate()) { + hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask 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.Compiler.CompiledTask parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask 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.Compiler.CompiledTask parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledTask parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.CompiledTask prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledTask} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) + flyteidl.core.Compiler.CompiledTaskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledTask.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (templateBuilder_ == null) { + template_ = null; + } else { + template_ = null; + templateBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; + } + + public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); + } + + public flyteidl.core.Compiler.CompiledTask build() { + flyteidl.core.Compiler.CompiledTask result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Compiler.CompiledTask buildPartial() { + flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); + if (templateBuilder_ == null) { + result.template_ = template_; + } else { + result.template_ = templateBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.CompiledTask) { + return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { + if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; + if (other.hasTemplate()) { + mergeTemplate(other.getTemplate()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.CompiledTask parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Tasks.TaskTemplate template_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public boolean hasTemplate() { + return templateBuilder_ != null || template_ != null; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate getTemplate() { + if (templateBuilder_ == null) { + return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } else { + return templateBuilder_.getMessage(); + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + template_ = value; + onChanged(); + } else { + templateBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder setTemplate( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (templateBuilder_ == null) { + template_ = builderForValue.build(); + onChanged(); + } else { + templateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { + if (templateBuilder_ == null) { + if (template_ != null) { + template_ = + flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); + } else { + template_ = value; + } + onChanged(); + } else { + templateBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public Builder clearTemplate() { + if (templateBuilder_ == null) { + template_ = null; + onChanged(); + } else { + template_ = null; + templateBuilder_ = null; + } + + return this; + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { + + onChanged(); + return getTemplateFieldBuilder().getBuilder(); + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { + if (templateBuilder_ != null) { + return templateBuilder_.getMessageOrBuilder(); + } else { + return template_ == null ? + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; + } + } + /** + *
+       * Completely contained TaskTemplate
+       * 
+ * + * .flyteidl.core.TaskTemplate template = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTemplateFieldBuilder() { + if (templateBuilder_ == null) { + templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + getTemplate(), + getParentForChildren(), + isClean()); + template_ = null; + } + return templateBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CompiledTask) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); + } + + public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CompiledTask parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledTask(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CompiledWorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + boolean hasPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflow getPrimary(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); + + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + int getSubWorkflowsCount(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + java.util.List + getSubWorkflowsOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index); + + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTask getTasks(int index); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + int getTasksCount(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+   * compiled subworkflows.
+   * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class CompiledWorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) + CompiledWorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CompiledWorkflowClosure.newBuilder() to construct. + private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CompiledWorkflowClosure() { + subWorkflows_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CompiledWorkflowClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Compiler.CompiledWorkflow.Builder subBuilder = null; + if (primary_ != null) { + subBuilder = primary_.toBuilder(); + } + primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(primary_); + primary_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + subWorkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + subWorkflows_.add( + input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tasks_.add( + input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry)); + 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_ & 0x00000002) == 0x00000002)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int PRIMARY_FIELD_NUMBER = 1; + private flyteidl.core.Compiler.CompiledWorkflow primary_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primary_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + return getPrimary(); + } + + public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; + private java.util.List subWorkflows_; + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + return subWorkflows_; + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + return subWorkflows_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + return subWorkflows_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+     * as an inlined workflow
+     *+optional
+     * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + return subWorkflows_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 3; + private java.util.List tasks_; + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+     *+required (atleast 1)
+     * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (primary_ != null) { + output.writeMessage(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + output.writeMessage(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(3, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (primary_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrimary()); + } + for (int i = 0; i < subWorkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, subWorkflows_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, tasks_.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.core.Compiler.CompiledWorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; + + boolean result = true; + result = result && (hasPrimary() == other.hasPrimary()); + if (hasPrimary()) { + result = result && getPrimary() + .equals(other.getPrimary()); + } + result = result && getSubWorkflowsList() + .equals(other.getSubWorkflowsList()); + result = result && getTasksList() + .equals(other.getTasksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrimary()) { + hash = (37 * hash) + PRIMARY_FIELD_NUMBER; + hash = (53 * hash) + getPrimary().hashCode(); + } + if (getSubWorkflowsCount() > 0) { + hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure 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.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Compiler.CompiledWorkflowClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
+     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
+     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
+     * compiled subworkflows.
+     * 
+ * + * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) + flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubWorkflowsFieldBuilder(); + getTasksFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (primaryBuilder_ == null) { + primary_ = null; + } else { + primary_ = null; + primaryBuilder_ = null; + } + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + subWorkflowsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + tasksBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + } + + public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); + } + + public flyteidl.core.Compiler.CompiledWorkflowClosure build() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { + flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (primaryBuilder_ == null) { + result.primary_ = primary_; + } else { + result.primary_ = primaryBuilder_.build(); + } + if (subWorkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.subWorkflows_ = subWorkflows_; + } else { + result.subWorkflows_ = subWorkflowsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Compiler.CompiledWorkflowClosure) { + return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { + if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; + if (other.hasPrimary()) { + mergePrimary(other.getPrimary()); + } + if (subWorkflowsBuilder_ == null) { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflows_.isEmpty()) { + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSubWorkflowsIsMutable(); + subWorkflows_.addAll(other.subWorkflows_); + } + onChanged(); + } + } else { + if (!other.subWorkflows_.isEmpty()) { + if (subWorkflowsBuilder_.isEmpty()) { + subWorkflowsBuilder_.dispose(); + subWorkflowsBuilder_ = null; + subWorkflows_ = other.subWorkflows_; + bitField0_ = (bitField0_ & ~0x00000002); + subWorkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubWorkflowsFieldBuilder() : null; + } else { + subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000004); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Compiler.CompiledWorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Compiler.CompiledWorkflow primary_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public boolean hasPrimary() { + return primaryBuilder_ != null || primary_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { + if (primaryBuilder_ == null) { + return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } else { + return primaryBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + primary_ = value; + onChanged(); + } else { + primaryBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder setPrimary( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (primaryBuilder_ == null) { + primary_ = builderForValue.build(); + onChanged(); + } else { + primaryBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { + if (primaryBuilder_ == null) { + if (primary_ != null) { + primary_ = + flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); + } else { + primary_ = value; + } + onChanged(); + } else { + primaryBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public Builder clearPrimary() { + if (primaryBuilder_ == null) { + primary_ = null; + onChanged(); + } else { + primary_ = null; + primaryBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { + + onChanged(); + return getPrimaryFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { + if (primaryBuilder_ != null) { + return primaryBuilder_.getMessageOrBuilder(); + } else { + return primary_ == null ? + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.CompiledWorkflow primary = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getPrimaryFieldBuilder() { + if (primaryBuilder_ == null) { + primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + getPrimary(), + getParentForChildren(), + isClean()); + primary_ = null; + } + return primaryBuilder_; + } + + private java.util.List subWorkflows_ = + java.util.Collections.emptyList(); + private void ensureSubWorkflowsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + subWorkflows_ = new java.util.ArrayList(subWorkflows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List getSubWorkflowsList() { + if (subWorkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subWorkflows_); + } else { + return subWorkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public int getSubWorkflowsCount() { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.size(); + } else { + return subWorkflowsBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); + } else { + return subWorkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder setSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow value) { + if (subWorkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, value); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addSubWorkflows( + int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subWorkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder addAllSubWorkflows( + java.lang.Iterable values) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subWorkflows_); + onChanged(); + } else { + subWorkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder clearSubWorkflows() { + if (subWorkflowsBuilder_ == null) { + subWorkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + subWorkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public Builder removeSubWorkflows(int index) { + if (subWorkflowsBuilder_ == null) { + ensureSubWorkflowsIsMutable(); + subWorkflows_.remove(index); + onChanged(); + } else { + subWorkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( + int index) { + if (subWorkflowsBuilder_ == null) { + return subWorkflows_.get(index); } else { + return subWorkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsOrBuilderList() { + if (subWorkflowsBuilder_ != null) { + return subWorkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subWorkflows_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { + return getSubWorkflowsFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( + int index) { + return getSubWorkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
+       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
+       * as an inlined workflow
+       *+optional
+       * 
+ * + * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + public java.util.List + getSubWorkflowsBuilderList() { + return getSubWorkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> + getSubWorkflowsFieldBuilder() { + if (subWorkflowsBuilder_ == null) { + subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( + subWorkflows_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + subWorkflows_ = null; + } + return subWorkflowsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; + + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder setTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addTasks( + int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); + } + /** + *
+       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
+       *+required (atleast 1)
+       * 
+ * + * repeated .flyteidl.core.CompiledTask tasks = 3; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( + tasks_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.CompiledWorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); + } + + public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CompiledWorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CompiledWorkflowClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflow_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledTask_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/compiler.proto\022\rflyteidl" + + ".core\032\034flyteidl/core/workflow.proto\032\031fly" + + "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + + "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + + "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + + " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + + "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + + "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + + ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + + "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + + " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + + "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + + "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + + "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + + "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + + "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + + "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + + "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + + "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + + "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + + "iledTaskB2Z0github.com/lyft/flyteidl/gen" + + "/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ConnectionSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_descriptor, + new java.lang.String[] { "Downstream", "Upstream", }); + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_IdList_descriptor, + new java.lang.String[] { "Ids", }); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor = + internal_static_flyteidl_core_ConnectionSet_descriptor.getNestedTypes().get(2); + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_CompiledWorkflow_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflow_descriptor, + new java.lang.String[] { "Template", "Connections", }); + internal_static_flyteidl_core_CompiledTask_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_CompiledTask_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledTask_descriptor, + new java.lang.String[] { "Template", }); + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor, + new java.lang.String[] { "Primary", "SubWorkflows", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Condition.java b/flyteidl/gen/pb-java/flyteidl/core/Condition.java new file mode 100644 index 0000000000..5a06ab71e4 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Condition.java @@ -0,0 +1,3974 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/condition.proto + +package flyteidl.core; + +public final class Condition { + private Condition() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ComparisonExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ComparisonExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); + + /** + * .flyteidl.core.Operand left_value = 2; + */ + boolean hasLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.Operand getLeftValue(); + /** + * .flyteidl.core.Operand left_value = 2; + */ + flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); + + /** + * .flyteidl.core.Operand right_value = 3; + */ + boolean hasRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.Operand getRightValue(); + /** + * .flyteidl.core.Operand right_value = 3; + */ + flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); + } + /** + *
+   * 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.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class ComparisonExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) + ComparisonExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ComparisonExpression.newBuilder() to construct. + private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ComparisonExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ComparisonExpression( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (leftValue_ != null) { + subBuilder = leftValue_.toBuilder(); + } + leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftValue_); + leftValue_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.Operand.Builder subBuilder = null; + if (rightValue_ != null) { + subBuilder = rightValue_.toBuilder(); + } + rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightValue_); + rightValue_ = subBuilder.buildPartial(); + } + + 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.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + /** + *
+     * Binary Operator for each expression
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} + */ + public enum Operator + implements com.google.protobuf.ProtocolMessageEnum { + /** + * EQ = 0; + */ + EQ(0), + /** + * NEQ = 1; + */ + NEQ(1), + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + GT(2), + /** + * GTE = 3; + */ + GTE(3), + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + LT(4), + /** + * LTE = 5; + */ + LTE(5), + UNRECOGNIZED(-1), + ; + + /** + * EQ = 0; + */ + public static final int EQ_VALUE = 0; + /** + * NEQ = 1; + */ + public static final int NEQ_VALUE = 1; + /** + *
+       * Greater Than
+       * 
+ * + * GT = 2; + */ + public static final int GT_VALUE = 2; + /** + * GTE = 3; + */ + public static final int GTE_VALUE = 3; + /** + *
+       * Less Than
+       * 
+ * + * LT = 4; + */ + public static final int LT_VALUE = 4; + /** + * LTE = 5; + */ + public static final int LTE_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operator valueOf(int value) { + return forNumber(value); + } + + public static Operator forNumber(int value) { + switch (value) { + case 0: return EQ; + case 1: return NEQ; + case 2: return GT; + case 3: return GTE; + case 4: return LT; + case 5: return LTE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Operator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operator findValueByNumber(int number) { + return Operator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final Operator[] VALUES = values(); + + public static Operator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + + public static final int LEFT_VALUE_FIELD_NUMBER = 2; + private flyteidl.core.Condition.Operand leftValue_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + return getLeftValue(); + } + + public static final int RIGHT_VALUE_FIELD_NUMBER = 3; + private flyteidl.core.Condition.Operand rightValue_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + return getRightValue(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftValue_ != null) { + output.writeMessage(2, getLeftValue()); + } + if (rightValue_ != null) { + output.writeMessage(3, getRightValue()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftValue()); + } + if (rightValue_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightValue()); + } + 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.Condition.ComparisonExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; + + boolean result = true; + result = result && operator_ == other.operator_; + result = result && (hasLeftValue() == other.hasLeftValue()); + if (hasLeftValue()) { + result = result && getLeftValue() + .equals(other.getLeftValue()); + } + result = result && (hasRightValue() == other.hasRightValue()); + if (hasRightValue()) { + result = result && getRightValue() + .equals(other.getRightValue()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftValue()) { + hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getLeftValue().hashCode(); + } + if (hasRightValue()) { + hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRightValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression 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.Condition.ComparisonExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression 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.Condition.ComparisonExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ComparisonExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.ComparisonExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * 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.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ComparisonExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) + flyteidl.core.Condition.ComparisonExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ComparisonExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + operator_ = 0; + + if (leftValueBuilder_ == null) { + leftValue_ = null; + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + if (rightValueBuilder_ == null) { + rightValue_ = null; + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; + } + + public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + public flyteidl.core.Condition.ComparisonExpression build() { + flyteidl.core.Condition.ComparisonExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Condition.ComparisonExpression buildPartial() { + flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); + result.operator_ = operator_; + if (leftValueBuilder_ == null) { + result.leftValue_ = leftValue_; + } else { + result.leftValue_ = leftValueBuilder_.build(); + } + if (rightValueBuilder_ == null) { + result.rightValue_ = rightValue_; + } else { + result.rightValue_ = rightValueBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.ComparisonExpression) { + return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { + if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftValue()) { + mergeLeftValue(other.getLeftValue()); + } + if (other.hasRightValue()) { + mergeRightValue(other.getRightValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.ComparisonExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { + flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.Operand leftValue_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; + /** + * .flyteidl.core.Operand left_value = 2; + */ + public boolean hasLeftValue() { + return leftValueBuilder_ != null || leftValue_ != null; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand getLeftValue() { + if (leftValueBuilder_ == null) { + return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } else { + return leftValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftValue_ = value; + onChanged(); + } else { + leftValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder setLeftValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (leftValueBuilder_ == null) { + leftValue_ = builderForValue.build(); + onChanged(); + } else { + leftValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { + if (leftValueBuilder_ == null) { + if (leftValue_ != null) { + leftValue_ = + flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); + } else { + leftValue_ = value; + } + onChanged(); + } else { + leftValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public Builder clearLeftValue() { + if (leftValueBuilder_ == null) { + leftValue_ = null; + onChanged(); + } else { + leftValue_ = null; + leftValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { + + onChanged(); + return getLeftValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { + if (leftValueBuilder_ != null) { + return leftValueBuilder_.getMessageOrBuilder(); + } else { + return leftValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; + } + } + /** + * .flyteidl.core.Operand left_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getLeftValueFieldBuilder() { + if (leftValueBuilder_ == null) { + leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getLeftValue(), + getParentForChildren(), + isClean()); + leftValue_ = null; + } + return leftValueBuilder_; + } + + private flyteidl.core.Condition.Operand rightValue_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; + /** + * .flyteidl.core.Operand right_value = 3; + */ + public boolean hasRightValue() { + return rightValueBuilder_ != null || rightValue_ != null; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand getRightValue() { + if (rightValueBuilder_ == null) { + return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } else { + return rightValueBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightValue_ = value; + onChanged(); + } else { + rightValueBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder setRightValue( + flyteidl.core.Condition.Operand.Builder builderForValue) { + if (rightValueBuilder_ == null) { + rightValue_ = builderForValue.build(); + onChanged(); + } else { + rightValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { + if (rightValueBuilder_ == null) { + if (rightValue_ != null) { + rightValue_ = + flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); + } else { + rightValue_ = value; + } + onChanged(); + } else { + rightValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public Builder clearRightValue() { + if (rightValueBuilder_ == null) { + rightValue_ = null; + onChanged(); + } else { + rightValue_ = null; + rightValueBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { + + onChanged(); + return getRightValueFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { + if (rightValueBuilder_ != null) { + return rightValueBuilder_.getMessageOrBuilder(); + } else { + return rightValue_ == null ? + flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; + } + } + /** + * .flyteidl.core.Operand right_value = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> + getRightValueFieldBuilder() { + if (rightValueBuilder_ == null) { + rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( + getRightValue(), + getParentForChildren(), + isClean()); + rightValue_ = null; + } + return rightValueBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ComparisonExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); + } + + public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ComparisonExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComparisonExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OperandOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + + public flyteidl.core.Condition.Operand.ValCase getValCase(); + } + /** + *
+   * Defines an operand to a comparison expression.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Operand extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) + OperandOrBuilder { + private static final long serialVersionUID = 0L; + // Use Operand.newBuilder() to construct. + private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Operand() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Operand( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); + } + val_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); + val_ = subBuilder.buildPartial(); + } + valCase_ = 1; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + valCase_ = 2; + val_ = s; + 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.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + private int valCase_ = 0; + private java.lang.Object val_; + public enum ValCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + VAR(2), + VAL_NOT_SET(0); + private final int value; + private ValCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValCase valueOf(int value) { + return forNumber(value); + } + + public static ValCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return VAR; + case 0: return VAL_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + *
+     * Can be a constant
+     * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int VAR_FIELD_NUMBER = 2; + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + 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(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } + } + /** + *
+     * Or one of this node's input variables
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); + } + if (valCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); + } + 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.Condition.Operand)) { + return super.equals(obj); + } + flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; + + boolean result = true; + result = result && getValCase().equals( + other.getValCase()); + if (!result) return false; + switch (valCase_) { + case 1: + result = result && getPrimitive() + .equals(other.getPrimitive()); + break; + case 2: + result = result && getVar() + .equals(other.getVar()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand 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.Condition.Operand parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.Operand parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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.Condition.Operand parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand 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.Condition.Operand parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.Operand parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.Operand prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines an operand to a comparison expression.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Operand} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) + flyteidl.core.Condition.OperandOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); + } + + // Construct using flyteidl.core.Condition.Operand.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + valCase_ = 0; + val_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; + } + + public flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return flyteidl.core.Condition.Operand.getDefaultInstance(); + } + + public flyteidl.core.Condition.Operand build() { + flyteidl.core.Condition.Operand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Condition.Operand buildPartial() { + flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); + if (valCase_ == 1) { + if (primitiveBuilder_ == null) { + result.val_ = val_; + } else { + result.val_ = primitiveBuilder_.build(); + } + } + if (valCase_ == 2) { + result.val_ = val_; + } + result.valCase_ = valCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.Operand) { + return mergeFrom((flyteidl.core.Condition.Operand)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.Operand other) { + if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; + switch (other.getValCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case VAR: { + valCase_ = 2; + val_ = other.val_; + onChanged(); + break; + } + case VAL_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.Operand parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valCase_ = 0; + private java.lang.Object val_; + public ValCase + getValCase() { + return ValCase.forNumber( + valCase_); + } + + public Builder clearVal() { + valCase_ = 0; + val_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valCase_ == 1; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + val_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + val_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valCase_ == 1 && + val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) + .mergeFrom(value).buildPartial(); + } else { + val_ = value; + } + onChanged(); + } else { + if (valCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valCase_ = 1; + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + onChanged(); + } + } else { + if (valCase_ == 1) { + valCase_ = 0; + val_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valCase_ == 1) { + return (flyteidl.core.Literals.Primitive) val_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + *
+       * Can be a constant
+       * 
+ * + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valCase_ == 1)) { + val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) val_, + getParentForChildren(), + isClean()); + val_ = null; + } + valCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valCase_ == 2) { + val_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = ""; + if (valCase_ == 2) { + ref = val_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valCase_ == 2) { + val_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valCase_ = 2; + val_ = value; + onChanged(); + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + if (valCase_ == 2) { + valCase_ = 0; + val_ = null; + onChanged(); + } + return this; + } + /** + *
+       * Or one of this node's input variables
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valCase_ = 2; + val_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Operand) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); + } + + public static flyteidl.core.Condition.Operand getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Operand parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Operand(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Condition.Operand getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BooleanExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + boolean hasConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpression getConjunction(); + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); + + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + boolean hasComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpression getComparison(); + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); + + public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); + } + /** + *
+   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class BooleanExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) + BooleanExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BooleanExpression.newBuilder() to construct. + private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BooleanExpression() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BooleanExpression( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Condition.ConjunctionExpression.Builder subBuilder = null; + if (exprCase_ == 1) { + subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: { + flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; + if (exprCase_ == 2) { + subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + 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.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + public enum ExprCase + implements com.google.protobuf.Internal.EnumLite { + CONJUNCTION(1), + COMPARISON(2), + EXPR_NOT_SET(0); + private final int value; + private ExprCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: return CONJUNCTION; + case 2: return COMPARISON; + case 0: return EXPR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public static final int CONJUNCTION_FIELD_NUMBER = 1; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + public static final int COMPARISON_FIELD_NUMBER = 2; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); + } + if (exprCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); + } + 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.Condition.BooleanExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; + + boolean result = true; + result = result && getExprCase().equals( + other.getExprCase()); + if (!result) return false; + switch (exprCase_) { + case 1: + result = result && getConjunction() + .equals(other.getConjunction()); + break; + case 2: + result = result && getComparison() + .equals(other.getComparison()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getConjunction().hashCode(); + break; + case 2: + hash = (37 * hash) + COMPARISON_FIELD_NUMBER; + hash = (53 * hash) + getComparison().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression 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.Condition.BooleanExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression 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.Condition.BooleanExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.BooleanExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.BooleanExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
+     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BooleanExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) + flyteidl.core.Condition.BooleanExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.BooleanExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + exprCase_ = 0; + expr_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; + } + + public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); + } + + public flyteidl.core.Condition.BooleanExpression build() { + flyteidl.core.Condition.BooleanExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Condition.BooleanExpression buildPartial() { + flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); + if (exprCase_ == 1) { + if (conjunctionBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = conjunctionBuilder_.build(); + } + } + if (exprCase_ == 2) { + if (comparisonBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = comparisonBuilder_.build(); + } + } + result.exprCase_ = exprCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.BooleanExpression) { + return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { + if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; + switch (other.getExprCase()) { + case CONJUNCTION: { + mergeConjunction(other.getConjunction()); + break; + } + case COMPARISON: { + mergeComparison(other.getComparison()); + break; + } + case EXPR_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.BooleanExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int exprCase_ = 0; + private java.lang.Object expr_; + public ExprCase + getExprCase() { + return ExprCase.forNumber( + exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public boolean hasConjunction() { + return exprCase_ == 1; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression getConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return conjunctionBuilder_.getMessage(); + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder setConjunction( + flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { + if (conjunctionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + conjunctionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1 && + expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + conjunctionBuilder_.mergeFrom(value); + } + conjunctionBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public Builder clearConjunction() { + if (conjunctionBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + conjunctionBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { + return getConjunctionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { + if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { + return conjunctionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (flyteidl.core.Condition.ConjunctionExpression) expr_; + } + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ConjunctionExpression conjunction = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> + getConjunctionFieldBuilder() { + if (conjunctionBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( + (flyteidl.core.Condition.ConjunctionExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged();; + return conjunctionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public boolean hasComparison() { + return exprCase_ == 2; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression getComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return comparisonBuilder_.getMessage(); + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder setComparison( + flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { + if (comparisonBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + comparisonBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2 && + expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { + expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) + .mergeFrom(value).buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + comparisonBuilder_.mergeFrom(value); + } + comparisonBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public Builder clearComparison() { + if (comparisonBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + comparisonBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { + return getComparisonFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { + if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { + return comparisonBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (flyteidl.core.Condition.ComparisonExpression) expr_; + } + return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + } + /** + * .flyteidl.core.ComparisonExpression comparison = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> + getComparisonFieldBuilder() { + if (comparisonBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); + } + comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( + (flyteidl.core.Condition.ComparisonExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged();; + return comparisonBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BooleanExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); + } + + public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BooleanExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BooleanExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ConjunctionExpressionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + int getOperatorValue(); + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); + + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + boolean hasLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpression getLeftExpression(); + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); + + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + boolean hasRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpression getRightExpression(); + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); + } + /** + *
+   * Defines a conjunction expression of two boolean expressions.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class ConjunctionExpression extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) + ConjunctionExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConjunctionExpression.newBuilder() to construct. + private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConjunctionExpression() { + operator_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConjunctionExpression( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + operator_ = rawValue; + break; + } + case 18: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (leftExpression_ != null) { + subBuilder = leftExpression_.toBuilder(); + } + leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(leftExpression_); + leftExpression_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (rightExpression_ != null) { + subBuilder = rightExpression_.toBuilder(); + } + rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rightExpression_); + rightExpression_ = subBuilder.buildPartial(); + } + + 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.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + /** + *
+     * Nested conditions. They can be conjoined using AND / OR
+     * Order of evaluation is not important as the operators are Commutative
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} + */ + public enum LogicalOperator + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + AND(0), + /** + * OR = 1; + */ + OR(1), + UNRECOGNIZED(-1), + ; + + /** + *
+       * Conjunction
+       * 
+ * + * AND = 0; + */ + public static final int AND_VALUE = 0; + /** + * OR = 1; + */ + public static final int OR_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogicalOperator valueOf(int value) { + return forNumber(value); + } + + public static LogicalOperator forNumber(int value) { + switch (value) { + case 0: return AND; + case 1: return OR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LogicalOperator> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogicalOperator findValueByNumber(int number) { + return LogicalOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); + } + + private static final LogicalOperator[] VALUES = values(); + + public static LogicalOperator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LogicalOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) + } + + public static final int OPERATOR_FIELD_NUMBER = 1; + private int operator_; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + + public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; + private flyteidl.core.Condition.BooleanExpression leftExpression_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + return getLeftExpression(); + } + + public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; + private flyteidl.core.Condition.BooleanExpression rightExpression_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + return getRightExpression(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + output.writeEnum(1, operator_); + } + if (leftExpression_ != null) { + output.writeMessage(2, getLeftExpression()); + } + if (rightExpression_ != null) { + output.writeMessage(3, getRightExpression()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, operator_); + } + if (leftExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLeftExpression()); + } + if (rightExpression_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRightExpression()); + } + 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.Condition.ConjunctionExpression)) { + return super.equals(obj); + } + flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; + + boolean result = true; + result = result && operator_ == other.operator_; + result = result && (hasLeftExpression() == other.hasLeftExpression()); + if (hasLeftExpression()) { + result = result && getLeftExpression() + .equals(other.getLeftExpression()); + } + result = result && (hasRightExpression() == other.hasRightExpression()); + if (hasRightExpression()) { + result = result && getRightExpression() + .equals(other.getRightExpression()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + operator_; + if (hasLeftExpression()) { + hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getLeftExpression().hashCode(); + } + if (hasRightExpression()) { + hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRightExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression 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.Condition.ConjunctionExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression 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.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Condition.ConjunctionExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Condition.ConjunctionExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a conjunction expression of two boolean expressions.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ConjunctionExpression} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) + flyteidl.core.Condition.ConjunctionExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); + } + + // Construct using flyteidl.core.Condition.ConjunctionExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + operator_ = 0; + + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; + } + + public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); + } + + public flyteidl.core.Condition.ConjunctionExpression build() { + flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Condition.ConjunctionExpression buildPartial() { + flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); + result.operator_ = operator_; + if (leftExpressionBuilder_ == null) { + result.leftExpression_ = leftExpression_; + } else { + result.leftExpression_ = leftExpressionBuilder_.build(); + } + if (rightExpressionBuilder_ == null) { + result.rightExpression_ = rightExpression_; + } else { + result.rightExpression_ = rightExpressionBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Condition.ConjunctionExpression) { + return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { + if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; + if (other.operator_ != 0) { + setOperatorValue(other.getOperatorValue()); + } + if (other.hasLeftExpression()) { + mergeLeftExpression(other.getLeftExpression()); + } + if (other.hasRightExpression()) { + mergeRightExpression(other.getRightExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Condition.ConjunctionExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operator_ = 0; + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public int getOperatorValue() { + return operator_; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperatorValue(int value) { + operator_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { + flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); + return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { + if (value == null) { + throw new NullPointerException(); + } + + operator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + public Builder clearOperator() { + + operator_ = 0; + onChanged(); + return this; + } + + private flyteidl.core.Condition.BooleanExpression leftExpression_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public boolean hasLeftExpression() { + return leftExpressionBuilder_ != null || leftExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression getLeftExpression() { + if (leftExpressionBuilder_ == null) { + return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } else { + return leftExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leftExpression_ = value; + onChanged(); + } else { + leftExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder setLeftExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (leftExpressionBuilder_ == null) { + leftExpression_ = builderForValue.build(); + onChanged(); + } else { + leftExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { + if (leftExpressionBuilder_ == null) { + if (leftExpression_ != null) { + leftExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); + } else { + leftExpression_ = value; + } + onChanged(); + } else { + leftExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public Builder clearLeftExpression() { + if (leftExpressionBuilder_ == null) { + leftExpression_ = null; + onChanged(); + } else { + leftExpression_ = null; + leftExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { + + onChanged(); + return getLeftExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { + if (leftExpressionBuilder_ != null) { + return leftExpressionBuilder_.getMessageOrBuilder(); + } else { + return leftExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression left_expression = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getLeftExpressionFieldBuilder() { + if (leftExpressionBuilder_ == null) { + leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getLeftExpression(), + getParentForChildren(), + isClean()); + leftExpression_ = null; + } + return leftExpressionBuilder_; + } + + private flyteidl.core.Condition.BooleanExpression rightExpression_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public boolean hasRightExpression() { + return rightExpressionBuilder_ != null || rightExpression_ != null; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression getRightExpression() { + if (rightExpressionBuilder_ == null) { + return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } else { + return rightExpressionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rightExpression_ = value; + onChanged(); + } else { + rightExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder setRightExpression( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (rightExpressionBuilder_ == null) { + rightExpression_ = builderForValue.build(); + onChanged(); + } else { + rightExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { + if (rightExpressionBuilder_ == null) { + if (rightExpression_ != null) { + rightExpression_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); + } else { + rightExpression_ = value; + } + onChanged(); + } else { + rightExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public Builder clearRightExpression() { + if (rightExpressionBuilder_ == null) { + rightExpression_ = null; + onChanged(); + } else { + rightExpression_ = null; + rightExpressionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { + + onChanged(); + return getRightExpressionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { + if (rightExpressionBuilder_ != null) { + return rightExpressionBuilder_.getMessageOrBuilder(); + } else { + return rightExpression_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; + } + } + /** + * .flyteidl.core.BooleanExpression right_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getRightExpressionFieldBuilder() { + if (rightExpressionBuilder_ == null) { + rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getRightExpression(), + getParentForChildren(), + isClean()); + rightExpression_ = null; + } + return rightExpressionBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ConjunctionExpression) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); + } + + public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ConjunctionExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConjunctionExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ComparisonExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Operand_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Operand_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BooleanExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ConjunctionExpression_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/core/condition.proto\022\rflyteid" + + "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + + "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + + ",.flyteidl.core.ComparisonExpression.Ope" + + "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + + "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + + "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + + "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"N\n" + + "\007Operand\022-\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + + "ore.PrimitiveH\000\022\r\n\003var\030\002 \001(\tH\000B\005\n\003val\"\223\001" + + "\n\021BooleanExpression\022;\n\013conjunction\030\001 \001(\013" + + "2$.flyteidl.core.ConjunctionExpressionH\000" + + "\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.core.Com" + + "parisonExpressionH\000B\006\n\004expr\"\372\001\n\025Conjunct" + + "ionExpression\022F\n\010operator\030\001 \001(\01624.flytei" + + "dl.core.ConjunctionExpression.LogicalOpe" + + "rator\0229\n\017left_expression\030\002 \001(\0132 .flyteid" + + "l.core.BooleanExpression\022:\n\020right_expres" + + "sion\030\003 \001(\0132 .flyteidl.core.BooleanExpres" + + "sion\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n\002OR\020\001" + + "B2Z0github.com/lyft/flyteidl/gen/pb-go/f" + + "lyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_ComparisonExpression_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ComparisonExpression_descriptor, + new java.lang.String[] { "Operator", "LeftValue", "RightValue", }); + internal_static_flyteidl_core_Operand_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Operand_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Operand_descriptor, + new java.lang.String[] { "Primitive", "Var", "Val", }); + internal_static_flyteidl_core_BooleanExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BooleanExpression_descriptor, + new java.lang.String[] { "Conjunction", "Comparison", "Expr", }); + internal_static_flyteidl_core_ConjunctionExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ConjunctionExpression_descriptor, + new java.lang.String[] { "Operator", "LeftExpression", "RightExpression", }); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java b/flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java new file mode 100644 index 0000000000..a23e068437 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/DynamicJob.java @@ -0,0 +1,2519 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/dynamic_job.proto + +package flyteidl.core; + +public final class DynamicJob { + private DynamicJob() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface DynamicJobSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.DynamicJobSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + int getNodesCount(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + long getMinSuccesses(); + + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + int getOutputsCount(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + int getTasksCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + int getSubworkflowsCount(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + java.util.List + getSubworkflowsOrBuilderList(); + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index); + } + /** + *
+   * Describes a set of tasks to execute and how the final outputs are produced.
+   * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class DynamicJobSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) + DynamicJobSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DynamicJobSpec.newBuilder() to construct. + private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DynamicJobSpec() { + nodes_ = java.util.Collections.emptyList(); + minSuccesses_ = 0L; + outputs_ = java.util.Collections.emptyList(); + tasks_ = java.util.Collections.emptyList(); + subworkflows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DynamicJobSpec( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 16: { + + minSuccesses_ = input.readInt64(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + subworkflows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + subworkflows_.add( + input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry)); + 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) == 0x00000001)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + private int bitField0_; + public static final int NODES_FIELD_NUMBER = 1; + private java.util.List nodes_; + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A collection of nodes to execute.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; + private long minSuccesses_; + /** + *
+     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+     * specified, is the count of nodes repeated field.
+     * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + public static final int OUTPUTS_FIELD_NUMBER = 3; + private java.util.List outputs_; + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+     * in bindings should have the generated id for the subtask.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int TASKS_FIELD_NUMBER = 4; + private java.util.List tasks_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; + private java.util.List subworkflows_; + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + return subworkflows_; + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + return subworkflows_.size(); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + return subworkflows_.get(index); + } + /** + *
+     * [Optional] A complete list of task specs referenced in nodes.
+     * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + return subworkflows_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + output.writeInt64(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + output.writeMessage(5, subworkflows_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodes_.get(i)); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, minSuccesses_); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, outputs_.get(i)); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, tasks_.get(i)); + } + for (int i = 0; i < subworkflows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, subworkflows_.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.core.DynamicJob.DynamicJobSpec)) { + return super.equals(obj); + } + flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; + + boolean result = true; + result = result && getNodesList() + .equals(other.getNodesList()); + result = result && (getMinSuccesses() + == other.getMinSuccesses()); + result = result && getOutputsList() + .equals(other.getOutputsList()); + result = result && getTasksList() + .equals(other.getTasksList()); + result = result && getSubworkflowsList() + .equals(other.getSubworkflowsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + if (getSubworkflowsCount() > 0) { + hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; + hash = (53 * hash) + getSubworkflowsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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.DynamicJob.DynamicJobSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec 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.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.DynamicJob.DynamicJobSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Describes a set of tasks to execute and how the final outputs are produced.
+     * 
+ * + * Protobuf type {@code flyteidl.core.DynamicJobSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) + flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); + } + + // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + getTasksFieldBuilder(); + getSubworkflowsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + nodesBuilder_.clear(); + } + minSuccesses_ = 0L; + + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + outputsBuilder_.clear(); + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + tasksBuilder_.clear(); + } + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; + } + + public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); + } + + public flyteidl.core.DynamicJob.DynamicJobSpec build() { + flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { + flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + result.minSuccesses_ = minSuccesses_; + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + if (subworkflowsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.subworkflows_ = subworkflows_; + } else { + result.subworkflows_ = subworkflowsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.DynamicJob.DynamicJobSpec) { + return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { + if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000001); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000004); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000008); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + if (subworkflowsBuilder_ == null) { + if (!other.subworkflows_.isEmpty()) { + if (subworkflows_.isEmpty()) { + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSubworkflowsIsMutable(); + subworkflows_.addAll(other.subworkflows_); + } + onChanged(); + } + } else { + if (!other.subworkflows_.isEmpty()) { + if (subworkflowsBuilder_.isEmpty()) { + subworkflowsBuilder_.dispose(); + subworkflowsBuilder_ = null; + subworkflows_ = other.subworkflows_; + bitField0_ = (bitField0_ & ~0x00000010); + subworkflowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubworkflowsFieldBuilder() : null; + } else { + subworkflowsBuilder_.addAllMessages(other.subworkflows_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.DynamicJob.DynamicJobSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A collection of nodes to execute.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 1; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
+       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
+       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
+       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
+       * specified, is the count of nodes repeated field.
+       * 
+ * + * int64 min_successes = 2; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 0L; + onChanged(); + return this; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
+       * in bindings should have the generated id for the subtask.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 3; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 4; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + + private java.util.List subworkflows_ = + java.util.Collections.emptyList(); + private void ensureSubworkflowsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + subworkflows_ = new java.util.ArrayList(subworkflows_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; + + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List getSubworkflowsList() { + if (subworkflowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subworkflows_); + } else { + return subworkflowsBuilder_.getMessageList(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public int getSubworkflowsCount() { + if (subworkflowsBuilder_ == null) { + return subworkflows_.size(); + } else { + return subworkflowsBuilder_.getCount(); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); + } else { + return subworkflowsBuilder_.getMessage(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, value); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder setSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.set(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate value) { + if (subworkflowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, value); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addSubworkflows( + int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.add(index, builderForValue.build()); + onChanged(); + } else { + subworkflowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder addAllSubworkflows( + java.lang.Iterable values) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subworkflows_); + onChanged(); + } else { + subworkflowsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder clearSubworkflows() { + if (subworkflowsBuilder_ == null) { + subworkflows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + subworkflowsBuilder_.clear(); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public Builder removeSubworkflows(int index) { + if (subworkflowsBuilder_ == null) { + ensureSubworkflowsIsMutable(); + subworkflows_.remove(index); + onChanged(); + } else { + subworkflowsBuilder_.remove(index); + } + return this; + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().getBuilder(index); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( + int index) { + if (subworkflowsBuilder_ == null) { + return subworkflows_.get(index); } else { + return subworkflowsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsOrBuilderList() { + if (subworkflowsBuilder_ != null) { + return subworkflowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subworkflows_); + } + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { + return getSubworkflowsFieldBuilder().addBuilder( + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( + int index) { + return getSubworkflowsFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); + } + /** + *
+       * [Optional] A complete list of task specs referenced in nodes.
+       * 
+ * + * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + public java.util.List + getSubworkflowsBuilderList() { + return getSubworkflowsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getSubworkflowsFieldBuilder() { + if (subworkflowsBuilder_ == null) { + subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + subworkflows_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + subworkflows_ = null; + } + return subworkflowsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.DynamicJobSpec) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); + } + + public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DynamicJobSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DynamicJobSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_DynamicJobSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037flyteidl/core/dynamic_job.proto\022\rflyte" + + "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + + "teidl/core/workflow.proto\032\034flyteidl/core" + + "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + + "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + + "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + + "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + + ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + + "2\037.flyteidl.core.WorkflowTemplateB2Z0git" + + "hub.com/lyft/flyteidl/gen/pb-go/flyteidl" + + "/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_DynamicJobSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_DynamicJobSpec_descriptor, + new java.lang.String[] { "Nodes", "MinSuccesses", "Outputs", "Tasks", "Subworkflows", }); + flyteidl.core.Tasks.getDescriptor(); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Errors.java b/flyteidl/gen/pb-java/flyteidl/core/Errors.java new file mode 100644 index 0000000000..7e1257e953 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Errors.java @@ -0,0 +1,1698 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/errors.proto + +package flyteidl.core; + +public final class Errors { + private Errors() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ContainerErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + int getKindValue(); + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + flyteidl.core.Errors.ContainerError.Kind getKind(); + } + /** + *
+   * Error message to propagate detailed errors from container executions to the execution
+   * engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class ContainerError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) + ContainerErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerError.newBuilder() to construct. + private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerError() { + code_ = ""; + message_ = ""; + kind_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerError( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + kind_ = rawValue; + 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.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + /** + *
+     * Defines a generic error type that dictates the behavior of the retry strategy.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.ContainerError.Kind} + */ + public enum Kind + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NON_RECOVERABLE = 0; + */ + NON_RECOVERABLE(0), + /** + * RECOVERABLE = 1; + */ + RECOVERABLE(1), + UNRECOGNIZED(-1), + ; + + /** + * NON_RECOVERABLE = 0; + */ + public static final int NON_RECOVERABLE_VALUE = 0; + /** + * RECOVERABLE = 1; + */ + public static final int RECOVERABLE_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Kind valueOf(int value) { + return forNumber(value); + } + + public static Kind forNumber(int value) { + switch (value) { + case 0: return NON_RECOVERABLE; + case 1: return RECOVERABLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Kind> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Kind findValueByNumber(int number) { + return Kind.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); + } + + private static final Kind[] VALUES = values(); + + public static Kind valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Kind(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + *
+     * A simplified code for errors, so that we can provide a glossary of all possible errors.
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * A detailed error message.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KIND_FIELD_NUMBER = 3; + private int kind_; + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+     * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + output.writeEnum(3, kind_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kind_); + } + 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.Errors.ContainerError)) { + return super.equals(obj); + } + flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; + + boolean result = true; + result = result && getCode() + .equals(other.getCode()); + result = result && getMessage() + .equals(other.getMessage()); + result = result && kind_ == other.kind_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + kind_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError 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.Errors.ContainerError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError 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.Errors.ContainerError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ContainerError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Errors.ContainerError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Error message to propagate detailed errors from container executions to the execution
+     * engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) + flyteidl.core.Errors.ContainerErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); + } + + // Construct using flyteidl.core.Errors.ContainerError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = ""; + + message_ = ""; + + kind_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; + } + + public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return flyteidl.core.Errors.ContainerError.getDefaultInstance(); + } + + public flyteidl.core.Errors.ContainerError build() { + flyteidl.core.Errors.ContainerError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Errors.ContainerError buildPartial() { + flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); + result.code_ = code_; + result.message_ = message_; + result.kind_ = kind_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Errors.ContainerError) { + return mergeFrom((flyteidl.core.Errors.ContainerError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { + if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.kind_ != 0) { + setKindValue(other.getKindValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Errors.ContainerError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * A simplified code for errors, so that we can provide a glossary of all possible errors.
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * A detailed error message.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int kind_ = 0; + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public int getKindValue() { + return kind_; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKindValue(int value) { + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public flyteidl.core.Errors.ContainerError.Kind getKind() { + flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); + return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { + if (value == null) { + throw new NullPointerException(); + } + + kind_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
+       * 
+ * + * .flyteidl.core.ContainerError.Kind kind = 3; + */ + public Builder clearKind() { + + kind_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ContainerError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); + } + + public static flyteidl.core.Errors.ContainerError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ContainerError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerError(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorDocumentOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + boolean hasError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerError getError(); + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); + } + /** + *
+   * Defines the errors.pb file format the container can produce to communicate
+   * failure reasons to the execution engine.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class ErrorDocument extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) + ErrorDocumentOrBuilder { + private static final long serialVersionUID = 0L; + // Use ErrorDocument.newBuilder() to construct. + private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorDocument() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ErrorDocument( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Errors.ContainerError.Builder subBuilder = null; + if (error_ != null) { + subBuilder = error_.toBuilder(); + } + error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(error_); + error_ = subBuilder.buildPartial(); + } + + 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.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + public static final int ERROR_FIELD_NUMBER = 1; + private flyteidl.core.Errors.ContainerError error_; + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return error_ != null; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + /** + *
+     * The error raised during execution.
+     * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + return getError(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (error_ != null) { + output.writeMessage(1, getError()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getError()); + } + 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.Errors.ErrorDocument)) { + return super.equals(obj); + } + flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; + + boolean result = true; + result = result && (hasError() == other.hasError()); + if (hasError()) { + result = result && getError() + .equals(other.getError()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument 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.Errors.ErrorDocument parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument 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.Errors.ErrorDocument parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Errors.ErrorDocument parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Errors.ErrorDocument prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines the errors.pb file format the container can produce to communicate
+     * failure reasons to the execution engine.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ErrorDocument} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) + flyteidl.core.Errors.ErrorDocumentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); + } + + // Construct using flyteidl.core.Errors.ErrorDocument.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; + } + + public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); + } + + public flyteidl.core.Errors.ErrorDocument build() { + flyteidl.core.Errors.ErrorDocument result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Errors.ErrorDocument buildPartial() { + flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Errors.ErrorDocument) { + return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { + if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; + if (other.hasError()) { + mergeError(other.getError()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Errors.ErrorDocument parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Errors.ContainerError error_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public boolean hasError() { + return errorBuilder_ != null || error_ != null; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError getError() { + if (errorBuilder_ == null) { + return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder setError( + flyteidl.core.Errors.ContainerError.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder mergeError(flyteidl.core.Errors.ContainerError value) { + if (errorBuilder_ == null) { + if (error_ != null) { + error_ = + flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + return this; + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { + + onChanged(); + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? + flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; + } + } + /** + *
+       * The error raised during execution.
+       * 
+ * + * .flyteidl.core.ContainerError error = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); + error_ = null; + } + return errorBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ErrorDocument) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); + } + + public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ErrorDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorDocument(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ErrorDocument_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/core/errors.proto\022\rflyteidl.c" + + "ore\"\217\001\n\016ContainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007" + + "message\030\002 \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.c" + + "ore.ContainerError.Kind\",\n\004Kind\022\023\n\017NON_R" + + "ECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n\rErrorDo" + + "cument\022,\n\005error\030\001 \001(\0132\035.flyteidl.core.Co" + + "ntainerErrorB2Z0github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_core_ContainerError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_ContainerError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerError_descriptor, + new java.lang.String[] { "Code", "Message", "Kind", }); + internal_static_flyteidl_core_ErrorDocument_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ErrorDocument_descriptor, + new java.lang.String[] { "Error", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Execution.java b/flyteidl/gen/pb-java/flyteidl/core/Execution.java new file mode 100644 index 0000000000..886c93fc0a --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Execution.java @@ -0,0 +1,3752 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/execution.proto + +package flyteidl.core; + +public final class Execution { + private Execution() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Workflow Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class WorkflowExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) + WorkflowExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecution.newBuilder() to construct. + private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDING = 3; + */ + SUCCEEDING(3), + /** + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * FAILING = 5; + */ + FAILING(5), + /** + * FAILED = 6; + */ + FAILED(6), + /** + * ABORTED = 7; + */ + ABORTED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDING = 3; + */ + public static final int SUCCEEDING_VALUE = 3; + /** + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + /** + * FAILING = 5; + */ + public static final int FAILING_VALUE = 5; + /** + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + /** + * ABORTED = 7; + */ + public static final int ABORTED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDING; + case 4: return SUCCEEDED; + case 5: return FAILING; + case 6: return FAILED; + case 7: return ABORTED; + case 8: return TIMED_OUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Execution.WorkflowExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution 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.Execution.WorkflowExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution 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.Execution.WorkflowExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.WorkflowExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.WorkflowExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Indicates various phases of Workflow Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) + flyteidl.core.Execution.WorkflowExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.WorkflowExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; + } + + public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); + } + + public flyteidl.core.Execution.WorkflowExecution build() { + flyteidl.core.Execution.WorkflowExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Execution.WorkflowExecution buildPartial() { + flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.WorkflowExecution) { + return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { + if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.WorkflowExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); + } + + public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Indicates various phases of Node Execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class NodeExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) + NodeExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecution.newBuilder() to construct. + private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * FAILING = 4; + */ + FAILING(4), + /** + * FAILED = 5; + */ + FAILED(5), + /** + * ABORTED = 6; + */ + ABORTED(6), + /** + * SKIPPED = 7; + */ + SKIPPED(7), + /** + * TIMED_OUT = 8; + */ + TIMED_OUT(8), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * FAILING = 4; + */ + public static final int FAILING_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + * ABORTED = 6; + */ + public static final int ABORTED_VALUE = 6; + /** + * SKIPPED = 7; + */ + public static final int SKIPPED_VALUE = 7; + /** + * TIMED_OUT = 8; + */ + public static final int TIMED_OUT_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return FAILING; + case 5: return FAILED; + case 6: return ABORTED; + case 7: return SKIPPED; + case 8: return TIMED_OUT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Execution.NodeExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution 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.Execution.NodeExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution 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.Execution.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.NodeExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.NodeExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Indicates various phases of Node Execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) + flyteidl.core.Execution.NodeExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.NodeExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; + } + + public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); + } + + public flyteidl.core.Execution.NodeExecution build() { + flyteidl.core.Execution.NodeExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Execution.NodeExecution buildPartial() { + flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.NodeExecution) { + return mergeFrom((flyteidl.core.Execution.NodeExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { + if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.NodeExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.NodeExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); + } + + public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+   * but this is the cumulative list that customers may want to know about for their task.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class TaskExecution extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) + TaskExecutionOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecution.newBuilder() to construct. + private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecution() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecution( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} + */ + public enum Phase + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNDEFINED = 0; + */ + UNDEFINED(0), + /** + * QUEUED = 1; + */ + QUEUED(1), + /** + * RUNNING = 2; + */ + RUNNING(2), + /** + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * ABORTED = 4; + */ + ABORTED(4), + /** + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + /** + * UNDEFINED = 0; + */ + public static final int UNDEFINED_VALUE = 0; + /** + * QUEUED = 1; + */ + public static final int QUEUED_VALUE = 1; + /** + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + /** + * ABORTED = 4; + */ + public static final int ABORTED_VALUE = 4; + /** + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Phase valueOf(int value) { + return forNumber(value); + } + + public static Phase forNumber(int value) { + switch (value) { + case 0: return UNDEFINED; + case 1: return QUEUED; + case 2: return RUNNING; + case 3: return SUCCEEDED; + case 4: return ABORTED; + case 5: return FAILED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Phase> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Phase findValueByNumber(int number) { + return Phase.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); + } + + private static final Phase[] VALUES = values(); + + public static Phase valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Phase(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Execution.TaskExecution)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution 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.Execution.TaskExecution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution 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.Execution.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskExecution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.TaskExecution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
+     * but this is the cumulative list that customers may want to know about for their task.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecution} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) + flyteidl.core.Execution.TaskExecutionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskExecution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; + } + + public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); + } + + public flyteidl.core.Execution.TaskExecution build() { + flyteidl.core.Execution.TaskExecution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Execution.TaskExecution buildPartial() { + flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.TaskExecution) { + return mergeFrom((flyteidl.core.Execution.TaskExecution)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { + if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.TaskExecution parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskExecution) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); + } + + public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecution(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExecutionErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + java.lang.String getCode(); + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + com.google.protobuf.ByteString + getCodeBytes(); + + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + java.lang.String getErrorUri(); + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + com.google.protobuf.ByteString + getErrorUriBytes(); + } + /** + *
+   * Represents the error message from the execution.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class ExecutionError extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) + ExecutionErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExecutionError.newBuilder() to construct. + private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExecutionError() { + code_ = ""; + message_ = ""; + errorUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExecutionError( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + errorUri_ = s; + 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.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private volatile java.lang.Object code_; + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + 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(); + code_ = s; + return s; + } + } + /** + *
+     * Error code indicates a grouping of a type of error.
+     * More Info: <Link>
+     * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * Detailed description of the error - including stack trace.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_URI_FIELD_NUMBER = 3; + private volatile java.lang.Object errorUri_; + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + 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(); + errorUri_ = s; + return s; + } + } + /** + *
+     * Full error contents accessible via a URI
+     * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + if (!getErrorUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); + } + 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.Execution.ExecutionError)) { + return super.equals(obj); + } + flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; + + boolean result = true; + result = result && getCode() + .equals(other.getCode()); + result = result && getMessage() + .equals(other.getMessage()); + result = result && getErrorUri() + .equals(other.getErrorUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; + hash = (53 * hash) + getErrorUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError 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.Execution.ExecutionError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError 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.Execution.ExecutionError parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.ExecutionError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.ExecutionError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents the error message from the execution.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ExecutionError} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) + flyteidl.core.Execution.ExecutionErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); + } + + // Construct using flyteidl.core.Execution.ExecutionError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = ""; + + message_ = ""; + + errorUri_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; + } + + public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public flyteidl.core.Execution.ExecutionError build() { + flyteidl.core.Execution.ExecutionError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Execution.ExecutionError buildPartial() { + flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); + result.code_ = code_; + result.message_ = message_; + result.errorUri_ = errorUri_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.ExecutionError) { + return mergeFrom((flyteidl.core.Execution.ExecutionError)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { + if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (!other.getErrorUri().isEmpty()) { + errorUri_ = other.errorUri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.ExecutionError parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object code_ = ""; + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public com.google.protobuf.ByteString + getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + code_ = value; + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder clearCode() { + + code_ = getDefaultInstance().getCode(); + onChanged(); + return this; + } + /** + *
+       * Error code indicates a grouping of a type of error.
+       * More Info: <Link>
+       * 
+ * + * string code = 1; + */ + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Detailed description of the error - including stack trace.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private java.lang.Object errorUri_ = ""; + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public java.lang.String getErrorUri() { + java.lang.Object ref = errorUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public com.google.protobuf.ByteString + getErrorUriBytes() { + java.lang.Object ref = errorUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + errorUri_ = value; + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder clearErrorUri() { + + errorUri_ = getDefaultInstance().getErrorUri(); + onChanged(); + return this; + } + /** + *
+       * Full error contents accessible via a URI
+       * 
+ * + * string error_uri = 3; + */ + public Builder setErrorUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorUri_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ExecutionError) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); + } + + public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ExecutionError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExecutionError(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * string name = 2; + */ + java.lang.String getName(); + /** + * string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + int getMessageFormatValue(); + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); + + /** + * .google.protobuf.Duration ttl = 4; + */ + boolean hasTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.Duration getTtl(); + /** + * .google.protobuf.Duration ttl = 4; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); + } + /** + *
+   * Log information for the task that is specific to a log sink
+   * When our log story is flushed out, we may have more metadata here like log link expiry
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class TaskLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) + TaskLogOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskLog.newBuilder() to construct. + private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskLog() { + uri_ = ""; + name_ = ""; + messageFormat_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskLog( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + messageFormat_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (ttl_ != null) { + subBuilder = ttl_.toBuilder(); + } + ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ttl_); + ttl_ = subBuilder.buildPartial(); + } + + 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.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} + */ + public enum MessageFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CSV = 1; + */ + CSV(1), + /** + * JSON = 2; + */ + JSON(2), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CSV = 1; + */ + public static final int CSV_VALUE = 1; + /** + * JSON = 2; + */ + public static final int JSON_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MessageFormat valueOf(int value) { + return forNumber(value); + } + + public static MessageFormat forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CSV; + case 2: return JSON; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MessageFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MessageFormat findValueByNumber(int number) { + return MessageFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); + } + + private static final MessageFormat[] VALUES = values(); + + public static MessageFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MessageFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FORMAT_FIELD_NUMBER = 3; + private int messageFormat_; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + + public static final int TTL_FIELD_NUMBER = 4; + private com.google.protobuf.Duration ttl_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return getTtl(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + output.writeEnum(3, messageFormat_); + } + if (ttl_ != null) { + output.writeMessage(4, getTtl()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, messageFormat_); + } + if (ttl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTtl()); + } + 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.Execution.TaskLog)) { + return super.equals(obj); + } + flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; + + boolean result = true; + result = result && getUri() + .equals(other.getUri()); + result = result && getName() + .equals(other.getName()); + result = result && messageFormat_ == other.messageFormat_; + result = result && (hasTtl() == other.hasTtl()); + if (hasTtl()) { + result = result && getTtl() + .equals(other.getTtl()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + messageFormat_; + if (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog 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.Execution.TaskLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog 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.Execution.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Execution.TaskLog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Execution.TaskLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Log information for the task that is specific to a log sink
+     * When our log story is flushed out, we may have more metadata here like log link expiry
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) + flyteidl.core.Execution.TaskLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); + } + + // Construct using flyteidl.core.Execution.TaskLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + uri_ = ""; + + name_ = ""; + + messageFormat_ = 0; + + if (ttlBuilder_ == null) { + ttl_ = null; + } else { + ttl_ = null; + ttlBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; + } + + public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return flyteidl.core.Execution.TaskLog.getDefaultInstance(); + } + + public flyteidl.core.Execution.TaskLog build() { + flyteidl.core.Execution.TaskLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Execution.TaskLog buildPartial() { + flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); + result.uri_ = uri_; + result.name_ = name_; + result.messageFormat_ = messageFormat_; + if (ttlBuilder_ == null) { + result.ttl_ = ttl_; + } else { + result.ttl_ = ttlBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Execution.TaskLog) { + return mergeFrom((flyteidl.core.Execution.TaskLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { + if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.messageFormat_ != 0) { + setMessageFormatValue(other.getMessageFormatValue()); + } + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Execution.TaskLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int messageFormat_ = 0; + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public int getMessageFormatValue() { + return messageFormat_; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormatValue(int value) { + messageFormat_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { + flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); + return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { + if (value == null) { + throw new NullPointerException(); + } + + messageFormat_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + public Builder clearMessageFormat() { + + messageFormat_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration ttl_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + * .google.protobuf.Duration ttl = 4; + */ + public boolean hasTtl() { + return ttlBuilder_ != null || ttl_ != null; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (ttl_ != null) { + ttl_ = + com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); + } else { + ttl_ = value; + } + onChanged(); + } else { + ttlBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + ttl_ = null; + onChanged(); + } else { + ttl_ = null; + ttlBuilder_ = null; + } + + return this; + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration ttl = 4; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + * .google.protobuf.Duration ttl = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTtl(), + getParentForChildren(), + isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskLog) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); + } + + public static flyteidl.core.Execution.TaskLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskLog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecution_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ExecutionError_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskLog_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskLog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/core/execution.proto\022\rflyteid" + + "l.core\032\036google/protobuf/duration.proto\"\231" + + "\001\n\021WorkflowExecution\"\203\001\n\005Phase\022\r\n\tUNDEFI" + + "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + + "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + + "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\"\222\001\n\rN" + + "odeExecution\"\200\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n" + + "\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n" + + "\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007S" + + "KIPPED\020\007\022\r\n\tTIMED_OUT\020\010\"h\n\rTaskExecution" + + "\"W\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007" + + "RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007ABORTED\020\004\022\n\n" + + "\006FAILED\020\005\"B\n\016ExecutionError\022\014\n\004code\030\001 \001(" + + "\t\022\017\n\007message\030\002 \001(\t\022\021\n\terror_uri\030\003 \001(\t\"\273\001" + + "\n\007TaskLog\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n\016" + + "message_format\030\003 \001(\0162$.flyteidl.core.Tas" + + "kLog.MessageFormat\022&\n\003ttl\030\004 \001(\0132\031.google" + + ".protobuf.Duration\"/\n\rMessageFormat\022\013\n\007U" + + "NKNOWN\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002B2Z0github.co" + + "m/lyft/flyteidl/gen/pb-go/flyteidl/coreb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowExecution_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_NodeExecution_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_NodeExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_TaskExecution_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskExecution_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecution_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_ExecutionError_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_ExecutionError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ExecutionError_descriptor, + new java.lang.String[] { "Code", "Message", "ErrorUri", }); + internal_static_flyteidl_core_TaskLog_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_TaskLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskLog_descriptor, + new java.lang.String[] { "Uri", "Name", "MessageFormat", "Ttl", }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java b/flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java new file mode 100644 index 0000000000..dc7fa3b445 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/IdentifierOuterClass.java @@ -0,0 +1,3946 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/identifier.proto + +package flyteidl.core; + +public final class IdentifierOuterClass { + private IdentifierOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Indicates a resource type within Flyte.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.ResourceType} + */ + public enum ResourceType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * TASK = 1; + */ + TASK(1), + /** + * WORKFLOW = 2; + */ + WORKFLOW(2), + /** + * LAUNCH_PLAN = 3; + */ + LAUNCH_PLAN(3), + UNRECOGNIZED(-1), + ; + + /** + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + /** + * TASK = 1; + */ + public static final int TASK_VALUE = 1; + /** + * WORKFLOW = 2; + */ + public static final int WORKFLOW_VALUE = 2; + /** + * LAUNCH_PLAN = 3; + */ + public static final int LAUNCH_PLAN_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceType valueOf(int value) { + return forNumber(value); + } + + public static ResourceType forNumber(int value) { + switch (value) { + case 0: return UNSPECIFIED; + case 1: return TASK; + case 2: return WORKFLOW; + case 3: return LAUNCH_PLAN; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceType findValueByNumber(int number) { + return ResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceType[] VALUES = values(); + + public static ResourceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) + } + + public interface IdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + int getResourceTypeValue(); + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + java.lang.String getVersion(); + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + com.google.protobuf.ByteString + getVersionBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte resource.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Identifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) + IdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use Identifier.newBuilder() to construct. + private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Identifier() { + resourceType_ = 0; + project_ = ""; + domain_ = ""; + name_ = ""; + version_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Identifier( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + resourceType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + 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.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; + private int resourceType_; + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+     * Identifies the specific type of resource that this identifer corresponds to.
+     * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + + public static final int PROJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 3; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * User provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
+     * Specific version of the resource.
+     * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + output.writeEnum(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, resourceType_); + } + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + 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.IdentifierOuterClass.Identifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; + + boolean result = true; + result = result && resourceType_ == other.resourceType_; + result = result && getProject() + .equals(other.getProject()); + result = result && getDomain() + .equals(other.getDomain()); + result = result && getName() + .equals(other.getName()); + result = result && getVersion() + .equals(other.getVersion()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_; + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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.IdentifierOuterClass.Identifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier 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.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.Identifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte resource.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Identifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.Identifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + resourceType_ = 0; + + project_ = ""; + + domain_ = ""; + + name_ = ""; + + version_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; + } + + public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + public flyteidl.core.IdentifierOuterClass.Identifier build() { + flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { + flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); + result.resourceType_ = resourceType_; + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + result.version_ = version_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.Identifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { + if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; + if (other.resourceType_ != 0) { + setResourceTypeValue(other.getResourceTypeValue()); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.Identifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceType_ = 0; + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public int getResourceTypeValue() { + return resourceType_; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceTypeValue(int value) { + resourceType_ = value; + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { + flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); + return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Identifies the specific type of resource that this identifer corresponds to.
+       * 
+ * + * .flyteidl.core.ResourceType resource_type = 1; + */ + public Builder clearResourceType() { + + resourceType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 2; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 3; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Specific version of the resource.
+       * 
+ * + * string version = 5; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Identifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); + } + + public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Identifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Identifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + java.lang.String getDomain(); + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + com.google.protobuf.ByteString + getDomainBytes(); + + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + java.lang.String getName(); + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class WorkflowExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) + WorkflowExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionIdentifier.newBuilder() to construct. + private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionIdentifier() { + project_ = ""; + domain_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionIdentifier( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + domain_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + 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.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + *
+     * Name of the project the resource belongs to.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 2; + private volatile java.lang.Object domain_; + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + 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(); + domain_ = s; + return s; + } + } + /** + *
+     * Name of the domain the resource belongs to.
+     * A domain can be considered as a subset within a specific project.
+     * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * User or system provided value for the resource.
+     * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (!getDomainBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); + } + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (!getDomainBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); + } + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + 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.IdentifierOuterClass.WorkflowExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && getDomain() + .equals(other.getDomain()); + result = result && getName() + .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + domain_ = ""; + + name_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + } + + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); + } + + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); + result.project_ = project_; + result.domain_ = domain_; + result.name_ = name_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+       * Name of the project the resource belongs to.
+       * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public com.google.protobuf.ByteString + getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomain( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + domain_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder clearDomain() { + + domain_ = getDefaultInstance().getDomain(); + onChanged(); + return this; + } + /** + *
+       * Name of the domain the resource belongs to.
+       * A domain can be considered as a subset within a specific project.
+       * 
+ * + * string domain = 2; + */ + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + domain_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * User or system provided value for the resource.
+       * 
+ * + * string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte node execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class NodeExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) + NodeExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionIdentifier.newBuilder() to construct. + private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionIdentifier() { + nodeId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionIdentifier( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + 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.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + 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(); + nodeId_ = s; + return s; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (executionId_ != null) { + output.writeMessage(2, getExecutionId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecutionId()); + } + 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.IdentifierOuterClass.NodeExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; + + boolean result = true; + result = result && getNodeId() + .equals(other.getNodeId()); + result = result && (hasExecutionId() == other.hasExecutionId()); + if (hasExecutionId()) { + result = result && getExecutionId() + .equals(other.getExecutionId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulation of fields that identify a Flyte node execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nodeId_ = ""; + + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + } + + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); + } + + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); + result.nodeId_ = nodeId_; + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.NodeExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + boolean hasNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); + + /** + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + } + /** + *
+   * Encapsulation of fields that identify a Flyte task execution entity.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class TaskExecutionIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) + TaskExecutionIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionIdentifier.newBuilder() to construct. + private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionIdentifier() { + retryAttempt_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionIdentifier( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (nodeExecutionId_ != null) { + subBuilder = nodeExecutionId_.toBuilder(); + } + nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeExecutionId_); + nodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + 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.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + return getNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + output.writeMessage(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (nodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + 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.IdentifierOuterClass.TaskExecutionIdentifier)) { + return super.equals(obj); + } + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; + + boolean result = true; + result = result && (hasTaskId() == other.hasTaskId()); + if (hasTaskId()) { + result = result && getTaskId() + .equals(other.getTaskId()); + } + result = result && (hasNodeExecutionId() == other.hasNodeExecutionId()); + if (hasNodeExecutionId()) { + result = result && getNodeExecutionId() + .equals(other.getNodeExecutionId()); + } + result = result && (getRetryAttempt() + == other.getRetryAttempt()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasNodeExecutionId()) { + hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Encapsulation of fields that identify a Flyte task execution entity.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); + } + + // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + } + + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); + } + + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (nodeExecutionIdBuilder_ == null) { + result.nodeExecutionId_ = nodeExecutionId_; + } else { + result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) { + return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { + if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasNodeExecutionId()) { + mergeNodeExecutionId(other.getNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public boolean hasNodeExecutionId() { + return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } else { + return nodeExecutionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeExecutionId_ = value; + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder setNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + nodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (nodeExecutionIdBuilder_ == null) { + if (nodeExecutionId_ != null) { + nodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + nodeExecutionId_ = value; + } + onChanged(); + } else { + nodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public Builder clearNodeExecutionId() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionId_ = null; + onChanged(); + } else { + nodeExecutionId_ = null; + nodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { + + onChanged(); + return getNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { + if (nodeExecutionIdBuilder_ != null) { + return nodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return nodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; + } + } + /** + * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getNodeExecutionIdFieldBuilder() { + if (nodeExecutionIdBuilder_ == null) { + nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getNodeExecutionId(), + getParentForChildren(), + isClean()); + nodeExecutionId_ = null; + } + return nodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskExecutionIdentifier) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); + } + + public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionIdentifier(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Identifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Identifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036flyteidl/core/identifier.proto\022\rflytei" + + "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + + "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + + "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + + "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + + "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + + "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + + "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + + "(\0132*.flyteidl.core.WorkflowExecutionIden" + + "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + + "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + + "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + + "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + + "pt\030\003 \001(\r*H\n\014ResourceType\022\017\n\013UNSPECIFIED\020" + + "\000\022\010\n\004TASK\020\001\022\014\n\010WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN" + + "\020\003B2Z0github.com/lyft/flyteidl/gen/pb-go" + + "/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_core_Identifier_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Identifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Identifier_descriptor, + new java.lang.String[] { "ResourceType", "Project", "Domain", "Name", "Version", }); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor, + new java.lang.String[] { "Project", "Domain", "Name", }); + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor, + new java.lang.String[] { "NodeId", "ExecutionId", }); + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor, + new java.lang.String[] { "TaskId", "NodeExecutionId", "RetryAttempt", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Interface.java b/flyteidl/gen/pb-java/flyteidl/core/Interface.java new file mode 100644 index 0000000000..035e19a65c --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Interface.java @@ -0,0 +1,4383 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/interface.proto + +package flyteidl.core; + +public final class Interface { + private Interface() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface VariableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Variable) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + boolean hasType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralType getType(); + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); + + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + java.lang.String getDescription(); + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + *
+   * Defines a strongly typed variable.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Variable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) + VariableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Variable.newBuilder() to construct. + private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Variable() { + description_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Variable( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + 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.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.LiteralType type_; + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + /** + *
+     * Variable literal type.
+     * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object description_; + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + *
+     *+optional string describing input variable
+     * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != null) { + output.writeMessage(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + 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.Interface.Variable)) { + return super.equals(obj); + } + flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && getDescription() + .equals(other.getDescription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable 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.Interface.Variable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Variable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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.Interface.Variable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable 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.Interface.Variable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Variable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.Variable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a strongly typed variable.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Variable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) + flyteidl.core.Interface.VariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); + } + + // Construct using flyteidl.core.Interface.Variable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + description_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; + } + + public flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return flyteidl.core.Interface.Variable.getDefaultInstance(); + } + + public flyteidl.core.Interface.Variable build() { + flyteidl.core.Interface.Variable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Interface.Variable buildPartial() { + flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + result.description_ = description_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.Variable) { + return mergeFrom((flyteidl.core.Interface.Variable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Variable other) { + if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.Variable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.LiteralType type_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder setType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.LiteralType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; + } + } + /** + *
+       * Variable literal type.
+       * 
+ * + * .flyteidl.core.LiteralType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + *
+       *+optional string describing input variable
+       * 
+ * + * string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Variable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); + } + + public static flyteidl.core.Interface.Variable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Variable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Variable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Interface.Variable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VariableMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + int getVariablesCount(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + boolean containsVariables( + java.lang.String key); + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getVariables(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + java.util.Map + getVariablesMap(); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue); + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Variables
+   * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class VariableMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) + VariableMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use VariableMap.newBuilder() to construct. + private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VariableMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VariableMap( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + variables__ = input.readMessage( + VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + variables_.getMutableMap().put( + variables__.getKey(), variables__.getValue()); + 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.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + public static final int VARIABLES_FIELD_NUMBER = 1; + private static final class VariablesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Variable.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of variable names to variables.
+     * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetVariables(), + VariablesDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetVariables().getMap().entrySet()) { + com.google.protobuf.MapEntry + variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, variables__); + } + 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.Interface.VariableMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; + + boolean result = true; + result = result && internalGetVariables().equals( + other.internalGetVariables()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetVariables().getMap().isEmpty()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + internalGetVariables().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap 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.Interface.VariableMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap 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.Interface.VariableMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.VariableMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.VariableMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 map of Variables
+     * 
+ * + * Protobuf type {@code flyteidl.core.VariableMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) + flyteidl.core.Interface.VariableMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableVariables(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.VariableMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableVariables().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; + } + + public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return flyteidl.core.Interface.VariableMap.getDefaultInstance(); + } + + public flyteidl.core.Interface.VariableMap build() { + flyteidl.core.Interface.VariableMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Interface.VariableMap buildPartial() { + flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); + int from_bitField0_ = bitField0_; + result.variables_ = internalGetVariables(); + result.variables_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.VariableMap) { + return mergeFrom((flyteidl.core.Interface.VariableMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { + if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; + internalGetMutableVariables().mergeFrom( + other.internalGetVariables()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.VariableMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Variable> variables_; + private com.google.protobuf.MapField + internalGetVariables() { + if (variables_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + return variables_; + } + private com.google.protobuf.MapField + internalGetMutableVariables() { + onChanged();; + if (variables_ == null) { + variables_ = com.google.protobuf.MapField.newMapField( + VariablesDefaultEntryHolder.defaultEntry); + } + if (!variables_.isMutable()) { + variables_ = variables_.copy(); + } + return variables_; + } + + public int getVariablesCount() { + return internalGetVariables().getMap().size(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public boolean containsVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetVariables().getMap().containsKey(key); + } + /** + * Use {@link #getVariablesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getVariables() { + return getVariablesMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public java.util.Map getVariablesMap() { + return internalGetVariables().getMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrDefault( + java.lang.String key, + flyteidl.core.Interface.Variable defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public flyteidl.core.Interface.Variable getVariablesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetVariables().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearVariables() { + internalGetMutableVariables().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder removeVariables( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableVariables() { + return internalGetMutableVariables().getMutableMap(); + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + public Builder putVariables( + java.lang.String key, + flyteidl.core.Interface.Variable value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableVariables().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of variable names to variables.
+       * 
+ * + * map<string, .flyteidl.core.Variable> variables = 1; + */ + + public Builder putAllVariables( + java.util.Map values) { + internalGetMutableVariables().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.VariableMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); + } + + public static flyteidl.core.Interface.VariableMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public VariableMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VariableMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TypedInterfaceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + boolean hasInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMap getInputs(); + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); + + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + boolean hasOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMap getOutputs(); + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); + } + /** + *
+   * Defines strongly typed inputs and outputs.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class TypedInterface extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) + TypedInterfaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use TypedInterface.newBuilder() to construct. + private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TypedInterface() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypedInterface( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (inputs_ != null) { + subBuilder = inputs_.toBuilder(); + } + inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputs_); + inputs_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Interface.VariableMap.Builder subBuilder = null; + if (outputs_ != null) { + subBuilder = outputs_.toBuilder(); + } + outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputs_); + outputs_ = subBuilder.buildPartial(); + } + + 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.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + public static final int INPUTS_FIELD_NUMBER = 1; + private flyteidl.core.Interface.VariableMap inputs_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + return getInputs(); + } + + public static final int OUTPUTS_FIELD_NUMBER = 2; + private flyteidl.core.Interface.VariableMap outputs_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + return getOutputs(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (inputs_ != null) { + output.writeMessage(1, getInputs()); + } + if (outputs_ != null) { + output.writeMessage(2, getOutputs()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (inputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getInputs()); + } + if (outputs_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOutputs()); + } + 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.Interface.TypedInterface)) { + return super.equals(obj); + } + flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; + + boolean result = true; + result = result && (hasInputs() == other.hasInputs()); + if (hasInputs()) { + result = result && getInputs() + .equals(other.getInputs()); + } + result = result && (hasOutputs() == other.hasOutputs()); + if (hasOutputs()) { + result = result && getOutputs() + .equals(other.getOutputs()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInputs()) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputs().hashCode(); + } + if (hasOutputs()) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputs().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface 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.Interface.TypedInterface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface 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.Interface.TypedInterface parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.TypedInterface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.TypedInterface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines strongly typed inputs and outputs.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TypedInterface} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) + flyteidl.core.Interface.TypedInterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); + } + + // Construct using flyteidl.core.Interface.TypedInterface.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (inputsBuilder_ == null) { + inputs_ = null; + } else { + inputs_ = null; + inputsBuilder_ = null; + } + if (outputsBuilder_ == null) { + outputs_ = null; + } else { + outputs_ = null; + outputsBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; + } + + public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); + } + + public flyteidl.core.Interface.TypedInterface build() { + flyteidl.core.Interface.TypedInterface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Interface.TypedInterface buildPartial() { + flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); + if (inputsBuilder_ == null) { + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (outputsBuilder_ == null) { + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.TypedInterface) { + return mergeFrom((flyteidl.core.Interface.TypedInterface)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { + if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; + if (other.hasInputs()) { + mergeInputs(other.getInputs()); + } + if (other.hasOutputs()) { + mergeOutputs(other.getOutputs()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.TypedInterface parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Interface.VariableMap inputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public boolean hasInputs() { + return inputsBuilder_ != null || inputs_ != null; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap getInputs() { + if (inputsBuilder_ == null) { + return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } else { + return inputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputs_ = value; + onChanged(); + } else { + inputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder setInputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (inputsBuilder_ == null) { + inputs_ = builderForValue.build(); + onChanged(); + } else { + inputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { + if (inputsBuilder_ == null) { + if (inputs_ != null) { + inputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); + } else { + inputs_ = value; + } + onChanged(); + } else { + inputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = null; + onChanged(); + } else { + inputs_ = null; + inputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { + + onChanged(); + return getInputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilder(); + } else { + return inputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; + } + } + /** + * .flyteidl.core.VariableMap inputs = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getInputs(), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private flyteidl.core.Interface.VariableMap outputs_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public boolean hasOutputs() { + return outputsBuilder_ != null || outputs_ != null; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap getOutputs() { + if (outputsBuilder_ == null) { + return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } else { + return outputsBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputs_ = value; + onChanged(); + } else { + outputsBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder setOutputs( + flyteidl.core.Interface.VariableMap.Builder builderForValue) { + if (outputsBuilder_ == null) { + outputs_ = builderForValue.build(); + onChanged(); + } else { + outputsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { + if (outputsBuilder_ == null) { + if (outputs_ != null) { + outputs_ = + flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); + } else { + outputs_ = value; + } + onChanged(); + } else { + outputsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = null; + onChanged(); + } else { + outputs_ = null; + outputsBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { + + onChanged(); + return getOutputsFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilder(); + } else { + return outputs_ == null ? + flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; + } + } + /** + * .flyteidl.core.VariableMap outputs = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( + getOutputs(), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TypedInterface) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); + } + + public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TypedInterface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypedInterface(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + boolean hasVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.Variable getVar(); + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); + + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + boolean hasDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.Literal getDefault(); + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); + + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + boolean getRequired(); + + public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); + } + /** + *
+   * A parameter is used as input to a launch plan and has
+   * the special ability to have a default value or mark itself as required.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Parameter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) + ParameterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Parameter.newBuilder() to construct. + private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Parameter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Parameter( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Interface.Variable.Builder subBuilder = null; + if (var_ != null) { + subBuilder = var_.toBuilder(); + } + var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(var_); + var_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Literals.Literal.Builder subBuilder = null; + if (behaviorCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); + } + behavior_ = + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); + behavior_ = subBuilder.buildPartial(); + } + behaviorCase_ = 2; + break; + } + case 24: { + behaviorCase_ = 3; + behavior_ = input.readBool(); + 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.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public enum BehaviorCase + implements com.google.protobuf.Internal.EnumLite { + DEFAULT(2), + REQUIRED(3), + BEHAVIOR_NOT_SET(0); + private final int value; + private BehaviorCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BehaviorCase valueOf(int value) { + return forNumber(value); + } + + public static BehaviorCase forNumber(int value) { + switch (value) { + case 2: return DEFAULT; + case 3: return REQUIRED; + case 0: return BEHAVIOR_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public static final int VAR_FIELD_NUMBER = 1; + private flyteidl.core.Interface.Variable var_; + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return var_ != null; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + /** + *
+     *+required Variable. Defines the type of the variable backing this parameter.
+     * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + return getVar(); + } + + public static final int DEFAULT_FIELD_NUMBER = 2; + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + /** + *
+     * Defines a default value that has to match the variable type defined.
+     * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + public static final int REQUIRED_FIELD_NUMBER = 3; + /** + *
+     *+optional, is this value required to be filled.
+     * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (var_ != null) { + output.writeMessage(1, getVar()); + } + if (behaviorCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + output.writeBool( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (var_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVar()); + } + if (behaviorCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); + } + if (behaviorCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) behavior_)); + } + 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.Interface.Parameter)) { + return super.equals(obj); + } + flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; + + boolean result = true; + result = result && (hasVar() == other.hasVar()); + if (hasVar()) { + result = result && getVar() + .equals(other.getVar()); + } + result = result && getBehaviorCase().equals( + other.getBehaviorCase()); + if (!result) return false; + switch (behaviorCase_) { + case 2: + result = result && getDefault() + .equals(other.getDefault()); + break; + case 3: + result = result && (getRequired() + == other.getRequired()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVar()) { + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + } + switch (behaviorCase_) { + case 2: + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + break; + case 3: + hash = (37 * hash) + REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequired()); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter 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.Interface.Parameter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.Parameter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter 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.Interface.Parameter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.Parameter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.Parameter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 parameter is used as input to a launch plan and has
+     * the special ability to have a default value or mark itself as required.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Parameter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) + flyteidl.core.Interface.ParameterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); + } + + // Construct using flyteidl.core.Interface.Parameter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (varBuilder_ == null) { + var_ = null; + } else { + var_ = null; + varBuilder_ = null; + } + behaviorCase_ = 0; + behavior_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; + } + + public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return flyteidl.core.Interface.Parameter.getDefaultInstance(); + } + + public flyteidl.core.Interface.Parameter build() { + flyteidl.core.Interface.Parameter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Interface.Parameter buildPartial() { + flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); + if (varBuilder_ == null) { + result.var_ = var_; + } else { + result.var_ = varBuilder_.build(); + } + if (behaviorCase_ == 2) { + if (defaultBuilder_ == null) { + result.behavior_ = behavior_; + } else { + result.behavior_ = defaultBuilder_.build(); + } + } + if (behaviorCase_ == 3) { + result.behavior_ = behavior_; + } + result.behaviorCase_ = behaviorCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.Parameter) { + return mergeFrom((flyteidl.core.Interface.Parameter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { + if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; + if (other.hasVar()) { + mergeVar(other.getVar()); + } + switch (other.getBehaviorCase()) { + case DEFAULT: { + mergeDefault(other.getDefault()); + break; + } + case REQUIRED: { + setRequired(other.getRequired()); + break; + } + case BEHAVIOR_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.Parameter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int behaviorCase_ = 0; + private java.lang.Object behavior_; + public BehaviorCase + getBehaviorCase() { + return BehaviorCase.forNumber( + behaviorCase_); + } + + public Builder clearBehavior() { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.Interface.Variable var_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public boolean hasVar() { + return varBuilder_ != null || var_ != null; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable getVar() { + if (varBuilder_ == null) { + return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } else { + return varBuilder_.getMessage(); + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + var_ = value; + onChanged(); + } else { + varBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder setVar( + flyteidl.core.Interface.Variable.Builder builderForValue) { + if (varBuilder_ == null) { + var_ = builderForValue.build(); + onChanged(); + } else { + varBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder mergeVar(flyteidl.core.Interface.Variable value) { + if (varBuilder_ == null) { + if (var_ != null) { + var_ = + flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); + } else { + var_ = value; + } + onChanged(); + } else { + varBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public Builder clearVar() { + if (varBuilder_ == null) { + var_ = null; + onChanged(); + } else { + var_ = null; + varBuilder_ = null; + } + + return this; + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.Variable.Builder getVarBuilder() { + + onChanged(); + return getVarFieldBuilder().getBuilder(); + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { + if (varBuilder_ != null) { + return varBuilder_.getMessageOrBuilder(); + } else { + return var_ == null ? + flyteidl.core.Interface.Variable.getDefaultInstance() : var_; + } + } + /** + *
+       *+required Variable. Defines the type of the variable backing this parameter.
+       * 
+ * + * .flyteidl.core.Variable var = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> + getVarFieldBuilder() { + if (varBuilder_ == null) { + varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( + getVar(), + getParentForChildren(), + isClean()); + var_ = null; + } + return varBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public boolean hasDefault() { + return behaviorCase_ == 2; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal getDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } else { + if (behaviorCase_ == 2) { + return defaultBuilder_.getMessage(); + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + behavior_ = value; + onChanged(); + } else { + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder setDefault( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (defaultBuilder_ == null) { + behavior_ = builderForValue.build(); + onChanged(); + } else { + defaultBuilder_.setMessage(builderForValue.build()); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder mergeDefault(flyteidl.core.Literals.Literal value) { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2 && + behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { + behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) + .mergeFrom(value).buildPartial(); + } else { + behavior_ = value; + } + onChanged(); + } else { + if (behaviorCase_ == 2) { + defaultBuilder_.mergeFrom(value); + } + defaultBuilder_.setMessage(value); + } + behaviorCase_ = 2; + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public Builder clearDefault() { + if (defaultBuilder_ == null) { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + } + } else { + if (behaviorCase_ == 2) { + behaviorCase_ = 0; + behavior_ = null; + } + defaultBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { + return getDefaultFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { + if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { + return defaultBuilder_.getMessageOrBuilder(); + } else { + if (behaviorCase_ == 2) { + return (flyteidl.core.Literals.Literal) behavior_; + } + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + } + /** + *
+       * Defines a default value that has to match the variable type defined.
+       * 
+ * + * .flyteidl.core.Literal default = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getDefaultFieldBuilder() { + if (defaultBuilder_ == null) { + if (!(behaviorCase_ == 2)) { + behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); + } + defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + (flyteidl.core.Literals.Literal) behavior_, + getParentForChildren(), + isClean()); + behavior_ = null; + } + behaviorCase_ = 2; + onChanged();; + return defaultBuilder_; + } + + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public boolean getRequired() { + if (behaviorCase_ == 3) { + return (java.lang.Boolean) behavior_; + } + return false; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder setRequired(boolean value) { + behaviorCase_ = 3; + behavior_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional, is this value required to be filled.
+       * 
+ * + * bool required = 3; + */ + public Builder clearRequired() { + if (behaviorCase_ == 3) { + behaviorCase_ = 0; + behavior_ = null; + onChanged(); + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Parameter) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); + } + + public static flyteidl.core.Interface.Parameter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Parameter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Parameter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParameterMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + int getParametersCount(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + boolean containsParameters( + java.lang.String key); + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getParameters(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + java.util.Map + getParametersMap(); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue); + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key); + } + /** + *
+   * A map of Parameters.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class ParameterMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) + ParameterMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterMap.newBuilder() to construct. + private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParameterMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParameterMap( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + parameters__ = input.readMessage( + ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + parameters_.getMutableMap().put( + parameters__.getKey(), parameters__.getValue()); + 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.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + public static final int PARAMETERS_FIELD_NUMBER = 1; + private static final class ParametersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Interface.Parameter.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Defines a map of parameter names to parameters.
+     * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetParameters(), + ParametersDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetParameters().getMap().entrySet()) { + com.google.protobuf.MapEntry + parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, parameters__); + } + 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.Interface.ParameterMap)) { + return super.equals(obj); + } + flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; + + boolean result = true; + result = result && internalGetParameters().equals( + other.internalGetParameters()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetParameters().getMap().isEmpty()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParameters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap 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.Interface.ParameterMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap 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.Interface.ParameterMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Interface.ParameterMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Interface.ParameterMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 map of Parameters.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ParameterMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) + flyteidl.core.Interface.ParameterMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableParameters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); + } + + // Construct using flyteidl.core.Interface.ParameterMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableParameters().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; + } + + public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); + } + + public flyteidl.core.Interface.ParameterMap build() { + flyteidl.core.Interface.ParameterMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Interface.ParameterMap buildPartial() { + flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); + int from_bitField0_ = bitField0_; + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Interface.ParameterMap) { + return mergeFrom((flyteidl.core.Interface.ParameterMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { + if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; + internalGetMutableParameters().mergeFrom( + other.internalGetParameters()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Interface.ParameterMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Interface.Parameter> parameters_; + private com.google.protobuf.MapField + internalGetParameters() { + if (parameters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + return parameters_; + } + private com.google.protobuf.MapField + internalGetMutableParameters() { + onChanged();; + if (parameters_ == null) { + parameters_ = com.google.protobuf.MapField.newMapField( + ParametersDefaultEntryHolder.defaultEntry); + } + if (!parameters_.isMutable()) { + parameters_ = parameters_.copy(); + } + return parameters_; + } + + public int getParametersCount() { + return internalGetParameters().getMap().size(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public boolean containsParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetParameters().getMap().containsKey(key); + } + /** + * Use {@link #getParametersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getParameters() { + return getParametersMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public java.util.Map getParametersMap() { + return internalGetParameters().getMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrDefault( + java.lang.String key, + flyteidl.core.Interface.Parameter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public flyteidl.core.Interface.Parameter getParametersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetParameters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearParameters() { + internalGetMutableParameters().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder removeParameters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableParameters() { + return internalGetMutableParameters().getMutableMap(); + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + public Builder putParameters( + java.lang.String key, + flyteidl.core.Interface.Parameter value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableParameters().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Defines a map of parameter names to parameters.
+       * 
+ * + * map<string, .flyteidl.core.Parameter> parameters = 1; + */ + + public Builder putAllParameters( + java.util.Map values) { + internalGetMutableParameters().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ParameterMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); + } + + public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ParameterMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParameterMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Variable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Variable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TypedInterface_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Parameter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Parameter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/core/interface.proto\022\rflyteid" + + "l.core\032\031flyteidl/core/types.proto\032\034flyte" + + "idl/core/literals.proto\"I\n\010Variable\022(\n\004t" + + "ype\030\001 \001(\0132\032.flyteidl.core.LiteralType\022\023\n" + + "\013description\030\002 \001(\t\"\226\001\n\013VariableMap\022<\n\tva" + + "riables\030\001 \003(\0132).flyteidl.core.VariableMa" + + "p.VariablesEntry\032I\n\016VariablesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022&\n\005value\030\002 \001(\0132\027.flyteidl.core.V" + + "ariable:\0028\001\"i\n\016TypedInterface\022*\n\006inputs\030" + + "\001 \001(\0132\032.flyteidl.core.VariableMap\022+\n\007out" + + "puts\030\002 \001(\0132\032.flyteidl.core.VariableMap\"|" + + "\n\tParameter\022$\n\003var\030\001 \001(\0132\027.flyteidl.core" + + ".Variable\022)\n\007default\030\002 \001(\0132\026.flyteidl.co" + + "re.LiteralH\000\022\022\n\010required\030\003 \001(\010H\000B\n\n\010beha" + + "vior\"\234\001\n\014ParameterMap\022?\n\nparameters\030\001 \003(" + + "\0132+.flyteidl.core.ParameterMap.Parameter" + + "sEntry\032K\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022\'" + + "\n\005value\030\002 \001(\0132\030.flyteidl.core.Parameter:" + + "\0028\001B2Z0github.com/lyft/flyteidl/gen/pb-g" + + "o/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Types.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Variable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Variable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Variable_descriptor, + new java.lang.String[] { "Type", "Description", }); + internal_static_flyteidl_core_VariableMap_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_VariableMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_descriptor, + new java.lang.String[] { "Variables", }); + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor = + internal_static_flyteidl_core_VariableMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_TypedInterface_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TypedInterface_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TypedInterface_descriptor, + new java.lang.String[] { "Inputs", "Outputs", }); + internal_static_flyteidl_core_Parameter_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_Parameter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Parameter_descriptor, + new java.lang.String[] { "Var", "Default", "Required", "Behavior", }); + internal_static_flyteidl_core_ParameterMap_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ParameterMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_descriptor, + new java.lang.String[] { "Parameters", }); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor = + internal_static_flyteidl_core_ParameterMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + flyteidl.core.Types.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Literals.java b/flyteidl/gen/pb-java/flyteidl/core/Literals.java new file mode 100644 index 0000000000..edb24afce2 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Literals.java @@ -0,0 +1,14483 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/literals.proto + +package flyteidl.core; + +public final class Literals { + private Literals() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface PrimitiveOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Primitive) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 integer = 1; + */ + long getInteger(); + + /** + * double float_value = 2; + */ + double getFloatValue(); + + /** + * string string_value = 3; + */ + java.lang.String getStringValue(); + /** + * string string_value = 3; + */ + com.google.protobuf.ByteString + getStringValueBytes(); + + /** + * bool boolean = 4; + */ + boolean getBoolean(); + + /** + * .google.protobuf.Timestamp datetime = 5; + */ + boolean hasDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.Timestamp getDatetime(); + /** + * .google.protobuf.Timestamp datetime = 5; + */ + com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); + + /** + * .google.protobuf.Duration duration = 6; + */ + boolean hasDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.Duration getDuration(); + /** + * .google.protobuf.Duration duration = 6; + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); + } + /** + *
+   * Primitive Types
+   * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Primitive extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) + PrimitiveOrBuilder { + private static final long serialVersionUID = 0L; + // Use Primitive.newBuilder() to construct. + private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Primitive() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Primitive( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + valueCase_ = 1; + value_ = input.readInt64(); + break; + } + case 17: { + valueCase_ = 2; + value_ = input.readDouble(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + valueCase_ = 3; + value_ = s; + break; + } + case 32: { + valueCase_ = 4; + value_ = input.readBool(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Duration) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + 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.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + INTEGER(1), + FLOAT_VALUE(2), + STRING_VALUE(3), + BOOLEAN(4), + DATETIME(5), + DURATION(6), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return INTEGER; + case 2: return FLOAT_VALUE; + case 3: return STRING_VALUE; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int INTEGER_FIELD_NUMBER = 1; + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + + public static final int FLOAT_VALUE_FIELD_NUMBER = 2; + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 3; + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + 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(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOLEAN_FIELD_NUMBER = 4; + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + + public static final int DATETIME_FIELD_NUMBER = 5; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int DURATION_FIELD_NUMBER = 6; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeInt64( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + output.writeDouble( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (valueCase_ == 4) { + output.writeBool( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + output.writeMessage(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (com.google.protobuf.Duration) value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size( + 1, (long)((java.lang.Long) value_)); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize( + 2, (double)((java.lang.Double) value_)); + } + if (valueCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 4, (boolean)((java.lang.Boolean) value_)); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.protobuf.Duration) value_); + } + 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.Literals.Primitive)) { + return super.equals(obj); + } + flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; + + boolean result = true; + result = result && getValueCase().equals( + other.getValueCase()); + if (!result) return false; + switch (valueCase_) { + case 1: + result = result && (getInteger() + == other.getInteger()); + break; + case 2: + result = result && ( + java.lang.Double.doubleToLongBits(getFloatValue()) + == java.lang.Double.doubleToLongBits( + other.getFloatValue())); + break; + case 3: + result = result && getStringValue() + .equals(other.getStringValue()); + break; + case 4: + result = result && (getBoolean() + == other.getBoolean()); + break; + case 5: + result = result && getDatetime() + .equals(other.getDatetime()); + break; + case 6: + result = result && getDuration() + .equals(other.getDuration()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + INTEGER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInteger()); + break; + case 2: + hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFloatValue())); + break; + case 3: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 4: + hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBoolean()); + break; + case 5: + hash = (37 * hash) + DATETIME_FIELD_NUMBER; + hash = (53 * hash) + getDatetime().hashCode(); + break; + case 6: + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive 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.Literals.Primitive parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Primitive parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive 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.Literals.Primitive parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Primitive parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Primitive prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Primitive Types
+     * 
+ * + * Protobuf type {@code flyteidl.core.Primitive} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) + flyteidl.core.Literals.PrimitiveOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); + } + + // Construct using flyteidl.core.Literals.Primitive.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; + } + + public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public flyteidl.core.Literals.Primitive build() { + flyteidl.core.Literals.Primitive result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Primitive buildPartial() { + flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); + if (valueCase_ == 1) { + result.value_ = value_; + } + if (valueCase_ == 2) { + result.value_ = value_; + } + if (valueCase_ == 3) { + result.value_ = value_; + } + if (valueCase_ == 4) { + result.value_ = value_; + } + if (valueCase_ == 5) { + if (datetimeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = datetimeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (durationBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = durationBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Primitive) { + return mergeFrom((flyteidl.core.Literals.Primitive)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { + if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case INTEGER: { + setInteger(other.getInteger()); + break; + } + case FLOAT_VALUE: { + setFloatValue(other.getFloatValue()); + break; + } + case STRING_VALUE: { + valueCase_ = 3; + value_ = other.value_; + onChanged(); + break; + } + case BOOLEAN: { + setBoolean(other.getBoolean()); + break; + } + case DATETIME: { + mergeDatetime(other.getDatetime()); + break; + } + case DURATION: { + mergeDuration(other.getDuration()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Primitive parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + /** + * int64 integer = 1; + */ + public long getInteger() { + if (valueCase_ == 1) { + return (java.lang.Long) value_; + } + return 0L; + } + /** + * int64 integer = 1; + */ + public Builder setInteger(long value) { + valueCase_ = 1; + value_ = value; + onChanged(); + return this; + } + /** + * int64 integer = 1; + */ + public Builder clearInteger() { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * double float_value = 2; + */ + public double getFloatValue() { + if (valueCase_ == 2) { + return (java.lang.Double) value_; + } + return 0D; + } + /** + * double float_value = 2; + */ + public Builder setFloatValue(double value) { + valueCase_ = 2; + value_ = value; + onChanged(); + return this; + } + /** + * double float_value = 2; + */ + public Builder clearFloatValue() { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + /** + * string string_value = 3; + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (valueCase_ == 3) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string string_value = 3; + */ + public com.google.protobuf.ByteString + getStringValueBytes() { + java.lang.Object ref = ""; + if (valueCase_ == 3) { + ref = value_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (valueCase_ == 3) { + value_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string string_value = 3; + */ + public Builder setStringValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + /** + * string string_value = 3; + */ + public Builder clearStringValue() { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + /** + * string string_value = 3; + */ + public Builder setStringValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueCase_ = 3; + value_ = value; + onChanged(); + return this; + } + + /** + * bool boolean = 4; + */ + public boolean getBoolean() { + if (valueCase_ == 4) { + return (java.lang.Boolean) value_; + } + return false; + } + /** + * bool boolean = 4; + */ + public Builder setBoolean(boolean value) { + valueCase_ = 4; + value_ = value; + onChanged(); + return this; + } + /** + * bool boolean = 4; + */ + public Builder clearBoolean() { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public boolean hasDatetime() { + return valueCase_ == 5; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp getDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return datetimeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder setDatetime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (datetimeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + datetimeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder mergeDatetime(com.google.protobuf.Timestamp value) { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + datetimeBuilder_.mergeFrom(value); + } + datetimeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public Builder clearDatetime() { + if (datetimeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + datetimeBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { + return getDatetimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { + if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { + return datetimeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (com.google.protobuf.Timestamp) value_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + * .google.protobuf.Timestamp datetime = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDatetimeFieldBuilder() { + if (datetimeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return datetimeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + /** + * .google.protobuf.Duration duration = 6; + */ + public boolean hasDuration() { + return valueCase_ == 6; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return durationBuilder_.getMessage(); + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (valueCase_ == 6 && + value_ != com.google.protobuf.Duration.getDefaultInstance()) { + value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + durationBuilder_.mergeFrom(value); + } + durationBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + durationBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + return getDurationFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Duration duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if ((valueCase_ == 6) && (durationBuilder_ != null)) { + return durationBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (com.google.protobuf.Duration) value_; + } + return com.google.protobuf.Duration.getDefaultInstance(); + } + } + /** + * .google.protobuf.Duration duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = com.google.protobuf.Duration.getDefaultInstance(); + } + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + (com.google.protobuf.Duration) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return durationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Primitive) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); + } + + public static flyteidl.core.Literals.Primitive getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Primitive parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Primitive(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface VoidOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+   * undefined since it can be assigned to a scalar of any LiteralType.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Void extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Void) + VoidOrBuilder { + private static final long serialVersionUID = 0L; + // Use Void.newBuilder() to construct. + private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Void() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Void( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Literals.Void)) { + return super.equals(obj); + } + flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void 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.Literals.Void parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Void parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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.Literals.Void parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void 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.Literals.Void parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Void parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Void prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
+     * undefined since it can be assigned to a scalar of any LiteralType.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Void} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) + flyteidl.core.Literals.VoidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); + } + + // Construct using flyteidl.core.Literals.Void.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; + } + + public flyteidl.core.Literals.Void getDefaultInstanceForType() { + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + public flyteidl.core.Literals.Void build() { + flyteidl.core.Literals.Void result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Void buildPartial() { + flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Void) { + return mergeFrom((flyteidl.core.Literals.Void)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Void other) { + if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Void parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Void) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Void) + private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); + } + + public static flyteidl.core.Literals.Void getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Void parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Void(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Void getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + boolean hasMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadata getMetadata(); + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); + + /** + * string uri = 3; + */ + java.lang.String getUri(); + /** + * string uri = 3; + */ + com.google.protobuf.ByteString + getUriBytes(); + } + /** + *
+   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Blob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Blob() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Literals.BlobMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + 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.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + public static final int METADATA_FIELD_NUMBER = 1; + private flyteidl.core.Literals.BlobMetadata metadata_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int URI_FIELD_NUMBER = 3; + private volatile java.lang.Object uri_; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (metadata_ != null) { + output.writeMessage(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + 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.Literals.Blob)) { + return super.equals(obj); + } + flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getUri() + .equals(other.getUri()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob 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.Literals.Blob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Blob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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.Literals.Blob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob 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.Literals.Blob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Blob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Blob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
+     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Blob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) + flyteidl.core.Literals.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); + } + + // Construct using flyteidl.core.Literals.Blob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + uri_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; + } + + public flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + public flyteidl.core.Literals.Blob build() { + flyteidl.core.Literals.Blob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Blob buildPartial() { + flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.uri_ = uri_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Blob) { + return mergeFrom((flyteidl.core.Literals.Blob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Blob other) { + if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Blob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Literals.BlobMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder setMetadata( + flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; + } + } + /** + * .flyteidl.core.BlobMetadata metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 3; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 3; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 3; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 3; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Blob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); + } + + public static flyteidl.core.Literals.Blob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Blob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BlobType type = 1; + */ + boolean hasType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobType getType(); + /** + * .flyteidl.core.BlobType type = 1; + */ + flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.core.BlobMetadata} + */ + public static final class BlobMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) + BlobMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobMetadata.newBuilder() to construct. + private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + 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.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private flyteidl.core.Types.BlobType type_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != null) { + output.writeMessage(1, getType()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); + } + 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.Literals.BlobMetadata)) { + return super.equals(obj); + } + flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata 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.Literals.BlobMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata 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.Literals.BlobMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BlobMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BlobMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.core.BlobMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) + flyteidl.core.Literals.BlobMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); + } + + // Construct using flyteidl.core.Literals.BlobMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; + } + + public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); + } + + public flyteidl.core.Literals.BlobMetadata build() { + flyteidl.core.Literals.BlobMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.BlobMetadata buildPartial() { + flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BlobMetadata) { + return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { + if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; + if (other.hasType()) { + mergeType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BlobMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Types.BlobType type_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.BlobType type = 1; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder setType( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder mergeType(flyteidl.core.Types.BlobType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BlobType type = 1; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.BlobType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.BlobType type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BlobMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); + } + + public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BlobMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BinaryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) + com.google.protobuf.MessageOrBuilder { + + /** + * bytes value = 1; + */ + com.google.protobuf.ByteString getValue(); + + /** + * string tag = 2; + */ + java.lang.String getTag(); + /** + * string tag = 2; + */ + com.google.protobuf.ByteString + getTagBytes(); + } + /** + *
+   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Binary extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) + BinaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binary.newBuilder() to construct. + private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binary() { + value_ = com.google.protobuf.ByteString.EMPTY; + tag_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binary( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + value_ = input.readBytes(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tag_ = s; + 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.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString value_; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + + public static final int TAG_FIELD_NUMBER = 2; + private volatile java.lang.Object tag_; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + 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(); + tag_ = s; + return s; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!value_.isEmpty()) { + output.writeBytes(1, value_); + } + if (!getTagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!value_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, value_); + } + if (!getTagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); + } + 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.Literals.Binary)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; + + boolean result = true; + result = result && getValue() + .equals(other.getValue()); + result = result && getTag() + .equals(other.getTag()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + TAG_FIELD_NUMBER; + hash = (53 * hash) + getTag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary 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.Literals.Binary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binary parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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.Literals.Binary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary 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.Literals.Binary parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Binary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
+     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binary} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) + flyteidl.core.Literals.BinaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + value_ = com.google.protobuf.ByteString.EMPTY; + + tag_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; + } + + public flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + public flyteidl.core.Literals.Binary build() { + flyteidl.core.Literals.Binary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Binary buildPartial() { + flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); + result.value_ = value_; + result.tag_ = tag_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Binary) { + return mergeFrom((flyteidl.core.Literals.Binary)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binary other) { + if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; + if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { + setValue(other.getValue()); + } + if (!other.getTag().isEmpty()) { + tag_ = other.tag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Binary parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes value = 1; + */ + public com.google.protobuf.ByteString getValue() { + return value_; + } + /** + * bytes value = 1; + */ + public Builder setValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * bytes value = 1; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + + private java.lang.Object tag_ = ""; + /** + * string tag = 2; + */ + public java.lang.String getTag() { + java.lang.Object ref = tag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tag = 2; + */ + public com.google.protobuf.ByteString + getTagBytes() { + java.lang.Object ref = tag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tag = 2; + */ + public Builder setTag( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tag_ = value; + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder clearTag() { + + tag_ = getDefaultInstance().getTag(); + onChanged(); + return this; + } + /** + * string tag = 2; + */ + public Builder setTagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tag_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Binary) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); + } + + public static flyteidl.core.Literals.Binary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Binary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binary(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Binary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * string uri = 1; + */ + java.lang.String getUri(); + /** + * string uri = 1; + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + * .flyteidl.core.SchemaType type = 3; + */ + boolean hasType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaType getType(); + /** + * .flyteidl.core.SchemaType type = 3; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); + } + /** + *
+   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Schema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Schema() { + uri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Schema( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uri_ = s; + break; + } + case 26: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (type_ != null) { + subBuilder = type_.toBuilder(); + } + type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(type_); + type_ = subBuilder.buildPartial(); + } + + 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.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + private volatile java.lang.Object uri_; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + 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(); + uri_ = s; + return s; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 3; + private flyteidl.core.Types.SchemaType type_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + return getType(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (type_ != null) { + output.writeMessage(3, getType()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (type_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getType()); + } + 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.Literals.Schema)) { + return super.equals(obj); + } + flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; + + boolean result = true; + result = result && getUri() + .equals(other.getUri()); + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema 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.Literals.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Schema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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.Literals.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema 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.Literals.Schema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Schema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Schema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Schema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) + flyteidl.core.Literals.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); + } + + // Construct using flyteidl.core.Literals.Schema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + uri_ = ""; + + if (typeBuilder_ == null) { + type_ = null; + } else { + type_ = null; + typeBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; + } + + public flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + public flyteidl.core.Literals.Schema build() { + flyteidl.core.Literals.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Schema buildPartial() { + flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); + result.uri_ = uri_; + if (typeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = typeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Schema) { + return mergeFrom((flyteidl.core.Literals.Schema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Schema other) { + if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + onChanged(); + } + if (other.hasType()) { + mergeType(other.getType()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Schema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uri_ = ""; + /** + * string uri = 1; + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string uri = 1; + */ + public com.google.protobuf.ByteString + getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string uri = 1; + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uri_ = value; + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder clearUri() { + + uri_ = getDefaultInstance().getUri(); + onChanged(); + return this; + } + /** + * string uri = 1; + */ + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uri_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Types.SchemaType type_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; + /** + * .flyteidl.core.SchemaType type = 3; + */ + public boolean hasType() { + return typeBuilder_ != null || type_ != null; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType getType() { + if (typeBuilder_ == null) { + return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } else { + return typeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + typeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder setType( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (typeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + typeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder mergeType(flyteidl.core.Types.SchemaType value) { + if (typeBuilder_ == null) { + if (type_ != null) { + type_ = + flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + typeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public Builder clearType() { + if (typeBuilder_ == null) { + type_ = null; + onChanged(); + } else { + type_ = null; + typeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { + + onChanged(); + return getTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { + if (typeBuilder_ != null) { + return typeBuilder_.getMessageOrBuilder(); + } else { + return type_ == null ? + flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; + } + } + /** + * .flyteidl.core.SchemaType type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getTypeFieldBuilder() { + if (typeBuilder_ == null) { + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); + type_ = null; + } + return typeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Schema) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); + } + + public static flyteidl.core.Literals.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schema(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ScalarOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Primitive primitive = 1; + */ + boolean hasPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.Primitive getPrimitive(); + /** + * .flyteidl.core.Primitive primitive = 1; + */ + flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); + + /** + * .flyteidl.core.Blob blob = 2; + */ + boolean hasBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.Blob getBlob(); + /** + * .flyteidl.core.Blob blob = 2; + */ + flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); + + /** + * .flyteidl.core.Binary binary = 3; + */ + boolean hasBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.Binary getBinary(); + /** + * .flyteidl.core.Binary binary = 3; + */ + flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); + + /** + * .flyteidl.core.Schema schema = 4; + */ + boolean hasSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.Schema getSchema(); + /** + * .flyteidl.core.Schema schema = 4; + */ + flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * .flyteidl.core.Void none_type = 5; + */ + boolean hasNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.Void getNoneType(); + /** + * .flyteidl.core.Void none_type = 5; + */ + flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); + + /** + * .flyteidl.core.Error error = 6; + */ + boolean hasError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.Error getError(); + /** + * .flyteidl.core.Error error = 6; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + /** + * .google.protobuf.Struct generic = 7; + */ + boolean hasGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.Struct getGeneric(); + /** + * .google.protobuf.Struct generic = 7; + */ + com.google.protobuf.StructOrBuilder getGenericOrBuilder(); + + public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); + } + /** + * Protobuf type {@code flyteidl.core.Scalar} + */ + public static final class Scalar extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) + ScalarOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scalar.newBuilder() to construct. + private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Scalar() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Scalar( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Literals.Primitive.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.Blob.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.Binary.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.Schema.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + break; + } + case 42: { + flyteidl.core.Literals.Void.Builder subBuilder = null; + if (valueCase_ == 5) { + subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 5; + break; + } + case 50: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (valueCase_ == 6) { + subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 6; + break; + } + case 58: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (valueCase_ == 7) { + subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); + } + value_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Struct) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 7; + 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.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + PRIMITIVE(1), + BLOB(2), + BINARY(3), + SCHEMA(4), + NONE_TYPE(5), + ERROR(6), + GENERIC(7), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return PRIMITIVE; + case 2: return BLOB; + case 3: return BINARY; + case 4: return SCHEMA; + case 5: return NONE_TYPE; + case 6: return ERROR; + case 7: return GENERIC; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int PRIMITIVE_FIELD_NUMBER = 1; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 2; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + + public static final int BINARY_FIELD_NUMBER = 3; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + + public static final int SCHEMA_FIELD_NUMBER = 4; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + + public static final int NONE_TYPE_FIELD_NUMBER = 5; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + public static final int GENERIC_FIELD_NUMBER = 7; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + output.writeMessage(7, (com.google.protobuf.Struct) value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); + } + if (valueCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); + } + if (valueCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Types.Error) value_); + } + if (valueCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.protobuf.Struct) value_); + } + 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.Literals.Scalar)) { + return super.equals(obj); + } + flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; + + boolean result = true; + result = result && getValueCase().equals( + other.getValueCase()); + if (!result) return false; + switch (valueCase_) { + case 1: + result = result && getPrimitive() + .equals(other.getPrimitive()); + break; + case 2: + result = result && getBlob() + .equals(other.getBlob()); + break; + case 3: + result = result && getBinary() + .equals(other.getBinary()); + break; + case 4: + result = result && getSchema() + .equals(other.getSchema()); + break; + case 5: + result = result && getNoneType() + .equals(other.getNoneType()); + break; + case 6: + result = result && getError() + .equals(other.getError()); + break; + case 7: + result = result && getGeneric() + .equals(other.getGeneric()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; + hash = (53 * hash) + getPrimitive().hashCode(); + break; + case 2: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 3: + hash = (37 * hash) + BINARY_FIELD_NUMBER; + hash = (53 * hash) + getBinary().hashCode(); + break; + case 4: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 5: + hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getNoneType().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 7: + hash = (37 * hash) + GENERIC_FIELD_NUMBER; + hash = (53 * hash) + getGeneric().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar 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.Literals.Scalar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Scalar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar 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.Literals.Scalar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Scalar parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Scalar prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.core.Scalar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) + flyteidl.core.Literals.ScalarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); + } + + // Construct using flyteidl.core.Literals.Scalar.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; + } + + public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public flyteidl.core.Literals.Scalar build() { + flyteidl.core.Literals.Scalar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Scalar buildPartial() { + flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); + if (valueCase_ == 1) { + if (primitiveBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = primitiveBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (blobBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = blobBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (binaryBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = binaryBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (schemaBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = schemaBuilder_.build(); + } + } + if (valueCase_ == 5) { + if (noneTypeBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = noneTypeBuilder_.build(); + } + } + if (valueCase_ == 6) { + if (errorBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = errorBuilder_.build(); + } + } + if (valueCase_ == 7) { + if (genericBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = genericBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Scalar) { + return mergeFrom((flyteidl.core.Literals.Scalar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { + if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case PRIMITIVE: { + mergePrimitive(other.getPrimitive()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case BINARY: { + mergeBinary(other.getBinary()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case NONE_TYPE: { + mergeNoneType(other.getNoneType()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case GENERIC: { + mergeGeneric(other.getGeneric()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Scalar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public boolean hasPrimitive() { + return valueCase_ == 1; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive getPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return primitiveBuilder_.getMessage(); + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder setPrimitive( + flyteidl.core.Literals.Primitive.Builder builderForValue) { + if (primitiveBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + primitiveBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + primitiveBuilder_.mergeFrom(value); + } + primitiveBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public Builder clearPrimitive() { + if (primitiveBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + primitiveBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { + return getPrimitiveFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { + if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { + return primitiveBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Primitive) value_; + } + return flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Primitive primitive = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> + getPrimitiveFieldBuilder() { + if (primitiveBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); + } + primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( + (flyteidl.core.Literals.Primitive) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return primitiveBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; + /** + * .flyteidl.core.Blob blob = 2; + */ + public boolean hasBlob() { + return valueCase_ == 2; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob getBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder setBlob( + flyteidl.core.Literals.Blob.Builder builderForValue) { + if (blobBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder mergeBlob(flyteidl.core.Literals.Blob value) { + if (blobBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Blob blob = 2; + */ + public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { + if ((valueCase_ == 2) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.Blob) value_; + } + return flyteidl.core.Literals.Blob.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Blob blob = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( + (flyteidl.core.Literals.Blob) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; + /** + * .flyteidl.core.Binary binary = 3; + */ + public boolean hasBinary() { + return valueCase_ == 3; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary getBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return binaryBuilder_.getMessage(); + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder setBinary( + flyteidl.core.Literals.Binary.Builder builderForValue) { + if (binaryBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + binaryBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder mergeBinary(flyteidl.core.Literals.Binary value) { + if (binaryBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + binaryBuilder_.mergeFrom(value); + } + binaryBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public Builder clearBinary() { + if (binaryBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + binaryBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { + return getBinaryFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Binary binary = 3; + */ + public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { + if ((valueCase_ == 3) && (binaryBuilder_ != null)) { + return binaryBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.Binary) value_; + } + return flyteidl.core.Literals.Binary.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Binary binary = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> + getBinaryFieldBuilder() { + if (binaryBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); + } + binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( + (flyteidl.core.Literals.Binary) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return binaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; + /** + * .flyteidl.core.Schema schema = 4; + */ + public boolean hasSchema() { + return valueCase_ == 4; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema getSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder setSchema( + flyteidl.core.Literals.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder mergeSchema(flyteidl.core.Literals.Schema value) { + if (schemaBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Schema schema = 4; + */ + public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { + if ((valueCase_ == 4) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.Schema) value_; + } + return flyteidl.core.Literals.Schema.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Schema schema = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( + (flyteidl.core.Literals.Schema) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; + /** + * .flyteidl.core.Void none_type = 5; + */ + public boolean hasNoneType() { + return valueCase_ == 5; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void getNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } else { + if (valueCase_ == 5) { + return noneTypeBuilder_.getMessage(); + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder setNoneType( + flyteidl.core.Literals.Void.Builder builderForValue) { + if (noneTypeBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + noneTypeBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder mergeNoneType(flyteidl.core.Literals.Void value) { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5 && + value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 5) { + noneTypeBuilder_.mergeFrom(value); + } + noneTypeBuilder_.setMessage(value); + } + valueCase_ = 5; + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public Builder clearNoneType() { + if (noneTypeBuilder_ == null) { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 5) { + valueCase_ = 0; + value_ = null; + } + noneTypeBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { + return getNoneTypeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Void none_type = 5; + */ + public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { + if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { + return noneTypeBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 5) { + return (flyteidl.core.Literals.Void) value_; + } + return flyteidl.core.Literals.Void.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Void none_type = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> + getNoneTypeFieldBuilder() { + if (noneTypeBuilder_ == null) { + if (!(valueCase_ == 5)) { + value_ = flyteidl.core.Literals.Void.getDefaultInstance(); + } + noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( + (flyteidl.core.Literals.Void) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 5; + onChanged();; + return noneTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + * .flyteidl.core.Error error = 6; + */ + public boolean hasError() { + return valueCase_ == 6; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (valueCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (valueCase_ == 6 && + value_ != flyteidl.core.Types.Error.getDefaultInstance()) { + value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + valueCase_ = 6; + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 6) { + valueCase_ = 0; + value_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Error error = 6; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((valueCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 6) { + return (flyteidl.core.Types.Error) value_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Error error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(valueCase_ == 6)) { + value_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 6; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; + /** + * .google.protobuf.Struct generic = 7; + */ + public boolean hasGeneric() { + return valueCase_ == 7; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct getGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (valueCase_ == 7) { + return genericBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder setGeneric( + com.google.protobuf.Struct.Builder builderForValue) { + if (genericBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + genericBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder mergeGeneric(com.google.protobuf.Struct value) { + if (genericBuilder_ == null) { + if (valueCase_ == 7 && + value_ != com.google.protobuf.Struct.getDefaultInstance()) { + value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 7) { + genericBuilder_.mergeFrom(value); + } + genericBuilder_.setMessage(value); + } + valueCase_ = 7; + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public Builder clearGeneric() { + if (genericBuilder_ == null) { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 7) { + valueCase_ = 0; + value_ = null; + } + genericBuilder_.clear(); + } + return this; + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.Struct.Builder getGenericBuilder() { + return getGenericFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct generic = 7; + */ + public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { + if ((valueCase_ == 7) && (genericBuilder_ != null)) { + return genericBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 7) { + return (com.google.protobuf.Struct) value_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + /** + * .google.protobuf.Struct generic = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getGenericFieldBuilder() { + if (genericBuilder_ == null) { + if (!(valueCase_ == 7)) { + value_ = com.google.protobuf.Struct.getDefaultInstance(); + } + genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 7; + onChanged();; + return genericBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Scalar) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); + } + + public static flyteidl.core.Literals.Scalar getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Scalar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scalar(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollection getCollection(); + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + boolean hasMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMap getMap(); + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); + + public flyteidl.core.Literals.Literal.ValueCase getValueCase(); + } + /** + *
+   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Literal extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) + LiteralOrBuilder { + private static final long serialVersionUID = 0L; + // Use Literal.newBuilder() to construct. + private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Literal() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Literal( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + 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.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + MAP(3), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + /** + *
+     * A collection of literals to allow nesting.
+     * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 3; + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + /** + *
+     * A map of strings to literals.
+     * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) value_); + } + 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.Literals.Literal)) { + return super.equals(obj); + } + flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; + + boolean result = true; + result = result && getValueCase().equals( + other.getValueCase()); + if (!result) return false; + switch (valueCase_) { + case 1: + result = result && getScalar() + .equals(other.getScalar()); + break; + case 2: + result = result && getCollection() + .equals(other.getCollection()); + break; + case 3: + result = result && getMap() + .equals(other.getMap()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal 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.Literals.Literal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Literal parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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.Literals.Literal parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal 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.Literals.Literal parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Literal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Literal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Literal} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) + flyteidl.core.Literals.LiteralOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); + } + + // Construct using flyteidl.core.Literals.Literal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; + } + + public flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return flyteidl.core.Literals.Literal.getDefaultInstance(); + } + + public flyteidl.core.Literals.Literal build() { + flyteidl.core.Literals.Literal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Literal buildPartial() { + flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Literal) { + return mergeFrom((flyteidl.core.Literals.Literal)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Literal other) { + if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Literal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.LiteralCollection) value_; + } + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of literals to allow nesting.
+       * 
+ * + * .flyteidl.core.LiteralCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( + (flyteidl.core.Literals.LiteralCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public boolean hasMap() { + return valueCase_ == 3; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder setMap( + flyteidl.core.Literals.LiteralMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 3) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Literals.LiteralMap) value_; + } + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + } + /** + *
+       * A map of strings to literals.
+       * 
+ * + * .flyteidl.core.LiteralMap map = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( + (flyteidl.core.Literals.LiteralMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return mapBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Literal) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); + } + + public static flyteidl.core.Literals.Literal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Literal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Literal(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Literal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.Literal getLiterals(int index); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + int getLiteralsCount(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + java.util.List + getLiteralsOrBuilderList(); + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index); + } + /** + *
+   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class LiteralCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) + LiteralCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralCollection.newBuilder() to construct. + private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralCollection() { + literals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralCollection( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + literals_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + literals_.add( + input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry)); + 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) == 0x00000001)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private java.util.List literals_; + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + return literals_; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + return literals_.size(); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + return literals_.get(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + return literals_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < literals_.size(); i++) { + output.writeMessage(1, literals_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < literals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals_.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.core.Literals.LiteralCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; + + boolean result = true; + result = result && getLiteralsList() + .equals(other.getLiteralsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLiteralsCount() > 0) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + getLiteralsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection 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.Literals.LiteralCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection 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.Literals.LiteralCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.LiteralCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) + flyteidl.core.Literals.LiteralCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLiteralsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + literalsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; + } + + public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); + } + + public flyteidl.core.Literals.LiteralCollection build() { + flyteidl.core.Literals.LiteralCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.LiteralCollection buildPartial() { + flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); + int from_bitField0_ = bitField0_; + if (literalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + literals_ = java.util.Collections.unmodifiableList(literals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.literals_ = literals_; + } else { + result.literals_ = literalsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.LiteralCollection) { + return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { + if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; + if (literalsBuilder_ == null) { + if (!other.literals_.isEmpty()) { + if (literals_.isEmpty()) { + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLiteralsIsMutable(); + literals_.addAll(other.literals_); + } + onChanged(); + } + } else { + if (!other.literals_.isEmpty()) { + if (literalsBuilder_.isEmpty()) { + literalsBuilder_.dispose(); + literalsBuilder_ = null; + literals_ = other.literals_; + bitField0_ = (bitField0_ & ~0x00000001); + literalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLiteralsFieldBuilder() : null; + } else { + literalsBuilder_.addAllMessages(other.literals_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.LiteralCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List literals_ = + java.util.Collections.emptyList(); + private void ensureLiteralsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + literals_ = new java.util.ArrayList(literals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; + + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List getLiteralsList() { + if (literalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(literals_); + } else { + return literalsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public int getLiteralsCount() { + if (literalsBuilder_ == null) { + return literals_.size(); + } else { + return literalsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal getLiterals(int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); + } else { + return literalsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.set(index, value); + onChanged(); + } else { + literalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder setLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.set(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals(flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(value); + onChanged(); + } else { + literalsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal value) { + if (literalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLiteralsIsMutable(); + literals_.add(index, value); + onChanged(); + } else { + literalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addLiterals( + int index, flyteidl.core.Literals.Literal.Builder builderForValue) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.add(index, builderForValue.build()); + onChanged(); + } else { + literalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder addAllLiterals( + java.lang.Iterable values) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, literals_); + onChanged(); + } else { + literalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder clearLiterals() { + if (literalsBuilder_ == null) { + literals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + literalsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public Builder removeLiterals(int index) { + if (literalsBuilder_ == null) { + ensureLiteralsIsMutable(); + literals_.remove(index); + onChanged(); + } else { + literalsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( + int index) { + if (literalsBuilder_ == null) { + return literals_.get(index); } else { + return literalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsOrBuilderList() { + if (literalsBuilder_ != null) { + return literalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(literals_); + } + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { + return getLiteralsFieldBuilder().addBuilder( + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( + int index) { + return getLiteralsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Literal.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.Literal literals = 1; + */ + public java.util.List + getLiteralsBuilderList() { + return getLiteralsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> + getLiteralsFieldBuilder() { + if (literalsBuilder_ == null) { + literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( + literals_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + literals_ = null; + } + return literalsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.LiteralCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); + } + + public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LiteralCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralCollection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + int getLiteralsCount(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + boolean containsLiterals( + java.lang.String key); + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLiterals(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + java.util.Map + getLiteralsMap(); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue); + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class LiteralMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) + LiteralMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralMap.newBuilder() to construct. + private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralMap( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + literals__ = input.readMessage( + LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + literals_.getMutableMap().put( + literals__.getKey(), literals__.getValue()); + 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.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + public static final int LITERALS_FIELD_NUMBER = 1; + private static final class LiteralsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.Literal.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLiterals(), + LiteralsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetLiterals().getMap().entrySet()) { + com.google.protobuf.MapEntry + literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, literals__); + } + 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.Literals.LiteralMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; + + boolean result = true; + result = result && internalGetLiterals().equals( + other.internalGetLiterals()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetLiterals().getMap().isEmpty()) { + hash = (37 * hash) + LITERALS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLiterals().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap 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.Literals.LiteralMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap 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.Literals.LiteralMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.LiteralMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.LiteralMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) + flyteidl.core.Literals.LiteralMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableLiterals(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.LiteralMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableLiterals().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; + } + + public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); + } + + public flyteidl.core.Literals.LiteralMap build() { + flyteidl.core.Literals.LiteralMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.LiteralMap buildPartial() { + flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); + int from_bitField0_ = bitField0_; + result.literals_ = internalGetLiterals(); + result.literals_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.LiteralMap) { + return mergeFrom((flyteidl.core.Literals.LiteralMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { + if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; + internalGetMutableLiterals().mergeFrom( + other.internalGetLiterals()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.LiteralMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.Literal> literals_; + private com.google.protobuf.MapField + internalGetLiterals() { + if (literals_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + return literals_; + } + private com.google.protobuf.MapField + internalGetMutableLiterals() { + onChanged();; + if (literals_ == null) { + literals_ = com.google.protobuf.MapField.newMapField( + LiteralsDefaultEntryHolder.defaultEntry); + } + if (!literals_.isMutable()) { + literals_ = literals_.copy(); + } + return literals_; + } + + public int getLiteralsCount() { + return internalGetLiterals().getMap().size(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public boolean containsLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLiterals().getMap().containsKey(key); + } + /** + * Use {@link #getLiteralsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLiterals() { + return getLiteralsMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public java.util.Map getLiteralsMap() { + return internalGetLiterals().getMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrDefault( + java.lang.String key, + flyteidl.core.Literals.Literal defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public flyteidl.core.Literals.Literal getLiteralsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLiterals().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLiterals() { + internalGetMutableLiterals().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder removeLiterals( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLiterals() { + return internalGetMutableLiterals().getMutableMap(); + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + public Builder putLiterals( + java.lang.String key, + flyteidl.core.Literals.Literal value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLiterals().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.Literal> literals = 1; + */ + + public Builder putAllLiterals( + java.util.Map values) { + internalGetMutableLiterals().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.LiteralMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); + } + + public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LiteralMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingData getBindings(int index); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + int getBindingsCount(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + java.util.List + getBindingsOrBuilderList(); + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index); + } + /** + *
+   * A collection of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class BindingDataCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) + BindingDataCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataCollection.newBuilder() to construct. + private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataCollection() { + bindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataCollection( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + bindings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + bindings_.add( + input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry)); + 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) == 0x00000001)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private java.util.List bindings_; + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + return bindings_.size(); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + return bindings_.get(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + return bindings_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < bindings_.size(); i++) { + output.writeMessage(1, bindings_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings_.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.core.Literals.BindingDataCollection)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; + + boolean result = true; + result = result && getBindingsList() + .equals(other.getBindingsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection 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.Literals.BindingDataCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection 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.Literals.BindingDataCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BindingDataCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 collection of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) + flyteidl.core.Literals.BindingDataCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBindingsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + bindingsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; + } + + public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + public flyteidl.core.Literals.BindingDataCollection build() { + flyteidl.core.Literals.BindingDataCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.BindingDataCollection buildPartial() { + flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); + int from_bitField0_ = bitField0_; + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BindingDataCollection) { + return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { + if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBindingsFieldBuilder() : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BindingDataCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List bindings_ = + java.util.Collections.emptyList(); + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; + + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder setBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings(flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addBindings( + int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( + int index) { + return getBindingsFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( + int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { + return getBindingsFieldBuilder().addBuilder( + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( + int index) { + return getBindingsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + /** + * repeated .flyteidl.core.BindingData bindings = 1; + */ + public java.util.List + getBindingsBuilderList() { + return getBindingsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + bindings_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BindingDataCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); + } + + public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BindingDataCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataCollection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataMapOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) + com.google.protobuf.MessageOrBuilder { + + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + int getBindingsCount(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + boolean containsBindings( + java.lang.String key); + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getBindings(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + java.util.Map + getBindingsMap(); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue); + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key); + } + /** + *
+   * A map of BindingData items.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class BindingDataMap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) + BindingDataMapOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingDataMap.newBuilder() to construct. + private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingDataMap() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingDataMap( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + bindings__ = input.readMessage( + BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + bindings_.getMutableMap().put( + bindings__.getKey(), bindings__.getValue()); + 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.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + private static final class BindingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + flyteidl.core.Literals.BindingData.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetBindings(), + BindingsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetBindings().getMap().entrySet()) { + com.google.protobuf.MapEntry + bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, bindings__); + } + 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.Literals.BindingDataMap)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; + + boolean result = true; + result = result && internalGetBindings().equals( + other.internalGetBindings()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetBindings().getMap().isEmpty()) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetBindings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap 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.Literals.BindingDataMap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap 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.Literals.BindingDataMap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingDataMap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BindingDataMap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 map of BindingData items.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingDataMap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) + flyteidl.core.Literals.BindingDataMapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableBindings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingDataMap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + internalGetMutableBindings().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; + } + + public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + public flyteidl.core.Literals.BindingDataMap build() { + flyteidl.core.Literals.BindingDataMap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.BindingDataMap buildPartial() { + flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); + int from_bitField0_ = bitField0_; + result.bindings_ = internalGetBindings(); + result.bindings_.makeImmutable(); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BindingDataMap) { + return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { + if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; + internalGetMutableBindings().mergeFrom( + other.internalGetBindings()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BindingDataMap parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, flyteidl.core.Literals.BindingData> bindings_; + private com.google.protobuf.MapField + internalGetBindings() { + if (bindings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + return bindings_; + } + private com.google.protobuf.MapField + internalGetMutableBindings() { + onChanged();; + if (bindings_ == null) { + bindings_ = com.google.protobuf.MapField.newMapField( + BindingsDefaultEntryHolder.defaultEntry); + } + if (!bindings_.isMutable()) { + bindings_ = bindings_.copy(); + } + return bindings_; + } + + public int getBindingsCount() { + return internalGetBindings().getMap().size(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public boolean containsBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetBindings().getMap().containsKey(key); + } + /** + * Use {@link #getBindingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getBindings() { + return getBindingsMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public java.util.Map getBindingsMap() { + return internalGetBindings().getMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrDefault( + java.lang.String key, + flyteidl.core.Literals.BindingData defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public flyteidl.core.Literals.BindingData getBindingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetBindings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearBindings() { + internalGetMutableBindings().getMutableMap() + .clear(); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder removeBindings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableBindings() { + return internalGetMutableBindings().getMutableMap(); + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + public Builder putBindings( + java.lang.String key, + flyteidl.core.Literals.BindingData value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableBindings().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, .flyteidl.core.BindingData> bindings = 1; + */ + + public Builder putAllBindings( + java.util.Map values) { + internalGetMutableBindings().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BindingDataMap) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); + } + + public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BindingDataMap parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingDataMap(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + boolean hasScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.Scalar getScalar(); + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); + + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + boolean hasCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollection getCollection(); + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); + + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + boolean hasPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReference getPromise(); + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); + + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + boolean hasMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMap getMap(); + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); + + public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); + } + /** + *
+   * Specifies either a simple value or a reference to another output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class BindingData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) + BindingDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BindingData.newBuilder() to construct. + private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BindingData() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BindingData( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Literals.Scalar.Builder subBuilder = null; + if (valueCase_ == 1) { + subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 1; + break; + } + case 18: { + flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; + if (valueCase_ == 2) { + subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.OutputReference.Builder subBuilder = null; + if (valueCase_ == 3) { + subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 3; + break; + } + case 34: { + flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; + if (valueCase_ == 4) { + subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); + } + value_ = + input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); + value_ = subBuilder.buildPartial(); + } + valueCase_ = 4; + 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.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + private int valueCase_ = 0; + private java.lang.Object value_; + public enum ValueCase + implements com.google.protobuf.Internal.EnumLite { + SCALAR(1), + COLLECTION(2), + PROMISE(3), + MAP(4), + VALUE_NOT_SET(0); + private final int value; + private ValueCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueCase valueOf(int value) { + return forNumber(value); + } + + public static ValueCase forNumber(int value) { + switch (value) { + case 1: return SCALAR; + case 2: return COLLECTION; + case 3: return PROMISE; + case 4: return MAP; + case 0: return VALUE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public static final int SCALAR_FIELD_NUMBER = 1; + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + /** + *
+     * A simple scalar value.
+     * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + + public static final int COLLECTION_FIELD_NUMBER = 2; + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + /** + *
+     * A collection of binding data. This allows nesting of binding data to any number
+     * of levels.
+     * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + + public static final int PROMISE_FIELD_NUMBER = 3; + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + /** + *
+     * References an output promised by another node.
+     * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + public static final int MAP_FIELD_NUMBER = 4; + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + /** + *
+     * A map of bindings. The key is always a string.
+     * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (valueCase_ == 1) { + output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (valueCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); + } + if (valueCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); + } + if (valueCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); + } + if (valueCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) value_); + } + 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.Literals.BindingData)) { + return super.equals(obj); + } + flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; + + boolean result = true; + result = result && getValueCase().equals( + other.getValueCase()); + if (!result) return false; + switch (valueCase_) { + case 1: + result = result && getScalar() + .equals(other.getScalar()); + break; + case 2: + result = result && getCollection() + .equals(other.getCollection()); + break; + case 3: + result = result && getPromise() + .equals(other.getPromise()); + break; + case 4: + result = result && getMap() + .equals(other.getMap()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (valueCase_) { + case 1: + hash = (37 * hash) + SCALAR_FIELD_NUMBER; + hash = (53 * hash) + getScalar().hashCode(); + break; + case 2: + hash = (37 * hash) + COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getCollection().hashCode(); + break; + case 3: + hash = (37 * hash) + PROMISE_FIELD_NUMBER; + hash = (53 * hash) + getPromise().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_FIELD_NUMBER; + hash = (53 * hash) + getMap().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData 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.Literals.BindingData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.BindingData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData 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.Literals.BindingData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.BindingData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.BindingData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Specifies either a simple value or a reference to another output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.BindingData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) + flyteidl.core.Literals.BindingDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); + } + + // Construct using flyteidl.core.Literals.BindingData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + valueCase_ = 0; + value_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; + } + + public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return flyteidl.core.Literals.BindingData.getDefaultInstance(); + } + + public flyteidl.core.Literals.BindingData build() { + flyteidl.core.Literals.BindingData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.BindingData buildPartial() { + flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); + if (valueCase_ == 1) { + if (scalarBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = scalarBuilder_.build(); + } + } + if (valueCase_ == 2) { + if (collectionBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = collectionBuilder_.build(); + } + } + if (valueCase_ == 3) { + if (promiseBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = promiseBuilder_.build(); + } + } + if (valueCase_ == 4) { + if (mapBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = mapBuilder_.build(); + } + } + result.valueCase_ = valueCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.BindingData) { + return mergeFrom((flyteidl.core.Literals.BindingData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { + if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; + switch (other.getValueCase()) { + case SCALAR: { + mergeScalar(other.getScalar()); + break; + } + case COLLECTION: { + mergeCollection(other.getCollection()); + break; + } + case PROMISE: { + mergePromise(other.getPromise()); + break; + } + case MAP: { + mergeMap(other.getMap()); + break; + } + case VALUE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.BindingData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int valueCase_ = 0; + private java.lang.Object value_; + public ValueCase + getValueCase() { + return ValueCase.forNumber( + valueCase_); + } + + public Builder clearValue() { + valueCase_ = 0; + value_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public boolean hasScalar() { + return valueCase_ == 1; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar getScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } else { + if (valueCase_ == 1) { + return scalarBuilder_.getMessage(); + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder setScalar( + flyteidl.core.Literals.Scalar.Builder builderForValue) { + if (scalarBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + scalarBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { + if (scalarBuilder_ == null) { + if (valueCase_ == 1 && + value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { + value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 1) { + scalarBuilder_.mergeFrom(value); + } + scalarBuilder_.setMessage(value); + } + valueCase_ = 1; + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public Builder clearScalar() { + if (scalarBuilder_ == null) { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 1) { + valueCase_ = 0; + value_ = null; + } + scalarBuilder_.clear(); + } + return this; + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { + return getScalarFieldBuilder().getBuilder(); + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { + if ((valueCase_ == 1) && (scalarBuilder_ != null)) { + return scalarBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 1) { + return (flyteidl.core.Literals.Scalar) value_; + } + return flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + } + /** + *
+       * A simple scalar value.
+       * 
+ * + * .flyteidl.core.Scalar scalar = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> + getScalarFieldBuilder() { + if (scalarBuilder_ == null) { + if (!(valueCase_ == 1)) { + value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); + } + scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( + (flyteidl.core.Literals.Scalar) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 1; + onChanged();; + return scalarBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public boolean hasCollection() { + return valueCase_ == 2; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection getCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } else { + if (valueCase_ == 2) { + return collectionBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder setCollection( + flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { + if (collectionBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + collectionBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { + if (collectionBuilder_ == null) { + if (valueCase_ == 2 && + value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 2) { + collectionBuilder_.mergeFrom(value); + } + collectionBuilder_.setMessage(value); + } + valueCase_ = 2; + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public Builder clearCollection() { + if (collectionBuilder_ == null) { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 2) { + valueCase_ = 0; + value_ = null; + } + collectionBuilder_.clear(); + } + return this; + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { + return getCollectionFieldBuilder().getBuilder(); + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { + if ((valueCase_ == 2) && (collectionBuilder_ != null)) { + return collectionBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 2) { + return (flyteidl.core.Literals.BindingDataCollection) value_; + } + return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + } + /** + *
+       * A collection of binding data. This allows nesting of binding data to any number
+       * of levels.
+       * 
+ * + * .flyteidl.core.BindingDataCollection collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> + getCollectionFieldBuilder() { + if (collectionBuilder_ == null) { + if (!(valueCase_ == 2)) { + value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); + } + collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( + (flyteidl.core.Literals.BindingDataCollection) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 2; + onChanged();; + return collectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public boolean hasPromise() { + return valueCase_ == 3; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference getPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } else { + if (valueCase_ == 3) { + return promiseBuilder_.getMessage(); + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder setPromise( + flyteidl.core.Types.OutputReference.Builder builderForValue) { + if (promiseBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + promiseBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder mergePromise(flyteidl.core.Types.OutputReference value) { + if (promiseBuilder_ == null) { + if (valueCase_ == 3 && + value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { + value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 3) { + promiseBuilder_.mergeFrom(value); + } + promiseBuilder_.setMessage(value); + } + valueCase_ = 3; + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public Builder clearPromise() { + if (promiseBuilder_ == null) { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 3) { + valueCase_ = 0; + value_ = null; + } + promiseBuilder_.clear(); + } + return this; + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { + return getPromiseFieldBuilder().getBuilder(); + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { + if ((valueCase_ == 3) && (promiseBuilder_ != null)) { + return promiseBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 3) { + return (flyteidl.core.Types.OutputReference) value_; + } + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + } + /** + *
+       * References an output promised by another node.
+       * 
+ * + * .flyteidl.core.OutputReference promise = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> + getPromiseFieldBuilder() { + if (promiseBuilder_ == null) { + if (!(valueCase_ == 3)) { + value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( + (flyteidl.core.Types.OutputReference) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 3; + onChanged();; + return promiseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public boolean hasMap() { + return valueCase_ == 4; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap getMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } else { + if (valueCase_ == 4) { + return mapBuilder_.getMessage(); + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder setMap( + flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { + if (mapBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + mapBuilder_.setMessage(builderForValue.build()); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { + if (mapBuilder_ == null) { + if (valueCase_ == 4 && + value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { + value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) + .mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + if (valueCase_ == 4) { + mapBuilder_.mergeFrom(value); + } + mapBuilder_.setMessage(value); + } + valueCase_ = 4; + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public Builder clearMap() { + if (mapBuilder_ == null) { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + onChanged(); + } + } else { + if (valueCase_ == 4) { + valueCase_ = 0; + value_ = null; + } + mapBuilder_.clear(); + } + return this; + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { + return getMapFieldBuilder().getBuilder(); + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { + if ((valueCase_ == 4) && (mapBuilder_ != null)) { + return mapBuilder_.getMessageOrBuilder(); + } else { + if (valueCase_ == 4) { + return (flyteidl.core.Literals.BindingDataMap) value_; + } + return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + } + /** + *
+       * A map of bindings. The key is always a string.
+       * 
+ * + * .flyteidl.core.BindingDataMap map = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> + getMapFieldBuilder() { + if (mapBuilder_ == null) { + if (!(valueCase_ == 4)) { + value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); + } + mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( + (flyteidl.core.Literals.BindingDataMap) value_, + getParentForChildren(), + isClean()); + value_ = null; + } + valueCase_ = 4; + onChanged();; + return mapBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BindingData) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); + } + + public static flyteidl.core.Literals.BindingData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BindingData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + boolean hasBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingData getBinding(); + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); + } + /** + *
+   * An input/output binding of a variable to either static value or a node output.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Binding extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) + BindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Binding.newBuilder() to construct. + private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Binding() { + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Binding( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = s; + break; + } + case 18: { + flyteidl.core.Literals.BindingData.Builder subBuilder = null; + if (binding_ != null) { + subBuilder = binding_.toBuilder(); + } + binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binding_); + binding_ = subBuilder.buildPartial(); + } + + 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.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must match an input/output variable of the node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_FIELD_NUMBER = 2; + private flyteidl.core.Literals.BindingData binding_; + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return binding_ != null; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + /** + *
+     * Data to use to bind this variable.
+     * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + return getBinding(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (binding_ != null) { + output.writeMessage(2, getBinding()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (binding_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBinding()); + } + 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.Literals.Binding)) { + return super.equals(obj); + } + flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; + + boolean result = true; + result = result && getVar() + .equals(other.getVar()); + result = result && (hasBinding() == other.hasBinding()); + if (hasBinding()) { + result = result && getBinding() + .equals(other.getBinding()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + if (hasBinding()) { + hash = (37 * hash) + BINDING_FIELD_NUMBER; + hash = (53 * hash) + getBinding().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding 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.Literals.Binding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.Binding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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.Literals.Binding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding 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.Literals.Binding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.Binding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.Binding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * An input/output binding of a variable to either static value or a node output.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Binding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) + flyteidl.core.Literals.BindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); + } + + // Construct using flyteidl.core.Literals.Binding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + var_ = ""; + + if (bindingBuilder_ == null) { + binding_ = null; + } else { + binding_ = null; + bindingBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; + } + + public flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return flyteidl.core.Literals.Binding.getDefaultInstance(); + } + + public flyteidl.core.Literals.Binding build() { + flyteidl.core.Literals.Binding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.Binding buildPartial() { + flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); + result.var_ = var_; + if (bindingBuilder_ == null) { + result.binding_ = binding_; + } else { + result.binding_ = bindingBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.Binding) { + return mergeFrom((flyteidl.core.Literals.Binding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.Binding other) { + if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (other.hasBinding()) { + mergeBinding(other.getBinding()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.Binding parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must match an input/output variable of the node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Literals.BindingData binding_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public boolean hasBinding() { + return bindingBuilder_ != null || binding_ != null; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData getBinding() { + if (bindingBuilder_ == null) { + return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } else { + return bindingBuilder_.getMessage(); + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + onChanged(); + } else { + bindingBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder setBinding( + flyteidl.core.Literals.BindingData.Builder builderForValue) { + if (bindingBuilder_ == null) { + binding_ = builderForValue.build(); + onChanged(); + } else { + bindingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { + if (bindingBuilder_ == null) { + if (binding_ != null) { + binding_ = + flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); + } else { + binding_ = value; + } + onChanged(); + } else { + bindingBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public Builder clearBinding() { + if (bindingBuilder_ == null) { + binding_ = null; + onChanged(); + } else { + binding_ = null; + bindingBuilder_ = null; + } + + return this; + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { + + onChanged(); + return getBindingFieldBuilder().getBuilder(); + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { + if (bindingBuilder_ != null) { + return bindingBuilder_.getMessageOrBuilder(); + } else { + return binding_ == null ? + flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; + } + } + /** + *
+       * Data to use to bind this variable.
+       * 
+ * + * .flyteidl.core.BindingData binding = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> + getBindingFieldBuilder() { + if (bindingBuilder_ == null) { + bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( + getBinding(), + getParentForChildren(), + isClean()); + binding_ = null; + } + return bindingBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Binding) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); + } + + public static flyteidl.core.Literals.Binding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Binding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Binding(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.Binding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface KeyValuePairOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + java.lang.String getKey(); + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+   * A generic key value pair.
+   * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class KeyValuePair extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) + KeyValuePairOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyValuePair.newBuilder() to construct. + private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KeyValuePair() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyValuePair( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + 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.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + *
+     *required.
+     * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + *
+     *+optional.
+     * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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.Literals.KeyValuePair)) { + return super.equals(obj); + } + flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) obj; + + boolean result = true; + result = result && getKey() + .equals(other.getKey()); + result = result && getValue() + .equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair 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.Literals.KeyValuePair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair 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.Literals.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.KeyValuePair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.KeyValuePair prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 generic key value pair.
+     * 
+ * + * Protobuf type {@code flyteidl.core.KeyValuePair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) + flyteidl.core.Literals.KeyValuePairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); + } + + // Construct using flyteidl.core.Literals.KeyValuePair.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; + } + + public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); + } + + public flyteidl.core.Literals.KeyValuePair build() { + flyteidl.core.Literals.KeyValuePair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.KeyValuePair buildPartial() { + flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(this); + result.key_ = key_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.KeyValuePair) { + return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { + if (other == flyteidl.core.Literals.KeyValuePair.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.KeyValuePair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       *required.
+       * 
+ * + * string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       *+optional.
+       * 
+ * + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.KeyValuePair) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); + } + + public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public KeyValuePair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyValuePair(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RetryStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + int getRetries(); + } + /** + *
+   * Retry strategy associated with an executable unit.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class RetryStrategy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) + RetryStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryStrategy.newBuilder() to construct. + private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RetryStrategy() { + retries_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RetryStrategy( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 40: { + + retries_ = input.readUInt32(); + 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.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private int retries_; + /** + *
+     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+     * The number of retries must be less than or equals to 10.
+     * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (retries_ != 0) { + output.writeUInt32(5, retries_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retries_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, retries_); + } + 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.Literals.RetryStrategy)) { + return super.equals(obj); + } + flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; + + boolean result = true; + result = result && (getRetries() + == other.getRetries()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy 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.Literals.RetryStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy 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.Literals.RetryStrategy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Literals.RetryStrategy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Literals.RetryStrategy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Retry strategy associated with an executable unit.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RetryStrategy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) + flyteidl.core.Literals.RetryStrategyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); + } + + // Construct using flyteidl.core.Literals.RetryStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + retries_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; + } + + public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); + } + + public flyteidl.core.Literals.RetryStrategy build() { + flyteidl.core.Literals.RetryStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Literals.RetryStrategy buildPartial() { + flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); + result.retries_ = retries_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Literals.RetryStrategy) { + return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { + if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; + if (other.getRetries() != 0) { + setRetries(other.getRetries()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Literals.RetryStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int retries_ ; + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public int getRetries() { + return retries_; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder setRetries(int value) { + + retries_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
+       * The number of retries must be less than or equals to 10.
+       * 
+ * + * uint32 retries = 5; + */ + public Builder clearRetries() { + + retries_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.RetryStrategy) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); + } + + public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RetryStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryStrategy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Primitive_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Primitive_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Void_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Void_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Blob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Blob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binary_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binary_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Schema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Schema_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Scalar_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Scalar_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Literal_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Literal_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BindingData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BindingData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Binding_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Binding_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_KeyValuePair_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RetryStrategy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/literals.proto\022\rflyteidl" + + ".core\032\037google/protobuf/timestamp.proto\032\036" + + "google/protobuf/duration.proto\032\034google/p" + + "rotobuf/struct.proto\032\031flyteidl/core/type" + + "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + + "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + + "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + + " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + + "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + + "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + + " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + + "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + + "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + + "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + + "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + + "ype\"\264\002\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030.flyt" + + "eidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132\023.fl" + + "yteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025.fly" + + "teidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132\025.fl" + + "yteidl.core.SchemaH\000\022(\n\tnone_type\030\005 \001(\0132" + + "\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(\0132\024." + + "flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001(\0132\027" + + ".google.protobuf.StructH\000B\007\n\005value\"\235\001\n\007L" + + "iteral\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.core.S" + + "calarH\000\0226\n\ncollection\030\002 \001(\0132 .flyteidl.c" + + "ore.LiteralCollectionH\000\022(\n\003map\030\003 \001(\0132\031.f" + + "lyteidl.core.LiteralMapH\000B\007\n\005value\"=\n\021Li" + + "teralCollection\022(\n\010literals\030\001 \003(\0132\026.flyt" + + "eidl.core.Literal\"\220\001\n\nLiteralMap\0229\n\010lite" + + "rals\030\001 \003(\0132\'.flyteidl.core.LiteralMap.Li" + + "teralsEntry\032G\n\rLiteralsEntry\022\013\n\003key\030\001 \001(" + + "\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal" + + ":\0028\001\"E\n\025BindingDataCollection\022,\n\010binding" + + "s\030\001 \003(\0132\032.flyteidl.core.BindingData\"\234\001\n\016" + + "BindingDataMap\022=\n\010bindings\030\001 \003(\0132+.flyte" + + "idl.core.BindingDataMap.BindingsEntry\032K\n" + + "\rBindingsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001" + + "(\0132\032.flyteidl.core.BindingData:\0028\001\"\334\001\n\013B" + + "indingData\022\'\n\006scalar\030\001 \001(\0132\025.flyteidl.co" + + "re.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$.flytei" + + "dl.core.BindingDataCollectionH\000\0221\n\007promi" + + "se\030\003 \001(\0132\036.flyteidl.core.OutputReference" + + "H\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.BindingD" + + "ataMapH\000B\007\n\005value\"C\n\007Binding\022\013\n\003var\030\001 \001(" + + "\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.core.Bindi" + + "ngData\"*\n\014KeyValuePair\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007retries\030\005" + + " \001(\rB2Z0github.com/lyft/flyteidl/gen/pb-" + + "go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Primitive_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Primitive_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Primitive_descriptor, + new java.lang.String[] { "Integer", "FloatValue", "StringValue", "Boolean", "Datetime", "Duration", "Value", }); + internal_static_flyteidl_core_Void_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_Void_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Void_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_Blob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_Blob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Blob_descriptor, + new java.lang.String[] { "Metadata", "Uri", }); + internal_static_flyteidl_core_BlobMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobMetadata_descriptor, + new java.lang.String[] { "Type", }); + internal_static_flyteidl_core_Binary_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Binary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binary_descriptor, + new java.lang.String[] { "Value", "Tag", }); + internal_static_flyteidl_core_Schema_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Schema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Schema_descriptor, + new java.lang.String[] { "Uri", "Type", }); + internal_static_flyteidl_core_Scalar_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Scalar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Scalar_descriptor, + new java.lang.String[] { "Primitive", "Blob", "Binary", "Schema", "NoneType", "Error", "Generic", "Value", }); + internal_static_flyteidl_core_Literal_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_Literal_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Literal_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Map", "Value", }); + internal_static_flyteidl_core_LiteralCollection_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralCollection_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_LiteralMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_descriptor, + new java.lang.String[] { "Literals", }); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor = + internal_static_flyteidl_core_LiteralMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingDataCollection_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataCollection_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor = + internal_static_flyteidl_core_BindingDataMap_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_BindingData_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_flyteidl_core_BindingData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BindingData_descriptor, + new java.lang.String[] { "Scalar", "Collection", "Promise", "Map", "Value", }); + internal_static_flyteidl_core_Binding_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_flyteidl_core_Binding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Binding_descriptor, + new java.lang.String[] { "Var", "Binding", }); + internal_static_flyteidl_core_KeyValuePair_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_KeyValuePair_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_core_RetryStrategy_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RetryStrategy_descriptor, + new java.lang.String[] { "Retries", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Tasks.java b/flyteidl/gen/pb-java/flyteidl/core/Tasks.java new file mode 100644 index 0000000000..0a597fdbbc --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Tasks.java @@ -0,0 +1,10213 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/tasks.proto + +package flyteidl.core; + +public final class Tasks { + private Tasks() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ResourcesOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + int getRequestsCount(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index); + + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + int getLimitsCount(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + java.util.List + getLimitsOrBuilderList(); + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index); + } + /** + *
+   * A customizable interface to convey resources requested for a container. This can be interpretted differently for different
+   * container engines.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Resources extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) + ResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use Resources.newBuilder() to construct. + private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Resources() { + requests_ = java.util.Collections.emptyList(); + limits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Resources( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + limits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + limits_.add( + input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); + 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) == 0x00000001)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + /** + *
+     * Known resource names.
+     * 
+ * + * Protobuf enum {@code flyteidl.core.Resources.ResourceName} + */ + public enum ResourceName + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0), + /** + * CPU = 1; + */ + CPU(1), + /** + * GPU = 2; + */ + GPU(2), + /** + * MEMORY = 3; + */ + MEMORY(3), + /** + * STORAGE = 4; + */ + STORAGE(4), + UNRECOGNIZED(-1), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CPU = 1; + */ + public static final int CPU_VALUE = 1; + /** + * GPU = 2; + */ + public static final int GPU_VALUE = 2; + /** + * MEMORY = 3; + */ + public static final int MEMORY_VALUE = 3; + /** + * STORAGE = 4; + */ + public static final int STORAGE_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceName valueOf(int value) { + return forNumber(value); + } + + public static ResourceName forNumber(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CPU; + case 2: return GPU; + case 3: return MEMORY; + case 4: return STORAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResourceName> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResourceName findValueByNumber(int number) { + return ResourceName.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); + } + + private static final ResourceName[] VALUES = values(); + + public static ResourceName valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ResourceName(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) + } + + public interface ResourceEntryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + int getNameValue(); + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + flyteidl.core.Tasks.Resources.ResourceName getName(); + + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + java.lang.String getValue(); + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + *
+     * Encapsulates a resource name and value.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class ResourceEntry extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) + ResourceEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceEntry.newBuilder() to construct. + private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceEntry() { + name_ = 0; + value_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceEntry( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + name_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + 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.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private int name_; + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+       * Resource name.
+       * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + *
+       * Value must be a valid k8s quantity. See
+       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+       * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + output.writeEnum(1, name_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, name_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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.Tasks.Resources.ResourceEntry)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; + + boolean result = true; + result = result && name_ == other.name_; + result = result && getValue() + .equals(other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + name_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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.Tasks.Resources.ResourceEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry 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.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Resources.ResourceEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+       * Encapsulates a resource name and value.
+       * 
+ * + * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) + flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = 0; + + value_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + } + + public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); + } + + public flyteidl.core.Tasks.Resources.ResourceEntry build() { + flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { + flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); + result.name_ = name_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Resources.ResourceEntry) { + return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { + if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; + if (other.name_ != 0) { + setNameValue(other.getNameValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Resources.ResourceEntry parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int name_ = 0; + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public int getNameValue() { + return name_; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setNameValue(int value) { + name_ = value; + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceName getName() { + flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); + return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * Resource name.
+         * 
+ * + * .flyteidl.core.Resources.ResourceName name = 1; + */ + public Builder clearName() { + + name_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+         * Value must be a valid k8s quantity. See
+         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
+         * 
+ * + * string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Resources.ResourceEntry) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); + } + + public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ResourceEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceEntry(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * The desired set of resources requested. ResourceNames must be unique within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + public static final int LIMITS_FIELD_NUMBER = 2; + private java.util.List limits_; + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + return limits_; + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + return limits_.size(); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + return limits_.get(index); + } + /** + *
+     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+     * within the list.
+     * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + return limits_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + output.writeMessage(2, limits_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + for (int i = 0; i < limits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, limits_.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.core.Tasks.Resources)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; + + boolean result = true; + result = result && getRequestsList() + .equals(other.getRequestsList()); + result = result && getLimitsList() + .equals(other.getLimitsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (getLimitsCount() > 0) { + hash = (37 * hash) + LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getLimitsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources 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.Tasks.Resources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Resources parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources 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.Tasks.Resources parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Resources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Resources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 customizable interface to convey resources requested for a container. This can be interpretted differently for different
+     * container engines.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Resources} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) + flyteidl.core.Tasks.ResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Resources.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + getLimitsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + limitsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; + } + + public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return flyteidl.core.Tasks.Resources.getDefaultInstance(); + } + + public flyteidl.core.Tasks.Resources build() { + flyteidl.core.Tasks.Resources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.Resources buildPartial() { + flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + if (limitsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + limits_ = java.util.Collections.unmodifiableList(limits_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.limits_ = limits_; + } else { + result.limits_ = limitsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Resources) { + return mergeFrom((flyteidl.core.Tasks.Resources)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { + if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + if (limitsBuilder_ == null) { + if (!other.limits_.isEmpty()) { + if (limits_.isEmpty()) { + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLimitsIsMutable(); + limits_.addAll(other.limits_); + } + onChanged(); + } + } else { + if (!other.limits_.isEmpty()) { + if (limitsBuilder_.isEmpty()) { + limitsBuilder_.dispose(); + limitsBuilder_ = null; + limits_ = other.limits_; + bitField0_ = (bitField0_ & ~0x00000002); + limitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLimitsFieldBuilder() : null; + } else { + limitsBuilder_.addAllMessages(other.limits_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Resources parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; + + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder setRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addRequests( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * The desired set of resources requested. ResourceNames must be unique within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + private java.util.List limits_ = + java.util.Collections.emptyList(); + private void ensureLimitsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + limits_ = new java.util.ArrayList(limits_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; + + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List getLimitsList() { + if (limitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(limits_); + } else { + return limitsBuilder_.getMessageList(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public int getLimitsCount() { + if (limitsBuilder_ == null) { + return limits_.size(); + } else { + return limitsBuilder_.getCount(); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); + } else { + return limitsBuilder_.getMessage(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.set(index, value); + onChanged(); + } else { + limitsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder setLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.set(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(value); + onChanged(); + } else { + limitsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { + if (limitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLimitsIsMutable(); + limits_.add(index, value); + onChanged(); + } else { + limitsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addLimits( + int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.add(index, builderForValue.build()); + onChanged(); + } else { + limitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder addAllLimits( + java.lang.Iterable values) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, limits_); + onChanged(); + } else { + limitsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder clearLimits() { + if (limitsBuilder_ == null) { + limits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + limitsBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public Builder removeLimits(int index) { + if (limitsBuilder_ == null) { + ensureLimitsIsMutable(); + limits_.remove(index); + onChanged(); + } else { + limitsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( + int index) { + return getLimitsFieldBuilder().getBuilder(index); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( + int index) { + if (limitsBuilder_ == null) { + return limits_.get(index); } else { + return limitsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsOrBuilderList() { + if (limitsBuilder_ != null) { + return limitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(limits_); + } + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { + return getLimitsFieldBuilder().addBuilder( + flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( + int index) { + return getLimitsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); + } + /** + *
+       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
+       * within the list.
+       * 
+ * + * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; + */ + public java.util.List + getLimitsBuilderList() { + return getLimitsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> + getLimitsFieldBuilder() { + if (limitsBuilder_ == null) { + limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( + limits_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + limits_ = null; + } + return limitsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Resources) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); + } + + public static flyteidl.core.Tasks.Resources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Resources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Resources(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + int getTypeValue(); + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); + + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + java.lang.String getVersion(); + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + java.lang.String getFlavor(); + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + com.google.protobuf.ByteString + getFlavorBytes(); + } + /** + *
+   * Runtime information. This is losely defined to allow for extensibility.
+   * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class RuntimeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) + RuntimeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeMetadata.newBuilder() to construct. + private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeMetadata() { + type_ = 0; + version_ = ""; + flavor_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuntimeMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + flavor_ = s; + 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.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} + */ + public enum RuntimeType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * OTHER = 0; + */ + OTHER(0), + /** + * FLYTE_SDK = 1; + */ + FLYTE_SDK(1), + UNRECOGNIZED(-1), + ; + + /** + * OTHER = 0; + */ + public static final int OTHER_VALUE = 0; + /** + * FLYTE_SDK = 1; + */ + public static final int FLYTE_SDK_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RuntimeType valueOf(int value) { + return forNumber(value); + } + + public static RuntimeType forNumber(int value) { + switch (value) { + case 0: return OTHER; + case 1: return FLYTE_SDK; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + RuntimeType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuntimeType findValueByNumber(int number) { + return RuntimeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); + } + + private static final RuntimeType[] VALUES = values(); + + public static RuntimeType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RuntimeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+     * Type of runtime.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + + public static final int VERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object version_; + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + /** + *
+     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+     * checks to ensure tighter validation or setting expectations.
+     * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FLAVOR_FIELD_NUMBER = 3; + private volatile java.lang.Object flavor_; + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + 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(); + flavor_ = s; + return s; + } + } + /** + *
+     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+     * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + output.writeEnum(1, type_); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); + } + if (!getFlavorBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); + } + if (!getFlavorBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); + } + 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.Tasks.RuntimeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getVersion() + .equals(other.getVersion()); + result = result && getFlavor() + .equals(other.getFlavor()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + FLAVOR_FIELD_NUMBER; + hash = (53 * hash) + getFlavor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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.Tasks.RuntimeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata 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.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.RuntimeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Runtime information. This is losely defined to allow for extensibility.
+     * 
+ * + * Protobuf type {@code flyteidl.core.RuntimeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) + flyteidl.core.Tasks.RuntimeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.RuntimeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + version_ = ""; + + flavor_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; + } + + public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); + } + + public flyteidl.core.Tasks.RuntimeMetadata build() { + flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { + flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); + result.type_ = type_; + result.version_ = version_; + result.flavor_ = flavor_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.RuntimeMetadata) { + return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { + if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getFlavor().isEmpty()) { + flavor_ = other.flavor_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.RuntimeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { + flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); + return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Type of runtime.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
+       * checks to ensure tighter validation or setting expectations.
+       * 
+ * + * string version = 2; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object flavor_ = ""; + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public java.lang.String getFlavor() { + java.lang.Object ref = flavor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + flavor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public com.google.protobuf.ByteString + getFlavorBytes() { + java.lang.Object ref = flavor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + flavor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + flavor_ = value; + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder clearFlavor() { + + flavor_ = getDefaultInstance().getFlavor(); + onChanged(); + return this; + } + /** + *
+       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
+       * 
+ * + * string flavor = 3; + */ + public Builder setFlavorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + flavor_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.RuntimeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); + } + + public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public RuntimeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + boolean getDiscoverable(); + + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + boolean hasRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadata getRuntime(); + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); + + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + java.lang.String getDiscoveryVersion(); + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + com.google.protobuf.ByteString + getDiscoveryVersionBytes(); + + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + java.lang.String getDeprecatedErrorMessage(); + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes(); + } + /** + *
+   * Task Metadata
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class TaskMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) + TaskMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskMetadata.newBuilder() to construct. + private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskMetadata() { + discoverable_ = false; + discoveryVersion_ = ""; + deprecatedErrorMessage_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + discoverable_ = input.readBool(); + break; + } + case 18: { + flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; + if (runtime_ != null) { + subBuilder = runtime_.toBuilder(); + } + runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runtime_); + runtime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + discoveryVersion_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + deprecatedErrorMessage_ = s; + 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.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + public static final int DISCOVERABLE_FIELD_NUMBER = 1; + private boolean discoverable_; + /** + *
+     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+     * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + + public static final int RUNTIME_FIELD_NUMBER = 2; + private flyteidl.core.Tasks.RuntimeMetadata runtime_; + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtime_ != null; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + /** + *
+     * Runtime information about the task.
+     * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + return getRuntime(); + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task including user-triggered retries.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; + private volatile java.lang.Object discoveryVersion_; + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + 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(); + discoveryVersion_ = s; + return s; + } + } + /** + *
+     * Indicates a logical version to apply to this task for the purpose of discovery.
+     * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; + private volatile java.lang.Object deprecatedErrorMessage_; + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + 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(); + deprecatedErrorMessage_ = s; + return s; + } + } + /** + *
+     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+     * of the ending of support for a given task.
+     * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (discoverable_ != false) { + output.writeBool(1, discoverable_); + } + if (runtime_ != null) { + output.writeMessage(2, getRuntime()); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (discoverable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, discoverable_); + } + if (runtime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRuntime()); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + if (!getDiscoveryVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); + } + if (!getDeprecatedErrorMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); + } + 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.Tasks.TaskMetadata)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; + + boolean result = true; + result = result && (getDiscoverable() + == other.getDiscoverable()); + result = result && (hasRuntime() == other.hasRuntime()); + if (hasRuntime()) { + result = result && getRuntime() + .equals(other.getRuntime()); + } + result = result && (hasTimeout() == other.hasTimeout()); + if (hasTimeout()) { + result = result && getTimeout() + .equals(other.getTimeout()); + } + result = result && (hasRetries() == other.hasRetries()); + if (hasRetries()) { + result = result && getRetries() + .equals(other.getRetries()); + } + result = result && getDiscoveryVersion() + .equals(other.getDiscoveryVersion()); + result = result && getDeprecatedErrorMessage() + .equals(other.getDeprecatedErrorMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISCOVERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDiscoverable()); + if (hasRuntime()) { + hash = (37 * hash) + RUNTIME_FIELD_NUMBER; + hash = (53 * hash) + getRuntime().hashCode(); + } + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryVersion().hashCode(); + hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata 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.Tasks.TaskMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata 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.Tasks.TaskMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.TaskMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Task Metadata
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) + flyteidl.core.Tasks.TaskMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + discoverable_ = false; + + if (runtimeBuilder_ == null) { + runtime_ = null; + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + discoveryVersion_ = ""; + + deprecatedErrorMessage_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; + } + + public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); + } + + public flyteidl.core.Tasks.TaskMetadata build() { + flyteidl.core.Tasks.TaskMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.TaskMetadata buildPartial() { + flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); + result.discoverable_ = discoverable_; + if (runtimeBuilder_ == null) { + result.runtime_ = runtime_; + } else { + result.runtime_ = runtimeBuilder_.build(); + } + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + result.discoveryVersion_ = discoveryVersion_; + result.deprecatedErrorMessage_ = deprecatedErrorMessage_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.TaskMetadata) { + return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { + if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; + if (other.getDiscoverable() != false) { + setDiscoverable(other.getDiscoverable()); + } + if (other.hasRuntime()) { + mergeRuntime(other.getRuntime()); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + if (!other.getDiscoveryVersion().isEmpty()) { + discoveryVersion_ = other.discoveryVersion_; + onChanged(); + } + if (!other.getDeprecatedErrorMessage().isEmpty()) { + deprecatedErrorMessage_ = other.deprecatedErrorMessage_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.TaskMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean discoverable_ ; + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public boolean getDiscoverable() { + return discoverable_; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder setDiscoverable(boolean value) { + + discoverable_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
+       * 
+ * + * bool discoverable = 1; + */ + public Builder clearDiscoverable() { + + discoverable_ = false; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.RuntimeMetadata runtime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public boolean hasRuntime() { + return runtimeBuilder_ != null || runtime_ != null; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { + if (runtimeBuilder_ == null) { + return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } else { + return runtimeBuilder_.getMessage(); + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runtime_ = value; + onChanged(); + } else { + runtimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder setRuntime( + flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { + if (runtimeBuilder_ == null) { + runtime_ = builderForValue.build(); + onChanged(); + } else { + runtimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { + if (runtimeBuilder_ == null) { + if (runtime_ != null) { + runtime_ = + flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); + } else { + runtime_ = value; + } + onChanged(); + } else { + runtimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public Builder clearRuntime() { + if (runtimeBuilder_ == null) { + runtime_ = null; + onChanged(); + } else { + runtime_ = null; + runtimeBuilder_ = null; + } + + return this; + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { + + onChanged(); + return getRuntimeFieldBuilder().getBuilder(); + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { + if (runtimeBuilder_ != null) { + return runtimeBuilder_.getMessageOrBuilder(); + } else { + return runtime_ == null ? + flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; + } + } + /** + *
+       * Runtime information about the task.
+       * 
+ * + * .flyteidl.core.RuntimeMetadata runtime = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> + getRuntimeFieldBuilder() { + if (runtimeBuilder_ == null) { + runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( + getRuntime(), + getParentForChildren(), + isClean()); + runtime_ = null; + } + return runtimeBuilder_; + } + + private com.google.protobuf.Duration timeout_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task including user-triggered retries.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + + private java.lang.Object discoveryVersion_ = ""; + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public java.lang.String getDiscoveryVersion() { + java.lang.Object ref = discoveryVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + discoveryVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public com.google.protobuf.ByteString + getDiscoveryVersionBytes() { + java.lang.Object ref = discoveryVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + discoveryVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + discoveryVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder clearDiscoveryVersion() { + + discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); + onChanged(); + return this; + } + /** + *
+       * Indicates a logical version to apply to this task for the purpose of discovery.
+       * 
+ * + * string discovery_version = 6; + */ + public Builder setDiscoveryVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + discoveryVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object deprecatedErrorMessage_ = ""; + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public java.lang.String getDeprecatedErrorMessage() { + java.lang.Object ref = deprecatedErrorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deprecatedErrorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public com.google.protobuf.ByteString + getDeprecatedErrorMessageBytes() { + java.lang.Object ref = deprecatedErrorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deprecatedErrorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder clearDeprecatedErrorMessage() { + + deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); + onChanged(); + return this; + } + /** + *
+       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
+       * of the ending of support for a given task.
+       * 
+ * + * string deprecated_error_message = 7; + */ + public Builder setDeprecatedErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deprecatedErrorMessage_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); + } + + public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + java.lang.String getType(); + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadata getMetadata(); + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + boolean hasInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + boolean hasCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.Struct getCustom(); + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + com.google.protobuf.StructOrBuilder getCustomOrBuilder(); + + /** + * .flyteidl.core.Container container = 6; + */ + boolean hasContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.Container getContainer(); + /** + * .flyteidl.core.Container container = 6; + */ + flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); + + public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); + } + /** + *
+   * A Task structure that uniquely identifies a task in the system
+   * Tasks are registered as a first step in the system.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class TaskTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) + TaskTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskTemplate.newBuilder() to construct. + private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskTemplate() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskTemplate( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + type_ = s; + break; + } + case 26: { + flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (custom_ != null) { + subBuilder = custom_.toBuilder(); + } + custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(custom_); + custom_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + flyteidl.core.Tasks.Container.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + 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.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + CONTAINER(6), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return CONTAINER; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object type_; + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + /** + *
+     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+     * implementation registered for the TaskCategory.
+     * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 3; + private flyteidl.core.Tasks.TaskMetadata metadata_; + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the task.
+     * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 4; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+     * compile-time validation of the workflow to avoid costly runtime failures.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private com.google.protobuf.Struct custom_; + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return custom_ != null; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + /** + *
+     * Custom data about the task. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + return getCustom(); + } + + public static final int CONTAINER_FIELD_NUMBER = 6; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + if (metadata_ != null) { + output.writeMessage(3, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(4, getInterface()); + } + if (custom_ != null) { + output.writeMessage(5, getCustom()); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getInterface()); + } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCustom()); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); + } + 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.Tasks.TaskTemplate)) { + return super.equals(obj); + } + flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && getType() + .equals(other.getType()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasInterface() == other.hasInterface()); + if (hasInterface()) { + result = result && getInterface() + .equals(other.getInterface()); + } + result = result && (hasCustom() == other.hasCustom()); + if (hasCustom()) { + result = result && getCustom() + .equals(other.getCustom()); + } + result = result && getTargetCase().equals( + other.getTargetCase()); + if (!result) return false; + switch (targetCase_) { + case 6: + result = result && getContainer() + .equals(other.getContainer()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + CONTAINER_FIELD_NUMBER; + hash = (53 * hash) + getContainer().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate 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.Tasks.TaskTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate 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.Tasks.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.TaskTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.TaskTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Task structure that uniquely identifies a task in the system
+     * Tasks are registered as a first step in the system.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) + flyteidl.core.Tasks.TaskTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); + } + + // Construct using flyteidl.core.Tasks.TaskTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + type_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (customBuilder_ == null) { + custom_ = null; + } else { + custom_ = null; + customBuilder_ = null; + } + targetCase_ = 0; + target_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; + } + + public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); + } + + public flyteidl.core.Tasks.TaskTemplate build() { + flyteidl.core.Tasks.TaskTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.TaskTemplate buildPartial() { + flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.type_ = type_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (customBuilder_ == null) { + result.custom_ = custom_; + } else { + result.custom_ = customBuilder_.build(); + } + if (targetCase_ == 6) { + if (containerBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = containerBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.TaskTemplate) { + return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { + if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } + switch (other.getTargetCase()) { + case CONTAINER: { + mergeContainer(other.getContainer()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.TaskTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object type_ = ""; + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder clearType() { + + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
+       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
+       * implementation registered for the TaskCategory.
+       * 
+ * + * string type = 2; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + type_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Tasks.TaskMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder setMetadata( + flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the task.
+       * 
+ * + * .flyteidl.core.TaskMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
+       * compile-time validation of the workflow to avoid costly runtime failures.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private com.google.protobuf.Struct custom_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public boolean hasCustom() { + return customBuilder_ != null || custom_ != null; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct getCustom() { + if (customBuilder_ == null) { + return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + onChanged(); + } else { + customBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder setCustom( + com.google.protobuf.Struct.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + onChanged(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder mergeCustom(com.google.protobuf.Struct value) { + if (customBuilder_ == null) { + if (custom_ != null) { + custom_ = + com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); + } else { + custom_ = value; + } + onChanged(); + } else { + customBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public Builder clearCustom() { + if (customBuilder_ == null) { + custom_ = null; + onChanged(); + } else { + custom_ = null; + customBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.Struct.Builder getCustomBuilder() { + + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : custom_; + } + } + /** + *
+       * Custom data about the task. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustom(), + getParentForChildren(), + isClean()); + custom_ = null; + } + return customBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; + /** + * .flyteidl.core.Container container = 6; + */ + public boolean hasContainer() { + return targetCase_ == 6; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container getContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return containerBuilder_.getMessage(); + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder setContainer( + flyteidl.core.Tasks.Container.Builder builderForValue) { + if (containerBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + containerBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder mergeContainer(flyteidl.core.Tasks.Container value) { + if (containerBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { + target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + containerBuilder_.mergeFrom(value); + } + containerBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public Builder clearContainer() { + if (containerBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + containerBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { + return getContainerFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Container container = 6; + */ + public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { + if ((targetCase_ == 6) && (containerBuilder_ != null)) { + return containerBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Tasks.Container) target_; + } + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + } + /** + * .flyteidl.core.Container container = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> + getContainerFieldBuilder() { + if (containerBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); + } + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( + (flyteidl.core.Tasks.Container) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return containerBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); + } + + public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerPortOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + int getContainerPort(); + } + /** + *
+   * Defines port properties for a container.
+   * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class ContainerPort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) + ContainerPortOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerPort.newBuilder() to construct. + private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ContainerPort() { + containerPort_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ContainerPort( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + containerPort_ = input.readUInt32(); + 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.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + public static final int CONTAINER_PORT_FIELD_NUMBER = 1; + private int containerPort_; + /** + *
+     * Number of port to expose on the pod's IP address.
+     * This must be a valid port number, 0 < x < 65536.
+     * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (containerPort_ != 0) { + output.writeUInt32(1, containerPort_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (containerPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, containerPort_); + } + 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.Tasks.ContainerPort)) { + return super.equals(obj); + } + flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; + + boolean result = true; + result = result && (getContainerPort() + == other.getContainerPort()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTAINER_PORT_FIELD_NUMBER; + hash = (53 * hash) + getContainerPort(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort 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.Tasks.ContainerPort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort 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.Tasks.ContainerPort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.ContainerPort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.ContainerPort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines port properties for a container.
+     * 
+ * + * Protobuf type {@code flyteidl.core.ContainerPort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) + flyteidl.core.Tasks.ContainerPortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); + } + + // Construct using flyteidl.core.Tasks.ContainerPort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + containerPort_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; + } + + public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); + } + + public flyteidl.core.Tasks.ContainerPort build() { + flyteidl.core.Tasks.ContainerPort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.ContainerPort buildPartial() { + flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); + result.containerPort_ = containerPort_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.ContainerPort) { + return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { + if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; + if (other.getContainerPort() != 0) { + setContainerPort(other.getContainerPort()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.ContainerPort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int containerPort_ ; + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public int getContainerPort() { + return containerPort_; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder setContainerPort(int value) { + + containerPort_ = value; + onChanged(); + return this; + } + /** + *
+       * Number of port to expose on the pod's IP address.
+       * This must be a valid port number, 0 < x < 65536.
+       * 
+ * + * uint32 container_port = 1; + */ + public Builder clearContainerPort() { + + containerPort_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.ContainerPort) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); + } + + public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ContainerPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContainerPort(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ContainerOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + java.lang.String getImage(); + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + com.google.protobuf.ByteString + getImageBytes(); + + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.util.List + getCommandList(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + int getCommandCount(); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + java.lang.String getCommand(int index); + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + com.google.protobuf.ByteString + getCommandBytes(int index); + + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.util.List + getArgsList(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + int getArgsCount(); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + java.lang.String getArgs(int index); + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + com.google.protobuf.ByteString + getArgsBytes(int index); + + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + boolean hasResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.Resources getResources(); + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); + + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePair getEnv(int index); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + int getEnvCount(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + java.util.List + getEnvOrBuilderList(); + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index); + + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + java.util.List + getConfigList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + flyteidl.core.Literals.KeyValuePair getConfig(int index); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + int getConfigCount(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + java.util.List + getConfigOrBuilderList(); + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index); + + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPort getPorts(int index); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + int getPortsCount(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index); + } + /** + * Protobuf type {@code flyteidl.core.Container} + */ + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Container) + ContainerOrBuilder { + private static final long serialVersionUID = 0L; + // Use Container.newBuilder() to construct. + private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Container() { + image_ = ""; + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + env_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + ports_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Container( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + image_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + command_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + command_.add(s); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + args_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + args_.add(s); + break; + } + case 34: { + flyteidl.core.Tasks.Resources.Builder subBuilder = null; + if (resources_ != null) { + subBuilder = resources_.toBuilder(); + } + resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resources_); + resources_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + env_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + env_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + config_.add( + input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + ports_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + ports_.add( + input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); + 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_ & 0x00000002) == 0x00000002)) { + command_ = command_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + args_ = args_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + env_ = java.util.Collections.unmodifiableList(env_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object image_; + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + 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(); + image_ = s; + return s; + } + } + /** + *
+     * Container image url. Eg: docker/redis:latest
+     * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMAND_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList command_; + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_; + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+     * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList args_; + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_; + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+     * system will populate these before executing the container.
+     * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 4; + private flyteidl.core.Tasks.Resources resources_; + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resources_ != null; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + /** + *
+     * Container resources requirement as specified by the container engine.
+     * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + return getResources(); + } + + public static final int ENV_FIELD_NUMBER = 5; + private java.util.List env_; + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + return env_; + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + return env_.size(); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + return env_.get(index); + } + /** + *
+     * Environment variables will be set as the container is starting up.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + return env_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private java.util.List config_; + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List getConfigList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public int getConfigCount() { + return config_.size(); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + return config_.get(index); + } + /** + *
+     * Allows extra configs to be available for the container.
+     * TODO: elaborate on how configs will become available.
+     * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + public static final int PORTS_FIELD_NUMBER = 7; + private java.util.List ports_; + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+     * not supported on AWS Batch)
+     * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getImageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); + } + for (int i = 0; i < command_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); + } + for (int i = 0; i < args_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); + } + if (resources_ != null) { + output.writeMessage(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + output.writeMessage(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(7, ports_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getImageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); + } + { + int dataSize = 0; + for (int i = 0; i < command_.size(); i++) { + dataSize += computeStringSizeNoTag(command_.getRaw(i)); + } + size += dataSize; + size += 1 * getCommandList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < args_.size(); i++) { + dataSize += computeStringSizeNoTag(args_.getRaw(i)); + } + size += dataSize; + size += 1 * getArgsList().size(); + } + if (resources_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResources()); + } + for (int i = 0; i < env_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, env_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, config_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, ports_.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.core.Tasks.Container)) { + return super.equals(obj); + } + flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; + + boolean result = true; + result = result && getImage() + .equals(other.getImage()); + result = result && getCommandList() + .equals(other.getCommandList()); + result = result && getArgsList() + .equals(other.getArgsList()); + result = result && (hasResources() == other.hasResources()); + if (hasResources()) { + result = result && getResources() + .equals(other.getResources()); + } + result = result && getEnvList() + .equals(other.getEnvList()); + result = result && getConfigList() + .equals(other.getConfigList()); + result = result && getPortsList() + .equals(other.getPortsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + if (getCommandCount() > 0) { + hash = (37 * hash) + COMMAND_FIELD_NUMBER; + hash = (53 * hash) + getCommandList().hashCode(); + } + if (getArgsCount() > 0) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgsList().hashCode(); + } + if (hasResources()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResources().hashCode(); + } + if (getEnvCount() > 0) { + hash = (37 * hash) + ENV_FIELD_NUMBER; + hash = (53 * hash) + getEnvList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container 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.Tasks.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Tasks.Container parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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.Tasks.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container 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.Tasks.Container parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Tasks.Container parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Tasks.Container prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.core.Container} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) + flyteidl.core.Tasks.ContainerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); + } + + // Construct using flyteidl.core.Tasks.Container.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getEnvFieldBuilder(); + getConfigFieldBuilder(); + getPortsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + image_ = ""; + + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (resourcesBuilder_ == null) { + resources_ = null; + } else { + resources_ = null; + resourcesBuilder_ = null; + } + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + envBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + configBuilder_.clear(); + } + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + portsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; + } + + public flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return flyteidl.core.Tasks.Container.getDefaultInstance(); + } + + public flyteidl.core.Tasks.Container build() { + flyteidl.core.Tasks.Container result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Tasks.Container buildPartial() { + flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.image_ = image_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + command_ = command_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.command_ = command_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + args_ = args_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.args_ = args_; + if (resourcesBuilder_ == null) { + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + if (envBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + env_ = java.util.Collections.unmodifiableList(env_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.env_ = env_; + } else { + result.env_ = envBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Tasks.Container) { + return mergeFrom((flyteidl.core.Tasks.Container)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Tasks.Container other) { + if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; + if (!other.getImage().isEmpty()) { + image_ = other.image_; + onChanged(); + } + if (!other.command_.isEmpty()) { + if (command_.isEmpty()) { + command_ = other.command_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCommandIsMutable(); + command_.addAll(other.command_); + } + onChanged(); + } + if (!other.args_.isEmpty()) { + if (args_.isEmpty()) { + args_ = other.args_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureArgsIsMutable(); + args_.addAll(other.args_); + } + onChanged(); + } + if (other.hasResources()) { + mergeResources(other.getResources()); + } + if (envBuilder_ == null) { + if (!other.env_.isEmpty()) { + if (env_.isEmpty()) { + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureEnvIsMutable(); + env_.addAll(other.env_); + } + onChanged(); + } + } else { + if (!other.env_.isEmpty()) { + if (envBuilder_.isEmpty()) { + envBuilder_.dispose(); + envBuilder_ = null; + env_ = other.env_; + bitField0_ = (bitField0_ & ~0x00000010); + envBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEnvFieldBuilder() : null; + } else { + envBuilder_.addAllMessages(other.env_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000020); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000040); + portsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Tasks.Container parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object image_ = ""; + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public java.lang.String getImage() { + java.lang.Object ref = image_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + image_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public com.google.protobuf.ByteString + getImageBytes() { + java.lang.Object ref = image_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + image_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + image_ = value; + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder clearImage() { + + image_ = getDefaultInstance().getImage(); + onChanged(); + return this; + } + /** + *
+       * Container image url. Eg: docker/redis:latest
+       * 
+ * + * string image = 1; + */ + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + image_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommandIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + command_ = new com.google.protobuf.LazyStringArrayList(command_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ProtocolStringList + getCommandList() { + return command_.getUnmodifiableView(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public int getCommandCount() { + return command_.size(); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public java.lang.String getCommand(int index) { + return command_.get(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public com.google.protobuf.ByteString + getCommandBytes(int index) { + return command_.getByteString(index); + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommand( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addAllCommand( + java.lang.Iterable values) { + ensureCommandIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder clearCommand() { + command_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
+       * 
+ * + * repeated string command = 2; + */ + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCommandIsMutable(); + command_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArgsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + args_ = new com.google.protobuf.LazyStringArrayList(args_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ProtocolStringList + getArgsList() { + return args_.getUnmodifiableView(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public int getArgsCount() { + return args_.size(); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public java.lang.String getArgs(int index) { + return args_.get(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public com.google.protobuf.ByteString + getArgsBytes(int index) { + return args_.getByteString(index); + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addAllArgs( + java.lang.Iterable values) { + ensureArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder clearArgs() { + args_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
+       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
+       * system will populate these before executing the container.
+       * 
+ * + * repeated string args = 3; + */ + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArgsIsMutable(); + args_.add(value); + onChanged(); + return this; + } + + private flyteidl.core.Tasks.Resources resources_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public boolean hasResources() { + return resourcesBuilder_ != null || resources_ != null; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } else { + return resourcesBuilder_.getMessage(); + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resources_ = value; + onChanged(); + } else { + resourcesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder setResources( + flyteidl.core.Tasks.Resources.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); + onChanged(); + } else { + resourcesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder mergeResources(flyteidl.core.Tasks.Resources value) { + if (resourcesBuilder_ == null) { + if (resources_ != null) { + resources_ = + flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); + } else { + resources_ = value; + } + onChanged(); + } else { + resourcesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; + onChanged(); + } else { + resources_ = null; + resourcesBuilder_ = null; + } + + return this; + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { + + onChanged(); + return getResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); + } else { + return resources_ == null ? + flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; + } + } + /** + *
+       * Container resources requirement as specified by the container engine.
+       * 
+ * + * .flyteidl.core.Resources resources = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( + getResources(), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private java.util.List env_ = + java.util.Collections.emptyList(); + private void ensureEnvIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + env_ = new java.util.ArrayList(env_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; + + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List getEnvList() { + if (envBuilder_ == null) { + return java.util.Collections.unmodifiableList(env_); + } else { + return envBuilder_.getMessageList(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public int getEnvCount() { + if (envBuilder_ == null) { + return env_.size(); + } else { + return envBuilder_.getCount(); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair getEnv(int index) { + if (envBuilder_ == null) { + return env_.get(index); + } else { + return envBuilder_.getMessage(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.set(index, value); + onChanged(); + } else { + envBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder setEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.set(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(value); + onChanged(); + } else { + envBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (envBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnvIsMutable(); + env_.add(index, value); + onChanged(); + } else { + envBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addEnv( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.add(index, builderForValue.build()); + onChanged(); + } else { + envBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder addAllEnv( + java.lang.Iterable values) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, env_); + onChanged(); + } else { + envBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder clearEnv() { + if (envBuilder_ == null) { + env_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + envBuilder_.clear(); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public Builder removeEnv(int index) { + if (envBuilder_ == null) { + ensureEnvIsMutable(); + env_.remove(index); + onChanged(); + } else { + envBuilder_.remove(index); + } + return this; + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( + int index) { + return getEnvFieldBuilder().getBuilder(index); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( + int index) { + if (envBuilder_ == null) { + return env_.get(index); } else { + return envBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvOrBuilderList() { + if (envBuilder_ != null) { + return envBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(env_); + } + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { + return getEnvFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( + int index) { + return getEnvFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Environment variables will be set as the container is starting up.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair env = 5; + */ + public java.util.List + getEnvBuilderList() { + return getEnvFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getEnvFieldBuilder() { + if (envBuilder_ == null) { + envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + env_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + env_ = null; + } + return envBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; + + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder setConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addConfig( + int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); + } + /** + *
+       * Allows extra configs to be available for the container.
+       * TODO: elaborate on how configs will become available.
+       * 
+ * + * repeated .flyteidl.core.KeyValuePair config = 6; + */ + public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( + config_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; + + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder setPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addPorts( + int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); + } + /** + *
+       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
+       * not supported on AWS Batch)
+       * 
+ * + * repeated .flyteidl.core.ContainerPort ports = 7; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( + ports_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Container) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Container) + private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); + } + + public static flyteidl.core.Tasks.Container getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Container(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Tasks.Container getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_RuntimeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_ContainerPort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Container_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Container_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031flyteidl/core/tasks.proto\022\rflyteidl.co" + + "re\032\036flyteidl/core/identifier.proto\032\035flyt" + + "eidl/core/interface.proto\032\034flyteidl/core" + + "/literals.proto\032\036google/protobuf/duratio" + + "n.proto\032\034google/protobuf/struct.proto\"\232\002" + + "\n\tResources\0228\n\010requests\030\001 \003(\0132&.flyteidl" + + ".core.Resources.ResourceEntry\0226\n\006limits\030" + + "\002 \003(\0132&.flyteidl.core.Resources.Resource" + + "Entry\032S\n\rResourceEntry\0223\n\004name\030\001 \001(\0162%.f" + + "lyteidl.core.Resources.ResourceName\022\r\n\005v" + + "alue\030\002 \001(\t\"F\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022" + + "\007\n\003CPU\020\001\022\007\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE" + + "\020\004\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.f" + + "lyteidl.core.RuntimeMetadata.RuntimeType" + + "\022\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Run" + + "timeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\355\001\n\014T" + + "askMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007run" + + "time\030\002 \001(\0132\036.flyteidl.core.RuntimeMetada" + + "ta\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Du" + + "ration\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core." + + "RetryStrategy\022\031\n\021discovery_version\030\006 \001(\t" + + "\022 \n\030deprecated_error_message\030\007 \001(\t\"\206\002\n\014T" + + "askTemplate\022%\n\002id\030\001 \001(\0132\031.flyteidl.core." + + "Identifier\022\014\n\004type\030\002 \001(\t\022-\n\010metadata\030\003 \001" + + "(\0132\033.flyteidl.core.TaskMetadata\0220\n\tinter" + + "face\030\004 \001(\0132\035.flyteidl.core.TypedInterfac" + + "e\022\'\n\006custom\030\005 \001(\0132\027.google.protobuf.Stru" + + "ct\022-\n\tcontainer\030\006 \001(\0132\030.flyteidl.core.Co" + + "ntainerH\000B\010\n\006target\"\'\n\rContainerPort\022\026\n\016" + + "container_port\030\001 \001(\r\"\352\001\n\tContainer\022\r\n\005im" + + "age\030\001 \001(\t\022\017\n\007command\030\002 \003(\t\022\014\n\004args\030\003 \003(\t" + + "\022+\n\tresources\030\004 \001(\0132\030.flyteidl.core.Reso" + + "urces\022(\n\003env\030\005 \003(\0132\033.flyteidl.core.KeyVa" + + "luePair\022+\n\006config\030\006 \003(\0132\033.flyteidl.core." + + "KeyValuePair\022+\n\005ports\030\007 \003(\0132\034.flyteidl.c" + + "ore.ContainerPortB2Z0github.com/lyft/fly" + + "teidl/gen/pb-go/flyteidl/coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_Resources_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_Resources_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_descriptor, + new java.lang.String[] { "Requests", "Limits", }); + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor = + internal_static_flyteidl_core_Resources_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Resources_ResourceEntry_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_flyteidl_core_RuntimeMetadata_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_RuntimeMetadata_descriptor, + new java.lang.String[] { "Type", "Version", "Flavor", }); + internal_static_flyteidl_core_TaskMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskMetadata_descriptor, + new java.lang.String[] { "Discoverable", "Runtime", "Timeout", "Retries", "DiscoveryVersion", "DeprecatedErrorMessage", }); + internal_static_flyteidl_core_TaskTemplate_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskTemplate_descriptor, + new java.lang.String[] { "Id", "Type", "Metadata", "Interface", "Custom", "Container", "Target", }); + internal_static_flyteidl_core_ContainerPort_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_ContainerPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_ContainerPort_descriptor, + new java.lang.String[] { "ContainerPort", }); + internal_static_flyteidl_core_Container_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Resources", "Env", "Config", "Ports", }); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Types.java b/flyteidl/gen/pb-java/flyteidl/core/Types.java new file mode 100644 index 0000000000..bbd7204599 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Types.java @@ -0,0 +1,6259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/types.proto + +package flyteidl.core; + +public final class Types { + private Types() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + /** + *
+   * Define a set of simple types.
+   * 
+ * + * Protobuf enum {@code flyteidl.core.SimpleType} + */ + public enum SimpleType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NONE = 0; + */ + NONE(0), + /** + * INTEGER = 1; + */ + INTEGER(1), + /** + * FLOAT = 2; + */ + FLOAT(2), + /** + * STRING = 3; + */ + STRING(3), + /** + * BOOLEAN = 4; + */ + BOOLEAN(4), + /** + * DATETIME = 5; + */ + DATETIME(5), + /** + * DURATION = 6; + */ + DURATION(6), + /** + * BINARY = 7; + */ + BINARY(7), + /** + * ERROR = 8; + */ + ERROR(8), + /** + * STRUCT = 9; + */ + STRUCT(9), + UNRECOGNIZED(-1), + ; + + /** + * NONE = 0; + */ + public static final int NONE_VALUE = 0; + /** + * INTEGER = 1; + */ + public static final int INTEGER_VALUE = 1; + /** + * FLOAT = 2; + */ + public static final int FLOAT_VALUE = 2; + /** + * STRING = 3; + */ + public static final int STRING_VALUE = 3; + /** + * BOOLEAN = 4; + */ + public static final int BOOLEAN_VALUE = 4; + /** + * DATETIME = 5; + */ + public static final int DATETIME_VALUE = 5; + /** + * DURATION = 6; + */ + public static final int DURATION_VALUE = 6; + /** + * BINARY = 7; + */ + public static final int BINARY_VALUE = 7; + /** + * ERROR = 8; + */ + public static final int ERROR_VALUE = 8; + /** + * STRUCT = 9; + */ + public static final int STRUCT_VALUE = 9; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SimpleType valueOf(int value) { + return forNumber(value); + } + + public static SimpleType forNumber(int value) { + switch (value) { + case 0: return NONE; + case 1: return INTEGER; + case 2: return FLOAT; + case 3: return STRING; + case 4: return BOOLEAN; + case 5: return DATETIME; + case 6: return DURATION; + case 7: return BINARY; + case 8: return ERROR; + case 9: return STRUCT; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SimpleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SimpleType findValueByNumber(int number) { + return SimpleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); + } + + private static final SimpleType[] VALUES = values(); + + public static SimpleType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SimpleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) + } + + public interface SchemaTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + int getColumnsCount(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + java.util.List + getColumnsOrBuilderList(); + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index); + } + /** + *
+   * Defines schema columns and types to strongly type-validate schemas interoperability.
+   * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class SchemaType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) + SchemaTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaType.newBuilder() to construct. + private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaType() { + columns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaType( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + columns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + columns_.add( + input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.parser(), extensionRegistry)); + 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) == 0x00000001)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + public interface SchemaColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + int getTypeValue(); + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); + } + /** + * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class SchemaColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) + SchemaColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaColumn.newBuilder() to construct. + private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SchemaColumn() { + name_ = ""; + type_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SchemaColumn( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + type_ = rawValue; + 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.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} + */ + public enum SchemaColumnType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INTEGER = 0; + */ + INTEGER(0), + /** + * FLOAT = 1; + */ + FLOAT(1), + /** + * STRING = 2; + */ + STRING(2), + /** + * BOOLEAN = 3; + */ + BOOLEAN(3), + /** + * DATETIME = 4; + */ + DATETIME(4), + /** + * DURATION = 5; + */ + DURATION(5), + UNRECOGNIZED(-1), + ; + + /** + * INTEGER = 0; + */ + public static final int INTEGER_VALUE = 0; + /** + * FLOAT = 1; + */ + public static final int FLOAT_VALUE = 1; + /** + * STRING = 2; + */ + public static final int STRING_VALUE = 2; + /** + * BOOLEAN = 3; + */ + public static final int BOOLEAN_VALUE = 3; + /** + * DATETIME = 4; + */ + public static final int DATETIME_VALUE = 4; + /** + * DURATION = 5; + */ + public static final int DURATION_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaColumnType valueOf(int value) { + return forNumber(value); + } + + public static SchemaColumnType forNumber(int value) { + switch (value) { + case 0: return INTEGER; + case 1: return FLOAT; + case 2: return STRING; + case 3: return BOOLEAN; + case 4: return DATETIME; + case 5: return DURATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaColumnType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaColumnType findValueByNumber(int number) { + return SchemaColumnType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); + } + + private static final SchemaColumnType[] VALUES = values(); + + public static SchemaColumnType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SchemaColumnType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+       * A unique name -within the schema type- for the column
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+       * The column type. This allows a limited set of types currently.
+       * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + output.writeEnum(2, type_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + 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.Types.SchemaType.SchemaColumn)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && type_ == other.type_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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.Types.SchemaType.SchemaColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn 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.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.SchemaType.SchemaColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) + flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + } + + public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); + } + + public flyteidl.core.Types.SchemaType.SchemaColumn build() { + flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { + flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); + result.name_ = name_; + result.type_ = type_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.SchemaType.SchemaColumn) { + return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { + if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.SchemaType.SchemaColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+         * A unique name -within the schema type- for the column
+         * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public int getTypeValue() { + return type_; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { + flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); + return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * The column type. This allows a limited set of types currently.
+         * 
+ * + * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SchemaType.SchemaColumn) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); + } + + public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SchemaColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaColumn(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int COLUMNS_FIELD_NUMBER = 3; + private java.util.List columns_; + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + return columns_; + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + return columns_.size(); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + return columns_.get(index); + } + /** + *
+     * A list of ordered columns this schema comprises of.
+     * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + return columns_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(3, columns_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, columns_.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.core.Types.SchemaType)) { + return super.equals(obj); + } + flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; + + boolean result = true; + result = result && getColumnsList() + .equals(other.getColumnsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType 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.Types.SchemaType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.SchemaType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType 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.Types.SchemaType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.SchemaType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.SchemaType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines schema columns and types to strongly type-validate schemas interoperability.
+     * 
+ * + * Protobuf type {@code flyteidl.core.SchemaType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) + flyteidl.core.Types.SchemaTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); + } + + // Construct using flyteidl.core.Types.SchemaType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColumnsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + columnsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; + } + + public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + public flyteidl.core.Types.SchemaType build() { + flyteidl.core.Types.SchemaType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Types.SchemaType buildPartial() { + flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); + int from_bitField0_ = bitField0_; + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.SchemaType) { + return mergeFrom((flyteidl.core.Types.SchemaType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { + if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColumnsFieldBuilder() : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.SchemaType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List columns_ = + java.util.Collections.emptyList(); + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + columns_ = new java.util.ArrayList(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; + + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder setColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addColumns( + int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder addAllColumns( + java.lang.Iterable values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( + int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { + return getColumnsFieldBuilder().addBuilder( + flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( + int index) { + return getColumnsFieldBuilder().addBuilder( + index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); + } + /** + *
+       * A list of ordered columns this schema comprises of.
+       * 
+ * + * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + public java.util.List + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( + columns_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + columns_ = null; + } + return columnsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.SchemaType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); + } + + public static flyteidl.core.Types.SchemaType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SchemaType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BlobTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + java.lang.String getFormat(); + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + com.google.protobuf.ByteString + getFormatBytes(); + + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + int getDimensionalityValue(); + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); + } + /** + *
+   * Defines type behavior for blob objects
+   * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class BlobType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) + BlobTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BlobType.newBuilder() to construct. + private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BlobType() { + format_ = ""; + dimensionality_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BlobType( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + format_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + dimensionality_ = rawValue; + 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.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} + */ + public enum BlobDimensionality + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SINGLE = 0; + */ + SINGLE(0), + /** + * MULTIPART = 1; + */ + MULTIPART(1), + UNRECOGNIZED(-1), + ; + + /** + * SINGLE = 0; + */ + public static final int SINGLE_VALUE = 0; + /** + * MULTIPART = 1; + */ + public static final int MULTIPART_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BlobDimensionality valueOf(int value) { + return forNumber(value); + } + + public static BlobDimensionality forNumber(int value) { + switch (value) { + case 0: return SINGLE; + case 1: return MULTIPART; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + BlobDimensionality> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BlobDimensionality findValueByNumber(int number) { + return BlobDimensionality.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); + } + + private static final BlobDimensionality[] VALUES = values(); + + public static BlobDimensionality valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BlobDimensionality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) + } + + public static final int FORMAT_FIELD_NUMBER = 1; + private volatile java.lang.Object format_; + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + 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(); + format_ = s; + return s; + } + } + /** + *
+     * Format can be a free form string understood by SDK/UI etc like
+     * csv, parquet etc
+     * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONALITY_FIELD_NUMBER = 2; + private int dimensionality_; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFormatBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + output.writeEnum(2, dimensionality_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFormatBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); + } + if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, dimensionality_); + } + 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.Types.BlobType)) { + return super.equals(obj); + } + flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; + + boolean result = true; + result = result && getFormat() + .equals(other.getFormat()); + result = result && dimensionality_ == other.dimensionality_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFormat().hashCode(); + hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; + hash = (53 * hash) + dimensionality_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType 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.Types.BlobType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.BlobType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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.Types.BlobType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType 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.Types.BlobType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.BlobType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.BlobType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines type behavior for blob objects
+     * 
+ * + * Protobuf type {@code flyteidl.core.BlobType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) + flyteidl.core.Types.BlobTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); + } + + // Construct using flyteidl.core.Types.BlobType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + format_ = ""; + + dimensionality_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; + } + + public flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + public flyteidl.core.Types.BlobType build() { + flyteidl.core.Types.BlobType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Types.BlobType buildPartial() { + flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); + result.format_ = format_; + result.dimensionality_ = dimensionality_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.BlobType) { + return mergeFrom((flyteidl.core.Types.BlobType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.BlobType other) { + if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; + if (!other.getFormat().isEmpty()) { + format_ = other.format_; + onChanged(); + } + if (other.dimensionality_ != 0) { + setDimensionalityValue(other.getDimensionalityValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.BlobType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object format_ = ""; + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public java.lang.String getFormat() { + java.lang.Object ref = format_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + format_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public com.google.protobuf.ByteString + getFormatBytes() { + java.lang.Object ref = format_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + format_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormat( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + format_ = value; + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder clearFormat() { + + format_ = getDefaultInstance().getFormat(); + onChanged(); + return this; + } + /** + *
+       * Format can be a free form string understood by SDK/UI etc like
+       * csv, parquet etc
+       * 
+ * + * string format = 1; + */ + public Builder setFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + format_ = value; + onChanged(); + return this; + } + + private int dimensionality_ = 0; + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public int getDimensionalityValue() { + return dimensionality_; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionalityValue(int value) { + dimensionality_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { + flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); + return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionality_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + public Builder clearDimensionality() { + + dimensionality_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BlobType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); + } + + public static flyteidl.core.Types.BlobType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BlobType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BlobType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Types.BlobType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LiteralTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + int getSimpleValue(); + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + flyteidl.core.Types.SimpleType getSimple(); + + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + boolean hasSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaType getSchema(); + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); + + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + boolean hasCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralType getCollectionType(); + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); + + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + boolean hasMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralType getMapValueType(); + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); + + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + boolean hasBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobType getBlob(); + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); + + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + boolean hasMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.Struct getMetadata(); + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); + } + /** + *
+   * Defines a strong type to allow type checking between interfaces.
+   * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class LiteralType extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) + LiteralTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use LiteralType.newBuilder() to construct. + private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LiteralType() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LiteralType( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + typeCase_ = 1; + type_ = rawValue; + break; + } + case 18: { + flyteidl.core.Types.SchemaType.Builder subBuilder = null; + if (typeCase_ == 2) { + subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 2; + break; + } + case 26: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 3) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.LiteralType.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + case 42: { + flyteidl.core.Types.BlobType.Builder subBuilder = null; + if (typeCase_ == 5) { + subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); + } + type_ = + input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 5; + break; + } + case 50: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + 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.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + private int typeCase_ = 0; + private java.lang.Object type_; + public enum TypeCase + implements com.google.protobuf.Internal.EnumLite { + SIMPLE(1), + SCHEMA(2), + COLLECTION_TYPE(3), + MAP_VALUE_TYPE(4), + BLOB(5), + TYPE_NOT_SET(0); + private final int value; + private TypeCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: return SIMPLE; + case 2: return SCHEMA; + case 3: return COLLECTION_TYPE; + case 4: return MAP_VALUE_TYPE; + case 5: return BLOB; + case 0: return TYPE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public static final int SIMPLE_FIELD_NUMBER = 1; + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return (java.lang.Integer) type_; + } + return 0; + } + /** + *
+     * A simple type that can be compared one-to-one with another.
+     * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + /** + *
+     * A complex type that requires matching of inner fields.
+     * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + + public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+     * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + /** + *
+     * Defines the type of the value of a map type. The type of the key is always a string.
+     * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public static final int BLOB_FIELD_NUMBER = 5; + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + /** + *
+     * A blob might have specialized implementation details depending on associated metadata.
+     * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + + public static final int METADATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct metadata_; + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + /** + *
+     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+     * consumers to identify special behavior or display extended information for the type.
+     * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (typeCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, ((java.lang.Integer) type_)); + } + if (typeCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); + } + if (typeCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); + } + if (typeCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetadata()); + } + 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.Types.LiteralType)) { + return super.equals(obj); + } + flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getTypeCase().equals( + other.getTypeCase()); + if (!result) return false; + switch (typeCase_) { + case 1: + result = result && getSimpleValue() + == other.getSimpleValue(); + break; + case 2: + result = result && getSchema() + .equals(other.getSchema()); + break; + case 3: + result = result && getCollectionType() + .equals(other.getCollectionType()); + break; + case 4: + result = result && getMapValueType() + .equals(other.getMapValueType()); + break; + case 5: + result = result && getBlob() + .equals(other.getBlob()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + switch (typeCase_) { + case 1: + hash = (37 * hash) + SIMPLE_FIELD_NUMBER; + hash = (53 * hash) + getSimpleValue(); + break; + case 2: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 3: + hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCollectionType().hashCode(); + break; + case 4: + hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMapValueType().hashCode(); + break; + case 5: + hash = (37 * hash) + BLOB_FIELD_NUMBER; + hash = (53 * hash) + getBlob().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType 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.Types.LiteralType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.LiteralType parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType 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.Types.LiteralType parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.LiteralType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.LiteralType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a strong type to allow type checking between interfaces.
+     * 
+ * + * Protobuf type {@code flyteidl.core.LiteralType} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) + flyteidl.core.Types.LiteralTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); + } + + // Construct using flyteidl.core.Types.LiteralType.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + typeCase_ = 0; + type_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; + } + + public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + + public flyteidl.core.Types.LiteralType build() { + flyteidl.core.Types.LiteralType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Types.LiteralType buildPartial() { + flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); + if (typeCase_ == 1) { + result.type_ = type_; + } + if (typeCase_ == 2) { + if (schemaBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = schemaBuilder_.build(); + } + } + if (typeCase_ == 3) { + if (collectionTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = collectionTypeBuilder_.build(); + } + } + if (typeCase_ == 4) { + if (mapValueTypeBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = mapValueTypeBuilder_.build(); + } + } + if (typeCase_ == 5) { + if (blobBuilder_ == null) { + result.type_ = type_; + } else { + result.type_ = blobBuilder_.build(); + } + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + result.typeCase_ = typeCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.LiteralType) { + return mergeFrom((flyteidl.core.Types.LiteralType)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { + if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + switch (other.getTypeCase()) { + case SIMPLE: { + setSimpleValue(other.getSimpleValue()); + break; + } + case SCHEMA: { + mergeSchema(other.getSchema()); + break; + } + case COLLECTION_TYPE: { + mergeCollectionType(other.getCollectionType()); + break; + } + case MAP_VALUE_TYPE: { + mergeMapValueType(other.getMapValueType()); + break; + } + case BLOB: { + mergeBlob(other.getBlob()); + break; + } + case TYPE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.LiteralType parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int typeCase_ = 0; + private java.lang.Object type_; + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public int getSimpleValue() { + if (typeCase_ == 1) { + return ((java.lang.Integer) type_).intValue(); + } + return 0; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimpleValue(int value) { + typeCase_ = 1; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public flyteidl.core.Types.SimpleType getSimple() { + if (typeCase_ == 1) { + flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( + (java.lang.Integer) type_); + return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; + } + return flyteidl.core.Types.SimpleType.NONE; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder setSimple(flyteidl.core.Types.SimpleType value) { + if (value == null) { + throw new NullPointerException(); + } + typeCase_ = 1; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * A simple type that can be compared one-to-one with another.
+       * 
+ * + * .flyteidl.core.SimpleType simple = 1; + */ + public Builder clearSimple() { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public boolean hasSchema() { + return typeCase_ == 2; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType getSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return schemaBuilder_.getMessage(); + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder setSchema( + flyteidl.core.Types.SchemaType.Builder builderForValue) { + if (schemaBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { + if (schemaBuilder_ == null) { + if (typeCase_ == 2 && + type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { + type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { + if ((typeCase_ == 2) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (flyteidl.core.Types.SchemaType) type_; + } + return flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + } + /** + *
+       * A complex type that requires matching of inner fields.
+       * 
+ * + * .flyteidl.core.SchemaType schema = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); + } + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( + (flyteidl.core.Types.SchemaType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged();; + return schemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public boolean hasCollectionType() { + return typeCase_ == 3; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType getCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return collectionTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder setCollectionType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (collectionTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + collectionTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + collectionTypeBuilder_.mergeFrom(value); + } + collectionTypeBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public Builder clearCollectionType() { + if (collectionTypeBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + collectionTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { + return getCollectionTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { + if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { + return collectionTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
+       * 
+ * + * .flyteidl.core.LiteralType collection_type = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getCollectionTypeFieldBuilder() { + if (collectionTypeBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged();; + return collectionTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public boolean hasMapValueType() { + return typeCase_ == 4; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType getMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return mapValueTypeBuilder_.getMessage(); + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder setMapValueType( + flyteidl.core.Types.LiteralType.Builder builderForValue) { + if (mapValueTypeBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + mapValueTypeBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4 && + type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { + type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + mapValueTypeBuilder_.mergeFrom(value); + } + mapValueTypeBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public Builder clearMapValueType() { + if (mapValueTypeBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + mapValueTypeBuilder_.clear(); + } + return this; + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { + return getMapValueTypeFieldBuilder().getBuilder(); + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { + if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { + return mapValueTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (flyteidl.core.Types.LiteralType) type_; + } + return flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + } + /** + *
+       * Defines the type of the value of a map type. The type of the key is always a string.
+       * 
+ * + * .flyteidl.core.LiteralType map_value_type = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> + getMapValueTypeFieldBuilder() { + if (mapValueTypeBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); + } + mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( + (flyteidl.core.Types.LiteralType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged();; + return mapValueTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public boolean hasBlob() { + return typeCase_ == 5; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType getBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } else { + if (typeCase_ == 5) { + return blobBuilder_.getMessage(); + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder setBlob( + flyteidl.core.Types.BlobType.Builder builderForValue) { + if (blobBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder mergeBlob(flyteidl.core.Types.BlobType value) { + if (blobBuilder_ == null) { + if (typeCase_ == 5 && + type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { + type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) + .mergeFrom(value).buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 5) { + blobBuilder_.mergeFrom(value); + } + blobBuilder_.setMessage(value); + } + typeCase_ = 5; + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 5) { + typeCase_ = 0; + type_ = null; + } + blobBuilder_.clear(); + } + return this; + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { + return getBlobFieldBuilder().getBuilder(); + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { + if ((typeCase_ == 5) && (blobBuilder_ != null)) { + return blobBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 5) { + return (flyteidl.core.Types.BlobType) type_; + } + return flyteidl.core.Types.BlobType.getDefaultInstance(); + } + } + /** + *
+       * A blob might have specialized implementation details depending on associated metadata.
+       * 
+ * + * .flyteidl.core.BlobType blob = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + if (!(typeCase_ == 5)) { + type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); + } + blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( + (flyteidl.core.Types.BlobType) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 5; + onChanged();; + return blobBuilder_; + } + + private com.google.protobuf.Struct metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder setMetadata( + com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + /** + *
+       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
+       * consumers to identify special behavior or display extended information for the type.
+       * 
+ * + * .google.protobuf.Struct metadata = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.LiteralType) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); + } + + public static flyteidl.core.Types.LiteralType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public LiteralType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LiteralType(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OutputReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + java.lang.String getNodeId(); + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + com.google.protobuf.ByteString + getNodeIdBytes(); + + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + java.lang.String getVar(); + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + com.google.protobuf.ByteString + getVarBytes(); + } + /** + *
+   * A reference to an output produced by a node. The type can be retrieved -and validated- from
+   * the underlying interface of the node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class OutputReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) + OutputReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputReference.newBuilder() to construct. + private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputReference() { + nodeId_ = ""; + var_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputReference( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + nodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = s; + 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.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + public static final int NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object nodeId_; + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + 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(); + nodeId_ = s; + return s; + } + } + /** + *
+     * Node id must exist at the graph layer.
+     * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VAR_FIELD_NUMBER = 2; + private volatile java.lang.Object var_; + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Variable name must refer to an output variable for the node.
+     * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); + } + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); + } + 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.Types.OutputReference)) { + return super.equals(obj); + } + flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; + + boolean result = true; + result = result && getNodeId() + .equals(other.getNodeId()); + result = result && getVar() + .equals(other.getVar()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getNodeId().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference 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.Types.OutputReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.OutputReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference 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.Types.OutputReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.OutputReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.OutputReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 reference to an output produced by a node. The type can be retrieved -and validated- from
+     * the underlying interface of the node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.OutputReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) + flyteidl.core.Types.OutputReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); + } + + // Construct using flyteidl.core.Types.OutputReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + nodeId_ = ""; + + var_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; + } + + public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return flyteidl.core.Types.OutputReference.getDefaultInstance(); + } + + public flyteidl.core.Types.OutputReference build() { + flyteidl.core.Types.OutputReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Types.OutputReference buildPartial() { + flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); + result.nodeId_ = nodeId_; + result.var_ = var_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.OutputReference) { + return mergeFrom((flyteidl.core.Types.OutputReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { + if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; + if (!other.getNodeId().isEmpty()) { + nodeId_ = other.nodeId_; + onChanged(); + } + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.OutputReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object nodeId_ = ""; + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public java.lang.String getNodeId() { + java.lang.Object ref = nodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public com.google.protobuf.ByteString + getNodeIdBytes() { + java.lang.Object ref = nodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder clearNodeId() { + + nodeId_ = getDefaultInstance().getNodeId(); + onChanged(); + return this; + } + /** + *
+       * Node id must exist at the graph layer.
+       * 
+ * + * string node_id = 1; + */ + public Builder setNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Variable name must refer to an output variable for the node.
+       * 
+ * + * string var = 2; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.OutputReference) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); + } + + public static flyteidl.core.Types.OutputReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public OutputReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputReference(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + java.lang.String getFailedNodeId(); + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + com.google.protobuf.ByteString + getFailedNodeIdBytes(); + + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + java.lang.String getMessage(); + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Represents an error thrown from a node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Error) + ErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use Error.newBuilder() to construct. + private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Error() { + failedNodeId_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Error( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + failedNodeId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + 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.Types.internal_static_flyteidl_core_Error_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object failedNodeId_; + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + 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(); + failedNodeId_ = s; + return s; + } + } + /** + *
+     * The node id that threw the error.
+     * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + /** + *
+     * Error message thrown.
+     * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFailedNodeIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFailedNodeIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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.Types.Error)) { + return super.equals(obj); + } + flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; + + boolean result = true; + result = result && getFailedNodeId() + .equals(other.getFailedNodeId()); + result = result && getMessage() + .equals(other.getMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FAILED_NODE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFailedNodeId().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error 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.Types.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Types.Error parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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.Types.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error 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.Types.Error parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Types.Error parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Types.Error prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents an error thrown from a node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Error} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) + flyteidl.core.Types.ErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); + } + + // Construct using flyteidl.core.Types.Error.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + failedNodeId_ = ""; + + message_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; + } + + public flyteidl.core.Types.Error getDefaultInstanceForType() { + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + public flyteidl.core.Types.Error build() { + flyteidl.core.Types.Error result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Types.Error buildPartial() { + flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); + result.failedNodeId_ = failedNodeId_; + result.message_ = message_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Types.Error) { + return mergeFrom((flyteidl.core.Types.Error)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Types.Error other) { + if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; + if (!other.getFailedNodeId().isEmpty()) { + failedNodeId_ = other.failedNodeId_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Types.Error parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object failedNodeId_ = ""; + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public java.lang.String getFailedNodeId() { + java.lang.Object ref = failedNodeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failedNodeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public com.google.protobuf.ByteString + getFailedNodeIdBytes() { + java.lang.Object ref = failedNodeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failedNodeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + failedNodeId_ = value; + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder clearFailedNodeId() { + + failedNodeId_ = getDefaultInstance().getFailedNodeId(); + onChanged(); + return this; + } + /** + *
+       * The node id that threw the error.
+       * 
+ * + * string failed_node_id = 1; + */ + public Builder setFailedNodeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + failedNodeId_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Error message thrown.
+       * 
+ * + * string message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Error) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Error) + private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); + } + + public static flyteidl.core.Types.Error getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Error(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Types.Error getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BlobType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BlobType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_LiteralType_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_LiteralType_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_OutputReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_OutputReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Error_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Error_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031flyteidl/core/types.proto\022\rflyteidl.co" + + "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + + "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + + ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + + "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + + ".core.SchemaType.SchemaColumn.SchemaColu" + + "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + + "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + + "ATETIME\020\004\022\014\n\010DURATION\020\005\"\217\001\n\010BlobType\022\016\n\006" + + "format\030\001 \001(\t\022B\n\016dimensionality\030\002 \001(\0162*.f" + + "lyteidl.core.BlobType.BlobDimensionality" + + "\"/\n\022BlobDimensionality\022\n\n\006SINGLE\020\000\022\r\n\tMU" + + "LTIPART\020\001\"\260\002\n\013LiteralType\022+\n\006simple\030\001 \001(" + + "\0162\031.flyteidl.core.SimpleTypeH\000\022+\n\006schema" + + "\030\002 \001(\0132\031.flyteidl.core.SchemaTypeH\000\0225\n\017c" + + "ollection_type\030\003 \001(\0132\032.flyteidl.core.Lit" + + "eralTypeH\000\0224\n\016map_value_type\030\004 \001(\0132\032.fly" + + "teidl.core.LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027" + + ".flyteidl.core.BlobTypeH\000\022)\n\010metadata\030\006 " + + "\001(\0132\027.google.protobuf.StructB\006\n\004type\"/\n\017" + + "OutputReference\022\017\n\007node_id\030\001 \001(\t\022\013\n\003var\030" + + "\002 \001(\t\"0\n\005Error\022\026\n\016failed_node_id\030\001 \001(\t\022\017" + + "\n\007message\030\002 \001(\t*\206\001\n\nSimpleType\022\010\n\004NONE\020\000" + + "\022\013\n\007INTEGER\020\001\022\t\n\005FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007" + + "BOOLEAN\020\004\022\014\n\010DATETIME\020\005\022\014\n\010DURATION\020\006\022\n\n" + + "\006BINARY\020\007\022\t\n\005ERROR\020\010\022\n\n\006STRUCT\020\tB2Z0gith" + + "ub.com/lyft/flyteidl/gen/pb-go/flyteidl/" + + "coreb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_SchemaType_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_SchemaType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_descriptor, + new java.lang.String[] { "Columns", }); + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor = + internal_static_flyteidl_core_SchemaType_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor, + new java.lang.String[] { "Name", "Type", }); + internal_static_flyteidl_core_BlobType_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_BlobType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BlobType_descriptor, + new java.lang.String[] { "Format", "Dimensionality", }); + internal_static_flyteidl_core_LiteralType_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_LiteralType_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_LiteralType_descriptor, + new java.lang.String[] { "Simple", "Schema", "CollectionType", "MapValueType", "Blob", "Metadata", "Type", }); + internal_static_flyteidl_core_OutputReference_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_OutputReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_OutputReference_descriptor, + new java.lang.String[] { "NodeId", "Var", }); + internal_static_flyteidl_core_Error_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Error_descriptor, + new java.lang.String[] { "FailedNodeId", "Message", }); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/Workflow.java b/flyteidl/gen/pb-java/flyteidl/core/Workflow.java new file mode 100644 index 0000000000..8dde8fe3b5 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/Workflow.java @@ -0,0 +1,13029 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow.proto + +package flyteidl.core; + +public final class Workflow { + private Workflow() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface IfBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfBlock) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + boolean hasCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpression getCondition(); + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); + + /** + * .flyteidl.core.Node then_node = 2; + */ + boolean hasThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.Node getThenNode(); + /** + * .flyteidl.core.Node then_node = 2; + */ + flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); + } + /** + *
+   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class IfBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) + IfBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfBlock.newBuilder() to construct. + private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfBlock() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfBlock( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; + if (condition_ != null) { + subBuilder = condition_.toBuilder(); + } + condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(condition_); + condition_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (thenNode_ != null) { + subBuilder = thenNode_.toBuilder(); + } + thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thenNode_); + thenNode_ = subBuilder.buildPartial(); + } + + 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.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private flyteidl.core.Condition.BooleanExpression condition_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + return getCondition(); + } + + public static final int THEN_NODE_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.Node thenNode_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + return getThenNode(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (condition_ != null) { + output.writeMessage(1, getCondition()); + } + if (thenNode_ != null) { + output.writeMessage(2, getThenNode()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (condition_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCondition()); + } + if (thenNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getThenNode()); + } + 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.Workflow.IfBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; + + boolean result = true; + result = result && (hasCondition() == other.hasCondition()); + if (hasCondition()) { + result = result && getCondition() + .equals(other.getCondition()); + } + result = result && (hasThenNode() == other.hasThenNode()); + if (hasThenNode()) { + result = result && getThenNode() + .equals(other.getThenNode()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCondition()) { + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getCondition().hashCode(); + } + if (hasThenNode()) { + hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; + hash = (53 * hash) + getThenNode().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock 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.Workflow.IfBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock 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.Workflow.IfBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.IfBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) + flyteidl.core.Workflow.IfBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (conditionBuilder_ == null) { + condition_ = null; + } else { + condition_ = null; + conditionBuilder_ = null; + } + if (thenNodeBuilder_ == null) { + thenNode_ = null; + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; + } + + public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); + } + + public flyteidl.core.Workflow.IfBlock build() { + flyteidl.core.Workflow.IfBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.IfBlock buildPartial() { + flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); + if (conditionBuilder_ == null) { + result.condition_ = condition_; + } else { + result.condition_ = conditionBuilder_.build(); + } + if (thenNodeBuilder_ == null) { + result.thenNode_ = thenNode_; + } else { + result.thenNode_ = thenNodeBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.IfBlock) { + return mergeFrom((flyteidl.core.Workflow.IfBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { + if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + if (other.hasThenNode()) { + mergeThenNode(other.getThenNode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.IfBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Condition.BooleanExpression condition_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public boolean hasCondition() { + return conditionBuilder_ != null || condition_ != null; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression getCondition() { + if (conditionBuilder_ == null) { + return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } else { + return conditionBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + condition_ = value; + onChanged(); + } else { + conditionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder setCondition( + flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { + if (conditionBuilder_ == null) { + condition_ = builderForValue.build(); + onChanged(); + } else { + conditionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { + if (conditionBuilder_ == null) { + if (condition_ != null) { + condition_ = + flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); + } else { + condition_ = value; + } + onChanged(); + } else { + conditionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public Builder clearCondition() { + if (conditionBuilder_ == null) { + condition_ = null; + onChanged(); + } else { + condition_ = null; + conditionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { + + onChanged(); + return getConditionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { + if (conditionBuilder_ != null) { + return conditionBuilder_.getMessageOrBuilder(); + } else { + return condition_ == null ? + flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; + } + } + /** + * .flyteidl.core.BooleanExpression condition = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> + getConditionFieldBuilder() { + if (conditionBuilder_ == null) { + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); + condition_ = null; + } + return conditionBuilder_; + } + + private flyteidl.core.Workflow.Node thenNode_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; + /** + * .flyteidl.core.Node then_node = 2; + */ + public boolean hasThenNode() { + return thenNodeBuilder_ != null || thenNode_ != null; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node getThenNode() { + if (thenNodeBuilder_ == null) { + return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } else { + return thenNodeBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thenNode_ = value; + onChanged(); + } else { + thenNodeBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder setThenNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (thenNodeBuilder_ == null) { + thenNode_ = builderForValue.build(); + onChanged(); + } else { + thenNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { + if (thenNodeBuilder_ == null) { + if (thenNode_ != null) { + thenNode_ = + flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); + } else { + thenNode_ = value; + } + onChanged(); + } else { + thenNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public Builder clearThenNode() { + if (thenNodeBuilder_ == null) { + thenNode_ = null; + onChanged(); + } else { + thenNode_ = null; + thenNodeBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { + + onChanged(); + return getThenNodeFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Node then_node = 2; + */ + public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { + if (thenNodeBuilder_ != null) { + return thenNodeBuilder_.getMessageOrBuilder(); + } else { + return thenNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; + } + } + /** + * .flyteidl.core.Node then_node = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getThenNodeFieldBuilder() { + if (thenNodeBuilder_ == null) { + thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getThenNode(), + getParentForChildren(), + isClean()); + thenNode_ = null; + } + return thenNodeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.IfBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); + } + + public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public IfBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface IfElseBlockOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + boolean hasCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlock getCase(); + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); + + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlock getOther(int index); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + int getOtherCount(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + java.util.List + getOtherOrBuilderList(); + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index); + + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + boolean hasElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.Node getElseNode(); + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); + + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + boolean hasError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.Error getError(); + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); + } + /** + *
+   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+   * If no conditions were satisfied, the else_node or the error will execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class IfElseBlock extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) + IfElseBlockOrBuilder { + private static final long serialVersionUID = 0L; + // Use IfElseBlock.newBuilder() to construct. + private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private IfElseBlock() { + other_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IfElseBlock( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Workflow.IfBlock.Builder subBuilder = null; + if (case_ != null) { + subBuilder = case_.toBuilder(); + } + case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(case_); + case_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + other_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + other_.add( + input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); + break; + } + case 26: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (defaultCase_ == 3) { + subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 3; + break; + } + case 34: { + flyteidl.core.Types.Error.Builder subBuilder = null; + if (defaultCase_ == 4) { + subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); + } + default_ = + input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); + default_ = subBuilder.buildPartial(); + } + defaultCase_ = 4; + 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_ & 0x00000002) == 0x00000002)) { + other_ = java.util.Collections.unmodifiableList(other_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + private int bitField0_; + private int defaultCase_ = 0; + private java.lang.Object default_; + public enum DefaultCase + implements com.google.protobuf.Internal.EnumLite { + ELSE_NODE(3), + ERROR(4), + DEFAULT_NOT_SET(0); + private final int value; + private DefaultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DefaultCase valueOf(int value) { + return forNumber(value); + } + + public static DefaultCase forNumber(int value) { + switch (value) { + case 3: return ELSE_NODE; + case 4: return ERROR; + case 0: return DEFAULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public static final int CASE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfBlock case_; + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return case_ != null; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + /** + *
+     *+required. First condition to evaluate.
+     * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + return getCase(); + } + + public static final int OTHER_FIELD_NUMBER = 2; + private java.util.List other_; + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + return other_; + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + return other_.size(); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + return other_.get(index); + } + /** + *
+     *+optional. Additional branches to evaluate.
+     * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + return other_.get(index); + } + + public static final int ELSE_NODE_FIELD_NUMBER = 3; + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + /** + *
+     * The node to execute in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + public static final int ERROR_FIELD_NUMBER = 4; + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + /** + *
+     * An error to throw in case none of the branches were taken.
+     * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (case_ != null) { + output.writeMessage(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + output.writeMessage(2, other_.get(i)); + } + if (defaultCase_ == 3) { + output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + output.writeMessage(4, (flyteidl.core.Types.Error) default_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (case_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCase()); + } + for (int i = 0; i < other_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, other_.get(i)); + } + if (defaultCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); + } + if (defaultCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (flyteidl.core.Types.Error) default_); + } + 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.Workflow.IfElseBlock)) { + return super.equals(obj); + } + flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; + + boolean result = true; + result = result && (hasCase() == other.hasCase()); + if (hasCase()) { + result = result && getCase() + .equals(other.getCase()); + } + result = result && getOtherList() + .equals(other.getOtherList()); + result = result && getDefaultCase().equals( + other.getDefaultCase()); + if (!result) return false; + switch (defaultCase_) { + case 3: + result = result && getElseNode() + .equals(other.getElseNode()); + break; + case 4: + result = result && getError() + .equals(other.getError()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCase()) { + hash = (37 * hash) + CASE_FIELD_NUMBER; + hash = (53 * hash) + getCase().hashCode(); + } + if (getOtherCount() > 0) { + hash = (37 * hash) + OTHER_FIELD_NUMBER; + hash = (53 * hash) + getOtherList().hashCode(); + } + switch (defaultCase_) { + case 3: + hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getElseNode().hashCode(); + break; + case 4: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock 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.Workflow.IfElseBlock parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock 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.Workflow.IfElseBlock parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.IfElseBlock parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.IfElseBlock prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
+     * If no conditions were satisfied, the else_node or the error will execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.IfElseBlock} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) + flyteidl.core.Workflow.IfElseBlockOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); + } + + // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOtherFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (caseBuilder_ == null) { + case_ = null; + } else { + case_ = null; + caseBuilder_ = null; + } + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + otherBuilder_.clear(); + } + defaultCase_ = 0; + default_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; + } + + public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); + } + + public flyteidl.core.Workflow.IfElseBlock build() { + flyteidl.core.Workflow.IfElseBlock result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.IfElseBlock buildPartial() { + flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (caseBuilder_ == null) { + result.case_ = case_; + } else { + result.case_ = caseBuilder_.build(); + } + if (otherBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + other_ = java.util.Collections.unmodifiableList(other_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.other_ = other_; + } else { + result.other_ = otherBuilder_.build(); + } + if (defaultCase_ == 3) { + if (elseNodeBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = elseNodeBuilder_.build(); + } + } + if (defaultCase_ == 4) { + if (errorBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = errorBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.defaultCase_ = defaultCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.IfElseBlock) { + return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { + if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; + if (other.hasCase()) { + mergeCase(other.getCase()); + } + if (otherBuilder_ == null) { + if (!other.other_.isEmpty()) { + if (other_.isEmpty()) { + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureOtherIsMutable(); + other_.addAll(other.other_); + } + onChanged(); + } + } else { + if (!other.other_.isEmpty()) { + if (otherBuilder_.isEmpty()) { + otherBuilder_.dispose(); + otherBuilder_ = null; + other_ = other.other_; + bitField0_ = (bitField0_ & ~0x00000002); + otherBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOtherFieldBuilder() : null; + } else { + otherBuilder_.addAllMessages(other.other_); + } + } + } + switch (other.getDefaultCase()) { + case ELSE_NODE: { + mergeElseNode(other.getElseNode()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case DEFAULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.IfElseBlock parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int defaultCase_ = 0; + private java.lang.Object default_; + public DefaultCase + getDefaultCase() { + return DefaultCase.forNumber( + defaultCase_); + } + + public Builder clearDefault() { + defaultCase_ = 0; + default_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.Workflow.IfBlock case_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public boolean hasCase() { + return caseBuilder_ != null || case_ != null; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock getCase() { + if (caseBuilder_ == null) { + return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } else { + return caseBuilder_.getMessage(); + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + case_ = value; + onChanged(); + } else { + caseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder setCase( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (caseBuilder_ == null) { + case_ = builderForValue.build(); + onChanged(); + } else { + caseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { + if (caseBuilder_ == null) { + if (case_ != null) { + case_ = + flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); + } else { + case_ = value; + } + onChanged(); + } else { + caseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public Builder clearCase() { + if (caseBuilder_ == null) { + case_ = null; + onChanged(); + } else { + case_ = null; + caseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { + + onChanged(); + return getCaseFieldBuilder().getBuilder(); + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { + if (caseBuilder_ != null) { + return caseBuilder_.getMessageOrBuilder(); + } else { + return case_ == null ? + flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; + } + } + /** + *
+       *+required. First condition to evaluate.
+       * 
+ * + * .flyteidl.core.IfBlock case = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getCaseFieldBuilder() { + if (caseBuilder_ == null) { + caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + getCase(), + getParentForChildren(), + isClean()); + case_ = null; + } + return caseBuilder_; + } + + private java.util.List other_ = + java.util.Collections.emptyList(); + private void ensureOtherIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + other_ = new java.util.ArrayList(other_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; + + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List getOtherList() { + if (otherBuilder_ == null) { + return java.util.Collections.unmodifiableList(other_); + } else { + return otherBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public int getOtherCount() { + if (otherBuilder_ == null) { + return other_.size(); + } else { + return otherBuilder_.getCount(); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock getOther(int index) { + if (otherBuilder_ == null) { + return other_.get(index); + } else { + return otherBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.set(index, value); + onChanged(); + } else { + otherBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder setOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.set(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther(flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(value); + onChanged(); + } else { + otherBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock value) { + if (otherBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOtherIsMutable(); + other_.add(index, value); + onChanged(); + } else { + otherBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addOther( + int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.add(index, builderForValue.build()); + onChanged(); + } else { + otherBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder addAllOther( + java.lang.Iterable values) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, other_); + onChanged(); + } else { + otherBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder clearOther() { + if (otherBuilder_ == null) { + other_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + otherBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public Builder removeOther(int index) { + if (otherBuilder_ == null) { + ensureOtherIsMutable(); + other_.remove(index); + onChanged(); + } else { + otherBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( + int index) { + return getOtherFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( + int index) { + if (otherBuilder_ == null) { + return other_.get(index); } else { + return otherBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherOrBuilderList() { + if (otherBuilder_ != null) { + return otherBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(other_); + } + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { + return getOtherFieldBuilder().addBuilder( + flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( + int index) { + return getOtherFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); + } + /** + *
+       *+optional. Additional branches to evaluate.
+       * 
+ * + * repeated .flyteidl.core.IfBlock other = 2; + */ + public java.util.List + getOtherBuilderList() { + return getOtherFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> + getOtherFieldBuilder() { + if (otherBuilder_ == null) { + otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( + other_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + other_ = null; + } + return otherBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public boolean hasElseNode() { + return defaultCase_ == 3; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node getElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } else { + if (defaultCase_ == 3) { + return elseNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder setElseNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (elseNodeBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + elseNodeBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3 && + default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { + default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 3) { + elseNodeBuilder_.mergeFrom(value); + } + elseNodeBuilder_.setMessage(value); + } + defaultCase_ = 3; + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public Builder clearElseNode() { + if (elseNodeBuilder_ == null) { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 3) { + defaultCase_ = 0; + default_ = null; + } + elseNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { + return getElseNodeFieldBuilder().getBuilder(); + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { + if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { + return elseNodeBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 3) { + return (flyteidl.core.Workflow.Node) default_; + } + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + } + /** + *
+       * The node to execute in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Node else_node = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getElseNodeFieldBuilder() { + if (elseNodeBuilder_ == null) { + if (!(defaultCase_ == 3)) { + default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); + } + elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + (flyteidl.core.Workflow.Node) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 3; + onChanged();; + return elseNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public boolean hasError() { + return defaultCase_ == 4; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error getError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } else { + if (defaultCase_ == 4) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder setError( + flyteidl.core.Types.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder mergeError(flyteidl.core.Types.Error value) { + if (errorBuilder_ == null) { + if (defaultCase_ == 4 && + default_ != flyteidl.core.Types.Error.getDefaultInstance()) { + default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) + .mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + if (defaultCase_ == 4) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + defaultCase_ = 4; + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + onChanged(); + } + } else { + if (defaultCase_ == 4) { + defaultCase_ = 0; + default_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.Error.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { + if ((defaultCase_ == 4) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (defaultCase_ == 4) { + return (flyteidl.core.Types.Error) default_; + } + return flyteidl.core.Types.Error.getDefaultInstance(); + } + } + /** + *
+       * An error to throw in case none of the branches were taken.
+       * 
+ * + * .flyteidl.core.Error error = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(defaultCase_ == 4)) { + default_ = flyteidl.core.Types.Error.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( + (flyteidl.core.Types.Error) default_, + getParentForChildren(), + isClean()); + default_ = null; + } + defaultCase_ = 4; + onChanged();; + return errorBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.IfElseBlock) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); + } + + public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public IfElseBlock parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IfElseBlock(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BranchNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + boolean hasIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlock getIfElse(); + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); + } + /** + *
+   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
+   * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class BranchNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) + BranchNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use BranchNode.newBuilder() to construct. + private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BranchNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BranchNode( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Workflow.IfElseBlock.Builder subBuilder = null; + if (ifElse_ != null) { + subBuilder = ifElse_.toBuilder(); + } + ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ifElse_); + ifElse_ = subBuilder.buildPartial(); + } + + 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.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + public static final int IF_ELSE_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.IfElseBlock ifElse_; + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElse_ != null; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + /** + *
+     *+required
+     * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + return getIfElse(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (ifElse_ != null) { + output.writeMessage(1, getIfElse()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ifElse_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIfElse()); + } + 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.Workflow.BranchNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; + + boolean result = true; + result = result && (hasIfElse() == other.hasIfElse()); + if (hasIfElse()) { + result = result && getIfElse() + .equals(other.getIfElse()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIfElse()) { + hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; + hash = (53 * hash) + getIfElse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode 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.Workflow.BranchNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode 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.Workflow.BranchNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.BranchNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.BranchNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
+     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives).
+     * 
+ * + * Protobuf type {@code flyteidl.core.BranchNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) + flyteidl.core.Workflow.BranchNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.BranchNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (ifElseBuilder_ == null) { + ifElse_ = null; + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; + } + + public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + public flyteidl.core.Workflow.BranchNode build() { + flyteidl.core.Workflow.BranchNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.BranchNode buildPartial() { + flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); + if (ifElseBuilder_ == null) { + result.ifElse_ = ifElse_; + } else { + result.ifElse_ = ifElseBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.BranchNode) { + return mergeFrom((flyteidl.core.Workflow.BranchNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { + if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; + if (other.hasIfElse()) { + mergeIfElse(other.getIfElse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.BranchNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.Workflow.IfElseBlock ifElse_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public boolean hasIfElse() { + return ifElseBuilder_ != null || ifElse_ != null; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock getIfElse() { + if (ifElseBuilder_ == null) { + return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } else { + return ifElseBuilder_.getMessage(); + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ifElse_ = value; + onChanged(); + } else { + ifElseBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder setIfElse( + flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { + if (ifElseBuilder_ == null) { + ifElse_ = builderForValue.build(); + onChanged(); + } else { + ifElseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { + if (ifElseBuilder_ == null) { + if (ifElse_ != null) { + ifElse_ = + flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); + } else { + ifElse_ = value; + } + onChanged(); + } else { + ifElseBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public Builder clearIfElse() { + if (ifElseBuilder_ == null) { + ifElse_ = null; + onChanged(); + } else { + ifElse_ = null; + ifElseBuilder_ = null; + } + + return this; + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { + + onChanged(); + return getIfElseFieldBuilder().getBuilder(); + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { + if (ifElseBuilder_ != null) { + return ifElseBuilder_.getMessageOrBuilder(); + } else { + return ifElse_ == null ? + flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; + } + } + /** + *
+       *+required
+       * 
+ * + * .flyteidl.core.IfElseBlock if_else = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> + getIfElseFieldBuilder() { + if (ifElseBuilder_ == null) { + ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( + getIfElse(), + getParentForChildren(), + isClean()); + ifElse_ = null; + } + return ifElseBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.BranchNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); + } + + public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public BranchNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BranchNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + boolean hasReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); + + public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to the task that the Node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class TaskNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) + TaskNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskNode.newBuilder() to construct. + private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskNode( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + 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.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + REFERENCE_ID(1), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return REFERENCE_ID; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int REFERENCE_ID_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the task.
+     * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + 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.Workflow.TaskNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; + + boolean result = true; + result = result && getReferenceCase().equals( + other.getReferenceCase()); + if (!result) return false; + switch (referenceCase_) { + case 1: + result = result && getReferenceId() + .equals(other.getReferenceId()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReferenceId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode 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.Workflow.TaskNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode 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.Workflow.TaskNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.TaskNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.TaskNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Refers to the task that the Node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.TaskNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) + flyteidl.core.Workflow.TaskNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.TaskNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; + } + + public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + public flyteidl.core.Workflow.TaskNode build() { + flyteidl.core.Workflow.TaskNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.TaskNode buildPartial() { + flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); + if (referenceCase_ == 1) { + if (referenceIdBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = referenceIdBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.TaskNode) { + return mergeFrom((flyteidl.core.Workflow.TaskNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { + if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case REFERENCE_ID: { + mergeReferenceId(other.getReferenceId()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.TaskNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public boolean hasReferenceId() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return referenceIdBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder setReferenceId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (referenceIdBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + referenceIdBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + referenceIdBuilder_.mergeFrom(value); + } + referenceIdBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public Builder clearReferenceId() { + if (referenceIdBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + referenceIdBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { + return getReferenceIdFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { + if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { + return referenceIdBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the task.
+       * 
+ * + * .flyteidl.core.Identifier reference_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getReferenceIdFieldBuilder() { + if (referenceIdBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return referenceIdBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.TaskNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); + } + + public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + boolean hasLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); + + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + boolean hasSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); + + public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); + } + /** + *
+   * Refers to a the workflow the node is to execute.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class WorkflowNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) + WorkflowNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNode.newBuilder() to construct. + private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNode() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNode( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 1) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 1; + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (referenceCase_ == 2) { + subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); + } + reference_ = + input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); + reference_ = subBuilder.buildPartial(); + } + referenceCase_ = 2; + 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.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + public enum ReferenceCase + implements com.google.protobuf.Internal.EnumLite { + LAUNCHPLAN_REF(1), + SUB_WORKFLOW_REF(2), + REFERENCE_NOT_SET(0); + private final int value; + private ReferenceCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 1: return LAUNCHPLAN_REF; + case 2: return SUB_WORKFLOW_REF; + case 0: return REFERENCE_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * A globally unique identifier for the launch plan.
+     * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + /** + *
+     * Reference to a subworkflow, that should be defined with the compiler context
+     * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (referenceCase_ == 1) { + output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (referenceCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + if (referenceCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); + } + 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.Workflow.WorkflowNode)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; + + boolean result = true; + result = result && getReferenceCase().equals( + other.getReferenceCase()); + if (!result) return false; + switch (referenceCase_) { + case 1: + result = result && getLaunchplanRef() + .equals(other.getLaunchplanRef()); + break; + case 2: + result = result && getSubWorkflowRef() + .equals(other.getSubWorkflowRef()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (referenceCase_) { + case 1: + hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; + hash = (53 * hash) + getLaunchplanRef().hashCode(); + break; + case 2: + hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; + hash = (53 * hash) + getSubWorkflowRef().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode 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.Workflow.WorkflowNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode 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.Workflow.WorkflowNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Refers to a the workflow the node is to execute.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) + flyteidl.core.Workflow.WorkflowNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + referenceCase_ = 0; + reference_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; + } + + public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + public flyteidl.core.Workflow.WorkflowNode build() { + flyteidl.core.Workflow.WorkflowNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.WorkflowNode buildPartial() { + flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); + if (referenceCase_ == 1) { + if (launchplanRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = launchplanRefBuilder_.build(); + } + } + if (referenceCase_ == 2) { + if (subWorkflowRefBuilder_ == null) { + result.reference_ = reference_; + } else { + result.reference_ = subWorkflowRefBuilder_.build(); + } + } + result.referenceCase_ = referenceCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowNode) { + return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { + if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; + switch (other.getReferenceCase()) { + case LAUNCHPLAN_REF: { + mergeLaunchplanRef(other.getLaunchplanRef()); + break; + } + case SUB_WORKFLOW_REF: { + mergeSubWorkflowRef(other.getSubWorkflowRef()); + break; + } + case REFERENCE_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int referenceCase_ = 0; + private java.lang.Object reference_; + public ReferenceCase + getReferenceCase() { + return ReferenceCase.forNumber( + referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public boolean hasLaunchplanRef() { + return referenceCase_ == 1; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 1) { + return launchplanRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder setLaunchplanRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (launchplanRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + launchplanRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 1) { + launchplanRefBuilder_.mergeFrom(value); + } + launchplanRefBuilder_.setMessage(value); + } + referenceCase_ = 1; + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public Builder clearLaunchplanRef() { + if (launchplanRefBuilder_ == null) { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 1) { + referenceCase_ = 0; + reference_ = null; + } + launchplanRefBuilder_.clear(); + } + return this; + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { + return getLaunchplanRefFieldBuilder().getBuilder(); + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { + if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { + return launchplanRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 1) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * A globally unique identifier for the launch plan.
+       * 
+ * + * .flyteidl.core.Identifier launchplan_ref = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getLaunchplanRefFieldBuilder() { + if (launchplanRefBuilder_ == null) { + if (!(referenceCase_ == 1)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 1; + onChanged();; + return launchplanRefBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public boolean hasSubWorkflowRef() { + return referenceCase_ == 2; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } else { + if (referenceCase_ == 2) { + return subWorkflowRefBuilder_.getMessage(); + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder setSubWorkflowRef( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (subWorkflowRefBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + subWorkflowRefBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2 && + reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) + .mergeFrom(value).buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 2) { + subWorkflowRefBuilder_.mergeFrom(value); + } + subWorkflowRefBuilder_.setMessage(value); + } + referenceCase_ = 2; + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public Builder clearSubWorkflowRef() { + if (subWorkflowRefBuilder_ == null) { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 2) { + referenceCase_ = 0; + reference_ = null; + } + subWorkflowRefBuilder_.clear(); + } + return this; + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { + return getSubWorkflowRefFieldBuilder().getBuilder(); + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { + if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { + return subWorkflowRefBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 2) { + return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; + } + return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + } + /** + *
+       * Reference to a subworkflow, that should be defined with the compiler context
+       * 
+ * + * .flyteidl.core.Identifier sub_workflow_ref = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getSubWorkflowRefFieldBuilder() { + if (subWorkflowRefBuilder_ == null) { + if (!(referenceCase_ == 2)) { + reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); + } + subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + (flyteidl.core.IdentifierOuterClass.Identifier) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 2; + onChanged();; + return subWorkflowRefBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowNode) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); + } + + public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + boolean hasTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.Duration getTimeout(); + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); + + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + boolean hasRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategy getRetries(); + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); + } + /** + *
+   * Defines extra information about the Node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class NodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) + NodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeMetadata.newBuilder() to construct. + private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeMetadata() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; + if (retries_ != null) { + subBuilder = retries_.toBuilder(); + } + retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retries_); + retries_ = subBuilder.buildPartial(); + } + + 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.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + *
+     * A friendly name for the Node
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_FIELD_NUMBER = 4; + private com.google.protobuf.Duration timeout_; + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeout_ != null; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + /** + *
+     * The overall timeout of a task.
+     * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + return getTimeout(); + } + + public static final int RETRIES_FIELD_NUMBER = 5; + private flyteidl.core.Literals.RetryStrategy retries_; + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retries_ != null; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + /** + *
+     * Number of retries per task.
+     * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + return getRetries(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (timeout_ != null) { + output.writeMessage(4, getTimeout()); + } + if (retries_ != null) { + output.writeMessage(5, getRetries()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (timeout_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeout()); + } + if (retries_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRetries()); + } + 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.Workflow.NodeMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && (hasTimeout() == other.hasTimeout()); + if (hasTimeout()) { + result = result && getTimeout() + .equals(other.getTimeout()); + } + result = result && (hasRetries() == other.hasRetries()); + if (hasRetries()) { + result = result && getRetries() + .equals(other.getRetries()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasTimeout()) { + hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getTimeout().hashCode(); + } + if (hasRetries()) { + hash = (37 * hash) + RETRIES_FIELD_NUMBER; + hash = (53 * hash) + getRetries().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata 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.Workflow.NodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata 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.Workflow.NodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.NodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.NodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines extra information about the Node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.NodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) + flyteidl.core.Workflow.NodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.NodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + if (timeoutBuilder_ == null) { + timeout_ = null; + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + if (retriesBuilder_ == null) { + retries_ = null; + } else { + retries_ = null; + retriesBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; + } + + public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); + } + + public flyteidl.core.Workflow.NodeMetadata build() { + flyteidl.core.Workflow.NodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.NodeMetadata buildPartial() { + flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); + result.name_ = name_; + if (timeoutBuilder_ == null) { + result.timeout_ = timeout_; + } else { + result.timeout_ = timeoutBuilder_.build(); + } + if (retriesBuilder_ == null) { + result.retries_ = retries_; + } else { + result.retries_ = retriesBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.NodeMetadata) { + return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { + if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasTimeout()) { + mergeTimeout(other.getTimeout()); + } + if (other.hasRetries()) { + mergeRetries(other.getRetries()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.NodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * A friendly name for the Node
+       * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Duration timeout_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public boolean hasTimeout() { + return timeoutBuilder_ != null || timeout_ != null; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration getTimeout() { + if (timeoutBuilder_ == null) { + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } else { + return timeoutBuilder_.getMessage(); + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeout_ = value; + onChanged(); + } else { + timeoutBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { + if (timeoutBuilder_ == null) { + timeout_ = builderForValue.build(); + onChanged(); + } else { + timeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder mergeTimeout(com.google.protobuf.Duration value) { + if (timeoutBuilder_ == null) { + if (timeout_ != null) { + timeout_ = + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + } else { + timeout_ = value; + } + onChanged(); + } else { + timeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public Builder clearTimeout() { + if (timeoutBuilder_ == null) { + timeout_ = null; + onChanged(); + } else { + timeout_ = null; + timeoutBuilder_ = null; + } + + return this; + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.Duration.Builder getTimeoutBuilder() { + + onChanged(); + return getTimeoutFieldBuilder().getBuilder(); + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { + if (timeoutBuilder_ != null) { + return timeoutBuilder_.getMessageOrBuilder(); + } else { + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; + } + } + /** + *
+       * The overall timeout of a task.
+       * 
+ * + * .google.protobuf.Duration timeout = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTimeoutFieldBuilder() { + if (timeoutBuilder_ == null) { + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); + timeout_ = null; + } + return timeoutBuilder_; + } + + private flyteidl.core.Literals.RetryStrategy retries_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public boolean hasRetries() { + return retriesBuilder_ != null || retries_ != null; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy getRetries() { + if (retriesBuilder_ == null) { + return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } else { + return retriesBuilder_.getMessage(); + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retries_ = value; + onChanged(); + } else { + retriesBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder setRetries( + flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { + if (retriesBuilder_ == null) { + retries_ = builderForValue.build(); + onChanged(); + } else { + retriesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { + if (retriesBuilder_ == null) { + if (retries_ != null) { + retries_ = + flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); + } else { + retries_ = value; + } + onChanged(); + } else { + retriesBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public Builder clearRetries() { + if (retriesBuilder_ == null) { + retries_ = null; + onChanged(); + } else { + retries_ = null; + retriesBuilder_ = null; + } + + return this; + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { + + onChanged(); + return getRetriesFieldBuilder().getBuilder(); + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { + if (retriesBuilder_ != null) { + return retriesBuilder_.getMessageOrBuilder(); + } else { + return retries_ == null ? + flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; + } + } + /** + *
+       * Number of retries per task.
+       * 
+ * + * .flyteidl.core.RetryStrategy retries = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> + getRetriesFieldBuilder() { + if (retriesBuilder_ == null) { + retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( + getRetries(), + getParentForChildren(), + isClean()); + retries_ = null; + } + return retriesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.NodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); + } + + public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AliasOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + java.lang.String getVar(); + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + com.google.protobuf.ByteString + getVarBytes(); + + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + java.lang.String getAlias(); + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + com.google.protobuf.ByteString + getAliasBytes(); + } + /** + *
+   * Links a variable to an alias.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Alias extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) + AliasOrBuilder { + private static final long serialVersionUID = 0L; + // Use Alias.newBuilder() to construct. + private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Alias() { + var_ = ""; + alias_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Alias( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + var_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + alias_ = s; + 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.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + public static final int VAR_FIELD_NUMBER = 1; + private volatile java.lang.Object var_; + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + 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(); + var_ = s; + return s; + } + } + /** + *
+     * Must match one of the output variable names on a node.
+     * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 2; + private volatile java.lang.Object alias_; + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + 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(); + alias_ = s; + return s; + } + } + /** + *
+     * A workflow-level unique alias that downstream nodes can refer to in their input.
+     * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getVarBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); + } + if (!getAliasBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getVarBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); + } + if (!getAliasBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); + } + 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.Workflow.Alias)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; + + boolean result = true; + result = result && getVar() + .equals(other.getVar()); + result = result && getAlias() + .equals(other.getAlias()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VAR_FIELD_NUMBER; + hash = (53 * hash) + getVar().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias 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.Workflow.Alias parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Alias parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias 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.Workflow.Alias parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Alias parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.Alias prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Links a variable to an alias.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Alias} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) + flyteidl.core.Workflow.AliasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Alias.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + var_ = ""; + + alias_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; + } + + public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return flyteidl.core.Workflow.Alias.getDefaultInstance(); + } + + public flyteidl.core.Workflow.Alias build() { + flyteidl.core.Workflow.Alias result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.Alias buildPartial() { + flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); + result.var_ = var_; + result.alias_ = alias_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.Alias) { + return mergeFrom((flyteidl.core.Workflow.Alias)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { + if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; + if (!other.getVar().isEmpty()) { + var_ = other.var_; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.Alias parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object var_ = ""; + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public java.lang.String getVar() { + java.lang.Object ref = var_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + var_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public com.google.protobuf.ByteString + getVarBytes() { + java.lang.Object ref = var_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + var_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + var_ = value; + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder clearVar() { + + var_ = getDefaultInstance().getVar(); + onChanged(); + return this; + } + /** + *
+       * Must match one of the output variable names on a node.
+       * 
+ * + * string var = 1; + */ + public Builder setVarBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + var_ = value; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public com.google.protobuf.ByteString + getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAlias( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + alias_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder clearAlias() { + + alias_ = getDefaultInstance().getAlias(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique alias that downstream nodes can refer to in their input.
+       * 
+ * + * string alias = 2; + */ + public Builder setAliasBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + alias_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Alias) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); + } + + public static flyteidl.core.Workflow.Alias getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Alias parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Alias(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + java.lang.String getId(); + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadata getMetadata(); + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.Binding getInputs(int index); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + int getInputsCount(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + java.util.List + getInputsOrBuilderList(); + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index); + + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.util.List + getUpstreamNodeIdsList(); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + int getUpstreamNodeIdsCount(); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + java.lang.String getUpstreamNodeIds(int index); + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index); + + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.Alias getOutputAliases(int index); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + int getOutputAliasesCount(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + java.util.List + getOutputAliasesOrBuilderList(); + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index); + + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + boolean hasTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNode getTaskNode(); + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); + + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + boolean hasWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); + + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + boolean hasBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNode getBranchNode(); + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); + + public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); + } + /** + *
+   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+   * node.
+   * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Node extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.Node) + NodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use Node.newBuilder() to construct. + private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Node() { + id_ = ""; + inputs_ = java.util.Collections.emptyList(); + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + outputAliases_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Node( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: { + flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + inputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + inputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + upstreamNodeIds_.add(s); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + outputAliases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputAliases_.add( + input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; + if (targetCase_ == 6) { + subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 6; + break; + } + case 58: { + flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; + if (targetCase_ == 7) { + subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 7; + break; + } + case 66: { + flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; + if (targetCase_ == 8) { + subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); + } + target_ = + input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 8; + 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) == 0x00000004)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + private int bitField0_; + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TASK_NODE(6), + WORKFLOW_NODE(7), + BRANCH_NODE(8), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 6: return TASK_NODE; + case 7: return WORKFLOW_NODE; + case 8: return BRANCH_NODE; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + *
+     * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+     * node ids that cannot be used by other nodes.
+     * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.NodeMetadata metadata_; + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the node.
+     * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INPUTS_FIELD_NUMBER = 3; + private java.util.List inputs_; + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + return inputs_; + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + return inputs_.size(); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + return inputs_.get(index); + } + /** + *
+     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+     * must be fullfilled.
+     * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + return inputs_.get(index); + } + + public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList upstreamNodeIds_; + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_; + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+     *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+     * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+     * field.
+     * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + + public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; + private java.util.List outputAliases_; + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + return outputAliases_; + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + return outputAliases_.size(); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + return outputAliases_.get(index); + } + /** + *
+     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+     * nodes outputs using the alias if one's specified.
+     * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + return outputAliases_.get(index); + } + + public static final int TASK_NODE_FIELD_NUMBER = 6; + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + /** + *
+     * Information about the Task to execute in this node.
+     * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + /** + *
+     * Information about the Workflow to execute in this mode.
+     * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + + public static final int BRANCH_NODE_FIELD_NUMBER = 8; + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + /** + *
+     * Information about the branch node to evaluate in this node.
+     * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + output.writeMessage(3, inputs_.get(i)); + } + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); + } + for (int i = 0; i < outputAliases_.size(); i++) { + output.writeMessage(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + for (int i = 0; i < inputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, inputs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < upstreamNodeIds_.size(); i++) { + dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getUpstreamNodeIdsList().size(); + } + for (int i = 0; i < outputAliases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputAliases_.get(i)); + } + if (targetCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); + } + if (targetCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); + } + if (targetCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); + } + 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.Workflow.Node)) { + return super.equals(obj); + } + flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; + + boolean result = true; + result = result && getId() + .equals(other.getId()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getInputsList() + .equals(other.getInputsList()); + result = result && getUpstreamNodeIdsList() + .equals(other.getUpstreamNodeIdsList()); + result = result && getOutputAliasesList() + .equals(other.getOutputAliasesList()); + result = result && getTargetCase().equals( + other.getTargetCase()); + if (!result) return false; + switch (targetCase_) { + case 6: + result = result && getTaskNode() + .equals(other.getTaskNode()); + break; + case 7: + result = result && getWorkflowNode() + .equals(other.getWorkflowNode()); + break; + case 8: + result = result && getBranchNode() + .equals(other.getBranchNode()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getInputsCount() > 0) { + hash = (37 * hash) + INPUTS_FIELD_NUMBER; + hash = (53 * hash) + getInputsList().hashCode(); + } + if (getUpstreamNodeIdsCount() > 0) { + hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); + } + if (getOutputAliasesCount() > 0) { + hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; + hash = (53 * hash) + getOutputAliasesList().hashCode(); + } + switch (targetCase_) { + case 6: + hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; + hash = (53 * hash) + getTaskNode().hashCode(); + break; + case 7: + hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNode().hashCode(); + break; + case 8: + hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; + hash = (53 * hash) + getBranchNode().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node 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.Workflow.Node parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.Node parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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.Workflow.Node parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node 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.Workflow.Node parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.Node parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.Node prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
+     * node.
+     * 
+ * + * Protobuf type {@code flyteidl.core.Node} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) + flyteidl.core.Workflow.NodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); + } + + // Construct using flyteidl.core.Workflow.Node.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputsFieldBuilder(); + getOutputAliasesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + id_ = ""; + + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + inputsBuilder_.clear(); + } + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputAliasesBuilder_.clear(); + } + targetCase_ = 0; + target_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; + } + + public flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return flyteidl.core.Workflow.Node.getDefaultInstance(); + } + + public flyteidl.core.Workflow.Node build() { + flyteidl.core.Workflow.Node result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.Node buildPartial() { + flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.id_ = id_; + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (inputsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + inputs_ = java.util.Collections.unmodifiableList(inputs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.inputs_ = inputs_; + } else { + result.inputs_ = inputsBuilder_.build(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.upstreamNodeIds_ = upstreamNodeIds_; + if (outputAliasesBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputAliases_ = outputAliases_; + } else { + result.outputAliases_ = outputAliasesBuilder_.build(); + } + if (targetCase_ == 6) { + if (taskNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = taskNodeBuilder_.build(); + } + } + if (targetCase_ == 7) { + if (workflowNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = workflowNodeBuilder_.build(); + } + } + if (targetCase_ == 8) { + if (branchNodeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = branchNodeBuilder_.build(); + } + } + result.bitField0_ = to_bitField0_; + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.Node) { + return mergeFrom((flyteidl.core.Workflow.Node)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.Node other) { + if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (inputsBuilder_ == null) { + if (!other.inputs_.isEmpty()) { + if (inputs_.isEmpty()) { + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureInputsIsMutable(); + inputs_.addAll(other.inputs_); + } + onChanged(); + } + } else { + if (!other.inputs_.isEmpty()) { + if (inputsBuilder_.isEmpty()) { + inputsBuilder_.dispose(); + inputsBuilder_ = null; + inputs_ = other.inputs_; + bitField0_ = (bitField0_ & ~0x00000004); + inputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputsFieldBuilder() : null; + } else { + inputsBuilder_.addAllMessages(other.inputs_); + } + } + } + if (!other.upstreamNodeIds_.isEmpty()) { + if (upstreamNodeIds_.isEmpty()) { + upstreamNodeIds_ = other.upstreamNodeIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.addAll(other.upstreamNodeIds_); + } + onChanged(); + } + if (outputAliasesBuilder_ == null) { + if (!other.outputAliases_.isEmpty()) { + if (outputAliases_.isEmpty()) { + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputAliasesIsMutable(); + outputAliases_.addAll(other.outputAliases_); + } + onChanged(); + } + } else { + if (!other.outputAliases_.isEmpty()) { + if (outputAliasesBuilder_.isEmpty()) { + outputAliasesBuilder_.dispose(); + outputAliasesBuilder_ = null; + outputAliases_ = other.outputAliases_; + bitField0_ = (bitField0_ & ~0x00000010); + outputAliasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputAliasesFieldBuilder() : null; + } else { + outputAliasesBuilder_.addAllMessages(other.outputAliases_); + } + } + } + switch (other.getTargetCase()) { + case TASK_NODE: { + mergeTaskNode(other.getTaskNode()); + break; + } + case WORKFLOW_NODE: { + mergeWorkflowNode(other.getWorkflowNode()); + break; + } + case BRANCH_NODE: { + mergeBranchNode(other.getBranchNode()); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.Node parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + *
+       * A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved
+       * node ids that cannot be used by other nodes.
+       * 
+ * + * string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private flyteidl.core.Workflow.NodeMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the node.
+       * 
+ * + * .flyteidl.core.NodeMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List inputs_ = + java.util.Collections.emptyList(); + private void ensureInputsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + inputs_ = new java.util.ArrayList(inputs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; + + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List getInputsList() { + if (inputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputs_); + } else { + return inputsBuilder_.getMessageList(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public int getInputsCount() { + if (inputsBuilder_ == null) { + return inputs_.size(); + } else { + return inputsBuilder_.getCount(); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding getInputs(int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); + } else { + return inputsBuilder_.getMessage(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.set(index, value); + onChanged(); + } else { + inputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder setInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.set(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs(flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(value); + onChanged(); + } else { + inputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding value) { + if (inputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputsIsMutable(); + inputs_.add(index, value); + onChanged(); + } else { + inputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addInputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.add(index, builderForValue.build()); + onChanged(); + } else { + inputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder addAllInputs( + java.lang.Iterable values) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputs_); + onChanged(); + } else { + inputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder clearInputs() { + if (inputsBuilder_ == null) { + inputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + inputsBuilder_.clear(); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public Builder removeInputs(int index) { + if (inputsBuilder_ == null) { + ensureInputsIsMutable(); + inputs_.remove(index); + onChanged(); + } else { + inputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder getInputsBuilder( + int index) { + return getInputsFieldBuilder().getBuilder(index); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( + int index) { + if (inputsBuilder_ == null) { + return inputs_.get(index); } else { + return inputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsOrBuilderList() { + if (inputsBuilder_ != null) { + return inputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputs_); + } + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { + return getInputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public flyteidl.core.Literals.Binding.Builder addInputsBuilder( + int index) { + return getInputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
+       * must be fullfilled.
+       * 
+ * + * repeated .flyteidl.core.Binding inputs = 3; + */ + public java.util.List + getInputsBuilderList() { + return getInputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getInputsFieldBuilder() { + if (inputsBuilder_ == null) { + inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + inputs_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + inputs_ = null; + } + return inputsBuilder_; + } + + private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUpstreamNodeIdsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getUpstreamNodeIdsList() { + return upstreamNodeIds_.getUnmodifiableView(); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public int getUpstreamNodeIdsCount() { + return upstreamNodeIds_.size(); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public java.lang.String getUpstreamNodeIds(int index) { + return upstreamNodeIds_.get(index); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public com.google.protobuf.ByteString + getUpstreamNodeIdsBytes(int index) { + return upstreamNodeIds_.getByteString(index); + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder setUpstreamNodeIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addAllUpstreamNodeIds( + java.lang.Iterable values) { + ensureUpstreamNodeIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, upstreamNodeIds_); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder clearUpstreamNodeIds() { + upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       *+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its
+       * upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs
+       * field.
+       * 
+ * + * repeated string upstream_node_ids = 4; + */ + public Builder addUpstreamNodeIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUpstreamNodeIdsIsMutable(); + upstreamNodeIds_.add(value); + onChanged(); + return this; + } + + private java.util.List outputAliases_ = + java.util.Collections.emptyList(); + private void ensureOutputAliasesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + outputAliases_ = new java.util.ArrayList(outputAliases_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; + + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List getOutputAliasesList() { + if (outputAliasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputAliases_); + } else { + return outputAliasesBuilder_.getMessageList(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public int getOutputAliasesCount() { + if (outputAliasesBuilder_ == null) { + return outputAliases_.size(); + } else { + return outputAliasesBuilder_.getCount(); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias getOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); + } else { + return outputAliasesBuilder_.getMessage(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, value); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder setOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.set(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias value) { + if (outputAliasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, value); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addOutputAliases( + int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.add(index, builderForValue.build()); + onChanged(); + } else { + outputAliasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder addAllOutputAliases( + java.lang.Iterable values) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputAliases_); + onChanged(); + } else { + outputAliasesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder clearOutputAliases() { + if (outputAliasesBuilder_ == null) { + outputAliases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputAliasesBuilder_.clear(); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public Builder removeOutputAliases(int index) { + if (outputAliasesBuilder_ == null) { + ensureOutputAliasesIsMutable(); + outputAliases_.remove(index); + onChanged(); + } else { + outputAliasesBuilder_.remove(index); + } + return this; + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().getBuilder(index); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( + int index) { + if (outputAliasesBuilder_ == null) { + return outputAliases_.get(index); } else { + return outputAliasesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesOrBuilderList() { + if (outputAliasesBuilder_ != null) { + return outputAliasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputAliases_); + } + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { + return getOutputAliasesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( + int index) { + return getOutputAliasesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Alias.getDefaultInstance()); + } + /** + *
+       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
+       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
+       * nodes outputs using the alias if one's specified.
+       * 
+ * + * repeated .flyteidl.core.Alias output_aliases = 5; + */ + public java.util.List + getOutputAliasesBuilderList() { + return getOutputAliasesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> + getOutputAliasesFieldBuilder() { + if (outputAliasesBuilder_ == null) { + outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( + outputAliases_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + outputAliases_ = null; + } + return outputAliasesBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public boolean hasTaskNode() { + return targetCase_ == 6; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode getTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } else { + if (targetCase_ == 6) { + return taskNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder setTaskNode( + flyteidl.core.Workflow.TaskNode.Builder builderForValue) { + if (taskNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + taskNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6 && + target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 6) { + taskNodeBuilder_.mergeFrom(value); + } + taskNodeBuilder_.setMessage(value); + } + targetCase_ = 6; + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public Builder clearTaskNode() { + if (taskNodeBuilder_ == null) { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 6) { + targetCase_ = 0; + target_ = null; + } + taskNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { + return getTaskNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { + if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { + return taskNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 6) { + return (flyteidl.core.Workflow.TaskNode) target_; + } + return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Task to execute in this node.
+       * 
+ * + * .flyteidl.core.TaskNode task_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> + getTaskNodeFieldBuilder() { + if (taskNodeBuilder_ == null) { + if (!(targetCase_ == 6)) { + target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); + } + taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( + (flyteidl.core.Workflow.TaskNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 6; + onChanged();; + return taskNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public boolean hasWorkflowNode() { + return targetCase_ == 7; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } else { + if (targetCase_ == 7) { + return workflowNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder setWorkflowNode( + flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { + if (workflowNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7 && + target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 7) { + workflowNodeBuilder_.mergeFrom(value); + } + workflowNodeBuilder_.setMessage(value); + } + targetCase_ = 7; + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public Builder clearWorkflowNode() { + if (workflowNodeBuilder_ == null) { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 7) { + targetCase_ = 0; + target_ = null; + } + workflowNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { + return getWorkflowNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { + if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { + return workflowNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 7) { + return (flyteidl.core.Workflow.WorkflowNode) target_; + } + return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the Workflow to execute in this mode.
+       * 
+ * + * .flyteidl.core.WorkflowNode workflow_node = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> + getWorkflowNodeFieldBuilder() { + if (workflowNodeBuilder_ == null) { + if (!(targetCase_ == 7)) { + target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); + } + workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( + (flyteidl.core.Workflow.WorkflowNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 7; + onChanged();; + return workflowNodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public boolean hasBranchNode() { + return targetCase_ == 8; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode getBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } else { + if (targetCase_ == 8) { + return branchNodeBuilder_.getMessage(); + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder setBranchNode( + flyteidl.core.Workflow.BranchNode.Builder builderForValue) { + if (branchNodeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + branchNodeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8 && + target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { + target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 8) { + branchNodeBuilder_.mergeFrom(value); + } + branchNodeBuilder_.setMessage(value); + } + targetCase_ = 8; + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public Builder clearBranchNode() { + if (branchNodeBuilder_ == null) { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 8) { + targetCase_ = 0; + target_ = null; + } + branchNodeBuilder_.clear(); + } + return this; + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { + return getBranchNodeFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { + if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { + return branchNodeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 8) { + return (flyteidl.core.Workflow.BranchNode) target_; + } + return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + } + /** + *
+       * Information about the branch node to evaluate in this node.
+       * 
+ * + * .flyteidl.core.BranchNode branch_node = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> + getBranchNodeFieldBuilder() { + if (branchNodeBuilder_ == null) { + if (!(targetCase_ == 8)) { + target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); + } + branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( + (flyteidl.core.Workflow.BranchNode) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 8; + onChanged();; + return branchNodeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.Node) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.Node) + private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); + } + + public static flyteidl.core.Workflow.Node getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Node parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Node(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.Node getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Metadata for the entire workflow.
+   * To be used in the future.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class WorkflowMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) + WorkflowMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowMetadata.newBuilder() to construct. + private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.Workflow.WorkflowMetadata)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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.Workflow.WorkflowMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata 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.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Metadata for the entire workflow.
+     * To be used in the future.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) + flyteidl.core.Workflow.WorkflowMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; + } + + public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); + } + + public flyteidl.core.Workflow.WorkflowMetadata build() { + flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { + flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowMetadata) { + return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { + if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); + } + + public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * This is an autogenerated id by the system. The id is globally unique across the system.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + *
+     * This is an autogenerated id by the system. The id is globally unique across the system.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + *
+     * This is an autogenerated id by the system. The id is globally unique across the system.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + boolean hasMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadata getMetadata(); + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + boolean hasInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterface getInterface(); + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); + + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesList(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.Node getNodes(int index); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + int getNodesCount(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + java.util.List + getNodesOrBuilderList(); + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index); + + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.Binding getOutputs(int index); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + int getOutputsCount(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + java.util.List + getOutputsOrBuilderList(); + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index); + + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + boolean hasFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.Node getFailureNode(); + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); + } + /** + *
+   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+   * directed acyclic graph.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class WorkflowTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) + WorkflowTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowTemplate.newBuilder() to construct. + private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowTemplate() { + nodes_ = java.util.Collections.emptyList(); + outputs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowTemplate( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; + if (interface_ != null) { + subBuilder = interface_.toBuilder(); + } + interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(interface_); + interface_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + nodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + nodes_.add( + input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + outputs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + outputs_.add( + input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); + break; + } + case 50: { + flyteidl.core.Workflow.Node.Builder subBuilder = null; + if (failureNode_ != null) { + subBuilder = failureNode_.toBuilder(); + } + failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(failureNode_); + failureNode_ = subBuilder.buildPartial(); + } + + 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_ & 0x00000008) == 0x00000008)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + *
+     * This is an autogenerated id by the system. The id is globally unique across the system.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * This is an autogenerated id by the system. The id is globally unique across the system.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + *
+     * This is an autogenerated id by the system. The id is globally unique across the system.
+     * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int METADATA_FIELD_NUMBER = 2; + private flyteidl.core.Workflow.WorkflowMetadata metadata_; + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Extra metadata about the workflow.
+     * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + public static final int INTERFACE_FIELD_NUMBER = 3; + private flyteidl.core.Interface.TypedInterface interface_; + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interface_ != null; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + /** + *
+     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+     * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + return getInterface(); + } + + public static final int NODES_FIELD_NUMBER = 4; + private java.util.List nodes_; + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + return nodes_; + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + return nodes_.size(); + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + return nodes_.get(index); + } + /** + *
+     * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+     * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + return nodes_.get(index); + } + + public static final int OUTPUTS_FIELD_NUMBER = 5; + private java.util.List outputs_; + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + return outputs_; + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + return outputs_.size(); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + return outputs_.get(index); + } + /** + *
+     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+     * bind final outputs.
+     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+     * outputs from the output of a task.
+     * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + return outputs_.get(index); + } + + public static final int FAILURE_NODE_FIELD_NUMBER = 6; + private flyteidl.core.Workflow.Node failureNode_; + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNode_ != null; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + /** + *
+     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+     * The interface of this node must match the Workflow interface with an additional input named "error" of type
+     * pb.lyft.flyte.core.Error.
+     * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + return getFailureNode(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (metadata_ != null) { + output.writeMessage(2, getMetadata()); + } + if (interface_ != null) { + output.writeMessage(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + output.writeMessage(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + output.writeMessage(5, outputs_.get(i)); + } + if (failureNode_ != null) { + output.writeMessage(6, getFailureNode()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); + } + if (interface_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getInterface()); + } + for (int i = 0; i < nodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, nodes_.get(i)); + } + for (int i = 0; i < outputs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, outputs_.get(i)); + } + if (failureNode_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getFailureNode()); + } + 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.Workflow.WorkflowTemplate)) { + return super.equals(obj); + } + flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasInterface() == other.hasInterface()); + if (hasInterface()) { + result = result && getInterface() + .equals(other.getInterface()); + } + result = result && getNodesList() + .equals(other.getNodesList()); + result = result && getOutputsList() + .equals(other.getOutputsList()); + result = result && (hasFailureNode() == other.hasFailureNode()); + if (hasFailureNode()) { + result = result && getFailureNode() + .equals(other.getFailureNode()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasInterface()) { + hash = (37 * hash) + INTERFACE_FIELD_NUMBER; + hash = (53 * hash) + getInterface().hashCode(); + } + if (getNodesCount() > 0) { + hash = (37 * hash) + NODES_FIELD_NUMBER; + hash = (53 * hash) + getNodesList().hashCode(); + } + if (getOutputsCount() > 0) { + hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; + hash = (53 * hash) + getOutputsList().hashCode(); + } + if (hasFailureNode()) { + hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; + hash = (53 * hash) + getFailureNode().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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.Workflow.WorkflowTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate 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.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.Workflow.WorkflowTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
+     * directed acyclic graph.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) + flyteidl.core.Workflow.WorkflowTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); + } + + // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNodesFieldBuilder(); + getOutputsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + if (interfaceBuilder_ == null) { + interface_ = null; + } else { + interface_ = null; + interfaceBuilder_ = null; + } + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + nodesBuilder_.clear(); + } + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + outputsBuilder_.clear(); + } + if (failureNodeBuilder_ == null) { + failureNode_ = null; + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; + } + + public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); + } + + public flyteidl.core.Workflow.WorkflowTemplate build() { + flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { + flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (interfaceBuilder_ == null) { + result.interface_ = interface_; + } else { + result.interface_ = interfaceBuilder_.build(); + } + if (nodesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + nodes_ = java.util.Collections.unmodifiableList(nodes_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.nodes_ = nodes_; + } else { + result.nodes_ = nodesBuilder_.build(); + } + if (outputsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + outputs_ = java.util.Collections.unmodifiableList(outputs_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputs_ = outputs_; + } else { + result.outputs_ = outputsBuilder_.build(); + } + if (failureNodeBuilder_ == null) { + result.failureNode_ = failureNode_; + } else { + result.failureNode_ = failureNodeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.Workflow.WorkflowTemplate) { + return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { + if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasInterface()) { + mergeInterface(other.getInterface()); + } + if (nodesBuilder_ == null) { + if (!other.nodes_.isEmpty()) { + if (nodes_.isEmpty()) { + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureNodesIsMutable(); + nodes_.addAll(other.nodes_); + } + onChanged(); + } + } else { + if (!other.nodes_.isEmpty()) { + if (nodesBuilder_.isEmpty()) { + nodesBuilder_.dispose(); + nodesBuilder_ = null; + nodes_ = other.nodes_; + bitField0_ = (bitField0_ & ~0x00000008); + nodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodesFieldBuilder() : null; + } else { + nodesBuilder_.addAllMessages(other.nodes_); + } + } + } + if (outputsBuilder_ == null) { + if (!other.outputs_.isEmpty()) { + if (outputs_.isEmpty()) { + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputsIsMutable(); + outputs_.addAll(other.outputs_); + } + onChanged(); + } + } else { + if (!other.outputs_.isEmpty()) { + if (outputsBuilder_.isEmpty()) { + outputsBuilder_.dispose(); + outputsBuilder_ = null; + outputs_ = other.outputs_; + bitField0_ = (bitField0_ & ~0x00000010); + outputsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputsFieldBuilder() : null; + } else { + outputsBuilder_.addAllMessages(other.outputs_); + } + } + } + if (other.hasFailureNode()) { + mergeFailureNode(other.getFailureNode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.Workflow.WorkflowTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + *
+       * This is an autogenerated id by the system. The id is globally unique across the system.
+       * 
+ * + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private flyteidl.core.Workflow.WorkflowMetadata metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder setMetadata( + flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Extra metadata about the workflow.
+       * 
+ * + * .flyteidl.core.WorkflowMetadata metadata = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private flyteidl.core.Interface.TypedInterface interface_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public boolean hasInterface() { + return interfaceBuilder_ != null || interface_ != null; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface getInterface() { + if (interfaceBuilder_ == null) { + return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } else { + return interfaceBuilder_.getMessage(); + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interface_ = value; + onChanged(); + } else { + interfaceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder setInterface( + flyteidl.core.Interface.TypedInterface.Builder builderForValue) { + if (interfaceBuilder_ == null) { + interface_ = builderForValue.build(); + onChanged(); + } else { + interfaceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { + if (interfaceBuilder_ == null) { + if (interface_ != null) { + interface_ = + flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); + } else { + interface_ = value; + } + onChanged(); + } else { + interfaceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public Builder clearInterface() { + if (interfaceBuilder_ == null) { + interface_ = null; + onChanged(); + } else { + interface_ = null; + interfaceBuilder_ = null; + } + + return this; + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { + + onChanged(); + return getInterfaceFieldBuilder().getBuilder(); + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { + if (interfaceBuilder_ != null) { + return interfaceBuilder_.getMessageOrBuilder(); + } else { + return interface_ == null ? + flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; + } + } + /** + *
+       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
+       * 
+ * + * .flyteidl.core.TypedInterface interface = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> + getInterfaceFieldBuilder() { + if (interfaceBuilder_ == null) { + interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( + getInterface(), + getParentForChildren(), + isClean()); + interface_ = null; + } + return interfaceBuilder_; + } + + private java.util.List nodes_ = + java.util.Collections.emptyList(); + private void ensureNodesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + nodes_ = new java.util.ArrayList(nodes_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; + + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List getNodesList() { + if (nodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodes_); + } else { + return nodesBuilder_.getMessageList(); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public int getNodesCount() { + if (nodesBuilder_ == null) { + return nodes_.size(); + } else { + return nodesBuilder_.getCount(); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node getNodes(int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); + } else { + return nodesBuilder_.getMessage(index); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.set(index, value); + onChanged(); + } else { + nodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder setNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.set(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes(flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(value); + onChanged(); + } else { + nodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node value) { + if (nodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodesIsMutable(); + nodes_.add(index, value); + onChanged(); + } else { + nodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addNodes( + int index, flyteidl.core.Workflow.Node.Builder builderForValue) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.add(index, builderForValue.build()); + onChanged(); + } else { + nodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder addAllNodes( + java.lang.Iterable values) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodes_); + onChanged(); + } else { + nodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder clearNodes() { + if (nodesBuilder_ == null) { + nodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + nodesBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public Builder removeNodes(int index) { + if (nodesBuilder_ == null) { + ensureNodesIsMutable(); + nodes_.remove(index); + onChanged(); + } else { + nodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder getNodesBuilder( + int index) { + return getNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( + int index) { + if (nodesBuilder_ == null) { + return nodes_.get(index); } else { + return nodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesOrBuilderList() { + if (nodesBuilder_ != null) { + return nodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodes_); + } + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { + return getNodesFieldBuilder().addBuilder( + flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public flyteidl.core.Workflow.Node.Builder addNodesBuilder( + int index) { + return getNodesFieldBuilder().addBuilder( + index, flyteidl.core.Workflow.Node.getDefaultInstance()); + } + /** + *
+       * A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs.
+       * 
+ * + * repeated .flyteidl.core.Node nodes = 4; + */ + public java.util.List + getNodesBuilderList() { + return getNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getNodesFieldBuilder() { + if (nodesBuilder_ == null) { + nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + nodes_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + nodes_ = null; + } + return nodesBuilder_; + } + + private java.util.List outputs_ = + java.util.Collections.emptyList(); + private void ensureOutputsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + outputs_ = new java.util.ArrayList(outputs_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; + + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List getOutputsList() { + if (outputsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputs_); + } else { + return outputsBuilder_.getMessageList(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public int getOutputsCount() { + if (outputsBuilder_ == null) { + return outputs_.size(); + } else { + return outputsBuilder_.getCount(); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding getOutputs(int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); + } else { + return outputsBuilder_.getMessage(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.set(index, value); + onChanged(); + } else { + outputsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder setOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.set(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs(flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(value); + onChanged(); + } else { + outputsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding value) { + if (outputsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputsIsMutable(); + outputs_.add(index, value); + onChanged(); + } else { + outputsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addOutputs( + int index, flyteidl.core.Literals.Binding.Builder builderForValue) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.add(index, builderForValue.build()); + onChanged(); + } else { + outputsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder addAllOutputs( + java.lang.Iterable values) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputs_); + onChanged(); + } else { + outputsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder clearOutputs() { + if (outputsBuilder_ == null) { + outputs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputsBuilder_.clear(); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public Builder removeOutputs(int index) { + if (outputsBuilder_ == null) { + ensureOutputsIsMutable(); + outputs_.remove(index); + onChanged(); + } else { + outputsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( + int index) { + return getOutputsFieldBuilder().getBuilder(index); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( + int index) { + if (outputsBuilder_ == null) { + return outputs_.get(index); } else { + return outputsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsOrBuilderList() { + if (outputsBuilder_ != null) { + return outputsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputs_); + } + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { + return getOutputsFieldBuilder().addBuilder( + flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( + int index) { + return getOutputsFieldBuilder().addBuilder( + index, flyteidl.core.Literals.Binding.getDefaultInstance()); + } + /** + *
+       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
+       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
+       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
+       * bind final outputs.
+       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
+       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
+       * outputs from the output of a task.
+       * 
+ * + * repeated .flyteidl.core.Binding outputs = 5; + */ + public java.util.List + getOutputsBuilderList() { + return getOutputsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> + getOutputsFieldBuilder() { + if (outputsBuilder_ == null) { + outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( + outputs_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + outputs_ = null; + } + return outputsBuilder_; + } + + private flyteidl.core.Workflow.Node failureNode_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public boolean hasFailureNode() { + return failureNodeBuilder_ != null || failureNode_ != null; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node getFailureNode() { + if (failureNodeBuilder_ == null) { + return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } else { + return failureNodeBuilder_.getMessage(); + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failureNode_ = value; + onChanged(); + } else { + failureNodeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder setFailureNode( + flyteidl.core.Workflow.Node.Builder builderForValue) { + if (failureNodeBuilder_ == null) { + failureNode_ = builderForValue.build(); + onChanged(); + } else { + failureNodeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { + if (failureNodeBuilder_ == null) { + if (failureNode_ != null) { + failureNode_ = + flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); + } else { + failureNode_ = value; + } + onChanged(); + } else { + failureNodeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public Builder clearFailureNode() { + if (failureNodeBuilder_ == null) { + failureNode_ = null; + onChanged(); + } else { + failureNode_ = null; + failureNodeBuilder_ = null; + } + + return this; + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { + + onChanged(); + return getFailureNodeFieldBuilder().getBuilder(); + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { + if (failureNodeBuilder_ != null) { + return failureNodeBuilder_.getMessageOrBuilder(); + } else { + return failureNode_ == null ? + flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; + } + } + /** + *
+       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
+       * The interface of this node must match the Workflow interface with an additional input named "error" of type
+       * pb.lyft.flyte.core.Error.
+       * 
+ * + * .flyteidl.core.Node failure_node = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> + getFailureNodeFieldBuilder() { + if (failureNodeBuilder_ == null) { + failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( + getFailureNode(), + getParentForChildren(), + isClean()); + failureNode_ = null; + } + return failureNodeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowTemplate) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); + } + + public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_IfElseBlock_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_BranchNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_BranchNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_TaskNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_TaskNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_NodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Alias_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Alias_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_Node_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_Node_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/core/workflow.proto\022\rflyteidl" + + ".core\032\035flyteidl/core/condition.proto\032\036fl" + + "yteidl/core/identifier.proto\032\035flyteidl/c" + + "ore/interface.proto\032\034flyteidl/core/liter" + + "als.proto\032\031flyteidl/core/types.proto\032\036go" + + "ogle/protobuf/duration.proto\"f\n\007IfBlock\022" + + "3\n\tcondition\030\001 \001(\0132 .flyteidl.core.Boole" + + "anExpression\022&\n\tthen_node\030\002 \001(\0132\023.flytei" + + "dl.core.Node\"\266\001\n\013IfElseBlock\022$\n\004case\030\001 \001" + + "(\0132\026.flyteidl.core.IfBlock\022%\n\005other\030\002 \003(" + + "\0132\026.flyteidl.core.IfBlock\022(\n\telse_node\030\003" + + " \001(\0132\023.flyteidl.core.NodeH\000\022%\n\005error\030\004 \001" + + "(\0132\024.flyteidl.core.ErrorH\000B\t\n\007default\"9\n" + + "\nBranchNode\022+\n\007if_else\030\001 \001(\0132\032.flyteidl." + + "core.IfElseBlock\"J\n\010TaskNode\0221\n\014referenc" + + "e_id\030\001 \001(\0132\031.flyteidl.core.IdentifierH\000B" + + "\013\n\treference\"\207\001\n\014WorkflowNode\0223\n\016launchp" + + "lan_ref\030\001 \001(\0132\031.flyteidl.core.Identifier" + + "H\000\0225\n\020sub_workflow_ref\030\002 \001(\0132\031.flyteidl." + + "core.IdentifierH\000B\013\n\treference\"w\n\014NodeMe" + + "tadata\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031." + + "google.protobuf.Duration\022-\n\007retries\030\005 \001(" + + "\0132\034.flyteidl.core.RetryStrategy\"#\n\005Alias" + + "\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\322\002\n\004Node\022\n\n" + + "\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl.c" + + "ore.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.flyte" + + "idl.core.Binding\022\031\n\021upstream_node_ids\030\004 " + + "\003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl.c" + + "ore.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteidl." + + "core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\0132\033" + + ".flyteidl.core.WorkflowNodeH\000\0220\n\013branch_" + + "node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH\000B" + + "\010\n\006target\"\022\n\020WorkflowMetadata\"\226\002\n\020Workfl" + + "owTemplate\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.I" + + "dentifier\0221\n\010metadata\030\002 \001(\0132\037.flyteidl.c" + + "ore.WorkflowMetadata\0220\n\tinterface\030\003 \001(\0132" + + "\035.flyteidl.core.TypedInterface\022\"\n\005nodes\030" + + "\004 \003(\0132\023.flyteidl.core.Node\022\'\n\007outputs\030\005 " + + "\003(\0132\026.flyteidl.core.Binding\022)\n\014failure_n" + + "ode\030\006 \001(\0132\023.flyteidl.core.NodeB2Z0github" + + ".com/lyft/flyteidl/gen/pb-go/flyteidl/co" + + "reb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Condition.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + flyteidl.core.Interface.getDescriptor(), + flyteidl.core.Literals.getDescriptor(), + flyteidl.core.Types.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_IfBlock_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_IfBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfBlock_descriptor, + new java.lang.String[] { "Condition", "ThenNode", }); + internal_static_flyteidl_core_IfElseBlock_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_IfElseBlock_descriptor, + new java.lang.String[] { "Case", "Other", "ElseNode", "Error", "Default", }); + internal_static_flyteidl_core_BranchNode_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_core_BranchNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_BranchNode_descriptor, + new java.lang.String[] { "IfElse", }); + internal_static_flyteidl_core_TaskNode_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_core_TaskNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_TaskNode_descriptor, + new java.lang.String[] { "ReferenceId", "Reference", }); + internal_static_flyteidl_core_WorkflowNode_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowNode_descriptor, + new java.lang.String[] { "LaunchplanRef", "SubWorkflowRef", "Reference", }); + internal_static_flyteidl_core_NodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_NodeMetadata_descriptor, + new java.lang.String[] { "Name", "Timeout", "Retries", }); + internal_static_flyteidl_core_Alias_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_core_Alias_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Alias_descriptor, + new java.lang.String[] { "Var", "Alias", }); + internal_static_flyteidl_core_Node_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_core_Node_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_Node_descriptor, + new java.lang.String[] { "Id", "Metadata", "Inputs", "UpstreamNodeIds", "OutputAliases", "TaskNode", "WorkflowNode", "BranchNode", "Target", }); + internal_static_flyteidl_core_WorkflowMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowMetadata_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_core_WorkflowTemplate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowTemplate_descriptor, + new java.lang.String[] { "Id", "Metadata", "Interface", "Nodes", "Outputs", "FailureNode", }); + flyteidl.core.Condition.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + flyteidl.core.Interface.getDescriptor(); + flyteidl.core.Literals.getDescriptor(); + flyteidl.core.Types.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java b/flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java new file mode 100644 index 0000000000..119e79564e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/core/WorkflowClosureOuterClass.java @@ -0,0 +1,1227 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/core/workflow_closure.proto + +package flyteidl.core; + +public final class WorkflowClosureOuterClass { + private WorkflowClosureOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowClosureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowClosure) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + boolean hasWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); + + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplate getTasks(int index); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + int getTasksCount(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + java.util.List + getTasksOrBuilderList(); + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index); + } + /** + *
+   * Defines an enclosed package of workflow and tasks it references.
+   * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class WorkflowClosure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) + WorkflowClosureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowClosure.newBuilder() to construct. + private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowClosure() { + tasks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowClosure( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.Workflow.WorkflowTemplate.Builder subBuilder = null; + if (workflow_ != null) { + subBuilder = workflow_.toBuilder(); + } + workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(workflow_); + workflow_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + tasks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tasks_.add( + input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); + 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_ & 0x00000002) == 0x00000002)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + private int bitField0_; + public static final int WORKFLOW_FIELD_NUMBER = 1; + private flyteidl.core.Workflow.WorkflowTemplate workflow_; + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflow_ != null; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + /** + *
+     *required. Workflow template.
+     * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + return getWorkflow(); + } + + public static final int TASKS_FIELD_NUMBER = 2; + private java.util.List tasks_; + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + return tasks_; + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + return tasks_.size(); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + return tasks_.get(index); + } + /** + *
+     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+     * references tasks.
+     * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + return tasks_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (workflow_ != null) { + output.writeMessage(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + output.writeMessage(2, tasks_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (workflow_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkflow()); + } + for (int i = 0; i < tasks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tasks_.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.core.WorkflowClosureOuterClass.WorkflowClosure)) { + return super.equals(obj); + } + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; + + boolean result = true; + result = result && (hasWorkflow() == other.hasWorkflow()); + if (hasWorkflow()) { + result = result && getWorkflow() + .equals(other.getWorkflow()); + } + result = result && getTasksList() + .equals(other.getTasksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWorkflow()) { + hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; + hash = (53 * hash) + getWorkflow().hashCode(); + } + if (getTasksCount() > 0) { + hash = (37 * hash) + TASKS_FIELD_NUMBER; + hash = (53 * hash) + getTasksList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines an enclosed package of workflow and tasks it references.
+     * 
+ * + * Protobuf type {@code flyteidl.core.WorkflowClosure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); + } + + // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTasksFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (workflowBuilder_ == null) { + workflow_ = null; + } else { + workflow_ = null; + workflowBuilder_ = null; + } + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + tasksBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; + } + + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); + } + + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (workflowBuilder_ == null) { + result.workflow_ = workflow_; + } else { + result.workflow_ = workflowBuilder_.build(); + } + if (tasksBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + tasks_ = java.util.Collections.unmodifiableList(tasks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tasks_ = tasks_; + } else { + result.tasks_ = tasksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) { + return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { + if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; + if (other.hasWorkflow()) { + mergeWorkflow(other.getWorkflow()); + } + if (tasksBuilder_ == null) { + if (!other.tasks_.isEmpty()) { + if (tasks_.isEmpty()) { + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTasksIsMutable(); + tasks_.addAll(other.tasks_); + } + onChanged(); + } + } else { + if (!other.tasks_.isEmpty()) { + if (tasksBuilder_.isEmpty()) { + tasksBuilder_.dispose(); + tasksBuilder_ = null; + tasks_ = other.tasks_; + bitField0_ = (bitField0_ & ~0x00000002); + tasksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTasksFieldBuilder() : null; + } else { + tasksBuilder_.addAllMessages(other.tasks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private flyteidl.core.Workflow.WorkflowTemplate workflow_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public boolean hasWorkflow() { + return workflowBuilder_ != null || workflow_ != null; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { + if (workflowBuilder_ == null) { + return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } else { + return workflowBuilder_.getMessage(); + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + workflow_ = value; + onChanged(); + } else { + workflowBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder setWorkflow( + flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { + if (workflowBuilder_ == null) { + workflow_ = builderForValue.build(); + onChanged(); + } else { + workflowBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { + if (workflowBuilder_ == null) { + if (workflow_ != null) { + workflow_ = + flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); + } else { + workflow_ = value; + } + onChanged(); + } else { + workflowBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public Builder clearWorkflow() { + if (workflowBuilder_ == null) { + workflow_ = null; + onChanged(); + } else { + workflow_ = null; + workflowBuilder_ = null; + } + + return this; + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { + + onChanged(); + return getWorkflowFieldBuilder().getBuilder(); + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { + if (workflowBuilder_ != null) { + return workflowBuilder_.getMessageOrBuilder(); + } else { + return workflow_ == null ? + flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; + } + } + /** + *
+       *required. Workflow template.
+       * 
+ * + * .flyteidl.core.WorkflowTemplate workflow = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> + getWorkflowFieldBuilder() { + if (workflowBuilder_ == null) { + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); + workflow_ = null; + } + return workflowBuilder_; + } + + private java.util.List tasks_ = + java.util.Collections.emptyList(); + private void ensureTasksIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + tasks_ = new java.util.ArrayList(tasks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; + + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List getTasksList() { + if (tasksBuilder_ == null) { + return java.util.Collections.unmodifiableList(tasks_); + } else { + return tasksBuilder_.getMessageList(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public int getTasksCount() { + if (tasksBuilder_ == null) { + return tasks_.size(); + } else { + return tasksBuilder_.getCount(); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); + } else { + return tasksBuilder_.getMessage(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.set(index, value); + onChanged(); + } else { + tasksBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder setTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.set(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(value); + onChanged(); + } else { + tasksBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate value) { + if (tasksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTasksIsMutable(); + tasks_.add(index, value); + onChanged(); + } else { + tasksBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addTasks( + int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(index, builderForValue.build()); + onChanged(); + } else { + tasksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder addAllTasks( + java.lang.Iterable values) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tasks_); + onChanged(); + } else { + tasksBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder clearTasks() { + if (tasksBuilder_ == null) { + tasks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tasksBuilder_.clear(); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public Builder removeTasks(int index) { + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.remove(index); + onChanged(); + } else { + tasksBuilder_.remove(index); + } + return this; + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( + int index) { + return getTasksFieldBuilder().getBuilder(index); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( + int index) { + if (tasksBuilder_ == null) { + return tasks_.get(index); } else { + return tasksBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksOrBuilderList() { + if (tasksBuilder_ != null) { + return tasksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tasks_); + } + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { + return getTasksFieldBuilder().addBuilder( + flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( + int index) { + return getTasksFieldBuilder().addBuilder( + index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); + } + /** + *
+       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
+       * references tasks.
+       * 
+ * + * repeated .flyteidl.core.TaskTemplate tasks = 2; + */ + public java.util.List + getTasksBuilderList() { + return getTasksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> + getTasksFieldBuilder() { + if (tasksBuilder_ == null) { + tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( + tasks_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + tasks_ = null; + } + return tasksBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.core.WorkflowClosure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); + } + + public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowClosure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowClosure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_core_WorkflowClosure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n$flyteidl/core/workflow_closure.proto\022\r" + + "flyteidl.core\032\034flyteidl/core/workflow.pr" + + "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + + "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + + "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + + "yteidl.core.TaskTemplateB2Z0github.com/l" + + "yft/flyteidl/gen/pb-go/flyteidl/coreb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Workflow.getDescriptor(), + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_core_WorkflowClosure_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_core_WorkflowClosure_descriptor, + new java.lang.String[] { "Workflow", "Tasks", }); + flyteidl.core.Workflow.getDescriptor(); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/event/Event.java b/flyteidl/gen/pb-java/flyteidl/event/Event.java new file mode 100644 index 0000000000..b80efe9376 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/event/Event.java @@ -0,0 +1,8617 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/event/event.proto + +package flyteidl.event; + +public final class Event { + private Event() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WorkflowExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} + */ + public static final class WorkflowExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) + WorkflowExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowExecutionEvent.newBuilder() to construct. + private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowExecutionEvent() { + producerId_ = ""; + phase_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowExecutionEvent( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 5; + outputResult_ = s; + break; + } + case 50: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 6) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 6; + 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.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(5), + ERROR(6), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 5: return OUTPUT_URI; + case 6: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + *
+     * Workflow execution id
+     * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the workflow.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 5; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 6; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); + } + if (outputResultCase_ == 6) { + output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (outputResultCase_ == 5) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + 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.event.Event.WorkflowExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; + + boolean result = true; + result = result && (hasExecutionId() == other.hasExecutionId()); + if (hasExecutionId()) { + result = result && getExecutionId() + .equals(other.getExecutionId()); + } + result = result && getProducerId() + .equals(other.getProducerId()); + result = result && phase_ == other.phase_; + result = result && (hasOccurredAt() == other.hasOccurredAt()); + if (hasOccurredAt()) { + result = result && getOccurredAt() + .equals(other.getOccurredAt()); + } + result = result && getOutputResultCase().equals( + other.getOutputResultCase()); + if (!result) return false; + switch (outputResultCase_) { + case 5: + result = result && getOutputUri() + .equals(other.getOutputUri()); + break; + case 6: + result = result && getError() + .equals(other.getError()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + switch (outputResultCase_) { + case 5: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 6: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent 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.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.WorkflowExecutionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) + flyteidl.event.Event.WorkflowExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + } + + public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); + } + + public flyteidl.event.Event.WorkflowExecutionEvent build() { + flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { + flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + if (outputResultCase_ == 5) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 6) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.WorkflowExecutionEvent) { + return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { + if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 5; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.WorkflowExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + *
+       * Workflow execution id
+       * 
+ * + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the workflow.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 5) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 5) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 5) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 5) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 5; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 5; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public boolean hasError() { + return outputResultCase_ == 6; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 6) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 6) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 6; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 6) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 6)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 6; + onChanged();; + return errorBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.WorkflowExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); + } + + public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowExecutionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); + + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + java.lang.String getProducerId(); + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + int getPhaseValue(); + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + flyteidl.core.Execution.NodeExecution.Phase getPhase(); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + * string input_uri = 5; + */ + java.lang.String getInputUri(); + /** + * string input_uri = 5; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + java.lang.String getOutputUri(); + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + boolean hasWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); + + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + boolean hasParentTaskMetadata(); + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); + + public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); + + public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); + } + /** + * Protobuf type {@code flyteidl.event.NodeExecutionEvent} + */ + public static final class NodeExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) + NodeExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeExecutionEvent.newBuilder() to construct. + private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeExecutionEvent() { + producerId_ = ""; + phase_ = 0; + inputUri_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeExecutionEvent( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 6; + outputResult_ = s; + break; + } + case 58: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 7) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 7; + break; + } + case 66: { + flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; + if (targetMetadataCase_ == 8) { + subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); + } + targetMetadata_ = + input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + targetMetadata_ = subBuilder.buildPartial(); + } + targetMetadataCase_ = 8; + break; + } + case 74: { + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; + if (parentTaskMetadata_ != null) { + subBuilder = parentTaskMetadata_.toBuilder(); + } + parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentTaskMetadata_); + parentTaskMetadata_ = subBuilder.buildPartial(); + } + + 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.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(6), + ERROR(7), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 6: return OUTPUT_URI; + case 7: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public enum TargetMetadataCase + implements com.google.protobuf.Internal.EnumLite { + WORKFLOW_NODE_METADATA(8), + TARGETMETADATA_NOT_SET(0); + private final int value; + private TargetMetadataCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static TargetMetadataCase forNumber(int value) { + switch (value) { + case 8: return WORKFLOW_NODE_METADATA; + case 0: return TARGETMETADATA_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + /** + *
+     * Unique identifier for this node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object producerId_; + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * the id of the originator (Propeller) of the event
+     * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHASE_FIELD_NUMBER = 3; + private int phase_; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the node.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 5; + private volatile java.lang.Object inputUri_; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 6; + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URL to the output of the execution, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 7; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadata_ != null; + } + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + /** + *
+     * Specifies which task (if any) launched this node.
+     * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + return getParentTaskMetadata(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(3, phase_); + } + if (occurredAt_ != null) { + output.writeMessage(4, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputUri_); + } + if (outputResultCase_ == 6) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); + } + if (outputResultCase_ == 7) { + output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + output.writeMessage(9, getParentTaskMetadata()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); + } + if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, phase_); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputUri_); + } + if (outputResultCase_ == 6) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); + } + if (outputResultCase_ == 7) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (targetMetadataCase_ == 8) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); + } + if (parentTaskMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getParentTaskMetadata()); + } + 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.event.Event.NodeExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && getProducerId() + .equals(other.getProducerId()); + result = result && phase_ == other.phase_; + result = result && (hasOccurredAt() == other.hasOccurredAt()); + if (hasOccurredAt()) { + result = result && getOccurredAt() + .equals(other.getOccurredAt()); + } + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && (hasParentTaskMetadata() == other.hasParentTaskMetadata()); + if (hasParentTaskMetadata()) { + result = result && getParentTaskMetadata() + .equals(other.getParentTaskMetadata()); + } + result = result && getOutputResultCase().equals( + other.getOutputResultCase()); + if (!result) return false; + switch (outputResultCase_) { + case 6: + result = result && getOutputUri() + .equals(other.getOutputUri()); + break; + case 7: + result = result && getError() + .equals(other.getError()); + break; + case 0: + default: + } + result = result && getTargetMetadataCase().equals( + other.getTargetMetadataCase()); + if (!result) return false; + switch (targetMetadataCase_) { + case 8: + result = result && getWorkflowNodeMetadata() + .equals(other.getWorkflowNodeMetadata()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasParentTaskMetadata()) { + hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getParentTaskMetadata().hashCode(); + } + switch (outputResultCase_) { + case 6: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 7: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + switch (targetMetadataCase_) { + case 8: + hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent 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.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.NodeExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.NodeExecutionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.event.NodeExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) + flyteidl.event.Event.NodeExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.NodeExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + producerId_ = ""; + + phase_ = 0; + + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + inputUri_ = ""; + + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + outputResultCase_ = 0; + outputResult_ = null; + targetMetadataCase_ = 0; + targetMetadata_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + } + + public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); + } + + public flyteidl.event.Event.NodeExecutionEvent build() { + flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.event.Event.NodeExecutionEvent buildPartial() { + flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + result.producerId_ = producerId_; + result.phase_ = phase_; + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (outputResultCase_ == 6) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 7) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (targetMetadataCase_ == 8) { + if (workflowNodeMetadataBuilder_ == null) { + result.targetMetadata_ = targetMetadata_; + } else { + result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); + } + } + if (parentTaskMetadataBuilder_ == null) { + result.parentTaskMetadata_ = parentTaskMetadata_; + } else { + result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); + } + result.outputResultCase_ = outputResultCase_; + result.targetMetadataCase_ = targetMetadataCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.NodeExecutionEvent) { + return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { + if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasParentTaskMetadata()) { + mergeParentTaskMetadata(other.getParentTaskMetadata()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 6; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + switch (other.getTargetMetadataCase()) { + case WORKFLOW_NODE_METADATA: { + mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); + break; + } + case TARGETMETADATA_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.NodeExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int targetMetadataCase_ = 0; + private java.lang.Object targetMetadata_; + public TargetMetadataCase + getTargetMetadataCase() { + return TargetMetadataCase.forNumber( + targetMetadataCase_); + } + + public Builder clearTargetMetadata() { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + return this; + } + + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + *
+       * Unique identifier for this node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * the id of the originator (Propeller) of the event
+       * 
+ * + * string producer_id = 2; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public flyteidl.core.Execution.NodeExecution.Phase getPhase() { + flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.NodeExecution.Phase phase = 3; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp occurredAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the node.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + * string input_uri = 5; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string input_uri = 5; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string input_uri = 5; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + * string input_uri = 5; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 6) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 6) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 6) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 6) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URL to the output of the execution, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 6; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 6; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public boolean hasError() { + return outputResultCase_ == 7; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 7) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 7) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 7; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 7) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 7) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 7)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 7; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public boolean hasWorkflowNodeMetadata() { + return targetMetadataCase_ == 8; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } else { + if (targetMetadataCase_ == 8) { + return workflowNodeMetadataBuilder_.getMessage(); + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetMetadata_ = value; + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder setWorkflowNodeMetadata( + flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { + if (workflowNodeMetadataBuilder_ == null) { + targetMetadata_ = builderForValue.build(); + onChanged(); + } else { + workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8 && + targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) + .mergeFrom(value).buildPartial(); + } else { + targetMetadata_ = value; + } + onChanged(); + } else { + if (targetMetadataCase_ == 8) { + workflowNodeMetadataBuilder_.mergeFrom(value); + } + workflowNodeMetadataBuilder_.setMessage(value); + } + targetMetadataCase_ = 8; + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public Builder clearWorkflowNodeMetadata() { + if (workflowNodeMetadataBuilder_ == null) { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + onChanged(); + } + } else { + if (targetMetadataCase_ == 8) { + targetMetadataCase_ = 0; + targetMetadata_ = null; + } + workflowNodeMetadataBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { + return getWorkflowNodeMetadataFieldBuilder().getBuilder(); + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { + if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { + return workflowNodeMetadataBuilder_.getMessageOrBuilder(); + } else { + if (targetMetadataCase_ == 8) { + return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; + } + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + } + /** + * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> + getWorkflowNodeMetadataFieldBuilder() { + if (workflowNodeMetadataBuilder_ == null) { + if (!(targetMetadataCase_ == 8)) { + targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( + (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, + getParentForChildren(), + isClean()); + targetMetadata_ = null; + } + targetMetadataCase_ = 8; + onChanged();; + return workflowNodeMetadataBuilder_; + } + + private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public boolean hasParentTaskMetadata() { + return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } else { + return parentTaskMetadataBuilder_.getMessage(); + } + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentTaskMetadata_ = value; + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder setParentTaskMetadata( + flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = builderForValue.build(); + onChanged(); + } else { + parentTaskMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { + if (parentTaskMetadataBuilder_ == null) { + if (parentTaskMetadata_ != null) { + parentTaskMetadata_ = + flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); + } else { + parentTaskMetadata_ = value; + } + onChanged(); + } else { + parentTaskMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public Builder clearParentTaskMetadata() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadata_ = null; + onChanged(); + } else { + parentTaskMetadata_ = null; + parentTaskMetadataBuilder_ = null; + } + + return this; + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { + + onChanged(); + return getParentTaskMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { + if (parentTaskMetadataBuilder_ != null) { + return parentTaskMetadataBuilder_.getMessageOrBuilder(); + } else { + return parentTaskMetadata_ == null ? + flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; + } + } + /** + *
+       * Specifies which task (if any) launched this node.
+       * 
+ * + * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> + getParentTaskMetadataFieldBuilder() { + if (parentTaskMetadataBuilder_ == null) { + parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( + getParentTaskMetadata(), + getParentForChildren(), + isClean()); + parentTaskMetadata_ = null; + } + return parentTaskMetadataBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.NodeExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); + } + + public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public NodeExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeExecutionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowNodeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + boolean hasExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); + } + /** + *
+   * For Workflow Nodes we need to send information about the workflow that's launched
+   * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class WorkflowNodeMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) + WorkflowNodeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowNodeMetadata.newBuilder() to construct. + private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowNodeMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowNodeMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (executionId_ != null) { + subBuilder = executionId_.toBuilder(); + } + executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionId_); + executionId_ = subBuilder.buildPartial(); + } + + 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.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + return getExecutionId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (executionId_ != null) { + output.writeMessage(1, getExecutionId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (executionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getExecutionId()); + } + 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.event.Event.WorkflowNodeMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; + + boolean result = true; + result = result && (hasExecutionId() == other.hasExecutionId()); + if (hasExecutionId()) { + result = result && getExecutionId() + .equals(other.getExecutionId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExecutionId()) { + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata 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.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.WorkflowNodeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * For Workflow Nodes we need to send information about the workflow that's launched
+     * 
+ * + * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) + flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.WorkflowNodeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (executionIdBuilder_ == null) { + executionId_ = null; + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + } + + public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); + } + + public flyteidl.event.Event.WorkflowNodeMetadata build() { + flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { + flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); + if (executionIdBuilder_ == null) { + result.executionId_ = executionId_; + } else { + result.executionId_ = executionIdBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.WorkflowNodeMetadata) { + return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { + if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; + if (other.hasExecutionId()) { + mergeExecutionId(other.getExecutionId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.WorkflowNodeMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public boolean hasExecutionId() { + return executionIdBuilder_ != null || executionId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { + if (executionIdBuilder_ == null) { + return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } else { + return executionIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionId_ = value; + onChanged(); + } else { + executionIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder setExecutionId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (executionIdBuilder_ == null) { + executionId_ = builderForValue.build(); + onChanged(); + } else { + executionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (executionIdBuilder_ == null) { + if (executionId_ != null) { + executionId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); + } else { + executionId_ = value; + } + onChanged(); + } else { + executionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public Builder clearExecutionId() { + if (executionIdBuilder_ == null) { + executionId_ = null; + onChanged(); + } else { + executionId_ = null; + executionIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { + + onChanged(); + return getExecutionIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { + if (executionIdBuilder_ != null) { + return executionIdBuilder_.getMessageOrBuilder(); + } else { + return executionId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getExecutionIdFieldBuilder() { + if (executionIdBuilder_ == null) { + executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getExecutionId(), + getParentForChildren(), + isClean()); + executionId_ = null; + } + return executionIdBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.WorkflowNodeMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); + } + + public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public WorkflowNodeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowNodeMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ParentTaskExecutionMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); + } + /** + * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class ParentTaskExecutionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) + ParentTaskExecutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParentTaskExecutionMetadata.newBuilder() to construct. + private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ParentTaskExecutionMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ParentTaskExecutionMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + 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.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + 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.event.Event.ParentTaskExecutionMetadata)) { + return super.equals(obj); + } + flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) obj; + + boolean result = true; + result = result && (hasId() == other.hasId()); + if (hasId()) { + result = result && getId() + .equals(other.getId()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata 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.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.ParentTaskExecutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) + flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); + } + + // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + } + + public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); + } + + public flyteidl.event.Event.ParentTaskExecutionMetadata build() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { + flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.ParentTaskExecutionMetadata) { + return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { + if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.ParentTaskExecutionMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.TaskExecutionIdentifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.ParentTaskExecutionMetadata) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); + } + + public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ParentTaskExecutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ParentTaskExecutionMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskExecutionEventOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + boolean hasTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); + + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + boolean hasParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); + + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + int getRetryAttempt(); + + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + int getPhaseValue(); + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + flyteidl.core.Execution.TaskExecution.Phase getPhase(); + + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + java.lang.String getProducerId(); + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + com.google.protobuf.ByteString + getProducerIdBytes(); + + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLog getLogs(int index); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + int getLogsCount(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + java.util.List + getLogsOrBuilderList(); + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index); + + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + boolean hasOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.Timestamp getOccurredAt(); + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); + + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + java.lang.String getInputUri(); + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + com.google.protobuf.ByteString + getInputUriBytes(); + + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + java.lang.String getOutputUri(); + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + com.google.protobuf.ByteString + getOutputUriBytes(); + + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + boolean hasError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionError getError(); + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); + + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + boolean hasCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.Struct getCustomInfo(); + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); + + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + int getPhaseVersion(); + + public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); + } + /** + *
+   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+   * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class TaskExecutionEvent extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) + TaskExecutionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use TaskExecutionEvent.newBuilder() to construct. + private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TaskExecutionEvent() { + retryAttempt_ = 0; + phase_ = 0; + producerId_ = ""; + logs_ = java.util.Collections.emptyList(); + inputUri_ = ""; + phaseVersion_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TaskExecutionEvent( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (taskId_ != null) { + subBuilder = taskId_.toBuilder(); + } + taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(taskId_); + taskId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; + if (parentNodeExecutionId_ != null) { + subBuilder = parentNodeExecutionId_.toBuilder(); + } + parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parentNodeExecutionId_); + parentNodeExecutionId_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + + retryAttempt_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + producerId_ = s; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + logs_.add( + input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (occurredAt_ != null) { + subBuilder = occurredAt_.toBuilder(); + } + occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(occurredAt_); + occurredAt_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + outputResultCase_ = 9; + outputResult_ = s; + break; + } + case 82: { + flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; + if (outputResultCase_ == 10) { + subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); + } + outputResult_ = + input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); + outputResult_ = subBuilder.buildPartial(); + } + outputResultCase_ = 10; + break; + } + case 90: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (customInfo_ != null) { + subBuilder = customInfo_.toBuilder(); + } + customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customInfo_); + customInfo_ = subBuilder.buildPartial(); + } + + break; + } + case 96: { + + phaseVersion_ = input.readUInt32(); + 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_ & 0x00000020) == 0x00000020)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + private int bitField0_; + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public enum OutputResultCase + implements com.google.protobuf.Internal.EnumLite { + OUTPUT_URI(9), + ERROR(10), + OUTPUTRESULT_NOT_SET(0); + private final int value; + private OutputResultCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputResultCase valueOf(int value) { + return forNumber(value); + } + + public static OutputResultCase forNumber(int value) { + switch (value) { + case 9: return OUTPUT_URI; + case 10: return ERROR; + case 0: return OUTPUTRESULT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier taskId_; + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskId_ != null; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + /** + *
+     * ID of the task. In combination with the retryAttempt this will indicate
+     * the task execution uniquely for a given parent node execution.
+     * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + return getTaskId(); + } + + public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionId_ != null; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + /** + *
+     * A task execution is always kicked off by a node execution, the event consumer
+     * will use the parent_id to relate the task to it's parent node execution
+     * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + return getParentNodeExecutionId(); + } + + public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; + private int retryAttempt_; + /** + *
+     * retry attempt number for this task, ie., 2 for the second attempt
+     * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + + public static final int PHASE_FIELD_NUMBER = 4; + private int phase_; + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+     * Phase associated with the event
+     * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + + public static final int PRODUCER_ID_FIELD_NUMBER = 5; + private volatile java.lang.Object producerId_; + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + 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(); + producerId_ = s; + return s; + } + } + /** + *
+     * id of the process that sent this event, mainly for trace debugging
+     * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGS_FIELD_NUMBER = 6; + private java.util.List logs_; + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + return logs_.size(); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + return logs_.get(index); + } + /** + *
+     * log information for the task execution
+     * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int OCCURRED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp occurredAt_; + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAt_ != null; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + /** + *
+     * This timestamp represents when the original event occurred, it is generated
+     * by the executor of the task.
+     * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + return getOccurredAt(); + } + + public static final int INPUT_URI_FIELD_NUMBER = 8; + private volatile java.lang.Object inputUri_; + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + 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(); + inputUri_ = s; + return s; + } + } + /** + *
+     * URI of the input file, it encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_URI_FIELD_NUMBER = 9; + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + 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(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } + } + /** + *
+     * URI to the output of the execution, it will be in a format that encodes all the information
+     * including Cloud source provider. ie., s3://...
+     * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 10; + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + /** + *
+     * Error information for the execution
+     * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + + public static final int CUSTOM_INFO_FIELD_NUMBER = 11; + private com.google.protobuf.Struct customInfo_; + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfo_ != null; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + /** + *
+     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+     * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + return getCustomInfo(); + } + + public static final int PHASE_VERSION_FIELD_NUMBER = 12; + private int phaseVersion_; + /** + *
+     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+     * that should be recorded regardless of the lack of phase change.
+     * The version field should be incremented when metadata changes across the duration of an individual phase.
+     * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (taskId_ != null) { + output.writeMessage(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + output.writeMessage(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + output.writeUInt32(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(6, logs_.get(i)); + } + if (occurredAt_ != null) { + output.writeMessage(7, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputUri_); + } + if (outputResultCase_ == 9) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); + } + if (outputResultCase_ == 10) { + output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + output.writeMessage(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + output.writeUInt32(12, phaseVersion_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (taskId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTaskId()); + } + if (parentNodeExecutionId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParentNodeExecutionId()); + } + if (retryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryAttempt_); + } + if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, phase_); + } + if (!getProducerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); + } + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, logs_.get(i)); + } + if (occurredAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOccurredAt()); + } + if (!getInputUriBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputUri_); + } + if (outputResultCase_ == 9) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); + } + if (outputResultCase_ == 10) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); + } + if (customInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getCustomInfo()); + } + if (phaseVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, phaseVersion_); + } + 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.event.Event.TaskExecutionEvent)) { + return super.equals(obj); + } + flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; + + boolean result = true; + result = result && (hasTaskId() == other.hasTaskId()); + if (hasTaskId()) { + result = result && getTaskId() + .equals(other.getTaskId()); + } + result = result && (hasParentNodeExecutionId() == other.hasParentNodeExecutionId()); + if (hasParentNodeExecutionId()) { + result = result && getParentNodeExecutionId() + .equals(other.getParentNodeExecutionId()); + } + result = result && (getRetryAttempt() + == other.getRetryAttempt()); + result = result && phase_ == other.phase_; + result = result && getProducerId() + .equals(other.getProducerId()); + result = result && getLogsList() + .equals(other.getLogsList()); + result = result && (hasOccurredAt() == other.hasOccurredAt()); + if (hasOccurredAt()) { + result = result && getOccurredAt() + .equals(other.getOccurredAt()); + } + result = result && getInputUri() + .equals(other.getInputUri()); + result = result && (hasCustomInfo() == other.hasCustomInfo()); + if (hasCustomInfo()) { + result = result && getCustomInfo() + .equals(other.getCustomInfo()); + } + result = result && (getPhaseVersion() + == other.getPhaseVersion()); + result = result && getOutputResultCase().equals( + other.getOutputResultCase()); + if (!result) return false; + switch (outputResultCase_) { + case 9: + result = result && getOutputUri() + .equals(other.getOutputUri()); + break; + case 10: + result = result && getError() + .equals(other.getError()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTaskId()) { + hash = (37 * hash) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + } + if (hasParentNodeExecutionId()) { + hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getParentNodeExecutionId().hashCode(); + } + hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getRetryAttempt(); + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; + hash = (53 * hash) + getProducerId().hashCode(); + if (getLogsCount() > 0) { + hash = (37 * hash) + LOGS_FIELD_NUMBER; + hash = (53 * hash) + getLogsList().hashCode(); + } + if (hasOccurredAt()) { + hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; + hash = (53 * hash) + getOccurredAt().hashCode(); + } + hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputUri().hashCode(); + if (hasCustomInfo()) { + hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCustomInfo().hashCode(); + } + hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getPhaseVersion(); + switch (outputResultCase_) { + case 9: + hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputUri().hashCode(); + break; + case 10: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent 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.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.event.Event.TaskExecutionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.event.Event.TaskExecutionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
+     * 
+ * + * Protobuf type {@code flyteidl.event.TaskExecutionEvent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) + flyteidl.event.Event.TaskExecutionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); + } + + // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (taskIdBuilder_ == null) { + taskId_ = null; + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + retryAttempt_ = 0; + + phase_ = 0; + + producerId_ = ""; + + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + logsBuilder_.clear(); + } + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + inputUri_ = ""; + + if (customInfoBuilder_ == null) { + customInfo_ = null; + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + phaseVersion_ = 0; + + outputResultCase_ = 0; + outputResult_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + } + + public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); + } + + public flyteidl.event.Event.TaskExecutionEvent build() { + flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.event.Event.TaskExecutionEvent buildPartial() { + flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (taskIdBuilder_ == null) { + result.taskId_ = taskId_; + } else { + result.taskId_ = taskIdBuilder_.build(); + } + if (parentNodeExecutionIdBuilder_ == null) { + result.parentNodeExecutionId_ = parentNodeExecutionId_; + } else { + result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); + } + result.retryAttempt_ = retryAttempt_; + result.phase_ = phase_; + result.producerId_ = producerId_; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (occurredAtBuilder_ == null) { + result.occurredAt_ = occurredAt_; + } else { + result.occurredAt_ = occurredAtBuilder_.build(); + } + result.inputUri_ = inputUri_; + if (outputResultCase_ == 9) { + result.outputResult_ = outputResult_; + } + if (outputResultCase_ == 10) { + if (errorBuilder_ == null) { + result.outputResult_ = outputResult_; + } else { + result.outputResult_ = errorBuilder_.build(); + } + } + if (customInfoBuilder_ == null) { + result.customInfo_ = customInfo_; + } else { + result.customInfo_ = customInfoBuilder_.build(); + } + result.phaseVersion_ = phaseVersion_; + result.bitField0_ = to_bitField0_; + result.outputResultCase_ = outputResultCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.event.Event.TaskExecutionEvent) { + return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { + if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; + if (other.hasTaskId()) { + mergeTaskId(other.getTaskId()); + } + if (other.hasParentNodeExecutionId()) { + mergeParentNodeExecutionId(other.getParentNodeExecutionId()); + } + if (other.getRetryAttempt() != 0) { + setRetryAttempt(other.getRetryAttempt()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getProducerId().isEmpty()) { + producerId_ = other.producerId_; + onChanged(); + } + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000020); + logsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasOccurredAt()) { + mergeOccurredAt(other.getOccurredAt()); + } + if (!other.getInputUri().isEmpty()) { + inputUri_ = other.inputUri_; + onChanged(); + } + if (other.hasCustomInfo()) { + mergeCustomInfo(other.getCustomInfo()); + } + if (other.getPhaseVersion() != 0) { + setPhaseVersion(other.getPhaseVersion()); + } + switch (other.getOutputResultCase()) { + case OUTPUT_URI: { + outputResultCase_ = 9; + outputResult_ = other.outputResult_; + onChanged(); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case OUTPUTRESULT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.event.Event.TaskExecutionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int outputResultCase_ = 0; + private java.lang.Object outputResult_; + public OutputResultCase + getOutputResultCase() { + return OutputResultCase.forNumber( + outputResultCase_); + } + + public Builder clearOutputResult() { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private flyteidl.core.IdentifierOuterClass.Identifier taskId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public boolean hasTaskId() { + return taskIdBuilder_ != null || taskId_ != null; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { + if (taskIdBuilder_ == null) { + return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } else { + return taskIdBuilder_.getMessage(); + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + taskId_ = value; + onChanged(); + } else { + taskIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder setTaskId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (taskIdBuilder_ == null) { + taskId_ = builderForValue.build(); + onChanged(); + } else { + taskIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (taskIdBuilder_ == null) { + if (taskId_ != null) { + taskId_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); + } else { + taskId_ = value; + } + onChanged(); + } else { + taskIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public Builder clearTaskId() { + if (taskIdBuilder_ == null) { + taskId_ = null; + onChanged(); + } else { + taskId_ = null; + taskIdBuilder_ = null; + } + + return this; + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { + + onChanged(); + return getTaskIdFieldBuilder().getBuilder(); + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { + if (taskIdBuilder_ != null) { + return taskIdBuilder_.getMessageOrBuilder(); + } else { + return taskId_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; + } + } + /** + *
+       * ID of the task. In combination with the retryAttempt this will indicate
+       * the task execution uniquely for a given parent node execution.
+       * 
+ * + * .flyteidl.core.Identifier task_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getTaskIdFieldBuilder() { + if (taskIdBuilder_ == null) { + taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getTaskId(), + getParentForChildren(), + isClean()); + taskId_ = null; + } + return taskIdBuilder_; + } + + private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public boolean hasParentNodeExecutionId() { + return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } else { + return parentNodeExecutionIdBuilder_.getMessage(); + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parentNodeExecutionId_ = value; + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder setParentNodeExecutionId( + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = builderForValue.build(); + onChanged(); + } else { + parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { + if (parentNodeExecutionIdBuilder_ == null) { + if (parentNodeExecutionId_ != null) { + parentNodeExecutionId_ = + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); + } else { + parentNodeExecutionId_ = value; + } + onChanged(); + } else { + parentNodeExecutionIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public Builder clearParentNodeExecutionId() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionId_ = null; + onChanged(); + } else { + parentNodeExecutionId_ = null; + parentNodeExecutionIdBuilder_ = null; + } + + return this; + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { + + onChanged(); + return getParentNodeExecutionIdFieldBuilder().getBuilder(); + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { + if (parentNodeExecutionIdBuilder_ != null) { + return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); + } else { + return parentNodeExecutionId_ == null ? + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; + } + } + /** + *
+       * A task execution is always kicked off by a node execution, the event consumer
+       * will use the parent_id to relate the task to it's parent node execution
+       * 
+ * + * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> + getParentNodeExecutionIdFieldBuilder() { + if (parentNodeExecutionIdBuilder_ == null) { + parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( + getParentNodeExecutionId(), + getParentForChildren(), + isClean()); + parentNodeExecutionId_ = null; + } + return parentNodeExecutionIdBuilder_; + } + + private int retryAttempt_ ; + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public int getRetryAttempt() { + return retryAttempt_; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder setRetryAttempt(int value) { + + retryAttempt_ = value; + onChanged(); + return this; + } + /** + *
+       * retry attempt number for this task, ie., 2 for the second attempt
+       * 
+ * + * uint32 retry_attempt = 3; + */ + public Builder clearRetryAttempt() { + + retryAttempt_ = 0; + onChanged(); + return this; + } + + private int phase_ = 0; + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public int getPhaseValue() { + return phase_; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public flyteidl.core.Execution.TaskExecution.Phase getPhase() { + flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * Phase associated with the event
+       * 
+ * + * .flyteidl.core.TaskExecution.Phase phase = 4; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object producerId_ = ""; + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public java.lang.String getProducerId() { + java.lang.Object ref = producerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + producerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public com.google.protobuf.ByteString + getProducerIdBytes() { + java.lang.Object ref = producerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + producerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + producerId_ = value; + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder clearProducerId() { + + producerId_ = getDefaultInstance().getProducerId(); + onChanged(); + return this; + } + /** + *
+       * id of the process that sent this event, mainly for trace debugging
+       * 
+ * + * string producer_id = 5; + */ + public Builder setProducerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + producerId_ = value; + onChanged(); + return this; + } + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; + + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder setLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs(flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addLogs( + int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder addAllLogs( + java.lang.Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); + } + /** + *
+       * log information for the task execution
+       * 
+ * + * repeated .flyteidl.core.TaskLog logs = 6; + */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( + logs_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private com.google.protobuf.Timestamp occurredAt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public boolean hasOccurredAt() { + return occurredAtBuilder_ != null || occurredAt_ != null; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp getOccurredAt() { + if (occurredAtBuilder_ == null) { + return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } else { + return occurredAtBuilder_.getMessage(); + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + occurredAt_ = value; + onChanged(); + } else { + occurredAtBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder setOccurredAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (occurredAtBuilder_ == null) { + occurredAt_ = builderForValue.build(); + onChanged(); + } else { + occurredAtBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { + if (occurredAtBuilder_ == null) { + if (occurredAt_ != null) { + occurredAt_ = + com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); + } else { + occurredAt_ = value; + } + onChanged(); + } else { + occurredAtBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public Builder clearOccurredAt() { + if (occurredAtBuilder_ == null) { + occurredAt_ = null; + onChanged(); + } else { + occurredAt_ = null; + occurredAtBuilder_ = null; + } + + return this; + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { + + onChanged(); + return getOccurredAtFieldBuilder().getBuilder(); + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { + if (occurredAtBuilder_ != null) { + return occurredAtBuilder_.getMessageOrBuilder(); + } else { + return occurredAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; + } + } + /** + *
+       * This timestamp represents when the original event occurred, it is generated
+       * by the executor of the task.
+       * 
+ * + * .google.protobuf.Timestamp occurred_at = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getOccurredAtFieldBuilder() { + if (occurredAtBuilder_ == null) { + occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getOccurredAt(), + getParentForChildren(), + isClean()); + occurredAt_ = null; + } + return occurredAtBuilder_; + } + + private java.lang.Object inputUri_ = ""; + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public java.lang.String getInputUri() { + java.lang.Object ref = inputUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public com.google.protobuf.ByteString + getInputUriBytes() { + java.lang.Object ref = inputUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + inputUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + inputUri_ = value; + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder clearInputUri() { + + inputUri_ = getDefaultInstance().getInputUri(); + onChanged(); + return this; + } + /** + *
+       * URI of the input file, it encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string input_uri = 8; + */ + public Builder setInputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + inputUri_ = value; + onChanged(); + return this; + } + + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public java.lang.String getOutputUri() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (outputResultCase_ == 9) { + outputResult_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public com.google.protobuf.ByteString + getOutputUriBytes() { + java.lang.Object ref = ""; + if (outputResultCase_ == 9) { + ref = outputResult_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (outputResultCase_ == 9) { + outputResult_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUri( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder clearOutputUri() { + if (outputResultCase_ == 9) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + return this; + } + /** + *
+       * URI to the output of the execution, it will be in a format that encodes all the information
+       * including Cloud source provider. ie., s3://...
+       * 
+ * + * string output_uri = 9; + */ + public Builder setOutputUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputResultCase_ = 9; + outputResult_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public boolean hasError() { + return outputResultCase_ == 10; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError getError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } else { + if (outputResultCase_ == 10) { + return errorBuilder_.getMessage(); + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputResult_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder setError( + flyteidl.core.Execution.ExecutionError.Builder builderForValue) { + if (errorBuilder_ == null) { + outputResult_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10 && + outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { + outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) + .mergeFrom(value).buildPartial(); + } else { + outputResult_ = value; + } + onChanged(); + } else { + if (outputResultCase_ == 10) { + errorBuilder_.mergeFrom(value); + } + errorBuilder_.setMessage(value); + } + outputResultCase_ = 10; + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + onChanged(); + } + } else { + if (outputResultCase_ == 10) { + outputResultCase_ = 0; + outputResult_ = null; + } + errorBuilder_.clear(); + } + return this; + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { + return getErrorFieldBuilder().getBuilder(); + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { + if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (outputResultCase_ == 10) { + return (flyteidl.core.Execution.ExecutionError) outputResult_; + } + return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + } + /** + *
+       * Error information for the execution
+       * 
+ * + * .flyteidl.core.ExecutionError error = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> + getErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(outputResultCase_ == 10)) { + outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); + } + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( + (flyteidl.core.Execution.ExecutionError) outputResult_, + getParentForChildren(), + isClean()); + outputResult_ = null; + } + outputResultCase_ = 10; + onChanged();; + return errorBuilder_; + } + + private com.google.protobuf.Struct customInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public boolean hasCustomInfo() { + return customInfoBuilder_ != null || customInfo_ != null; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct getCustomInfo() { + if (customInfoBuilder_ == null) { + return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } else { + return customInfoBuilder_.getMessage(); + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customInfo_ = value; + onChanged(); + } else { + customInfoBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder setCustomInfo( + com.google.protobuf.Struct.Builder builderForValue) { + if (customInfoBuilder_ == null) { + customInfo_ = builderForValue.build(); + onChanged(); + } else { + customInfoBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder mergeCustomInfo(com.google.protobuf.Struct value) { + if (customInfoBuilder_ == null) { + if (customInfo_ != null) { + customInfo_ = + com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); + } else { + customInfo_ = value; + } + onChanged(); + } else { + customInfoBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public Builder clearCustomInfo() { + if (customInfoBuilder_ == null) { + customInfo_ = null; + onChanged(); + } else { + customInfo_ = null; + customInfoBuilder_ = null; + } + + return this; + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { + + onChanged(); + return getCustomInfoFieldBuilder().getBuilder(); + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { + if (customInfoBuilder_ != null) { + return customInfoBuilder_.getMessageOrBuilder(); + } else { + return customInfo_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customInfo_; + } + } + /** + *
+       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
+       * 
+ * + * .google.protobuf.Struct custom_info = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomInfoFieldBuilder() { + if (customInfoBuilder_ == null) { + customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomInfo(), + getParentForChildren(), + isClean()); + customInfo_ = null; + } + return customInfoBuilder_; + } + + private int phaseVersion_ ; + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public int getPhaseVersion() { + return phaseVersion_; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder setPhaseVersion(int value) { + + phaseVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
+       * that should be recorded regardless of the lack of phase change.
+       * The version field should be incremented when metadata changes across the duration of an individual phase.
+       * 
+ * + * uint32 phase_version = 12; + */ + public Builder clearPhaseVersion() { + + phaseVersion_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.event.TaskExecutionEvent) + } + + // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); + } + + public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public TaskExecutionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TaskExecutionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_NodeExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_event_TaskExecutionEvent_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\032flyteidl/event/event.proto\022\016flyteidl.e" + + "vent\032\035flyteidl/core/execution.proto\032\036fly" + + "teidl/core/identifier.proto\032\037google/prot" + + "obuf/timestamp.proto\032\034google/protobuf/st" + + "ruct.proto\"\256\002\n\026WorkflowExecutionEvent\022@\n" + + "\014execution_id\030\001 \001(\0132*.flyteidl.core.Work" + + "flowExecutionIdentifier\022\023\n\013producer_id\030\002" + + " \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl.core.Work" + + "flowExecution.Phase\022/\n\013occurred_at\030\004 \001(\013" + + "2\032.google.protobuf.Timestamp\022\024\n\noutput_u" + + "ri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.flyteidl.cor" + + "e.ExecutionErrorH\000B\017\n\routput_result\"\321\003\n\022" + + "NodeExecutionEvent\0222\n\002id\030\001 \001(\0132&.flyteid" + + "l.core.NodeExecutionIdentifier\022\023\n\013produc" + + "er_id\030\002 \001(\t\0221\n\005phase\030\003 \001(\0162\".flyteidl.co" + + "re.NodeExecution.Phase\022/\n\013occurred_at\030\004 " + + "\001(\0132\032.google.protobuf.Timestamp\022\021\n\tinput" + + "_uri\030\005 \001(\t\022\024\n\noutput_uri\030\006 \001(\tH\000\022.\n\005erro" + + "r\030\007 \001(\0132\035.flyteidl.core.ExecutionErrorH\000" + + "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + + "idl.event.WorkflowNodeMetadataH\001\022I\n\024pare" + + "nt_task_metadata\030\t \001(\0132+.flyteidl.event." + + "ParentTaskExecutionMetadataB\017\n\routput_re" + + "sultB\021\n\017target_metadata\"X\n\024WorkflowNodeM" + + "etadata\022@\n\014execution_id\030\001 \001(\0132*.flyteidl" + + ".core.WorkflowExecutionIdentifier\"Q\n\033Par" + + "entTaskExecutionMetadata\0222\n\002id\030\001 \001(\0132&.f" + + "lyteidl.core.TaskExecutionIdentifier\"\357\003\n" + + "\022TaskExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.f" + + "lyteidl.core.Identifier\022H\n\030parent_node_e" + + "xecution_id\030\002 \001(\0132&.flyteidl.core.NodeEx" + + "ecutionIdentifier\022\025\n\rretry_attempt\030\003 \001(\r" + + "\0221\n\005phase\030\004 \001(\0162\".flyteidl.core.TaskExec" + + "ution.Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs" + + "\030\006 \003(\0132\026.flyteidl.core.TaskLog\022/\n\013occurr" + + "ed_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022" + + "\021\n\tinput_uri\030\010 \001(\t\022\024\n\noutput_uri\030\t \001(\tH\000" + + "\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Executio" + + "nErrorH\000\022,\n\013custom_info\030\013 \001(\0132\027.google.p" + + "rotobuf.Struct\022\025\n\rphase_version\030\014 \001(\rB\017\n" + + "\routput_resultB3Z1github.com/lyft/flytei" + + "dl/gen/pb-go/flyteidl/eventb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }, assigner); + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, + new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputResult", }); + internal_static_flyteidl_event_NodeExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_NodeExecutionEvent_descriptor, + new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "OutputUri", "Error", "WorkflowNodeMetadata", "ParentTaskMetadata", "OutputResult", "TargetMetadata", }); + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, + new java.lang.String[] { "ExecutionId", }); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_event_TaskExecutionEvent_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_event_TaskExecutionEvent_descriptor, + new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "OutputUri", "Error", "CustomInfo", "PhaseVersion", "OutputResult", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java new file mode 100644 index 0000000000..79a1d24036 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java @@ -0,0 +1,738 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/array_job.proto + +package flyteidl.plugins; + +public final class ArrayJobOuterClass { + private ArrayJobOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ArrayJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + long getParallelism(); + + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * +required.
+     * 
+ * + * int64 size = 2; + */ + long getSize(); + + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size.
+     * 
+ * + * int64 min_successes = 3; + */ + long getMinSuccesses(); + } + /** + *
+   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+   * will be executed concurrently.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class ArrayJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) + ArrayJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArrayJob.newBuilder() to construct. + private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ArrayJob() { + parallelism_ = 0L; + size_ = 0L; + minSuccesses_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ArrayJob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + parallelism_ = input.readInt64(); + break; + } + case 16: { + + size_ = input.readInt64(); + break; + } + case 24: { + + minSuccesses_ = input.readInt64(); + 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.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + public static final int PARALLELISM_FIELD_NUMBER = 1; + private long parallelism_; + /** + *
+     * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+     * running instances might be more. This has to be a positive number if assigned. Default value is size.
+     * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + + public static final int SIZE_FIELD_NUMBER = 2; + private long size_; + /** + *
+     * Defines the number of instances to launch at most. This number should match the size of the input if the job
+     * requires processing of all input data. This has to be a positive number.
+     * +required.
+     * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + + public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; + private long minSuccesses_; + /** + *
+     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+     * assigned. Default value is size.
+     * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (parallelism_ != 0L) { + output.writeInt64(1, parallelism_); + } + if (size_ != 0L) { + output.writeInt64(2, size_); + } + if (minSuccesses_ != 0L) { + output.writeInt64(3, minSuccesses_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parallelism_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, parallelism_); + } + if (size_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, size_); + } + if (minSuccesses_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, minSuccesses_); + } + 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.plugins.ArrayJobOuterClass.ArrayJob)) { + return super.equals(obj); + } + flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; + + boolean result = true; + result = result && (getParallelism() + == other.getParallelism()); + result = result && (getSize() + == other.getSize()); + result = result && (getMinSuccesses() + == other.getMinSuccesses()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getParallelism()); + hash = (37 * hash) + SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSize()); + hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMinSuccesses()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.ArrayJobOuterClass.ArrayJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
+     * will be executed concurrently.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.ArrayJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) + flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); + } + + // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + parallelism_ = 0L; + + size_ = 0L; + + minSuccesses_ = 0L; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; + } + + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); + } + + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); + result.parallelism_ = parallelism_; + result.size_ = size_; + result.minSuccesses_ = minSuccesses_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.ArrayJobOuterClass.ArrayJob) { + return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { + if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; + if (other.getParallelism() != 0L) { + setParallelism(other.getParallelism()); + } + if (other.getSize() != 0L) { + setSize(other.getSize()); + } + if (other.getMinSuccesses() != 0L) { + setMinSuccesses(other.getMinSuccesses()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long parallelism_ ; + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public long getParallelism() { + return parallelism_; + } + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder setParallelism(long value) { + + parallelism_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an
+       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
+       * running instances might be more. This has to be a positive number if assigned. Default value is size.
+       * 
+ * + * int64 parallelism = 1; + */ + public Builder clearParallelism() { + + parallelism_ = 0L; + onChanged(); + return this; + } + + private long size_ ; + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public long getSize() { + return size_; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public Builder setSize(long value) { + + size_ = value; + onChanged(); + return this; + } + /** + *
+       * Defines the number of instances to launch at most. This number should match the size of the input if the job
+       * requires processing of all input data. This has to be a positive number.
+       * +required.
+       * 
+ * + * int64 size = 2; + */ + public Builder clearSize() { + + size_ = 0L; + onChanged(); + return this; + } + + private long minSuccesses_ ; + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public long getMinSuccesses() { + return minSuccesses_; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder setMinSuccesses(long value) { + + minSuccesses_ = value; + onChanged(); + return this; + } + /** + *
+       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
+       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
+       * assigned. Default value is size.
+       * 
+ * + * int64 min_successes = 3; + */ + public Builder clearMinSuccesses() { + + minSuccesses_ = 0L; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.ArrayJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); + } + + public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ArrayJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArrayJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_ArrayJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n flyteidl/plugins/array_job.proto\022\020flyt" + + "eidl.plugins\"D\n\010ArrayJob\022\023\n\013parallelism\030" + + "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\025\n\rmin_successes\030\003 \001" + + "(\003B5Z3github.com/lyft/flyteidl/gen/pb-go" + + "/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_ArrayJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_ArrayJob_descriptor, + new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java b/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java new file mode 100644 index 0000000000..7ba17c9d5e --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java @@ -0,0 +1,2434 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/qubole.proto + +package flyteidl.plugins; + +public final class Qubole { + private Qubole() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface HiveQueryOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) + com.google.protobuf.MessageOrBuilder { + + /** + * string query = 1; + */ + java.lang.String getQuery(); + /** + * string query = 1; + */ + com.google.protobuf.ByteString + getQueryBytes(); + + /** + * uint32 timeout_sec = 2; + */ + int getTimeoutSec(); + + /** + * uint32 retryCount = 3; + */ + int getRetryCount(); + } + /** + *
+   * Defines a query to execute on a hive cluster.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class HiveQuery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) + HiveQueryOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQuery.newBuilder() to construct. + private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQuery() { + query_ = ""; + timeoutSec_ = 0; + retryCount_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQuery( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + query_ = s; + break; + } + case 16: { + + timeoutSec_ = input.readUInt32(); + break; + } + case 24: { + + retryCount_ = input.readUInt32(); + 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.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + public static final int QUERY_FIELD_NUMBER = 1; + private volatile java.lang.Object query_; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + 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(); + query_ = s; + return s; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; + private int timeoutSec_; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + + public static final int RETRYCOUNT_FIELD_NUMBER = 3; + private int retryCount_; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getQueryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); + } + if (timeoutSec_ != 0) { + output.writeUInt32(2, timeoutSec_); + } + if (retryCount_ != 0) { + output.writeUInt32(3, retryCount_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getQueryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); + } + if (timeoutSec_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, timeoutSec_); + } + if (retryCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, retryCount_); + } + 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.plugins.Qubole.HiveQuery)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; + + boolean result = true; + result = result && getQuery() + .equals(other.getQuery()); + result = result && (getTimeoutSec() + == other.getTimeoutSec()); + result = result && (getRetryCount() + == other.getRetryCount()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; + hash = (53 * hash) + getTimeoutSec(); + hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getRetryCount(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery 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.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Qubole.HiveQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a query to execute on a hive cluster.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQuery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) + flyteidl.plugins.Qubole.HiveQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQuery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + query_ = ""; + + timeoutSec_ = 0; + + retryCount_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; + } + + public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); + } + + public flyteidl.plugins.Qubole.HiveQuery build() { + flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.Qubole.HiveQuery buildPartial() { + flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); + result.query_ = query_; + result.timeoutSec_ = timeoutSec_; + result.retryCount_ = retryCount_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Qubole.HiveQuery) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { + if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + onChanged(); + } + if (other.getTimeoutSec() != 0) { + setTimeoutSec(other.getTimeoutSec()); + } + if (other.getRetryCount() != 0) { + setRetryCount(other.getRetryCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Qubole.HiveQuery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object query_ = ""; + /** + * string query = 1; + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string query = 1; + */ + public com.google.protobuf.ByteString + getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string query = 1; + */ + public Builder setQuery( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + query_ = value; + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder clearQuery() { + + query_ = getDefaultInstance().getQuery(); + onChanged(); + return this; + } + /** + * string query = 1; + */ + public Builder setQueryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + query_ = value; + onChanged(); + return this; + } + + private int timeoutSec_ ; + /** + * uint32 timeout_sec = 2; + */ + public int getTimeoutSec() { + return timeoutSec_; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder setTimeoutSec(int value) { + + timeoutSec_ = value; + onChanged(); + return this; + } + /** + * uint32 timeout_sec = 2; + */ + public Builder clearTimeoutSec() { + + timeoutSec_ = 0; + onChanged(); + return this; + } + + private int retryCount_ ; + /** + * uint32 retryCount = 3; + */ + public int getRetryCount() { + return retryCount_; + } + /** + * uint32 retryCount = 3; + */ + public Builder setRetryCount(int value) { + + retryCount_ = value; + onChanged(); + return this; + } + /** + * uint32 retryCount = 3; + */ + public Builder clearRetryCount() { + + retryCount_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.HiveQuery) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); + } + + public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HiveQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQuery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface HiveQueryCollectionOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQuery getQueries(int index); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + int getQueriesCount(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + java.util.List + getQueriesOrBuilderList(); + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index); + } + /** + *
+   * Defines a collection of hive queries.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class HiveQueryCollection extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) + HiveQueryCollectionOrBuilder { + private static final long serialVersionUID = 0L; + // Use HiveQueryCollection.newBuilder() to construct. + private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HiveQueryCollection() { + queries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HiveQueryCollection( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + queries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + queries_.add( + input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry)); + 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) == 0x00000001)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + public static final int QUERIES_FIELD_NUMBER = 2; + private java.util.List queries_; + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + return queries_; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + return queries_.size(); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + return queries_.get(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + return queries_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < queries_.size(); i++) { + output.writeMessage(2, queries_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < queries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, queries_.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.plugins.Qubole.HiveQueryCollection)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; + + boolean result = true; + result = result && getQueriesList() + .equals(other.getQueriesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getQueriesCount() > 0) { + hash = (37 * hash) + QUERIES_FIELD_NUMBER; + hash = (53 * hash) + getQueriesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection 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.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Qubole.HiveQueryCollection prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Defines a collection of hive queries.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) + flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQueriesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + queriesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + } + + public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); + } + + public flyteidl.plugins.Qubole.HiveQueryCollection build() { + flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { + flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); + int from_bitField0_ = bitField0_; + if (queriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + queries_ = java.util.Collections.unmodifiableList(queries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queries_ = queries_; + } else { + result.queries_ = queriesBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Qubole.HiveQueryCollection) { + return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { + if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; + if (queriesBuilder_ == null) { + if (!other.queries_.isEmpty()) { + if (queries_.isEmpty()) { + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueriesIsMutable(); + queries_.addAll(other.queries_); + } + onChanged(); + } + } else { + if (!other.queries_.isEmpty()) { + if (queriesBuilder_.isEmpty()) { + queriesBuilder_.dispose(); + queriesBuilder_ = null; + queries_ = other.queries_; + bitField0_ = (bitField0_ & ~0x00000001); + queriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getQueriesFieldBuilder() : null; + } else { + queriesBuilder_.addAllMessages(other.queries_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Qubole.HiveQueryCollection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List queries_ = + java.util.Collections.emptyList(); + private void ensureQueriesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + queries_ = new java.util.ArrayList(queries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; + + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List getQueriesList() { + if (queriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(queries_); + } else { + return queriesBuilder_.getMessageList(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public int getQueriesCount() { + if (queriesBuilder_ == null) { + return queries_.size(); + } else { + return queriesBuilder_.getCount(); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); + } else { + return queriesBuilder_.getMessage(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.set(index, value); + onChanged(); + } else { + queriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder setQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.set(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(value); + onChanged(); + } else { + queriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery value) { + if (queriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueriesIsMutable(); + queries_.add(index, value); + onChanged(); + } else { + queriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addQueries( + int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.add(index, builderForValue.build()); + onChanged(); + } else { + queriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder addAllQueries( + java.lang.Iterable values) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, queries_); + onChanged(); + } else { + queriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder clearQueries() { + if (queriesBuilder_ == null) { + queries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queriesBuilder_.clear(); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public Builder removeQueries(int index) { + if (queriesBuilder_ == null) { + ensureQueriesIsMutable(); + queries_.remove(index); + onChanged(); + } else { + queriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( + int index) { + return getQueriesFieldBuilder().getBuilder(index); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( + int index) { + if (queriesBuilder_ == null) { + return queries_.get(index); } else { + return queriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesOrBuilderList() { + if (queriesBuilder_ != null) { + return queriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queries_); + } + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { + return getQueriesFieldBuilder().addBuilder( + flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( + int index) { + return getQueriesFieldBuilder().addBuilder( + index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); + } + /** + * repeated .flyteidl.plugins.HiveQuery queries = 2; + */ + public java.util.List + getQueriesBuilderList() { + return getQueriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> + getQueriesFieldBuilder() { + if (queriesBuilder_ == null) { + queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( + queries_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + queries_ = null; + } + return queriesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.HiveQueryCollection) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); + } + + public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HiveQueryCollection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HiveQueryCollection(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QuboleHiveJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) + com.google.protobuf.MessageOrBuilder { + + /** + * string cluster_label = 1; + */ + java.lang.String getClusterLabel(); + /** + * string cluster_label = 1; + */ + com.google.protobuf.ByteString + getClusterLabelBytes(); + + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + boolean hasQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); + + /** + * repeated string tags = 3; + */ + java.util.List + getTagsList(); + /** + * repeated string tags = 3; + */ + int getTagsCount(); + /** + * repeated string tags = 3; + */ + java.lang.String getTags(int index); + /** + * repeated string tags = 3; + */ + com.google.protobuf.ByteString + getTagsBytes(int index); + } + /** + *
+   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+   * of a hive task's TaskTemplate
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class QuboleHiveJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) + QuboleHiveJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use QuboleHiveJob.newBuilder() to construct. + private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QuboleHiveJob() { + clusterLabel_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QuboleHiveJob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterLabel_ = s; + break; + } + case 18: { + flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; + if (queryCollection_ != null) { + subBuilder = queryCollection_.toBuilder(); + } + queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queryCollection_); + queryCollection_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + tags_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + tags_.add(s); + 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) == 0x00000004)) { + tags_ = tags_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + private int bitField0_; + public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; + private volatile java.lang.Object clusterLabel_; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + 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(); + clusterLabel_ = s; + return s; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public boolean hasQueryCollection() { + return queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + return getQueryCollection(); + } + + public static final int TAGS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList tags_; + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getClusterLabelBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); + } + if (queryCollection_ != null) { + output.writeMessage(2, getQueryCollection()); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getClusterLabelBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); + } + if (queryCollection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueryCollection()); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + 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.plugins.Qubole.QuboleHiveJob)) { + return super.equals(obj); + } + flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; + + boolean result = true; + result = result && getClusterLabel() + .equals(other.getClusterLabel()); + result = result && (hasQueryCollection() == other.hasQueryCollection()); + if (hasQueryCollection()) { + result = result && getQueryCollection() + .equals(other.getQueryCollection()); + } + result = result && getTagsList() + .equals(other.getTagsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getClusterLabel().hashCode(); + if (hasQueryCollection()) { + hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; + hash = (53 * hash) + getQueryCollection().hashCode(); + } + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob 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.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Qubole.QuboleHiveJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
+     * of a hive task's TaskTemplate
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) + flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); + } + + // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + clusterLabel_ = ""; + + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + } + + public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); + } + + public flyteidl.plugins.Qubole.QuboleHiveJob build() { + flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { + flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.clusterLabel_ = clusterLabel_; + if (queryCollectionBuilder_ == null) { + result.queryCollection_ = queryCollection_; + } else { + result.queryCollection_ = queryCollectionBuilder_.build(); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + tags_ = tags_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.tags_ = tags_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Qubole.QuboleHiveJob) { + return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { + if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; + if (!other.getClusterLabel().isEmpty()) { + clusterLabel_ = other.clusterLabel_; + onChanged(); + } + if (other.hasQueryCollection()) { + mergeQueryCollection(other.getQueryCollection()); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Qubole.QuboleHiveJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object clusterLabel_ = ""; + /** + * string cluster_label = 1; + */ + public java.lang.String getClusterLabel() { + java.lang.Object ref = clusterLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cluster_label = 1; + */ + public com.google.protobuf.ByteString + getClusterLabelBytes() { + java.lang.Object ref = clusterLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + clusterLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clusterLabel_ = value; + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder clearClusterLabel() { + + clusterLabel_ = getDefaultInstance().getClusterLabel(); + onChanged(); + return this; + } + /** + * string cluster_label = 1; + */ + public Builder setClusterLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clusterLabel_ = value; + onChanged(); + return this; + } + + private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public boolean hasQueryCollection() { + return queryCollectionBuilder_ != null || queryCollection_ != null; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { + if (queryCollectionBuilder_ == null) { + return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } else { + return queryCollectionBuilder_.getMessage(); + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryCollection_ = value; + onChanged(); + } else { + queryCollectionBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public Builder setQueryCollection( + flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { + if (queryCollectionBuilder_ == null) { + queryCollection_ = builderForValue.build(); + onChanged(); + } else { + queryCollectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { + if (queryCollectionBuilder_ == null) { + if (queryCollection_ != null) { + queryCollection_ = + flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); + } else { + queryCollection_ = value; + } + onChanged(); + } else { + queryCollectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public Builder clearQueryCollection() { + if (queryCollectionBuilder_ == null) { + queryCollection_ = null; + onChanged(); + } else { + queryCollection_ = null; + queryCollectionBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { + + onChanged(); + return getQueryCollectionFieldBuilder().getBuilder(); + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { + if (queryCollectionBuilder_ != null) { + return queryCollectionBuilder_.getMessageOrBuilder(); + } else { + return queryCollection_ == null ? + flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; + } + } + /** + * .flyteidl.plugins.HiveQueryCollection query_collection = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> + getQueryCollectionFieldBuilder() { + if (queryCollectionBuilder_ == null) { + queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( + getQueryCollection(), + getParentForChildren(), + isClean()); + queryCollection_ = null; + } + return queryCollectionBuilder_; + } + + private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * repeated string tags = 3; + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * repeated string tags = 3; + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * repeated string tags = 3; + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * repeated string tags = 3; + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addAllTags( + java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string tags = 3; + */ + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.QuboleHiveJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); + } + + public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public QuboleHiveJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuboleHiveJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQuery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035flyteidl/plugins/qubole.proto\022\020flyteid" + + "l.plugins\032\031flyteidl/core/tasks.proto\"C\n\t" + + "HiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n\013timeout_sec\030" + + "\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C\n\023HiveQueryCo" + + "llection\022,\n\007queries\030\002 \003(\0132\033.flyteidl.plu" + + "gins.HiveQuery\"u\n\rQuboleHiveJob\022\025\n\rclust" + + "er_label\030\001 \001(\t\022?\n\020query_collection\030\002 \001(\013" + + "2%.flyteidl.plugins.HiveQueryCollection\022" + + "\014\n\004tags\030\003 \003(\tB5Z3github.com/lyft/flyteid" + + "l/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Tasks.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_HiveQuery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQuery_descriptor, + new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, + new java.lang.String[] { "Queries", }); + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, + new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", }); + flyteidl.core.Tasks.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Sidecar.java b/flyteidl/gen/pb-java/flyteidl/plugins/Sidecar.java new file mode 100644 index 0000000000..8366dca8a6 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Sidecar.java @@ -0,0 +1,793 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/sidecar.proto + +package flyteidl.plugins; + +public final class Sidecar { + private Sidecar() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SidecarJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SidecarJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + boolean hasPodSpec(); + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + k8s.io.api.core.v1.Generated.PodSpec getPodSpec(); + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder(); + + /** + * string primary_container_name = 2; + */ + java.lang.String getPrimaryContainerName(); + /** + * string primary_container_name = 2; + */ + com.google.protobuf.ByteString + getPrimaryContainerNameBytes(); + } + /** + *
+   * A sidecar job brings up the desired pod_spec.
+   * The plugin executor is responsible for keeping the pod alive until the primary container terminates
+   * or the task itself times out.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SidecarJob} + */ + public static final class SidecarJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SidecarJob) + SidecarJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SidecarJob.newBuilder() to construct. + private SidecarJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SidecarJob() { + primaryContainerName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SidecarJob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + k8s.io.api.core.v1.Generated.PodSpec.Builder subBuilder = null; + if (podSpec_ != null) { + subBuilder = podSpec_.toBuilder(); + } + podSpec_ = input.readMessage(k8s.io.api.core.v1.Generated.PodSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podSpec_); + podSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + primaryContainerName_ = s; + 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.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); + } + + public static final int POD_SPEC_FIELD_NUMBER = 1; + private k8s.io.api.core.v1.Generated.PodSpec podSpec_; + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public boolean hasPodSpec() { + return podSpec_ != null; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { + return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { + return getPodSpec(); + } + + public static final int PRIMARY_CONTAINER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object primaryContainerName_; + /** + * string primary_container_name = 2; + */ + public java.lang.String getPrimaryContainerName() { + java.lang.Object ref = primaryContainerName_; + 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(); + primaryContainerName_ = s; + return s; + } + } + /** + * string primary_container_name = 2; + */ + public com.google.protobuf.ByteString + getPrimaryContainerNameBytes() { + java.lang.Object ref = primaryContainerName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryContainerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (podSpec_ != null) { + output.writeMessage(1, getPodSpec()); + } + if (!getPrimaryContainerNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryContainerName_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (podSpec_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPodSpec()); + } + if (!getPrimaryContainerNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryContainerName_); + } + 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.plugins.Sidecar.SidecarJob)) { + return super.equals(obj); + } + flyteidl.plugins.Sidecar.SidecarJob other = (flyteidl.plugins.Sidecar.SidecarJob) obj; + + boolean result = true; + result = result && (hasPodSpec() == other.hasPodSpec()); + if (hasPodSpec()) { + result = result && getPodSpec() + .equals(other.getPodSpec()); + } + result = result && getPrimaryContainerName() + .equals(other.getPrimaryContainerName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPodSpec()) { + hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPodSpec().hashCode(); + } + hash = (37 * hash) + PRIMARY_CONTAINER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPrimaryContainerName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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.plugins.Sidecar.SidecarJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob 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.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Sidecar.SidecarJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Sidecar.SidecarJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 sidecar job brings up the desired pod_spec.
+     * The plugin executor is responsible for keeping the pod alive until the primary container terminates
+     * or the task itself times out.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SidecarJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SidecarJob) + flyteidl.plugins.Sidecar.SidecarJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Sidecar.SidecarJob.class, flyteidl.plugins.Sidecar.SidecarJob.Builder.class); + } + + // Construct using flyteidl.plugins.Sidecar.SidecarJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (podSpecBuilder_ == null) { + podSpec_ = null; + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + primaryContainerName_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Sidecar.internal_static_flyteidl_plugins_SidecarJob_descriptor; + } + + public flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { + return flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance(); + } + + public flyteidl.plugins.Sidecar.SidecarJob build() { + flyteidl.plugins.Sidecar.SidecarJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.Sidecar.SidecarJob buildPartial() { + flyteidl.plugins.Sidecar.SidecarJob result = new flyteidl.plugins.Sidecar.SidecarJob(this); + if (podSpecBuilder_ == null) { + result.podSpec_ = podSpec_; + } else { + result.podSpec_ = podSpecBuilder_.build(); + } + result.primaryContainerName_ = primaryContainerName_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Sidecar.SidecarJob) { + return mergeFrom((flyteidl.plugins.Sidecar.SidecarJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Sidecar.SidecarJob other) { + if (other == flyteidl.plugins.Sidecar.SidecarJob.getDefaultInstance()) return this; + if (other.hasPodSpec()) { + mergePodSpec(other.getPodSpec()); + } + if (!other.getPrimaryContainerName().isEmpty()) { + primaryContainerName_ = other.primaryContainerName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Sidecar.SidecarJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Sidecar.SidecarJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private k8s.io.api.core.v1.Generated.PodSpec podSpec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> podSpecBuilder_; + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public boolean hasPodSpec() { + return podSpecBuilder_ != null || podSpec_ != null; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec getPodSpec() { + if (podSpecBuilder_ == null) { + return podSpec_ == null ? k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } else { + return podSpecBuilder_.getMessage(); + } + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder setPodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { + if (podSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podSpec_ = value; + onChanged(); + } else { + podSpecBuilder_.setMessage(value); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder setPodSpec( + k8s.io.api.core.v1.Generated.PodSpec.Builder builderForValue) { + if (podSpecBuilder_ == null) { + podSpec_ = builderForValue.build(); + onChanged(); + } else { + podSpecBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder mergePodSpec(k8s.io.api.core.v1.Generated.PodSpec value) { + if (podSpecBuilder_ == null) { + if (podSpec_ != null) { + podSpec_ = + k8s.io.api.core.v1.Generated.PodSpec.newBuilder(podSpec_).mergeFrom(value).buildPartial(); + } else { + podSpec_ = value; + } + onChanged(); + } else { + podSpecBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public Builder clearPodSpec() { + if (podSpecBuilder_ == null) { + podSpec_ = null; + onChanged(); + } else { + podSpec_ = null; + podSpecBuilder_ = null; + } + + return this; + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpec.Builder getPodSpecBuilder() { + + onChanged(); + return getPodSpecFieldBuilder().getBuilder(); + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + public k8s.io.api.core.v1.Generated.PodSpecOrBuilder getPodSpecOrBuilder() { + if (podSpecBuilder_ != null) { + return podSpecBuilder_.getMessageOrBuilder(); + } else { + return podSpec_ == null ? + k8s.io.api.core.v1.Generated.PodSpec.getDefaultInstance() : podSpec_; + } + } + /** + * .k8s.io.api.core.v1.PodSpec pod_spec = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder> + getPodSpecFieldBuilder() { + if (podSpecBuilder_ == null) { + podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + k8s.io.api.core.v1.Generated.PodSpec, k8s.io.api.core.v1.Generated.PodSpec.Builder, k8s.io.api.core.v1.Generated.PodSpecOrBuilder>( + getPodSpec(), + getParentForChildren(), + isClean()); + podSpec_ = null; + } + return podSpecBuilder_; + } + + private java.lang.Object primaryContainerName_ = ""; + /** + * string primary_container_name = 2; + */ + public java.lang.String getPrimaryContainerName() { + java.lang.Object ref = primaryContainerName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + primaryContainerName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string primary_container_name = 2; + */ + public com.google.protobuf.ByteString + getPrimaryContainerNameBytes() { + java.lang.Object ref = primaryContainerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryContainerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string primary_container_name = 2; + */ + public Builder setPrimaryContainerName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + primaryContainerName_ = value; + onChanged(); + return this; + } + /** + * string primary_container_name = 2; + */ + public Builder clearPrimaryContainerName() { + + primaryContainerName_ = getDefaultInstance().getPrimaryContainerName(); + onChanged(); + return this; + } + /** + * string primary_container_name = 2; + */ + public Builder setPrimaryContainerNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + primaryContainerName_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.SidecarJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) + private static final flyteidl.plugins.Sidecar.SidecarJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Sidecar.SidecarJob(); + } + + public static flyteidl.plugins.Sidecar.SidecarJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SidecarJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SidecarJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.Sidecar.SidecarJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SidecarJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\036flyteidl/plugins/sidecar.proto\022\020flytei" + + "dl.plugins\032\"k8s.io/api/core/v1/generated" + + ".proto\"[\n\nSidecarJob\022-\n\010pod_spec\030\001 \001(\0132\033" + + ".k8s.io.api.core.v1.PodSpec\022\036\n\026primary_c" + + "ontainer_name\030\002 \001(\tB5Z3github.com/lyft/f" + + "lyteidl/gen/pb-go/flyteidl/pluginsb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + k8s.io.api.core.v1.Generated.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_SidecarJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SidecarJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SidecarJob_descriptor, + new java.lang.String[] { "PodSpec", "PrimaryContainerName", }); + k8s.io.api.core.v1.Generated.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java b/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java new file mode 100644 index 0000000000..351734f5f9 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java @@ -0,0 +1,2128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/spark.proto + +package flyteidl.plugins; + +public final class Spark { + private Spark() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface SparkApplicationOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code flyteidl.plugins.SparkApplication} + */ + public static final class SparkApplication extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) + SparkApplicationOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkApplication.newBuilder() to construct. + private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkApplication() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkApplication( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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; + default: { + if (!parseUnknownFieldProto3( + 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.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + /** + * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * PYTHON = 0; + */ + PYTHON(0), + /** + * JAVA = 1; + */ + JAVA(1), + /** + * SCALA = 2; + */ + SCALA(2), + /** + * R = 3; + */ + R(3), + UNRECOGNIZED(-1), + ; + + /** + * PYTHON = 0; + */ + public static final int PYTHON_VALUE = 0; + /** + * JAVA = 1; + */ + public static final int JAVA_VALUE = 1; + /** + * SCALA = 2; + */ + public static final int SCALA_VALUE = 2; + /** + * R = 3; + */ + public static final int R_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + public static Type forNumber(int value) { + switch (value) { + case 0: return PYTHON; + case 1: return JAVA; + case 2: return SCALA; + case 3: return R; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.plugins.Spark.SparkApplication)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication 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.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkApplication parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Spark.SparkApplication prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + * Protobuf type {@code flyteidl.plugins.SparkApplication} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) + flyteidl.plugins.Spark.SparkApplicationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkApplication.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; + } + + public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); + } + + public flyteidl.plugins.Spark.SparkApplication build() { + flyteidl.plugins.Spark.SparkApplication result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.Spark.SparkApplication buildPartial() { + flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Spark.SparkApplication) { + return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { + if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Spark.SparkApplication parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.SparkApplication) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); + } + + public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SparkApplication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkApplication(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SparkJobOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + int getApplicationTypeValue(); + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); + + /** + * string mainApplicationFile = 2; + */ + java.lang.String getMainApplicationFile(); + /** + * string mainApplicationFile = 2; + */ + com.google.protobuf.ByteString + getMainApplicationFileBytes(); + + /** + * string mainClass = 3; + */ + java.lang.String getMainClass(); + /** + * string mainClass = 3; + */ + com.google.protobuf.ByteString + getMainClassBytes(); + + /** + * map<string, string> sparkConf = 4; + */ + int getSparkConfCount(); + /** + * map<string, string> sparkConf = 4; + */ + boolean containsSparkConf( + java.lang.String key); + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getSparkConf(); + /** + * map<string, string> sparkConf = 4; + */ + java.util.Map + getSparkConfMap(); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> sparkConf = 4; + */ + + java.lang.String getSparkConfOrThrow( + java.lang.String key); + + /** + * map<string, string> hadoopConf = 5; + */ + int getHadoopConfCount(); + /** + * map<string, string> hadoopConf = 5; + */ + boolean containsHadoopConf( + java.lang.String key); + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getHadoopConf(); + /** + * map<string, string> hadoopConf = 5; + */ + java.util.Map + getHadoopConfMap(); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + * map<string, string> hadoopConf = 5; + */ + + java.lang.String getHadoopConfOrThrow( + java.lang.String key); + + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + java.lang.String getExecutorPath(); + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + com.google.protobuf.ByteString + getExecutorPathBytes(); + } + /** + *
+   * Custom Proto for Spark Plugin.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class SparkJob extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) + SparkJobOrBuilder { + private static final long serialVersionUID = 0L; + // Use SparkJob.newBuilder() to construct. + private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkJob() { + applicationType_ = 0; + mainApplicationFile_ = ""; + mainClass_ = ""; + executorPath_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SparkJob( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + applicationType_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + mainApplicationFile_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + mainClass_ = s; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + sparkConf__ = input.readMessage( + SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + sparkConf_.getMutableMap().put( + sparkConf__.getKey(), sparkConf__.getValue()); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + hadoopConf__ = input.readMessage( + HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + hadoopConf_.getMutableMap().put( + hadoopConf__.getKey(), hadoopConf__.getValue()); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + executorPath_ = s; + 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.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + private int bitField0_; + public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; + private int applicationType_; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + + public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; + private volatile java.lang.Object mainApplicationFile_; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + 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(); + mainApplicationFile_ = s; + return s; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAINCLASS_FIELD_NUMBER = 3; + private volatile java.lang.Object mainClass_; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + 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(); + mainClass_ = s; + return s; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPARKCONF_FIELD_NUMBER = 4; + private static final class SparkConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HADOOPCONF_FIELD_NUMBER = 5; + private static final class HadoopConfDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int EXECUTORPATH_FIELD_NUMBER = 6; + private volatile java.lang.Object executorPath_; + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + 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(); + executorPath_ = s; + return s; + } + } + /** + *
+     * Executor path for Python jobs.
+     * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + output.writeEnum(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetSparkConf(), + SparkConfDefaultEntryHolder.defaultEntry, + 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetHadoopConf(), + HadoopConfDefaultEntryHolder.defaultEntry, + 5); + if (!getExecutorPathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, applicationType_); + } + if (!getMainApplicationFileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); + } + if (!getMainClassBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); + } + for (java.util.Map.Entry entry + : internalGetSparkConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, sparkConf__); + } + for (java.util.Map.Entry entry + : internalGetHadoopConf().getMap().entrySet()) { + com.google.protobuf.MapEntry + hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, hadoopConf__); + } + if (!getExecutorPathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); + } + 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.plugins.Spark.SparkJob)) { + return super.equals(obj); + } + flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; + + boolean result = true; + result = result && applicationType_ == other.applicationType_; + result = result && getMainApplicationFile() + .equals(other.getMainApplicationFile()); + result = result && getMainClass() + .equals(other.getMainClass()); + result = result && internalGetSparkConf().equals( + other.internalGetSparkConf()); + result = result && internalGetHadoopConf().equals( + other.internalGetHadoopConf()); + result = result && getExecutorPath() + .equals(other.getExecutorPath()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPLICATIONTYPE_FIELD_NUMBER; + hash = (53 * hash) + applicationType_; + hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; + hash = (53 * hash) + getMainApplicationFile().hashCode(); + hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; + hash = (53 * hash) + getMainClass().hashCode(); + if (!internalGetSparkConf().getMap().isEmpty()) { + hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetSparkConf().hashCode(); + } + if (!internalGetHadoopConf().getMap().isEmpty()) { + hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; + hash = (53 * hash) + internalGetHadoopConf().hashCode(); + } + hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; + hash = (53 * hash) + getExecutorPath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob 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.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.Spark.SparkJob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.Spark.SparkJob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Custom Proto for Spark Plugin.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.SparkJob} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) + flyteidl.plugins.Spark.SparkJobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetSparkConf(); + case 5: + return internalGetHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableSparkConf(); + case 5: + return internalGetMutableHadoopConf(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); + } + + // Construct using flyteidl.plugins.Spark.SparkJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + applicationType_ = 0; + + mainApplicationFile_ = ""; + + mainClass_ = ""; + + internalGetMutableSparkConf().clear(); + internalGetMutableHadoopConf().clear(); + executorPath_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; + } + + public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); + } + + public flyteidl.plugins.Spark.SparkJob build() { + flyteidl.plugins.Spark.SparkJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.Spark.SparkJob buildPartial() { + flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.applicationType_ = applicationType_; + result.mainApplicationFile_ = mainApplicationFile_; + result.mainClass_ = mainClass_; + result.sparkConf_ = internalGetSparkConf(); + result.sparkConf_.makeImmutable(); + result.hadoopConf_ = internalGetHadoopConf(); + result.hadoopConf_.makeImmutable(); + result.executorPath_ = executorPath_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.Spark.SparkJob) { + return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { + if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; + if (other.applicationType_ != 0) { + setApplicationTypeValue(other.getApplicationTypeValue()); + } + if (!other.getMainApplicationFile().isEmpty()) { + mainApplicationFile_ = other.mainApplicationFile_; + onChanged(); + } + if (!other.getMainClass().isEmpty()) { + mainClass_ = other.mainClass_; + onChanged(); + } + internalGetMutableSparkConf().mergeFrom( + other.internalGetSparkConf()); + internalGetMutableHadoopConf().mergeFrom( + other.internalGetHadoopConf()); + if (!other.getExecutorPath().isEmpty()) { + executorPath_ = other.executorPath_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.Spark.SparkJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int applicationType_ = 0; + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public int getApplicationTypeValue() { + return applicationType_; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationTypeValue(int value) { + applicationType_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { + flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); + return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + applicationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + public Builder clearApplicationType() { + + applicationType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object mainApplicationFile_ = ""; + /** + * string mainApplicationFile = 2; + */ + public java.lang.String getMainApplicationFile() { + java.lang.Object ref = mainApplicationFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainApplicationFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public com.google.protobuf.ByteString + getMainApplicationFileBytes() { + java.lang.Object ref = mainApplicationFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainApplicationFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainApplicationFile_ = value; + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder clearMainApplicationFile() { + + mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); + onChanged(); + return this; + } + /** + * string mainApplicationFile = 2; + */ + public Builder setMainApplicationFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainApplicationFile_ = value; + onChanged(); + return this; + } + + private java.lang.Object mainClass_ = ""; + /** + * string mainClass = 3; + */ + public java.lang.String getMainClass() { + java.lang.Object ref = mainClass_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mainClass_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string mainClass = 3; + */ + public com.google.protobuf.ByteString + getMainClassBytes() { + java.lang.Object ref = mainClass_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + mainClass_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string mainClass = 3; + */ + public Builder setMainClass( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + mainClass_ = value; + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder clearMainClass() { + + mainClass_ = getDefaultInstance().getMainClass(); + onChanged(); + return this; + } + /** + * string mainClass = 3; + */ + public Builder setMainClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + mainClass_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> sparkConf_; + private com.google.protobuf.MapField + internalGetSparkConf() { + if (sparkConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + return sparkConf_; + } + private com.google.protobuf.MapField + internalGetMutableSparkConf() { + onChanged();; + if (sparkConf_ == null) { + sparkConf_ = com.google.protobuf.MapField.newMapField( + SparkConfDefaultEntryHolder.defaultEntry); + } + if (!sparkConf_.isMutable()) { + sparkConf_ = sparkConf_.copy(); + } + return sparkConf_; + } + + public int getSparkConfCount() { + return internalGetSparkConf().getMap().size(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public boolean containsSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetSparkConf().getMap().containsKey(key); + } + /** + * Use {@link #getSparkConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getSparkConf() { + return getSparkConfMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.util.Map getSparkConfMap() { + return internalGetSparkConf().getMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> sparkConf = 4; + */ + + public java.lang.String getSparkConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetSparkConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSparkConf() { + internalGetMutableSparkConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder removeSparkConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableSparkConf() { + return internalGetMutableSparkConf().getMutableMap(); + } + /** + * map<string, string> sparkConf = 4; + */ + public Builder putSparkConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableSparkConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> sparkConf = 4; + */ + + public Builder putAllSparkConf( + java.util.Map values) { + internalGetMutableSparkConf().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> hadoopConf_; + private com.google.protobuf.MapField + internalGetHadoopConf() { + if (hadoopConf_ == null) { + return com.google.protobuf.MapField.emptyMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + return hadoopConf_; + } + private com.google.protobuf.MapField + internalGetMutableHadoopConf() { + onChanged();; + if (hadoopConf_ == null) { + hadoopConf_ = com.google.protobuf.MapField.newMapField( + HadoopConfDefaultEntryHolder.defaultEntry); + } + if (!hadoopConf_.isMutable()) { + hadoopConf_ = hadoopConf_.copy(); + } + return hadoopConf_; + } + + public int getHadoopConfCount() { + return internalGetHadoopConf().getMap().size(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public boolean containsHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetHadoopConf().getMap().containsKey(key); + } + /** + * Use {@link #getHadoopConfMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getHadoopConf() { + return getHadoopConfMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.util.Map getHadoopConfMap() { + return internalGetHadoopConf().getMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public java.lang.String getHadoopConfOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetHadoopConf().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearHadoopConf() { + internalGetMutableHadoopConf().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder removeHadoopConf( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableHadoopConf() { + return internalGetMutableHadoopConf().getMutableMap(); + } + /** + * map<string, string> hadoopConf = 5; + */ + public Builder putHadoopConf( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableHadoopConf().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> hadoopConf = 5; + */ + + public Builder putAllHadoopConf( + java.util.Map values) { + internalGetMutableHadoopConf().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object executorPath_ = ""; + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public java.lang.String getExecutorPath() { + java.lang.Object ref = executorPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executorPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public com.google.protobuf.ByteString + getExecutorPathBytes() { + java.lang.Object ref = executorPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executorPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + executorPath_ = value; + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder clearExecutorPath() { + + executorPath_ = getDefaultInstance().getExecutorPath(); + onChanged(); + return this; + } + /** + *
+       * Executor path for Python jobs.
+       * 
+ * + * string executorPath = 6; + */ + public Builder setExecutorPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + executorPath_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.SparkJob) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); + } + + public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SparkJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SparkJob(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkApplication_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/plugins/spark.proto\022\020flyteidl" + + ".plugins\"B\n\020SparkApplication\".\n\004Type\022\n\n\006" + + "PYTHON\020\000\022\010\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\365\002\n" + + "\010SparkJob\022@\n\017applicationType\030\001 \001(\0162\'.fly" + + "teidl.plugins.SparkApplication.Type\022\033\n\023m" + + "ainApplicationFile\030\002 \001(\t\022\021\n\tmainClass\030\003 " + + "\001(\t\022<\n\tsparkConf\030\004 \003(\0132).flyteidl.plugin" + + "s.SparkJob.SparkConfEntry\022>\n\nhadoopConf\030" + + "\005 \003(\0132*.flyteidl.plugins.SparkJob.Hadoop" + + "ConfEntry\022\024\n\014executorPath\030\006 \001(\t\0320\n\016Spark" + + "ConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\0321\n\017HadoopConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B5Z3github.com/lyft/flyteidl" + + "/gen/pb-go/flyteidl/pluginsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_flyteidl_plugins_SparkApplication_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkApplication_descriptor, + new java.lang.String[] { }); + internal_static_flyteidl_plugins_SparkJob_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_descriptor, + new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", }); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = + internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java new file mode 100644 index 0000000000..df7759c199 --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java @@ -0,0 +1,885 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/plugins/waitable.proto + +package flyteidl.plugins; + +public final class WaitableOuterClass { + private WaitableOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface WaitableOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + boolean hasWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); + + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + int getPhaseValue(); + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); + + /** + * string workflow_id = 3; + */ + java.lang.String getWorkflowId(); + /** + * string workflow_id = 3; + */ + com.google.protobuf.ByteString + getWorkflowIdBytes(); + } + /** + *
+   * Represents an Execution that was launched and could be waited on.
+   * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Waitable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) + WaitableOrBuilder { + private static final long serialVersionUID = 0L; + // Use Waitable.newBuilder() to construct. + private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Waitable() { + phase_ = 0; + workflowId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Waitable( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; + if (wfExecId_ != null) { + subBuilder = wfExecId_.toBuilder(); + } + wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(wfExecId_); + wfExecId_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + int rawValue = input.readEnum(); + + phase_ = rawValue; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + workflowId_ = s; + 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.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + public static final int WF_EXEC_ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + return getWfExecId(); + } + + public static final int PHASE_FIELD_NUMBER = 2; + private int phase_; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + + public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object workflowId_; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + 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(); + workflowId_ = s; + return s; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (wfExecId_ != null) { + output.writeMessage(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + output.writeEnum(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (wfExecId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWfExecId()); + } + if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, phase_); + } + if (!getWorkflowIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); + } + 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.plugins.WaitableOuterClass.Waitable)) { + return super.equals(obj); + } + flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; + + boolean result = true; + result = result && (hasWfExecId() == other.hasWfExecId()); + if (hasWfExecId()) { + result = result && getWfExecId() + .equals(other.getWfExecId()); + } + result = result && phase_ == other.phase_; + result = result && getWorkflowId() + .equals(other.getWorkflowId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWfExecId()) { + hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; + hash = (53 * hash) + getWfExecId().hashCode(); + } + hash = (37 * hash) + PHASE_FIELD_NUMBER; + hash = (53 * hash) + phase_; + hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkflowId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable 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.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.plugins.WaitableOuterClass.Waitable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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; + } + /** + *
+     * Represents an Execution that was launched and could be waited on.
+     * 
+ * + * Protobuf type {@code flyteidl.plugins.Waitable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) + flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); + } + + // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (wfExecIdBuilder_ == null) { + wfExecId_ = null; + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + phase_ = 0; + + workflowId_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; + } + + public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); + } + + public flyteidl.plugins.WaitableOuterClass.Waitable build() { + flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { + flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); + if (wfExecIdBuilder_ == null) { + result.wfExecId_ = wfExecId_; + } else { + result.wfExecId_ = wfExecIdBuilder_.build(); + } + result.phase_ = phase_; + result.workflowId_ = workflowId_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.plugins.WaitableOuterClass.Waitable) { + return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { + if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; + if (other.hasWfExecId()) { + mergeWfExecId(other.getWfExecId()); + } + if (other.phase_ != 0) { + setPhaseValue(other.getPhaseValue()); + } + if (!other.getWorkflowId().isEmpty()) { + workflowId_ = other.workflowId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.plugins.WaitableOuterClass.Waitable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public boolean hasWfExecId() { + return wfExecIdBuilder_ != null || wfExecId_ != null; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { + if (wfExecIdBuilder_ == null) { + return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } else { + return wfExecIdBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wfExecId_ = value; + onChanged(); + } else { + wfExecIdBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder setWfExecId( + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { + if (wfExecIdBuilder_ == null) { + wfExecId_ = builderForValue.build(); + onChanged(); + } else { + wfExecIdBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { + if (wfExecIdBuilder_ == null) { + if (wfExecId_ != null) { + wfExecId_ = + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); + } else { + wfExecId_ = value; + } + onChanged(); + } else { + wfExecIdBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public Builder clearWfExecId() { + if (wfExecIdBuilder_ == null) { + wfExecId_ = null; + onChanged(); + } else { + wfExecId_ = null; + wfExecIdBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { + + onChanged(); + return getWfExecIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { + if (wfExecIdBuilder_ != null) { + return wfExecIdBuilder_.getMessageOrBuilder(); + } else { + return wfExecId_ == null ? + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; + } + } + /** + * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> + getWfExecIdFieldBuilder() { + if (wfExecIdBuilder_ == null) { + wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( + getWfExecId(), + getParentForChildren(), + isClean()); + wfExecId_ = null; + } + return wfExecIdBuilder_; + } + + private int phase_ = 0; + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public int getPhaseValue() { + return phase_; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhaseValue(int value) { + phase_ = value; + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { + flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); + return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { + if (value == null) { + throw new NullPointerException(); + } + + phase_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + public Builder clearPhase() { + + phase_ = 0; + onChanged(); + return this; + } + + private java.lang.Object workflowId_ = ""; + /** + * string workflow_id = 3; + */ + public java.lang.String getWorkflowId() { + java.lang.Object ref = workflowId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workflowId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string workflow_id = 3; + */ + public com.google.protobuf.ByteString + getWorkflowIdBytes() { + java.lang.Object ref = workflowId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workflowId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + workflowId_ = value; + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder clearWorkflowId() { + + workflowId_ = getDefaultInstance().getWorkflowId(); + onChanged(); + return this; + } + /** + * string workflow_id = 3; + */ + public Builder setWorkflowIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + workflowId_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.plugins.Waitable) + } + + // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); + } + + public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Waitable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Waitable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_plugins_Waitable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_plugins_Waitable_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037flyteidl/plugins/waitable.proto\022\020flyte" + + "idl.plugins\032\035flyteidl/core/execution.pro" + + "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + + "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + + "ore.WorkflowExecutionIdentifier\0225\n\005phase" + + "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + + ".Phase\022\023\n\013workflow_id\030\003 \001(\tB5Z3github.co" + + "m/lyft/flyteidl/gen/pb-go/flyteidl/plugi" + + "nsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + flyteidl.core.Execution.getDescriptor(), + flyteidl.core.IdentifierOuterClass.getDescriptor(), + }, assigner); + internal_static_flyteidl_plugins_Waitable_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_plugins_Waitable_descriptor, + new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); + flyteidl.core.Execution.getDescriptor(); + flyteidl.core.IdentifierOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Admin.java b/flyteidl/gen/pb-java/flyteidl/service/Admin.java new file mode 100644 index 0000000000..f7f2dfdb7f --- /dev/null +++ b/flyteidl/gen/pb-java/flyteidl/service/Admin.java @@ -0,0 +1,263 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: flyteidl/service/admin.proto + +package flyteidl.service; + +public final class Admin { + private Admin() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034flyteidl/service/admin.proto\022\020flyteidl" + + ".service\032\034google/api/annotations.proto\032\034" + + "flyteidl/admin/project.proto\032\031flyteidl/a" + + "dmin/task.proto\032\035flyteidl/admin/workflow" + + ".proto\032 flyteidl/admin/launch_plan.proto" + + "\032\032flyteidl/admin/event.proto\032\036flyteidl/a" + + "dmin/execution.proto\032#flyteidl/admin/nod" + + "e_execution.proto\032#flyteidl/admin/task_e" + + "xecution.proto\032\033flyteidl/admin/common.pr" + + "oto\032,protoc-gen-swagger/options/annotati" + + "ons.proto2\3018\n\014AdminService\022\304\002\n\nCreateTas" + + "k\022!.flyteidl.admin.TaskCreateRequest\032\".f" + + "lyteidl.admin.TaskCreateResponse\"\356\001\202\323\344\223\002" + + "\022\"\r/api/v1/tasks:\001*\222A\322\001\032%Create and regi" + + "ster a task definitionJB\n\003400\022;\n9Returne" + + "d for bad request that may have failed v" + + "alidation.Je\n\003409\022^\n\\Returned for a requ" + + "est that references an identical entity " + + "that has already been registered.\022\210\001\n\007Ge" + + "tTask\022 .flyteidl.admin.ObjectGetRequest\032" + + "\024.flyteidl.admin.Task\"E\202\323\344\223\002?\022=/api/v1/t" + + "asks/{id.project}/{id.domain}/{id.name}/" + + "{id.version}\022\227\001\n\013ListTaskIds\0220.flyteidl." + + "admin.NamedEntityIdentifierListRequest\032)" + + ".flyteidl.admin.NamedEntityIdentifierLis" + + "t\"+\202\323\344\223\002%\022#/api/v1/task_ids/{project}/{d" + + "omain}\022\256\001\n\tListTasks\022#.flyteidl.admin.Re" + + "sourceListRequest\032\030.flyteidl.admin.TaskL" + + "ist\"b\202\323\344\223\002\\\0220/api/v1/tasks/{id.project}/" + + "{id.domain}/{id.name}Z(\022&/api/v1/tasks/{" + + "id.project}/{id.domain}\022\330\002\n\016CreateWorkfl" + + "ow\022%.flyteidl.admin.WorkflowCreateReques" + + "t\032&.flyteidl.admin.WorkflowCreateRespons" + + "e\"\366\001\202\323\344\223\002\026\"\021/api/v1/workflows:\001*\222A\326\001\032)Cr" + + "eate and register a workflow definitionJ" + + "B\n\003400\022;\n9Returned for bad request that " + + "may have failed validation.Je\n\003409\022^\n\\Re" + + "turned for a request that references an " + + "identical entity that has already been r" + + "egistered.\022\224\001\n\013GetWorkflow\022 .flyteidl.ad" + + "min.ObjectGetRequest\032\030.flyteidl.admin.Wo" + + "rkflow\"I\202\323\344\223\002C\022A/api/v1/workflows/{id.pr" + + "oject}/{id.domain}/{id.name}/{id.version" + + "}\022\237\001\n\017ListWorkflowIds\0220.flyteidl.admin.N" + + "amedEntityIdentifierListRequest\032).flytei" + + "dl.admin.NamedEntityIdentifierList\"/\202\323\344\223" + + "\002)\022\'/api/v1/workflow_ids/{project}/{doma" + + "in}\022\276\001\n\rListWorkflows\022#.flyteidl.admin.R" + + "esourceListRequest\032\034.flyteidl.admin.Work" + + "flowList\"j\202\323\344\223\002d\0224/api/v1/workflows/{id." + + "project}/{id.domain}/{id.name}Z,\022*/api/v" + + "1/workflows/{id.project}/{id.domain}\022\344\002\n" + + "\020CreateLaunchPlan\022\'.flyteidl.admin.Launc" + + "hPlanCreateRequest\032(.flyteidl.admin.Laun" + + "chPlanCreateResponse\"\374\001\202\323\344\223\002\031\"\024/api/v1/l" + + "aunch_plans:\001*\222A\331\001\032,Create and register " + + "a launch plan definitionJB\n\003400\022;\n9Retur" + + "ned for bad request that may have failed" + + " validation.Je\n\003409\022^\n\\Returned for a re" + + "quest that references an identical entit" + + "y that has already been registered.\022\233\001\n\r" + + "GetLaunchPlan\022 .flyteidl.admin.ObjectGet" + + "Request\032\032.flyteidl.admin.LaunchPlan\"L\202\323\344" + + "\223\002F\022D/api/v1/launch_plans/{id.project}/{" + + "id.domain}/{id.name}/{id.version}\022\244\001\n\021Li" + + "stLaunchPlanIds\0220.flyteidl.admin.NamedEn" + + "tityIdentifierListRequest\032).flyteidl.adm" + + "in.NamedEntityIdentifierList\"2\202\323\344\223\002,\022*/a" + + "pi/v1/launch_plan_ids/{project}/{domain}" + + "\022\310\001\n\017ListLaunchPlans\022#.flyteidl.admin.Re" + + "sourceListRequest\032\036.flyteidl.admin.Launc" + + "hPlanList\"p\202\323\344\223\002j\0227/api/v1/launch_plans/" + + "{id.project}/{id.domain}/{id.name}Z/\022-/a" + + "pi/v1/launch_plans/{id.project}/{id.doma" + + "in}\022\266\001\n\020UpdateLaunchPlan\022\'.flyteidl.admi" + + "n.LaunchPlanUpdateRequest\032(.flyteidl.adm" + + "in.LaunchPlanUpdateResponse\"O\202\323\344\223\002I\032D/ap" + + "i/v1/launch_plans/{id.project}/{id.domai" + + "n}/{id.name}/{id.version}:\001*\022\316\002\n\017CreateE" + + "xecution\022&.flyteidl.admin.ExecutionCreat" + + "eRequest\032\'.flyteidl.admin.ExecutionCreat" + + "eResponse\"\351\001\202\323\344\223\002\027\"\022/api/v1/executions:\001" + + "*\222A\310\001\032\033Create a workflow executionJB\n\00340" + + "0\022;\n9Returned for bad request that may h" + + "ave failed validation.Je\n\003409\022^\n\\Returne" + + "d for a request that references an ident" + + "ical entity that has already been regist" + + "ered.\022\335\002\n\021RelaunchExecution\022(.flyteidl.a" + + "dmin.ExecutionRelaunchRequest\032\'.flyteidl" + + ".admin.ExecutionCreateResponse\"\364\001\202\323\344\223\002 \"" + + "\033/api/v1/executions/relaunch:\001*\222A\312\001\032\035Rel" + + "aunch a workflow executionJB\n\003400\022;\n9Ret" + + "urned for bad request that may have fail" + + "ed validation.Je\n\003409\022^\n\\Returned for a " + + "request that references an identical ent" + + "ity that has already been registered.\022\225\001" + + "\n\014GetExecution\022+.flyteidl.admin.Workflow" + + "ExecutionGetRequest\032\031.flyteidl.admin.Exe" + + "cution\"=\202\323\344\223\0027\0225/api/v1/executions/{id.p" + + "roject}/{id.domain}/{id.name}\022\271\001\n\020GetExe" + + "cutionData\022/.flyteidl.admin.WorkflowExec" + + "utionGetDataRequest\0320.flyteidl.admin.Wor" + + "kflowExecutionGetDataResponse\"B\202\323\344\223\002<\022:/" + + "api/v1/data/executions/{id.project}/{id." + + "domain}/{id.name}\022\211\001\n\016ListExecutions\022#.f" + + "lyteidl.admin.ResourceListRequest\032\035.flyt" + + "eidl.admin.ExecutionList\"3\202\323\344\223\002-\022+/api/v" + + "1/executions/{id.project}/{id.domain}\022\255\001" + + "\n\022TerminateExecution\022).flyteidl.admin.Ex" + + "ecutionTerminateRequest\032*.flyteidl.admin" + + ".ExecutionTerminateResponse\"@\202\323\344\223\002:*5/ap" + + "i/v1/executions/{id.project}/{id.domain}" + + "/{id.name}:\001*\022\322\001\n\020GetNodeExecution\022\'.fly" + + "teidl.admin.NodeExecutionGetRequest\032\035.fl" + + "yteidl.admin.NodeExecution\"v\202\323\344\223\002p\022n/api" + + "/v1/node_executions/{id.execution_id.pro" + + "ject}/{id.execution_id.domain}/{id.execu" + + "tion_id.name}/{id.node_id}\022\336\001\n\022ListNodeE" + + "xecutions\022(.flyteidl.admin.NodeExecution" + + "ListRequest\032!.flyteidl.admin.NodeExecuti" + + "onList\"{\202\323\344\223\002u\022s/api/v1/node_executions/" + + "{workflow_execution_id.project}/{workflo" + + "w_execution_id.domain}/{workflow_executi" + + "on_id.name}\022\245\004\n\031ListNodeExecutionsForTas" + + "k\022/.flyteidl.admin.NodeExecutionForTaskL" + + "istRequest\032!.flyteidl.admin.NodeExecutio" + + "nList\"\263\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_" + + "executions/{task_execution_id.node_execu" + + "tion_id.execution_id.project}/{task_exec" + + "ution_id.node_execution_id.execution_id." + + "domain}/{task_execution_id.node_executio" + + "n_id.execution_id.name}/{task_execution_" + + "id.node_execution_id.node_id}/{task_exec" + + "ution_id.task_id.project}/{task_executio" + + "n_id.task_id.domain}/{task_execution_id." + + "task_id.name}/{task_execution_id.task_id" + + ".version}/{task_execution_id.retry_attem" + + "pt}\022\356\001\n\024GetNodeExecutionData\022+.flyteidl." + + "admin.NodeExecutionGetDataRequest\032,.flyt" + + "eidl.admin.NodeExecutionGetDataResponse\"" + + "{\202\323\344\223\002u\022s/api/v1/data/node_executions/{i" + + "d.execution_id.project}/{id.execution_id" + + ".domain}/{id.execution_id.name}/{id.node" + + "_id}\022\245\002\n\017RegisterProject\022&.flyteidl.admi" + + "n.ProjectRegisterRequest\032\'.flyteidl.admi" + + "n.ProjectRegisterResponse\"\300\001\202\323\344\223\002\025\"\020/api" + + "/v1/projects:\001*\222A\241\001\032+Register a project " + + "along with valid domainsJ.\n\003201\022\'\n%Retur" + + "ned for successful registration.JB\n\003400\022" + + ";\n9Returned for bad request that may hav" + + "e failed validation.\022f\n\014ListProjects\022\".f" + + "lyteidl.admin.ProjectListRequest\032\030.flyte" + + "idl.admin.Projects\"\030\202\323\344\223\002\022\022\020/api/v1/proj" + + "ects\022\231\001\n\023CreateWorkflowEvent\022-.flyteidl." + + "admin.WorkflowExecutionEventRequest\032..fl" + + "yteidl.admin.WorkflowExecutionEventRespo" + + "nse\"#\202\323\344\223\002\035\"\030/api/v1/events/workflows:\001*" + + "\022\211\001\n\017CreateNodeEvent\022).flyteidl.admin.No" + + "deExecutionEventRequest\032*.flyteidl.admin" + + ".NodeExecutionEventResponse\"\037\202\323\344\223\002\031\"\024/ap" + + "i/v1/events/nodes:\001*\022\211\001\n\017CreateTaskEvent" + + "\022).flyteidl.admin.TaskExecutionEventRequ" + + "est\032*.flyteidl.admin.TaskExecutionEventR" + + "esponse\"\037\202\323\344\223\002\031\"\024/api/v1/events/tasks:\001*" + + "\022\200\003\n\020GetTaskExecution\022\'.flyteidl.admin.T" + + "askExecutionGetRequest\032\035.flyteidl.admin." + + "TaskExecution\"\243\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_e" + + "xecutions/{id.node_execution_id.executio" + + "n_id.project}/{id.node_execution_id.exec" + + "ution_id.domain}/{id.node_execution_id.e" + + "xecution_id.name}/{id.node_execution_id." + + "node_id}/{id.task_id.project}/{id.task_i" + + "d.domain}/{id.task_id.name}/{id.task_id." + + "version}/{id.retry_attempt}\022\230\002\n\022ListTask" + + "Executions\022(.flyteidl.admin.TaskExecutio" + + "nListRequest\032!.flyteidl.admin.TaskExecut" + + "ionList\"\264\001\202\323\344\223\002\255\001\022\252\001/api/v1/task_executi" + + "ons/{node_execution_id.execution_id.proj" + + "ect}/{node_execution_id.execution_id.dom" + + "ain}/{node_execution_id.execution_id.nam" + + "e}/{node_execution_id.node_id}\022\234\003\n\024GetTa" + + "skExecutionData\022+.flyteidl.admin.TaskExe" + + "cutionGetDataRequest\032,.flyteidl.admin.Ta" + + "skExecutionGetDataResponse\"\250\002\202\323\344\223\002\241\002\022\236\002/" + + "api/v1/data/task_executions/{id.node_exe" + + "cution_id.execution_id.project}/{id.node" + + "_execution_id.execution_id.domain}/{id.n" + + "ode_execution_id.execution_id.name}/{id." + + "node_execution_id.node_id}/{id.task_id.p" + + "roject}/{id.task_id.domain}/{id.task_id." + + "name}/{id.task_id.version}/{id.retry_att" + + "empt}B5Z3github.com/lyft/flyteidl/gen/pb" + + "-go/flyteidl/serviceb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + flyteidl.admin.ProjectOuterClass.getDescriptor(), + flyteidl.admin.TaskOuterClass.getDescriptor(), + flyteidl.admin.WorkflowOuterClass.getDescriptor(), + flyteidl.admin.LaunchPlanOuterClass.getDescriptor(), + flyteidl.admin.Event.getDescriptor(), + flyteidl.admin.ExecutionOuterClass.getDescriptor(), + flyteidl.admin.NodeExecutionOuterClass.getDescriptor(), + flyteidl.admin.TaskExecutionOuterClass.getDescriptor(), + flyteidl.admin.Common.getDescriptor(), + grpc.gateway.protoc_gen_swagger.options.Annotations.getDescriptor(), + }, assigner); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(grpc.gateway.protoc_gen_swagger.options.Annotations.openapiv2Operation); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + flyteidl.admin.ProjectOuterClass.getDescriptor(); + flyteidl.admin.TaskOuterClass.getDescriptor(); + flyteidl.admin.WorkflowOuterClass.getDescriptor(); + flyteidl.admin.LaunchPlanOuterClass.getDescriptor(); + flyteidl.admin.Event.getDescriptor(); + flyteidl.admin.ExecutionOuterClass.getDescriptor(); + flyteidl.admin.NodeExecutionOuterClass.getDescriptor(); + flyteidl.admin.TaskExecutionOuterClass.getDescriptor(); + flyteidl.admin.Common.getDescriptor(); + grpc.gateway.protoc_gen_swagger.options.Annotations.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts new file mode 100644 index 0000000000..be9daff9f4 --- /dev/null +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -0,0 +1,12804 @@ +import * as $protobuf from "protobufjs"; +/** Namespace flyteidl. */ +export namespace flyteidl { + + /** Namespace core. */ + namespace core { + + /** Properties of a ConnectionSet. */ + interface IConnectionSet { + + /** ConnectionSet downstream */ + downstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); + + /** ConnectionSet upstream */ + upstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); + } + + /** Represents a ConnectionSet. */ + class ConnectionSet implements IConnectionSet { + + /** + * Constructs a new ConnectionSet. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IConnectionSet); + + /** ConnectionSet downstream. */ + public downstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; + + /** ConnectionSet upstream. */ + public upstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; + + /** + * Creates a new ConnectionSet instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionSet instance + */ + public static create(properties?: flyteidl.core.IConnectionSet): flyteidl.core.ConnectionSet; + + /** + * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. + * @param message ConnectionSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IConnectionSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConnectionSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConnectionSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet; + + /** + * Verifies a ConnectionSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ConnectionSet { + + /** Properties of an IdList. */ + interface IIdList { + + /** IdList ids */ + ids?: (string[]|null); + } + + /** Represents an IdList. */ + class IdList implements IIdList { + + /** + * Constructs a new IdList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ConnectionSet.IIdList); + + /** IdList ids. */ + public ids: string[]; + + /** + * Creates a new IdList instance using the specified properties. + * @param [properties] Properties to set + * @returns IdList instance + */ + public static create(properties?: flyteidl.core.ConnectionSet.IIdList): flyteidl.core.ConnectionSet.IdList; + + /** + * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. + * @param message IdList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ConnectionSet.IIdList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IdList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IdList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet.IdList; + + /** + * Verifies an IdList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a CompiledWorkflow. */ + interface ICompiledWorkflow { + + /** CompiledWorkflow template */ + template?: (flyteidl.core.IWorkflowTemplate|null); + + /** CompiledWorkflow connections */ + connections?: (flyteidl.core.IConnectionSet|null); + } + + /** Represents a CompiledWorkflow. */ + class CompiledWorkflow implements ICompiledWorkflow { + + /** + * Constructs a new CompiledWorkflow. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledWorkflow); + + /** CompiledWorkflow template. */ + public template?: (flyteidl.core.IWorkflowTemplate|null); + + /** CompiledWorkflow connections. */ + public connections?: (flyteidl.core.IConnectionSet|null); + + /** + * Creates a new CompiledWorkflow instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledWorkflow instance + */ + public static create(properties?: flyteidl.core.ICompiledWorkflow): flyteidl.core.CompiledWorkflow; + + /** + * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. + * @param message CompiledWorkflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledWorkflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledWorkflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflow; + + /** + * Verifies a CompiledWorkflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledTask. */ + interface ICompiledTask { + + /** CompiledTask template */ + template?: (flyteidl.core.ITaskTemplate|null); + } + + /** Represents a CompiledTask. */ + class CompiledTask implements ICompiledTask { + + /** + * Constructs a new CompiledTask. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledTask); + + /** CompiledTask template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** + * Creates a new CompiledTask instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledTask instance + */ + public static create(properties?: flyteidl.core.ICompiledTask): flyteidl.core.CompiledTask; + + /** + * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. + * @param message CompiledTask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledTask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledTask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledTask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledTask; + + /** + * Verifies a CompiledTask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledWorkflowClosure. */ + interface ICompiledWorkflowClosure { + + /** CompiledWorkflowClosure primary */ + primary?: (flyteidl.core.ICompiledWorkflow|null); + + /** CompiledWorkflowClosure subWorkflows */ + subWorkflows?: (flyteidl.core.ICompiledWorkflow[]|null); + + /** CompiledWorkflowClosure tasks */ + tasks?: (flyteidl.core.ICompiledTask[]|null); + } + + /** Represents a CompiledWorkflowClosure. */ + class CompiledWorkflowClosure implements ICompiledWorkflowClosure { + + /** + * Constructs a new CompiledWorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledWorkflowClosure); + + /** CompiledWorkflowClosure primary. */ + public primary?: (flyteidl.core.ICompiledWorkflow|null); + + /** CompiledWorkflowClosure subWorkflows. */ + public subWorkflows: flyteidl.core.ICompiledWorkflow[]; + + /** CompiledWorkflowClosure tasks. */ + public tasks: flyteidl.core.ICompiledTask[]; + + /** + * Creates a new CompiledWorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledWorkflowClosure instance + */ + public static create(properties?: flyteidl.core.ICompiledWorkflowClosure): flyteidl.core.CompiledWorkflowClosure; + + /** + * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. + * @param message CompiledWorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledWorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflowClosure; + + /** + * Verifies a CompiledWorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an IfBlock. */ + interface IIfBlock { + + /** IfBlock condition */ + condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode */ + thenNode?: (flyteidl.core.INode|null); + } + + /** Represents an IfBlock. */ + class IfBlock implements IIfBlock { + + /** + * Constructs a new IfBlock. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIfBlock); + + /** IfBlock condition. */ + public condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode. */ + public thenNode?: (flyteidl.core.INode|null); + + /** + * Creates a new IfBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns IfBlock instance + */ + public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; + + /** + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @param message IfBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IfBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IfBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfBlock; + + /** + * Verifies an IfBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an IfElseBlock. */ + interface IIfElseBlock { + + /** IfElseBlock case */ + "case"?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other */ + other?: (flyteidl.core.IIfBlock[]|null); + + /** IfElseBlock elseNode */ + elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error */ + error?: (flyteidl.core.IError|null); + } + + /** Represents an IfElseBlock. */ + class IfElseBlock implements IIfElseBlock { + + /** + * Constructs a new IfElseBlock. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIfElseBlock); + + /** IfElseBlock case. */ + public case?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other. */ + public other: flyteidl.core.IIfBlock[]; + + /** IfElseBlock elseNode. */ + public elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error. */ + public error?: (flyteidl.core.IError|null); + + /** IfElseBlock default. */ + public default_?: ("elseNode"|"error"); + + /** + * Creates a new IfElseBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns IfElseBlock instance + */ + public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; + + /** + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @param message IfElseBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IfElseBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IfElseBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfElseBlock; + + /** + * Verifies an IfElseBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BranchNode. */ + interface IBranchNode { + + /** BranchNode ifElse */ + ifElse?: (flyteidl.core.IIfElseBlock|null); + } + + /** Represents a BranchNode. */ + class BranchNode implements IBranchNode { + + /** + * Constructs a new BranchNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBranchNode); + + /** BranchNode ifElse. */ + public ifElse?: (flyteidl.core.IIfElseBlock|null); + + /** + * Creates a new BranchNode instance using the specified properties. + * @param [properties] Properties to set + * @returns BranchNode instance + */ + public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @param message BranchNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BranchNode; + + /** + * Verifies a BranchNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNode. */ + interface ITaskNode { + + /** TaskNode referenceId */ + referenceId?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a TaskNode. */ + class TaskNode implements ITaskNode { + + /** + * Constructs a new TaskNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskNode); + + /** TaskNode referenceId. */ + public referenceId?: (flyteidl.core.IIdentifier|null); + + /** TaskNode reference. */ + public reference?: "referenceId"; + + /** + * Creates a new TaskNode instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNode instance + */ + public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; + + /** + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @param message TaskNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNode; + + /** + * Verifies a TaskNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNode. */ + interface IWorkflowNode { + + /** WorkflowNode launchplanRef */ + launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef */ + subWorkflowRef?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowNode. */ + class WorkflowNode implements IWorkflowNode { + + /** + * Constructs a new WorkflowNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowNode); + + /** WorkflowNode launchplanRef. */ + public launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef. */ + public subWorkflowRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode reference. */ + public reference?: ("launchplanRef"|"subWorkflowRef"); + + /** + * Creates a new WorkflowNode instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNode instance + */ + public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; + + /** + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @param message WorkflowNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowNode; + + /** + * Verifies a WorkflowNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeMetadata. */ + interface INodeMetadata { + + /** NodeMetadata name */ + name?: (string|null); + + /** NodeMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + } + + /** Represents a NodeMetadata. */ + class NodeMetadata implements INodeMetadata { + + /** + * Constructs a new NodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeMetadata); + + /** NodeMetadata name. */ + public name: string; + + /** NodeMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** + * Creates a new NodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeMetadata instance + */ + public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; + + /** + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @param message NodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeMetadata; + + /** + * Verifies a NodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Alias. */ + interface IAlias { + + /** Alias var */ + "var"?: (string|null); + + /** Alias alias */ + alias?: (string|null); + } + + /** Represents an Alias. */ + class Alias implements IAlias { + + /** + * Constructs a new Alias. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IAlias); + + /** Alias var. */ + public var: string; + + /** Alias alias. */ + public alias: string; + + /** + * Creates a new Alias instance using the specified properties. + * @param [properties] Properties to set + * @returns Alias instance + */ + public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; + + /** + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @param message Alias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Alias message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Alias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Alias; + + /** + * Verifies an Alias message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Node. */ + interface INode { + + /** Node id */ + id?: (string|null); + + /** Node metadata */ + metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs */ + inputs?: (flyteidl.core.IBinding[]|null); + + /** Node upstreamNodeIds */ + upstreamNodeIds?: (string[]|null); + + /** Node outputAliases */ + outputAliases?: (flyteidl.core.IAlias[]|null); + + /** Node taskNode */ + taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode */ + workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode */ + branchNode?: (flyteidl.core.IBranchNode|null); + } + + /** Represents a Node. */ + class Node implements INode { + + /** + * Constructs a new Node. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INode); + + /** Node id. */ + public id: string; + + /** Node metadata. */ + public metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs. */ + public inputs: flyteidl.core.IBinding[]; + + /** Node upstreamNodeIds. */ + public upstreamNodeIds: string[]; + + /** Node outputAliases. */ + public outputAliases: flyteidl.core.IAlias[]; + + /** Node taskNode. */ + public taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode. */ + public workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode. */ + public branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node target. */ + public target?: ("taskNode"|"workflowNode"|"branchNode"); + + /** + * Creates a new Node instance using the specified properties. + * @param [properties] Properties to set + * @returns Node instance + */ + public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; + + /** + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Node message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Node; + + /** + * Verifies a Node message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowMetadata. */ + interface IWorkflowMetadata { + } + + /** Represents a WorkflowMetadata. */ + class WorkflowMetadata implements IWorkflowMetadata { + + /** + * Constructs a new WorkflowMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowMetadata); + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMetadata instance + */ + public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @param message WorkflowMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadata; + + /** + * Verifies a WorkflowMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowTemplate. */ + interface IWorkflowTemplate { + + /** WorkflowTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowTemplate metadata */ + metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** WorkflowTemplate outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** WorkflowTemplate failureNode */ + failureNode?: (flyteidl.core.INode|null); + } + + /** Represents a WorkflowTemplate. */ + class WorkflowTemplate implements IWorkflowTemplate { + + /** + * Constructs a new WorkflowTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowTemplate); + + /** WorkflowTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowTemplate metadata. */ + public metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes. */ + public nodes: flyteidl.core.INode[]; + + /** WorkflowTemplate outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** WorkflowTemplate failureNode. */ + public failureNode?: (flyteidl.core.INode|null); + + /** + * Creates a new WorkflowTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowTemplate instance + */ + public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; + + /** + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @param message WorkflowTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowTemplate; + + /** + * Verifies a WorkflowTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ComparisonExpression. */ + interface IComparisonExpression { + + /** ComparisonExpression operator */ + operator?: (flyteidl.core.ComparisonExpression.Operator|null); + + /** ComparisonExpression leftValue */ + leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue */ + rightValue?: (flyteidl.core.IOperand|null); + } + + /** Represents a ComparisonExpression. */ + class ComparisonExpression implements IComparisonExpression { + + /** + * Constructs a new ComparisonExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IComparisonExpression); + + /** ComparisonExpression operator. */ + public operator: flyteidl.core.ComparisonExpression.Operator; + + /** ComparisonExpression leftValue. */ + public leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue. */ + public rightValue?: (flyteidl.core.IOperand|null); + + /** + * Creates a new ComparisonExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns ComparisonExpression instance + */ + public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; + + /** + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @param message ComparisonExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComparisonExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComparisonExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ComparisonExpression; + + /** + * Verifies a ComparisonExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ComparisonExpression { + + /** Operator enum. */ + enum Operator { + EQ = 0, + NEQ = 1, + GT = 2, + GTE = 3, + LT = 4, + LTE = 5 + } + } + + /** Properties of an Operand. */ + interface IOperand { + + /** Operand primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var */ + "var"?: (string|null); + } + + /** Represents an Operand. */ + class Operand implements IOperand { + + /** + * Constructs a new Operand. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOperand); + + /** Operand primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var. */ + public var: string; + + /** Operand val. */ + public val?: ("primitive"|"var"); + + /** + * Creates a new Operand instance using the specified properties. + * @param [properties] Properties to set + * @returns Operand instance + */ + public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; + + /** + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @param message Operand message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operand message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operand + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Operand; + + /** + * Verifies an Operand message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BooleanExpression. */ + interface IBooleanExpression { + + /** BooleanExpression conjunction */ + conjunction?: (flyteidl.core.IConjunctionExpression|null); + + /** BooleanExpression comparison */ + comparison?: (flyteidl.core.IComparisonExpression|null); + } + + /** Represents a BooleanExpression. */ + class BooleanExpression implements IBooleanExpression { + + /** + * Constructs a new BooleanExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBooleanExpression); + + /** BooleanExpression conjunction. */ + public conjunction?: (flyteidl.core.IConjunctionExpression|null); + + /** BooleanExpression comparison. */ + public comparison?: (flyteidl.core.IComparisonExpression|null); + + /** BooleanExpression expr. */ + public expr?: ("conjunction"|"comparison"); + + /** + * Creates a new BooleanExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns BooleanExpression instance + */ + public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; + + /** + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @param message BooleanExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BooleanExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BooleanExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BooleanExpression; + + /** + * Verifies a BooleanExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ConjunctionExpression. */ + interface IConjunctionExpression { + + /** ConjunctionExpression operator */ + operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); + + /** ConjunctionExpression leftExpression */ + leftExpression?: (flyteidl.core.IBooleanExpression|null); + + /** ConjunctionExpression rightExpression */ + rightExpression?: (flyteidl.core.IBooleanExpression|null); + } + + /** Represents a ConjunctionExpression. */ + class ConjunctionExpression implements IConjunctionExpression { + + /** + * Constructs a new ConjunctionExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IConjunctionExpression); + + /** ConjunctionExpression operator. */ + public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; + + /** ConjunctionExpression leftExpression. */ + public leftExpression?: (flyteidl.core.IBooleanExpression|null); + + /** ConjunctionExpression rightExpression. */ + public rightExpression?: (flyteidl.core.IBooleanExpression|null); + + /** + * Creates a new ConjunctionExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns ConjunctionExpression instance + */ + public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; + + /** + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @param message ConjunctionExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConjunctionExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConjunctionExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConjunctionExpression; + + /** + * Verifies a ConjunctionExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ConjunctionExpression { + + /** LogicalOperator enum. */ + enum LogicalOperator { + AND = 0, + OR = 1 + } + } + + /** Properties of a Primitive. */ + interface IPrimitive { + + /** Primitive integer */ + integer?: (Long|null); + + /** Primitive floatValue */ + floatValue?: (number|null); + + /** Primitive stringValue */ + stringValue?: (string|null); + + /** Primitive boolean */ + boolean?: (boolean|null); + + /** Primitive datetime */ + datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a Primitive. */ + class Primitive implements IPrimitive { + + /** + * Constructs a new Primitive. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IPrimitive); + + /** Primitive integer. */ + public integer: Long; + + /** Primitive floatValue. */ + public floatValue: number; + + /** Primitive stringValue. */ + public stringValue: string; + + /** Primitive boolean. */ + public boolean: boolean; + + /** Primitive datetime. */ + public datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** Primitive value. */ + public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); + + /** + * Creates a new Primitive instance using the specified properties. + * @param [properties] Properties to set + * @returns Primitive instance + */ + public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; + + /** + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @param message Primitive message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Primitive message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Primitive + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Primitive; + + /** + * Verifies a Primitive message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Void. */ + interface IVoid { + } + + /** Represents a Void. */ + class Void implements IVoid { + + /** + * Constructs a new Void. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVoid); + + /** + * Creates a new Void instance using the specified properties. + * @param [properties] Properties to set + * @returns Void instance + */ + public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; + + /** + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @param message Void message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Void message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Void + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Void; + + /** + * Verifies a Void message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Blob. */ + interface IBlob { + + /** Blob metadata */ + metadata?: (flyteidl.core.IBlobMetadata|null); + + /** Blob uri */ + uri?: (string|null); + } + + /** Represents a Blob. */ + class Blob implements IBlob { + + /** + * Constructs a new Blob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlob); + + /** Blob metadata. */ + public metadata?: (flyteidl.core.IBlobMetadata|null); + + /** Blob uri. */ + public uri: string; + + /** + * Creates a new Blob instance using the specified properties. + * @param [properties] Properties to set + * @returns Blob instance + */ + public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; + + /** + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @param message Blob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Blob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Blob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Blob; + + /** + * Verifies a Blob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BlobMetadata. */ + interface IBlobMetadata { + + /** BlobMetadata type */ + type?: (flyteidl.core.IBlobType|null); + } + + /** Represents a BlobMetadata. */ + class BlobMetadata implements IBlobMetadata { + + /** + * Constructs a new BlobMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlobMetadata); + + /** BlobMetadata type. */ + public type?: (flyteidl.core.IBlobType|null); + + /** + * Creates a new BlobMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BlobMetadata instance + */ + public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; + + /** + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @param message BlobMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlobMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlobMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobMetadata; + + /** + * Verifies a BlobMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Binary. */ + interface IBinary { + + /** Binary value */ + value?: (Uint8Array|null); + + /** Binary tag */ + tag?: (string|null); + } + + /** Represents a Binary. */ + class Binary implements IBinary { + + /** + * Constructs a new Binary. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBinary); + + /** Binary value. */ + public value: Uint8Array; + + /** Binary tag. */ + public tag: string; + + /** + * Creates a new Binary instance using the specified properties. + * @param [properties] Properties to set + * @returns Binary instance + */ + public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; + + /** + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @param message Binary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binary; + + /** + * Verifies a Binary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Schema. */ + interface ISchema { + + /** Schema uri */ + uri?: (string|null); + + /** Schema type */ + type?: (flyteidl.core.ISchemaType|null); + } + + /** Represents a Schema. */ + class Schema implements ISchema { + + /** + * Constructs a new Schema. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISchema); + + /** Schema uri. */ + public uri: string; + + /** Schema type. */ + public type?: (flyteidl.core.ISchemaType|null); + + /** + * Creates a new Schema instance using the specified properties. + * @param [properties] Properties to set + * @returns Schema instance + */ + public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; + + /** + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @param message Schema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Schema; + + /** + * Verifies a Schema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Scalar. */ + interface IScalar { + + /** Scalar primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Scalar blob */ + blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary */ + binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema */ + schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType */ + noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error */ + error?: (flyteidl.core.IError|null); + + /** Scalar generic */ + generic?: (google.protobuf.IStruct|null); + } + + /** Represents a Scalar. */ + class Scalar implements IScalar { + + /** + * Constructs a new Scalar. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IScalar); + + /** Scalar primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Scalar blob. */ + public blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary. */ + public binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema. */ + public schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType. */ + public noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error. */ + public error?: (flyteidl.core.IError|null); + + /** Scalar generic. */ + public generic?: (google.protobuf.IStruct|null); + + /** Scalar value. */ + public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"); + + /** + * Creates a new Scalar instance using the specified properties. + * @param [properties] Properties to set + * @returns Scalar instance + */ + public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scalar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Scalar; + + /** + * Verifies a Scalar message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Literal. */ + interface ILiteral { + + /** Literal scalar */ + scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection */ + collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map */ + map?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a Literal. */ + class Literal implements ILiteral { + + /** + * Constructs a new Literal. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteral); + + /** Literal scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection. */ + public collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map. */ + public map?: (flyteidl.core.ILiteralMap|null); + + /** Literal value. */ + public value?: ("scalar"|"collection"|"map"); + + /** + * Creates a new Literal instance using the specified properties. + * @param [properties] Properties to set + * @returns Literal instance + */ + public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @param message Literal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Literal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Literal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Literal; + + /** + * Verifies a Literal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralCollection. */ + interface ILiteralCollection { + + /** LiteralCollection literals */ + literals?: (flyteidl.core.ILiteral[]|null); + } + + /** Represents a LiteralCollection. */ + class LiteralCollection implements ILiteralCollection { + + /** + * Constructs a new LiteralCollection. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralCollection); + + /** LiteralCollection literals. */ + public literals: flyteidl.core.ILiteral[]; + + /** + * Creates a new LiteralCollection instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralCollection instance + */ + public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; + + /** + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @param message LiteralCollection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralCollection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralCollection; + + /** + * Verifies a LiteralCollection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralMap. */ + interface ILiteralMap { + + /** LiteralMap literals */ + literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); + } + + /** Represents a LiteralMap. */ + class LiteralMap implements ILiteralMap { + + /** + * Constructs a new LiteralMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralMap); + + /** LiteralMap literals. */ + public literals: { [k: string]: flyteidl.core.ILiteral }; + + /** + * Creates a new LiteralMap instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralMap instance + */ + public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; + + /** + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @param message LiteralMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralMap; + + /** + * Verifies a LiteralMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingDataCollection. */ + interface IBindingDataCollection { + + /** BindingDataCollection bindings */ + bindings?: (flyteidl.core.IBindingData[]|null); + } + + /** Represents a BindingDataCollection. */ + class BindingDataCollection implements IBindingDataCollection { + + /** + * Constructs a new BindingDataCollection. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingDataCollection); + + /** BindingDataCollection bindings. */ + public bindings: flyteidl.core.IBindingData[]; + + /** + * Creates a new BindingDataCollection instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataCollection instance + */ + public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; + + /** + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @param message BindingDataCollection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDataCollection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataCollection; + + /** + * Verifies a BindingDataCollection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingDataMap. */ + interface IBindingDataMap { + + /** BindingDataMap bindings */ + bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); + } + + /** Represents a BindingDataMap. */ + class BindingDataMap implements IBindingDataMap { + + /** + * Constructs a new BindingDataMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingDataMap); + + /** BindingDataMap bindings. */ + public bindings: { [k: string]: flyteidl.core.IBindingData }; + + /** + * Creates a new BindingDataMap instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataMap instance + */ + public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; + + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @param message BindingDataMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataMap; + + /** + * Verifies a BindingDataMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingData. */ + interface IBindingData { + + /** BindingData scalar */ + scalar?: (flyteidl.core.IScalar|null); + + /** BindingData collection */ + collection?: (flyteidl.core.IBindingDataCollection|null); + + /** BindingData promise */ + promise?: (flyteidl.core.IOutputReference|null); + + /** BindingData map */ + map?: (flyteidl.core.IBindingDataMap|null); + } + + /** Represents a BindingData. */ + class BindingData implements IBindingData { + + /** + * Constructs a new BindingData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingData); + + /** BindingData scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** BindingData collection. */ + public collection?: (flyteidl.core.IBindingDataCollection|null); + + /** BindingData promise. */ + public promise?: (flyteidl.core.IOutputReference|null); + + /** BindingData map. */ + public map?: (flyteidl.core.IBindingDataMap|null); + + /** BindingData value. */ + public value?: ("scalar"|"collection"|"promise"|"map"); + + /** + * Creates a new BindingData instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingData instance + */ + public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; + + /** + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @param message BindingData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingData; + + /** + * Verifies a BindingData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Binding. */ + interface IBinding { + + /** Binding var */ + "var"?: (string|null); + + /** Binding binding */ + binding?: (flyteidl.core.IBindingData|null); + } + + /** Represents a Binding. */ + class Binding implements IBinding { + + /** + * Constructs a new Binding. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBinding); + + /** Binding var. */ + public var: string; + + /** Binding binding. */ + public binding?: (flyteidl.core.IBindingData|null); + + /** + * Creates a new Binding instance using the specified properties. + * @param [properties] Properties to set + * @returns Binding instance + */ + public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; + + /** + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binding; + + /** + * Verifies a Binding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a KeyValuePair. */ + interface IKeyValuePair { + + /** KeyValuePair key */ + key?: (string|null); + + /** KeyValuePair value */ + value?: (string|null); + } + + /** Represents a KeyValuePair. */ + class KeyValuePair implements IKeyValuePair { + + /** + * Constructs a new KeyValuePair. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IKeyValuePair); + + /** KeyValuePair key. */ + public key: string; + + /** KeyValuePair value. */ + public value: string; + + /** + * Creates a new KeyValuePair instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyValuePair instance + */ + public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; + + /** + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @param message KeyValuePair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyValuePair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.KeyValuePair; + + /** + * Verifies a KeyValuePair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a RetryStrategy. */ + interface IRetryStrategy { + + /** RetryStrategy retries */ + retries?: (number|null); + } + + /** Represents a RetryStrategy. */ + class RetryStrategy implements IRetryStrategy { + + /** + * Constructs a new RetryStrategy. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IRetryStrategy); + + /** RetryStrategy retries. */ + public retries: number; + + /** + * Creates a new RetryStrategy instance using the specified properties. + * @param [properties] Properties to set + * @returns RetryStrategy instance + */ + public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; + + /** + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @param message RetryStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetryStrategy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetryStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RetryStrategy; + + /** + * Verifies a RetryStrategy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** SimpleType enum. */ + enum SimpleType { + NONE = 0, + INTEGER = 1, + FLOAT = 2, + STRING = 3, + BOOLEAN = 4, + DATETIME = 5, + DURATION = 6, + BINARY = 7, + ERROR = 8, + STRUCT = 9 + } + + /** Properties of a SchemaType. */ + interface ISchemaType { + + /** SchemaType columns */ + columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); + } + + /** Represents a SchemaType. */ + class SchemaType implements ISchemaType { + + /** + * Constructs a new SchemaType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISchemaType); + + /** SchemaType columns. */ + public columns: flyteidl.core.SchemaType.ISchemaColumn[]; + + /** + * Creates a new SchemaType instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaType instance + */ + public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; + + /** + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @param message SchemaType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType; + + /** + * Verifies a SchemaType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaType { + + /** Properties of a SchemaColumn. */ + interface ISchemaColumn { + + /** SchemaColumn name */ + name?: (string|null); + + /** SchemaColumn type */ + type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); + } + + /** Represents a SchemaColumn. */ + class SchemaColumn implements ISchemaColumn { + + /** + * Constructs a new SchemaColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); + + /** SchemaColumn name. */ + public name: string; + + /** SchemaColumn type. */ + public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaColumn instance + */ + public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @param message SchemaColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Verifies a SchemaColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaColumn { + + /** SchemaColumnType enum. */ + enum SchemaColumnType { + INTEGER = 0, + FLOAT = 1, + STRING = 2, + BOOLEAN = 3, + DATETIME = 4, + DURATION = 5 + } + } + } + + /** Properties of a BlobType. */ + interface IBlobType { + + /** BlobType format */ + format?: (string|null); + + /** BlobType dimensionality */ + dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); + } + + /** Represents a BlobType. */ + class BlobType implements IBlobType { + + /** + * Constructs a new BlobType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlobType); + + /** BlobType format. */ + public format: string; + + /** BlobType dimensionality. */ + public dimensionality: flyteidl.core.BlobType.BlobDimensionality; + + /** + * Creates a new BlobType instance using the specified properties. + * @param [properties] Properties to set + * @returns BlobType instance + */ + public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; + + /** + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @param message BlobType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlobType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlobType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobType; + + /** + * Verifies a BlobType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace BlobType { + + /** BlobDimensionality enum. */ + enum BlobDimensionality { + SINGLE = 0, + MULTIPART = 1 + } + } + + /** Properties of a LiteralType. */ + interface ILiteralType { + + /** LiteralType simple */ + simple?: (flyteidl.core.SimpleType|null); + + /** LiteralType schema */ + schema?: (flyteidl.core.ISchemaType|null); + + /** LiteralType collectionType */ + collectionType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType mapValueType */ + mapValueType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType blob */ + blob?: (flyteidl.core.IBlobType|null); + + /** LiteralType metadata */ + metadata?: (google.protobuf.IStruct|null); + } + + /** Represents a LiteralType. */ + class LiteralType implements ILiteralType { + + /** + * Constructs a new LiteralType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralType); + + /** LiteralType simple. */ + public simple: flyteidl.core.SimpleType; + + /** LiteralType schema. */ + public schema?: (flyteidl.core.ISchemaType|null); + + /** LiteralType collectionType. */ + public collectionType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType mapValueType. */ + public mapValueType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType blob. */ + public blob?: (flyteidl.core.IBlobType|null); + + /** LiteralType metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** LiteralType type. */ + public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"); + + /** + * Creates a new LiteralType instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralType instance + */ + public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @param message LiteralType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralType; + + /** + * Verifies a LiteralType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an OutputReference. */ + interface IOutputReference { + + /** OutputReference nodeId */ + nodeId?: (string|null); + + /** OutputReference var */ + "var"?: (string|null); + } + + /** Represents an OutputReference. */ + class OutputReference implements IOutputReference { + + /** + * Constructs a new OutputReference. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOutputReference); + + /** OutputReference nodeId. */ + public nodeId: string; + + /** OutputReference var. */ + public var: string; + + /** + * Creates a new OutputReference instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputReference instance + */ + public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; + + /** + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @param message OutputReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OutputReference; + + /** + * Verifies an OutputReference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Error. */ + interface IError { + + /** Error failedNodeId */ + failedNodeId?: (string|null); + + /** Error message */ + message?: (string|null); + } + + /** Represents an Error. */ + class Error implements IError { + + /** + * Constructs a new Error. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IError); + + /** Error failedNodeId. */ + public failedNodeId: string; + + /** Error message. */ + public message: string; + + /** + * Creates a new Error instance using the specified properties. + * @param [properties] Properties to set + * @returns Error instance + */ + public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; + + /** + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @param message Error message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Error message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Error + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Error; + + /** + * Verifies an Error message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** ResourceType enum. */ + enum ResourceType { + UNSPECIFIED = 0, + TASK = 1, + WORKFLOW = 2, + LAUNCH_PLAN = 3 + } + + /** Properties of an Identifier. */ + interface IIdentifier { + + /** Identifier resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** Identifier project */ + project?: (string|null); + + /** Identifier domain */ + domain?: (string|null); + + /** Identifier name */ + name?: (string|null); + + /** Identifier version */ + version?: (string|null); + } + + /** Represents an Identifier. */ + class Identifier implements IIdentifier { + + /** + * Constructs a new Identifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIdentifier); + + /** Identifier resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** Identifier project. */ + public project: string; + + /** Identifier domain. */ + public domain: string; + + /** Identifier name. */ + public name: string; + + /** Identifier version. */ + public version: string; + + /** + * Creates a new Identifier instance using the specified properties. + * @param [properties] Properties to set + * @returns Identifier instance + */ + public static create(properties?: flyteidl.core.IIdentifier): flyteidl.core.Identifier; + + /** + * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. + * @param message Identifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Identifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Identifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identifier; + + /** + * Verifies an Identifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionIdentifier. */ + interface IWorkflowExecutionIdentifier { + + /** WorkflowExecutionIdentifier project */ + project?: (string|null); + + /** WorkflowExecutionIdentifier domain */ + domain?: (string|null); + + /** WorkflowExecutionIdentifier name */ + name?: (string|null); + } + + /** Represents a WorkflowExecutionIdentifier. */ + class WorkflowExecutionIdentifier implements IWorkflowExecutionIdentifier { + + /** + * Constructs a new WorkflowExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowExecutionIdentifier); + + /** WorkflowExecutionIdentifier project. */ + public project: string; + + /** WorkflowExecutionIdentifier domain. */ + public domain: string; + + /** WorkflowExecutionIdentifier name. */ + public name: string; + + /** + * Creates a new WorkflowExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.IWorkflowExecutionIdentifier): flyteidl.core.WorkflowExecutionIdentifier; + + /** + * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. + * @param message WorkflowExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecutionIdentifier; + + /** + * Verifies a WorkflowExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionIdentifier. */ + interface INodeExecutionIdentifier { + + /** NodeExecutionIdentifier nodeId */ + nodeId?: (string|null); + + /** NodeExecutionIdentifier executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a NodeExecutionIdentifier. */ + class NodeExecutionIdentifier implements INodeExecutionIdentifier { + + /** + * Constructs a new NodeExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeExecutionIdentifier); + + /** NodeExecutionIdentifier nodeId. */ + public nodeId: string; + + /** NodeExecutionIdentifier executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.INodeExecutionIdentifier): flyteidl.core.NodeExecutionIdentifier; + + /** + * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. + * @param message NodeExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecutionIdentifier; + + /** + * Verifies a NodeExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionIdentifier. */ + interface ITaskExecutionIdentifier { + + /** TaskExecutionIdentifier taskId */ + taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionIdentifier nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionIdentifier retryAttempt */ + retryAttempt?: (number|null); + } + + /** Represents a TaskExecutionIdentifier. */ + class TaskExecutionIdentifier implements ITaskExecutionIdentifier { + + /** + * Constructs a new TaskExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskExecutionIdentifier); + + /** TaskExecutionIdentifier taskId. */ + public taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionIdentifier nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionIdentifier retryAttempt. */ + public retryAttempt: number; + + /** + * Creates a new TaskExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.ITaskExecutionIdentifier): flyteidl.core.TaskExecutionIdentifier; + + /** + * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. + * @param message TaskExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecutionIdentifier; + + /** + * Verifies a TaskExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Variable. */ + interface IVariable { + + /** Variable type */ + type?: (flyteidl.core.ILiteralType|null); + + /** Variable description */ + description?: (string|null); + } + + /** Represents a Variable. */ + class Variable implements IVariable { + + /** + * Constructs a new Variable. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVariable); + + /** Variable type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** Variable description. */ + public description: string; + + /** + * Creates a new Variable instance using the specified properties. + * @param [properties] Properties to set + * @returns Variable instance + */ + public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; + + /** + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @param message Variable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Variable; + + /** + * Verifies a Variable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a VariableMap. */ + interface IVariableMap { + + /** VariableMap variables */ + variables?: ({ [k: string]: flyteidl.core.IVariable }|null); + } + + /** Represents a VariableMap. */ + class VariableMap implements IVariableMap { + + /** + * Constructs a new VariableMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVariableMap); + + /** VariableMap variables. */ + public variables: { [k: string]: flyteidl.core.IVariable }; + + /** + * Creates a new VariableMap instance using the specified properties. + * @param [properties] Properties to set + * @returns VariableMap instance + */ + public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; + + /** + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @param message VariableMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VariableMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VariableMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.VariableMap; + + /** + * Verifies a VariableMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypedInterface. */ + interface ITypedInterface { + + /** TypedInterface inputs */ + inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs */ + outputs?: (flyteidl.core.IVariableMap|null); + } + + /** Represents a TypedInterface. */ + class TypedInterface implements ITypedInterface { + + /** + * Constructs a new TypedInterface. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypedInterface); + + /** TypedInterface inputs. */ + public inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs. */ + public outputs?: (flyteidl.core.IVariableMap|null); + + /** + * Creates a new TypedInterface instance using the specified properties. + * @param [properties] Properties to set + * @returns TypedInterface instance + */ + public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; + + /** + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @param message TypedInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypedInterface message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypedInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypedInterface; + + /** + * Verifies a TypedInterface message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter var */ + "var"?: (flyteidl.core.IVariable|null); + + /** Parameter default */ + "default"?: (flyteidl.core.ILiteral|null); + + /** Parameter required */ + required?: (boolean|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IParameter); + + /** Parameter var. */ + public var?: (flyteidl.core.IVariable|null); + + /** Parameter default. */ + public default?: (flyteidl.core.ILiteral|null); + + /** Parameter required. */ + public required: boolean; + + /** Parameter behavior. */ + public behavior?: ("default"|"required"); + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParameterMap. */ + interface IParameterMap { + + /** ParameterMap parameters */ + parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); + } + + /** Represents a ParameterMap. */ + class ParameterMap implements IParameterMap { + + /** + * Constructs a new ParameterMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IParameterMap); + + /** ParameterMap parameters. */ + public parameters: { [k: string]: flyteidl.core.IParameter }; + + /** + * Creates a new ParameterMap instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterMap instance + */ + public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; + + /** + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @param message ParameterMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParameterMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ParameterMap; + + /** + * Verifies a ParameterMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Resources. */ + interface IResources { + + /** Resources requests */ + requests?: (flyteidl.core.Resources.IResourceEntry[]|null); + + /** Resources limits */ + limits?: (flyteidl.core.Resources.IResourceEntry[]|null); + } + + /** Represents a Resources. */ + class Resources implements IResources { + + /** + * Constructs a new Resources. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IResources); + + /** Resources requests. */ + public requests: flyteidl.core.Resources.IResourceEntry[]; + + /** Resources limits. */ + public limits: flyteidl.core.Resources.IResourceEntry[]; + + /** + * Creates a new Resources instance using the specified properties. + * @param [properties] Properties to set + * @returns Resources instance + */ + public static create(properties?: flyteidl.core.IResources): flyteidl.core.Resources; + + /** + * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. + * @param message Resources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IResources, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Resources message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Resources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources; + + /** + * Verifies a Resources message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Resources { + + /** ResourceName enum. */ + enum ResourceName { + UNKNOWN = 0, + CPU = 1, + GPU = 2, + MEMORY = 3, + STORAGE = 4 + } + + /** Properties of a ResourceEntry. */ + interface IResourceEntry { + + /** ResourceEntry name */ + name?: (flyteidl.core.Resources.ResourceName|null); + + /** ResourceEntry value */ + value?: (string|null); + } + + /** Represents a ResourceEntry. */ + class ResourceEntry implements IResourceEntry { + + /** + * Constructs a new ResourceEntry. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.Resources.IResourceEntry); + + /** ResourceEntry name. */ + public name: flyteidl.core.Resources.ResourceName; + + /** ResourceEntry value. */ + public value: string; + + /** + * Creates a new ResourceEntry instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceEntry instance + */ + public static create(properties?: flyteidl.core.Resources.IResourceEntry): flyteidl.core.Resources.ResourceEntry; + + /** + * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. + * @param message ResourceEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.Resources.IResourceEntry, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources.ResourceEntry; + + /** + * Verifies a ResourceEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a RuntimeMetadata. */ + interface IRuntimeMetadata { + + /** RuntimeMetadata type */ + type?: (flyteidl.core.RuntimeMetadata.RuntimeType|null); + + /** RuntimeMetadata version */ + version?: (string|null); + + /** RuntimeMetadata flavor */ + flavor?: (string|null); + } + + /** Represents a RuntimeMetadata. */ + class RuntimeMetadata implements IRuntimeMetadata { + + /** + * Constructs a new RuntimeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IRuntimeMetadata); + + /** RuntimeMetadata type. */ + public type: flyteidl.core.RuntimeMetadata.RuntimeType; + + /** RuntimeMetadata version. */ + public version: string; + + /** RuntimeMetadata flavor. */ + public flavor: string; + + /** + * Creates a new RuntimeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeMetadata instance + */ + public static create(properties?: flyteidl.core.IRuntimeMetadata): flyteidl.core.RuntimeMetadata; + + /** + * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. + * @param message RuntimeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IRuntimeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RuntimeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RuntimeMetadata; + + /** + * Verifies a RuntimeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace RuntimeMetadata { + + /** RuntimeType enum. */ + enum RuntimeType { + OTHER = 0, + FLYTE_SDK = 1 + } + } + + /** Properties of a TaskMetadata. */ + interface ITaskMetadata { + + /** TaskMetadata discoverable */ + discoverable?: (boolean|null); + + /** TaskMetadata runtime */ + runtime?: (flyteidl.core.IRuntimeMetadata|null); + + /** TaskMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** TaskMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + + /** TaskMetadata discoveryVersion */ + discoveryVersion?: (string|null); + + /** TaskMetadata deprecatedErrorMessage */ + deprecatedErrorMessage?: (string|null); + } + + /** Represents a TaskMetadata. */ + class TaskMetadata implements ITaskMetadata { + + /** + * Constructs a new TaskMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskMetadata); + + /** TaskMetadata discoverable. */ + public discoverable: boolean; + + /** TaskMetadata runtime. */ + public runtime?: (flyteidl.core.IRuntimeMetadata|null); + + /** TaskMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** TaskMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** TaskMetadata discoveryVersion. */ + public discoveryVersion: string; + + /** TaskMetadata deprecatedErrorMessage. */ + public deprecatedErrorMessage: string; + + /** + * Creates a new TaskMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskMetadata instance + */ + public static create(properties?: flyteidl.core.ITaskMetadata): flyteidl.core.TaskMetadata; + + /** + * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. + * @param message TaskMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskMetadata; + + /** + * Verifies a TaskMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskTemplate. */ + interface ITaskTemplate { + + /** TaskTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** TaskTemplate type */ + type?: (string|null); + + /** TaskTemplate metadata */ + metadata?: (flyteidl.core.ITaskMetadata|null); + + /** TaskTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** TaskTemplate custom */ + custom?: (google.protobuf.IStruct|null); + + /** TaskTemplate container */ + container?: (flyteidl.core.IContainer|null); + } + + /** Represents a TaskTemplate. */ + class TaskTemplate implements ITaskTemplate { + + /** + * Constructs a new TaskTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskTemplate); + + /** TaskTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** TaskTemplate type. */ + public type: string; + + /** TaskTemplate metadata. */ + public metadata?: (flyteidl.core.ITaskMetadata|null); + + /** TaskTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** TaskTemplate custom. */ + public custom?: (google.protobuf.IStruct|null); + + /** TaskTemplate container. */ + public container?: (flyteidl.core.IContainer|null); + + /** TaskTemplate target. */ + public target?: "container"; + + /** + * Creates a new TaskTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskTemplate instance + */ + public static create(properties?: flyteidl.core.ITaskTemplate): flyteidl.core.TaskTemplate; + + /** + * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. + * @param message TaskTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskTemplate; + + /** + * Verifies a TaskTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ContainerPort. */ + interface IContainerPort { + + /** ContainerPort containerPort */ + containerPort?: (number|null); + } + + /** Represents a ContainerPort. */ + class ContainerPort implements IContainerPort { + + /** + * Constructs a new ContainerPort. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainerPort); + + /** ContainerPort containerPort. */ + public containerPort: number; + + /** + * Creates a new ContainerPort instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerPort instance + */ + public static create(properties?: flyteidl.core.IContainerPort): flyteidl.core.ContainerPort; + + /** + * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. + * @param message ContainerPort message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainerPort, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerPort message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerPort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerPort; + + /** + * Verifies a ContainerPort message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Container. */ + interface IContainer { + + /** Container image */ + image?: (string|null); + + /** Container command */ + command?: (string[]|null); + + /** Container args */ + args?: (string[]|null); + + /** Container resources */ + resources?: (flyteidl.core.IResources|null); + + /** Container env */ + env?: (flyteidl.core.IKeyValuePair[]|null); + + /** Container config */ + config?: (flyteidl.core.IKeyValuePair[]|null); + + /** Container ports */ + ports?: (flyteidl.core.IContainerPort[]|null); + } + + /** Represents a Container. */ + class Container implements IContainer { + + /** + * Constructs a new Container. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainer); + + /** Container image. */ + public image: string; + + /** Container command. */ + public command: string[]; + + /** Container args. */ + public args: string[]; + + /** Container resources. */ + public resources?: (flyteidl.core.IResources|null); + + /** Container env. */ + public env: flyteidl.core.IKeyValuePair[]; + + /** Container config. */ + public config: flyteidl.core.IKeyValuePair[]; + + /** Container ports. */ + public ports: flyteidl.core.IContainerPort[]; + + /** + * Creates a new Container instance using the specified properties. + * @param [properties] Properties to set + * @returns Container instance + */ + public static create(properties?: flyteidl.core.IContainer): flyteidl.core.Container; + + /** + * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Container message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Container; + + /** + * Verifies a Container message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicJobSpec. */ + interface IDynamicJobSpec { + + /** DynamicJobSpec nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** DynamicJobSpec minSuccesses */ + minSuccesses?: (Long|null); + + /** DynamicJobSpec outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** DynamicJobSpec tasks */ + tasks?: (flyteidl.core.ITaskTemplate[]|null); + + /** DynamicJobSpec subworkflows */ + subworkflows?: (flyteidl.core.IWorkflowTemplate[]|null); + } + + /** Represents a DynamicJobSpec. */ + class DynamicJobSpec implements IDynamicJobSpec { + + /** + * Constructs a new DynamicJobSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IDynamicJobSpec); + + /** DynamicJobSpec nodes. */ + public nodes: flyteidl.core.INode[]; + + /** DynamicJobSpec minSuccesses. */ + public minSuccesses: Long; + + /** DynamicJobSpec outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** DynamicJobSpec tasks. */ + public tasks: flyteidl.core.ITaskTemplate[]; + + /** DynamicJobSpec subworkflows. */ + public subworkflows: flyteidl.core.IWorkflowTemplate[]; + + /** + * Creates a new DynamicJobSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicJobSpec instance + */ + public static create(properties?: flyteidl.core.IDynamicJobSpec): flyteidl.core.DynamicJobSpec; + + /** + * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. + * @param message DynamicJobSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IDynamicJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicJobSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DynamicJobSpec; + + /** + * Verifies a DynamicJobSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ContainerError. */ + interface IContainerError { + + /** ContainerError code */ + code?: (string|null); + + /** ContainerError message */ + message?: (string|null); + + /** ContainerError kind */ + kind?: (flyteidl.core.ContainerError.Kind|null); + } + + /** Represents a ContainerError. */ + class ContainerError implements IContainerError { + + /** + * Constructs a new ContainerError. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainerError); + + /** ContainerError code. */ + public code: string; + + /** ContainerError message. */ + public message: string; + + /** ContainerError kind. */ + public kind: flyteidl.core.ContainerError.Kind; + + /** + * Creates a new ContainerError instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerError instance + */ + public static create(properties?: flyteidl.core.IContainerError): flyteidl.core.ContainerError; + + /** + * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. + * @param message ContainerError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainerError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerError; + + /** + * Verifies a ContainerError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ContainerError { + + /** Kind enum. */ + enum Kind { + NON_RECOVERABLE = 0, + RECOVERABLE = 1 + } + } + + /** Properties of an ErrorDocument. */ + interface IErrorDocument { + + /** ErrorDocument error */ + error?: (flyteidl.core.IContainerError|null); + } + + /** Represents an ErrorDocument. */ + class ErrorDocument implements IErrorDocument { + + /** + * Constructs a new ErrorDocument. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IErrorDocument); + + /** ErrorDocument error. */ + public error?: (flyteidl.core.IContainerError|null); + + /** + * Creates a new ErrorDocument instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorDocument instance + */ + public static create(properties?: flyteidl.core.IErrorDocument): flyteidl.core.ErrorDocument; + + /** + * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. + * @param message ErrorDocument message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IErrorDocument, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorDocument message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorDocument + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ErrorDocument; + + /** + * Verifies an ErrorDocument message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecution. */ + interface IWorkflowExecution { + } + + /** Represents a WorkflowExecution. */ + class WorkflowExecution implements IWorkflowExecution { + + /** + * Constructs a new WorkflowExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowExecution); + + /** + * Creates a new WorkflowExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecution instance + */ + public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; + + /** + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @param message WorkflowExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecution; + + /** + * Verifies a WorkflowExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace WorkflowExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDING = 3, + SUCCEEDED = 4, + FAILING = 5, + FAILED = 6, + ABORTED = 7, + TIMED_OUT = 8 + } + } + + /** Properties of a NodeExecution. */ + interface INodeExecution { + } + + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { + + /** + * Constructs a new NodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeExecution); + + /** + * Creates a new NodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecution instance + */ + public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecution; + + /** + * Verifies a NodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace NodeExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + FAILING = 4, + FAILED = 5, + ABORTED = 6, + SKIPPED = 7, + TIMED_OUT = 8 + } + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { + + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskExecution); + + /** + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance + */ + public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecution; + + /** + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + ABORTED = 4, + FAILED = 5 + } + } + + /** Properties of an ExecutionError. */ + interface IExecutionError { + + /** ExecutionError code */ + code?: (string|null); + + /** ExecutionError message */ + message?: (string|null); + + /** ExecutionError errorUri */ + errorUri?: (string|null); + } + + /** Represents an ExecutionError. */ + class ExecutionError implements IExecutionError { + + /** + * Constructs a new ExecutionError. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IExecutionError); + + /** ExecutionError code. */ + public code: string; + + /** ExecutionError message. */ + public message: string; + + /** ExecutionError errorUri. */ + public errorUri: string; + + /** + * Creates a new ExecutionError instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionError instance + */ + public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; + + /** + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @param message ExecutionError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionError; + + /** + * Verifies an ExecutionError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskLog. */ + interface ITaskLog { + + /** TaskLog uri */ + uri?: (string|null); + + /** TaskLog name */ + name?: (string|null); + + /** TaskLog messageFormat */ + messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); + + /** TaskLog ttl */ + ttl?: (google.protobuf.IDuration|null); + } + + /** Represents a TaskLog. */ + class TaskLog implements ITaskLog { + + /** + * Constructs a new TaskLog. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskLog); + + /** TaskLog uri. */ + public uri: string; + + /** TaskLog name. */ + public name: string; + + /** TaskLog messageFormat. */ + public messageFormat: flyteidl.core.TaskLog.MessageFormat; + + /** TaskLog ttl. */ + public ttl?: (google.protobuf.IDuration|null); + + /** + * Creates a new TaskLog instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskLog instance + */ + public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; + + /** + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @param message TaskLog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskLog message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskLog; + + /** + * Verifies a TaskLog message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskLog { + + /** MessageFormat enum. */ + enum MessageFormat { + UNKNOWN = 0, + CSV = 1, + JSON = 2 + } + } + + /** Properties of a WorkflowClosure. */ + interface IWorkflowClosure { + + /** WorkflowClosure workflow */ + workflow?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowClosure tasks */ + tasks?: (flyteidl.core.ITaskTemplate[]|null); + } + + /** Represents a WorkflowClosure. */ + class WorkflowClosure implements IWorkflowClosure { + + /** + * Constructs a new WorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowClosure); + + /** WorkflowClosure workflow. */ + public workflow?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowClosure tasks. */ + public tasks: flyteidl.core.ITaskTemplate[]; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowClosure instance + */ + public static create(properties?: flyteidl.core.IWorkflowClosure): flyteidl.core.WorkflowClosure; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. + * @param message WorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowClosure; + + /** + * Verifies a WorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace event. */ + namespace event { + + /** Properties of a WorkflowExecutionEvent. */ + interface IWorkflowExecutionEvent { + + /** WorkflowExecutionEvent executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionEvent producerId */ + producerId?: (string|null); + + /** WorkflowExecutionEvent phase */ + phase?: (flyteidl.core.WorkflowExecution.Phase|null); + + /** WorkflowExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** WorkflowExecutionEvent outputUri */ + outputUri?: (string|null); + + /** WorkflowExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + } + + /** Represents a WorkflowExecutionEvent. */ + class WorkflowExecutionEvent implements IWorkflowExecutionEvent { + + /** + * Constructs a new WorkflowExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IWorkflowExecutionEvent); + + /** WorkflowExecutionEvent executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionEvent producerId. */ + public producerId: string; + + /** WorkflowExecutionEvent phase. */ + public phase: flyteidl.core.WorkflowExecution.Phase; + + /** WorkflowExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** WorkflowExecutionEvent outputUri. */ + public outputUri: string; + + /** WorkflowExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** WorkflowExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"); + + /** + * Creates a new WorkflowExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEvent instance + */ + public static create(properties?: flyteidl.event.IWorkflowExecutionEvent): flyteidl.event.WorkflowExecutionEvent; + + /** + * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. + * @param message WorkflowExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IWorkflowExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowExecutionEvent; + + /** + * Verifies a WorkflowExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEvent. */ + interface INodeExecutionEvent { + + /** NodeExecutionEvent id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecutionEvent producerId */ + producerId?: (string|null); + + /** NodeExecutionEvent phase */ + phase?: (flyteidl.core.NodeExecution.Phase|null); + + /** NodeExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputUri */ + inputUri?: (string|null); + + /** NodeExecutionEvent outputUri */ + outputUri?: (string|null); + + /** NodeExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionEvent workflowNodeMetadata */ + workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); + + /** NodeExecutionEvent parentTaskMetadata */ + parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); + } + + /** Represents a NodeExecutionEvent. */ + class NodeExecutionEvent implements INodeExecutionEvent { + + /** + * Constructs a new NodeExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.INodeExecutionEvent); + + /** NodeExecutionEvent id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecutionEvent producerId. */ + public producerId: string; + + /** NodeExecutionEvent phase. */ + public phase: flyteidl.core.NodeExecution.Phase; + + /** NodeExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputUri. */ + public inputUri: string; + + /** NodeExecutionEvent outputUri. */ + public outputUri: string; + + /** NodeExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionEvent workflowNodeMetadata. */ + public workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); + + /** NodeExecutionEvent parentTaskMetadata. */ + public parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); + + /** NodeExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"); + + /** NodeExecutionEvent targetMetadata. */ + public targetMetadata?: "workflowNodeMetadata"; + + /** + * Creates a new NodeExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEvent instance + */ + public static create(properties?: flyteidl.event.INodeExecutionEvent): flyteidl.event.NodeExecutionEvent; + + /** + * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. + * @param message NodeExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.INodeExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.NodeExecutionEvent; + + /** + * Verifies a NodeExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNodeMetadata. */ + interface IWorkflowNodeMetadata { + + /** WorkflowNodeMetadata executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowNodeMetadata. */ + class WorkflowNodeMetadata implements IWorkflowNodeMetadata { + + /** + * Constructs a new WorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IWorkflowNodeMetadata); + + /** WorkflowNodeMetadata executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.event.IWorkflowNodeMetadata): flyteidl.event.WorkflowNodeMetadata; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. + * @param message WorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowNodeMetadata; + + /** + * Verifies a WorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParentTaskExecutionMetadata. */ + interface IParentTaskExecutionMetadata { + + /** ParentTaskExecutionMetadata id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a ParentTaskExecutionMetadata. */ + class ParentTaskExecutionMetadata implements IParentTaskExecutionMetadata { + + /** + * Constructs a new ParentTaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IParentTaskExecutionMetadata); + + /** ParentTaskExecutionMetadata id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new ParentTaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ParentTaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.IParentTaskExecutionMetadata): flyteidl.event.ParentTaskExecutionMetadata; + + /** + * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. + * @param message ParentTaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IParentTaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParentTaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentTaskExecutionMetadata; + + /** + * Verifies a ParentTaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEvent. */ + interface ITaskExecutionEvent { + + /** TaskExecutionEvent taskId */ + taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionEvent parentNodeExecutionId */ + parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionEvent retryAttempt */ + retryAttempt?: (number|null); + + /** TaskExecutionEvent phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** TaskExecutionEvent producerId */ + producerId?: (string|null); + + /** TaskExecutionEvent logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + + /** TaskExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputUri */ + inputUri?: (string|null); + + /** TaskExecutionEvent outputUri */ + outputUri?: (string|null); + + /** TaskExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionEvent customInfo */ + customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionEvent phaseVersion */ + phaseVersion?: (number|null); + } + + /** Represents a TaskExecutionEvent. */ + class TaskExecutionEvent implements ITaskExecutionEvent { + + /** + * Constructs a new TaskExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskExecutionEvent); + + /** TaskExecutionEvent taskId. */ + public taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionEvent parentNodeExecutionId. */ + public parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionEvent retryAttempt. */ + public retryAttempt: number; + + /** TaskExecutionEvent phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** TaskExecutionEvent producerId. */ + public producerId: string; + + /** TaskExecutionEvent logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** TaskExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputUri. */ + public inputUri: string; + + /** TaskExecutionEvent outputUri. */ + public outputUri: string; + + /** TaskExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionEvent customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionEvent phaseVersion. */ + public phaseVersion: number; + + /** TaskExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"); + + /** + * Creates a new TaskExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEvent instance + */ + public static create(properties?: flyteidl.event.ITaskExecutionEvent): flyteidl.event.TaskExecutionEvent; + + /** + * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. + * @param message TaskExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionEvent; + + /** + * Verifies a TaskExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace admin. */ + namespace admin { + + /** Properties of a NamedEntityIdentifier. */ + interface INamedEntityIdentifier { + + /** NamedEntityIdentifier project */ + project?: (string|null); + + /** NamedEntityIdentifier domain */ + domain?: (string|null); + + /** NamedEntityIdentifier name */ + name?: (string|null); + } + + /** Represents a NamedEntityIdentifier. */ + class NamedEntityIdentifier implements INamedEntityIdentifier { + + /** + * Constructs a new NamedEntityIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifier); + + /** NamedEntityIdentifier project. */ + public project: string; + + /** NamedEntityIdentifier domain. */ + public domain: string; + + /** NamedEntityIdentifier name. */ + public name: string; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifier instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifier): flyteidl.admin.NamedEntityIdentifier; + + /** + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * @param message NamedEntityIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifier; + + /** + * Verifies a NamedEntityIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Sort. */ + interface ISort { + + /** Sort key */ + key?: (string|null); + + /** Sort direction */ + direction?: (flyteidl.admin.Sort.Direction|null); + } + + /** Represents a Sort. */ + class Sort implements ISort { + + /** + * Constructs a new Sort. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISort); + + /** Sort key. */ + public key: string; + + /** Sort direction. */ + public direction: flyteidl.admin.Sort.Direction; + + /** + * Creates a new Sort instance using the specified properties. + * @param [properties] Properties to set + * @returns Sort instance + */ + public static create(properties?: flyteidl.admin.ISort): flyteidl.admin.Sort; + + /** + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * @param message Sort message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISort, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Sort message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Sort; + + /** + * Verifies a Sort message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Sort { + + /** Direction enum. */ + enum Direction { + DESCENDING = 0, + ASCENDING = 1 + } + } + + /** Properties of a NamedEntityIdentifierListRequest. */ + interface INamedEntityIdentifierListRequest { + + /** NamedEntityIdentifierListRequest project */ + project?: (string|null); + + /** NamedEntityIdentifierListRequest domain */ + domain?: (string|null); + + /** NamedEntityIdentifierListRequest limit */ + limit?: (number|null); + + /** NamedEntityIdentifierListRequest token */ + token?: (string|null); + + /** NamedEntityIdentifierListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a NamedEntityIdentifierListRequest. */ + class NamedEntityIdentifierListRequest implements INamedEntityIdentifierListRequest { + + /** + * Constructs a new NamedEntityIdentifierListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifierListRequest); + + /** NamedEntityIdentifierListRequest project. */ + public project: string; + + /** NamedEntityIdentifierListRequest domain. */ + public domain: string; + + /** NamedEntityIdentifierListRequest limit. */ + public limit: number; + + /** NamedEntityIdentifierListRequest token. */ + public token: string; + + /** NamedEntityIdentifierListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifierListRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifierListRequest): flyteidl.admin.NamedEntityIdentifierListRequest; + + /** + * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * @param message NamedEntityIdentifierListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifierListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifierListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierListRequest; + + /** + * Verifies a NamedEntityIdentifierListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityIdentifierList. */ + interface INamedEntityIdentifierList { + + /** NamedEntityIdentifierList entities */ + entities?: (flyteidl.admin.INamedEntityIdentifier[]|null); + + /** NamedEntityIdentifierList token */ + token?: (string|null); + } + + /** Represents a NamedEntityIdentifierList. */ + class NamedEntityIdentifierList implements INamedEntityIdentifierList { + + /** + * Constructs a new NamedEntityIdentifierList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifierList); + + /** NamedEntityIdentifierList entities. */ + public entities: flyteidl.admin.INamedEntityIdentifier[]; + + /** NamedEntityIdentifierList token. */ + public token: string; + + /** + * Creates a new NamedEntityIdentifierList instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifierList instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifierList): flyteidl.admin.NamedEntityIdentifierList; + + /** + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * @param message NamedEntityIdentifierList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifierList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifierList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierList; + + /** + * Verifies a NamedEntityIdentifierList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ObjectGetRequest. */ + interface IObjectGetRequest { + + /** ObjectGetRequest id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents an ObjectGetRequest. */ + class ObjectGetRequest implements IObjectGetRequest { + + /** + * Constructs a new ObjectGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IObjectGetRequest); + + /** ObjectGetRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new ObjectGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ObjectGetRequest instance + */ + public static create(properties?: flyteidl.admin.IObjectGetRequest): flyteidl.admin.ObjectGetRequest; + + /** + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. + * @param message ObjectGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IObjectGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ObjectGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ObjectGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ObjectGetRequest; + + /** + * Verifies an ObjectGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ResourceListRequest. */ + interface IResourceListRequest { + + /** ResourceListRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** ResourceListRequest limit */ + limit?: (number|null); + + /** ResourceListRequest token */ + token?: (string|null); + + /** ResourceListRequest filters */ + filters?: (string|null); + + /** ResourceListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a ResourceListRequest. */ + class ResourceListRequest implements IResourceListRequest { + + /** + * Constructs a new ResourceListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IResourceListRequest); + + /** ResourceListRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** ResourceListRequest limit. */ + public limit: number; + + /** ResourceListRequest token. */ + public token: string; + + /** ResourceListRequest filters. */ + public filters: string; + + /** ResourceListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new ResourceListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceListRequest instance + */ + public static create(properties?: flyteidl.admin.IResourceListRequest): flyteidl.admin.ResourceListRequest; + + /** + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * @param message ResourceListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IResourceListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ResourceListRequest; + + /** + * Verifies a ResourceListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EmailNotification. */ + interface IEmailNotification { + + /** EmailNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents an EmailNotification. */ + class EmailNotification implements IEmailNotification { + + /** + * Constructs a new EmailNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEmailNotification); + + /** EmailNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new EmailNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailNotification instance + */ + public static create(properties?: flyteidl.admin.IEmailNotification): flyteidl.admin.EmailNotification; + + /** + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * @param message EmailNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEmailNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailNotification; + + /** + * Verifies an EmailNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PagerDutyNotification. */ + interface IPagerDutyNotification { + + /** PagerDutyNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents a PagerDutyNotification. */ + class PagerDutyNotification implements IPagerDutyNotification { + + /** + * Constructs a new PagerDutyNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPagerDutyNotification); + + /** PagerDutyNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new PagerDutyNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns PagerDutyNotification instance + */ + public static create(properties?: flyteidl.admin.IPagerDutyNotification): flyteidl.admin.PagerDutyNotification; + + /** + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * @param message PagerDutyNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPagerDutyNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PagerDutyNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PagerDutyNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PagerDutyNotification; + + /** + * Verifies a PagerDutyNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SlackNotification. */ + interface ISlackNotification { + + /** SlackNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents a SlackNotification. */ + class SlackNotification implements ISlackNotification { + + /** + * Constructs a new SlackNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISlackNotification); + + /** SlackNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new SlackNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns SlackNotification instance + */ + public static create(properties?: flyteidl.admin.ISlackNotification): flyteidl.admin.SlackNotification; + + /** + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * @param message SlackNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISlackNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SlackNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SlackNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SlackNotification; + + /** + * Verifies a SlackNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Notification. */ + interface INotification { + + /** Notification phases */ + phases?: (flyteidl.core.WorkflowExecution.Phase[]|null); + + /** Notification email */ + email?: (flyteidl.admin.IEmailNotification|null); + + /** Notification pagerDuty */ + pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); + + /** Notification slack */ + slack?: (flyteidl.admin.ISlackNotification|null); + } + + /** Represents a Notification. */ + class Notification implements INotification { + + /** + * Constructs a new Notification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INotification); + + /** Notification phases. */ + public phases: flyteidl.core.WorkflowExecution.Phase[]; + + /** Notification email. */ + public email?: (flyteidl.admin.IEmailNotification|null); + + /** Notification pagerDuty. */ + public pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); + + /** Notification slack. */ + public slack?: (flyteidl.admin.ISlackNotification|null); + + /** Notification type. */ + public type?: ("email"|"pagerDuty"|"slack"); + + /** + * Creates a new Notification instance using the specified properties. + * @param [properties] Properties to set + * @returns Notification instance + */ + public static create(properties?: flyteidl.admin.INotification): flyteidl.admin.Notification; + + /** + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * @param message Notification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Notification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Notification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Notification; + + /** + * Verifies a Notification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UrlBlob. */ + interface IUrlBlob { + + /** UrlBlob url */ + url?: (string|null); + + /** UrlBlob bytes */ + bytes?: (Long|null); + } + + /** Represents an UrlBlob. */ + class UrlBlob implements IUrlBlob { + + /** + * Constructs a new UrlBlob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IUrlBlob); + + /** UrlBlob url. */ + public url: string; + + /** UrlBlob bytes. */ + public bytes: Long; + + /** + * Creates a new UrlBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlBlob instance + */ + public static create(properties?: flyteidl.admin.IUrlBlob): flyteidl.admin.UrlBlob; + + /** + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * @param message UrlBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IUrlBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.UrlBlob; + + /** + * Verifies an UrlBlob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Labels. */ + interface ILabels { + + /** Labels values */ + values?: ({ [k: string]: string }|null); + } + + /** Represents a Labels. */ + class Labels implements ILabels { + + /** + * Constructs a new Labels. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILabels); + + /** Labels values. */ + public values: { [k: string]: string }; + + /** + * Creates a new Labels instance using the specified properties. + * @param [properties] Properties to set + * @returns Labels instance + */ + public static create(properties?: flyteidl.admin.ILabels): flyteidl.admin.Labels; + + /** + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * @param message Labels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Labels message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Labels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Labels; + + /** + * Verifies a Labels message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Annotations. */ + interface IAnnotations { + + /** Annotations values */ + values?: ({ [k: string]: string }|null); + } + + /** Represents an Annotations. */ + class Annotations implements IAnnotations { + + /** + * Constructs a new Annotations. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAnnotations); + + /** Annotations values. */ + public values: { [k: string]: string }; + + /** + * Creates a new Annotations instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotations instance + */ + public static create(properties?: flyteidl.admin.IAnnotations): flyteidl.admin.Annotations; + + /** + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * @param message Annotations message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotations message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Annotations; + + /** + * Verifies an Annotations message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventErrorAlreadyInTerminalState. */ + interface IEventErrorAlreadyInTerminalState { + + /** EventErrorAlreadyInTerminalState currentPhase */ + currentPhase?: (string|null); + } + + /** Represents an EventErrorAlreadyInTerminalState. */ + class EventErrorAlreadyInTerminalState implements IEventErrorAlreadyInTerminalState { + + /** + * Constructs a new EventErrorAlreadyInTerminalState. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState); + + /** EventErrorAlreadyInTerminalState currentPhase. */ + public currentPhase: string; + + /** + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * @param [properties] Properties to set + * @returns EventErrorAlreadyInTerminalState instance + */ + public static create(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState): flyteidl.admin.EventErrorAlreadyInTerminalState; + + /** + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * @param message EventErrorAlreadyInTerminalState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventErrorAlreadyInTerminalState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventErrorAlreadyInTerminalState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorAlreadyInTerminalState; + + /** + * Verifies an EventErrorAlreadyInTerminalState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventFailureReason. */ + interface IEventFailureReason { + + /** EventFailureReason alreadyInTerminalState */ + alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); + } + + /** Represents an EventFailureReason. */ + class EventFailureReason implements IEventFailureReason { + + /** + * Constructs a new EventFailureReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventFailureReason); + + /** EventFailureReason alreadyInTerminalState. */ + public alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); + + /** EventFailureReason reason. */ + public reason?: "alreadyInTerminalState"; + + /** + * Creates a new EventFailureReason instance using the specified properties. + * @param [properties] Properties to set + * @returns EventFailureReason instance + */ + public static create(properties?: flyteidl.admin.IEventFailureReason): flyteidl.admin.EventFailureReason; + + /** + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * @param message EventFailureReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventFailureReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventFailureReason; + + /** + * Verifies an EventFailureReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEventRequest. */ + interface IWorkflowExecutionEventRequest { + + /** WorkflowExecutionEventRequest requestId */ + requestId?: (string|null); + + /** WorkflowExecutionEventRequest event */ + event?: (flyteidl.event.IWorkflowExecutionEvent|null); + } + + /** Represents a WorkflowExecutionEventRequest. */ + class WorkflowExecutionEventRequest implements IWorkflowExecutionEventRequest { + + /** + * Constructs a new WorkflowExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionEventRequest); + + /** WorkflowExecutionEventRequest requestId. */ + public requestId: string; + + /** WorkflowExecutionEventRequest event. */ + public event?: (flyteidl.event.IWorkflowExecutionEvent|null); + + /** + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionEventRequest): flyteidl.admin.WorkflowExecutionEventRequest; + + /** + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. + * @param message WorkflowExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventRequest; + + /** + * Verifies a WorkflowExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEventResponse. */ + interface IWorkflowExecutionEventResponse { + } + + /** Represents a WorkflowExecutionEventResponse. */ + class WorkflowExecutionEventResponse implements IWorkflowExecutionEventResponse { + + /** + * Constructs a new WorkflowExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionEventResponse); + + /** + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionEventResponse): flyteidl.admin.WorkflowExecutionEventResponse; + + /** + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * @param message WorkflowExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventResponse; + + /** + * Verifies a WorkflowExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEventRequest. */ + interface INodeExecutionEventRequest { + + /** NodeExecutionEventRequest requestId */ + requestId?: (string|null); + + /** NodeExecutionEventRequest event */ + event?: (flyteidl.event.INodeExecutionEvent|null); + } + + /** Represents a NodeExecutionEventRequest. */ + class NodeExecutionEventRequest implements INodeExecutionEventRequest { + + /** + * Constructs a new NodeExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionEventRequest); + + /** NodeExecutionEventRequest requestId. */ + public requestId: string; + + /** NodeExecutionEventRequest event. */ + public event?: (flyteidl.event.INodeExecutionEvent|null); + + /** + * Creates a new NodeExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionEventRequest): flyteidl.admin.NodeExecutionEventRequest; + + /** + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * @param message NodeExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventRequest; + + /** + * Verifies a NodeExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEventResponse. */ + interface INodeExecutionEventResponse { + } + + /** Represents a NodeExecutionEventResponse. */ + class NodeExecutionEventResponse implements INodeExecutionEventResponse { + + /** + * Constructs a new NodeExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionEventResponse); + + /** + * Creates a new NodeExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionEventResponse): flyteidl.admin.NodeExecutionEventResponse; + + /** + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * @param message NodeExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventResponse; + + /** + * Verifies a NodeExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEventRequest. */ + interface ITaskExecutionEventRequest { + + /** TaskExecutionEventRequest requestId */ + requestId?: (string|null); + + /** TaskExecutionEventRequest event */ + event?: (flyteidl.event.ITaskExecutionEvent|null); + } + + /** Represents a TaskExecutionEventRequest. */ + class TaskExecutionEventRequest implements ITaskExecutionEventRequest { + + /** + * Constructs a new TaskExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionEventRequest); + + /** TaskExecutionEventRequest requestId. */ + public requestId: string; + + /** TaskExecutionEventRequest event. */ + public event?: (flyteidl.event.ITaskExecutionEvent|null); + + /** + * Creates a new TaskExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionEventRequest): flyteidl.admin.TaskExecutionEventRequest; + + /** + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * @param message TaskExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventRequest; + + /** + * Verifies a TaskExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEventResponse. */ + interface ITaskExecutionEventResponse { + } + + /** Represents a TaskExecutionEventResponse. */ + class TaskExecutionEventResponse implements ITaskExecutionEventResponse { + + /** + * Constructs a new TaskExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionEventResponse); + + /** + * Creates a new TaskExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionEventResponse): flyteidl.admin.TaskExecutionEventResponse; + + /** + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * @param message TaskExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventResponse; + + /** + * Verifies a TaskExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionCreateRequest. */ + interface IExecutionCreateRequest { + + /** ExecutionCreateRequest project */ + project?: (string|null); + + /** ExecutionCreateRequest domain */ + domain?: (string|null); + + /** ExecutionCreateRequest name */ + name?: (string|null); + + /** ExecutionCreateRequest spec */ + spec?: (flyteidl.admin.IExecutionSpec|null); + } + + /** Represents an ExecutionCreateRequest. */ + class ExecutionCreateRequest implements IExecutionCreateRequest { + + /** + * Constructs a new ExecutionCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionCreateRequest); + + /** ExecutionCreateRequest project. */ + public project: string; + + /** ExecutionCreateRequest domain. */ + public domain: string; + + /** ExecutionCreateRequest name. */ + public name: string; + + /** ExecutionCreateRequest spec. */ + public spec?: (flyteidl.admin.IExecutionSpec|null); + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionCreateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionCreateRequest): flyteidl.admin.ExecutionCreateRequest; + + /** + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * @param message ExecutionCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateRequest; + + /** + * Verifies an ExecutionCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionRelaunchRequest. */ + interface IExecutionRelaunchRequest { + + /** ExecutionRelaunchRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRelaunchRequest name */ + name?: (string|null); + } + + /** Represents an ExecutionRelaunchRequest. */ + class ExecutionRelaunchRequest implements IExecutionRelaunchRequest { + + /** + * Constructs a new ExecutionRelaunchRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionRelaunchRequest); + + /** ExecutionRelaunchRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRelaunchRequest name. */ + public name: string; + + /** + * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionRelaunchRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionRelaunchRequest): flyteidl.admin.ExecutionRelaunchRequest; + + /** + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * @param message ExecutionRelaunchRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionRelaunchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionRelaunchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRelaunchRequest; + + /** + * Verifies an ExecutionRelaunchRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionCreateResponse. */ + interface IExecutionCreateResponse { + + /** ExecutionCreateResponse id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents an ExecutionCreateResponse. */ + class ExecutionCreateResponse implements IExecutionCreateResponse { + + /** + * Constructs a new ExecutionCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionCreateResponse); + + /** ExecutionCreateResponse id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new ExecutionCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionCreateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionCreateResponse): flyteidl.admin.ExecutionCreateResponse; + + /** + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * @param message ExecutionCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateResponse; + + /** + * Verifies an ExecutionCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetRequest. */ + interface IWorkflowExecutionGetRequest { + + /** WorkflowExecutionGetRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowExecutionGetRequest. */ + class WorkflowExecutionGetRequest implements IWorkflowExecutionGetRequest { + + /** + * Constructs a new WorkflowExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetRequest); + + /** WorkflowExecutionGetRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetRequest): flyteidl.admin.WorkflowExecutionGetRequest; + + /** + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * @param message WorkflowExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetRequest; + + /** + * Verifies a WorkflowExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Execution. */ + interface IExecution { + + /** Execution id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Execution spec */ + spec?: (flyteidl.admin.IExecutionSpec|null); + + /** Execution closure */ + closure?: (flyteidl.admin.IExecutionClosure|null); + } + + /** Represents an Execution. */ + class Execution implements IExecution { + + /** + * Constructs a new Execution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecution); + + /** Execution id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Execution spec. */ + public spec?: (flyteidl.admin.IExecutionSpec|null); + + /** Execution closure. */ + public closure?: (flyteidl.admin.IExecutionClosure|null); + + /** + * Creates a new Execution instance using the specified properties. + * @param [properties] Properties to set + * @returns Execution instance + */ + public static create(properties?: flyteidl.admin.IExecution): flyteidl.admin.Execution; + + /** + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Execution; + + /** + * Verifies an Execution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionList. */ + interface IExecutionList { + + /** ExecutionList executions */ + executions?: (flyteidl.admin.IExecution[]|null); + + /** ExecutionList token */ + token?: (string|null); + } + + /** Represents an ExecutionList. */ + class ExecutionList implements IExecutionList { + + /** + * Constructs a new ExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionList); + + /** ExecutionList executions. */ + public executions: flyteidl.admin.IExecution[]; + + /** ExecutionList token. */ + public token: string; + + /** + * Creates a new ExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionList instance + */ + public static create(properties?: flyteidl.admin.IExecutionList): flyteidl.admin.ExecutionList; + + /** + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * @param message ExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionList; + + /** + * Verifies an ExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralMapBlob. */ + interface ILiteralMapBlob { + + /** LiteralMapBlob values */ + values?: (flyteidl.core.ILiteralMap|null); + + /** LiteralMapBlob uri */ + uri?: (string|null); + } + + /** Represents a LiteralMapBlob. */ + class LiteralMapBlob implements ILiteralMapBlob { + + /** + * Constructs a new LiteralMapBlob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILiteralMapBlob); + + /** LiteralMapBlob values. */ + public values?: (flyteidl.core.ILiteralMap|null); + + /** LiteralMapBlob uri. */ + public uri: string; + + /** LiteralMapBlob data. */ + public data?: ("values"|"uri"); + + /** + * Creates a new LiteralMapBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralMapBlob instance + */ + public static create(properties?: flyteidl.admin.ILiteralMapBlob): flyteidl.admin.LiteralMapBlob; + + /** + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * @param message LiteralMapBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILiteralMapBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralMapBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralMapBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LiteralMapBlob; + + /** + * Verifies a LiteralMapBlob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionClosure. */ + interface IExecutionClosure { + + /** ExecutionClosure outputs */ + outputs?: (flyteidl.admin.ILiteralMapBlob|null); + + /** ExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** ExecutionClosure abortCause */ + abortCause?: (string|null); + + /** ExecutionClosure computedInputs */ + computedInputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure phase */ + phase?: (flyteidl.core.WorkflowExecution.Phase|null); + + /** ExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** ExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + + /** ExecutionClosure workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + } + + /** Represents an ExecutionClosure. */ + class ExecutionClosure implements IExecutionClosure { + + /** + * Constructs a new ExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionClosure); + + /** ExecutionClosure outputs. */ + public outputs?: (flyteidl.admin.ILiteralMapBlob|null); + + /** ExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** ExecutionClosure abortCause. */ + public abortCause: string; + + /** ExecutionClosure computedInputs. */ + public computedInputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure phase. */ + public phase: flyteidl.core.WorkflowExecution.Phase; + + /** ExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** ExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** ExecutionClosure workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** ExecutionClosure outputResult. */ + public outputResult?: ("outputs"|"error"|"abortCause"); + + /** + * Creates a new ExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.IExecutionClosure): flyteidl.admin.ExecutionClosure; + + /** + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * @param message ExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClosure; + + /** + * Verifies an ExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionMetadata. */ + interface IExecutionMetadata { + + /** ExecutionMetadata mode */ + mode?: (flyteidl.admin.ExecutionMetadata.ExecutionMode|null); + + /** ExecutionMetadata principal */ + principal?: (string|null); + + /** ExecutionMetadata nesting */ + nesting?: (number|null); + + /** ExecutionMetadata scheduledAt */ + scheduledAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionMetadata parentNodeExecution */ + parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** ExecutionMetadata referenceExecution */ + referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents an ExecutionMetadata. */ + class ExecutionMetadata implements IExecutionMetadata { + + /** + * Constructs a new ExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionMetadata); + + /** ExecutionMetadata mode. */ + public mode: flyteidl.admin.ExecutionMetadata.ExecutionMode; + + /** ExecutionMetadata principal. */ + public principal: string; + + /** ExecutionMetadata nesting. */ + public nesting: number; + + /** ExecutionMetadata scheduledAt. */ + public scheduledAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionMetadata parentNodeExecution. */ + public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** ExecutionMetadata referenceExecution. */ + public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new ExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionMetadata instance + */ + public static create(properties?: flyteidl.admin.IExecutionMetadata): flyteidl.admin.ExecutionMetadata; + + /** + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * @param message ExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionMetadata; + + /** + * Verifies an ExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ExecutionMetadata { + + /** ExecutionMode enum. */ + enum ExecutionMode { + MANUAL = 0, + SCHEDULED = 1, + SYSTEM = 2, + RELAUNCH = 3, + CHILD_WORKFLOW = 4 + } + } + + /** Properties of a NotificationList. */ + interface INotificationList { + + /** NotificationList notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + } + + /** Represents a NotificationList. */ + class NotificationList implements INotificationList { + + /** + * Constructs a new NotificationList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INotificationList); + + /** NotificationList notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** + * Creates a new NotificationList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationList instance + */ + public static create(properties?: flyteidl.admin.INotificationList): flyteidl.admin.NotificationList; + + /** + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * @param message NotificationList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INotificationList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NotificationList; + + /** + * Verifies a NotificationList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionSpec. */ + interface IExecutionSpec { + + /** ExecutionSpec launchPlan */ + launchPlan?: (flyteidl.core.IIdentifier|null); + + /** ExecutionSpec inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionSpec metadata */ + metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** ExecutionSpec notifications */ + notifications?: (flyteidl.admin.INotificationList|null); + + /** ExecutionSpec disableAll */ + disableAll?: (boolean|null); + + /** ExecutionSpec labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** ExecutionSpec annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + } + + /** Represents an ExecutionSpec. */ + class ExecutionSpec implements IExecutionSpec { + + /** + * Constructs a new ExecutionSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionSpec); + + /** ExecutionSpec launchPlan. */ + public launchPlan?: (flyteidl.core.IIdentifier|null); + + /** ExecutionSpec inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionSpec metadata. */ + public metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** ExecutionSpec notifications. */ + public notifications?: (flyteidl.admin.INotificationList|null); + + /** ExecutionSpec disableAll. */ + public disableAll: boolean; + + /** ExecutionSpec labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** ExecutionSpec annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** ExecutionSpec notificationOverrides. */ + public notificationOverrides?: ("notifications"|"disableAll"); + + /** + * Creates a new ExecutionSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionSpec instance + */ + public static create(properties?: flyteidl.admin.IExecutionSpec): flyteidl.admin.ExecutionSpec; + + /** + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * @param message ExecutionSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionSpec; + + /** + * Verifies an ExecutionSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionTerminateRequest. */ + interface IExecutionTerminateRequest { + + /** ExecutionTerminateRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionTerminateRequest cause */ + cause?: (string|null); + } + + /** Represents an ExecutionTerminateRequest. */ + class ExecutionTerminateRequest implements IExecutionTerminateRequest { + + /** + * Constructs a new ExecutionTerminateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionTerminateRequest); + + /** ExecutionTerminateRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionTerminateRequest cause. */ + public cause: string; + + /** + * Creates a new ExecutionTerminateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionTerminateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionTerminateRequest): flyteidl.admin.ExecutionTerminateRequest; + + /** + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * @param message ExecutionTerminateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionTerminateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionTerminateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateRequest; + + /** + * Verifies an ExecutionTerminateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionTerminateResponse. */ + interface IExecutionTerminateResponse { + } + + /** Represents an ExecutionTerminateResponse. */ + class ExecutionTerminateResponse implements IExecutionTerminateResponse { + + /** + * Constructs a new ExecutionTerminateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionTerminateResponse); + + /** + * Creates a new ExecutionTerminateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionTerminateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionTerminateResponse): flyteidl.admin.ExecutionTerminateResponse; + + /** + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. + * @param message ExecutionTerminateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionTerminateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionTerminateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateResponse; + + /** + * Verifies an ExecutionTerminateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetDataRequest. */ + interface IWorkflowExecutionGetDataRequest { + + /** WorkflowExecutionGetDataRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowExecutionGetDataRequest. */ + class WorkflowExecutionGetDataRequest implements IWorkflowExecutionGetDataRequest { + + /** + * Constructs a new WorkflowExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest); + + /** WorkflowExecutionGetDataRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest): flyteidl.admin.WorkflowExecutionGetDataRequest; + + /** + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * @param message WorkflowExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataRequest; + + /** + * Verifies a WorkflowExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetDataResponse. */ + interface IWorkflowExecutionGetDataResponse { + + /** WorkflowExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + } + + /** Represents a WorkflowExecutionGetDataResponse. */ + class WorkflowExecutionGetDataResponse implements IWorkflowExecutionGetDataResponse { + + /** + * Constructs a new WorkflowExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse); + + /** WorkflowExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** + * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse): flyteidl.admin.WorkflowExecutionGetDataResponse; + + /** + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * @param message WorkflowExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataResponse; + + /** + * Verifies a WorkflowExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanCreateRequest. */ + interface ILaunchPlanCreateRequest { + + /** LaunchPlanCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanCreateRequest spec */ + spec?: (flyteidl.admin.ILaunchPlanSpec|null); + } + + /** Represents a LaunchPlanCreateRequest. */ + class LaunchPlanCreateRequest implements ILaunchPlanCreateRequest { + + /** + * Constructs a new LaunchPlanCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanCreateRequest); + + /** LaunchPlanCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanCreateRequest spec. */ + public spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** + * Creates a new LaunchPlanCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanCreateRequest): flyteidl.admin.LaunchPlanCreateRequest; + + /** + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * @param message LaunchPlanCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateRequest; + + /** + * Verifies a LaunchPlanCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanCreateResponse. */ + interface ILaunchPlanCreateResponse { + } + + /** Represents a LaunchPlanCreateResponse. */ + class LaunchPlanCreateResponse implements ILaunchPlanCreateResponse { + + /** + * Constructs a new LaunchPlanCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanCreateResponse); + + /** + * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanCreateResponse instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanCreateResponse): flyteidl.admin.LaunchPlanCreateResponse; + + /** + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * @param message LaunchPlanCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateResponse; + + /** + * Verifies a LaunchPlanCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** LaunchPlanState enum. */ + enum LaunchPlanState { + INACTIVE = 0, + ACTIVE = 1 + } + + /** Properties of a LaunchPlan. */ + interface ILaunchPlan { + + /** LaunchPlan id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlan spec */ + spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** LaunchPlan closure */ + closure?: (flyteidl.admin.ILaunchPlanClosure|null); + } + + /** Represents a LaunchPlan. */ + class LaunchPlan implements ILaunchPlan { + + /** + * Constructs a new LaunchPlan. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlan); + + /** LaunchPlan id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlan spec. */ + public spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** LaunchPlan closure. */ + public closure?: (flyteidl.admin.ILaunchPlanClosure|null); + + /** + * Creates a new LaunchPlan instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlan instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlan): flyteidl.admin.LaunchPlan; + + /** + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * @param message LaunchPlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlan; + + /** + * Verifies a LaunchPlan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanList. */ + interface ILaunchPlanList { + + /** LaunchPlanList launchPlans */ + launchPlans?: (flyteidl.admin.ILaunchPlan[]|null); + + /** LaunchPlanList token */ + token?: (string|null); + } + + /** Represents a LaunchPlanList. */ + class LaunchPlanList implements ILaunchPlanList { + + /** + * Constructs a new LaunchPlanList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanList); + + /** LaunchPlanList launchPlans. */ + public launchPlans: flyteidl.admin.ILaunchPlan[]; + + /** LaunchPlanList token. */ + public token: string; + + /** + * Creates a new LaunchPlanList instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanList instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanList): flyteidl.admin.LaunchPlanList; + + /** + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * @param message LaunchPlanList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanList; + + /** + * Verifies a LaunchPlanList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Auth. */ + interface IAuth { + + /** Auth assumableIamRole */ + assumableIamRole?: (string|null); + + /** Auth kubernetesServiceAccount */ + kubernetesServiceAccount?: (string|null); + } + + /** Represents an Auth. */ + class Auth implements IAuth { + + /** + * Constructs a new Auth. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAuth); + + /** Auth assumableIamRole. */ + public assumableIamRole: string; + + /** Auth kubernetesServiceAccount. */ + public kubernetesServiceAccount: string; + + /** Auth method. */ + public method?: ("assumableIamRole"|"kubernetesServiceAccount"); + + /** + * Creates a new Auth instance using the specified properties. + * @param [properties] Properties to set + * @returns Auth instance + */ + public static create(properties?: flyteidl.admin.IAuth): flyteidl.admin.Auth; + + /** + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Auth; + + /** + * Verifies an Auth message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanSpec. */ + interface ILaunchPlanSpec { + + /** LaunchPlanSpec workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanSpec entityMetadata */ + entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); + + /** LaunchPlanSpec defaultInputs */ + defaultInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanSpec fixedInputs */ + fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** LaunchPlanSpec role */ + role?: (string|null); + + /** LaunchPlanSpec labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** LaunchPlanSpec annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** LaunchPlanSpec auth */ + auth?: (flyteidl.admin.IAuth|null); + } + + /** Represents a LaunchPlanSpec. */ + class LaunchPlanSpec implements ILaunchPlanSpec { + + /** + * Constructs a new LaunchPlanSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanSpec); + + /** LaunchPlanSpec workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanSpec entityMetadata. */ + public entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); + + /** LaunchPlanSpec defaultInputs. */ + public defaultInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanSpec fixedInputs. */ + public fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** LaunchPlanSpec role. */ + public role: string; + + /** LaunchPlanSpec labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** LaunchPlanSpec annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** LaunchPlanSpec auth. */ + public auth?: (flyteidl.admin.IAuth|null); + + /** + * Creates a new LaunchPlanSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanSpec instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanSpec): flyteidl.admin.LaunchPlanSpec; + + /** + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * @param message LaunchPlanSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanSpec; + + /** + * Verifies a LaunchPlanSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanClosure. */ + interface ILaunchPlanClosure { + + /** LaunchPlanClosure state */ + state?: (flyteidl.admin.LaunchPlanState|null); + + /** LaunchPlanClosure expectedInputs */ + expectedInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanClosure expectedOutputs */ + expectedOutputs?: (flyteidl.core.IVariableMap|null); + + /** LaunchPlanClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** LaunchPlanClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a LaunchPlanClosure. */ + class LaunchPlanClosure implements ILaunchPlanClosure { + + /** + * Constructs a new LaunchPlanClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanClosure); + + /** LaunchPlanClosure state. */ + public state: flyteidl.admin.LaunchPlanState; + + /** LaunchPlanClosure expectedInputs. */ + public expectedInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanClosure expectedOutputs. */ + public expectedOutputs?: (flyteidl.core.IVariableMap|null); + + /** LaunchPlanClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** LaunchPlanClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new LaunchPlanClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanClosure instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanClosure): flyteidl.admin.LaunchPlanClosure; + + /** + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * @param message LaunchPlanClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanClosure; + + /** + * Verifies a LaunchPlanClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanMetadata. */ + interface ILaunchPlanMetadata { + + /** LaunchPlanMetadata schedule */ + schedule?: (flyteidl.admin.ISchedule|null); + + /** LaunchPlanMetadata notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + } + + /** Represents a LaunchPlanMetadata. */ + class LaunchPlanMetadata implements ILaunchPlanMetadata { + + /** + * Constructs a new LaunchPlanMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanMetadata); + + /** LaunchPlanMetadata schedule. */ + public schedule?: (flyteidl.admin.ISchedule|null); + + /** LaunchPlanMetadata notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** + * Creates a new LaunchPlanMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanMetadata instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanMetadata): flyteidl.admin.LaunchPlanMetadata; + + /** + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * @param message LaunchPlanMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanMetadata; + + /** + * Verifies a LaunchPlanMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanUpdateRequest. */ + interface ILaunchPlanUpdateRequest { + + /** LaunchPlanUpdateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanUpdateRequest state */ + state?: (flyteidl.admin.LaunchPlanState|null); + } + + /** Represents a LaunchPlanUpdateRequest. */ + class LaunchPlanUpdateRequest implements ILaunchPlanUpdateRequest { + + /** + * Constructs a new LaunchPlanUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanUpdateRequest); + + /** LaunchPlanUpdateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanUpdateRequest state. */ + public state: flyteidl.admin.LaunchPlanState; + + /** + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanUpdateRequest): flyteidl.admin.LaunchPlanUpdateRequest; + + /** + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * @param message LaunchPlanUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateRequest; + + /** + * Verifies a LaunchPlanUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanUpdateResponse. */ + interface ILaunchPlanUpdateResponse { + } + + /** Represents a LaunchPlanUpdateResponse. */ + class LaunchPlanUpdateResponse implements ILaunchPlanUpdateResponse { + + /** + * Constructs a new LaunchPlanUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanUpdateResponse); + + /** + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanUpdateResponse): flyteidl.admin.LaunchPlanUpdateResponse; + + /** + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * @param message LaunchPlanUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateResponse; + + /** + * Verifies a LaunchPlanUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** FixedRateUnit enum. */ + enum FixedRateUnit { + MINUTE = 0, + HOUR = 1, + DAY = 2 + } + + /** Properties of a FixedRate. */ + interface IFixedRate { + + /** FixedRate value */ + value?: (number|null); + + /** FixedRate unit */ + unit?: (flyteidl.admin.FixedRateUnit|null); + } + + /** Represents a FixedRate. */ + class FixedRate implements IFixedRate { + + /** + * Constructs a new FixedRate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IFixedRate); + + /** FixedRate value. */ + public value: number; + + /** FixedRate unit. */ + public unit: flyteidl.admin.FixedRateUnit; + + /** + * Creates a new FixedRate instance using the specified properties. + * @param [properties] Properties to set + * @returns FixedRate instance + */ + public static create(properties?: flyteidl.admin.IFixedRate): flyteidl.admin.FixedRate; + + /** + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. + * @param message FixedRate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IFixedRate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FixedRate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FixedRate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FixedRate; + + /** + * Verifies a FixedRate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Schedule. */ + interface ISchedule { + + /** Schedule cronExpression */ + cronExpression?: (string|null); + + /** Schedule rate */ + rate?: (flyteidl.admin.IFixedRate|null); + + /** Schedule kickoffTimeInputArg */ + kickoffTimeInputArg?: (string|null); + } + + /** Represents a Schedule. */ + class Schedule implements ISchedule { + + /** + * Constructs a new Schedule. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISchedule); + + /** Schedule cronExpression. */ + public cronExpression: string; + + /** Schedule rate. */ + public rate?: (flyteidl.admin.IFixedRate|null); + + /** Schedule kickoffTimeInputArg. */ + public kickoffTimeInputArg: string; + + /** Schedule ScheduleExpression. */ + public ScheduleExpression?: ("cronExpression"|"rate"); + + /** + * Creates a new Schedule instance using the specified properties. + * @param [properties] Properties to set + * @returns Schedule instance + */ + public static create(properties?: flyteidl.admin.ISchedule): flyteidl.admin.Schedule; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * @param message Schedule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schedule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Schedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Schedule; + + /** + * Verifies a Schedule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetRequest. */ + interface INodeExecutionGetRequest { + + /** NodeExecutionGetRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a NodeExecutionGetRequest. */ + class NodeExecutionGetRequest implements INodeExecutionGetRequest { + + /** + * Constructs a new NodeExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetRequest); + + /** NodeExecutionGetRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetRequest): flyteidl.admin.NodeExecutionGetRequest; + + /** + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * @param message NodeExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetRequest; + + /** + * Verifies a NodeExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionListRequest. */ + interface INodeExecutionListRequest { + + /** NodeExecutionListRequest workflowExecutionId */ + workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** NodeExecutionListRequest limit */ + limit?: (number|null); + + /** NodeExecutionListRequest token */ + token?: (string|null); + + /** NodeExecutionListRequest filters */ + filters?: (string|null); + + /** NodeExecutionListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a NodeExecutionListRequest. */ + class NodeExecutionListRequest implements INodeExecutionListRequest { + + /** + * Constructs a new NodeExecutionListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionListRequest); + + /** NodeExecutionListRequest workflowExecutionId. */ + public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** NodeExecutionListRequest limit. */ + public limit: number; + + /** NodeExecutionListRequest token. */ + public token: string; + + /** NodeExecutionListRequest filters. */ + public filters: string; + + /** NodeExecutionListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new NodeExecutionListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionListRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionListRequest): flyteidl.admin.NodeExecutionListRequest; + + /** + * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * @param message NodeExecutionListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionListRequest; + + /** + * Verifies a NodeExecutionListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionForTaskListRequest. */ + interface INodeExecutionForTaskListRequest { + + /** NodeExecutionForTaskListRequest taskExecutionId */ + taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** NodeExecutionForTaskListRequest limit */ + limit?: (number|null); + + /** NodeExecutionForTaskListRequest token */ + token?: (string|null); + + /** NodeExecutionForTaskListRequest filters */ + filters?: (string|null); + + /** NodeExecutionForTaskListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a NodeExecutionForTaskListRequest. */ + class NodeExecutionForTaskListRequest implements INodeExecutionForTaskListRequest { + + /** + * Constructs a new NodeExecutionForTaskListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionForTaskListRequest); + + /** NodeExecutionForTaskListRequest taskExecutionId. */ + public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** NodeExecutionForTaskListRequest limit. */ + public limit: number; + + /** NodeExecutionForTaskListRequest token. */ + public token: string; + + /** NodeExecutionForTaskListRequest filters. */ + public filters: string; + + /** NodeExecutionForTaskListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionForTaskListRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionForTaskListRequest): flyteidl.admin.NodeExecutionForTaskListRequest; + + /** + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * @param message NodeExecutionForTaskListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionForTaskListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionForTaskListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionForTaskListRequest; + + /** + * Verifies a NodeExecutionForTaskListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecution. */ + interface INodeExecution { + + /** NodeExecution id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecution inputUri */ + inputUri?: (string|null); + + /** NodeExecution closure */ + closure?: (flyteidl.admin.INodeExecutionClosure|null); + } + + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { + + /** + * Constructs a new NodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecution); + + /** NodeExecution id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecution inputUri. */ + public inputUri: string; + + /** NodeExecution closure. */ + public closure?: (flyteidl.admin.INodeExecutionClosure|null); + + /** + * Creates a new NodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecution instance + */ + public static create(properties?: flyteidl.admin.INodeExecution): flyteidl.admin.NodeExecution; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecution; + + /** + * Verifies a NodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionList. */ + interface INodeExecutionList { + + /** NodeExecutionList nodeExecutions */ + nodeExecutions?: (flyteidl.admin.INodeExecution[]|null); + + /** NodeExecutionList token */ + token?: (string|null); + } + + /** Represents a NodeExecutionList. */ + class NodeExecutionList implements INodeExecutionList { + + /** + * Constructs a new NodeExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionList); + + /** NodeExecutionList nodeExecutions. */ + public nodeExecutions: flyteidl.admin.INodeExecution[]; + + /** NodeExecutionList token. */ + public token: string; + + /** + * Creates a new NodeExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionList instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionList): flyteidl.admin.NodeExecutionList; + + /** + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * @param message NodeExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionList; + + /** + * Verifies a NodeExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionClosure. */ + interface INodeExecutionClosure { + + /** NodeExecutionClosure outputUri */ + outputUri?: (string|null); + + /** NodeExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionClosure phase */ + phase?: (flyteidl.core.NodeExecution.Phase|null); + + /** NodeExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** NodeExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure workflowNodeMetadata */ + workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); + } + + /** Represents a NodeExecutionClosure. */ + class NodeExecutionClosure implements INodeExecutionClosure { + + /** + * Constructs a new NodeExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionClosure); + + /** NodeExecutionClosure outputUri. */ + public outputUri: string; + + /** NodeExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionClosure phase. */ + public phase: flyteidl.core.NodeExecution.Phase; + + /** NodeExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** NodeExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure workflowNodeMetadata. */ + public workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); + + /** NodeExecutionClosure outputResult. */ + public outputResult?: ("outputUri"|"error"); + + /** NodeExecutionClosure targetMetadata. */ + public targetMetadata?: "workflowNodeMetadata"; + + /** + * Creates a new NodeExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionClosure): flyteidl.admin.NodeExecutionClosure; + + /** + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * @param message NodeExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionClosure; + + /** + * Verifies a NodeExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNodeMetadata. */ + interface IWorkflowNodeMetadata { + + /** WorkflowNodeMetadata executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowNodeMetadata. */ + class WorkflowNodeMetadata implements IWorkflowNodeMetadata { + + /** + * Constructs a new WorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowNodeMetadata); + + /** WorkflowNodeMetadata executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.IWorkflowNodeMetadata): flyteidl.admin.WorkflowNodeMetadata; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * @param message WorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowNodeMetadata; + + /** + * Verifies a WorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetDataRequest. */ + interface INodeExecutionGetDataRequest { + + /** NodeExecutionGetDataRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a NodeExecutionGetDataRequest. */ + class NodeExecutionGetDataRequest implements INodeExecutionGetDataRequest { + + /** + * Constructs a new NodeExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetDataRequest); + + /** NodeExecutionGetDataRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetDataRequest): flyteidl.admin.NodeExecutionGetDataRequest; + + /** + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * @param message NodeExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataRequest; + + /** + * Verifies a NodeExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetDataResponse. */ + interface INodeExecutionGetDataResponse { + + /** NodeExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + } + + /** Represents a NodeExecutionGetDataResponse. */ + class NodeExecutionGetDataResponse implements INodeExecutionGetDataResponse { + + /** + * Constructs a new NodeExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetDataResponse); + + /** NodeExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** + * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetDataResponse): flyteidl.admin.NodeExecutionGetDataResponse; + + /** + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * @param message NodeExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataResponse; + + /** + * Verifies a NodeExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EmailMessage. */ + interface IEmailMessage { + + /** EmailMessage recipientsEmail */ + recipientsEmail?: (string[]|null); + + /** EmailMessage senderEmail */ + senderEmail?: (string|null); + + /** EmailMessage subjectLine */ + subjectLine?: (string|null); + + /** EmailMessage body */ + body?: (string|null); + } + + /** Represents an EmailMessage. */ + class EmailMessage implements IEmailMessage { + + /** + * Constructs a new EmailMessage. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEmailMessage); + + /** EmailMessage recipientsEmail. */ + public recipientsEmail: string[]; + + /** EmailMessage senderEmail. */ + public senderEmail: string; + + /** EmailMessage subjectLine. */ + public subjectLine: string; + + /** EmailMessage body. */ + public body: string; + + /** + * Creates a new EmailMessage instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailMessage instance + */ + public static create(properties?: flyteidl.admin.IEmailMessage): flyteidl.admin.EmailMessage; + + /** + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * @param message EmailMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEmailMessage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailMessage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailMessage; + + /** + * Verifies an EmailMessage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Domain. */ + interface IDomain { + + /** Domain id */ + id?: (string|null); + + /** Domain name */ + name?: (string|null); + } + + /** Represents a Domain. */ + class Domain implements IDomain { + + /** + * Constructs a new Domain. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDomain); + + /** Domain id. */ + public id: string; + + /** Domain name. */ + public name: string; + + /** + * Creates a new Domain instance using the specified properties. + * @param [properties] Properties to set + * @returns Domain instance + */ + public static create(properties?: flyteidl.admin.IDomain): flyteidl.admin.Domain; + + /** + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * @param message Domain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDomain, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Domain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Domain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Domain; + + /** + * Verifies a Domain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Project. */ + interface IProject { + + /** Project id */ + id?: (string|null); + + /** Project name */ + name?: (string|null); + + /** Project domains */ + domains?: (flyteidl.admin.IDomain[]|null); + } + + /** Represents a Project. */ + class Project implements IProject { + + /** + * Constructs a new Project. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProject); + + /** Project id. */ + public id: string; + + /** Project name. */ + public name: string; + + /** Project domains. */ + public domains: flyteidl.admin.IDomain[]; + + /** + * Creates a new Project instance using the specified properties. + * @param [properties] Properties to set + * @returns Project instance + */ + public static create(properties?: flyteidl.admin.IProject): flyteidl.admin.Project; + + /** + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * @param message Project message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProject, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Project message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Project + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Project; + + /** + * Verifies a Project message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Projects. */ + interface IProjects { + + /** Projects projects */ + projects?: (flyteidl.admin.IProject[]|null); + } + + /** Represents a Projects. */ + class Projects implements IProjects { + + /** + * Constructs a new Projects. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjects); + + /** Projects projects. */ + public projects: flyteidl.admin.IProject[]; + + /** + * Creates a new Projects instance using the specified properties. + * @param [properties] Properties to set + * @returns Projects instance + */ + public static create(properties?: flyteidl.admin.IProjects): flyteidl.admin.Projects; + + /** + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. + * @param message Projects message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjects, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Projects message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Projects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Projects; + + /** + * Verifies a Projects message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectListRequest. */ + interface IProjectListRequest { + } + + /** Represents a ProjectListRequest. */ + class ProjectListRequest implements IProjectListRequest { + + /** + * Constructs a new ProjectListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectListRequest); + + /** + * Creates a new ProjectListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectListRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectListRequest): flyteidl.admin.ProjectListRequest; + + /** + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * @param message ProjectListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectListRequest; + + /** + * Verifies a ProjectListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectRegisterRequest. */ + interface IProjectRegisterRequest { + + /** ProjectRegisterRequest project */ + project?: (flyteidl.admin.IProject|null); + } + + /** Represents a ProjectRegisterRequest. */ + class ProjectRegisterRequest implements IProjectRegisterRequest { + + /** + * Constructs a new ProjectRegisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectRegisterRequest); + + /** ProjectRegisterRequest project. */ + public project?: (flyteidl.admin.IProject|null); + + /** + * Creates a new ProjectRegisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectRegisterRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectRegisterRequest): flyteidl.admin.ProjectRegisterRequest; + + /** + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * @param message ProjectRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterRequest; + + /** + * Verifies a ProjectRegisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectRegisterResponse. */ + interface IProjectRegisterResponse { + } + + /** Represents a ProjectRegisterResponse. */ + class ProjectRegisterResponse implements IProjectRegisterResponse { + + /** + * Constructs a new ProjectRegisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectRegisterResponse); + + /** + * Creates a new ProjectRegisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectRegisterResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectRegisterResponse): flyteidl.admin.ProjectRegisterResponse; + + /** + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * @param message ProjectRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterResponse; + + /** + * Verifies a ProjectRegisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateRequest. */ + interface ITaskCreateRequest { + + /** TaskCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** TaskCreateRequest spec */ + spec?: (flyteidl.admin.ITaskSpec|null); + } + + /** Represents a TaskCreateRequest. */ + class TaskCreateRequest implements ITaskCreateRequest { + + /** + * Constructs a new TaskCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskCreateRequest); + + /** TaskCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** TaskCreateRequest spec. */ + public spec?: (flyteidl.admin.ITaskSpec|null); + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskCreateRequest): flyteidl.admin.TaskCreateRequest; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * @param message TaskCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateRequest; + + /** + * Verifies a TaskCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { + } + + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { + + /** + * Constructs a new TaskCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskCreateResponse); + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskCreateResponse): flyteidl.admin.TaskCreateResponse; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * @param message TaskCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateResponse; + + /** + * Verifies a TaskCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Task. */ + interface ITask { + + /** Task id */ + id?: (flyteidl.core.IIdentifier|null); + + /** Task closure */ + closure?: (flyteidl.admin.ITaskClosure|null); + } + + /** Represents a Task. */ + class Task implements ITask { + + /** + * Constructs a new Task. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITask); + + /** Task id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** Task closure. */ + public closure?: (flyteidl.admin.ITaskClosure|null); + + /** + * Creates a new Task instance using the specified properties. + * @param [properties] Properties to set + * @returns Task instance + */ + public static create(properties?: flyteidl.admin.ITask): flyteidl.admin.Task; + + /** + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * @param message Task message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Task message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Task; + + /** + * Verifies a Task message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskList. */ + interface ITaskList { + + /** TaskList tasks */ + tasks?: (flyteidl.admin.ITask[]|null); + + /** TaskList token */ + token?: (string|null); + } + + /** Represents a TaskList. */ + class TaskList implements ITaskList { + + /** + * Constructs a new TaskList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskList); + + /** TaskList tasks. */ + public tasks: flyteidl.admin.ITask[]; + + /** TaskList token. */ + public token: string; + + /** + * Creates a new TaskList instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskList instance + */ + public static create(properties?: flyteidl.admin.ITaskList): flyteidl.admin.TaskList; + + /** + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * @param message TaskList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskList; + + /** + * Verifies a TaskList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskSpec. */ + interface ITaskSpec { + + /** TaskSpec template */ + template?: (flyteidl.core.ITaskTemplate|null); + } + + /** Represents a TaskSpec. */ + class TaskSpec implements ITaskSpec { + + /** + * Constructs a new TaskSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskSpec); + + /** TaskSpec template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** + * Creates a new TaskSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskSpec instance + */ + public static create(properties?: flyteidl.admin.ITaskSpec): flyteidl.admin.TaskSpec; + + /** + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskSpec; + + /** + * Verifies a TaskSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskClosure. */ + interface ITaskClosure { + + /** TaskClosure compiledTask */ + compiledTask?: (flyteidl.core.ICompiledTask|null); + + /** TaskClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a TaskClosure. */ + class TaskClosure implements ITaskClosure { + + /** + * Constructs a new TaskClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskClosure); + + /** TaskClosure compiledTask. */ + public compiledTask?: (flyteidl.core.ICompiledTask|null); + + /** TaskClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new TaskClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskClosure instance + */ + public static create(properties?: flyteidl.admin.ITaskClosure): flyteidl.admin.TaskClosure; + + /** + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * @param message TaskClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskClosure; + + /** + * Verifies a TaskClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetRequest. */ + interface ITaskExecutionGetRequest { + + /** TaskExecutionGetRequest id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a TaskExecutionGetRequest. */ + class TaskExecutionGetRequest implements ITaskExecutionGetRequest { + + /** + * Constructs a new TaskExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetRequest); + + /** TaskExecutionGetRequest id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new TaskExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetRequest): flyteidl.admin.TaskExecutionGetRequest; + + /** + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * @param message TaskExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetRequest; + + /** + * Verifies a TaskExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionListRequest. */ + interface ITaskExecutionListRequest { + + /** TaskExecutionListRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionListRequest limit */ + limit?: (number|null); + + /** TaskExecutionListRequest token */ + token?: (string|null); + + /** TaskExecutionListRequest filters */ + filters?: (string|null); + + /** TaskExecutionListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a TaskExecutionListRequest. */ + class TaskExecutionListRequest implements ITaskExecutionListRequest { + + /** + * Constructs a new TaskExecutionListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionListRequest); + + /** TaskExecutionListRequest nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionListRequest limit. */ + public limit: number; + + /** TaskExecutionListRequest token. */ + public token: string; + + /** TaskExecutionListRequest filters. */ + public filters: string; + + /** TaskExecutionListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new TaskExecutionListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionListRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionListRequest): flyteidl.admin.TaskExecutionListRequest; + + /** + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * @param message TaskExecutionListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionListRequest; + + /** + * Verifies a TaskExecutionListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + + /** TaskExecution id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecution inputUri */ + inputUri?: (string|null); + + /** TaskExecution closure */ + closure?: (flyteidl.admin.ITaskExecutionClosure|null); + + /** TaskExecution isParent */ + isParent?: (boolean|null); + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { + + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecution); + + /** TaskExecution id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecution inputUri. */ + public inputUri: string; + + /** TaskExecution closure. */ + public closure?: (flyteidl.admin.ITaskExecutionClosure|null); + + /** TaskExecution isParent. */ + public isParent: boolean; + + /** + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance + */ + public static create(properties?: flyteidl.admin.ITaskExecution): flyteidl.admin.TaskExecution; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecution; + + /** + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionList. */ + interface ITaskExecutionList { + + /** TaskExecutionList taskExecutions */ + taskExecutions?: (flyteidl.admin.ITaskExecution[]|null); + + /** TaskExecutionList token */ + token?: (string|null); + } + + /** Represents a TaskExecutionList. */ + class TaskExecutionList implements ITaskExecutionList { + + /** + * Constructs a new TaskExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionList); + + /** TaskExecutionList taskExecutions. */ + public taskExecutions: flyteidl.admin.ITaskExecution[]; + + /** TaskExecutionList token. */ + public token: string; + + /** + * Creates a new TaskExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionList instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionList): flyteidl.admin.TaskExecutionList; + + /** + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * @param message TaskExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionList; + + /** + * Verifies a TaskExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionClosure. */ + interface ITaskExecutionClosure { + + /** TaskExecutionClosure outputUri */ + outputUri?: (string|null); + + /** TaskExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionClosure phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** TaskExecutionClosure logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + + /** TaskExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** TaskExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure customInfo */ + customInfo?: (google.protobuf.IStruct|null); + } + + /** Represents a TaskExecutionClosure. */ + class TaskExecutionClosure implements ITaskExecutionClosure { + + /** + * Constructs a new TaskExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionClosure); + + /** TaskExecutionClosure outputUri. */ + public outputUri: string; + + /** TaskExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionClosure phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** TaskExecutionClosure logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** TaskExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** TaskExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionClosure outputResult. */ + public outputResult?: ("outputUri"|"error"); + + /** + * Creates a new TaskExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionClosure): flyteidl.admin.TaskExecutionClosure; + + /** + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * @param message TaskExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionClosure; + + /** + * Verifies a TaskExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetDataRequest. */ + interface ITaskExecutionGetDataRequest { + + /** TaskExecutionGetDataRequest id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a TaskExecutionGetDataRequest. */ + class TaskExecutionGetDataRequest implements ITaskExecutionGetDataRequest { + + /** + * Constructs a new TaskExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetDataRequest); + + /** TaskExecutionGetDataRequest id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetDataRequest): flyteidl.admin.TaskExecutionGetDataRequest; + + /** + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * @param message TaskExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataRequest; + + /** + * Verifies a TaskExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetDataResponse. */ + interface ITaskExecutionGetDataResponse { + + /** TaskExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + } + + /** Represents a TaskExecutionGetDataResponse. */ + class TaskExecutionGetDataResponse implements ITaskExecutionGetDataResponse { + + /** + * Constructs a new TaskExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetDataResponse); + + /** TaskExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** + * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetDataResponse): flyteidl.admin.TaskExecutionGetDataResponse; + + /** + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * @param message TaskExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataResponse; + + /** + * Verifies a TaskExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowCreateRequest. */ + interface IWorkflowCreateRequest { + + /** WorkflowCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowCreateRequest spec */ + spec?: (flyteidl.admin.IWorkflowSpec|null); + } + + /** Represents a WorkflowCreateRequest. */ + class WorkflowCreateRequest implements IWorkflowCreateRequest { + + /** + * Constructs a new WorkflowCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowCreateRequest); + + /** WorkflowCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowCreateRequest spec. */ + public spec?: (flyteidl.admin.IWorkflowSpec|null); + + /** + * Creates a new WorkflowCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowCreateRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowCreateRequest): flyteidl.admin.WorkflowCreateRequest; + + /** + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * @param message WorkflowCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateRequest; + + /** + * Verifies a WorkflowCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowCreateResponse. */ + interface IWorkflowCreateResponse { + } + + /** Represents a WorkflowCreateResponse. */ + class WorkflowCreateResponse implements IWorkflowCreateResponse { + + /** + * Constructs a new WorkflowCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowCreateResponse); + + /** + * Creates a new WorkflowCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowCreateResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowCreateResponse): flyteidl.admin.WorkflowCreateResponse; + + /** + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. + * @param message WorkflowCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateResponse; + + /** + * Verifies a WorkflowCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Workflow. */ + interface IWorkflow { + + /** Workflow id */ + id?: (flyteidl.core.IIdentifier|null); + + /** Workflow closure */ + closure?: (flyteidl.admin.IWorkflowClosure|null); + } + + /** Represents a Workflow. */ + class Workflow implements IWorkflow { + + /** + * Constructs a new Workflow. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflow); + + /** Workflow id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** Workflow closure. */ + public closure?: (flyteidl.admin.IWorkflowClosure|null); + + /** + * Creates a new Workflow instance using the specified properties. + * @param [properties] Properties to set + * @returns Workflow instance + */ + public static create(properties?: flyteidl.admin.IWorkflow): flyteidl.admin.Workflow; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Workflow; + + /** + * Verifies a Workflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowList. */ + interface IWorkflowList { + + /** WorkflowList workflows */ + workflows?: (flyteidl.admin.IWorkflow[]|null); + + /** WorkflowList token */ + token?: (string|null); + } + + /** Represents a WorkflowList. */ + class WorkflowList implements IWorkflowList { + + /** + * Constructs a new WorkflowList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowList); + + /** WorkflowList workflows. */ + public workflows: flyteidl.admin.IWorkflow[]; + + /** WorkflowList token. */ + public token: string; + + /** + * Creates a new WorkflowList instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowList instance + */ + public static create(properties?: flyteidl.admin.IWorkflowList): flyteidl.admin.WorkflowList; + + /** + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * @param message WorkflowList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowList; + + /** + * Verifies a WorkflowList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowSpec. */ + interface IWorkflowSpec { + + /** WorkflowSpec template */ + template?: (flyteidl.core.IWorkflowTemplate|null); + } + + /** Represents a WorkflowSpec. */ + class WorkflowSpec implements IWorkflowSpec { + + /** + * Constructs a new WorkflowSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowSpec); + + /** WorkflowSpec template. */ + public template?: (flyteidl.core.IWorkflowTemplate|null); + + /** + * Creates a new WorkflowSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSpec instance + */ + public static create(properties?: flyteidl.admin.IWorkflowSpec): flyteidl.admin.WorkflowSpec; + + /** + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * @param message WorkflowSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowSpec; + + /** + * Verifies a WorkflowSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowClosure. */ + interface IWorkflowClosure { + + /** WorkflowClosure compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** WorkflowClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a WorkflowClosure. */ + class WorkflowClosure implements IWorkflowClosure { + + /** + * Constructs a new WorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowClosure); + + /** WorkflowClosure compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** WorkflowClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowClosure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowClosure): flyteidl.admin.WorkflowClosure; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * @param message WorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowClosure; + + /** + * Verifies a WorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace service. */ + namespace service { + + /** Represents an AdminService */ + class AdminService extends $protobuf.rpc.Service { + + /** + * Constructs a new AdminService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AdminService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AdminService; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + */ + public createTask(request: flyteidl.admin.ITaskCreateRequest, callback: flyteidl.service.AdminService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.admin.ITaskCreateRequest): Promise; + + /** + * Calls GetTask. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Task + */ + public getTask(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListTaskIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListTaskIdsCallback): void; + + /** + * Calls ListTaskIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListTasks. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskList + */ + public listTasks(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListTasksCallback): void; + + /** + * Calls ListTasks. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listTasks(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls CreateWorkflow. + * @param request WorkflowCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowCreateResponse + */ + public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest, callback: flyteidl.service.AdminService.CreateWorkflowCallback): void; + + /** + * Calls CreateWorkflow. + * @param request WorkflowCreateRequest message or plain object + * @returns Promise + */ + public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest): Promise; + + /** + * Calls GetWorkflow. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Workflow + */ + public getWorkflow(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetWorkflowCallback): void; + + /** + * Calls GetWorkflow. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getWorkflow(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListWorkflowIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListWorkflowIdsCallback): void; + + /** + * Calls ListWorkflowIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListWorkflows. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowList + */ + public listWorkflows(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListWorkflowsCallback): void; + + /** + * Calls ListWorkflows. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listWorkflows(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls CreateLaunchPlan. + * @param request LaunchPlanCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse + */ + public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest, callback: flyteidl.service.AdminService.CreateLaunchPlanCallback): void; + + /** + * Calls CreateLaunchPlan. + * @param request LaunchPlanCreateRequest message or plain object + * @returns Promise + */ + public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest): Promise; + + /** + * Calls GetLaunchPlan. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlan + */ + public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetLaunchPlanCallback): void; + + /** + * Calls GetLaunchPlan. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListLaunchPlanIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListLaunchPlanIdsCallback): void; + + /** + * Calls ListLaunchPlanIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListLaunchPlans. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanList + */ + public listLaunchPlans(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListLaunchPlansCallback): void; + + /** + * Calls ListLaunchPlans. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listLaunchPlans(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls UpdateLaunchPlan. + * @param request LaunchPlanUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse + */ + public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest, callback: flyteidl.service.AdminService.UpdateLaunchPlanCallback): void; + + /** + * Calls UpdateLaunchPlan. + * @param request LaunchPlanUpdateRequest message or plain object + * @returns Promise + */ + public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest): Promise; + + /** + * Calls CreateExecution. + * @param request ExecutionCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public createExecution(request: flyteidl.admin.IExecutionCreateRequest, callback: flyteidl.service.AdminService.CreateExecutionCallback): void; + + /** + * Calls CreateExecution. + * @param request ExecutionCreateRequest message or plain object + * @returns Promise + */ + public createExecution(request: flyteidl.admin.IExecutionCreateRequest): Promise; + + /** + * Calls RelaunchExecution. + * @param request ExecutionRelaunchRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest, callback: flyteidl.service.AdminService.RelaunchExecutionCallback): void; + + /** + * Calls RelaunchExecution. + * @param request ExecutionRelaunchRequest message or plain object + * @returns Promise + */ + public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest): Promise; + + /** + * Calls GetExecution. + * @param request WorkflowExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution + */ + public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest, callback: flyteidl.service.AdminService.GetExecutionCallback): void; + + /** + * Calls GetExecution. + * @param request WorkflowExecutionGetRequest message or plain object + * @returns Promise + */ + public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest): Promise; + + /** + * Calls GetExecutionData. + * @param request WorkflowExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse + */ + public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetExecutionDataCallback): void; + + /** + * Calls GetExecutionData. + * @param request WorkflowExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest): Promise; + + /** + * Calls ListExecutions. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionList + */ + public listExecutions(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListExecutionsCallback): void; + + /** + * Calls ListExecutions. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listExecutions(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls TerminateExecution. + * @param request ExecutionTerminateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionTerminateResponse + */ + public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest, callback: flyteidl.service.AdminService.TerminateExecutionCallback): void; + + /** + * Calls TerminateExecution. + * @param request ExecutionTerminateRequest message or plain object + * @returns Promise + */ + public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest): Promise; + + /** + * Calls GetNodeExecution. + * @param request NodeExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecution + */ + public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest, callback: flyteidl.service.AdminService.GetNodeExecutionCallback): void; + + /** + * Calls GetNodeExecution. + * @param request NodeExecutionGetRequest message or plain object + * @returns Promise + */ + public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest): Promise; + + /** + * Calls ListNodeExecutions. + * @param request NodeExecutionListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionList + */ + public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsCallback): void; + + /** + * Calls ListNodeExecutions. + * @param request NodeExecutionListRequest message or plain object + * @returns Promise + */ + public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest): Promise; + + /** + * Calls ListNodeExecutionsForTask. + * @param request NodeExecutionForTaskListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionList + */ + public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback): void; + + /** + * Calls ListNodeExecutionsForTask. + * @param request NodeExecutionForTaskListRequest message or plain object + * @returns Promise + */ + public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest): Promise; + + /** + * Calls GetNodeExecutionData. + * @param request NodeExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse + */ + public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetNodeExecutionDataCallback): void; + + /** + * Calls GetNodeExecutionData. + * @param request NodeExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest): Promise; + + /** + * Calls RegisterProject. + * @param request ProjectRegisterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectRegisterResponse + */ + public registerProject(request: flyteidl.admin.IProjectRegisterRequest, callback: flyteidl.service.AdminService.RegisterProjectCallback): void; + + /** + * Calls RegisterProject. + * @param request ProjectRegisterRequest message or plain object + * @returns Promise + */ + public registerProject(request: flyteidl.admin.IProjectRegisterRequest): Promise; + + /** + * Calls ListProjects. + * @param request ProjectListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Projects + */ + public listProjects(request: flyteidl.admin.IProjectListRequest, callback: flyteidl.service.AdminService.ListProjectsCallback): void; + + /** + * Calls ListProjects. + * @param request ProjectListRequest message or plain object + * @returns Promise + */ + public listProjects(request: flyteidl.admin.IProjectListRequest): Promise; + + /** + * Calls CreateWorkflowEvent. + * @param request WorkflowExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse + */ + public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest, callback: flyteidl.service.AdminService.CreateWorkflowEventCallback): void; + + /** + * Calls CreateWorkflowEvent. + * @param request WorkflowExecutionEventRequest message or plain object + * @returns Promise + */ + public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest): Promise; + + /** + * Calls CreateNodeEvent. + * @param request NodeExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionEventResponse + */ + public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest, callback: flyteidl.service.AdminService.CreateNodeEventCallback): void; + + /** + * Calls CreateNodeEvent. + * @param request NodeExecutionEventRequest message or plain object + * @returns Promise + */ + public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest): Promise; + + /** + * Calls CreateTaskEvent. + * @param request TaskExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionEventResponse + */ + public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest, callback: flyteidl.service.AdminService.CreateTaskEventCallback): void; + + /** + * Calls CreateTaskEvent. + * @param request TaskExecutionEventRequest message or plain object + * @returns Promise + */ + public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest): Promise; + + /** + * Calls GetTaskExecution. + * @param request TaskExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecution + */ + public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest, callback: flyteidl.service.AdminService.GetTaskExecutionCallback): void; + + /** + * Calls GetTaskExecution. + * @param request TaskExecutionGetRequest message or plain object + * @returns Promise + */ + public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest): Promise; + + /** + * Calls ListTaskExecutions. + * @param request TaskExecutionListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionList + */ + public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest, callback: flyteidl.service.AdminService.ListTaskExecutionsCallback): void; + + /** + * Calls ListTaskExecutions. + * @param request TaskExecutionListRequest message or plain object + * @returns Promise + */ + public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest): Promise; + + /** + * Calls GetTaskExecutionData. + * @param request TaskExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse + */ + public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetTaskExecutionDataCallback): void; + + /** + * Calls GetTaskExecutionData. + * @param request TaskExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest): Promise; + } + + namespace AdminService { + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTask}. + * @param error Error, if any + * @param [response] TaskCreateResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.TaskCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTask}. + * @param error Error, if any + * @param [response] Task + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.Task) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListTaskIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * @param error Error, if any + * @param [response] TaskList + */ + type ListTasksCallback = (error: (Error|null), response?: flyteidl.admin.TaskList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * @param error Error, if any + * @param [response] WorkflowCreateResponse + */ + type CreateWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * @param error Error, if any + * @param [response] Workflow + */ + type GetWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.Workflow) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListWorkflowIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * @param error Error, if any + * @param [response] WorkflowList + */ + type ListWorkflowsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlanCreateResponse + */ + type CreateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlan + */ + type GetLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListLaunchPlanIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * @param error Error, if any + * @param [response] LaunchPlanList + */ + type ListLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlanUpdateResponse + */ + type UpdateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type CreateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type RelaunchExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * @param error Error, if any + * @param [response] Execution + */ + type GetExecutionCallback = (error: (Error|null), response?: flyteidl.admin.Execution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * @param error Error, if any + * @param [response] WorkflowExecutionGetDataResponse + */ + type GetExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * @param error Error, if any + * @param [response] ExecutionList + */ + type ListExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * @param error Error, if any + * @param [response] ExecutionTerminateResponse + */ + type TerminateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionTerminateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * @param error Error, if any + * @param [response] NodeExecution + */ + type GetNodeExecutionCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * @param error Error, if any + * @param [response] NodeExecutionList + */ + type ListNodeExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * @param error Error, if any + * @param [response] NodeExecutionList + */ + type ListNodeExecutionsForTaskCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * @param error Error, if any + * @param [response] NodeExecutionGetDataResponse + */ + type GetNodeExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * @param error Error, if any + * @param [response] ProjectRegisterResponse + */ + type RegisterProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectRegisterResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * @param error Error, if any + * @param [response] Projects + */ + type ListProjectsCallback = (error: (Error|null), response?: flyteidl.admin.Projects) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * @param error Error, if any + * @param [response] WorkflowExecutionEventResponse + */ + type CreateWorkflowEventCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * @param error Error, if any + * @param [response] NodeExecutionEventResponse + */ + type CreateNodeEventCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * @param error Error, if any + * @param [response] TaskExecutionEventResponse + */ + type CreateTaskEventCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * @param error Error, if any + * @param [response] TaskExecution + */ + type GetTaskExecutionCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * @param error Error, if any + * @param [response] TaskExecutionList + */ + type ListTaskExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * @param error Error, if any + * @param [response] TaskExecutionGetDataResponse + */ + type GetTaskExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionGetDataResponse) => void; + } + } +} + +/** Namespace google. */ +export namespace google { + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (Long|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; + + /** + * Verifies a Timestamp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Struct. */ + interface IStruct { + + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); + + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct; + + /** + * Verifies a Struct message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Value. */ + interface IValue { + + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|null); + + /** Value numberValue */ + numberValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value boolValue */ + boolValue?: (boolean|null); + + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); + + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); + + /** Value nullValue. */ + public nullValue: google.protobuf.NullValue; + + /** Value numberValue. */ + public numberValue: number; + + /** Value stringValue. */ + public stringValue: string; + + /** Value boolValue. */ + public boolValue: boolean; + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); + + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); + + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; + + /** + * Verifies a Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } + + /** Properties of a ListValue. */ + interface IListValue { + + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } + + /** Represents a ListValue. */ + class ListValue implements IListValue { + + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); + + /** ListValue values. */ + public values: google.protobuf.IValue[]; + + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; + + /** + * Verifies a ListValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: Long; + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: Long; + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } +} diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js new file mode 100644 index 0000000000..e156b94246 --- /dev/null +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -0,0 +1,30224 @@ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +import * as $protobuf from "protobufjs/minimal"; + +// Common aliases +const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + +// Exported root namespace +const $root = $protobuf.roots.flyteidl || ($protobuf.roots.flyteidl = {}); + +export const flyteidl = $root.flyteidl = (() => { + + /** + * Namespace flyteidl. + * @exports flyteidl + * @namespace + */ + const flyteidl = {}; + + flyteidl.core = (function() { + + /** + * Namespace core. + * @memberof flyteidl + * @namespace + */ + const core = {}; + + core.ConnectionSet = (function() { + + /** + * Properties of a ConnectionSet. + * @memberof flyteidl.core + * @interface IConnectionSet + * @property {Object.|null} [downstream] ConnectionSet downstream + * @property {Object.|null} [upstream] ConnectionSet upstream + */ + + /** + * Constructs a new ConnectionSet. + * @memberof flyteidl.core + * @classdesc Represents a ConnectionSet. + * @implements IConnectionSet + * @constructor + * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set + */ + function ConnectionSet(properties) { + this.downstream = {}; + this.upstream = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConnectionSet downstream. + * @member {Object.} downstream + * @memberof flyteidl.core.ConnectionSet + * @instance + */ + ConnectionSet.prototype.downstream = $util.emptyObject; + + /** + * ConnectionSet upstream. + * @member {Object.} upstream + * @memberof flyteidl.core.ConnectionSet + * @instance + */ + ConnectionSet.prototype.upstream = $util.emptyObject; + + /** + * Creates a new ConnectionSet instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set + * @returns {flyteidl.core.ConnectionSet} ConnectionSet instance + */ + ConnectionSet.create = function create(properties) { + return new ConnectionSet(properties); + }; + + /** + * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {flyteidl.core.IConnectionSet} message ConnectionSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConnectionSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.downstream != null && message.hasOwnProperty("downstream")) + for (let keys = Object.keys(message.downstream), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.ConnectionSet.IdList.encode(message.downstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.upstream != null && message.hasOwnProperty("upstream")) + for (let keys = Object.keys(message.upstream), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.ConnectionSet.IdList.encode(message.upstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a ConnectionSet message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConnectionSet} ConnectionSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConnectionSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 7: + reader.skip().pos++; + if (message.downstream === $util.emptyObject) + message.downstream = {}; + key = reader.string(); + reader.pos++; + message.downstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); + break; + case 8: + reader.skip().pos++; + if (message.upstream === $util.emptyObject) + message.upstream = {}; + key = reader.string(); + reader.pos++; + message.upstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ConnectionSet message. + * @function verify + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConnectionSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.downstream != null && message.hasOwnProperty("downstream")) { + if (!$util.isObject(message.downstream)) + return "downstream: object expected"; + let key = Object.keys(message.downstream); + for (let i = 0; i < key.length; ++i) { + let error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.downstream[key[i]]); + if (error) + return "downstream." + error; + } + } + if (message.upstream != null && message.hasOwnProperty("upstream")) { + if (!$util.isObject(message.upstream)) + return "upstream: object expected"; + let key = Object.keys(message.upstream); + for (let i = 0; i < key.length; ++i) { + let error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.upstream[key[i]]); + if (error) + return "upstream." + error; + } + } + return null; + }; + + ConnectionSet.IdList = (function() { + + /** + * Properties of an IdList. + * @memberof flyteidl.core.ConnectionSet + * @interface IIdList + * @property {Array.|null} [ids] IdList ids + */ + + /** + * Constructs a new IdList. + * @memberof flyteidl.core.ConnectionSet + * @classdesc Represents an IdList. + * @implements IIdList + * @constructor + * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set + */ + function IdList(properties) { + this.ids = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IdList ids. + * @member {Array.} ids + * @memberof flyteidl.core.ConnectionSet.IdList + * @instance + */ + IdList.prototype.ids = $util.emptyArray; + + /** + * Creates a new IdList instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set + * @returns {flyteidl.core.ConnectionSet.IdList} IdList instance + */ + IdList.create = function create(properties) { + return new IdList(properties); + }; + + /** + * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {flyteidl.core.ConnectionSet.IIdList} message IdList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IdList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) + for (let i = 0; i < message.ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); + return writer; + }; + + /** + * Decodes an IdList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConnectionSet.IdList} IdList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IdList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet.IdList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IdList message. + * @function verify + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IdList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (let i = 0; i < message.ids.length; ++i) + if (!$util.isString(message.ids[i])) + return "ids: string[] expected"; + } + return null; + }; + + return IdList; + })(); + + return ConnectionSet; + })(); + + core.CompiledWorkflow = (function() { + + /** + * Properties of a CompiledWorkflow. + * @memberof flyteidl.core + * @interface ICompiledWorkflow + * @property {flyteidl.core.IWorkflowTemplate|null} [template] CompiledWorkflow template + * @property {flyteidl.core.IConnectionSet|null} [connections] CompiledWorkflow connections + */ + + /** + * Constructs a new CompiledWorkflow. + * @memberof flyteidl.core + * @classdesc Represents a CompiledWorkflow. + * @implements ICompiledWorkflow + * @constructor + * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set + */ + function CompiledWorkflow(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledWorkflow template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledWorkflow + * @instance + */ + CompiledWorkflow.prototype.template = null; + + /** + * CompiledWorkflow connections. + * @member {flyteidl.core.IConnectionSet|null|undefined} connections + * @memberof flyteidl.core.CompiledWorkflow + * @instance + */ + CompiledWorkflow.prototype.connections = null; + + /** + * Creates a new CompiledWorkflow instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set + * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow instance + */ + CompiledWorkflow.create = function create(properties) { + return new CompiledWorkflow(properties); + }; + + /** + * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {flyteidl.core.ICompiledWorkflow} message CompiledWorkflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledWorkflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.connections != null && message.hasOwnProperty("connections")) + $root.flyteidl.core.ConnectionSet.encode(message.connections, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledWorkflow message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledWorkflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflow(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.connections = $root.flyteidl.core.ConnectionSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledWorkflow message. + * @function verify + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledWorkflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + let error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.connections != null && message.hasOwnProperty("connections")) { + let error = $root.flyteidl.core.ConnectionSet.verify(message.connections); + if (error) + return "connections." + error; + } + return null; + }; + + return CompiledWorkflow; + })(); + + core.CompiledTask = (function() { + + /** + * Properties of a CompiledTask. + * @memberof flyteidl.core + * @interface ICompiledTask + * @property {flyteidl.core.ITaskTemplate|null} [template] CompiledTask template + */ + + /** + * Constructs a new CompiledTask. + * @memberof flyteidl.core + * @classdesc Represents a CompiledTask. + * @implements ICompiledTask + * @constructor + * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set + */ + function CompiledTask(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledTask template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledTask + * @instance + */ + CompiledTask.prototype.template = null; + + /** + * Creates a new CompiledTask instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledTask + * @static + * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set + * @returns {flyteidl.core.CompiledTask} CompiledTask instance + */ + CompiledTask.create = function create(properties) { + return new CompiledTask(properties); + }; + + /** + * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledTask + * @static + * @param {flyteidl.core.ICompiledTask} message CompiledTask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledTask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledTask message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledTask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledTask} CompiledTask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledTask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledTask(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledTask message. + * @function verify + * @memberof flyteidl.core.CompiledTask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledTask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + let error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return CompiledTask; + })(); + + core.CompiledWorkflowClosure = (function() { + + /** + * Properties of a CompiledWorkflowClosure. + * @memberof flyteidl.core + * @interface ICompiledWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflow|null} [primary] CompiledWorkflowClosure primary + * @property {Array.|null} [subWorkflows] CompiledWorkflowClosure subWorkflows + * @property {Array.|null} [tasks] CompiledWorkflowClosure tasks + */ + + /** + * Constructs a new CompiledWorkflowClosure. + * @memberof flyteidl.core + * @classdesc Represents a CompiledWorkflowClosure. + * @implements ICompiledWorkflowClosure + * @constructor + * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set + */ + function CompiledWorkflowClosure(properties) { + this.subWorkflows = []; + this.tasks = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledWorkflowClosure primary. + * @member {flyteidl.core.ICompiledWorkflow|null|undefined} primary + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.primary = null; + + /** + * CompiledWorkflowClosure subWorkflows. + * @member {Array.} subWorkflows + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.subWorkflows = $util.emptyArray; + + /** + * CompiledWorkflowClosure tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.tasks = $util.emptyArray; + + /** + * Creates a new CompiledWorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure instance + */ + CompiledWorkflowClosure.create = function create(properties) { + return new CompiledWorkflowClosure(properties); + }; + + /** + * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {flyteidl.core.ICompiledWorkflowClosure} message CompiledWorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledWorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primary != null && message.hasOwnProperty("primary")) + $root.flyteidl.core.CompiledWorkflow.encode(message.primary, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflows != null && message.subWorkflows.length) + for (let i = 0; i < message.subWorkflows.length; ++i) + $root.flyteidl.core.CompiledWorkflow.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (let i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.CompiledTask.encode(message.tasks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledWorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflowClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primary = $root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.subWorkflows && message.subWorkflows.length)) + message.subWorkflows = []; + message.subWorkflows.push($root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.CompiledTask.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledWorkflowClosure message. + * @function verify + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledWorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.primary != null && message.hasOwnProperty("primary")) { + let error = $root.flyteidl.core.CompiledWorkflow.verify(message.primary); + if (error) + return "primary." + error; + } + if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { + if (!Array.isArray(message.subWorkflows)) + return "subWorkflows: array expected"; + for (let i = 0; i < message.subWorkflows.length; ++i) { + let error = $root.flyteidl.core.CompiledWorkflow.verify(message.subWorkflows[i]); + if (error) + return "subWorkflows." + error; + } + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (let i = 0; i < message.tasks.length; ++i) { + let error = $root.flyteidl.core.CompiledTask.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + return null; + }; + + return CompiledWorkflowClosure; + })(); + + core.IfBlock = (function() { + + /** + * Properties of an IfBlock. + * @memberof flyteidl.core + * @interface IIfBlock + * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition + * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode + */ + + /** + * Constructs a new IfBlock. + * @memberof flyteidl.core + * @classdesc Represents an IfBlock. + * @implements IIfBlock + * @constructor + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + */ + function IfBlock(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IfBlock condition. + * @member {flyteidl.core.IBooleanExpression|null|undefined} condition + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.condition = null; + + /** + * IfBlock thenNode. + * @member {flyteidl.core.INode|null|undefined} thenNode + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.thenNode = null; + + /** + * Creates a new IfBlock instance using the specified properties. + * @function create + * @memberof flyteidl.core.IfBlock + * @static + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfBlock} IfBlock instance + */ + IfBlock.create = function create(properties) { + return new IfBlock(properties); + }; + + /** + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IfBlock + * @static + * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IfBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && message.hasOwnProperty("condition")) + $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.thenNode != null && message.hasOwnProperty("thenNode")) + $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an IfBlock message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IfBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IfBlock} IfBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IfBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 2: + message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IfBlock message. + * @function verify + * @memberof flyteidl.core.IfBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IfBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.condition != null && message.hasOwnProperty("condition")) { + let error = $root.flyteidl.core.BooleanExpression.verify(message.condition); + if (error) + return "condition." + error; + } + if (message.thenNode != null && message.hasOwnProperty("thenNode")) { + let error = $root.flyteidl.core.Node.verify(message.thenNode); + if (error) + return "thenNode." + error; + } + return null; + }; + + return IfBlock; + })(); + + core.IfElseBlock = (function() { + + /** + * Properties of an IfElseBlock. + * @memberof flyteidl.core + * @interface IIfElseBlock + * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case + * @property {Array.|null} [other] IfElseBlock other + * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode + * @property {flyteidl.core.IError|null} [error] IfElseBlock error + */ + + /** + * Constructs a new IfElseBlock. + * @memberof flyteidl.core + * @classdesc Represents an IfElseBlock. + * @implements IIfElseBlock + * @constructor + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + */ + function IfElseBlock(properties) { + this.other = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IfElseBlock case. + * @member {flyteidl.core.IIfBlock|null|undefined} case + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype["case"] = null; + + /** + * IfElseBlock other. + * @member {Array.} other + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.other = $util.emptyArray; + + /** + * IfElseBlock elseNode. + * @member {flyteidl.core.INode|null|undefined} elseNode + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.elseNode = null; + + /** + * IfElseBlock error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * IfElseBlock default. + * @member {"elseNode"|"error"|undefined} default_ + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + Object.defineProperty(IfElseBlock.prototype, "default", { + get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IfElseBlock instance using the specified properties. + * @function create + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance + */ + IfElseBlock.create = function create(properties) { + return new IfElseBlock(properties); + }; + + /** + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IfElseBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["case"] != null && message.hasOwnProperty("case")) + $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.other != null && message.other.length) + for (let i = 0; i < message.other.length; ++i) + $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.elseNode != null && message.hasOwnProperty("elseNode")) + $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an IfElseBlock message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IfElseBlock} IfElseBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IfElseBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.other && message.other.length)) + message.other = []; + message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); + break; + case 3: + message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 4: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IfElseBlock message. + * @function verify + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IfElseBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message["case"] != null && message.hasOwnProperty("case")) { + let error = $root.flyteidl.core.IfBlock.verify(message["case"]); + if (error) + return "case." + error; + } + if (message.other != null && message.hasOwnProperty("other")) { + if (!Array.isArray(message.other)) + return "other: array expected"; + for (let i = 0; i < message.other.length; ++i) { + let error = $root.flyteidl.core.IfBlock.verify(message.other[i]); + if (error) + return "other." + error; + } + } + if (message.elseNode != null && message.hasOwnProperty("elseNode")) { + properties["default"] = 1; + { + let error = $root.flyteidl.core.Node.verify(message.elseNode); + if (error) + return "elseNode." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties["default"] === 1) + return "default: multiple values"; + properties["default"] = 1; + { + let error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + return null; + }; + + return IfElseBlock; + })(); + + core.BranchNode = (function() { + + /** + * Properties of a BranchNode. + * @memberof flyteidl.core + * @interface IBranchNode + * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse + */ + + /** + * Constructs a new BranchNode. + * @memberof flyteidl.core + * @classdesc Represents a BranchNode. + * @implements IBranchNode + * @constructor + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + */ + function BranchNode(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BranchNode ifElse. + * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse + * @memberof flyteidl.core.BranchNode + * @instance + */ + BranchNode.prototype.ifElse = null; + + /** + * Creates a new BranchNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + * @returns {flyteidl.core.BranchNode} BranchNode instance + */ + BranchNode.create = function create(properties) { + return new BranchNode(properties); + }; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BranchNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ifElse != null && message.hasOwnProperty("ifElse")) + $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BranchNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BranchNode} BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BranchNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BranchNode message. + * @function verify + * @memberof flyteidl.core.BranchNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BranchNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ifElse != null && message.hasOwnProperty("ifElse")) { + let error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); + if (error) + return "ifElse." + error; + } + return null; + }; + + return BranchNode; + })(); + + core.TaskNode = (function() { + + /** + * Properties of a TaskNode. + * @memberof flyteidl.core + * @interface ITaskNode + * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId + */ + + /** + * Constructs a new TaskNode. + * @memberof flyteidl.core + * @classdesc Represents a TaskNode. + * @implements ITaskNode + * @constructor + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + */ + function TaskNode(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNode referenceId. + * @member {flyteidl.core.IIdentifier|null|undefined} referenceId + * @memberof flyteidl.core.TaskNode + * @instance + */ + TaskNode.prototype.referenceId = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * TaskNode reference. + * @member {"referenceId"|undefined} reference + * @memberof flyteidl.core.TaskNode + * @instance + */ + Object.defineProperty(TaskNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["referenceId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskNode + * @static + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + * @returns {flyteidl.core.TaskNode} TaskNode instance + */ + TaskNode.create = function create(properties) { + return new TaskNode(properties); + }; + + /** + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskNode + * @static + * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.referenceId != null && message.hasOwnProperty("referenceId")) + $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskNode} TaskNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNode message. + * @function verify + * @memberof flyteidl.core.TaskNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.referenceId != null && message.hasOwnProperty("referenceId")) { + properties.reference = 1; + { + let error = $root.flyteidl.core.Identifier.verify(message.referenceId); + if (error) + return "referenceId." + error; + } + } + return null; + }; + + return TaskNode; + })(); + + core.WorkflowNode = (function() { + + /** + * Properties of a WorkflowNode. + * @memberof flyteidl.core + * @interface IWorkflowNode + * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef + * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef + */ + + /** + * Constructs a new WorkflowNode. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowNode. + * @implements IWorkflowNode + * @constructor + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + */ + function WorkflowNode(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNode launchplanRef. + * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + WorkflowNode.prototype.launchplanRef = null; + + /** + * WorkflowNode subWorkflowRef. + * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + WorkflowNode.prototype.subWorkflowRef = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * WorkflowNode reference. + * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + Object.defineProperty(WorkflowNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance + */ + WorkflowNode.create = function create(properties) { + return new WorkflowNode(properties); + }; + + /** + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) + $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) + $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowNode} WorkflowNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNode message. + * @function verify + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { + properties.reference = 1; + { + let error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); + if (error) + return "launchplanRef." + error; + } + } + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + { + let error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); + if (error) + return "subWorkflowRef." + error; + } + } + return null; + }; + + return WorkflowNode; + })(); + + core.NodeMetadata = (function() { + + /** + * Properties of a NodeMetadata. + * @memberof flyteidl.core + * @interface INodeMetadata + * @property {string|null} [name] NodeMetadata name + * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries + */ + + /** + * Constructs a new NodeMetadata. + * @memberof flyteidl.core + * @classdesc Represents a NodeMetadata. + * @implements INodeMetadata + * @constructor + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + */ + function NodeMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeMetadata name. + * @member {string} name + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.name = ""; + + /** + * NodeMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.timeout = null; + + /** + * NodeMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.retries = null; + + /** + * Creates a new NodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance + */ + NodeMetadata.create = function create(properties) { + return new NodeMetadata(properties); + }; + + /** + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeMetadata} NodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeMetadata message. + * @function verify + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeMetadata.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.timeout != null && message.hasOwnProperty("timeout")) { + let error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + let error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + return null; + }; + + return NodeMetadata; + })(); + + core.Alias = (function() { + + /** + * Properties of an Alias. + * @memberof flyteidl.core + * @interface IAlias + * @property {string|null} ["var"] Alias var + * @property {string|null} [alias] Alias alias + */ + + /** + * Constructs a new Alias. + * @memberof flyteidl.core + * @classdesc Represents an Alias. + * @implements IAlias + * @constructor + * @param {flyteidl.core.IAlias=} [properties] Properties to set + */ + function Alias(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Alias var. + * @member {string} var + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype["var"] = ""; + + /** + * Alias alias. + * @member {string} alias + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype.alias = ""; + + /** + * Creates a new Alias instance using the specified properties. + * @function create + * @memberof flyteidl.core.Alias + * @static + * @param {flyteidl.core.IAlias=} [properties] Properties to set + * @returns {flyteidl.core.Alias} Alias instance + */ + Alias.create = function create(properties) { + return new Alias(properties); + }; + + /** + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Alias + * @static + * @param {flyteidl.core.IAlias} message Alias message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Alias.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.alias != null && message.hasOwnProperty("alias")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); + return writer; + }; + + /** + * Decodes an Alias message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Alias + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Alias} Alias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Alias.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + case 2: + message.alias = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Alias message. + * @function verify + * @memberof flyteidl.core.Alias + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Alias.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; + return null; + }; + + return Alias; + })(); + + core.Node = (function() { + + /** + * Properties of a Node. + * @memberof flyteidl.core + * @interface INode + * @property {string|null} [id] Node id + * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata + * @property {Array.|null} [inputs] Node inputs + * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds + * @property {Array.|null} [outputAliases] Node outputAliases + * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode + * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode + * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode + */ + + /** + * Constructs a new Node. + * @memberof flyteidl.core + * @classdesc Represents a Node. + * @implements INode + * @constructor + * @param {flyteidl.core.INode=} [properties] Properties to set + */ + function Node(properties) { + this.inputs = []; + this.upstreamNodeIds = []; + this.outputAliases = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Node id. + * @member {string} id + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.id = ""; + + /** + * Node metadata. + * @member {flyteidl.core.INodeMetadata|null|undefined} metadata + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.metadata = null; + + /** + * Node inputs. + * @member {Array.} inputs + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.inputs = $util.emptyArray; + + /** + * Node upstreamNodeIds. + * @member {Array.} upstreamNodeIds + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.upstreamNodeIds = $util.emptyArray; + + /** + * Node outputAliases. + * @member {Array.} outputAliases + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.outputAliases = $util.emptyArray; + + /** + * Node taskNode. + * @member {flyteidl.core.ITaskNode|null|undefined} taskNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.taskNode = null; + + /** + * Node workflowNode. + * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.workflowNode = null; + + /** + * Node branchNode. + * @member {flyteidl.core.IBranchNode|null|undefined} branchNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.branchNode = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Node target. + * @member {"taskNode"|"workflowNode"|"branchNode"|undefined} target + * @memberof flyteidl.core.Node + * @instance + */ + Object.defineProperty(Node.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Node instance using the specified properties. + * @function create + * @memberof flyteidl.core.Node + * @static + * @param {flyteidl.core.INode=} [properties] Properties to set + * @returns {flyteidl.core.Node} Node instance + */ + Node.create = function create(properties) { + return new Node(properties); + }; + + /** + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Node + * @static + * @param {flyteidl.core.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inputs != null && message.inputs.length) + for (let i = 0; i < message.inputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) + for (let i = 0; i < message.upstreamNodeIds.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); + if (message.outputAliases != null && message.outputAliases.length) + for (let i = 0; i < message.outputAliases.length; ++i) + $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskNode != null && message.hasOwnProperty("taskNode")) + $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) + $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.branchNode != null && message.hasOwnProperty("branchNode")) + $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Node message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) + message.upstreamNodeIds = []; + message.upstreamNodeIds.push(reader.string()); + break; + case 5: + if (!(message.outputAliases && message.outputAliases.length)) + message.outputAliases = []; + message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); + break; + case 6: + message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); + break; + case 7: + message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); + break; + case 8: + message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Node message. + * @function verify + * @memberof flyteidl.core.Node + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Node.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (let i = 0; i < message.inputs.length; ++i) { + let error = $root.flyteidl.core.Binding.verify(message.inputs[i]); + if (error) + return "inputs." + error; + } + } + if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { + if (!Array.isArray(message.upstreamNodeIds)) + return "upstreamNodeIds: array expected"; + for (let i = 0; i < message.upstreamNodeIds.length; ++i) + if (!$util.isString(message.upstreamNodeIds[i])) + return "upstreamNodeIds: string[] expected"; + } + if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { + if (!Array.isArray(message.outputAliases)) + return "outputAliases: array expected"; + for (let i = 0; i < message.outputAliases.length; ++i) { + let error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); + if (error) + return "outputAliases." + error; + } + } + if (message.taskNode != null && message.hasOwnProperty("taskNode")) { + properties.target = 1; + { + let error = $root.flyteidl.core.TaskNode.verify(message.taskNode); + if (error) + return "taskNode." + error; + } + } + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + let error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); + if (error) + return "workflowNode." + error; + } + } + if (message.branchNode != null && message.hasOwnProperty("branchNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + let error = $root.flyteidl.core.BranchNode.verify(message.branchNode); + if (error) + return "branchNode." + error; + } + } + return null; + }; + + return Node; + })(); + + core.WorkflowMetadata = (function() { + + /** + * Properties of a WorkflowMetadata. + * @memberof flyteidl.core + * @interface IWorkflowMetadata + */ + + /** + * Constructs a new WorkflowMetadata. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowMetadata. + * @implements IWorkflowMetadata + * @constructor + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + */ + function WorkflowMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance + */ + WorkflowMetadata.create = function create(properties) { + return new WorkflowMetadata(properties); + }; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowMetadata message. + * @function verify + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowMetadata; + })(); + + core.WorkflowTemplate = (function() { + + /** + * Properties of a WorkflowTemplate. + * @memberof flyteidl.core + * @interface IWorkflowTemplate + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id + * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface + * @property {Array.|null} [nodes] WorkflowTemplate nodes + * @property {Array.|null} [outputs] WorkflowTemplate outputs + * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode + */ + + /** + * Constructs a new WorkflowTemplate. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowTemplate. + * @implements IWorkflowTemplate + * @constructor + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + */ + function WorkflowTemplate(properties) { + this.nodes = []; + this.outputs = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.id = null; + + /** + * WorkflowTemplate metadata. + * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.metadata = null; + + /** + * WorkflowTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype["interface"] = null; + + /** + * WorkflowTemplate nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.nodes = $util.emptyArray; + + /** + * WorkflowTemplate outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.outputs = $util.emptyArray; + + /** + * WorkflowTemplate failureNode. + * @member {flyteidl.core.INode|null|undefined} failureNode + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.failureNode = null; + + /** + * Creates a new WorkflowTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance + */ + WorkflowTemplate.create = function create(properties) { + return new WorkflowTemplate(properties); + }; + + /** + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nodes != null && message.nodes.length) + for (let i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputs != null && message.outputs.length) + for (let i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.failureNode != null && message.hasOwnProperty("failureNode")) + $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); + break; + case 3: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 6: + message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowTemplate message. + * @function verify + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + let error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (let i = 0; i < message.nodes.length; ++i) { + let error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (let i = 0; i < message.outputs.length; ++i) { + let error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.failureNode != null && message.hasOwnProperty("failureNode")) { + let error = $root.flyteidl.core.Node.verify(message.failureNode); + if (error) + return "failureNode." + error; + } + return null; + }; + + return WorkflowTemplate; + })(); + + core.ComparisonExpression = (function() { + + /** + * Properties of a ComparisonExpression. + * @memberof flyteidl.core + * @interface IComparisonExpression + * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator + * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue + * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue + */ + + /** + * Constructs a new ComparisonExpression. + * @memberof flyteidl.core + * @classdesc Represents a ComparisonExpression. + * @implements IComparisonExpression + * @constructor + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + */ + function ComparisonExpression(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComparisonExpression operator. + * @member {flyteidl.core.ComparisonExpression.Operator} operator + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.operator = 0; + + /** + * ComparisonExpression leftValue. + * @member {flyteidl.core.IOperand|null|undefined} leftValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.leftValue = null; + + /** + * ComparisonExpression rightValue. + * @member {flyteidl.core.IOperand|null|undefined} rightValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.rightValue = null; + + /** + * Creates a new ComparisonExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance + */ + ComparisonExpression.create = function create(properties) { + return new ComparisonExpression(properties); + }; + + /** + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComparisonExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftValue != null && message.hasOwnProperty("leftValue")) + $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightValue != null && message.hasOwnProperty("rightValue")) + $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ComparisonExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComparisonExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + case 3: + message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ComparisonExpression message. + * @function verify + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComparisonExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.leftValue != null && message.hasOwnProperty("leftValue")) { + let error = $root.flyteidl.core.Operand.verify(message.leftValue); + if (error) + return "leftValue." + error; + } + if (message.rightValue != null && message.hasOwnProperty("rightValue")) { + let error = $root.flyteidl.core.Operand.verify(message.rightValue); + if (error) + return "rightValue." + error; + } + return null; + }; + + /** + * Operator enum. + * @name flyteidl.core.ComparisonExpression.Operator + * @enum {string} + * @property {number} EQ=0 EQ value + * @property {number} NEQ=1 NEQ value + * @property {number} GT=2 GT value + * @property {number} GTE=3 GTE value + * @property {number} LT=4 LT value + * @property {number} LTE=5 LTE value + */ + ComparisonExpression.Operator = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EQ"] = 0; + values[valuesById[1] = "NEQ"] = 1; + values[valuesById[2] = "GT"] = 2; + values[valuesById[3] = "GTE"] = 3; + values[valuesById[4] = "LT"] = 4; + values[valuesById[5] = "LTE"] = 5; + return values; + })(); + + return ComparisonExpression; + })(); + + core.Operand = (function() { + + /** + * Properties of an Operand. + * @memberof flyteidl.core + * @interface IOperand + * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive + * @property {string|null} ["var"] Operand var + */ + + /** + * Constructs a new Operand. + * @memberof flyteidl.core + * @classdesc Represents an Operand. + * @implements IOperand + * @constructor + * @param {flyteidl.core.IOperand=} [properties] Properties to set + */ + function Operand(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Operand primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.primitive = null; + + /** + * Operand var. + * @member {string} var + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype["var"] = ""; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Operand val. + * @member {"primitive"|"var"|undefined} val + * @memberof flyteidl.core.Operand + * @instance + */ + Object.defineProperty(Operand.prototype, "val", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "var"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operand instance using the specified properties. + * @function create + * @memberof flyteidl.core.Operand + * @static + * @param {flyteidl.core.IOperand=} [properties] Properties to set + * @returns {flyteidl.core.Operand} Operand instance + */ + Operand.create = function create(properties) { + return new Operand(properties); + }; + + /** + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Operand + * @static + * @param {flyteidl.core.IOperand} message Operand message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operand.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + return writer; + }; + + /** + * Decodes an Operand message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Operand + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Operand} Operand + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operand.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message["var"] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Operand message. + * @function verify + * @memberof flyteidl.core.Operand + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operand.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.val = 1; + { + let error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message["var"] != null && message.hasOwnProperty("var")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + if (!$util.isString(message["var"])) + return "var: string expected"; + } + return null; + }; + + return Operand; + })(); + + core.BooleanExpression = (function() { + + /** + * Properties of a BooleanExpression. + * @memberof flyteidl.core + * @interface IBooleanExpression + * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction + * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison + */ + + /** + * Constructs a new BooleanExpression. + * @memberof flyteidl.core + * @classdesc Represents a BooleanExpression. + * @implements IBooleanExpression + * @constructor + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + */ + function BooleanExpression(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BooleanExpression conjunction. + * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + BooleanExpression.prototype.conjunction = null; + + /** + * BooleanExpression comparison. + * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + BooleanExpression.prototype.comparison = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * BooleanExpression expr. + * @member {"conjunction"|"comparison"|undefined} expr + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + Object.defineProperty(BooleanExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BooleanExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance + */ + BooleanExpression.create = function create(properties) { + return new BooleanExpression(properties); + }; + + /** + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BooleanExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.conjunction != null && message.hasOwnProperty("conjunction")) + $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.comparison != null && message.hasOwnProperty("comparison")) + $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BooleanExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BooleanExpression} BooleanExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BooleanExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); + break; + case 2: + message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BooleanExpression message. + * @function verify + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BooleanExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.conjunction != null && message.hasOwnProperty("conjunction")) { + properties.expr = 1; + { + let error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); + if (error) + return "conjunction." + error; + } + } + if (message.comparison != null && message.hasOwnProperty("comparison")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + let error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); + if (error) + return "comparison." + error; + } + } + return null; + }; + + return BooleanExpression; + })(); + + core.ConjunctionExpression = (function() { + + /** + * Properties of a ConjunctionExpression. + * @memberof flyteidl.core + * @interface IConjunctionExpression + * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator + * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression + * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression + */ + + /** + * Constructs a new ConjunctionExpression. + * @memberof flyteidl.core + * @classdesc Represents a ConjunctionExpression. + * @implements IConjunctionExpression + * @constructor + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + */ + function ConjunctionExpression(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConjunctionExpression operator. + * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.operator = 0; + + /** + * ConjunctionExpression leftExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.leftExpression = null; + + /** + * ConjunctionExpression rightExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.rightExpression = null; + + /** + * Creates a new ConjunctionExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance + */ + ConjunctionExpression.create = function create(properties) { + return new ConjunctionExpression(properties); + }; + + /** + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConjunctionExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ConjunctionExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConjunctionExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 3: + message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ConjunctionExpression message. + * @function verify + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConjunctionExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + break; + } + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { + let error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); + if (error) + return "leftExpression." + error; + } + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { + let error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); + if (error) + return "rightExpression." + error; + } + return null; + }; + + /** + * LogicalOperator enum. + * @name flyteidl.core.ConjunctionExpression.LogicalOperator + * @enum {string} + * @property {number} AND=0 AND value + * @property {number} OR=1 OR value + */ + ConjunctionExpression.LogicalOperator = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AND"] = 0; + values[valuesById[1] = "OR"] = 1; + return values; + })(); + + return ConjunctionExpression; + })(); + + core.Primitive = (function() { + + /** + * Properties of a Primitive. + * @memberof flyteidl.core + * @interface IPrimitive + * @property {Long|null} [integer] Primitive integer + * @property {number|null} [floatValue] Primitive floatValue + * @property {string|null} [stringValue] Primitive stringValue + * @property {boolean|null} [boolean] Primitive boolean + * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime + * @property {google.protobuf.IDuration|null} [duration] Primitive duration + */ + + /** + * Constructs a new Primitive. + * @memberof flyteidl.core + * @classdesc Represents a Primitive. + * @implements IPrimitive + * @constructor + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + */ + function Primitive(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Primitive integer. + * @member {Long} integer + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Primitive floatValue. + * @member {number} floatValue + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.floatValue = 0; + + /** + * Primitive stringValue. + * @member {string} stringValue + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.stringValue = ""; + + /** + * Primitive boolean. + * @member {boolean} boolean + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.boolean = false; + + /** + * Primitive datetime. + * @member {google.protobuf.ITimestamp|null|undefined} datetime + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.datetime = null; + + /** + * Primitive duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.duration = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Primitive value. + * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value + * @memberof flyteidl.core.Primitive + * @instance + */ + Object.defineProperty(Primitive.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Primitive instance using the specified properties. + * @function create + * @memberof flyteidl.core.Primitive + * @static + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + * @returns {flyteidl.core.Primitive} Primitive instance + */ + Primitive.create = function create(properties) { + return new Primitive(properties); + }; + + /** + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Primitive + * @static + * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Primitive.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.integer != null && message.hasOwnProperty("integer")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); + if (message.floatValue != null && message.hasOwnProperty("floatValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolean != null && message.hasOwnProperty("boolean")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); + if (message.datetime != null && message.hasOwnProperty("datetime")) + $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Primitive message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Primitive + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Primitive} Primitive + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Primitive.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.integer = reader.int64(); + break; + case 2: + message.floatValue = reader.double(); + break; + case 3: + message.stringValue = reader.string(); + break; + case 4: + message.boolean = reader.bool(); + break; + case 5: + message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Primitive message. + * @function verify + * @memberof flyteidl.core.Primitive + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Primitive.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.integer != null && message.hasOwnProperty("integer")) { + properties.value = 1; + if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) + return "integer: integer|Long expected"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolean != null && message.hasOwnProperty("boolean")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.boolean !== "boolean") + return "boolean: boolean expected"; + } + if (message.datetime != null && message.hasOwnProperty("datetime")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.google.protobuf.Timestamp.verify(message.datetime); + if (error) + return "datetime." + error; + } + } + if (message.duration != null && message.hasOwnProperty("duration")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + } + return null; + }; + + return Primitive; + })(); + + core.Void = (function() { + + /** + * Properties of a Void. + * @memberof flyteidl.core + * @interface IVoid + */ + + /** + * Constructs a new Void. + * @memberof flyteidl.core + * @classdesc Represents a Void. + * @implements IVoid + * @constructor + * @param {flyteidl.core.IVoid=} [properties] Properties to set + */ + function Void(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Void instance using the specified properties. + * @function create + * @memberof flyteidl.core.Void + * @static + * @param {flyteidl.core.IVoid=} [properties] Properties to set + * @returns {flyteidl.core.Void} Void instance + */ + Void.create = function create(properties) { + return new Void(properties); + }; + + /** + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Void + * @static + * @param {flyteidl.core.IVoid} message Void message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Void.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a Void message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Void + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Void} Void + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Void.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Void message. + * @function verify + * @memberof flyteidl.core.Void + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Void.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return Void; + })(); + + core.Blob = (function() { + + /** + * Properties of a Blob. + * @memberof flyteidl.core + * @interface IBlob + * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata + * @property {string|null} [uri] Blob uri + */ + + /** + * Constructs a new Blob. + * @memberof flyteidl.core + * @classdesc Represents a Blob. + * @implements IBlob + * @constructor + * @param {flyteidl.core.IBlob=} [properties] Properties to set + */ + function Blob(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Blob metadata. + * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata + * @memberof flyteidl.core.Blob + * @instance + */ + Blob.prototype.metadata = null; + + /** + * Blob uri. + * @member {string} uri + * @memberof flyteidl.core.Blob + * @instance + */ + Blob.prototype.uri = ""; + + /** + * Creates a new Blob instance using the specified properties. + * @function create + * @memberof flyteidl.core.Blob + * @static + * @param {flyteidl.core.IBlob=} [properties] Properties to set + * @returns {flyteidl.core.Blob} Blob instance + */ + Blob.create = function create(properties) { + return new Blob(properties); + }; + + /** + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Blob + * @static + * @param {flyteidl.core.IBlob} message Blob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Blob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); + return writer; + }; + + /** + * Decodes a Blob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Blob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Blob} Blob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Blob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Blob message. + * @function verify + * @memberof flyteidl.core.Blob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Blob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + return null; + }; + + return Blob; + })(); + + core.BlobMetadata = (function() { + + /** + * Properties of a BlobMetadata. + * @memberof flyteidl.core + * @interface IBlobMetadata + * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type + */ + + /** + * Constructs a new BlobMetadata. + * @memberof flyteidl.core + * @classdesc Represents a BlobMetadata. + * @implements IBlobMetadata + * @constructor + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + */ + function BlobMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BlobMetadata type. + * @member {flyteidl.core.IBlobType|null|undefined} type + * @memberof flyteidl.core.BlobMetadata + * @instance + */ + BlobMetadata.prototype.type = null; + + /** + * Creates a new BlobMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance + */ + BlobMetadata.create = function create(properties) { + return new BlobMetadata(properties); + }; + + /** + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlobMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BlobMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BlobMetadata} BlobMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlobMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BlobMetadata message. + * @function verify + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlobMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) { + let error = $root.flyteidl.core.BlobType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return BlobMetadata; + })(); + + core.Binary = (function() { + + /** + * Properties of a Binary. + * @memberof flyteidl.core + * @interface IBinary + * @property {Uint8Array|null} [value] Binary value + * @property {string|null} [tag] Binary tag + */ + + /** + * Constructs a new Binary. + * @memberof flyteidl.core + * @classdesc Represents a Binary. + * @implements IBinary + * @constructor + * @param {flyteidl.core.IBinary=} [properties] Properties to set + */ + function Binary(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Binary value. + * @member {Uint8Array} value + * @memberof flyteidl.core.Binary + * @instance + */ + Binary.prototype.value = $util.newBuffer([]); + + /** + * Binary tag. + * @member {string} tag + * @memberof flyteidl.core.Binary + * @instance + */ + Binary.prototype.tag = ""; + + /** + * Creates a new Binary instance using the specified properties. + * @function create + * @memberof flyteidl.core.Binary + * @static + * @param {flyteidl.core.IBinary=} [properties] Properties to set + * @returns {flyteidl.core.Binary} Binary instance + */ + Binary.create = function create(properties) { + return new Binary(properties); + }; + + /** + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Binary + * @static + * @param {flyteidl.core.IBinary} message Binary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); + return writer; + }; + + /** + * Decodes a Binary message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Binary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Binary} Binary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binary.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bytes(); + break; + case 2: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Binary message. + * @function verify + * @memberof flyteidl.core.Binary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + return null; + }; + + return Binary; + })(); + + core.Schema = (function() { + + /** + * Properties of a Schema. + * @memberof flyteidl.core + * @interface ISchema + * @property {string|null} [uri] Schema uri + * @property {flyteidl.core.ISchemaType|null} [type] Schema type + */ + + /** + * Constructs a new Schema. + * @memberof flyteidl.core + * @classdesc Represents a Schema. + * @implements ISchema + * @constructor + * @param {flyteidl.core.ISchema=} [properties] Properties to set + */ + function Schema(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Schema uri. + * @member {string} uri + * @memberof flyteidl.core.Schema + * @instance + */ + Schema.prototype.uri = ""; + + /** + * Schema type. + * @member {flyteidl.core.ISchemaType|null|undefined} type + * @memberof flyteidl.core.Schema + * @instance + */ + Schema.prototype.type = null; + + /** + * Creates a new Schema instance using the specified properties. + * @function create + * @memberof flyteidl.core.Schema + * @static + * @param {flyteidl.core.ISchema=} [properties] Properties to set + * @returns {flyteidl.core.Schema} Schema instance + */ + Schema.create = function create(properties) { + return new Schema(properties); + }; + + /** + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Schema + * @static + * @param {flyteidl.core.ISchema} message Schema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Schema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Schema} Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 3: + message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Schema message. + * @function verify + * @memberof flyteidl.core.Schema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + let error = $root.flyteidl.core.SchemaType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return Schema; + })(); + + core.Scalar = (function() { + + /** + * Properties of a Scalar. + * @memberof flyteidl.core + * @interface IScalar + * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive + * @property {flyteidl.core.IBlob|null} [blob] Scalar blob + * @property {flyteidl.core.IBinary|null} [binary] Scalar binary + * @property {flyteidl.core.ISchema|null} [schema] Scalar schema + * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType + * @property {flyteidl.core.IError|null} [error] Scalar error + * @property {google.protobuf.IStruct|null} [generic] Scalar generic + */ + + /** + * Constructs a new Scalar. + * @memberof flyteidl.core + * @classdesc Represents a Scalar. + * @implements IScalar + * @constructor + * @param {flyteidl.core.IScalar=} [properties] Properties to set + */ + function Scalar(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Scalar primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.primitive = null; + + /** + * Scalar blob. + * @member {flyteidl.core.IBlob|null|undefined} blob + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.blob = null; + + /** + * Scalar binary. + * @member {flyteidl.core.IBinary|null|undefined} binary + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.binary = null; + + /** + * Scalar schema. + * @member {flyteidl.core.ISchema|null|undefined} schema + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.schema = null; + + /** + * Scalar noneType. + * @member {flyteidl.core.IVoid|null|undefined} noneType + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.noneType = null; + + /** + * Scalar error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.error = null; + + /** + * Scalar generic. + * @member {google.protobuf.IStruct|null|undefined} generic + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.generic = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Scalar value. + * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|undefined} value + * @memberof flyteidl.core.Scalar + * @instance + */ + Object.defineProperty(Scalar.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Scalar instance using the specified properties. + * @function create + * @memberof flyteidl.core.Scalar + * @static + * @param {flyteidl.core.IScalar=} [properties] Properties to set + * @returns {flyteidl.core.Scalar} Scalar instance + */ + Scalar.create = function create(properties) { + return new Scalar(properties); + }; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Scalar + * @static + * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scalar.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.binary != null && message.hasOwnProperty("binary")) + $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.noneType != null && message.hasOwnProperty("noneType")) + $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.generic != null && message.hasOwnProperty("generic")) + $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Scalar + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Scalar} Scalar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scalar.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); + break; + case 3: + message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); + break; + case 4: + message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); + break; + case 5: + message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); + break; + case 6: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + case 7: + message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Scalar message. + * @function verify + * @memberof flyteidl.core.Scalar + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Scalar.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.value = 1; + { + let error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.Blob.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.binary != null && message.hasOwnProperty("binary")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.Binary.verify(message.binary); + if (error) + return "binary." + error; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.Schema.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.noneType != null && message.hasOwnProperty("noneType")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.Void.verify(message.noneType); + if (error) + return "noneType." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.generic != null && message.hasOwnProperty("generic")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.google.protobuf.Struct.verify(message.generic); + if (error) + return "generic." + error; + } + } + return null; + }; + + return Scalar; + })(); + + core.Literal = (function() { + + /** + * Properties of a Literal. + * @memberof flyteidl.core + * @interface ILiteral + * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar + * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection + * @property {flyteidl.core.ILiteralMap|null} [map] Literal map + */ + + /** + * Constructs a new Literal. + * @memberof flyteidl.core + * @classdesc Represents a Literal. + * @implements ILiteral + * @constructor + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + */ + function Literal(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Literal scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.scalar = null; + + /** + * Literal collection. + * @member {flyteidl.core.ILiteralCollection|null|undefined} collection + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.collection = null; + + /** + * Literal map. + * @member {flyteidl.core.ILiteralMap|null|undefined} map + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.map = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Literal value. + * @member {"scalar"|"collection"|"map"|undefined} value + * @memberof flyteidl.core.Literal + * @instance + */ + Object.defineProperty(Literal.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Literal instance using the specified properties. + * @function create + * @memberof flyteidl.core.Literal + * @static + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + * @returns {flyteidl.core.Literal} Literal instance + */ + Literal.create = function create(properties) { + return new Literal(properties); + }; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Literal + * @static + * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Literal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Literal message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Literal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Literal} Literal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Literal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + case 2: + message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); + break; + case 3: + message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Literal message. + * @function verify + * @memberof flyteidl.core.Literal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Literal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + let error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.LiteralCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.LiteralMap.verify(message.map); + if (error) + return "map." + error; + } + } + return null; + }; + + return Literal; + })(); + + core.LiteralCollection = (function() { + + /** + * Properties of a LiteralCollection. + * @memberof flyteidl.core + * @interface ILiteralCollection + * @property {Array.|null} [literals] LiteralCollection literals + */ + + /** + * Constructs a new LiteralCollection. + * @memberof flyteidl.core + * @classdesc Represents a LiteralCollection. + * @implements ILiteralCollection + * @constructor + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + */ + function LiteralCollection(properties) { + this.literals = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralCollection literals. + * @member {Array.} literals + * @memberof flyteidl.core.LiteralCollection + * @instance + */ + LiteralCollection.prototype.literals = $util.emptyArray; + + /** + * Creates a new LiteralCollection instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance + */ + LiteralCollection.create = function create(properties) { + return new LiteralCollection(properties); + }; + + /** + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralCollection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literals != null && message.literals.length) + for (let i = 0; i < message.literals.length; ++i) + $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralCollection message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralCollection} LiteralCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralCollection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.literals && message.literals.length)) + message.literals = []; + message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralCollection message. + * @function verify + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralCollection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!Array.isArray(message.literals)) + return "literals: array expected"; + for (let i = 0; i < message.literals.length; ++i) { + let error = $root.flyteidl.core.Literal.verify(message.literals[i]); + if (error) + return "literals." + error; + } + } + return null; + }; + + return LiteralCollection; + })(); + + core.LiteralMap = (function() { + + /** + * Properties of a LiteralMap. + * @memberof flyteidl.core + * @interface ILiteralMap + * @property {Object.|null} [literals] LiteralMap literals + */ + + /** + * Constructs a new LiteralMap. + * @memberof flyteidl.core + * @classdesc Represents a LiteralMap. + * @implements ILiteralMap + * @constructor + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + */ + function LiteralMap(properties) { + this.literals = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralMap literals. + * @member {Object.} literals + * @memberof flyteidl.core.LiteralMap + * @instance + */ + LiteralMap.prototype.literals = $util.emptyObject; + + /** + * Creates a new LiteralMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralMap + * @static + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + * @returns {flyteidl.core.LiteralMap} LiteralMap instance + */ + LiteralMap.create = function create(properties) { + return new LiteralMap(properties); + }; + + /** + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralMap + * @static + * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literals != null && message.hasOwnProperty("literals")) + for (let keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a LiteralMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralMap} LiteralMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.literals === $util.emptyObject) + message.literals = {}; + key = reader.string(); + reader.pos++; + message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralMap message. + * @function verify + * @memberof flyteidl.core.LiteralMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!$util.isObject(message.literals)) + return "literals: object expected"; + let key = Object.keys(message.literals); + for (let i = 0; i < key.length; ++i) { + let error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); + if (error) + return "literals." + error; + } + } + return null; + }; + + return LiteralMap; + })(); + + core.BindingDataCollection = (function() { + + /** + * Properties of a BindingDataCollection. + * @memberof flyteidl.core + * @interface IBindingDataCollection + * @property {Array.|null} [bindings] BindingDataCollection bindings + */ + + /** + * Constructs a new BindingDataCollection. + * @memberof flyteidl.core + * @classdesc Represents a BindingDataCollection. + * @implements IBindingDataCollection + * @constructor + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + */ + function BindingDataCollection(properties) { + this.bindings = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingDataCollection bindings. + * @member {Array.} bindings + * @memberof flyteidl.core.BindingDataCollection + * @instance + */ + BindingDataCollection.prototype.bindings = $util.emptyArray; + + /** + * Creates a new BindingDataCollection instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance + */ + BindingDataCollection.create = function create(properties) { + return new BindingDataCollection(properties); + }; + + /** + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingDataCollection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bindings != null && message.bindings.length) + for (let i = 0; i < message.bindings.length; ++i) + $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BindingDataCollection message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingDataCollection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.bindings && message.bindings.length)) + message.bindings = []; + message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingDataCollection message. + * @function verify + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingDataCollection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!Array.isArray(message.bindings)) + return "bindings: array expected"; + for (let i = 0; i < message.bindings.length; ++i) { + let error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); + if (error) + return "bindings." + error; + } + } + return null; + }; + + return BindingDataCollection; + })(); + + core.BindingDataMap = (function() { + + /** + * Properties of a BindingDataMap. + * @memberof flyteidl.core + * @interface IBindingDataMap + * @property {Object.|null} [bindings] BindingDataMap bindings + */ + + /** + * Constructs a new BindingDataMap. + * @memberof flyteidl.core + * @classdesc Represents a BindingDataMap. + * @implements IBindingDataMap + * @constructor + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + */ + function BindingDataMap(properties) { + this.bindings = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingDataMap bindings. + * @member {Object.} bindings + * @memberof flyteidl.core.BindingDataMap + * @instance + */ + BindingDataMap.prototype.bindings = $util.emptyObject; + + /** + * Creates a new BindingDataMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance + */ + BindingDataMap.create = function create(properties) { + return new BindingDataMap(properties); + }; + + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingDataMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bindings != null && message.hasOwnProperty("bindings")) + for (let keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingDataMap} BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingDataMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.bindings === $util.emptyObject) + message.bindings = {}; + key = reader.string(); + reader.pos++; + message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingDataMap message. + * @function verify + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingDataMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!$util.isObject(message.bindings)) + return "bindings: object expected"; + let key = Object.keys(message.bindings); + for (let i = 0; i < key.length; ++i) { + let error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); + if (error) + return "bindings." + error; + } + } + return null; + }; + + return BindingDataMap; + })(); + + core.BindingData = (function() { + + /** + * Properties of a BindingData. + * @memberof flyteidl.core + * @interface IBindingData + * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar + * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection + * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise + * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map + */ + + /** + * Constructs a new BindingData. + * @memberof flyteidl.core + * @classdesc Represents a BindingData. + * @implements IBindingData + * @constructor + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + */ + function BindingData(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingData scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.scalar = null; + + /** + * BindingData collection. + * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.collection = null; + + /** + * BindingData promise. + * @member {flyteidl.core.IOutputReference|null|undefined} promise + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.promise = null; + + /** + * BindingData map. + * @member {flyteidl.core.IBindingDataMap|null|undefined} map + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.map = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * BindingData value. + * @member {"scalar"|"collection"|"promise"|"map"|undefined} value + * @memberof flyteidl.core.BindingData + * @instance + */ + Object.defineProperty(BindingData.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BindingData instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingData + * @static + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + * @returns {flyteidl.core.BindingData} BindingData instance + */ + BindingData.create = function create(properties) { + return new BindingData(properties); + }; + + /** + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingData + * @static + * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.promise != null && message.hasOwnProperty("promise")) + $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BindingData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingData} BindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + case 2: + message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); + break; + case 3: + message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); + break; + case 4: + message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingData message. + * @function verify + * @memberof flyteidl.core.BindingData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + let error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.promise != null && message.hasOwnProperty("promise")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.OutputReference.verify(message.promise); + if (error) + return "promise." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + let error = $root.flyteidl.core.BindingDataMap.verify(message.map); + if (error) + return "map." + error; + } + } + return null; + }; + + return BindingData; + })(); + + core.Binding = (function() { + + /** + * Properties of a Binding. + * @memberof flyteidl.core + * @interface IBinding + * @property {string|null} ["var"] Binding var + * @property {flyteidl.core.IBindingData|null} [binding] Binding binding + */ + + /** + * Constructs a new Binding. + * @memberof flyteidl.core + * @classdesc Represents a Binding. + * @implements IBinding + * @constructor + * @param {flyteidl.core.IBinding=} [properties] Properties to set + */ + function Binding(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Binding var. + * @member {string} var + * @memberof flyteidl.core.Binding + * @instance + */ + Binding.prototype["var"] = ""; + + /** + * Binding binding. + * @member {flyteidl.core.IBindingData|null|undefined} binding + * @memberof flyteidl.core.Binding + * @instance + */ + Binding.prototype.binding = null; + + /** + * Creates a new Binding instance using the specified properties. + * @function create + * @memberof flyteidl.core.Binding + * @static + * @param {flyteidl.core.IBinding=} [properties] Properties to set + * @returns {flyteidl.core.Binding} Binding instance + */ + Binding.create = function create(properties) { + return new Binding(properties); + }; + + /** + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Binding + * @static + * @param {flyteidl.core.IBinding} message Binding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.binding != null && message.hasOwnProperty("binding")) + $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Binding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Binding} Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binding.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + case 2: + message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Binding message. + * @function verify + * @memberof flyteidl.core.Binding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.binding != null && message.hasOwnProperty("binding")) { + let error = $root.flyteidl.core.BindingData.verify(message.binding); + if (error) + return "binding." + error; + } + return null; + }; + + return Binding; + })(); + + core.KeyValuePair = (function() { + + /** + * Properties of a KeyValuePair. + * @memberof flyteidl.core + * @interface IKeyValuePair + * @property {string|null} [key] KeyValuePair key + * @property {string|null} [value] KeyValuePair value + */ + + /** + * Constructs a new KeyValuePair. + * @memberof flyteidl.core + * @classdesc Represents a KeyValuePair. + * @implements IKeyValuePair + * @constructor + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + */ + function KeyValuePair(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KeyValuePair key. + * @member {string} key + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.key = ""; + + /** + * KeyValuePair value. + * @member {string} value + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.value = ""; + + /** + * Creates a new KeyValuePair instance using the specified properties. + * @function create + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance + */ + KeyValuePair.create = function create(properties) { + return new KeyValuePair(properties); + }; + + /** + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyValuePair.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; + + /** + * Decodes a KeyValuePair message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.KeyValuePair} KeyValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyValuePair.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a KeyValuePair message. + * @function verify + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KeyValuePair.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return KeyValuePair; + })(); + + core.RetryStrategy = (function() { + + /** + * Properties of a RetryStrategy. + * @memberof flyteidl.core + * @interface IRetryStrategy + * @property {number|null} [retries] RetryStrategy retries + */ + + /** + * Constructs a new RetryStrategy. + * @memberof flyteidl.core + * @classdesc Represents a RetryStrategy. + * @implements IRetryStrategy + * @constructor + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + */ + function RetryStrategy(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RetryStrategy retries. + * @member {number} retries + * @memberof flyteidl.core.RetryStrategy + * @instance + */ + RetryStrategy.prototype.retries = 0; + + /** + * Creates a new RetryStrategy instance using the specified properties. + * @function create + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance + */ + RetryStrategy.create = function create(properties) { + return new RetryStrategy(properties); + }; + + /** + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RetryStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.retries != null && message.hasOwnProperty("retries")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); + return writer; + }; + + /** + * Decodes a RetryStrategy message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.RetryStrategy} RetryStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RetryStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.retries = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RetryStrategy message. + * @function verify + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RetryStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.retries != null && message.hasOwnProperty("retries")) + if (!$util.isInteger(message.retries)) + return "retries: integer expected"; + return null; + }; + + return RetryStrategy; + })(); + + /** + * SimpleType enum. + * @name flyteidl.core.SimpleType + * @enum {string} + * @property {number} NONE=0 NONE value + * @property {number} INTEGER=1 INTEGER value + * @property {number} FLOAT=2 FLOAT value + * @property {number} STRING=3 STRING value + * @property {number} BOOLEAN=4 BOOLEAN value + * @property {number} DATETIME=5 DATETIME value + * @property {number} DURATION=6 DURATION value + * @property {number} BINARY=7 BINARY value + * @property {number} ERROR=8 ERROR value + * @property {number} STRUCT=9 STRUCT value + */ + core.SimpleType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "INTEGER"] = 1; + values[valuesById[2] = "FLOAT"] = 2; + values[valuesById[3] = "STRING"] = 3; + values[valuesById[4] = "BOOLEAN"] = 4; + values[valuesById[5] = "DATETIME"] = 5; + values[valuesById[6] = "DURATION"] = 6; + values[valuesById[7] = "BINARY"] = 7; + values[valuesById[8] = "ERROR"] = 8; + values[valuesById[9] = "STRUCT"] = 9; + return values; + })(); + + core.SchemaType = (function() { + + /** + * Properties of a SchemaType. + * @memberof flyteidl.core + * @interface ISchemaType + * @property {Array.|null} [columns] SchemaType columns + */ + + /** + * Constructs a new SchemaType. + * @memberof flyteidl.core + * @classdesc Represents a SchemaType. + * @implements ISchemaType + * @constructor + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + */ + function SchemaType(properties) { + this.columns = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchemaType columns. + * @member {Array.} columns + * @memberof flyteidl.core.SchemaType + * @instance + */ + SchemaType.prototype.columns = $util.emptyArray; + + /** + * Creates a new SchemaType instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType + * @static + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType} SchemaType instance + */ + SchemaType.create = function create(properties) { + return new SchemaType(properties); + }; + + /** + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType + * @static + * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columns != null && message.columns.length) + for (let i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SchemaType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType} SchemaType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaType message. + * @function verify + * @memberof flyteidl.core.SchemaType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (let i = 0; i < message.columns.length; ++i) { + let error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + return null; + }; + + SchemaType.SchemaColumn = (function() { + + /** + * Properties of a SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @interface ISchemaColumn + * @property {string|null} [name] SchemaColumn name + * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type + */ + + /** + * Constructs a new SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @classdesc Represents a SchemaColumn. + * @implements ISchemaColumn + * @constructor + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + */ + function SchemaColumn(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchemaColumn name. + * @member {string} name + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.name = ""; + + /** + * SchemaColumn type. + * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.type = 0; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance + */ + SchemaColumn.create = function create(properties) { + return new SchemaColumn(properties); + }; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + return writer; + }; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaColumn message. + * @function verify + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaColumn.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.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * SchemaColumnType enum. + * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + * @enum {string} + * @property {number} INTEGER=0 INTEGER value + * @property {number} FLOAT=1 FLOAT value + * @property {number} STRING=2 STRING value + * @property {number} BOOLEAN=3 BOOLEAN value + * @property {number} DATETIME=4 DATETIME value + * @property {number} DURATION=5 DURATION value + */ + SchemaColumn.SchemaColumnType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTEGER"] = 0; + values[valuesById[1] = "FLOAT"] = 1; + values[valuesById[2] = "STRING"] = 2; + values[valuesById[3] = "BOOLEAN"] = 3; + values[valuesById[4] = "DATETIME"] = 4; + values[valuesById[5] = "DURATION"] = 5; + return values; + })(); + + return SchemaColumn; + })(); + + return SchemaType; + })(); + + core.BlobType = (function() { + + /** + * Properties of a BlobType. + * @memberof flyteidl.core + * @interface IBlobType + * @property {string|null} [format] BlobType format + * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality + */ + + /** + * Constructs a new BlobType. + * @memberof flyteidl.core + * @classdesc Represents a BlobType. + * @implements IBlobType + * @constructor + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + */ + function BlobType(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BlobType format. + * @member {string} format + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.format = ""; + + /** + * BlobType dimensionality. + * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.dimensionality = 0; + + /** + * Creates a new BlobType instance using the specified properties. + * @function create + * @memberof flyteidl.core.BlobType + * @static + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + * @returns {flyteidl.core.BlobType} BlobType instance + */ + BlobType.create = function create(properties) { + return new BlobType(properties); + }; + + /** + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BlobType + * @static + * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlobType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); + return writer; + }; + + /** + * Decodes a BlobType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BlobType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BlobType} BlobType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlobType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.format = reader.string(); + break; + case 2: + message.dimensionality = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BlobType message. + * @function verify + * @memberof flyteidl.core.BlobType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlobType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + switch (message.dimensionality) { + default: + return "dimensionality: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * BlobDimensionality enum. + * @name flyteidl.core.BlobType.BlobDimensionality + * @enum {string} + * @property {number} SINGLE=0 SINGLE value + * @property {number} MULTIPART=1 MULTIPART value + */ + BlobType.BlobDimensionality = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SINGLE"] = 0; + values[valuesById[1] = "MULTIPART"] = 1; + return values; + })(); + + return BlobType; + })(); + + core.LiteralType = (function() { + + /** + * Properties of a LiteralType. + * @memberof flyteidl.core + * @interface ILiteralType + * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple + * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema + * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType + * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType + * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob + * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata + */ + + /** + * Constructs a new LiteralType. + * @memberof flyteidl.core + * @classdesc Represents a LiteralType. + * @implements ILiteralType + * @constructor + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + */ + function LiteralType(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralType simple. + * @member {flyteidl.core.SimpleType} simple + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.simple = 0; + + /** + * LiteralType schema. + * @member {flyteidl.core.ISchemaType|null|undefined} schema + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.schema = null; + + /** + * LiteralType collectionType. + * @member {flyteidl.core.ILiteralType|null|undefined} collectionType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.collectionType = null; + + /** + * LiteralType mapValueType. + * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.mapValueType = null; + + /** + * LiteralType blob. + * @member {flyteidl.core.IBlobType|null|undefined} blob + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.blob = null; + + /** + * LiteralType metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.metadata = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * LiteralType type. + * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|undefined} type + * @memberof flyteidl.core.LiteralType + * @instance + */ + Object.defineProperty(LiteralType.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralType instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + * @returns {flyteidl.core.LiteralType} LiteralType instance + */ + LiteralType.create = function create(properties) { + return new LiteralType(properties); + }; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.simple != null && message.hasOwnProperty("simple")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.collectionType != null && message.hasOwnProperty("collectionType")) + $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) + $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralType} LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.simple = reader.int32(); + break; + case 2: + message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + case 3: + message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 4: + message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 5: + message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + case 6: + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralType message. + * @function verify + * @memberof flyteidl.core.LiteralType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.simple != null && message.hasOwnProperty("simple")) { + properties.type = 1; + switch (message.simple) { + default: + return "simple: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + let error = $root.flyteidl.core.SchemaType.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.collectionType != null && message.hasOwnProperty("collectionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + let error = $root.flyteidl.core.LiteralType.verify(message.collectionType); + if (error) + return "collectionType." + error; + } + } + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + let error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); + if (error) + return "mapValueType." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + let error = $root.flyteidl.core.BlobType.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return LiteralType; + })(); + + core.OutputReference = (function() { + + /** + * Properties of an OutputReference. + * @memberof flyteidl.core + * @interface IOutputReference + * @property {string|null} [nodeId] OutputReference nodeId + * @property {string|null} ["var"] OutputReference var + */ + + /** + * Constructs a new OutputReference. + * @memberof flyteidl.core + * @classdesc Represents an OutputReference. + * @implements IOutputReference + * @constructor + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + */ + function OutputReference(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OutputReference nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype.nodeId = ""; + + /** + * OutputReference var. + * @member {string} var + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype["var"] = ""; + + /** + * Creates a new OutputReference instance using the specified properties. + * @function create + * @memberof flyteidl.core.OutputReference + * @static + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + * @returns {flyteidl.core.OutputReference} OutputReference instance + */ + OutputReference.create = function create(properties) { + return new OutputReference(properties); + }; + + /** + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OutputReference + * @static + * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + return writer; + }; + + /** + * Decodes an OutputReference message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OutputReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OutputReference} OutputReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + case 2: + message["var"] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OutputReference message. + * @function verify + * @memberof flyteidl.core.OutputReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + return null; + }; + + return OutputReference; + })(); + + core.Error = (function() { + + /** + * Properties of an Error. + * @memberof flyteidl.core + * @interface IError + * @property {string|null} [failedNodeId] Error failedNodeId + * @property {string|null} [message] Error message + */ + + /** + * Constructs a new Error. + * @memberof flyteidl.core + * @classdesc Represents an Error. + * @implements IError + * @constructor + * @param {flyteidl.core.IError=} [properties] Properties to set + */ + function Error(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Error failedNodeId. + * @member {string} failedNodeId + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.failedNodeId = ""; + + /** + * Error message. + * @member {string} message + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.message = ""; + + /** + * Creates a new Error instance using the specified properties. + * @function create + * @memberof flyteidl.core.Error + * @static + * @param {flyteidl.core.IError=} [properties] Properties to set + * @returns {flyteidl.core.Error} Error instance + */ + Error.create = function create(properties) { + return new Error(properties); + }; + + /** + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Error + * @static + * @param {flyteidl.core.IError} message Error message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Error.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; + + /** + * Decodes an Error message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Error + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Error} Error + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Error.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.failedNodeId = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Error message. + * @function verify + * @memberof flyteidl.core.Error + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Error.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + if (!$util.isString(message.failedNodeId)) + return "failedNodeId: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + return null; + }; + + return Error; + })(); + + /** + * ResourceType enum. + * @name flyteidl.core.ResourceType + * @enum {string} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} TASK=1 TASK value + * @property {number} WORKFLOW=2 WORKFLOW value + * @property {number} LAUNCH_PLAN=3 LAUNCH_PLAN value + */ + core.ResourceType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "TASK"] = 1; + values[valuesById[2] = "WORKFLOW"] = 2; + values[valuesById[3] = "LAUNCH_PLAN"] = 3; + return values; + })(); + + core.Identifier = (function() { + + /** + * Properties of an Identifier. + * @memberof flyteidl.core + * @interface IIdentifier + * @property {flyteidl.core.ResourceType|null} [resourceType] Identifier resourceType + * @property {string|null} [project] Identifier project + * @property {string|null} [domain] Identifier domain + * @property {string|null} [name] Identifier name + * @property {string|null} [version] Identifier version + */ + + /** + * Constructs a new Identifier. + * @memberof flyteidl.core + * @classdesc Represents an Identifier. + * @implements IIdentifier + * @constructor + * @param {flyteidl.core.IIdentifier=} [properties] Properties to set + */ + function Identifier(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Identifier resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.resourceType = 0; + + /** + * Identifier project. + * @member {string} project + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.project = ""; + + /** + * Identifier domain. + * @member {string} domain + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.domain = ""; + + /** + * Identifier name. + * @member {string} name + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.name = ""; + + /** + * Identifier version. + * @member {string} version + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.version = ""; + + /** + * Creates a new Identifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.Identifier + * @static + * @param {flyteidl.core.IIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.Identifier} Identifier instance + */ + Identifier.create = function create(properties) { + return new Identifier(properties); + }; + + /** + * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Identifier + * @static + * @param {flyteidl.core.IIdentifier} message Identifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Identifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + return writer; + }; + + /** + * Decodes an Identifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Identifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Identifier} Identifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Identifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identifier(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.domain = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + case 5: + message.version = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Identifier message. + * @function verify + * @memberof flyteidl.core.Identifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Identifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + return Identifier; + })(); + + core.WorkflowExecutionIdentifier = (function() { + + /** + * Properties of a WorkflowExecutionIdentifier. + * @memberof flyteidl.core + * @interface IWorkflowExecutionIdentifier + * @property {string|null} [project] WorkflowExecutionIdentifier project + * @property {string|null} [domain] WorkflowExecutionIdentifier domain + * @property {string|null} [name] WorkflowExecutionIdentifier name + */ + + /** + * Constructs a new WorkflowExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowExecutionIdentifier. + * @implements IWorkflowExecutionIdentifier + * @constructor + * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set + */ + function WorkflowExecutionIdentifier(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionIdentifier project. + * @member {string} project + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.project = ""; + + /** + * WorkflowExecutionIdentifier domain. + * @member {string} domain + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.domain = ""; + + /** + * WorkflowExecutionIdentifier name. + * @member {string} name + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.name = ""; + + /** + * Creates a new WorkflowExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier instance + */ + WorkflowExecutionIdentifier.create = function create(properties) { + return new WorkflowExecutionIdentifier(properties); + }; + + /** + * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {flyteidl.core.IWorkflowExecutionIdentifier} message WorkflowExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + return writer; + }; + + /** + * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecutionIdentifier(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return WorkflowExecutionIdentifier; + })(); + + core.NodeExecutionIdentifier = (function() { + + /** + * Properties of a NodeExecutionIdentifier. + * @memberof flyteidl.core + * @interface INodeExecutionIdentifier + * @property {string|null} [nodeId] NodeExecutionIdentifier nodeId + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] NodeExecutionIdentifier executionId + */ + + /** + * Constructs a new NodeExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a NodeExecutionIdentifier. + * @implements INodeExecutionIdentifier + * @constructor + * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set + */ + function NodeExecutionIdentifier(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionIdentifier nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.NodeExecutionIdentifier + * @instance + */ + NodeExecutionIdentifier.prototype.nodeId = ""; + + /** + * NodeExecutionIdentifier executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.core.NodeExecutionIdentifier + * @instance + */ + NodeExecutionIdentifier.prototype.executionId = null; + + /** + * Creates a new NodeExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier instance + */ + NodeExecutionIdentifier.create = function create(properties) { + return new NodeExecutionIdentifier(properties); + }; + + /** + * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {flyteidl.core.INodeExecutionIdentifier} message NodeExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecutionIdentifier(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + case 2: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return NodeExecutionIdentifier; + })(); + + core.TaskExecutionIdentifier = (function() { + + /** + * Properties of a TaskExecutionIdentifier. + * @memberof flyteidl.core + * @interface ITaskExecutionIdentifier + * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionIdentifier taskId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionIdentifier nodeExecutionId + * @property {number|null} [retryAttempt] TaskExecutionIdentifier retryAttempt + */ + + /** + * Constructs a new TaskExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecutionIdentifier. + * @implements ITaskExecutionIdentifier + * @constructor + * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set + */ + function TaskExecutionIdentifier(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionIdentifier taskId. + * @member {flyteidl.core.IIdentifier|null|undefined} taskId + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.taskId = null; + + /** + * TaskExecutionIdentifier nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.nodeExecutionId = null; + + /** + * TaskExecutionIdentifier retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.retryAttempt = 0; + + /** + * Creates a new TaskExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier instance + */ + TaskExecutionIdentifier.create = function create(properties) { + return new TaskExecutionIdentifier(properties); + }; + + /** + * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {flyteidl.core.ITaskExecutionIdentifier} message TaskExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + return writer; + }; + + /** + * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecutionIdentifier(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskId != null && message.hasOwnProperty("taskId")) { + let error = $root.flyteidl.core.Identifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + return null; + }; + + return TaskExecutionIdentifier; + })(); + + core.Variable = (function() { + + /** + * Properties of a Variable. + * @memberof flyteidl.core + * @interface IVariable + * @property {flyteidl.core.ILiteralType|null} [type] Variable type + * @property {string|null} [description] Variable description + */ + + /** + * Constructs a new Variable. + * @memberof flyteidl.core + * @classdesc Represents a Variable. + * @implements IVariable + * @constructor + * @param {flyteidl.core.IVariable=} [properties] Properties to set + */ + function Variable(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Variable type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.type = null; + + /** + * Variable description. + * @member {string} description + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.description = ""; + + /** + * Creates a new Variable instance using the specified properties. + * @function create + * @memberof flyteidl.core.Variable + * @static + * @param {flyteidl.core.IVariable=} [properties] Properties to set + * @returns {flyteidl.core.Variable} Variable instance + */ + Variable.create = function create(properties) { + return new Variable(properties); + }; + + /** + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Variable + * @static + * @param {flyteidl.core.IVariable} message Variable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Decodes a Variable message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Variable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Variable} Variable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Variable message. + * @function verify + * @memberof flyteidl.core.Variable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Variable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) { + let error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + return Variable; + })(); + + core.VariableMap = (function() { + + /** + * Properties of a VariableMap. + * @memberof flyteidl.core + * @interface IVariableMap + * @property {Object.|null} [variables] VariableMap variables + */ + + /** + * Constructs a new VariableMap. + * @memberof flyteidl.core + * @classdesc Represents a VariableMap. + * @implements IVariableMap + * @constructor + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + */ + function VariableMap(properties) { + this.variables = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VariableMap variables. + * @member {Object.} variables + * @memberof flyteidl.core.VariableMap + * @instance + */ + VariableMap.prototype.variables = $util.emptyObject; + + /** + * Creates a new VariableMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.VariableMap + * @static + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + * @returns {flyteidl.core.VariableMap} VariableMap instance + */ + VariableMap.create = function create(properties) { + return new VariableMap(properties); + }; + + /** + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.VariableMap + * @static + * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VariableMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variables != null && message.hasOwnProperty("variables")) + for (let keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a VariableMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.VariableMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.VariableMap} VariableMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VariableMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.variables === $util.emptyObject) + message.variables = {}; + key = reader.string(); + reader.pos++; + message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a VariableMap message. + * @function verify + * @memberof flyteidl.core.VariableMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VariableMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!$util.isObject(message.variables)) + return "variables: object expected"; + let key = Object.keys(message.variables); + for (let i = 0; i < key.length; ++i) { + let error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); + if (error) + return "variables." + error; + } + } + return null; + }; + + return VariableMap; + })(); + + core.TypedInterface = (function() { + + /** + * Properties of a TypedInterface. + * @memberof flyteidl.core + * @interface ITypedInterface + * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs + * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs + */ + + /** + * Constructs a new TypedInterface. + * @memberof flyteidl.core + * @classdesc Represents a TypedInterface. + * @implements ITypedInterface + * @constructor + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + */ + function TypedInterface(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypedInterface inputs. + * @member {flyteidl.core.IVariableMap|null|undefined} inputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.inputs = null; + + /** + * TypedInterface outputs. + * @member {flyteidl.core.IVariableMap|null|undefined} outputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.outputs = null; + + /** + * Creates a new TypedInterface instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypedInterface + * @static + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + * @returns {flyteidl.core.TypedInterface} TypedInterface instance + */ + TypedInterface.create = function create(properties) { + return new TypedInterface(properties); + }; + + /** + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypedInterface + * @static + * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypedInterface.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TypedInterface message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypedInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypedInterface} TypedInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypedInterface.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypedInterface message. + * @function verify + * @memberof flyteidl.core.TypedInterface + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypedInterface.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + let error = $root.flyteidl.core.VariableMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + let error = $root.flyteidl.core.VariableMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return TypedInterface; + })(); + + core.Parameter = (function() { + + /** + * Properties of a Parameter. + * @memberof flyteidl.core + * @interface IParameter + * @property {flyteidl.core.IVariable|null} ["var"] Parameter var + * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default + * @property {boolean|null} [required] Parameter required + */ + + /** + * Constructs a new Parameter. + * @memberof flyteidl.core + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {flyteidl.core.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Parameter var. + * @member {flyteidl.core.IVariable|null|undefined} var + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype["var"] = null; + + /** + * Parameter default. + * @member {flyteidl.core.ILiteral|null|undefined} default + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype["default"] = null; + + /** + * Parameter required. + * @member {boolean} required + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.required = false; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Parameter behavior. + * @member {"default"|"required"|undefined} behavior + * @memberof flyteidl.core.Parameter + * @instance + */ + Object.defineProperty(Parameter.prototype, "behavior", { + get: $util.oneOfGetter($oneOfFields = ["default", "required"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof flyteidl.core.Parameter + * @static + * @param {flyteidl.core.IParameter=} [properties] Properties to set + * @returns {flyteidl.core.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Parameter + * @static + * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["default"] != null && message.hasOwnProperty("default")) + $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.required != null && message.hasOwnProperty("required")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); + return writer; + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + break; + case 2: + message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + case 3: + message.required = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof flyteidl.core.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message["var"] != null && message.hasOwnProperty("var")) { + let error = $root.flyteidl.core.Variable.verify(message["var"]); + if (error) + return "var." + error; + } + if (message["default"] != null && message.hasOwnProperty("default")) { + properties.behavior = 1; + { + let error = $root.flyteidl.core.Literal.verify(message["default"]); + if (error) + return "default." + error; + } + } + if (message.required != null && message.hasOwnProperty("required")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + if (typeof message.required !== "boolean") + return "required: boolean expected"; + } + return null; + }; + + return Parameter; + })(); + + core.ParameterMap = (function() { + + /** + * Properties of a ParameterMap. + * @memberof flyteidl.core + * @interface IParameterMap + * @property {Object.|null} [parameters] ParameterMap parameters + */ + + /** + * Constructs a new ParameterMap. + * @memberof flyteidl.core + * @classdesc Represents a ParameterMap. + * @implements IParameterMap + * @constructor + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + */ + function ParameterMap(properties) { + this.parameters = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParameterMap parameters. + * @member {Object.} parameters + * @memberof flyteidl.core.ParameterMap + * @instance + */ + ParameterMap.prototype.parameters = $util.emptyObject; + + /** + * Creates a new ParameterMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.ParameterMap + * @static + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + * @returns {flyteidl.core.ParameterMap} ParameterMap instance + */ + ParameterMap.create = function create(properties) { + return new ParameterMap(properties); + }; + + /** + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ParameterMap + * @static + * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && message.hasOwnProperty("parameters")) + for (let keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a ParameterMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ParameterMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ParameterMap} ParameterMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.parameters === $util.emptyObject) + message.parameters = {}; + key = reader.string(); + reader.pos++; + message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParameterMap message. + * @function verify + * @memberof flyteidl.core.ParameterMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + let key = Object.keys(message.parameters); + for (let i = 0; i < key.length; ++i) { + let error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + return null; + }; + + return ParameterMap; + })(); + + core.Resources = (function() { + + /** + * Properties of a Resources. + * @memberof flyteidl.core + * @interface IResources + * @property {Array.|null} [requests] Resources requests + * @property {Array.|null} [limits] Resources limits + */ + + /** + * Constructs a new Resources. + * @memberof flyteidl.core + * @classdesc Represents a Resources. + * @implements IResources + * @constructor + * @param {flyteidl.core.IResources=} [properties] Properties to set + */ + function Resources(properties) { + this.requests = []; + this.limits = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Resources requests. + * @member {Array.} requests + * @memberof flyteidl.core.Resources + * @instance + */ + Resources.prototype.requests = $util.emptyArray; + + /** + * Resources limits. + * @member {Array.} limits + * @memberof flyteidl.core.Resources + * @instance + */ + Resources.prototype.limits = $util.emptyArray; + + /** + * Creates a new Resources instance using the specified properties. + * @function create + * @memberof flyteidl.core.Resources + * @static + * @param {flyteidl.core.IResources=} [properties] Properties to set + * @returns {flyteidl.core.Resources} Resources instance + */ + Resources.create = function create(properties) { + return new Resources(properties); + }; + + /** + * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Resources + * @static + * @param {flyteidl.core.IResources} message Resources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Resources.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requests != null && message.requests.length) + for (let i = 0; i < message.requests.length; ++i) + $root.flyteidl.core.Resources.ResourceEntry.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limits != null && message.limits.length) + for (let i = 0; i < message.limits.length; ++i) + $root.flyteidl.core.Resources.ResourceEntry.encode(message.limits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Resources message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Resources + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Resources} Resources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Resources.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.limits && message.limits.length)) + message.limits = []; + message.limits.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Resources message. + * @function verify + * @memberof flyteidl.core.Resources + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Resources.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (let i = 0; i < message.requests.length; ++i) { + let error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + if (message.limits != null && message.hasOwnProperty("limits")) { + if (!Array.isArray(message.limits)) + return "limits: array expected"; + for (let i = 0; i < message.limits.length; ++i) { + let error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.limits[i]); + if (error) + return "limits." + error; + } + } + return null; + }; + + /** + * ResourceName enum. + * @name flyteidl.core.Resources.ResourceName + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CPU=1 CPU value + * @property {number} GPU=2 GPU value + * @property {number} MEMORY=3 MEMORY value + * @property {number} STORAGE=4 STORAGE value + */ + Resources.ResourceName = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CPU"] = 1; + values[valuesById[2] = "GPU"] = 2; + values[valuesById[3] = "MEMORY"] = 3; + values[valuesById[4] = "STORAGE"] = 4; + return values; + })(); + + Resources.ResourceEntry = (function() { + + /** + * Properties of a ResourceEntry. + * @memberof flyteidl.core.Resources + * @interface IResourceEntry + * @property {flyteidl.core.Resources.ResourceName|null} [name] ResourceEntry name + * @property {string|null} [value] ResourceEntry value + */ + + /** + * Constructs a new ResourceEntry. + * @memberof flyteidl.core.Resources + * @classdesc Represents a ResourceEntry. + * @implements IResourceEntry + * @constructor + * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set + */ + function ResourceEntry(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceEntry name. + * @member {flyteidl.core.Resources.ResourceName} name + * @memberof flyteidl.core.Resources.ResourceEntry + * @instance + */ + ResourceEntry.prototype.name = 0; + + /** + * ResourceEntry value. + * @member {string} value + * @memberof flyteidl.core.Resources.ResourceEntry + * @instance + */ + ResourceEntry.prototype.value = ""; + + /** + * Creates a new ResourceEntry instance using the specified properties. + * @function create + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set + * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry instance + */ + ResourceEntry.create = function create(properties) { + return new ResourceEntry(properties); + }; + + /** + * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {flyteidl.core.Resources.IResourceEntry} message ResourceEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; + + /** + * Decodes a ResourceEntry message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources.ResourceEntry(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.int32(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourceEntry message. + * @function verify + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + switch (message.name) { + default: + return "name: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return ResourceEntry; + })(); + + return Resources; + })(); + + core.RuntimeMetadata = (function() { + + /** + * Properties of a RuntimeMetadata. + * @memberof flyteidl.core + * @interface IRuntimeMetadata + * @property {flyteidl.core.RuntimeMetadata.RuntimeType|null} [type] RuntimeMetadata type + * @property {string|null} [version] RuntimeMetadata version + * @property {string|null} [flavor] RuntimeMetadata flavor + */ + + /** + * Constructs a new RuntimeMetadata. + * @memberof flyteidl.core + * @classdesc Represents a RuntimeMetadata. + * @implements IRuntimeMetadata + * @constructor + * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set + */ + function RuntimeMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RuntimeMetadata type. + * @member {flyteidl.core.RuntimeMetadata.RuntimeType} type + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.type = 0; + + /** + * RuntimeMetadata version. + * @member {string} version + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.version = ""; + + /** + * RuntimeMetadata flavor. + * @member {string} flavor + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.flavor = ""; + + /** + * Creates a new RuntimeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata instance + */ + RuntimeMetadata.create = function create(properties) { + return new RuntimeMetadata(properties); + }; + + /** + * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {flyteidl.core.IRuntimeMetadata} message RuntimeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.flavor != null && message.hasOwnProperty("flavor")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.flavor); + return writer; + }; + + /** + * Decodes a RuntimeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RuntimeMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.flavor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RuntimeMetadata message. + * @function verify + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.flavor != null && message.hasOwnProperty("flavor")) + if (!$util.isString(message.flavor)) + return "flavor: string expected"; + return null; + }; + + /** + * RuntimeType enum. + * @name flyteidl.core.RuntimeMetadata.RuntimeType + * @enum {string} + * @property {number} OTHER=0 OTHER value + * @property {number} FLYTE_SDK=1 FLYTE_SDK value + */ + RuntimeMetadata.RuntimeType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OTHER"] = 0; + values[valuesById[1] = "FLYTE_SDK"] = 1; + return values; + })(); + + return RuntimeMetadata; + })(); + + core.TaskMetadata = (function() { + + /** + * Properties of a TaskMetadata. + * @memberof flyteidl.core + * @interface ITaskMetadata + * @property {boolean|null} [discoverable] TaskMetadata discoverable + * @property {flyteidl.core.IRuntimeMetadata|null} [runtime] TaskMetadata runtime + * @property {google.protobuf.IDuration|null} [timeout] TaskMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] TaskMetadata retries + * @property {string|null} [discoveryVersion] TaskMetadata discoveryVersion + * @property {string|null} [deprecatedErrorMessage] TaskMetadata deprecatedErrorMessage + */ + + /** + * Constructs a new TaskMetadata. + * @memberof flyteidl.core + * @classdesc Represents a TaskMetadata. + * @implements ITaskMetadata + * @constructor + * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set + */ + function TaskMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskMetadata discoverable. + * @member {boolean} discoverable + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.discoverable = false; + + /** + * TaskMetadata runtime. + * @member {flyteidl.core.IRuntimeMetadata|null|undefined} runtime + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.runtime = null; + + /** + * TaskMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.timeout = null; + + /** + * TaskMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.retries = null; + + /** + * TaskMetadata discoveryVersion. + * @member {string} discoveryVersion + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.discoveryVersion = ""; + + /** + * TaskMetadata deprecatedErrorMessage. + * @member {string} deprecatedErrorMessage + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.deprecatedErrorMessage = ""; + + /** + * Creates a new TaskMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set + * @returns {flyteidl.core.TaskMetadata} TaskMetadata instance + */ + TaskMetadata.create = function create(properties) { + return new TaskMetadata(properties); + }; + + /** + * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {flyteidl.core.ITaskMetadata} message TaskMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.discoverable != null && message.hasOwnProperty("discoverable")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.discoverable); + if (message.runtime != null && message.hasOwnProperty("runtime")) + $root.flyteidl.core.RuntimeMetadata.encode(message.runtime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.discoveryVersion); + if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.deprecatedErrorMessage); + return writer; + }; + + /** + * Decodes a TaskMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskMetadata} TaskMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.discoverable = reader.bool(); + break; + case 2: + message.runtime = $root.flyteidl.core.RuntimeMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + case 6: + message.discoveryVersion = reader.string(); + break; + case 7: + message.deprecatedErrorMessage = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskMetadata message. + * @function verify + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.discoverable != null && message.hasOwnProperty("discoverable")) + if (typeof message.discoverable !== "boolean") + return "discoverable: boolean expected"; + if (message.runtime != null && message.hasOwnProperty("runtime")) { + let error = $root.flyteidl.core.RuntimeMetadata.verify(message.runtime); + if (error) + return "runtime." + error; + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + let error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + let error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) + if (!$util.isString(message.discoveryVersion)) + return "discoveryVersion: string expected"; + if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) + if (!$util.isString(message.deprecatedErrorMessage)) + return "deprecatedErrorMessage: string expected"; + return null; + }; + + return TaskMetadata; + })(); + + core.TaskTemplate = (function() { + + /** + * Properties of a TaskTemplate. + * @memberof flyteidl.core + * @interface ITaskTemplate + * @property {flyteidl.core.IIdentifier|null} [id] TaskTemplate id + * @property {string|null} [type] TaskTemplate type + * @property {flyteidl.core.ITaskMetadata|null} [metadata] TaskTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] TaskTemplate interface + * @property {google.protobuf.IStruct|null} [custom] TaskTemplate custom + * @property {flyteidl.core.IContainer|null} [container] TaskTemplate container + */ + + /** + * Constructs a new TaskTemplate. + * @memberof flyteidl.core + * @classdesc Represents a TaskTemplate. + * @implements ITaskTemplate + * @constructor + * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set + */ + function TaskTemplate(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.id = null; + + /** + * TaskTemplate type. + * @member {string} type + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.type = ""; + + /** + * TaskTemplate metadata. + * @member {flyteidl.core.ITaskMetadata|null|undefined} metadata + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.metadata = null; + + /** + * TaskTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype["interface"] = null; + + /** + * TaskTemplate custom. + * @member {google.protobuf.IStruct|null|undefined} custom + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.custom = null; + + /** + * TaskTemplate container. + * @member {flyteidl.core.IContainer|null|undefined} container + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.container = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * TaskTemplate target. + * @member {"container"|undefined} target + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + Object.defineProperty(TaskTemplate.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["container"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set + * @returns {flyteidl.core.TaskTemplate} TaskTemplate instance + */ + TaskTemplate.create = function create(properties) { + return new TaskTemplate(properties); + }; + + /** + * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {flyteidl.core.ITaskTemplate} message TaskTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.TaskMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.protobuf.Struct.encode(message.custom, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.container != null && message.hasOwnProperty("container")) + $root.flyteidl.core.Container.encode(message.container, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskTemplate} TaskTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskTemplate(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = reader.string(); + break; + case 3: + message.metadata = $root.flyteidl.core.TaskMetadata.decode(reader, reader.uint32()); + break; + case 4: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 5: + message.custom = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.container = $root.flyteidl.core.Container.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskTemplate message. + * @function verify + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.flyteidl.core.TaskMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + let error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + let error = $root.google.protobuf.Struct.verify(message.custom); + if (error) + return "custom." + error; + } + if (message.container != null && message.hasOwnProperty("container")) { + properties.target = 1; + { + let error = $root.flyteidl.core.Container.verify(message.container); + if (error) + return "container." + error; + } + } + return null; + }; + + return TaskTemplate; + })(); + + core.ContainerPort = (function() { + + /** + * Properties of a ContainerPort. + * @memberof flyteidl.core + * @interface IContainerPort + * @property {number|null} [containerPort] ContainerPort containerPort + */ + + /** + * Constructs a new ContainerPort. + * @memberof flyteidl.core + * @classdesc Represents a ContainerPort. + * @implements IContainerPort + * @constructor + * @param {flyteidl.core.IContainerPort=} [properties] Properties to set + */ + function ContainerPort(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerPort containerPort. + * @member {number} containerPort + * @memberof flyteidl.core.ContainerPort + * @instance + */ + ContainerPort.prototype.containerPort = 0; + + /** + * Creates a new ContainerPort instance using the specified properties. + * @function create + * @memberof flyteidl.core.ContainerPort + * @static + * @param {flyteidl.core.IContainerPort=} [properties] Properties to set + * @returns {flyteidl.core.ContainerPort} ContainerPort instance + */ + ContainerPort.create = function create(properties) { + return new ContainerPort(properties); + }; + + /** + * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ContainerPort + * @static + * @param {flyteidl.core.IContainerPort} message ContainerPort message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerPort.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.containerPort); + return writer; + }; + + /** + * Decodes a ContainerPort message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ContainerPort + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ContainerPort} ContainerPort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerPort.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerPort(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.containerPort = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ContainerPort message. + * @function verify + * @memberof flyteidl.core.ContainerPort + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerPort.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + if (!$util.isInteger(message.containerPort)) + return "containerPort: integer expected"; + return null; + }; + + return ContainerPort; + })(); + + core.Container = (function() { + + /** + * Properties of a Container. + * @memberof flyteidl.core + * @interface IContainer + * @property {string|null} [image] Container image + * @property {Array.|null} [command] Container command + * @property {Array.|null} [args] Container args + * @property {flyteidl.core.IResources|null} [resources] Container resources + * @property {Array.|null} [env] Container env + * @property {Array.|null} [config] Container config + * @property {Array.|null} [ports] Container ports + */ + + /** + * Constructs a new Container. + * @memberof flyteidl.core + * @classdesc Represents a Container. + * @implements IContainer + * @constructor + * @param {flyteidl.core.IContainer=} [properties] Properties to set + */ + function Container(properties) { + this.command = []; + this.args = []; + this.env = []; + this.config = []; + this.ports = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Container image. + * @member {string} image + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.image = ""; + + /** + * Container command. + * @member {Array.} command + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.command = $util.emptyArray; + + /** + * Container args. + * @member {Array.} args + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.args = $util.emptyArray; + + /** + * Container resources. + * @member {flyteidl.core.IResources|null|undefined} resources + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.resources = null; + + /** + * Container env. + * @member {Array.} env + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.env = $util.emptyArray; + + /** + * Container config. + * @member {Array.} config + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.config = $util.emptyArray; + + /** + * Container ports. + * @member {Array.} ports + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.ports = $util.emptyArray; + + /** + * Creates a new Container instance using the specified properties. + * @function create + * @memberof flyteidl.core.Container + * @static + * @param {flyteidl.core.IContainer=} [properties] Properties to set + * @returns {flyteidl.core.Container} Container instance + */ + Container.create = function create(properties) { + return new Container(properties); + }; + + /** + * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Container + * @static + * @param {flyteidl.core.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.image != null && message.hasOwnProperty("image")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.image); + if (message.command != null && message.command.length) + for (let i = 0; i < message.command.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); + if (message.args != null && message.args.length) + for (let i = 0; i < message.args.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); + if (message.resources != null && message.hasOwnProperty("resources")) + $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.env != null && message.env.length) + for (let i = 0; i < message.env.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.env[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.config != null && message.config.length) + for (let i = 0; i < message.config.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.config[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.ports != null && message.ports.length) + for (let i = 0; i < message.ports.length; ++i) + $root.flyteidl.core.ContainerPort.encode(message.ports[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Container message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Container(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.image = reader.string(); + break; + case 2: + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + case 3: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + case 4: + message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.env && message.env.length)) + message.env = []; + message.env.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.config && message.config.length)) + message.config = []; + message.config.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.ports && message.ports.length)) + message.ports = []; + message.ports.push($root.flyteidl.core.ContainerPort.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Container message. + * @function verify + * @memberof flyteidl.core.Container + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Container.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.image != null && message.hasOwnProperty("image")) + if (!$util.isString(message.image)) + return "image: string expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (let i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; + } + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (let i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.resources != null && message.hasOwnProperty("resources")) { + let error = $root.flyteidl.core.Resources.verify(message.resources); + if (error) + return "resources." + error; + } + if (message.env != null && message.hasOwnProperty("env")) { + if (!Array.isArray(message.env)) + return "env: array expected"; + for (let i = 0; i < message.env.length; ++i) { + let error = $root.flyteidl.core.KeyValuePair.verify(message.env[i]); + if (error) + return "env." + error; + } + } + if (message.config != null && message.hasOwnProperty("config")) { + if (!Array.isArray(message.config)) + return "config: array expected"; + for (let i = 0; i < message.config.length; ++i) { + let error = $root.flyteidl.core.KeyValuePair.verify(message.config[i]); + if (error) + return "config." + error; + } + } + if (message.ports != null && message.hasOwnProperty("ports")) { + if (!Array.isArray(message.ports)) + return "ports: array expected"; + for (let i = 0; i < message.ports.length; ++i) { + let error = $root.flyteidl.core.ContainerPort.verify(message.ports[i]); + if (error) + return "ports." + error; + } + } + return null; + }; + + return Container; + })(); + + core.DynamicJobSpec = (function() { + + /** + * Properties of a DynamicJobSpec. + * @memberof flyteidl.core + * @interface IDynamicJobSpec + * @property {Array.|null} [nodes] DynamicJobSpec nodes + * @property {Long|null} [minSuccesses] DynamicJobSpec minSuccesses + * @property {Array.|null} [outputs] DynamicJobSpec outputs + * @property {Array.|null} [tasks] DynamicJobSpec tasks + * @property {Array.|null} [subworkflows] DynamicJobSpec subworkflows + */ + + /** + * Constructs a new DynamicJobSpec. + * @memberof flyteidl.core + * @classdesc Represents a DynamicJobSpec. + * @implements IDynamicJobSpec + * @constructor + * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set + */ + function DynamicJobSpec(properties) { + this.nodes = []; + this.outputs = []; + this.tasks = []; + this.subworkflows = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicJobSpec nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.nodes = $util.emptyArray; + + /** + * DynamicJobSpec minSuccesses. + * @member {Long} minSuccesses + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.minSuccesses = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * DynamicJobSpec outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.outputs = $util.emptyArray; + + /** + * DynamicJobSpec tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.tasks = $util.emptyArray; + + /** + * DynamicJobSpec subworkflows. + * @member {Array.} subworkflows + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.subworkflows = $util.emptyArray; + + /** + * Creates a new DynamicJobSpec instance using the specified properties. + * @function create + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set + * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec instance + */ + DynamicJobSpec.create = function create(properties) { + return new DynamicJobSpec(properties); + }; + + /** + * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {flyteidl.core.IDynamicJobSpec} message DynamicJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicJobSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodes != null && message.nodes.length) + for (let i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minSuccesses); + if (message.outputs != null && message.outputs.length) + for (let i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (let i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.subworkflows != null && message.subworkflows.length) + for (let i = 0; i < message.subworkflows.length; ++i) + $root.flyteidl.core.WorkflowTemplate.encode(message.subworkflows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DynamicJobSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicJobSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DynamicJobSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 2: + message.minSuccesses = reader.int64(); + break; + case 3: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.subworkflows && message.subworkflows.length)) + message.subworkflows = []; + message.subworkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicJobSpec message. + * @function verify + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicJobSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (let i = 0; i < message.nodes.length; ++i) { + let error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + if (!$util.isInteger(message.minSuccesses) && !(message.minSuccesses && $util.isInteger(message.minSuccesses.low) && $util.isInteger(message.minSuccesses.high))) + return "minSuccesses: integer|Long expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (let i = 0; i < message.outputs.length; ++i) { + let error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (let i = 0; i < message.tasks.length; ++i) { + let error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.subworkflows != null && message.hasOwnProperty("subworkflows")) { + if (!Array.isArray(message.subworkflows)) + return "subworkflows: array expected"; + for (let i = 0; i < message.subworkflows.length; ++i) { + let error = $root.flyteidl.core.WorkflowTemplate.verify(message.subworkflows[i]); + if (error) + return "subworkflows." + error; + } + } + return null; + }; + + return DynamicJobSpec; + })(); + + core.ContainerError = (function() { + + /** + * Properties of a ContainerError. + * @memberof flyteidl.core + * @interface IContainerError + * @property {string|null} [code] ContainerError code + * @property {string|null} [message] ContainerError message + * @property {flyteidl.core.ContainerError.Kind|null} [kind] ContainerError kind + */ + + /** + * Constructs a new ContainerError. + * @memberof flyteidl.core + * @classdesc Represents a ContainerError. + * @implements IContainerError + * @constructor + * @param {flyteidl.core.IContainerError=} [properties] Properties to set + */ + function ContainerError(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerError code. + * @member {string} code + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.code = ""; + + /** + * ContainerError message. + * @member {string} message + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.message = ""; + + /** + * ContainerError kind. + * @member {flyteidl.core.ContainerError.Kind} kind + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.kind = 0; + + /** + * Creates a new ContainerError instance using the specified properties. + * @function create + * @memberof flyteidl.core.ContainerError + * @static + * @param {flyteidl.core.IContainerError=} [properties] Properties to set + * @returns {flyteidl.core.ContainerError} ContainerError instance + */ + ContainerError.create = function create(properties) { + return new ContainerError(properties); + }; + + /** + * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ContainerError + * @static + * @param {flyteidl.core.IContainerError} message ContainerError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); + return writer; + }; + + /** + * Decodes a ContainerError message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ContainerError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ContainerError} ContainerError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerError(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.kind = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ContainerError message. + * @function verify + * @memberof flyteidl.core.ContainerError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * Kind enum. + * @name flyteidl.core.ContainerError.Kind + * @enum {string} + * @property {number} NON_RECOVERABLE=0 NON_RECOVERABLE value + * @property {number} RECOVERABLE=1 RECOVERABLE value + */ + ContainerError.Kind = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NON_RECOVERABLE"] = 0; + values[valuesById[1] = "RECOVERABLE"] = 1; + return values; + })(); + + return ContainerError; + })(); + + core.ErrorDocument = (function() { + + /** + * Properties of an ErrorDocument. + * @memberof flyteidl.core + * @interface IErrorDocument + * @property {flyteidl.core.IContainerError|null} [error] ErrorDocument error + */ + + /** + * Constructs a new ErrorDocument. + * @memberof flyteidl.core + * @classdesc Represents an ErrorDocument. + * @implements IErrorDocument + * @constructor + * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set + */ + function ErrorDocument(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ErrorDocument error. + * @member {flyteidl.core.IContainerError|null|undefined} error + * @memberof flyteidl.core.ErrorDocument + * @instance + */ + ErrorDocument.prototype.error = null; + + /** + * Creates a new ErrorDocument instance using the specified properties. + * @function create + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set + * @returns {flyteidl.core.ErrorDocument} ErrorDocument instance + */ + ErrorDocument.create = function create(properties) { + return new ErrorDocument(properties); + }; + + /** + * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {flyteidl.core.IErrorDocument} message ErrorDocument message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorDocument.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ContainerError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ErrorDocument message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ErrorDocument} ErrorDocument + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorDocument.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ErrorDocument(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = $root.flyteidl.core.ContainerError.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ErrorDocument message. + * @function verify + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorDocument.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + let error = $root.flyteidl.core.ContainerError.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + return ErrorDocument; + })(); + + core.WorkflowExecution = (function() { + + /** + * Properties of a WorkflowExecution. + * @memberof flyteidl.core + * @interface IWorkflowExecution + */ + + /** + * Constructs a new WorkflowExecution. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowExecution. + * @implements IWorkflowExecution + * @constructor + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + */ + function WorkflowExecution(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance + */ + WorkflowExecution.create = function create(properties) { + return new WorkflowExecution(properties); + }; + + /** + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecution message. + * @function verify + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.WorkflowExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDING=3 SUCCEEDING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILING=5 FAILING value + * @property {number} FAILED=6 FAILED value + * @property {number} ABORTED=7 ABORTED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + */ + WorkflowExecution.Phase = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILING"] = 5; + values[valuesById[6] = "FAILED"] = 6; + values[valuesById[7] = "ABORTED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + return values; + })(); + + return WorkflowExecution; + })(); + + core.NodeExecution = (function() { + + /** + * Properties of a NodeExecution. + * @memberof flyteidl.core + * @interface INodeExecution + */ + + /** + * Constructs a new NodeExecution. + * @memberof flyteidl.core + * @classdesc Represents a NodeExecution. + * @implements INodeExecution + * @constructor + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + */ + function NodeExecution(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeExecution + * @static + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecution} NodeExecution instance + */ + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); + }; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeExecution + * @static + * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeExecution} NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecution message. + * @function verify + * @memberof flyteidl.core.NodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.NodeExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILING=4 FAILING value + * @property {number} FAILED=5 FAILED value + * @property {number} ABORTED=6 ABORTED value + * @property {number} SKIPPED=7 SKIPPED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + */ + NodeExecution.Phase = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILING"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "ABORTED"] = 6; + values[valuesById[7] = "SKIPPED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + return values; + })(); + + return NodeExecution; + })(); + + core.TaskExecution = (function() { + + /** + * Properties of a TaskExecution. + * @memberof flyteidl.core + * @interface ITaskExecution + */ + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + */ + function TaskExecution(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskExecution + * @static + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecution} TaskExecution instance + */ + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); + }; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskExecution + * @static + * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecution message. + * @function verify + * @memberof flyteidl.core.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.TaskExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} ABORTED=4 ABORTED value + * @property {number} FAILED=5 FAILED value + */ + TaskExecution.Phase = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "ABORTED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + return values; + })(); + + return TaskExecution; + })(); + + core.ExecutionError = (function() { + + /** + * Properties of an ExecutionError. + * @memberof flyteidl.core + * @interface IExecutionError + * @property {string|null} [code] ExecutionError code + * @property {string|null} [message] ExecutionError message + * @property {string|null} [errorUri] ExecutionError errorUri + */ + + /** + * Constructs a new ExecutionError. + * @memberof flyteidl.core + * @classdesc Represents an ExecutionError. + * @implements IExecutionError + * @constructor + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + */ + function ExecutionError(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionError code. + * @member {string} code + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.code = ""; + + /** + * ExecutionError message. + * @member {string} message + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.message = ""; + + /** + * ExecutionError errorUri. + * @member {string} errorUri + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.errorUri = ""; + + /** + * Creates a new ExecutionError instance using the specified properties. + * @function create + * @memberof flyteidl.core.ExecutionError + * @static + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + * @returns {flyteidl.core.ExecutionError} ExecutionError instance + */ + ExecutionError.create = function create(properties) { + return new ExecutionError(properties); + }; + + /** + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ExecutionError + * @static + * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); + return writer; + }; + + /** + * Decodes an ExecutionError message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ExecutionError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ExecutionError} ExecutionError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.errorUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionError message. + * @function verify + * @memberof flyteidl.core.ExecutionError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + if (!$util.isString(message.errorUri)) + return "errorUri: string expected"; + return null; + }; + + return ExecutionError; + })(); + + core.TaskLog = (function() { + + /** + * Properties of a TaskLog. + * @memberof flyteidl.core + * @interface ITaskLog + * @property {string|null} [uri] TaskLog uri + * @property {string|null} [name] TaskLog name + * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat + * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl + */ + + /** + * Constructs a new TaskLog. + * @memberof flyteidl.core + * @classdesc Represents a TaskLog. + * @implements ITaskLog + * @constructor + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + */ + function TaskLog(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskLog uri. + * @member {string} uri + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.uri = ""; + + /** + * TaskLog name. + * @member {string} name + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.name = ""; + + /** + * TaskLog messageFormat. + * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.messageFormat = 0; + + /** + * TaskLog ttl. + * @member {google.protobuf.IDuration|null|undefined} ttl + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.ttl = null; + + /** + * Creates a new TaskLog instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskLog + * @static + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + * @returns {flyteidl.core.TaskLog} TaskLog instance + */ + TaskLog.create = function create(properties) { + return new TaskLog(properties); + }; + + /** + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskLog + * @static + * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLog.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); + if (message.ttl != null && message.hasOwnProperty("ttl")) + $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskLog message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskLog + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskLog} TaskLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLog.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.messageFormat = reader.int32(); + break; + case 4: + message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskLog message. + * @function verify + * @memberof flyteidl.core.TaskLog + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskLog.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + switch (message.messageFormat) { + default: + return "messageFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ttl != null && message.hasOwnProperty("ttl")) { + let error = $root.google.protobuf.Duration.verify(message.ttl); + if (error) + return "ttl." + error; + } + return null; + }; + + /** + * MessageFormat enum. + * @name flyteidl.core.TaskLog.MessageFormat + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CSV=1 CSV value + * @property {number} JSON=2 JSON value + */ + TaskLog.MessageFormat = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CSV"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return TaskLog; + })(); + + core.WorkflowClosure = (function() { + + /** + * Properties of a WorkflowClosure. + * @memberof flyteidl.core + * @interface IWorkflowClosure + * @property {flyteidl.core.IWorkflowTemplate|null} [workflow] WorkflowClosure workflow + * @property {Array.|null} [tasks] WorkflowClosure tasks + */ + + /** + * Constructs a new WorkflowClosure. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure + * @constructor + * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set + */ + function WorkflowClosure(properties) { + this.tasks = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowClosure workflow. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} workflow + * @memberof flyteidl.core.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.workflow = null; + + /** + * WorkflowClosure tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.tasks = $util.emptyArray; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure instance + */ + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); + }; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {flyteidl.core.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflow != null && message.hasOwnProperty("workflow")) + $root.flyteidl.core.WorkflowTemplate.encode(message.workflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (let i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflow = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowClosure message. + * @function verify + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) { + let error = $root.flyteidl.core.WorkflowTemplate.verify(message.workflow); + if (error) + return "workflow." + error; + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (let i = 0; i < message.tasks.length; ++i) { + let error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + return null; + }; + + return WorkflowClosure; + })(); + + return core; + })(); + + flyteidl.event = (function() { + + /** + * Namespace event. + * @memberof flyteidl + * @namespace + */ + const event = {}; + + event.WorkflowExecutionEvent = (function() { + + /** + * Properties of a WorkflowExecutionEvent. + * @memberof flyteidl.event + * @interface IWorkflowExecutionEvent + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowExecutionEvent executionId + * @property {string|null} [producerId] WorkflowExecutionEvent producerId + * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] WorkflowExecutionEvent phase + * @property {google.protobuf.ITimestamp|null} [occurredAt] WorkflowExecutionEvent occurredAt + * @property {string|null} [outputUri] WorkflowExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] WorkflowExecutionEvent error + */ + + /** + * Constructs a new WorkflowExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a WorkflowExecutionEvent. + * @implements IWorkflowExecutionEvent + * @constructor + * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set + */ + function WorkflowExecutionEvent(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionEvent executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.executionId = null; + + /** + * WorkflowExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.producerId = ""; + + /** + * WorkflowExecutionEvent phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.phase = 0; + + /** + * WorkflowExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.occurredAt = null; + + /** + * WorkflowExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.outputUri = ""; + + /** + * WorkflowExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * WorkflowExecutionEvent outputResult. + * @member {"outputUri"|"error"|undefined} outputResult + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + Object.defineProperty(WorkflowExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent instance + */ + WorkflowExecutionEvent.create = function create(properties) { + return new WorkflowExecutionEvent(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {flyteidl.event.IWorkflowExecutionEvent} message WorkflowExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowExecutionEvent(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.producerId = reader.string(); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.outputUri = reader.string(); + break; + case 6: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEvent message. + * @function verify + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + let error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + return null; + }; + + return WorkflowExecutionEvent; + })(); + + event.NodeExecutionEvent = (function() { + + /** + * Properties of a NodeExecutionEvent. + * @memberof flyteidl.event + * @interface INodeExecutionEvent + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionEvent id + * @property {string|null} [producerId] NodeExecutionEvent producerId + * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionEvent phase + * @property {google.protobuf.ITimestamp|null} [occurredAt] NodeExecutionEvent occurredAt + * @property {string|null} [inputUri] NodeExecutionEvent inputUri + * @property {string|null} [outputUri] NodeExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionEvent error + * @property {flyteidl.event.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionEvent workflowNodeMetadata + * @property {flyteidl.event.IParentTaskExecutionMetadata|null} [parentTaskMetadata] NodeExecutionEvent parentTaskMetadata + */ + + /** + * Constructs a new NodeExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a NodeExecutionEvent. + * @implements INodeExecutionEvent + * @constructor + * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set + */ + function NodeExecutionEvent(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionEvent id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.id = null; + + /** + * NodeExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.producerId = ""; + + /** + * NodeExecutionEvent phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.phase = 0; + + /** + * NodeExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.occurredAt = null; + + /** + * NodeExecutionEvent inputUri. + * @member {string} inputUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.inputUri = ""; + + /** + * NodeExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.outputUri = ""; + + /** + * NodeExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.error = null; + + /** + * NodeExecutionEvent workflowNodeMetadata. + * @member {flyteidl.event.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.workflowNodeMetadata = null; + + /** + * NodeExecutionEvent parentTaskMetadata. + * @member {flyteidl.event.IParentTaskExecutionMetadata|null|undefined} parentTaskMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.parentTaskMetadata = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * NodeExecutionEvent outputResult. + * @member {"outputUri"|"error"|undefined} outputResult + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionEvent targetMetadata. + * @member {"workflowNodeMetadata"|undefined} targetMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "targetMetadata", { + get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent instance + */ + NodeExecutionEvent.create = function create(properties) { + return new NodeExecutionEvent(properties); + }; + + /** + * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {flyteidl.event.INodeExecutionEvent} message NodeExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.inputUri); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) + $root.flyteidl.event.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) + $root.flyteidl.event.ParentTaskExecutionMetadata.encode(message.parentTaskMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.NodeExecutionEvent(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.producerId = reader.string(); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.inputUri = reader.string(); + break; + case 6: + message.outputUri = reader.string(); + break; + case 7: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 8: + message.workflowNodeMetadata = $root.flyteidl.event.WorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 9: + message.parentTaskMetadata = $root.flyteidl.event.ParentTaskExecutionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEvent message. + * @function verify + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + let error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { + properties.targetMetadata = 1; + { + let error = $root.flyteidl.event.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); + if (error) + return "workflowNodeMetadata." + error; + } + } + if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) { + let error = $root.flyteidl.event.ParentTaskExecutionMetadata.verify(message.parentTaskMetadata); + if (error) + return "parentTaskMetadata." + error; + } + return null; + }; + + return NodeExecutionEvent; + })(); + + event.WorkflowNodeMetadata = (function() { + + /** + * Properties of a WorkflowNodeMetadata. + * @memberof flyteidl.event + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + */ + + /** + * Constructs a new WorkflowNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata + * @constructor + * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set + */ + function WorkflowNodeMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.WorkflowNodeMetadata + * @instance + */ + WorkflowNodeMetadata.prototype.executionId = null; + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata instance + */ + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {flyteidl.event.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowNodeMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return WorkflowNodeMetadata; + })(); + + event.ParentTaskExecutionMetadata = (function() { + + /** + * Properties of a ParentTaskExecutionMetadata. + * @memberof flyteidl.event + * @interface IParentTaskExecutionMetadata + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] ParentTaskExecutionMetadata id + */ + + /** + * Constructs a new ParentTaskExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a ParentTaskExecutionMetadata. + * @implements IParentTaskExecutionMetadata + * @constructor + * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set + */ + function ParentTaskExecutionMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParentTaskExecutionMetadata id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @instance + */ + ParentTaskExecutionMetadata.prototype.id = null; + + /** + * Creates a new ParentTaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata instance + */ + ParentTaskExecutionMetadata.create = function create(properties) { + return new ParentTaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {flyteidl.event.IParentTaskExecutionMetadata} message ParentTaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParentTaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParentTaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentTaskExecutionMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParentTaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParentTaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ParentTaskExecutionMetadata; + })(); + + event.TaskExecutionEvent = (function() { + + /** + * Properties of a TaskExecutionEvent. + * @memberof flyteidl.event + * @interface ITaskExecutionEvent + * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionEvent taskId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecutionId] TaskExecutionEvent parentNodeExecutionId + * @property {number|null} [retryAttempt] TaskExecutionEvent retryAttempt + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionEvent phase + * @property {string|null} [producerId] TaskExecutionEvent producerId + * @property {Array.|null} [logs] TaskExecutionEvent logs + * @property {google.protobuf.ITimestamp|null} [occurredAt] TaskExecutionEvent occurredAt + * @property {string|null} [inputUri] TaskExecutionEvent inputUri + * @property {string|null} [outputUri] TaskExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionEvent error + * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo + * @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion + */ + + /** + * Constructs a new TaskExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a TaskExecutionEvent. + * @implements ITaskExecutionEvent + * @constructor + * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set + */ + function TaskExecutionEvent(properties) { + this.logs = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionEvent taskId. + * @member {flyteidl.core.IIdentifier|null|undefined} taskId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.taskId = null; + + /** + * TaskExecutionEvent parentNodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecutionId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.parentNodeExecutionId = null; + + /** + * TaskExecutionEvent retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.retryAttempt = 0; + + /** + * TaskExecutionEvent phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.phase = 0; + + /** + * TaskExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.producerId = ""; + + /** + * TaskExecutionEvent logs. + * @member {Array.} logs + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.logs = $util.emptyArray; + + /** + * TaskExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.occurredAt = null; + + /** + * TaskExecutionEvent inputUri. + * @member {string} inputUri + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.inputUri = ""; + + /** + * TaskExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.outputUri = ""; + + /** + * TaskExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.error = null; + + /** + * TaskExecutionEvent customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.customInfo = null; + + /** + * TaskExecutionEvent phaseVersion. + * @member {number} phaseVersion + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.phaseVersion = 0; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * TaskExecutionEvent outputResult. + * @member {"outputUri"|"error"|undefined} outputResult + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + Object.defineProperty(TaskExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent instance + */ + TaskExecutionEvent.create = function create(properties) { + return new TaskExecutionEvent(properties); + }; + + /** + * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {flyteidl.event.ITaskExecutionEvent} message TaskExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.producerId); + if (message.logs != null && message.logs.length) + for (let i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.inputUri); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) + writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.phaseVersion); + return writer; + }; + + /** + * Decodes a TaskExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionEvent(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.parentNodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.producerId = reader.string(); + break; + case 6: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 7: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.inputUri = reader.string(); + break; + case 9: + message.outputUri = reader.string(); + break; + case 10: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 11: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 12: + message.phaseVersion = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEvent message. + * @function verify + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.taskId != null && message.hasOwnProperty("taskId")) { + let error = $root.flyteidl.core.Identifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecutionId); + if (error) + return "parentNodeExecutionId." + error; + } + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (let i = 0; i < message.logs.length; ++i) { + let error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + let error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + let error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) + if (!$util.isInteger(message.phaseVersion)) + return "phaseVersion: integer expected"; + return null; + }; + + return TaskExecutionEvent; + })(); + + return event; + })(); + + flyteidl.admin = (function() { + + /** + * Namespace admin. + * @memberof flyteidl + * @namespace + */ + const admin = {}; + + admin.NamedEntityIdentifier = (function() { + + /** + * Properties of a NamedEntityIdentifier. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifier + * @property {string|null} [project] NamedEntityIdentifier project + * @property {string|null} [domain] NamedEntityIdentifier domain + * @property {string|null} [name] NamedEntityIdentifier name + */ + + /** + * Constructs a new NamedEntityIdentifier. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifier. + * @implements INamedEntityIdentifier + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + */ + function NamedEntityIdentifier(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifier project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.project = ""; + + /** + * NamedEntityIdentifier domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.domain = ""; + + /** + * NamedEntityIdentifier name. + * @member {string} name + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.name = ""; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance + */ + NamedEntityIdentifier.create = function create(properties) { + return new NamedEntityIdentifier(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifier(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifier message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return NamedEntityIdentifier; + })(); + + admin.Sort = (function() { + + /** + * Properties of a Sort. + * @memberof flyteidl.admin + * @interface ISort + * @property {string|null} [key] Sort key + * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction + */ + + /** + * Constructs a new Sort. + * @memberof flyteidl.admin + * @classdesc Represents a Sort. + * @implements ISort + * @constructor + * @param {flyteidl.admin.ISort=} [properties] Properties to set + */ + function Sort(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Sort key. + * @member {string} key + * @memberof flyteidl.admin.Sort + * @instance + */ + Sort.prototype.key = ""; + + /** + * Sort direction. + * @member {flyteidl.admin.Sort.Direction} direction + * @memberof flyteidl.admin.Sort + * @instance + */ + Sort.prototype.direction = 0; + + /** + * Creates a new Sort instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Sort + * @static + * @param {flyteidl.admin.ISort=} [properties] Properties to set + * @returns {flyteidl.admin.Sort} Sort instance + */ + Sort.create = function create(properties) { + return new Sort(properties); + }; + + /** + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Sort + * @static + * @param {flyteidl.admin.ISort} message Sort message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sort.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.direction != null && message.hasOwnProperty("direction")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.direction); + return writer; + }; + + /** + * Decodes a Sort message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Sort + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Sort} Sort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sort.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Sort(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.direction = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Sort message. + * @function verify + * @memberof flyteidl.admin.Sort + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Sort.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.direction != null && message.hasOwnProperty("direction")) + switch (message.direction) { + default: + return "direction: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * Direction enum. + * @name flyteidl.admin.Sort.Direction + * @enum {string} + * @property {number} DESCENDING=0 DESCENDING value + * @property {number} ASCENDING=1 ASCENDING value + */ + Sort.Direction = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESCENDING"] = 0; + values[valuesById[1] = "ASCENDING"] = 1; + return values; + })(); + + return Sort; + })(); + + admin.NamedEntityIdentifierListRequest = (function() { + + /** + * Properties of a NamedEntityIdentifierListRequest. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifierListRequest + * @property {string|null} [project] NamedEntityIdentifierListRequest project + * @property {string|null} [domain] NamedEntityIdentifierListRequest domain + * @property {number|null} [limit] NamedEntityIdentifierListRequest limit + * @property {string|null} [token] NamedEntityIdentifierListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityIdentifierListRequest sortBy + */ + + /** + * Constructs a new NamedEntityIdentifierListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifierListRequest. + * @implements INamedEntityIdentifierListRequest + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + */ + function NamedEntityIdentifierListRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifierListRequest project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.project = ""; + + /** + * NamedEntityIdentifierListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.domain = ""; + + /** + * NamedEntityIdentifierListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.limit = 0; + + /** + * NamedEntityIdentifierListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.token = ""; + + /** + * NamedEntityIdentifierListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.sortBy = null; + + /** + * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest instance + */ + NamedEntityIdentifierListRequest.create = function create(properties) { + return new NamedEntityIdentifierListRequest(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} message NamedEntityIdentifierListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifierListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifierListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierListRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifierListRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifierListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + let error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return NamedEntityIdentifierListRequest; + })(); + + admin.NamedEntityIdentifierList = (function() { + + /** + * Properties of a NamedEntityIdentifierList. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifierList + * @property {Array.|null} [entities] NamedEntityIdentifierList entities + * @property {string|null} [token] NamedEntityIdentifierList token + */ + + /** + * Constructs a new NamedEntityIdentifierList. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifierList. + * @implements INamedEntityIdentifierList + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + */ + function NamedEntityIdentifierList(properties) { + this.entities = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifierList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @instance + */ + NamedEntityIdentifierList.prototype.entities = $util.emptyArray; + + /** + * NamedEntityIdentifierList token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @instance + */ + NamedEntityIdentifierList.prototype.token = ""; + + /** + * Creates a new NamedEntityIdentifierList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance + */ + NamedEntityIdentifierList.create = function create(properties) { + return new NamedEntityIdentifierList(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifierList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entities != null && message.entities.length) + for (let i = 0; i < message.entities.length; ++i) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifierList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifierList message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifierList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (let i = 0; i < message.entities.length; ++i) { + let error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NamedEntityIdentifierList; + })(); + + admin.ObjectGetRequest = (function() { + + /** + * Properties of an ObjectGetRequest. + * @memberof flyteidl.admin + * @interface IObjectGetRequest + * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id + */ + + /** + * Constructs a new ObjectGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ObjectGetRequest. + * @implements IObjectGetRequest + * @constructor + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + */ + function ObjectGetRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ObjectGetRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.ObjectGetRequest + * @instance + */ + ObjectGetRequest.prototype.id = null; + + /** + * Creates a new ObjectGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest instance + */ + ObjectGetRequest.create = function create(properties) { + return new ObjectGetRequest(properties); + }; + + /** + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {flyteidl.admin.IObjectGetRequest} message ObjectGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ObjectGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ObjectGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ObjectGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ObjectGetRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ObjectGetRequest message. + * @function verify + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ObjectGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ObjectGetRequest; + })(); + + admin.ResourceListRequest = (function() { + + /** + * Properties of a ResourceListRequest. + * @memberof flyteidl.admin + * @interface IResourceListRequest + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ResourceListRequest id + * @property {number|null} [limit] ResourceListRequest limit + * @property {string|null} [token] ResourceListRequest token + * @property {string|null} [filters] ResourceListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] ResourceListRequest sortBy + */ + + /** + * Constructs a new ResourceListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ResourceListRequest. + * @implements IResourceListRequest + * @constructor + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + */ + function ResourceListRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceListRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.id = null; + + /** + * ResourceListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.limit = 0; + + /** + * ResourceListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.token = ""; + + /** + * ResourceListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.filters = ""; + + /** + * ResourceListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.sortBy = null; + + /** + * Creates a new ResourceListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance + */ + ResourceListRequest.create = function create(properties) { + return new ResourceListRequest(properties); + }; + + /** + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ResourceListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ResourceListRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourceListRequest message. + * @function verify + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + let error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return ResourceListRequest; + })(); + + admin.EmailNotification = (function() { + + /** + * Properties of an EmailNotification. + * @memberof flyteidl.admin + * @interface IEmailNotification + * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail + */ + + /** + * Constructs a new EmailNotification. + * @memberof flyteidl.admin + * @classdesc Represents an EmailNotification. + * @implements IEmailNotification + * @constructor + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + */ + function EmailNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailNotification + * @instance + */ + EmailNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new EmailNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + * @returns {flyteidl.admin.EmailNotification} EmailNotification instance + */ + EmailNotification.create = function create(properties) { + return new EmailNotification(properties); + }; + + /** + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (let i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes an EmailNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EmailNotification} EmailNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailNotification(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EmailNotification message. + * @function verify + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (let i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return EmailNotification; + })(); + + admin.PagerDutyNotification = (function() { + + /** + * Properties of a PagerDutyNotification. + * @memberof flyteidl.admin + * @interface IPagerDutyNotification + * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail + */ + + /** + * Constructs a new PagerDutyNotification. + * @memberof flyteidl.admin + * @classdesc Represents a PagerDutyNotification. + * @implements IPagerDutyNotification + * @constructor + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + */ + function PagerDutyNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PagerDutyNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.PagerDutyNotification + * @instance + */ + PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new PagerDutyNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance + */ + PagerDutyNotification.create = function create(properties) { + return new PagerDutyNotification(properties); + }; + + /** + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PagerDutyNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (let i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes a PagerDutyNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PagerDutyNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PagerDutyNotification(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PagerDutyNotification message. + * @function verify + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PagerDutyNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (let i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return PagerDutyNotification; + })(); + + admin.SlackNotification = (function() { + + /** + * Properties of a SlackNotification. + * @memberof flyteidl.admin + * @interface ISlackNotification + * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail + */ + + /** + * Constructs a new SlackNotification. + * @memberof flyteidl.admin + * @classdesc Represents a SlackNotification. + * @implements ISlackNotification + * @constructor + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + */ + function SlackNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SlackNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.SlackNotification + * @instance + */ + SlackNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new SlackNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + * @returns {flyteidl.admin.SlackNotification} SlackNotification instance + */ + SlackNotification.create = function create(properties) { + return new SlackNotification(properties); + }; + + /** + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlackNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (let i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes a SlackNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SlackNotification} SlackNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlackNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SlackNotification(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SlackNotification message. + * @function verify + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SlackNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (let i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return SlackNotification; + })(); + + admin.Notification = (function() { + + /** + * Properties of a Notification. + * @memberof flyteidl.admin + * @interface INotification + * @property {Array.|null} [phases] Notification phases + * @property {flyteidl.admin.IEmailNotification|null} [email] Notification email + * @property {flyteidl.admin.IPagerDutyNotification|null} [pagerDuty] Notification pagerDuty + * @property {flyteidl.admin.ISlackNotification|null} [slack] Notification slack + */ + + /** + * Constructs a new Notification. + * @memberof flyteidl.admin + * @classdesc Represents a Notification. + * @implements INotification + * @constructor + * @param {flyteidl.admin.INotification=} [properties] Properties to set + */ + function Notification(properties) { + this.phases = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Notification phases. + * @member {Array.} phases + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.phases = $util.emptyArray; + + /** + * Notification email. + * @member {flyteidl.admin.IEmailNotification|null|undefined} email + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.email = null; + + /** + * Notification pagerDuty. + * @member {flyteidl.admin.IPagerDutyNotification|null|undefined} pagerDuty + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.pagerDuty = null; + + /** + * Notification slack. + * @member {flyteidl.admin.ISlackNotification|null|undefined} slack + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.slack = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Notification type. + * @member {"email"|"pagerDuty"|"slack"|undefined} type + * @memberof flyteidl.admin.Notification + * @instance + */ + Object.defineProperty(Notification.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["email", "pagerDuty", "slack"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Notification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Notification + * @static + * @param {flyteidl.admin.INotification=} [properties] Properties to set + * @returns {flyteidl.admin.Notification} Notification instance + */ + Notification.create = function create(properties) { + return new Notification(properties); + }; + + /** + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Notification + * @static + * @param {flyteidl.admin.INotification} message Notification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Notification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.phases != null && message.phases.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.phases.length; ++i) + writer.int32(message.phases[i]); + writer.ldelim(); + } + if (message.email != null && message.hasOwnProperty("email")) + $root.flyteidl.admin.EmailNotification.encode(message.email, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) + $root.flyteidl.admin.PagerDutyNotification.encode(message.pagerDuty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.slack != null && message.hasOwnProperty("slack")) + $root.flyteidl.admin.SlackNotification.encode(message.slack, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Notification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Notification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Notification} Notification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Notification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Notification(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.phases && message.phases.length)) + message.phases = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.phases.push(reader.int32()); + } else + message.phases.push(reader.int32()); + break; + case 2: + message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); + break; + case 3: + message.pagerDuty = $root.flyteidl.admin.PagerDutyNotification.decode(reader, reader.uint32()); + break; + case 4: + message.slack = $root.flyteidl.admin.SlackNotification.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Notification message. + * @function verify + * @memberof flyteidl.admin.Notification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Notification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.phases != null && message.hasOwnProperty("phases")) { + if (!Array.isArray(message.phases)) + return "phases: array expected"; + for (let i = 0; i < message.phases.length; ++i) + switch (message.phases[i]) { + default: + return "phases: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + } + if (message.email != null && message.hasOwnProperty("email")) { + properties.type = 1; + { + let error = $root.flyteidl.admin.EmailNotification.verify(message.email); + if (error) + return "email." + error; + } + } + if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + let error = $root.flyteidl.admin.PagerDutyNotification.verify(message.pagerDuty); + if (error) + return "pagerDuty." + error; + } + } + if (message.slack != null && message.hasOwnProperty("slack")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + let error = $root.flyteidl.admin.SlackNotification.verify(message.slack); + if (error) + return "slack." + error; + } + } + return null; + }; + + return Notification; + })(); + + admin.UrlBlob = (function() { + + /** + * Properties of an UrlBlob. + * @memberof flyteidl.admin + * @interface IUrlBlob + * @property {string|null} [url] UrlBlob url + * @property {Long|null} [bytes] UrlBlob bytes + */ + + /** + * Constructs a new UrlBlob. + * @memberof flyteidl.admin + * @classdesc Represents an UrlBlob. + * @implements IUrlBlob + * @constructor + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + */ + function UrlBlob(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UrlBlob url. + * @member {string} url + * @memberof flyteidl.admin.UrlBlob + * @instance + */ + UrlBlob.prototype.url = ""; + + /** + * UrlBlob bytes. + * @member {Long} bytes + * @memberof flyteidl.admin.UrlBlob + * @instance + */ + UrlBlob.prototype.bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new UrlBlob instance using the specified properties. + * @function create + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + * @returns {flyteidl.admin.UrlBlob} UrlBlob instance + */ + UrlBlob.create = function create(properties) { + return new UrlBlob(properties); + }; + + /** + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlBlob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.url != null && message.hasOwnProperty("url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); + if (message.bytes != null && message.hasOwnProperty("bytes")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bytes); + return writer; + }; + + /** + * Decodes an UrlBlob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.UrlBlob} UrlBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlBlob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.UrlBlob(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.url = reader.string(); + break; + case 2: + message.bytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UrlBlob message. + * @function verify + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlBlob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.url != null && message.hasOwnProperty("url")) + if (!$util.isString(message.url)) + return "url: string expected"; + if (message.bytes != null && message.hasOwnProperty("bytes")) + if (!$util.isInteger(message.bytes) && !(message.bytes && $util.isInteger(message.bytes.low) && $util.isInteger(message.bytes.high))) + return "bytes: integer|Long expected"; + return null; + }; + + return UrlBlob; + })(); + + admin.Labels = (function() { + + /** + * Properties of a Labels. + * @memberof flyteidl.admin + * @interface ILabels + * @property {Object.|null} [values] Labels values + */ + + /** + * Constructs a new Labels. + * @memberof flyteidl.admin + * @classdesc Represents a Labels. + * @implements ILabels + * @constructor + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + */ + function Labels(properties) { + this.values = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Labels values. + * @member {Object.} values + * @memberof flyteidl.admin.Labels + * @instance + */ + Labels.prototype.values = $util.emptyObject; + + /** + * Creates a new Labels instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Labels + * @static + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + * @returns {flyteidl.admin.Labels} Labels instance + */ + Labels.create = function create(properties) { + return new Labels(properties); + }; + + /** + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Labels + * @static + * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Labels.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + for (let keys = Object.keys(message.values), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a Labels message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Labels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Labels} Labels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Labels.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Labels(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.values === $util.emptyObject) + message.values = {}; + key = reader.string(); + reader.pos++; + message.values[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Labels message. + * @function verify + * @memberof flyteidl.admin.Labels + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Labels.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!$util.isObject(message.values)) + return "values: object expected"; + let key = Object.keys(message.values); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.values[key[i]])) + return "values: string{k:string} expected"; + } + return null; + }; + + return Labels; + })(); + + admin.Annotations = (function() { + + /** + * Properties of an Annotations. + * @memberof flyteidl.admin + * @interface IAnnotations + * @property {Object.|null} [values] Annotations values + */ + + /** + * Constructs a new Annotations. + * @memberof flyteidl.admin + * @classdesc Represents an Annotations. + * @implements IAnnotations + * @constructor + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + */ + function Annotations(properties) { + this.values = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotations values. + * @member {Object.} values + * @memberof flyteidl.admin.Annotations + * @instance + */ + Annotations.prototype.values = $util.emptyObject; + + /** + * Creates a new Annotations instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Annotations + * @static + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + * @returns {flyteidl.admin.Annotations} Annotations instance + */ + Annotations.create = function create(properties) { + return new Annotations(properties); + }; + + /** + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Annotations + * @static + * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotations.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + for (let keys = Object.keys(message.values), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes an Annotations message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Annotations + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Annotations} Annotations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotations.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Annotations(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.values === $util.emptyObject) + message.values = {}; + key = reader.string(); + reader.pos++; + message.values[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Annotations message. + * @function verify + * @memberof flyteidl.admin.Annotations + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotations.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!$util.isObject(message.values)) + return "values: object expected"; + let key = Object.keys(message.values); + for (let i = 0; i < key.length; ++i) + if (!$util.isString(message.values[key[i]])) + return "values: string{k:string} expected"; + } + return null; + }; + + return Annotations; + })(); + + admin.EventErrorAlreadyInTerminalState = (function() { + + /** + * Properties of an EventErrorAlreadyInTerminalState. + * @memberof flyteidl.admin + * @interface IEventErrorAlreadyInTerminalState + * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase + */ + + /** + * Constructs a new EventErrorAlreadyInTerminalState. + * @memberof flyteidl.admin + * @classdesc Represents an EventErrorAlreadyInTerminalState. + * @implements IEventErrorAlreadyInTerminalState + * @constructor + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + */ + function EventErrorAlreadyInTerminalState(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventErrorAlreadyInTerminalState currentPhase. + * @member {string} currentPhase + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @instance + */ + EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; + + /** + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance + */ + EventErrorAlreadyInTerminalState.create = function create(properties) { + return new EventErrorAlreadyInTerminalState(properties); + }; + + /** + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventErrorAlreadyInTerminalState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPhase); + return writer; + }; + + /** + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventErrorAlreadyInTerminalState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorAlreadyInTerminalState(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.currentPhase = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventErrorAlreadyInTerminalState message. + * @function verify + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventErrorAlreadyInTerminalState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + if (!$util.isString(message.currentPhase)) + return "currentPhase: string expected"; + return null; + }; + + return EventErrorAlreadyInTerminalState; + })(); + + admin.EventFailureReason = (function() { + + /** + * Properties of an EventFailureReason. + * @memberof flyteidl.admin + * @interface IEventFailureReason + * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState + */ + + /** + * Constructs a new EventFailureReason. + * @memberof flyteidl.admin + * @classdesc Represents an EventFailureReason. + * @implements IEventFailureReason + * @constructor + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + */ + function EventFailureReason(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventFailureReason alreadyInTerminalState. + * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + EventFailureReason.prototype.alreadyInTerminalState = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * EventFailureReason reason. + * @member {"alreadyInTerminalState"|undefined} reason + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + Object.defineProperty(EventFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EventFailureReason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance + */ + EventFailureReason.create = function create(properties) { + return new EventFailureReason(properties); + }; + + /** + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventFailureReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) + $root.flyteidl.admin.EventErrorAlreadyInTerminalState.encode(message.alreadyInTerminalState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EventFailureReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventFailureReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventFailureReason(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventFailureReason message. + * @function verify + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventFailureReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) { + properties.reason = 1; + { + let error = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.verify(message.alreadyInTerminalState); + if (error) + return "alreadyInTerminalState." + error; + } + } + return null; + }; + + return EventFailureReason; + })(); + + admin.WorkflowExecutionEventRequest = (function() { + + /** + * Properties of a WorkflowExecutionEventRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionEventRequest + * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId + * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event + */ + + /** + * Constructs a new WorkflowExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionEventRequest. + * @implements IWorkflowExecutionEventRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + */ + function WorkflowExecutionEventRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @instance + */ + WorkflowExecutionEventRequest.prototype.requestId = ""; + + /** + * WorkflowExecutionEventRequest event. + * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @instance + */ + WorkflowExecutionEventRequest.prototype.event = null; + + /** + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest instance + */ + WorkflowExecutionEventRequest.create = function create(properties) { + return new WorkflowExecutionEventRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} message WorkflowExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.WorkflowExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + let error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return WorkflowExecutionEventRequest; + })(); + + admin.WorkflowExecutionEventResponse = (function() { + + /** + * Properties of a WorkflowExecutionEventResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionEventResponse + */ + + /** + * Constructs a new WorkflowExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionEventResponse. + * @implements IWorkflowExecutionEventResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + */ + function WorkflowExecutionEventResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance + */ + WorkflowExecutionEventResponse.create = function create(properties) { + return new WorkflowExecutionEventResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowExecutionEventResponse; + })(); + + admin.NodeExecutionEventRequest = (function() { + + /** + * Properties of a NodeExecutionEventRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionEventRequest + * @property {string|null} [requestId] NodeExecutionEventRequest requestId + * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event + */ + + /** + * Constructs a new NodeExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionEventRequest. + * @implements INodeExecutionEventRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + */ + function NodeExecutionEventRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @instance + */ + NodeExecutionEventRequest.prototype.requestId = ""; + + /** + * NodeExecutionEventRequest event. + * @member {flyteidl.event.INodeExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @instance + */ + NodeExecutionEventRequest.prototype.event = null; + + /** + * Creates a new NodeExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance + */ + NodeExecutionEventRequest.create = function create(properties) { + return new NodeExecutionEventRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.NodeExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + let error = $root.flyteidl.event.NodeExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return NodeExecutionEventRequest; + })(); + + admin.NodeExecutionEventResponse = (function() { + + /** + * Properties of a NodeExecutionEventResponse. + * @memberof flyteidl.admin + * @interface INodeExecutionEventResponse + */ + + /** + * Constructs a new NodeExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionEventResponse. + * @implements INodeExecutionEventResponse + * @constructor + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + */ + function NodeExecutionEventResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NodeExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance + */ + NodeExecutionEventResponse.create = function create(properties) { + return new NodeExecutionEventResponse(properties); + }; + + /** + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return NodeExecutionEventResponse; + })(); + + admin.TaskExecutionEventRequest = (function() { + + /** + * Properties of a TaskExecutionEventRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionEventRequest + * @property {string|null} [requestId] TaskExecutionEventRequest requestId + * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event + */ + + /** + * Constructs a new TaskExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionEventRequest. + * @implements ITaskExecutionEventRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + */ + function TaskExecutionEventRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @instance + */ + TaskExecutionEventRequest.prototype.requestId = ""; + + /** + * TaskExecutionEventRequest event. + * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @instance + */ + TaskExecutionEventRequest.prototype.event = null; + + /** + * Creates a new TaskExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance + */ + TaskExecutionEventRequest.create = function create(properties) { + return new TaskExecutionEventRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.TaskExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + let error = $root.flyteidl.event.TaskExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return TaskExecutionEventRequest; + })(); + + admin.TaskExecutionEventResponse = (function() { + + /** + * Properties of a TaskExecutionEventResponse. + * @memberof flyteidl.admin + * @interface ITaskExecutionEventResponse + */ + + /** + * Constructs a new TaskExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionEventResponse. + * @implements ITaskExecutionEventResponse + * @constructor + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + */ + function TaskExecutionEventResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance + */ + TaskExecutionEventResponse.create = function create(properties) { + return new TaskExecutionEventResponse(properties); + }; + + /** + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskExecutionEventResponse; + })(); + + admin.ExecutionCreateRequest = (function() { + + /** + * Properties of an ExecutionCreateRequest. + * @memberof flyteidl.admin + * @interface IExecutionCreateRequest + * @property {string|null} [project] ExecutionCreateRequest project + * @property {string|null} [domain] ExecutionCreateRequest domain + * @property {string|null} [name] ExecutionCreateRequest name + * @property {flyteidl.admin.IExecutionSpec|null} [spec] ExecutionCreateRequest spec + */ + + /** + * Constructs a new ExecutionCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateRequest. + * @implements IExecutionCreateRequest + * @constructor + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + */ + function ExecutionCreateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionCreateRequest project. + * @member {string} project + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.project = ""; + + /** + * ExecutionCreateRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.domain = ""; + + /** + * ExecutionCreateRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.name = ""; + + /** + * ExecutionCreateRequest spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.spec = null; + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance + */ + ExecutionCreateRequest.create = function create(properties) { + return new ExecutionCreateRequest(properties); + }; + + /** + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionCreateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.spec != null && message.hasOwnProperty("spec")) { + let error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return ExecutionCreateRequest; + })(); + + admin.ExecutionRelaunchRequest = (function() { + + /** + * Properties of an ExecutionRelaunchRequest. + * @memberof flyteidl.admin + * @interface IExecutionRelaunchRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRelaunchRequest id + * @property {string|null} [name] ExecutionRelaunchRequest name + */ + + /** + * Constructs a new ExecutionRelaunchRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionRelaunchRequest. + * @implements IExecutionRelaunchRequest + * @constructor + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + */ + function ExecutionRelaunchRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionRelaunchRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.id = null; + + /** + * ExecutionRelaunchRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.name = ""; + + /** + * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance + */ + ExecutionRelaunchRequest.create = function create(properties) { + return new ExecutionRelaunchRequest(properties); + }; + + /** + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionRelaunchRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + return writer; + }; + + /** + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionRelaunchRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRelaunchRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionRelaunchRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionRelaunchRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return ExecutionRelaunchRequest; + })(); + + admin.ExecutionCreateResponse = (function() { + + /** + * Properties of an ExecutionCreateResponse. + * @memberof flyteidl.admin + * @interface IExecutionCreateResponse + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id + */ + + /** + * Constructs a new ExecutionCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateResponse. + * @implements IExecutionCreateResponse + * @constructor + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + */ + function ExecutionCreateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionCreateResponse id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionCreateResponse + * @instance + */ + ExecutionCreateResponse.prototype.id = null; + + /** + * Creates a new ExecutionCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance + */ + ExecutionCreateResponse.create = function create(properties) { + return new ExecutionCreateResponse(properties); + }; + + /** + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionCreateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ExecutionCreateResponse; + })(); + + admin.WorkflowExecutionGetRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id + */ + + /** + * Constructs a new WorkflowExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetRequest. + * @implements IWorkflowExecutionGetRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @instance + */ + WorkflowExecutionGetRequest.prototype.id = null; + + /** + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance + */ + WorkflowExecutionGetRequest.create = function create(properties) { + return new WorkflowExecutionGetRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowExecutionGetRequest; + })(); + + admin.Execution = (function() { + + /** + * Properties of an Execution. + * @memberof flyteidl.admin + * @interface IExecution + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] Execution id + * @property {flyteidl.admin.IExecutionSpec|null} [spec] Execution spec + * @property {flyteidl.admin.IExecutionClosure|null} [closure] Execution closure + */ + + /** + * Constructs a new Execution. + * @memberof flyteidl.admin + * @classdesc Represents an Execution. + * @implements IExecution + * @constructor + * @param {flyteidl.admin.IExecution=} [properties] Properties to set + */ + function Execution(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Execution id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.id = null; + + /** + * Execution spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.spec = null; + + /** + * Execution closure. + * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.closure = null; + + /** + * Creates a new Execution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Execution + * @static + * @param {flyteidl.admin.IExecution=} [properties] Properties to set + * @returns {flyteidl.admin.Execution} Execution instance + */ + Execution.create = function create(properties) { + return new Execution(properties); + }; + + /** + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Execution + * @static + * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.ExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Execution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Execution} Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Execution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Execution(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); + break; + case 3: + message.closure = $root.flyteidl.admin.ExecutionClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Execution message. + * @function verify + * @memberof flyteidl.admin.Execution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Execution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + let error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + let error = $root.flyteidl.admin.ExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return Execution; + })(); + + admin.ExecutionList = (function() { + + /** + * Properties of an ExecutionList. + * @memberof flyteidl.admin + * @interface IExecutionList + * @property {Array.|null} [executions] ExecutionList executions + * @property {string|null} [token] ExecutionList token + */ + + /** + * Constructs a new ExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionList. + * @implements IExecutionList + * @constructor + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + */ + function ExecutionList(properties) { + this.executions = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionList executions. + * @member {Array.} executions + * @memberof flyteidl.admin.ExecutionList + * @instance + */ + ExecutionList.prototype.executions = $util.emptyArray; + + /** + * ExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.ExecutionList + * @instance + */ + ExecutionList.prototype.token = ""; + + /** + * Creates a new ExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionList} ExecutionList instance + */ + ExecutionList.create = function create(properties) { + return new ExecutionList(properties); + }; + + /** + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executions != null && message.executions.length) + for (let i = 0; i < message.executions.length; ++i) + $root.flyteidl.admin.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes an ExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionList} ExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.flyteidl.admin.Execution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionList message. + * @function verify + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (let i = 0; i < message.executions.length; ++i) { + let error = $root.flyteidl.admin.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return ExecutionList; + })(); + + admin.LiteralMapBlob = (function() { + + /** + * Properties of a LiteralMapBlob. + * @memberof flyteidl.admin + * @interface ILiteralMapBlob + * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values + * @property {string|null} [uri] LiteralMapBlob uri + */ + + /** + * Constructs a new LiteralMapBlob. + * @memberof flyteidl.admin + * @classdesc Represents a LiteralMapBlob. + * @implements ILiteralMapBlob + * @constructor + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + */ + function LiteralMapBlob(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralMapBlob values. + * @member {flyteidl.core.ILiteralMap|null|undefined} values + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + LiteralMapBlob.prototype.values = null; + + /** + * LiteralMapBlob uri. + * @member {string} uri + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + LiteralMapBlob.prototype.uri = ""; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * LiteralMapBlob data. + * @member {"values"|"uri"|undefined} data + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + Object.defineProperty(LiteralMapBlob.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralMapBlob instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance + */ + LiteralMapBlob.create = function create(properties) { + return new LiteralMapBlob(properties); + }; + + /** + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralMapBlob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + $root.flyteidl.core.LiteralMap.encode(message.values, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + return writer; + }; + + /** + * Decodes a LiteralMapBlob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralMapBlob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LiteralMapBlob(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.values = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralMapBlob message. + * @function verify + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralMapBlob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + properties.data = 1; + { + let error = $root.flyteidl.core.LiteralMap.verify(message.values); + if (error) + return "values." + error; + } + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + return null; + }; + + return LiteralMapBlob; + })(); + + admin.ExecutionClosure = (function() { + + /** + * Properties of an ExecutionClosure. + * @memberof flyteidl.admin + * @interface IExecutionClosure + * @property {flyteidl.admin.ILiteralMapBlob|null} [outputs] ExecutionClosure outputs + * @property {flyteidl.core.IExecutionError|null} [error] ExecutionClosure error + * @property {string|null} [abortCause] ExecutionClosure abortCause + * @property {flyteidl.core.ILiteralMap|null} [computedInputs] ExecutionClosure computedInputs + * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] ExecutionClosure phase + * @property {google.protobuf.ITimestamp|null} [startedAt] ExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] ExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] ExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] ExecutionClosure updatedAt + * @property {Array.|null} [notifications] ExecutionClosure notifications + * @property {flyteidl.core.IIdentifier|null} [workflowId] ExecutionClosure workflowId + */ + + /** + * Constructs a new ExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionClosure. + * @implements IExecutionClosure + * @constructor + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + */ + function ExecutionClosure(properties) { + this.notifications = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionClosure outputs. + * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.outputs = null; + + /** + * ExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.error = null; + + /** + * ExecutionClosure abortCause. + * @member {string} abortCause + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.abortCause = ""; + + /** + * ExecutionClosure computedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.computedInputs = null; + + /** + * ExecutionClosure phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.phase = 0; + + /** + * ExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.startedAt = null; + + /** + * ExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.duration = null; + + /** + * ExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.createdAt = null; + + /** + * ExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.updatedAt = null; + + /** + * ExecutionClosure notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.notifications = $util.emptyArray; + + /** + * ExecutionClosure workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.workflowId = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * ExecutionClosure outputResult. + * @member {"outputs"|"error"|"abortCause"|undefined} outputResult + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + Object.defineProperty(ExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputs", "error", "abortCause"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance + */ + ExecutionClosure.create = function create(properties) { + return new ExecutionClosure(properties); + }; + + /** + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.LiteralMapBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.computedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (let i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.abortCause != null && message.hasOwnProperty("abortCause")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.abortCause); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputs = $root.flyteidl.admin.LiteralMapBlob.decode(reader, reader.uint32()); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 10: + message.abortCause = reader.string(); + break; + case 3: + message.computedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + case 11: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + properties.outputResult = 1; + { + let error = $root.flyteidl.admin.LiteralMapBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + let error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.abortCause != null && message.hasOwnProperty("abortCause")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + if (!$util.isString(message.abortCause)) + return "abortCause: string expected"; + } + if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) { + let error = $root.flyteidl.core.LiteralMap.verify(message.computedInputs); + if (error) + return "computedInputs." + error; + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + let error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (let i = 0; i < message.notifications.length; ++i) { + let error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + let error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + return null; + }; + + return ExecutionClosure; + })(); + + admin.ExecutionMetadata = (function() { + + /** + * Properties of an ExecutionMetadata. + * @memberof flyteidl.admin + * @interface IExecutionMetadata + * @property {flyteidl.admin.ExecutionMetadata.ExecutionMode|null} [mode] ExecutionMetadata mode + * @property {string|null} [principal] ExecutionMetadata principal + * @property {number|null} [nesting] ExecutionMetadata nesting + * @property {google.protobuf.ITimestamp|null} [scheduledAt] ExecutionMetadata scheduledAt + * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] ExecutionMetadata parentNodeExecution + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] ExecutionMetadata referenceExecution + */ + + /** + * Constructs a new ExecutionMetadata. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionMetadata. + * @implements IExecutionMetadata + * @constructor + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + */ + function ExecutionMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionMetadata mode. + * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.mode = 0; + + /** + * ExecutionMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.principal = ""; + + /** + * ExecutionMetadata nesting. + * @member {number} nesting + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.nesting = 0; + + /** + * ExecutionMetadata scheduledAt. + * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.scheduledAt = null; + + /** + * ExecutionMetadata parentNodeExecution. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.parentNodeExecution = null; + + /** + * ExecutionMetadata referenceExecution. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.referenceExecution = null; + + /** + * Creates a new ExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata instance + */ + ExecutionMetadata.create = function create(properties) { + return new ExecutionMetadata(properties); + }; + + /** + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mode != null && message.hasOwnProperty("mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); + if (message.nesting != null && message.hasOwnProperty("nesting")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.nesting); + if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) + $root.google.protobuf.Timestamp.encode(message.scheduledAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + case 2: + message.principal = reader.string(); + break; + case 3: + message.nesting = reader.uint32(); + break; + case 4: + message.scheduledAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 16: + message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionMetadata message. + * @function verify + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mode != null && message.hasOwnProperty("mode")) + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.nesting != null && message.hasOwnProperty("nesting")) + if (!$util.isInteger(message.nesting)) + return "nesting: integer expected"; + if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); + if (error) + return "scheduledAt." + error; + } + if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecution); + if (error) + return "parentNodeExecution." + error; + } + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); + if (error) + return "referenceExecution." + error; + } + return null; + }; + + /** + * ExecutionMode enum. + * @name flyteidl.admin.ExecutionMetadata.ExecutionMode + * @enum {string} + * @property {number} MANUAL=0 MANUAL value + * @property {number} SCHEDULED=1 SCHEDULED value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} RELAUNCH=3 RELAUNCH value + * @property {number} CHILD_WORKFLOW=4 CHILD_WORKFLOW value + */ + ExecutionMetadata.ExecutionMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MANUAL"] = 0; + values[valuesById[1] = "SCHEDULED"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "RELAUNCH"] = 3; + values[valuesById[4] = "CHILD_WORKFLOW"] = 4; + return values; + })(); + + return ExecutionMetadata; + })(); + + admin.NotificationList = (function() { + + /** + * Properties of a NotificationList. + * @memberof flyteidl.admin + * @interface INotificationList + * @property {Array.|null} [notifications] NotificationList notifications + */ + + /** + * Constructs a new NotificationList. + * @memberof flyteidl.admin + * @classdesc Represents a NotificationList. + * @implements INotificationList + * @constructor + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + */ + function NotificationList(properties) { + this.notifications = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationList notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.NotificationList + * @instance + */ + NotificationList.prototype.notifications = $util.emptyArray; + + /** + * Creates a new NotificationList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NotificationList + * @static + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + * @returns {flyteidl.admin.NotificationList} NotificationList instance + */ + NotificationList.create = function create(properties) { + return new NotificationList(properties); + }; + + /** + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NotificationList + * @static + * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notifications != null && message.notifications.length) + for (let i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NotificationList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NotificationList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NotificationList} NotificationList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NotificationList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NotificationList message. + * @function verify + * @memberof flyteidl.admin.NotificationList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (let i = 0; i < message.notifications.length; ++i) { + let error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + return null; + }; + + return NotificationList; + })(); + + admin.ExecutionSpec = (function() { + + /** + * Properties of an ExecutionSpec. + * @memberof flyteidl.admin + * @interface IExecutionSpec + * @property {flyteidl.core.IIdentifier|null} [launchPlan] ExecutionSpec launchPlan + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionSpec inputs + * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionSpec metadata + * @property {flyteidl.admin.INotificationList|null} [notifications] ExecutionSpec notifications + * @property {boolean|null} [disableAll] ExecutionSpec disableAll + * @property {flyteidl.admin.ILabels|null} [labels] ExecutionSpec labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] ExecutionSpec annotations + */ + + /** + * Constructs a new ExecutionSpec. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionSpec. + * @implements IExecutionSpec + * @constructor + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + */ + function ExecutionSpec(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionSpec launchPlan. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlan + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.launchPlan = null; + + /** + * ExecutionSpec inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.inputs = null; + + /** + * ExecutionSpec metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.metadata = null; + + /** + * ExecutionSpec notifications. + * @member {flyteidl.admin.INotificationList|null|undefined} notifications + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.notifications = null; + + /** + * ExecutionSpec disableAll. + * @member {boolean} disableAll + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.disableAll = false; + + /** + * ExecutionSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.labels = null; + + /** + * ExecutionSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.annotations = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * ExecutionSpec notificationOverrides. + * @member {"notifications"|"disableAll"|undefined} notificationOverrides + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + Object.defineProperty(ExecutionSpec.prototype, "notificationOverrides", { + get: $util.oneOfGetter($oneOfFields = ["notifications", "disableAll"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecutionSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance + */ + ExecutionSpec.create = function create(properties) { + return new ExecutionSpec(properties); + }; + + /** + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + $root.flyteidl.core.Identifier.encode(message.launchPlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.notifications != null && message.hasOwnProperty("notifications")) + $root.flyteidl.admin.NotificationList.encode(message.notifications, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disableAll != null && message.hasOwnProperty("disableAll")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disableAll); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); + break; + case 5: + message.notifications = $root.flyteidl.admin.NotificationList.decode(reader, reader.uint32()); + break; + case 6: + message.disableAll = reader.bool(); + break; + case 7: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 8: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionSpec message. + * @function verify + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) { + let error = $root.flyteidl.core.Identifier.verify(message.launchPlan); + if (error) + return "launchPlan." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + let error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + let error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + properties.notificationOverrides = 1; + { + let error = $root.flyteidl.admin.NotificationList.verify(message.notifications); + if (error) + return "notifications." + error; + } + } + if (message.disableAll != null && message.hasOwnProperty("disableAll")) { + if (properties.notificationOverrides === 1) + return "notificationOverrides: multiple values"; + properties.notificationOverrides = 1; + if (typeof message.disableAll !== "boolean") + return "disableAll: boolean expected"; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + let error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + let error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + return null; + }; + + return ExecutionSpec; + })(); + + admin.ExecutionTerminateRequest = (function() { + + /** + * Properties of an ExecutionTerminateRequest. + * @memberof flyteidl.admin + * @interface IExecutionTerminateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id + * @property {string|null} [cause] ExecutionTerminateRequest cause + */ + + /** + * Constructs a new ExecutionTerminateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionTerminateRequest. + * @implements IExecutionTerminateRequest + * @constructor + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + */ + function ExecutionTerminateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionTerminateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @instance + */ + ExecutionTerminateRequest.prototype.id = null; + + /** + * ExecutionTerminateRequest cause. + * @member {string} cause + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @instance + */ + ExecutionTerminateRequest.prototype.cause = ""; + + /** + * Creates a new ExecutionTerminateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance + */ + ExecutionTerminateRequest.create = function create(properties) { + return new ExecutionTerminateRequest(properties); + }; + + /** + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionTerminateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cause != null && message.hasOwnProperty("cause")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cause); + return writer; + }; + + /** + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionTerminateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.cause = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionTerminateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionTerminateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.cause != null && message.hasOwnProperty("cause")) + if (!$util.isString(message.cause)) + return "cause: string expected"; + return null; + }; + + return ExecutionTerminateRequest; + })(); + + admin.ExecutionTerminateResponse = (function() { + + /** + * Properties of an ExecutionTerminateResponse. + * @memberof flyteidl.admin + * @interface IExecutionTerminateResponse + */ + + /** + * Constructs a new ExecutionTerminateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionTerminateResponse. + * @implements IExecutionTerminateResponse + * @constructor + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + */ + function ExecutionTerminateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExecutionTerminateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse instance + */ + ExecutionTerminateResponse.create = function create(properties) { + return new ExecutionTerminateResponse(properties); + }; + + /** + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {flyteidl.admin.IExecutionTerminateResponse} message ExecutionTerminateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionTerminateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionTerminateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionTerminateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionTerminateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ExecutionTerminateResponse; + })(); + + admin.WorkflowExecutionGetDataRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetDataRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id + */ + + /** + * Constructs a new WorkflowExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetDataRequest. + * @implements IWorkflowExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetDataRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetDataRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @instance + */ + WorkflowExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance + */ + WorkflowExecutionGetDataRequest.create = function create(properties) { + return new WorkflowExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowExecutionGetDataRequest; + })(); + + admin.WorkflowExecutionGetDataResponse = (function() { + + /** + * Properties of a WorkflowExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [outputs] WorkflowExecutionGetDataResponse outputs + */ + + /** + * Constructs a new WorkflowExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetDataResponse. + * @implements IWorkflowExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + */ + function WorkflowExecutionGetDataResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.outputs = null; + + /** + * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance + */ + WorkflowExecutionGetDataResponse.create = function create(properties) { + return new WorkflowExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + let error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return WorkflowExecutionGetDataResponse; + })(); + + admin.LaunchPlanCreateRequest = (function() { + + /** + * Properties of a LaunchPlanCreateRequest. + * @memberof flyteidl.admin + * @interface ILaunchPlanCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec + */ + + /** + * Constructs a new LaunchPlanCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanCreateRequest. + * @implements ILaunchPlanCreateRequest + * @constructor + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + */ + function LaunchPlanCreateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @instance + */ + LaunchPlanCreateRequest.prototype.id = null; + + /** + * LaunchPlanCreateRequest spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @instance + */ + LaunchPlanCreateRequest.prototype.spec = null; + + /** + * Creates a new LaunchPlanCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance + */ + LaunchPlanCreateRequest.create = function create(properties) { + return new LaunchPlanCreateRequest(properties); + }; + + /** + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanCreateRequest message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + let error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return LaunchPlanCreateRequest; + })(); + + admin.LaunchPlanCreateResponse = (function() { + + /** + * Properties of a LaunchPlanCreateResponse. + * @memberof flyteidl.admin + * @interface ILaunchPlanCreateResponse + */ + + /** + * Constructs a new LaunchPlanCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanCreateResponse. + * @implements ILaunchPlanCreateResponse + * @constructor + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + */ + function LaunchPlanCreateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance + */ + LaunchPlanCreateResponse.create = function create(properties) { + return new LaunchPlanCreateResponse(properties); + }; + + /** + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanCreateResponse message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return LaunchPlanCreateResponse; + })(); + + /** + * LaunchPlanState enum. + * @name flyteidl.admin.LaunchPlanState + * @enum {string} + * @property {number} INACTIVE=0 INACTIVE value + * @property {number} ACTIVE=1 ACTIVE value + */ + admin.LaunchPlanState = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INACTIVE"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + return values; + })(); + + admin.LaunchPlan = (function() { + + /** + * Properties of a LaunchPlan. + * @memberof flyteidl.admin + * @interface ILaunchPlan + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlan id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlan spec + * @property {flyteidl.admin.ILaunchPlanClosure|null} [closure] LaunchPlan closure + */ + + /** + * Constructs a new LaunchPlan. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlan. + * @implements ILaunchPlan + * @constructor + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + */ + function LaunchPlan(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlan id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.id = null; + + /** + * LaunchPlan spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.spec = null; + + /** + * LaunchPlan closure. + * @member {flyteidl.admin.ILaunchPlanClosure|null|undefined} closure + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.closure = null; + + /** + * Creates a new LaunchPlan instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance + */ + LaunchPlan.create = function create(properties) { + return new LaunchPlan(properties); + }; + + /** + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.LaunchPlanClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlan message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlan(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + break; + case 3: + message.closure = $root.flyteidl.admin.LaunchPlanClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlan message. + * @function verify + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + let error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + let error = $root.flyteidl.admin.LaunchPlanClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return LaunchPlan; + })(); + + admin.LaunchPlanList = (function() { + + /** + * Properties of a LaunchPlanList. + * @memberof flyteidl.admin + * @interface ILaunchPlanList + * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans + * @property {string|null} [token] LaunchPlanList token + */ + + /** + * Constructs a new LaunchPlanList. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanList. + * @implements ILaunchPlanList + * @constructor + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + */ + function LaunchPlanList(properties) { + this.launchPlans = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanList launchPlans. + * @member {Array.} launchPlans + * @memberof flyteidl.admin.LaunchPlanList + * @instance + */ + LaunchPlanList.prototype.launchPlans = $util.emptyArray; + + /** + * LaunchPlanList token. + * @member {string} token + * @memberof flyteidl.admin.LaunchPlanList + * @instance + */ + LaunchPlanList.prototype.token = ""; + + /** + * Creates a new LaunchPlanList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance + */ + LaunchPlanList.create = function create(properties) { + return new LaunchPlanList(properties); + }; + + /** + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchPlans != null && message.launchPlans.length) + for (let i = 0; i < message.launchPlans.length; ++i) + $root.flyteidl.admin.LaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a LaunchPlanList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.launchPlans && message.launchPlans.length)) + message.launchPlans = []; + message.launchPlans.push($root.flyteidl.admin.LaunchPlan.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanList message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { + if (!Array.isArray(message.launchPlans)) + return "launchPlans: array expected"; + for (let i = 0; i < message.launchPlans.length; ++i) { + let error = $root.flyteidl.admin.LaunchPlan.verify(message.launchPlans[i]); + if (error) + return "launchPlans." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return LaunchPlanList; + })(); + + admin.Auth = (function() { + + /** + * Properties of an Auth. + * @memberof flyteidl.admin + * @interface IAuth + * @property {string|null} [assumableIamRole] Auth assumableIamRole + * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount + */ + + /** + * Constructs a new Auth. + * @memberof flyteidl.admin + * @classdesc Represents an Auth. + * @implements IAuth + * @constructor + * @param {flyteidl.admin.IAuth=} [properties] Properties to set + */ + function Auth(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Auth assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.Auth + * @instance + */ + Auth.prototype.assumableIamRole = ""; + + /** + * Auth kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.Auth + * @instance + */ + Auth.prototype.kubernetesServiceAccount = ""; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Auth method. + * @member {"assumableIamRole"|"kubernetesServiceAccount"|undefined} method + * @memberof flyteidl.admin.Auth + * @instance + */ + Object.defineProperty(Auth.prototype, "method", { + get: $util.oneOfGetter($oneOfFields = ["assumableIamRole", "kubernetesServiceAccount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Auth instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Auth + * @static + * @param {flyteidl.admin.IAuth=} [properties] Properties to set + * @returns {flyteidl.admin.Auth} Auth instance + */ + Auth.create = function create(properties) { + return new Auth(properties); + }; + + /** + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Auth + * @static + * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Auth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); + return writer; + }; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Auth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Auth} Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Auth.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Auth(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.assumableIamRole = reader.string(); + break; + case 2: + message.kubernetesServiceAccount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Auth message. + * @function verify + * @memberof flyteidl.admin.Auth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Auth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) { + properties.method = 1; + if (!$util.isString(message.assumableIamRole)) + return "assumableIamRole: string expected"; + } + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) { + if (properties.method === 1) + return "method: multiple values"; + properties.method = 1; + if (!$util.isString(message.kubernetesServiceAccount)) + return "kubernetesServiceAccount: string expected"; + } + return null; + }; + + return Auth; + })(); + + admin.LaunchPlanSpec = (function() { + + /** + * Properties of a LaunchPlanSpec. + * @memberof flyteidl.admin + * @interface ILaunchPlanSpec + * @property {flyteidl.core.IIdentifier|null} [workflowId] LaunchPlanSpec workflowId + * @property {flyteidl.admin.ILaunchPlanMetadata|null} [entityMetadata] LaunchPlanSpec entityMetadata + * @property {flyteidl.core.IParameterMap|null} [defaultInputs] LaunchPlanSpec defaultInputs + * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanSpec fixedInputs + * @property {string|null} [role] LaunchPlanSpec role + * @property {flyteidl.admin.ILabels|null} [labels] LaunchPlanSpec labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] LaunchPlanSpec annotations + * @property {flyteidl.admin.IAuth|null} [auth] LaunchPlanSpec auth + */ + + /** + * Constructs a new LaunchPlanSpec. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanSpec. + * @implements ILaunchPlanSpec + * @constructor + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + */ + function LaunchPlanSpec(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanSpec workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.workflowId = null; + + /** + * LaunchPlanSpec entityMetadata. + * @member {flyteidl.admin.ILaunchPlanMetadata|null|undefined} entityMetadata + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.entityMetadata = null; + + /** + * LaunchPlanSpec defaultInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} defaultInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.defaultInputs = null; + + /** + * LaunchPlanSpec fixedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.fixedInputs = null; + + /** + * LaunchPlanSpec role. + * @member {string} role + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.role = ""; + + /** + * LaunchPlanSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.labels = null; + + /** + * LaunchPlanSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.annotations = null; + + /** + * LaunchPlanSpec auth. + * @member {flyteidl.admin.IAuth|null|undefined} auth + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.auth = null; + + /** + * Creates a new LaunchPlanSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance + */ + LaunchPlanSpec.create = function create(properties) { + return new LaunchPlanSpec(properties); + }; + + /** + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) + $root.flyteidl.admin.LaunchPlanMetadata.encode(message.entityMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) + $root.flyteidl.core.ParameterMap.encode(message.defaultInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.role != null && message.hasOwnProperty("role")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.role); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.auth != null && message.hasOwnProperty("auth")) + $root.flyteidl.admin.Auth.encode(message.auth, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.entityMetadata = $root.flyteidl.admin.LaunchPlanMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.defaultInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); + break; + case 4: + message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 5: + message.role = reader.string(); + break; + case 6: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 7: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 8: + message.auth = $root.flyteidl.admin.Auth.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanSpec message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + let error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) { + let error = $root.flyteidl.admin.LaunchPlanMetadata.verify(message.entityMetadata); + if (error) + return "entityMetadata." + error; + } + if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) { + let error = $root.flyteidl.core.ParameterMap.verify(message.defaultInputs); + if (error) + return "defaultInputs." + error; + } + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { + let error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); + if (error) + return "fixedInputs." + error; + } + if (message.role != null && message.hasOwnProperty("role")) + if (!$util.isString(message.role)) + return "role: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + let error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + let error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.auth != null && message.hasOwnProperty("auth")) { + let error = $root.flyteidl.admin.Auth.verify(message.auth); + if (error) + return "auth." + error; + } + return null; + }; + + return LaunchPlanSpec; + })(); + + admin.LaunchPlanClosure = (function() { + + /** + * Properties of a LaunchPlanClosure. + * @memberof flyteidl.admin + * @interface ILaunchPlanClosure + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanClosure state + * @property {flyteidl.core.IParameterMap|null} [expectedInputs] LaunchPlanClosure expectedInputs + * @property {flyteidl.core.IVariableMap|null} [expectedOutputs] LaunchPlanClosure expectedOutputs + * @property {google.protobuf.ITimestamp|null} [createdAt] LaunchPlanClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] LaunchPlanClosure updatedAt + */ + + /** + * Constructs a new LaunchPlanClosure. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanClosure. + * @implements ILaunchPlanClosure + * @constructor + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + */ + function LaunchPlanClosure(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanClosure state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.state = 0; + + /** + * LaunchPlanClosure expectedInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} expectedInputs + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.expectedInputs = null; + + /** + * LaunchPlanClosure expectedOutputs. + * @member {flyteidl.core.IVariableMap|null|undefined} expectedOutputs + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.expectedOutputs = null; + + /** + * LaunchPlanClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.createdAt = null; + + /** + * LaunchPlanClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.updatedAt = null; + + /** + * Creates a new LaunchPlanClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance + */ + LaunchPlanClosure.create = function create(properties) { + return new LaunchPlanClosure(properties); + }; + + /** + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) + $root.flyteidl.core.ParameterMap.encode(message.expectedInputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) + $root.flyteidl.core.VariableMap.encode(message.expectedOutputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.expectedInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); + break; + case 3: + message.expectedOutputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 4: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanClosure message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) { + let error = $root.flyteidl.core.ParameterMap.verify(message.expectedInputs); + if (error) + return "expectedInputs." + error; + } + if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) { + let error = $root.flyteidl.core.VariableMap.verify(message.expectedOutputs); + if (error) + return "expectedOutputs." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + return null; + }; + + return LaunchPlanClosure; + })(); + + admin.LaunchPlanMetadata = (function() { + + /** + * Properties of a LaunchPlanMetadata. + * @memberof flyteidl.admin + * @interface ILaunchPlanMetadata + * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule + * @property {Array.|null} [notifications] LaunchPlanMetadata notifications + */ + + /** + * Constructs a new LaunchPlanMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanMetadata. + * @implements ILaunchPlanMetadata + * @constructor + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + */ + function LaunchPlanMetadata(properties) { + this.notifications = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanMetadata schedule. + * @member {flyteidl.admin.ISchedule|null|undefined} schedule + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.schedule = null; + + /** + * LaunchPlanMetadata notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.notifications = $util.emptyArray; + + /** + * Creates a new LaunchPlanMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance + */ + LaunchPlanMetadata.create = function create(properties) { + return new LaunchPlanMetadata(properties); + }; + + /** + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schedule != null && message.hasOwnProperty("schedule")) + $root.flyteidl.admin.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (let i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanMetadata message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schedule != null && message.hasOwnProperty("schedule")) { + let error = $root.flyteidl.admin.Schedule.verify(message.schedule); + if (error) + return "schedule." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (let i = 0; i < message.notifications.length; ++i) { + let error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + return null; + }; + + return LaunchPlanMetadata; + })(); + + admin.LaunchPlanUpdateRequest = (function() { + + /** + * Properties of a LaunchPlanUpdateRequest. + * @memberof flyteidl.admin + * @interface ILaunchPlanUpdateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state + */ + + /** + * Constructs a new LaunchPlanUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanUpdateRequest. + * @implements ILaunchPlanUpdateRequest + * @constructor + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + */ + function LaunchPlanUpdateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanUpdateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @instance + */ + LaunchPlanUpdateRequest.prototype.id = null; + + /** + * LaunchPlanUpdateRequest state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @instance + */ + LaunchPlanUpdateRequest.prototype.state = 0; + + /** + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance + */ + LaunchPlanUpdateRequest.create = function create(properties) { + return new LaunchPlanUpdateRequest(properties); + }; + + /** + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + return LaunchPlanUpdateRequest; + })(); + + admin.LaunchPlanUpdateResponse = (function() { + + /** + * Properties of a LaunchPlanUpdateResponse. + * @memberof flyteidl.admin + * @interface ILaunchPlanUpdateResponse + */ + + /** + * Constructs a new LaunchPlanUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanUpdateResponse. + * @implements ILaunchPlanUpdateResponse + * @constructor + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + */ + function LaunchPlanUpdateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance + */ + LaunchPlanUpdateResponse.create = function create(properties) { + return new LaunchPlanUpdateResponse(properties); + }; + + /** + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return LaunchPlanUpdateResponse; + })(); + + /** + * FixedRateUnit enum. + * @name flyteidl.admin.FixedRateUnit + * @enum {string} + * @property {number} MINUTE=0 MINUTE value + * @property {number} HOUR=1 HOUR value + * @property {number} DAY=2 DAY value + */ + admin.FixedRateUnit = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MINUTE"] = 0; + values[valuesById[1] = "HOUR"] = 1; + values[valuesById[2] = "DAY"] = 2; + return values; + })(); + + admin.FixedRate = (function() { + + /** + * Properties of a FixedRate. + * @memberof flyteidl.admin + * @interface IFixedRate + * @property {number|null} [value] FixedRate value + * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit + */ + + /** + * Constructs a new FixedRate. + * @memberof flyteidl.admin + * @classdesc Represents a FixedRate. + * @implements IFixedRate + * @constructor + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + */ + function FixedRate(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FixedRate value. + * @member {number} value + * @memberof flyteidl.admin.FixedRate + * @instance + */ + FixedRate.prototype.value = 0; + + /** + * FixedRate unit. + * @member {flyteidl.admin.FixedRateUnit} unit + * @memberof flyteidl.admin.FixedRate + * @instance + */ + FixedRate.prototype.unit = 0; + + /** + * Creates a new FixedRate instance using the specified properties. + * @function create + * @memberof flyteidl.admin.FixedRate + * @static + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + * @returns {flyteidl.admin.FixedRate} FixedRate instance + */ + FixedRate.create = function create(properties) { + return new FixedRate(properties); + }; + + /** + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.FixedRate + * @static + * @param {flyteidl.admin.IFixedRate} message FixedRate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FixedRate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + if (message.unit != null && message.hasOwnProperty("unit")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unit); + return writer; + }; + + /** + * Decodes a FixedRate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.FixedRate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.FixedRate} FixedRate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FixedRate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FixedRate(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint32(); + break; + case 2: + message.unit = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FixedRate message. + * @function verify + * @memberof flyteidl.admin.FixedRate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FixedRate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + if (message.unit != null && message.hasOwnProperty("unit")) + switch (message.unit) { + default: + return "unit: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + return FixedRate; + })(); + + admin.Schedule = (function() { + + /** + * Properties of a Schedule. + * @memberof flyteidl.admin + * @interface ISchedule + * @property {string|null} [cronExpression] Schedule cronExpression + * @property {flyteidl.admin.IFixedRate|null} [rate] Schedule rate + * @property {string|null} [kickoffTimeInputArg] Schedule kickoffTimeInputArg + */ + + /** + * Constructs a new Schedule. + * @memberof flyteidl.admin + * @classdesc Represents a Schedule. + * @implements ISchedule + * @constructor + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + */ + function Schedule(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Schedule cronExpression. + * @member {string} cronExpression + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.cronExpression = ""; + + /** + * Schedule rate. + * @member {flyteidl.admin.IFixedRate|null|undefined} rate + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.rate = null; + + /** + * Schedule kickoffTimeInputArg. + * @member {string} kickoffTimeInputArg + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.kickoffTimeInputArg = ""; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Schedule ScheduleExpression. + * @member {"cronExpression"|"rate"|undefined} ScheduleExpression + * @memberof flyteidl.admin.Schedule + * @instance + */ + Object.defineProperty(Schedule.prototype, "ScheduleExpression", { + get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Schedule instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Schedule + * @static + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + * @returns {flyteidl.admin.Schedule} Schedule instance + */ + Schedule.create = function create(properties) { + return new Schedule(properties); + }; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Schedule + * @static + * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cronExpression); + if (message.rate != null && message.hasOwnProperty("rate")) + $root.flyteidl.admin.FixedRate.encode(message.rate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.kickoffTimeInputArg); + return writer; + }; + + /** + * Decodes a Schedule message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Schedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Schedule} Schedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Schedule(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cronExpression = reader.string(); + break; + case 2: + message.rate = $root.flyteidl.admin.FixedRate.decode(reader, reader.uint32()); + break; + case 3: + message.kickoffTimeInputArg = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Schedule message. + * @function verify + * @memberof flyteidl.admin.Schedule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schedule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) { + properties.ScheduleExpression = 1; + if (!$util.isString(message.cronExpression)) + return "cronExpression: string expected"; + } + if (message.rate != null && message.hasOwnProperty("rate")) { + if (properties.ScheduleExpression === 1) + return "ScheduleExpression: multiple values"; + properties.ScheduleExpression = 1; + { + let error = $root.flyteidl.admin.FixedRate.verify(message.rate); + if (error) + return "rate." + error; + } + } + if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) + if (!$util.isString(message.kickoffTimeInputArg)) + return "kickoffTimeInputArg: string expected"; + return null; + }; + + return Schedule; + })(); + + admin.NodeExecutionGetRequest = (function() { + + /** + * Properties of a NodeExecutionGetRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionGetRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id + */ + + /** + * Constructs a new NodeExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetRequest. + * @implements INodeExecutionGetRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + */ + function NodeExecutionGetRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @instance + */ + NodeExecutionGetRequest.prototype.id = null; + + /** + * Creates a new NodeExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance + */ + NodeExecutionGetRequest.create = function create(properties) { + return new NodeExecutionGetRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NodeExecutionGetRequest; + })(); + + admin.NodeExecutionListRequest = (function() { + + /** + * Properties of a NodeExecutionListRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionListRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] NodeExecutionListRequest workflowExecutionId + * @property {number|null} [limit] NodeExecutionListRequest limit + * @property {string|null} [token] NodeExecutionListRequest token + * @property {string|null} [filters] NodeExecutionListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionListRequest sortBy + */ + + /** + * Constructs a new NodeExecutionListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionListRequest. + * @implements INodeExecutionListRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + */ + function NodeExecutionListRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.workflowExecutionId = null; + + /** + * NodeExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.limit = 0; + + /** + * NodeExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.token = ""; + + /** + * NodeExecutionListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.filters = ""; + + /** + * NodeExecutionListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.sortBy = null; + + /** + * Creates a new NodeExecutionListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest instance + */ + NodeExecutionListRequest.create = function create(properties) { + return new NodeExecutionListRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionListRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionListRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); + if (error) + return "workflowExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + let error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return NodeExecutionListRequest; + })(); + + admin.NodeExecutionForTaskListRequest = (function() { + + /** + * Properties of a NodeExecutionForTaskListRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionForTaskListRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] NodeExecutionForTaskListRequest taskExecutionId + * @property {number|null} [limit] NodeExecutionForTaskListRequest limit + * @property {string|null} [token] NodeExecutionForTaskListRequest token + * @property {string|null} [filters] NodeExecutionForTaskListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionForTaskListRequest sortBy + */ + + /** + * Constructs a new NodeExecutionForTaskListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionForTaskListRequest. + * @implements INodeExecutionForTaskListRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + */ + function NodeExecutionForTaskListRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionForTaskListRequest taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.taskExecutionId = null; + + /** + * NodeExecutionForTaskListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.limit = 0; + + /** + * NodeExecutionForTaskListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.token = ""; + + /** + * NodeExecutionForTaskListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.filters = ""; + + /** + * NodeExecutionForTaskListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.sortBy = null; + + /** + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance + */ + NodeExecutionForTaskListRequest.create = function create(properties) { + return new NodeExecutionForTaskListRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionForTaskListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionForTaskListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionForTaskListRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionForTaskListRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionForTaskListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { + let error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); + if (error) + return "taskExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + let error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return NodeExecutionForTaskListRequest; + })(); + + admin.NodeExecution = (function() { + + /** + * Properties of a NodeExecution. + * @memberof flyteidl.admin + * @interface INodeExecution + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecution id + * @property {string|null} [inputUri] NodeExecution inputUri + * @property {flyteidl.admin.INodeExecutionClosure|null} [closure] NodeExecution closure + */ + + /** + * Constructs a new NodeExecution. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecution. + * @implements INodeExecution + * @constructor + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + */ + function NodeExecution(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecution id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.id = null; + + /** + * NodeExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.inputUri = ""; + + /** + * NodeExecution closure. + * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.closure = null; + + /** + * Creates a new NodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecution} NodeExecution instance + */ + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); + }; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.NodeExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecution} NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecution(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputUri = reader.string(); + break; + case 3: + message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecution message. + * @function verify + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.closure != null && message.hasOwnProperty("closure")) { + let error = $root.flyteidl.admin.NodeExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return NodeExecution; + })(); + + admin.NodeExecutionList = (function() { + + /** + * Properties of a NodeExecutionList. + * @memberof flyteidl.admin + * @interface INodeExecutionList + * @property {Array.|null} [nodeExecutions] NodeExecutionList nodeExecutions + * @property {string|null} [token] NodeExecutionList token + */ + + /** + * Constructs a new NodeExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionList. + * @implements INodeExecutionList + * @constructor + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + */ + function NodeExecutionList(properties) { + this.nodeExecutions = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionList nodeExecutions. + * @member {Array.} nodeExecutions + * @memberof flyteidl.admin.NodeExecutionList + * @instance + */ + NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; + + /** + * NodeExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionList + * @instance + */ + NodeExecutionList.prototype.token = ""; + + /** + * Creates a new NodeExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance + */ + NodeExecutionList.create = function create(properties) { + return new NodeExecutionList(properties); + }; + + /** + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeExecutions != null && message.nodeExecutions.length) + for (let i = 0; i < message.nodeExecutions.length; ++i) + $root.flyteidl.admin.NodeExecution.encode(message.nodeExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NodeExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodeExecutions && message.nodeExecutions.length)) + message.nodeExecutions = []; + message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionList message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeExecutions != null && message.hasOwnProperty("nodeExecutions")) { + if (!Array.isArray(message.nodeExecutions)) + return "nodeExecutions: array expected"; + for (let i = 0; i < message.nodeExecutions.length; ++i) { + let error = $root.flyteidl.admin.NodeExecution.verify(message.nodeExecutions[i]); + if (error) + return "nodeExecutions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NodeExecutionList; + })(); + + admin.NodeExecutionClosure = (function() { + + /** + * Properties of a NodeExecutionClosure. + * @memberof flyteidl.admin + * @interface INodeExecutionClosure + * @property {string|null} [outputUri] NodeExecutionClosure outputUri + * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionClosure error + * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionClosure phase + * @property {google.protobuf.ITimestamp|null} [startedAt] NodeExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] NodeExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] NodeExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] NodeExecutionClosure updatedAt + * @property {flyteidl.admin.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionClosure workflowNodeMetadata + */ + + /** + * Constructs a new NodeExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionClosure. + * @implements INodeExecutionClosure + * @constructor + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + */ + function NodeExecutionClosure(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.outputUri = ""; + + /** + * NodeExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.error = null; + + /** + * NodeExecutionClosure phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.phase = 0; + + /** + * NodeExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.startedAt = null; + + /** + * NodeExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.duration = null; + + /** + * NodeExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.createdAt = null; + + /** + * NodeExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.updatedAt = null; + + /** + * NodeExecutionClosure workflowNodeMetadata. + * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.workflowNodeMetadata = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * NodeExecutionClosure outputResult. + * @member {"outputUri"|"error"|undefined} outputResult + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + Object.defineProperty(NodeExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionClosure targetMetadata. + * @member {"workflowNodeMetadata"|undefined} targetMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + Object.defineProperty(NodeExecutionClosure.prototype, "targetMetadata", { + get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance + */ + NodeExecutionClosure.create = function create(properties) { + return new NodeExecutionClosure(properties); + }; + + /** + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) + $root.flyteidl.admin.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputUri = reader.string(); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.workflowNodeMetadata = $root.flyteidl.admin.WorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + let error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + let error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { + properties.targetMetadata = 1; + { + let error = $root.flyteidl.admin.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); + if (error) + return "workflowNodeMetadata." + error; + } + } + return null; + }; + + return NodeExecutionClosure; + })(); + + admin.WorkflowNodeMetadata = (function() { + + /** + * Properties of a WorkflowNodeMetadata. + * @memberof flyteidl.admin + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + */ + + /** + * Constructs a new WorkflowNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata + * @constructor + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + */ + function WorkflowNodeMetadata(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @instance + */ + WorkflowNodeMetadata.prototype.executionId = null; + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance + */ + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowNodeMetadata(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + let error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return WorkflowNodeMetadata; + })(); + + admin.NodeExecutionGetDataRequest = (function() { + + /** + * Properties of a NodeExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionGetDataRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id + */ + + /** + * Constructs a new NodeExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetDataRequest. + * @implements INodeExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + */ + function NodeExecutionGetDataRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetDataRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @instance + */ + NodeExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest instance + */ + NodeExecutionGetDataRequest.create = function create(properties) { + return new NodeExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NodeExecutionGetDataRequest; + })(); + + admin.NodeExecutionGetDataResponse = (function() { + + /** + * Properties of a NodeExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface INodeExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [inputs] NodeExecutionGetDataResponse inputs + * @property {flyteidl.admin.IUrlBlob|null} [outputs] NodeExecutionGetDataResponse outputs + */ + + /** + * Constructs a new NodeExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetDataResponse. + * @implements INodeExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + */ + function NodeExecutionGetDataResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.inputs = null; + + /** + * NodeExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.outputs = null; + + /** + * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance + */ + NodeExecutionGetDataResponse.create = function create(properties) { + return new NodeExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + let error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + let error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return NodeExecutionGetDataResponse; + })(); + + admin.EmailMessage = (function() { + + /** + * Properties of an EmailMessage. + * @memberof flyteidl.admin + * @interface IEmailMessage + * @property {Array.|null} [recipientsEmail] EmailMessage recipientsEmail + * @property {string|null} [senderEmail] EmailMessage senderEmail + * @property {string|null} [subjectLine] EmailMessage subjectLine + * @property {string|null} [body] EmailMessage body + */ + + /** + * Constructs a new EmailMessage. + * @memberof flyteidl.admin + * @classdesc Represents an EmailMessage. + * @implements IEmailMessage + * @constructor + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + */ + function EmailMessage(properties) { + this.recipientsEmail = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailMessage recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.recipientsEmail = $util.emptyArray; + + /** + * EmailMessage senderEmail. + * @member {string} senderEmail + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.senderEmail = ""; + + /** + * EmailMessage subjectLine. + * @member {string} subjectLine + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.subjectLine = ""; + + /** + * EmailMessage body. + * @member {string} body + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.body = ""; + + /** + * Creates a new EmailMessage instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + * @returns {flyteidl.admin.EmailMessage} EmailMessage instance + */ + EmailMessage.create = function create(properties) { + return new EmailMessage(properties); + }; + + /** + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailMessage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (let i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.senderEmail); + if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subjectLine); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.body); + return writer; + }; + + /** + * Decodes an EmailMessage message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EmailMessage} EmailMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailMessage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailMessage(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + case 2: + message.senderEmail = reader.string(); + break; + case 3: + message.subjectLine = reader.string(); + break; + case 4: + message.body = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EmailMessage message. + * @function verify + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (let i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) + if (!$util.isString(message.senderEmail)) + return "senderEmail: string expected"; + if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) + if (!$util.isString(message.subjectLine)) + return "subjectLine: string expected"; + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + return null; + }; + + return EmailMessage; + })(); + + admin.Domain = (function() { + + /** + * Properties of a Domain. + * @memberof flyteidl.admin + * @interface IDomain + * @property {string|null} [id] Domain id + * @property {string|null} [name] Domain name + */ + + /** + * Constructs a new Domain. + * @memberof flyteidl.admin + * @classdesc Represents a Domain. + * @implements IDomain + * @constructor + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + */ + function Domain(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Domain id. + * @member {string} id + * @memberof flyteidl.admin.Domain + * @instance + */ + Domain.prototype.id = ""; + + /** + * Domain name. + * @member {string} name + * @memberof flyteidl.admin.Domain + * @instance + */ + Domain.prototype.name = ""; + + /** + * Creates a new Domain instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Domain + * @static + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + * @returns {flyteidl.admin.Domain} Domain instance + */ + Domain.create = function create(properties) { + return new Domain(properties); + }; + + /** + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Domain + * @static + * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Domain.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Decodes a Domain message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Domain + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Domain} Domain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Domain.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Domain(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Domain message. + * @function verify + * @memberof flyteidl.admin.Domain + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Domain.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return Domain; + })(); + + admin.Project = (function() { + + /** + * Properties of a Project. + * @memberof flyteidl.admin + * @interface IProject + * @property {string|null} [id] Project id + * @property {string|null} [name] Project name + * @property {Array.|null} [domains] Project domains + */ + + /** + * Constructs a new Project. + * @memberof flyteidl.admin + * @classdesc Represents a Project. + * @implements IProject + * @constructor + * @param {flyteidl.admin.IProject=} [properties] Properties to set + */ + function Project(properties) { + this.domains = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Project id. + * @member {string} id + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.id = ""; + + /** + * Project name. + * @member {string} name + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.name = ""; + + /** + * Project domains. + * @member {Array.} domains + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.domains = $util.emptyArray; + + /** + * Creates a new Project instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Project + * @static + * @param {flyteidl.admin.IProject=} [properties] Properties to set + * @returns {flyteidl.admin.Project} Project instance + */ + Project.create = function create(properties) { + return new Project(properties); + }; + + /** + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Project + * @static + * @param {flyteidl.admin.IProject} message Project message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Project.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.domains != null && message.domains.length) + for (let i = 0; i < message.domains.length; ++i) + $root.flyteidl.admin.Domain.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Project message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Project + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Project} Project + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Project.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Project(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + if (!(message.domains && message.domains.length)) + message.domains = []; + message.domains.push($root.flyteidl.admin.Domain.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Project message. + * @function verify + * @memberof flyteidl.admin.Project + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Project.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.domains != null && message.hasOwnProperty("domains")) { + if (!Array.isArray(message.domains)) + return "domains: array expected"; + for (let i = 0; i < message.domains.length; ++i) { + let error = $root.flyteidl.admin.Domain.verify(message.domains[i]); + if (error) + return "domains." + error; + } + } + return null; + }; + + return Project; + })(); + + admin.Projects = (function() { + + /** + * Properties of a Projects. + * @memberof flyteidl.admin + * @interface IProjects + * @property {Array.|null} [projects] Projects projects + */ + + /** + * Constructs a new Projects. + * @memberof flyteidl.admin + * @classdesc Represents a Projects. + * @implements IProjects + * @constructor + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + */ + function Projects(properties) { + this.projects = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Projects projects. + * @member {Array.} projects + * @memberof flyteidl.admin.Projects + * @instance + */ + Projects.prototype.projects = $util.emptyArray; + + /** + * Creates a new Projects instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Projects + * @static + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + * @returns {flyteidl.admin.Projects} Projects instance + */ + Projects.create = function create(properties) { + return new Projects(properties); + }; + + /** + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Projects + * @static + * @param {flyteidl.admin.IProjects} message Projects message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Projects.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projects != null && message.projects.length) + for (let i = 0; i < message.projects.length; ++i) + $root.flyteidl.admin.Project.encode(message.projects[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Projects message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Projects + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Projects} Projects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Projects.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Projects(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.projects && message.projects.length)) + message.projects = []; + message.projects.push($root.flyteidl.admin.Project.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Projects message. + * @function verify + * @memberof flyteidl.admin.Projects + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Projects.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projects != null && message.hasOwnProperty("projects")) { + if (!Array.isArray(message.projects)) + return "projects: array expected"; + for (let i = 0; i < message.projects.length; ++i) { + let error = $root.flyteidl.admin.Project.verify(message.projects[i]); + if (error) + return "projects." + error; + } + } + return null; + }; + + return Projects; + })(); + + admin.ProjectListRequest = (function() { + + /** + * Properties of a ProjectListRequest. + * @memberof flyteidl.admin + * @interface IProjectListRequest + */ + + /** + * Constructs a new ProjectListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectListRequest. + * @implements IProjectListRequest + * @constructor + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + */ + function ProjectListRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance + */ + ProjectListRequest.create = function create(properties) { + return new ProjectListRequest(properties); + }; + + /** + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectListRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectListRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectListRequest; + })(); + + admin.ProjectRegisterRequest = (function() { + + /** + * Properties of a ProjectRegisterRequest. + * @memberof flyteidl.admin + * @interface IProjectRegisterRequest + * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project + */ + + /** + * Constructs a new ProjectRegisterRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectRegisterRequest. + * @implements IProjectRegisterRequest + * @constructor + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + */ + function ProjectRegisterRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectRegisterRequest project. + * @member {flyteidl.admin.IProject|null|undefined} project + * @memberof flyteidl.admin.ProjectRegisterRequest + * @instance + */ + ProjectRegisterRequest.prototype.project = null; + + /** + * Creates a new ProjectRegisterRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance + */ + ProjectRegisterRequest.create = function create(properties) { + return new ProjectRegisterRequest(properties); + }; + + /** + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectRegisterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + $root.flyteidl.admin.Project.encode(message.project, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectRegisterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectRegisterRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectRegisterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) { + let error = $root.flyteidl.admin.Project.verify(message.project); + if (error) + return "project." + error; + } + return null; + }; + + return ProjectRegisterRequest; + })(); + + admin.ProjectRegisterResponse = (function() { + + /** + * Properties of a ProjectRegisterResponse. + * @memberof flyteidl.admin + * @interface IProjectRegisterResponse + */ + + /** + * Constructs a new ProjectRegisterResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectRegisterResponse. + * @implements IProjectRegisterResponse + * @constructor + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + */ + function ProjectRegisterResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectRegisterResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance + */ + ProjectRegisterResponse.create = function create(properties) { + return new ProjectRegisterResponse(properties); + }; + + /** + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectRegisterResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectRegisterResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectRegisterResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectRegisterResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectRegisterResponse; + })(); + + admin.TaskCreateRequest = (function() { + + /** + * Properties of a TaskCreateRequest. + * @memberof flyteidl.admin + * @interface ITaskCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id + * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec + */ + + /** + * Constructs a new TaskCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest + * @constructor + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + */ + function TaskCreateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.id = null; + + /** + * TaskCreateRequest spec. + * @member {flyteidl.admin.ITaskSpec|null|undefined} spec + * @memberof flyteidl.admin.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.spec = null; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest instance + */ + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); + }; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {flyteidl.admin.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.TaskSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.TaskSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateRequest message. + * @function verify + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + let error = $root.flyteidl.admin.TaskSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return TaskCreateRequest; + })(); + + admin.TaskCreateResponse = (function() { + + /** + * Properties of a TaskCreateResponse. + * @memberof flyteidl.admin + * @interface ITaskCreateResponse + */ + + /** + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + */ + function TaskCreateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse instance + */ + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {flyteidl.admin.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateResponse message. + * @function verify + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskCreateResponse; + })(); + + admin.Task = (function() { + + /** + * Properties of a Task. + * @memberof flyteidl.admin + * @interface ITask + * @property {flyteidl.core.IIdentifier|null} [id] Task id + * @property {flyteidl.admin.ITaskClosure|null} [closure] Task closure + */ + + /** + * Constructs a new Task. + * @memberof flyteidl.admin + * @classdesc Represents a Task. + * @implements ITask + * @constructor + * @param {flyteidl.admin.ITask=} [properties] Properties to set + */ + function Task(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Task id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.id = null; + + /** + * Task closure. + * @member {flyteidl.admin.ITaskClosure|null|undefined} closure + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.closure = null; + + /** + * Creates a new Task instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Task + * @static + * @param {flyteidl.admin.ITask=} [properties] Properties to set + * @returns {flyteidl.admin.Task} Task instance + */ + Task.create = function create(properties) { + return new Task(properties); + }; + + /** + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Task + * @static + * @param {flyteidl.admin.ITask} message Task message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Task.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.TaskClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Task message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Task + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Task} Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Task.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Task(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.closure = $root.flyteidl.admin.TaskClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Task message. + * @function verify + * @memberof flyteidl.admin.Task + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Task.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + let error = $root.flyteidl.admin.TaskClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return Task; + })(); + + admin.TaskList = (function() { + + /** + * Properties of a TaskList. + * @memberof flyteidl.admin + * @interface ITaskList + * @property {Array.|null} [tasks] TaskList tasks + * @property {string|null} [token] TaskList token + */ + + /** + * Constructs a new TaskList. + * @memberof flyteidl.admin + * @classdesc Represents a TaskList. + * @implements ITaskList + * @constructor + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + */ + function TaskList(properties) { + this.tasks = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskList tasks. + * @member {Array.} tasks + * @memberof flyteidl.admin.TaskList + * @instance + */ + TaskList.prototype.tasks = $util.emptyArray; + + /** + * TaskList token. + * @member {string} token + * @memberof flyteidl.admin.TaskList + * @instance + */ + TaskList.prototype.token = ""; + + /** + * Creates a new TaskList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskList + * @static + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskList} TaskList instance + */ + TaskList.create = function create(properties) { + return new TaskList(properties); + }; + + /** + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskList + * @static + * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tasks != null && message.tasks.length) + for (let i = 0; i < message.tasks.length; ++i) + $root.flyteidl.admin.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a TaskList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskList} TaskList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.admin.Task.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskList message. + * @function verify + * @memberof flyteidl.admin.TaskList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (let i = 0; i < message.tasks.length; ++i) { + let error = $root.flyteidl.admin.Task.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return TaskList; + })(); + + admin.TaskSpec = (function() { + + /** + * Properties of a TaskSpec. + * @memberof flyteidl.admin + * @interface ITaskSpec + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template + */ + + /** + * Constructs a new TaskSpec. + * @memberof flyteidl.admin + * @classdesc Represents a TaskSpec. + * @implements ITaskSpec + * @constructor + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + */ + function TaskSpec(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskSpec template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.TaskSpec + * @instance + */ + TaskSpec.prototype.template = null; + + /** + * Creates a new TaskSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskSpec} TaskSpec instance + */ + TaskSpec.create = function create(properties) { + return new TaskSpec(properties); + }; + + /** + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskSpec} TaskSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskSpec message. + * @function verify + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + let error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return TaskSpec; + })(); + + admin.TaskClosure = (function() { + + /** + * Properties of a TaskClosure. + * @memberof flyteidl.admin + * @interface ITaskClosure + * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt + */ + + /** + * Constructs a new TaskClosure. + * @memberof flyteidl.admin + * @classdesc Represents a TaskClosure. + * @implements ITaskClosure + * @constructor + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + */ + function TaskClosure(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskClosure compiledTask. + * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask + * @memberof flyteidl.admin.TaskClosure + * @instance + */ + TaskClosure.prototype.compiledTask = null; + + /** + * TaskClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskClosure + * @instance + */ + TaskClosure.prototype.createdAt = null; + + /** + * Creates a new TaskClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskClosure} TaskClosure instance + */ + TaskClosure.create = function create(properties) { + return new TaskClosure(properties); + }; + + /** + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) + $root.flyteidl.core.CompiledTask.encode(message.compiledTask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskClosure} TaskClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledTask = $root.flyteidl.core.CompiledTask.decode(reader, reader.uint32()); + break; + case 2: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskClosure message. + * @function verify + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) { + let error = $root.flyteidl.core.CompiledTask.verify(message.compiledTask); + if (error) + return "compiledTask." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + return null; + }; + + return TaskClosure; + })(); + + admin.TaskExecutionGetRequest = (function() { + + /** + * Properties of a TaskExecutionGetRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id + */ + + /** + * Constructs a new TaskExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetRequest. + * @implements ITaskExecutionGetRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + */ + function TaskExecutionGetRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @instance + */ + TaskExecutionGetRequest.prototype.id = null; + + /** + * Creates a new TaskExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance + */ + TaskExecutionGetRequest.create = function create(properties) { + return new TaskExecutionGetRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return TaskExecutionGetRequest; + })(); + + admin.TaskExecutionListRequest = (function() { + + /** + * Properties of a TaskExecutionListRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionListRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionListRequest nodeExecutionId + * @property {number|null} [limit] TaskExecutionListRequest limit + * @property {string|null} [token] TaskExecutionListRequest token + * @property {string|null} [filters] TaskExecutionListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] TaskExecutionListRequest sortBy + */ + + /** + * Constructs a new TaskExecutionListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionListRequest. + * @implements ITaskExecutionListRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + */ + function TaskExecutionListRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionListRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.nodeExecutionId = null; + + /** + * TaskExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.limit = 0; + + /** + * TaskExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.token = ""; + + /** + * TaskExecutionListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.filters = ""; + + /** + * TaskExecutionListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.sortBy = null; + + /** + * Creates a new TaskExecutionListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance + */ + TaskExecutionListRequest.create = function create(properties) { + return new TaskExecutionListRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionListRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionListRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + let error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + let error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return TaskExecutionListRequest; + })(); + + admin.TaskExecution = (function() { + + /** + * Properties of a TaskExecution. + * @memberof flyteidl.admin + * @interface ITaskExecution + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecution id + * @property {string|null} [inputUri] TaskExecution inputUri + * @property {flyteidl.admin.ITaskExecutionClosure|null} [closure] TaskExecution closure + * @property {boolean|null} [isParent] TaskExecution isParent + */ + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + */ + function TaskExecution(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecution id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.id = null; + + /** + * TaskExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.inputUri = ""; + + /** + * TaskExecution closure. + * @member {flyteidl.admin.ITaskExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.closure = null; + + /** + * TaskExecution isParent. + * @member {boolean} isParent + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.isParent = false; + + /** + * Creates a new TaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecution} TaskExecution instance + */ + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); + }; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.TaskExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.isParent != null && message.hasOwnProperty("isParent")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isParent); + return writer; + }; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecution(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputUri = reader.string(); + break; + case 3: + message.closure = $root.flyteidl.admin.TaskExecutionClosure.decode(reader, reader.uint32()); + break; + case 4: + message.isParent = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecution message. + * @function verify + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.closure != null && message.hasOwnProperty("closure")) { + let error = $root.flyteidl.admin.TaskExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.isParent != null && message.hasOwnProperty("isParent")) + if (typeof message.isParent !== "boolean") + return "isParent: boolean expected"; + return null; + }; + + return TaskExecution; + })(); + + admin.TaskExecutionList = (function() { + + /** + * Properties of a TaskExecutionList. + * @memberof flyteidl.admin + * @interface ITaskExecutionList + * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions + * @property {string|null} [token] TaskExecutionList token + */ + + /** + * Constructs a new TaskExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionList. + * @implements ITaskExecutionList + * @constructor + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + */ + function TaskExecutionList(properties) { + this.taskExecutions = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionList taskExecutions. + * @member {Array.} taskExecutions + * @memberof flyteidl.admin.TaskExecutionList + * @instance + */ + TaskExecutionList.prototype.taskExecutions = $util.emptyArray; + + /** + * TaskExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionList + * @instance + */ + TaskExecutionList.prototype.token = ""; + + /** + * Creates a new TaskExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance + */ + TaskExecutionList.create = function create(properties) { + return new TaskExecutionList(properties); + }; + + /** + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutions != null && message.taskExecutions.length) + for (let i = 0; i < message.taskExecutions.length; ++i) + $root.flyteidl.admin.TaskExecution.encode(message.taskExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a TaskExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.taskExecutions && message.taskExecutions.length)) + message.taskExecutions = []; + message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionList message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutions != null && message.hasOwnProperty("taskExecutions")) { + if (!Array.isArray(message.taskExecutions)) + return "taskExecutions: array expected"; + for (let i = 0; i < message.taskExecutions.length; ++i) { + let error = $root.flyteidl.admin.TaskExecution.verify(message.taskExecutions[i]); + if (error) + return "taskExecutions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return TaskExecutionList; + })(); + + admin.TaskExecutionClosure = (function() { + + /** + * Properties of a TaskExecutionClosure. + * @memberof flyteidl.admin + * @interface ITaskExecutionClosure + * @property {string|null} [outputUri] TaskExecutionClosure outputUri + * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionClosure error + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionClosure phase + * @property {Array.|null} [logs] TaskExecutionClosure logs + * @property {google.protobuf.ITimestamp|null} [startedAt] TaskExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] TaskExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] TaskExecutionClosure updatedAt + * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionClosure customInfo + */ + + /** + * Constructs a new TaskExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionClosure. + * @implements ITaskExecutionClosure + * @constructor + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + */ + function TaskExecutionClosure(properties) { + this.logs = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.outputUri = ""; + + /** + * TaskExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.error = null; + + /** + * TaskExecutionClosure phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.phase = 0; + + /** + * TaskExecutionClosure logs. + * @member {Array.} logs + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.logs = $util.emptyArray; + + /** + * TaskExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.startedAt = null; + + /** + * TaskExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.duration = null; + + /** + * TaskExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.createdAt = null; + + /** + * TaskExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.updatedAt = null; + + /** + * TaskExecutionClosure customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.customInfo = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * TaskExecutionClosure outputResult. + * @member {"outputUri"|"error"|undefined} outputResult + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + Object.defineProperty(TaskExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance + */ + TaskExecutionClosure.create = function create(properties) { + return new TaskExecutionClosure(properties); + }; + + /** + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.logs != null && message.logs.length) + for (let i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputUri = reader.string(); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 5: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + let error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (let i = 0; i < message.logs.length; ++i) { + let error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + let error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + let error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + return null; + }; + + return TaskExecutionClosure; + })(); + + admin.TaskExecutionGetDataRequest = (function() { + + /** + * Properties of a TaskExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetDataRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id + */ + + /** + * Constructs a new TaskExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetDataRequest. + * @implements ITaskExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + */ + function TaskExecutionGetDataRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetDataRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @instance + */ + TaskExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance + */ + TaskExecutionGetDataRequest.create = function create(properties) { + return new TaskExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return TaskExecutionGetDataRequest; + })(); + + admin.TaskExecutionGetDataResponse = (function() { + + /** + * Properties of a TaskExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [inputs] TaskExecutionGetDataResponse inputs + * @property {flyteidl.admin.IUrlBlob|null} [outputs] TaskExecutionGetDataResponse outputs + */ + + /** + * Constructs a new TaskExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetDataResponse. + * @implements ITaskExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + */ + function TaskExecutionGetDataResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.inputs = null; + + /** + * TaskExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.outputs = null; + + /** + * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance + */ + TaskExecutionGetDataResponse.create = function create(properties) { + return new TaskExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + let error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + let error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return TaskExecutionGetDataResponse; + })(); + + admin.WorkflowCreateRequest = (function() { + + /** + * Properties of a WorkflowCreateRequest. + * @memberof flyteidl.admin + * @interface IWorkflowCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id + * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec + */ + + /** + * Constructs a new WorkflowCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowCreateRequest. + * @implements IWorkflowCreateRequest + * @constructor + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + */ + function WorkflowCreateRequest(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowCreateRequest + * @instance + */ + WorkflowCreateRequest.prototype.id = null; + + /** + * WorkflowCreateRequest spec. + * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec + * @memberof flyteidl.admin.WorkflowCreateRequest + * @instance + */ + WorkflowCreateRequest.prototype.spec = null; + + /** + * Creates a new WorkflowCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance + */ + WorkflowCreateRequest.create = function create(properties) { + return new WorkflowCreateRequest(properties); + }; + + /** + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.WorkflowSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateRequest(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowCreateRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + let error = $root.flyteidl.admin.WorkflowSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return WorkflowCreateRequest; + })(); + + admin.WorkflowCreateResponse = (function() { + + /** + * Properties of a WorkflowCreateResponse. + * @memberof flyteidl.admin + * @interface IWorkflowCreateResponse + */ + + /** + * Constructs a new WorkflowCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowCreateResponse. + * @implements IWorkflowCreateResponse + * @constructor + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + */ + function WorkflowCreateResponse(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse instance + */ + WorkflowCreateResponse.create = function create(properties) { + return new WorkflowCreateResponse(properties); + }; + + /** + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {flyteidl.admin.IWorkflowCreateResponse} message WorkflowCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateResponse(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowCreateResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowCreateResponse; + })(); + + admin.Workflow = (function() { + + /** + * Properties of a Workflow. + * @memberof flyteidl.admin + * @interface IWorkflow + * @property {flyteidl.core.IIdentifier|null} [id] Workflow id + * @property {flyteidl.admin.IWorkflowClosure|null} [closure] Workflow closure + */ + + /** + * Constructs a new Workflow. + * @memberof flyteidl.admin + * @classdesc Represents a Workflow. + * @implements IWorkflow + * @constructor + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + */ + function Workflow(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Workflow id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.id = null; + + /** + * Workflow closure. + * @member {flyteidl.admin.IWorkflowClosure|null|undefined} closure + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.closure = null; + + /** + * Creates a new Workflow instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Workflow + * @static + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + * @returns {flyteidl.admin.Workflow} Workflow instance + */ + Workflow.create = function create(properties) { + return new Workflow(properties); + }; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Workflow + * @static + * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.WorkflowClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Workflow(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.closure = $root.flyteidl.admin.WorkflowClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Workflow message. + * @function verify + * @memberof flyteidl.admin.Workflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Workflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + let error = $root.flyteidl.admin.WorkflowClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return Workflow; + })(); + + admin.WorkflowList = (function() { + + /** + * Properties of a WorkflowList. + * @memberof flyteidl.admin + * @interface IWorkflowList + * @property {Array.|null} [workflows] WorkflowList workflows + * @property {string|null} [token] WorkflowList token + */ + + /** + * Constructs a new WorkflowList. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowList. + * @implements IWorkflowList + * @constructor + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + */ + function WorkflowList(properties) { + this.workflows = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowList workflows. + * @member {Array.} workflows + * @memberof flyteidl.admin.WorkflowList + * @instance + */ + WorkflowList.prototype.workflows = $util.emptyArray; + + /** + * WorkflowList token. + * @member {string} token + * @memberof flyteidl.admin.WorkflowList + * @instance + */ + WorkflowList.prototype.token = ""; + + /** + * Creates a new WorkflowList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowList} WorkflowList instance + */ + WorkflowList.create = function create(properties) { + return new WorkflowList(properties); + }; + + /** + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflows != null && message.workflows.length) + for (let i = 0; i < message.workflows.length; ++i) + $root.flyteidl.admin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a WorkflowList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowList} WorkflowList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowList(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowList message. + * @function verify + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (let i = 0; i < message.workflows.length; ++i) { + let error = $root.flyteidl.admin.Workflow.verify(message.workflows[i]); + if (error) + return "workflows." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return WorkflowList; + })(); + + admin.WorkflowSpec = (function() { + + /** + * Properties of a WorkflowSpec. + * @memberof flyteidl.admin + * @interface IWorkflowSpec + * @property {flyteidl.core.IWorkflowTemplate|null} [template] WorkflowSpec template + */ + + /** + * Constructs a new WorkflowSpec. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowSpec. + * @implements IWorkflowSpec + * @constructor + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + */ + function WorkflowSpec(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowSpec template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.template = null; + + /** + * Creates a new WorkflowSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance + */ + WorkflowSpec.create = function create(properties) { + return new WorkflowSpec(properties); + }; + + /** + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowSpec(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowSpec message. + * @function verify + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + let error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return WorkflowSpec; + })(); + + admin.WorkflowClosure = (function() { + + /** + * Properties of a WorkflowClosure. + * @memberof flyteidl.admin + * @interface IWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow + * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt + */ + + /** + * Constructs a new WorkflowClosure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure + * @constructor + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + */ + function WorkflowClosure(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowClosure compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.compiledWorkflow = null; + + /** + * WorkflowClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.createdAt = null; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance + */ + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); + }; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowClosure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 2: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowClosure message. + * @function verify + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + let error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + let error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + return null; + }; + + return WorkflowClosure; + })(); + + return admin; + })(); + + flyteidl.service = (function() { + + /** + * Namespace service. + * @memberof flyteidl + * @namespace + */ + const service = {}; + + service.AdminService = (function() { + + /** + * Constructs a new AdminService service. + * @memberof flyteidl.service + * @classdesc Represents an AdminService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AdminService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AdminService; + + /** + * Creates new AdminService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AdminService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AdminService} RPC service. Useful where requests and/or responses are streamed. + */ + AdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTask}. + * @memberof flyteidl.service.AdminService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskCreateResponse} [response] TaskCreateResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.admin.TaskCreateRequest, $root.flyteidl.admin.TaskCreateResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTask}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Task} [response] Task + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Task, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListTaskIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListTaskIds. + * @function listTaskIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTaskIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTaskIds = function listTaskIds(request, callback) { + return this.rpcCall(listTaskIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListTaskIds" }); + + /** + * Calls ListTaskIds. + * @function listTaskIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * @memberof flyteidl.service.AdminService + * @typedef ListTasksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskList} [response] TaskList + */ + + /** + * Calls ListTasks. + * @function listTasks + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTasksCallback} callback Node-style callback called with the error, if any, and TaskList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTasks = function listTasks(request, callback) { + return this.rpcCall(listTasks, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.TaskList, request, callback); + }, "name", { value: "ListTasks" }); + + /** + * Calls ListTasks. + * @function listTasks + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef CreateWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowCreateResponse} [response] WorkflowCreateResponse + */ + + /** + * Calls CreateWorkflow. + * @function createWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateWorkflowCallback} callback Node-style callback called with the error, if any, and WorkflowCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createWorkflow = function createWorkflow(request, callback) { + return this.rpcCall(createWorkflow, $root.flyteidl.admin.WorkflowCreateRequest, $root.flyteidl.admin.WorkflowCreateResponse, request, callback); + }, "name", { value: "CreateWorkflow" }); + + /** + * Calls CreateWorkflow. + * @function createWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef GetWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Workflow} [response] Workflow + */ + + /** + * Calls GetWorkflow. + * @function getWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetWorkflowCallback} callback Node-style callback called with the error, if any, and Workflow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getWorkflow = function getWorkflow(request, callback) { + return this.rpcCall(getWorkflow, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Workflow, request, callback); + }, "name", { value: "GetWorkflow" }); + + /** + * Calls GetWorkflow. + * @function getWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListWorkflowIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListWorkflowIds. + * @function listWorkflowIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListWorkflowIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listWorkflowIds = function listWorkflowIds(request, callback) { + return this.rpcCall(listWorkflowIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListWorkflowIds" }); + + /** + * Calls ListWorkflowIds. + * @function listWorkflowIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * @memberof flyteidl.service.AdminService + * @typedef ListWorkflowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowList} [response] WorkflowList + */ + + /** + * Calls ListWorkflows. + * @function listWorkflows + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListWorkflowsCallback} callback Node-style callback called with the error, if any, and WorkflowList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listWorkflows = function listWorkflows(request, callback) { + return this.rpcCall(listWorkflows, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.WorkflowList, request, callback); + }, "name", { value: "ListWorkflows" }); + + /** + * Calls ListWorkflows. + * @function listWorkflows + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef CreateLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanCreateResponse} [response] LaunchPlanCreateResponse + */ + + /** + * Calls CreateLaunchPlan. + * @function createLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createLaunchPlan = function createLaunchPlan(request, callback) { + return this.rpcCall(createLaunchPlan, $root.flyteidl.admin.LaunchPlanCreateRequest, $root.flyteidl.admin.LaunchPlanCreateResponse, request, callback); + }, "name", { value: "CreateLaunchPlan" }); + + /** + * Calls CreateLaunchPlan. + * @function createLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef GetLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + */ + + /** + * Calls GetLaunchPlan. + * @function getLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getLaunchPlan = function getLaunchPlan(request, callback) { + return this.rpcCall(getLaunchPlan, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.LaunchPlan, request, callback); + }, "name", { value: "GetLaunchPlan" }); + + /** + * Calls GetLaunchPlan. + * @function getLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListLaunchPlanIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListLaunchPlanIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listLaunchPlanIds = function listLaunchPlanIds(request, callback) { + return this.rpcCall(listLaunchPlanIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListLaunchPlanIds" }); + + /** + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * @memberof flyteidl.service.AdminService + * @typedef ListLaunchPlansCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + */ + + /** + * Calls ListLaunchPlans. + * @function listLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listLaunchPlans = function listLaunchPlans(request, callback) { + return this.rpcCall(listLaunchPlans, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); + }, "name", { value: "ListLaunchPlans" }); + + /** + * Calls ListLaunchPlans. + * @function listLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse + */ + + /** + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateLaunchPlan = function updateLaunchPlan(request, callback) { + return this.rpcCall(updateLaunchPlan, $root.flyteidl.admin.LaunchPlanUpdateRequest, $root.flyteidl.admin.LaunchPlanUpdateResponse, request, callback); + }, "name", { value: "UpdateLaunchPlan" }); + + /** + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * @memberof flyteidl.service.AdminService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls CreateExecution. + * @function createExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.flyteidl.admin.ExecutionCreateRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "CreateExecution" }); + + /** + * Calls CreateExecution. + * @function createExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * @memberof flyteidl.service.AdminService + * @typedef RelaunchExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls RelaunchExecution. + * @function relaunchExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @param {flyteidl.service.AdminService.RelaunchExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.relaunchExecution = function relaunchExecution(request, callback) { + return this.rpcCall(relaunchExecution, $root.flyteidl.admin.ExecutionRelaunchRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "RelaunchExecution" }); + + /** + * Calls RelaunchExecution. + * @function relaunchExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Execution} [response] Execution + */ + + /** + * Calls GetExecution. + * @function getExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.flyteidl.admin.WorkflowExecutionGetRequest, $root.flyteidl.admin.Execution, request, callback); + }, "name", { value: "GetExecution" }); + + /** + * Calls GetExecution. + * @function getExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse + */ + + /** + * Calls GetExecutionData. + * @function getExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionDataCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecutionData = function getExecutionData(request, callback) { + return this.rpcCall(getExecutionData, $root.flyteidl.admin.WorkflowExecutionGetDataRequest, $root.flyteidl.admin.WorkflowExecutionGetDataResponse, request, callback); + }, "name", { value: "GetExecutionData" }); + + /** + * Calls GetExecutionData. + * @function getExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionList} [response] ExecutionList + */ + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.ExecutionList, request, callback); + }, "name", { value: "ListExecutions" }); + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * @memberof flyteidl.service.AdminService + * @typedef TerminateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse + */ + + /** + * Calls TerminateExecution. + * @function terminateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @param {flyteidl.service.AdminService.TerminateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionTerminateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.terminateExecution = function terminateExecution(request, callback) { + return this.rpcCall(terminateExecution, $root.flyteidl.admin.ExecutionTerminateRequest, $root.flyteidl.admin.ExecutionTerminateResponse, request, callback); + }, "name", { value: "TerminateExecution" }); + + /** + * Calls TerminateExecution. + * @function terminateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetNodeExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecution} [response] NodeExecution + */ + + /** + * Calls GetNodeExecution. + * @function getNodeExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetNodeExecutionCallback} callback Node-style callback called with the error, if any, and NodeExecution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNodeExecution = function getNodeExecution(request, callback) { + return this.rpcCall(getNodeExecution, $root.flyteidl.admin.NodeExecutionGetRequest, $root.flyteidl.admin.NodeExecution, request, callback); + }, "name", { value: "GetNodeExecution" }); + + /** + * Calls GetNodeExecution. + * @function getNodeExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListNodeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + */ + + /** + * Calls ListNodeExecutions. + * @function listNodeExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNodeExecutionsCallback} callback Node-style callback called with the error, if any, and NodeExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNodeExecutions = function listNodeExecutions(request, callback) { + return this.rpcCall(listNodeExecutions, $root.flyteidl.admin.NodeExecutionListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); + }, "name", { value: "ListNodeExecutions" }); + + /** + * Calls ListNodeExecutions. + * @function listNodeExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * @memberof flyteidl.service.AdminService + * @typedef ListNodeExecutionsForTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + */ + + /** + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback} callback Node-style callback called with the error, if any, and NodeExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNodeExecutionsForTask = function listNodeExecutionsForTask(request, callback) { + return this.rpcCall(listNodeExecutionsForTask, $root.flyteidl.admin.NodeExecutionForTaskListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); + }, "name", { value: "ListNodeExecutionsForTask" }); + + /** + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetNodeExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse + */ + + /** + * Calls GetNodeExecutionData. + * @function getNodeExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetNodeExecutionDataCallback} callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNodeExecutionData = function getNodeExecutionData(request, callback) { + return this.rpcCall(getNodeExecutionData, $root.flyteidl.admin.NodeExecutionGetDataRequest, $root.flyteidl.admin.NodeExecutionGetDataResponse, request, callback); + }, "name", { value: "GetNodeExecutionData" }); + + /** + * Calls GetNodeExecutionData. + * @function getNodeExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * @memberof flyteidl.service.AdminService + * @typedef RegisterProjectCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse + */ + + /** + * Calls RegisterProject. + * @function registerProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @param {flyteidl.service.AdminService.RegisterProjectCallback} callback Node-style callback called with the error, if any, and ProjectRegisterResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.registerProject = function registerProject(request, callback) { + return this.rpcCall(registerProject, $root.flyteidl.admin.ProjectRegisterRequest, $root.flyteidl.admin.ProjectRegisterResponse, request, callback); + }, "name", { value: "RegisterProject" }); + + /** + * Calls RegisterProject. + * @function registerProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * @memberof flyteidl.service.AdminService + * @typedef ListProjectsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Projects} [response] Projects + */ + + /** + * Calls ListProjects. + * @function listProjects + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @param {flyteidl.service.AdminService.ListProjectsCallback} callback Node-style callback called with the error, if any, and Projects + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listProjects = function listProjects(request, callback) { + return this.rpcCall(listProjects, $root.flyteidl.admin.ProjectListRequest, $root.flyteidl.admin.Projects, request, callback); + }, "name", { value: "ListProjects" }); + + /** + * Calls ListProjects. + * @function listProjects + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateWorkflowEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse + */ + + /** + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateWorkflowEventCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createWorkflowEvent = function createWorkflowEvent(request, callback) { + return this.rpcCall(createWorkflowEvent, $root.flyteidl.admin.WorkflowExecutionEventRequest, $root.flyteidl.admin.WorkflowExecutionEventResponse, request, callback); + }, "name", { value: "CreateWorkflowEvent" }); + + /** + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateNodeEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse + */ + + /** + * Calls CreateNodeEvent. + * @function createNodeEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateNodeEventCallback} callback Node-style callback called with the error, if any, and NodeExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createNodeEvent = function createNodeEvent(request, callback) { + return this.rpcCall(createNodeEvent, $root.flyteidl.admin.NodeExecutionEventRequest, $root.flyteidl.admin.NodeExecutionEventResponse, request, callback); + }, "name", { value: "CreateNodeEvent" }); + + /** + * Calls CreateNodeEvent. + * @function createNodeEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateTaskEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse + */ + + /** + * Calls CreateTaskEvent. + * @function createTaskEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateTaskEventCallback} callback Node-style callback called with the error, if any, and TaskExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createTaskEvent = function createTaskEvent(request, callback) { + return this.rpcCall(createTaskEvent, $root.flyteidl.admin.TaskExecutionEventRequest, $root.flyteidl.admin.TaskExecutionEventResponse, request, callback); + }, "name", { value: "CreateTaskEvent" }); + + /** + * Calls CreateTaskEvent. + * @function createTaskEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecution} [response] TaskExecution + */ + + /** + * Calls GetTaskExecution. + * @function getTaskExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskExecutionCallback} callback Node-style callback called with the error, if any, and TaskExecution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTaskExecution = function getTaskExecution(request, callback) { + return this.rpcCall(getTaskExecution, $root.flyteidl.admin.TaskExecutionGetRequest, $root.flyteidl.admin.TaskExecution, request, callback); + }, "name", { value: "GetTaskExecution" }); + + /** + * Calls GetTaskExecution. + * @function getTaskExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListTaskExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList + */ + + /** + * Calls ListTaskExecutions. + * @function listTaskExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTaskExecutionsCallback} callback Node-style callback called with the error, if any, and TaskExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTaskExecutions = function listTaskExecutions(request, callback) { + return this.rpcCall(listTaskExecutions, $root.flyteidl.admin.TaskExecutionListRequest, $root.flyteidl.admin.TaskExecutionList, request, callback); + }, "name", { value: "ListTaskExecutions" }); + + /** + * Calls ListTaskExecutions. + * @function listTaskExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse + */ + + /** + * Calls GetTaskExecutionData. + * @function getTaskExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskExecutionDataCallback} callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTaskExecutionData = function getTaskExecutionData(request, callback) { + return this.rpcCall(getTaskExecutionData, $root.flyteidl.admin.TaskExecutionGetDataRequest, $root.flyteidl.admin.TaskExecutionGetDataResponse, request, callback); + }, "name", { value: "GetTaskExecutionData" }); + + /** + * Calls GetTaskExecutionData. + * @function getTaskExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AdminService; + })(); + + return service; + })(); + + return flyteidl; +})(); + +export const google = $root.google = (() => { + + /** + * Namespace google. + * @exports google + * @namespace + */ + const google = {}; + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + const protobuf = {}; + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Timestamp seconds. + * @member {Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Timestamp; + })(); + + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Duration; + })(); + + protobuf.Struct = (function() { + + /** + * Properties of a Struct. + * @memberof google.protobuf + * @interface IStruct + * @property {Object.|null} [fields] Struct fields + */ + + /** + * Constructs a new Struct. + * @memberof google.protobuf + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.protobuf.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = {}; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyObject; + + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && message.hasOwnProperty("fields")) + for (let keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key; + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.fields === $util.emptyObject) + message.fields = {}; + key = reader.string(); + reader.pos++; + message.fields[key] = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Struct message. + * @function verify + * @memberof google.protobuf.Struct + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Struct.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!$util.isObject(message.fields)) + return "fields: object expected"; + let key = Object.keys(message.fields); + for (let i = 0; i < key.length; ++i) { + let error = $root.google.protobuf.Value.verify(message.fields[key[i]]); + if (error) + return "fields." + error; + } + } + return null; + }; + + return Struct; + })(); + + protobuf.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.protobuf + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue + */ + + /** + * Constructs a new Value. + * @memberof google.protobuf + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.protobuf.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Value nullValue. + * @member {google.protobuf.NullValue} nullValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.nullValue = 0; + + /** + * Value numberValue. + * @member {number} numberValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.numberValue = 0; + + /** + * Value stringValue. + * @member {string} stringValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.stringValue = ""; + + /** + * Value boolValue. + * @member {boolean} boolValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.boolValue = false; + + /** + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.structValue = null; + + /** + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.listValue = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullValue != null && message.hasOwnProperty("nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && message.hasOwnProperty("numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && message.hasOwnProperty("boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && message.hasOwnProperty("structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && message.hasOwnProperty("listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nullValue = reader.int32(); + break; + case 2: + message.numberValue = reader.double(); + break; + case 3: + message.stringValue = reader.string(); + break; + case 4: + message.boolValue = reader.bool(); + break; + case 5: + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.protobuf.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { + default: + return "nullValue: enum value expected"; + case 0: + break; + } + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.numberValue !== "number") + return "numberValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + let error = $root.google.protobuf.Struct.verify(message.structValue); + if (error) + return "structValue." + error; + } + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + let error = $root.google.protobuf.ListValue.verify(message.listValue); + if (error) + return "listValue." + error; + } + } + return null; + }; + + return Value; + })(); + + /** + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {string} + * @property {number} NULL_VALUE=0 NULL_VALUE value + */ + protobuf.NullValue = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; + })(); + + protobuf.ListValue = (function() { + + /** + * Properties of a ListValue. + * @memberof google.protobuf + * @interface IListValue + * @property {Array.|null} [values] ListValue values + */ + + /** + * Constructs a new ListValue. + * @memberof google.protobuf + * @classdesc Represents a ListValue. + * @implements IListValue + * @constructor + * @param {google.protobuf.IListValue=} [properties] Properties to set + */ + function ListValue(properties) { + this.values = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue + * @instance + */ + ListValue.prototype.values = $util.emptyArray; + + /** + * Creates a new ListValue instance using the specified properties. + * @function create + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance + */ + ListValue.create = function create(properties) { + return new ListValue(properties); + }; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (let i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListValue message. + * @function verify + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (let i = 0; i < message.values.length; ++i) { + let error = $root.google.protobuf.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + return ListValue; + })(); + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (let i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (let i = 0; i < message.file.length; ++i) { + let error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && message.hasOwnProperty("package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (let i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (let i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (let i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (let i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (let i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (let i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (let i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && message.hasOwnProperty("syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.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["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (let i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (let i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (let i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (let i = 0; i < message.messageType.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (let i = 0; i < message.enumType.length; ++i) { + let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (let i = 0; i < message.service.length; ++i) { + let error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (let i = 0; i < message.extension.length; ++i) { + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + let error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (let i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (let i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (let i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (let i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (let i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (let i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (let i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (let i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.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.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (let i = 0; i < message.field.length; ++i) { + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (let i = 0; i < message.extension.length; ++i) { + let error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (let i = 0; i < message.nestedType.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (let i = 0; i < message.enumType.length; ++i) { + let error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (let i = 0; i < message.extensionRange.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (let i = 0; i < message.oneofDecl.length; ++i) { + let error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (let i = 0; i < message.reservedRange.length; ++i) { + let error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (let i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && message.hasOwnProperty("extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && message.hasOwnProperty("label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && message.hasOwnProperty("typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + return writer; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {string} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {string} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.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.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (let i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.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.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (let i = 0; i < message.value.length; ++i) { + let error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (let i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.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.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (let i = 0; i < message.method.length; ++i) { + let error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && message.hasOwnProperty("inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && message.hasOwnProperty("outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.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.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + let error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = false; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {string} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && message.hasOwnProperty("ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && message.hasOwnProperty("packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && message.hasOwnProperty("lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && message.hasOwnProperty("jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && message.hasOwnProperty("weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {string} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {string} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + const valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (let i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (let i = 0; i < message.uninterpretedOption.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + let error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + return null; + }; + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (let i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (let i = 0; i < message.name.length; ++i) { + let error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (let i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (let i = 0; i < message.location.length; ++i) { + let error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (let i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (let i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (let i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (let i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (let i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (let i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (let i = 0; i < message.annotation.length; ++i) { + let error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (let i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && message.hasOwnProperty("begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + let end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (let i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + return protobuf; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + const api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (let i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (let i = 0; i < message.rules.length; ++i) { + let error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [body] HttpRule body + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule get. + * @member {string} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = ""; + + /** + * HttpRule put. + * @member {string} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = ""; + + /** + * HttpRule post. + * @member {string} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = ""; + + /** + * HttpRule delete. + * @member {string} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = ""; + + /** + * HttpRule patch. + * @member {string} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = ""; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && message.hasOwnProperty("selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && message.hasOwnProperty("get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && message.hasOwnProperty("put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && message.hasOwnProperty("post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && message.hasOwnProperty("delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && message.hasOwnProperty("patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (let i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 1: + message.selector = reader.string(); + break; + case 7: + message.body = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + let error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (let i = 0; i < message.additionalBindings.length; ++i) { + let error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && message.hasOwnProperty("path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + return CustomHttpPattern; + })(); + + return api; + })(); + + return google; +})(); + +export { $root as default }; diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/common.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/common.proto.rst new file mode 100644 index 0000000000..391b809669 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/common.proto.rst @@ -0,0 +1,459 @@ +.. _api_file_flyteidl/admin/common.proto: + +common.proto +=========================== + +.. _api_msg_flyteidl.admin.NamedEntityIdentifier: + +flyteidl.admin.NamedEntityIdentifier +------------------------------------ + +`[flyteidl.admin.NamedEntityIdentifier proto] `_ + +Encapsulation of fields that identifies a Flyte resource. +A resource can internally have multiple versions. + +.. code-block:: json + + { + "project": "...", + "domain": "...", + "name": "..." + } + +.. _api_field_flyteidl.admin.NamedEntityIdentifier.project: + +project + (`string `_) Name of the project the resource belongs to. + + +.. _api_field_flyteidl.admin.NamedEntityIdentifier.domain: + +domain + (`string `_) Name of the domain the resource belongs to. + A domain can be considered as a subset within a specific project. + + +.. _api_field_flyteidl.admin.NamedEntityIdentifier.name: + +name + (`string `_) User provided value for the resource. + The combination of project + domain + name uniquely identifies the resource. + +optional - in certain contexts - like 'List API', 'Launch plans' + + + + +.. _api_msg_flyteidl.admin.Sort: + +flyteidl.admin.Sort +------------------- + +`[flyteidl.admin.Sort proto] `_ + +Species sort ordering in a list request. + +.. code-block:: json + + { + "key": "...", + "direction": "..." + } + +.. _api_field_flyteidl.admin.Sort.key: + +key + (`string `_) Indicates an attribute to sort the response values. + TODO(katrogan): Add string validation here. This should never be empty. + + +.. _api_field_flyteidl.admin.Sort.direction: + +direction + (:ref:`flyteidl.admin.Sort.Direction `) Indicates the direction to apply sort key for response values. + +optional + + + +.. _api_enum_flyteidl.admin.Sort.Direction: + +Enum flyteidl.admin.Sort.Direction +---------------------------------- + +`[flyteidl.admin.Sort.Direction proto] `_ + + +.. _api_enum_value_flyteidl.admin.Sort.Direction.DESCENDING: + +DESCENDING + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.admin.Sort.Direction.ASCENDING: + +ASCENDING + ⁣ + + +.. _api_msg_flyteidl.admin.NamedEntityIdentifierListRequest: + +flyteidl.admin.NamedEntityIdentifierListRequest +----------------------------------------------- + +`[flyteidl.admin.NamedEntityIdentifierListRequest proto] `_ + +Represents a request structure to list identifiers. + +.. code-block:: json + + { + "project": "...", + "domain": "...", + "limit": "...", + "token": "...", + "sort_by": "{...}" + } + +.. _api_field_flyteidl.admin.NamedEntityIdentifierListRequest.project: + +project + (`string `_) Name of the project that contains the identifiers. + + +.. _api_field_flyteidl.admin.NamedEntityIdentifierListRequest.domain: + +domain + (`string `_) Name of the domain the identifiers belongs to within the project. + + +.. _api_field_flyteidl.admin.NamedEntityIdentifierListRequest.limit: + +limit + (`uint32 `_) Indicates the number of resources to be returned. + + +.. _api_field_flyteidl.admin.NamedEntityIdentifierListRequest.token: + +token + (`string `_) In the case of multiple pages of results, the server-provided token can be used to fetch the next page + in a query. + +optional + + +.. _api_field_flyteidl.admin.NamedEntityIdentifierListRequest.sort_by: + +sort_by + (:ref:`flyteidl.admin.Sort `) Sort ordering. + +optional + + + + +.. _api_msg_flyteidl.admin.NamedEntityIdentifierList: + +flyteidl.admin.NamedEntityIdentifierList +---------------------------------------- + +`[flyteidl.admin.NamedEntityIdentifierList proto] `_ + +Represents a list of Identifiers. + +.. code-block:: json + + { + "entities": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.NamedEntityIdentifierList.entities: + +entities + (:ref:`flyteidl.admin.NamedEntityIdentifier `) A list of identifiers. + + +.. _api_field_flyteidl.admin.NamedEntityIdentifierList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.ObjectGetRequest: + +flyteidl.admin.ObjectGetRequest +------------------------------- + +`[flyteidl.admin.ObjectGetRequest proto] `_ + +Represents a structure to fetch a single resource. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.ObjectGetRequest.id: + +id + (:ref:`flyteidl.core.Identifier `) Indicates a unique version of resource. + + + + +.. _api_msg_flyteidl.admin.ResourceListRequest: + +flyteidl.admin.ResourceListRequest +---------------------------------- + +`[flyteidl.admin.ResourceListRequest proto] `_ + +Represents a request structure to retrieve a list of resources. +Resources include: Task, Workflow, LaunchPlan + +.. code-block:: json + + { + "id": "{...}", + "limit": "...", + "token": "...", + "filters": "...", + "sort_by": "{...}" + } + +.. _api_field_flyteidl.admin.ResourceListRequest.id: + +id + (:ref:`flyteidl.admin.NamedEntityIdentifier `) id represents the unique identifier of the resource. + + +.. _api_field_flyteidl.admin.ResourceListRequest.limit: + +limit + (`uint32 `_) Indicates the number of resources to be returned. + + +.. _api_field_flyteidl.admin.ResourceListRequest.token: + +token + (`string `_) In the case of multiple pages of results, this server-provided token can be used to fetch the next page + in a query. + +optional + + +.. _api_field_flyteidl.admin.ResourceListRequest.filters: + +filters + (`string `_) Indicates a list of filters passed as string. + More info on constructing filters : + +optional + + +.. _api_field_flyteidl.admin.ResourceListRequest.sort_by: + +sort_by + (:ref:`flyteidl.admin.Sort `) Sort ordering. + +optional + + + + +.. _api_msg_flyteidl.admin.EmailNotification: + +flyteidl.admin.EmailNotification +-------------------------------- + +`[flyteidl.admin.EmailNotification proto] `_ + + +.. code-block:: json + + { + "recipients_email": [] + } + +.. _api_field_flyteidl.admin.EmailNotification.recipients_email: + +recipients_email + (`string `_) The list of email addresses recipients for this notification. + + + + +.. _api_msg_flyteidl.admin.PagerDutyNotification: + +flyteidl.admin.PagerDutyNotification +------------------------------------ + +`[flyteidl.admin.PagerDutyNotification proto] `_ + + +.. code-block:: json + + { + "recipients_email": [] + } + +.. _api_field_flyteidl.admin.PagerDutyNotification.recipients_email: + +recipients_email + (`string `_) Currently, PagerDuty notifications leverage email to trigger a notification. + + + + +.. _api_msg_flyteidl.admin.SlackNotification: + +flyteidl.admin.SlackNotification +-------------------------------- + +`[flyteidl.admin.SlackNotification proto] `_ + + +.. code-block:: json + + { + "recipients_email": [] + } + +.. _api_field_flyteidl.admin.SlackNotification.recipients_email: + +recipients_email + (`string `_) Currently, Slack notifications leverage email to trigger a notification. + + + + +.. _api_msg_flyteidl.admin.Notification: + +flyteidl.admin.Notification +--------------------------- + +`[flyteidl.admin.Notification proto] `_ + +Represents a structure for notifications based on execution status. +The Notification content is configured within Admin. Future iterations could +expose configuring notifications with custom content. + +.. code-block:: json + + { + "phases": [], + "email": "{...}", + "pager_duty": "{...}", + "slack": "{...}" + } + +.. _api_field_flyteidl.admin.Notification.phases: + +phases + (:ref:`flyteidl.core.WorkflowExecution.Phase `) A list of phases to which users can associate the notifications to. + + +.. _api_field_flyteidl.admin.Notification.email: + +email + (:ref:`flyteidl.admin.EmailNotification `) option (validate.required) = true; + + + + Only one of :ref:`email `, :ref:`pager_duty `, :ref:`slack ` may be set. + +.. _api_field_flyteidl.admin.Notification.pager_duty: + +pager_duty + (:ref:`flyteidl.admin.PagerDutyNotification `) + + + Only one of :ref:`email `, :ref:`pager_duty `, :ref:`slack ` may be set. + +.. _api_field_flyteidl.admin.Notification.slack: + +slack + (:ref:`flyteidl.admin.SlackNotification `) + + + Only one of :ref:`email `, :ref:`pager_duty `, :ref:`slack ` may be set. + + + +.. _api_msg_flyteidl.admin.UrlBlob: + +flyteidl.admin.UrlBlob +---------------------- + +`[flyteidl.admin.UrlBlob proto] `_ + +Represents a string url and associated metadata used throughout the platform. + +.. code-block:: json + + { + "url": "...", + "bytes": "..." + } + +.. _api_field_flyteidl.admin.UrlBlob.url: + +url + (`string `_) Actual url value. + + +.. _api_field_flyteidl.admin.UrlBlob.bytes: + +bytes + (`int64 `_) Represents the size of the file accessible at the above url. + + + + +.. _api_msg_flyteidl.admin.Labels: + +flyteidl.admin.Labels +--------------------- + +`[flyteidl.admin.Labels proto] `_ + +Label values to be applied to an execution resource. +In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +to specify how to merge labels defined at registration and execution time. + +.. code-block:: json + + { + "values": "{...}" + } + +.. _api_field_flyteidl.admin.Labels.values: + +values + (map<`string `_, `string `_>) Map of custom labels to be applied to the execution resource. + + + + +.. _api_msg_flyteidl.admin.Annotations: + +flyteidl.admin.Annotations +-------------------------- + +`[flyteidl.admin.Annotations proto] `_ + +Annotation values to be applied to an execution resource. +In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +to specify how to merge annotations defined at registration and execution time. + +.. code-block:: json + + { + "values": "{...}" + } + +.. _api_field_flyteidl.admin.Annotations.values: + +values + (map<`string `_, `string `_>) Map of custom annotations to be applied to the execution resource. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/event.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/event.proto.rst new file mode 100644 index 0000000000..ab2b2125f3 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/event.proto.rst @@ -0,0 +1,182 @@ +.. _api_file_flyteidl/admin/event.proto: + +event.proto +========================== + +.. _api_msg_flyteidl.admin.EventErrorAlreadyInTerminalState: + +flyteidl.admin.EventErrorAlreadyInTerminalState +----------------------------------------------- + +`[flyteidl.admin.EventErrorAlreadyInTerminalState proto] `_ + + +.. code-block:: json + + { + "current_phase": "..." + } + +.. _api_field_flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase: + +current_phase + (`string `_) + + + +.. _api_msg_flyteidl.admin.EventFailureReason: + +flyteidl.admin.EventFailureReason +--------------------------------- + +`[flyteidl.admin.EventFailureReason proto] `_ + + +.. code-block:: json + + { + "already_in_terminal_state": "{...}" + } + +.. _api_field_flyteidl.admin.EventFailureReason.already_in_terminal_state: + +already_in_terminal_state + (:ref:`flyteidl.admin.EventErrorAlreadyInTerminalState `) + + + + +.. _api_msg_flyteidl.admin.WorkflowExecutionEventRequest: + +flyteidl.admin.WorkflowExecutionEventRequest +-------------------------------------------- + +`[flyteidl.admin.WorkflowExecutionEventRequest proto] `_ + +Request to send a notification that a workflow execution event has occurred. + +.. code-block:: json + + { + "request_id": "...", + "event": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowExecutionEventRequest.request_id: + +request_id + (`string `_) Unique ID for this request that can be traced between services + + +.. _api_field_flyteidl.admin.WorkflowExecutionEventRequest.event: + +event + (:ref:`flyteidl.event.WorkflowExecutionEvent `) Details about the event that occurred. + + + + +.. _api_msg_flyteidl.admin.WorkflowExecutionEventResponse: + +flyteidl.admin.WorkflowExecutionEventResponse +--------------------------------------------- + +`[flyteidl.admin.WorkflowExecutionEventResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.NodeExecutionEventRequest: + +flyteidl.admin.NodeExecutionEventRequest +---------------------------------------- + +`[flyteidl.admin.NodeExecutionEventRequest proto] `_ + +Request to send a notification that a node execution event has occurred. + +.. code-block:: json + + { + "request_id": "...", + "event": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionEventRequest.request_id: + +request_id + (`string `_) Unique ID for this request that can be traced between services + + +.. _api_field_flyteidl.admin.NodeExecutionEventRequest.event: + +event + (:ref:`flyteidl.event.NodeExecutionEvent `) Details about the event that occurred. + + + + +.. _api_msg_flyteidl.admin.NodeExecutionEventResponse: + +flyteidl.admin.NodeExecutionEventResponse +----------------------------------------- + +`[flyteidl.admin.NodeExecutionEventResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.TaskExecutionEventRequest: + +flyteidl.admin.TaskExecutionEventRequest +---------------------------------------- + +`[flyteidl.admin.TaskExecutionEventRequest proto] `_ + +Request to send a notification that a task execution event has occurred. + +.. code-block:: json + + { + "request_id": "...", + "event": "{...}" + } + +.. _api_field_flyteidl.admin.TaskExecutionEventRequest.request_id: + +request_id + (`string `_) Unique ID for this request that can be traced between services + + +.. _api_field_flyteidl.admin.TaskExecutionEventRequest.event: + +event + (:ref:`flyteidl.event.TaskExecutionEvent `) Details about the event that occurred. + + + + +.. _api_msg_flyteidl.admin.TaskExecutionEventResponse: + +flyteidl.admin.TaskExecutionEventResponse +----------------------------------------- + +`[flyteidl.admin.TaskExecutionEventResponse proto] `_ + + +.. code-block:: json + + {} + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/execution.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/execution.proto.rst new file mode 100644 index 0000000000..eae841b595 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/execution.proto.rst @@ -0,0 +1,637 @@ +.. _api_file_flyteidl/admin/execution.proto: + +execution.proto +============================== + +.. _api_msg_flyteidl.admin.ExecutionCreateRequest: + +flyteidl.admin.ExecutionCreateRequest +------------------------------------- + +`[flyteidl.admin.ExecutionCreateRequest proto] `_ + +Request to launch an execution with the given project, domain and optionally name. + +.. code-block:: json + + { + "project": "...", + "domain": "...", + "name": "...", + "spec": "{...}" + } + +.. _api_field_flyteidl.admin.ExecutionCreateRequest.project: + +project + (`string `_) Name of the project the execution belongs to. + + +.. _api_field_flyteidl.admin.ExecutionCreateRequest.domain: + +domain + (`string `_) Name of the domain the execution belongs to. + A domain can be considered as a subset within a specific project. + + +.. _api_field_flyteidl.admin.ExecutionCreateRequest.name: + +name + (`string `_) User provided value for the resource. + If none is provided the system will generate a unique string. + +optional + + +.. _api_field_flyteidl.admin.ExecutionCreateRequest.spec: + +spec + (:ref:`flyteidl.admin.ExecutionSpec `) Additional fields necessary to launch the execution. + + + + +.. _api_msg_flyteidl.admin.ExecutionRelaunchRequest: + +flyteidl.admin.ExecutionRelaunchRequest +--------------------------------------- + +`[flyteidl.admin.ExecutionRelaunchRequest proto] `_ + +Request to relaunch the referenced execution. + +.. code-block:: json + + { + "id": "{...}", + "name": "..." + } + +.. _api_field_flyteidl.admin.ExecutionRelaunchRequest.id: + +id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Identifier of the workflow execution to relaunch. + + +.. _api_field_flyteidl.admin.ExecutionRelaunchRequest.name: + +name + (`string `_) User provided value for the relaunched execution. + If none is provided the system will generate a unique string. + +optional + + + + +.. _api_msg_flyteidl.admin.ExecutionCreateResponse: + +flyteidl.admin.ExecutionCreateResponse +-------------------------------------- + +`[flyteidl.admin.ExecutionCreateResponse proto] `_ + +The unique identifier for a successfully created execution. +If the name was *not* specified in the create request, this identifier will include a generated name. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.ExecutionCreateResponse.id: + +id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) + + + +.. _api_msg_flyteidl.admin.WorkflowExecutionGetRequest: + +flyteidl.admin.WorkflowExecutionGetRequest +------------------------------------------ + +`[flyteidl.admin.WorkflowExecutionGetRequest proto] `_ + +A message used to fetch a single workflow execution entity. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowExecutionGetRequest.id: + +id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Uniquely identifies an individual workflow execution. + + + + +.. _api_msg_flyteidl.admin.Execution: + +flyteidl.admin.Execution +------------------------ + +`[flyteidl.admin.Execution proto] `_ + +A workflow execution represents an instantiated workflow, including all inputs and additional +metadata as well as computed results included state, outputs, and duration-based attributes. +Used as a response object used in Get and List execution requests. + +.. code-block:: json + + { + "id": "{...}", + "spec": "{...}", + "closure": "{...}" + } + +.. _api_field_flyteidl.admin.Execution.id: + +id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Unique identifier of the workflow execution. + + +.. _api_field_flyteidl.admin.Execution.spec: + +spec + (:ref:`flyteidl.admin.ExecutionSpec `) User-provided configuration and inputs for launching the execution. + + +.. _api_field_flyteidl.admin.Execution.closure: + +closure + (:ref:`flyteidl.admin.ExecutionClosure `) Execution results. + + + + +.. _api_msg_flyteidl.admin.ExecutionList: + +flyteidl.admin.ExecutionList +---------------------------- + +`[flyteidl.admin.ExecutionList proto] `_ + +Used as a response for request to list executions. + +.. code-block:: json + + { + "executions": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.ExecutionList.executions: + +executions + (:ref:`flyteidl.admin.Execution `) + +.. _api_field_flyteidl.admin.ExecutionList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.LiteralMapBlob: + +flyteidl.admin.LiteralMapBlob +----------------------------- + +`[flyteidl.admin.LiteralMapBlob proto] `_ + +Input/output data can represented by actual values or a link to where values are stored + +.. code-block:: json + + { + "values": "{...}", + "uri": "..." + } + +.. _api_field_flyteidl.admin.LiteralMapBlob.values: + +values + (:ref:`flyteidl.core.LiteralMap `) Data in LiteralMap format + + + + Only one of :ref:`values `, :ref:`uri ` may be set. + +.. _api_field_flyteidl.admin.LiteralMapBlob.uri: + +uri + (`string `_) In the event that the map is too large, we return a uri to the data + + + + Only one of :ref:`values `, :ref:`uri ` may be set. + + + +.. _api_msg_flyteidl.admin.ExecutionClosure: + +flyteidl.admin.ExecutionClosure +------------------------------- + +`[flyteidl.admin.ExecutionClosure proto] `_ + +Encapsulates the results of the Execution + +.. code-block:: json + + { + "outputs": "{...}", + "error": "{...}", + "abort_cause": "...", + "computed_inputs": "{...}", + "phase": "...", + "started_at": "{...}", + "duration": "{...}", + "created_at": "{...}", + "updated_at": "{...}", + "notifications": [], + "workflow_id": "{...}" + } + +.. _api_field_flyteidl.admin.ExecutionClosure.outputs: + +outputs + (:ref:`flyteidl.admin.LiteralMapBlob `) A map of outputs in the case of a successful execution. + + A result produced by a terminated execution. + A pending (non-terminal) execution will not have any output result. + + + Only one of :ref:`outputs `, :ref:`error `, :ref:`abort_cause ` may be set. + +.. _api_field_flyteidl.admin.ExecutionClosure.error: + +error + (:ref:`flyteidl.core.ExecutionError `) Error information in the case of a failed execution. + + A result produced by a terminated execution. + A pending (non-terminal) execution will not have any output result. + + + Only one of :ref:`outputs `, :ref:`error `, :ref:`abort_cause ` may be set. + +.. _api_field_flyteidl.admin.ExecutionClosure.abort_cause: + +abort_cause + (`string `_) In the case of a user-specified abort, this will pass along the user-supplied cause. + + A result produced by a terminated execution. + A pending (non-terminal) execution will not have any output result. + + + Only one of :ref:`outputs `, :ref:`error `, :ref:`abort_cause ` may be set. + +.. _api_field_flyteidl.admin.ExecutionClosure.computed_inputs: + +computed_inputs + (:ref:`flyteidl.core.LiteralMap `) Inputs computed and passed for execution. + computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + + +.. _api_field_flyteidl.admin.ExecutionClosure.phase: + +phase + (:ref:`flyteidl.core.WorkflowExecution.Phase `) Most recent recorded phase for the execution. + + +.. _api_field_flyteidl.admin.ExecutionClosure.started_at: + +started_at + (:ref:`google.protobuf.Timestamp `) Reported ime at which the execution began running. + + +.. _api_field_flyteidl.admin.ExecutionClosure.duration: + +duration + (:ref:`google.protobuf.Duration `) The amount of time the execution spent running. + + +.. _api_field_flyteidl.admin.ExecutionClosure.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) Reported time at which the execution was created. + + +.. _api_field_flyteidl.admin.ExecutionClosure.updated_at: + +updated_at + (:ref:`google.protobuf.Timestamp `) Reported time at which the execution was last updated. + + +.. _api_field_flyteidl.admin.ExecutionClosure.notifications: + +notifications + (:ref:`flyteidl.admin.Notification `) The notification settings to use after merging the CreateExecutionRequest and the launch plan + notification settings. An execution launched with notifications will always prefer that definition + to notifications defined statically in a launch plan. + + +.. _api_field_flyteidl.admin.ExecutionClosure.workflow_id: + +workflow_id + (:ref:`flyteidl.core.Identifier `) Identifies the workflow definition for this execution. + + + + +.. _api_msg_flyteidl.admin.ExecutionMetadata: + +flyteidl.admin.ExecutionMetadata +-------------------------------- + +`[flyteidl.admin.ExecutionMetadata proto] `_ + +Represents attributes about an execution which are not required to launch the execution but are useful to record. +These attributes are assigned at launch time and do not change. + +.. code-block:: json + + { + "mode": "...", + "principal": "...", + "nesting": "...", + "scheduled_at": "{...}", + "parent_node_execution": "{...}", + "reference_execution": "{...}" + } + +.. _api_field_flyteidl.admin.ExecutionMetadata.mode: + +mode + (:ref:`flyteidl.admin.ExecutionMetadata.ExecutionMode `) + +.. _api_field_flyteidl.admin.ExecutionMetadata.principal: + +principal + (`string `_) Identifier of the entity that triggered this execution. + + +.. _api_field_flyteidl.admin.ExecutionMetadata.nesting: + +nesting + (`uint32 `_) Indicates the "nestedness" of this execution. + If a user launches a workflow execution, the default nesting is 0. + If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + Generally, if workflow at nesting level k launches a workflow then the child workflow will have + nesting = k + 1. + + +.. _api_field_flyteidl.admin.ExecutionMetadata.scheduled_at: + +scheduled_at + (:ref:`google.protobuf.Timestamp `) For scheduled executions, the requested time for execution for this specific schedule invocation. + + +.. _api_field_flyteidl.admin.ExecutionMetadata.parent_node_execution: + +parent_node_execution + (:ref:`flyteidl.core.NodeExecutionIdentifier `) Which subworkflow node launched this execution + + +.. _api_field_flyteidl.admin.ExecutionMetadata.reference_execution: + +reference_execution + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Optional, a reference workflow execution related to this execution. + In the case of a relaunch, this references the original workflow execution. + + + +.. _api_enum_flyteidl.admin.ExecutionMetadata.ExecutionMode: + +Enum flyteidl.admin.ExecutionMetadata.ExecutionMode +--------------------------------------------------- + +`[flyteidl.admin.ExecutionMetadata.ExecutionMode proto] `_ + +The method by which this execution was launched. + +.. _api_enum_value_flyteidl.admin.ExecutionMetadata.ExecutionMode.MANUAL: + +MANUAL + *(DEFAULT)* ⁣The default execution mode, MANUAL implies that an execution was launched by an individual. + + +.. _api_enum_value_flyteidl.admin.ExecutionMetadata.ExecutionMode.SCHEDULED: + +SCHEDULED + ⁣A schedule triggered this execution launch. + + +.. _api_enum_value_flyteidl.admin.ExecutionMetadata.ExecutionMode.SYSTEM: + +SYSTEM + ⁣A system process was responsible for launching this execution rather an individual. + + +.. _api_enum_value_flyteidl.admin.ExecutionMetadata.ExecutionMode.RELAUNCH: + +RELAUNCH + ⁣This execution was launched with identical inputs as a previous execution. + + +.. _api_enum_value_flyteidl.admin.ExecutionMetadata.ExecutionMode.CHILD_WORKFLOW: + +CHILD_WORKFLOW + ⁣This execution was triggered by another execution. + + + +.. _api_msg_flyteidl.admin.NotificationList: + +flyteidl.admin.NotificationList +------------------------------- + +`[flyteidl.admin.NotificationList proto] `_ + + +.. code-block:: json + + { + "notifications": [] + } + +.. _api_field_flyteidl.admin.NotificationList.notifications: + +notifications + (:ref:`flyteidl.admin.Notification `) + + + +.. _api_msg_flyteidl.admin.ExecutionSpec: + +flyteidl.admin.ExecutionSpec +---------------------------- + +`[flyteidl.admin.ExecutionSpec proto] `_ + +An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +of an execution as it progresses across phase changes.. + +.. code-block:: json + + { + "launch_plan": "{...}", + "inputs": "{...}", + "metadata": "{...}", + "notifications": "{...}", + "disable_all": "...", + "labels": "{...}", + "annotations": "{...}" + } + +.. _api_field_flyteidl.admin.ExecutionSpec.launch_plan: + +launch_plan + (:ref:`flyteidl.core.Identifier `) Launch plan to be executed + + +.. _api_field_flyteidl.admin.ExecutionSpec.inputs: + +inputs + (:ref:`flyteidl.core.LiteralMap `) Input values to be passed for the execution + + +.. _api_field_flyteidl.admin.ExecutionSpec.metadata: + +metadata + (:ref:`flyteidl.admin.ExecutionMetadata `) Metadata for the execution + + +.. _api_field_flyteidl.admin.ExecutionSpec.notifications: + +notifications + (:ref:`flyteidl.admin.NotificationList `) List of notifications based on Execution status transitions + When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + When this list is empty, the notifications defined for the launch plan will be applied. + + + + Only one of :ref:`notifications `, :ref:`disable_all ` may be set. + +.. _api_field_flyteidl.admin.ExecutionSpec.disable_all: + +disable_all + (`bool `_) This should be set to true if all notifications are intended to be disabled for this execution. + + + + Only one of :ref:`notifications `, :ref:`disable_all ` may be set. + +.. _api_field_flyteidl.admin.ExecutionSpec.labels: + +labels + (:ref:`flyteidl.admin.Labels `) Labels to apply to the execution resource. + + +.. _api_field_flyteidl.admin.ExecutionSpec.annotations: + +annotations + (:ref:`flyteidl.admin.Annotations `) Annotations to apply to the execution resource. + + + + +.. _api_msg_flyteidl.admin.ExecutionTerminateRequest: + +flyteidl.admin.ExecutionTerminateRequest +---------------------------------------- + +`[flyteidl.admin.ExecutionTerminateRequest proto] `_ + +Request to terminate an in-progress execution. This action is irreversible. +If an execution is already terminated, this request will simply be a no-op. +This request will fail if it references a non-existent execution. +If the request succeeds the phase "ABORTED" will be recorded for the termination +with the optional cause added to the output_result. + +.. code-block:: json + + { + "id": "{...}", + "cause": "..." + } + +.. _api_field_flyteidl.admin.ExecutionTerminateRequest.id: + +id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Uniquely identifies the individual workflow execution to be terminated. + + +.. _api_field_flyteidl.admin.ExecutionTerminateRequest.cause: + +cause + (`string `_) Optional reason for aborting. + + + + +.. _api_msg_flyteidl.admin.ExecutionTerminateResponse: + +flyteidl.admin.ExecutionTerminateResponse +----------------------------------------- + +`[flyteidl.admin.ExecutionTerminateResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.WorkflowExecutionGetDataRequest: + +flyteidl.admin.WorkflowExecutionGetDataRequest +---------------------------------------------- + +`[flyteidl.admin.WorkflowExecutionGetDataRequest proto] `_ + +Request structure to fetch inputs and output urls for an execution. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowExecutionGetDataRequest.id: + +id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) The identifier of the execution for which to fetch inputs and outputs. + + + + +.. _api_msg_flyteidl.admin.WorkflowExecutionGetDataResponse: + +flyteidl.admin.WorkflowExecutionGetDataResponse +----------------------------------------------- + +`[flyteidl.admin.WorkflowExecutionGetDataResponse proto] `_ + +Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. + +.. code-block:: json + + { + "outputs": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowExecutionGetDataResponse.outputs: + +outputs + (:ref:`flyteidl.admin.UrlBlob `) Signed url to fetch a core.LiteralMap of execution outputs. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/index.rst new file mode 100644 index 0000000000..8360fac627 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/index.rst @@ -0,0 +1,24 @@ +Flyte Admin Service entities +============================ + +These are the control plane entities that can be used to communication with the +Flyte Admin service over gRPC or REST. The endpoint specification is provided +.. TODO Add reference here.. + + +.. toctree:: + :maxdepth: 1 + :caption: admin + :name: admintoc + + common.proto + event.proto + execution.proto + launch_plan.proto + node_execution.proto + notification.proto + project.proto + schedule.proto + task.proto + task_execution.proto + workflow.proto diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/launch_plan.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/launch_plan.proto.rst new file mode 100644 index 0000000000..752d02efc6 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/launch_plan.proto.rst @@ -0,0 +1,377 @@ +.. _api_file_flyteidl/admin/launch_plan.proto: + +launch_plan.proto +================================ + +.. _api_msg_flyteidl.admin.LaunchPlanCreateRequest: + +flyteidl.admin.LaunchPlanCreateRequest +-------------------------------------- + +`[flyteidl.admin.LaunchPlanCreateRequest proto] `_ + +Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required +to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan. + +.. code-block:: json + + { + "id": "{...}", + "spec": "{...}" + } + +.. _api_field_flyteidl.admin.LaunchPlanCreateRequest.id: + +id + (:ref:`flyteidl.core.Identifier `) Uniquely identifies a launch plan entity. + + +.. _api_field_flyteidl.admin.LaunchPlanCreateRequest.spec: + +spec + (:ref:`flyteidl.admin.LaunchPlanSpec `) User-provided launch plan details, including reference workflow, inputs and other metadata. + + + + +.. _api_msg_flyteidl.admin.LaunchPlanCreateResponse: + +flyteidl.admin.LaunchPlanCreateResponse +--------------------------------------- + +`[flyteidl.admin.LaunchPlanCreateResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.LaunchPlan: + +flyteidl.admin.LaunchPlan +------------------------- + +`[flyteidl.admin.LaunchPlan proto] `_ + +A LaunchPlan provides the capability to templatize workflow executions. +Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +definition doesn't necessarily have a default value for said input. + +.. code-block:: json + + { + "id": "{...}", + "spec": "{...}", + "closure": "{...}" + } + +.. _api_field_flyteidl.admin.LaunchPlan.id: + +id + (:ref:`flyteidl.core.Identifier `) + +.. _api_field_flyteidl.admin.LaunchPlan.spec: + +spec + (:ref:`flyteidl.admin.LaunchPlanSpec `) + +.. _api_field_flyteidl.admin.LaunchPlan.closure: + +closure + (:ref:`flyteidl.admin.LaunchPlanClosure `) + + + +.. _api_msg_flyteidl.admin.LaunchPlanList: + +flyteidl.admin.LaunchPlanList +----------------------------- + +`[flyteidl.admin.LaunchPlanList proto] `_ + +Response object for list launch plan requests. + +.. code-block:: json + + { + "launch_plans": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.LaunchPlanList.launch_plans: + +launch_plans + (:ref:`flyteidl.admin.LaunchPlan `) + +.. _api_field_flyteidl.admin.LaunchPlanList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.Auth: + +flyteidl.admin.Auth +------------------- + +`[flyteidl.admin.Auth proto] `_ + +Defines permissions associated with executions created by this launch plan spec. + +.. code-block:: json + + { + "assumable_iam_role": "...", + "kubernetes_service_account": "..." + } + +.. _api_field_flyteidl.admin.Auth.assumable_iam_role: + +assumable_iam_role + (`string `_) + + + Only one of :ref:`assumable_iam_role `, :ref:`kubernetes_service_account ` may be set. + +.. _api_field_flyteidl.admin.Auth.kubernetes_service_account: + +kubernetes_service_account + (`string `_) + + + Only one of :ref:`assumable_iam_role `, :ref:`kubernetes_service_account ` may be set. + + + +.. _api_msg_flyteidl.admin.LaunchPlanSpec: + +flyteidl.admin.LaunchPlanSpec +----------------------------- + +`[flyteidl.admin.LaunchPlanSpec proto] `_ + +User-provided launch plan definition and configuration values. + +.. code-block:: json + + { + "workflow_id": "{...}", + "entity_metadata": "{...}", + "default_inputs": "{...}", + "fixed_inputs": "{...}", + "role": "...", + "labels": "{...}", + "annotations": "{...}", + "auth": "{...}" + } + +.. _api_field_flyteidl.admin.LaunchPlanSpec.workflow_id: + +workflow_id + (:ref:`flyteidl.core.Identifier `) Reference to the Workflow template that the launch plan references + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.entity_metadata: + +entity_metadata + (:ref:`flyteidl.admin.LaunchPlanMetadata `) Metadata for the Launch Plan + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.default_inputs: + +default_inputs + (:ref:`flyteidl.core.ParameterMap `) Input values to be passed for the execution + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.fixed_inputs: + +fixed_inputs + (:ref:`flyteidl.core.LiteralMap `) Fixed, non-overridable inputs for the Launch Plan + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.role: + +role + (`string `_) String to indicate the role to use to execute the workflow underneath + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.labels: + +labels + (:ref:`flyteidl.admin.Labels `) Custom labels to be applied to the execution resource. + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.annotations: + +annotations + (:ref:`flyteidl.admin.Annotations `) Custom annotations to be applied to the execution resource. + + +.. _api_field_flyteidl.admin.LaunchPlanSpec.auth: + +auth + (:ref:`flyteidl.admin.Auth `) Indicates the permission associated with workflow executions triggered with this launch plan. + + + + +.. _api_msg_flyteidl.admin.LaunchPlanClosure: + +flyteidl.admin.LaunchPlanClosure +-------------------------------- + +`[flyteidl.admin.LaunchPlanClosure proto] `_ + +Values computed by the flyte platform after launch plan registration. +These include expected_inputs required to be present in a CreateExecutionRequest +to launch the reference workflow as well timestamp values associated with the launch plan. + +.. code-block:: json + + { + "state": "...", + "expected_inputs": "{...}", + "expected_outputs": "{...}", + "created_at": "{...}", + "updated_at": "{...}" + } + +.. _api_field_flyteidl.admin.LaunchPlanClosure.state: + +state + (:ref:`flyteidl.admin.LaunchPlanState `) Indicate the Launch plan phase + + +.. _api_field_flyteidl.admin.LaunchPlanClosure.expected_inputs: + +expected_inputs + (:ref:`flyteidl.core.ParameterMap `) Indicates the set of inputs to execute the Launch plan + + +.. _api_field_flyteidl.admin.LaunchPlanClosure.expected_outputs: + +expected_outputs + (:ref:`flyteidl.core.VariableMap `) Indicates the set of outputs from the Launch plan + + +.. _api_field_flyteidl.admin.LaunchPlanClosure.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) Time at which the launch plan was created. + + +.. _api_field_flyteidl.admin.LaunchPlanClosure.updated_at: + +updated_at + (:ref:`google.protobuf.Timestamp `) Time at which the launch plan was last updated. + + + + +.. _api_msg_flyteidl.admin.LaunchPlanMetadata: + +flyteidl.admin.LaunchPlanMetadata +--------------------------------- + +`[flyteidl.admin.LaunchPlanMetadata proto] `_ + +Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +the reference workflow. + +.. code-block:: json + + { + "schedule": "{...}", + "notifications": [] + } + +.. _api_field_flyteidl.admin.LaunchPlanMetadata.schedule: + +schedule + (:ref:`flyteidl.admin.Schedule `) Schedule to execute the Launch Plan + + +.. _api_field_flyteidl.admin.LaunchPlanMetadata.notifications: + +notifications + (:ref:`flyteidl.admin.Notification `) List of notifications based on Execution status transitions + + + + +.. _api_msg_flyteidl.admin.LaunchPlanUpdateRequest: + +flyteidl.admin.LaunchPlanUpdateRequest +-------------------------------------- + +`[flyteidl.admin.LaunchPlanUpdateRequest proto] `_ + +Request to set the referenced launch plan state to the configured value. + +.. code-block:: json + + { + "id": "{...}", + "state": "..." + } + +.. _api_field_flyteidl.admin.LaunchPlanUpdateRequest.id: + +id + (:ref:`flyteidl.core.Identifier `) Identifier of launch plan for which to change state. + + +.. _api_field_flyteidl.admin.LaunchPlanUpdateRequest.state: + +state + (:ref:`flyteidl.admin.LaunchPlanState `) Desired state to apply to the launch plan. + + + + +.. _api_msg_flyteidl.admin.LaunchPlanUpdateResponse: + +flyteidl.admin.LaunchPlanUpdateResponse +--------------------------------------- + +`[flyteidl.admin.LaunchPlanUpdateResponse proto] `_ + +Purposefully empty, may be populated in the future. + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.admin.LaunchPlanState: + +Enum flyteidl.admin.LaunchPlanState +----------------------------------- + +`[flyteidl.admin.LaunchPlanState proto] `_ + +By default any launch plan regardless of state can be used to launch a workflow execution. +However, at most one version of a launch plan +(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +group will be observed and trigger executions at a defined cadence. + +.. _api_enum_value_flyteidl.admin.LaunchPlanState.INACTIVE: + +INACTIVE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.admin.LaunchPlanState.ACTIVE: + +ACTIVE + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/node_execution.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/node_execution.proto.rst new file mode 100644 index 0000000000..4c24584401 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/node_execution.proto.rst @@ -0,0 +1,365 @@ +.. _api_file_flyteidl/admin/node_execution.proto: + +node_execution.proto +=================================== + +.. _api_msg_flyteidl.admin.NodeExecutionGetRequest: + +flyteidl.admin.NodeExecutionGetRequest +-------------------------------------- + +`[flyteidl.admin.NodeExecutionGetRequest proto] `_ + +A message used to fetch a single node execution entity. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionGetRequest.id: + +id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) Uniquely identifies an individual node execution. + + + + +.. _api_msg_flyteidl.admin.NodeExecutionListRequest: + +flyteidl.admin.NodeExecutionListRequest +--------------------------------------- + +`[flyteidl.admin.NodeExecutionListRequest proto] `_ + +Represents a request structure to retrieve a list of node execution entities. + +.. code-block:: json + + { + "workflow_execution_id": "{...}", + "limit": "...", + "token": "...", + "filters": "...", + "sort_by": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionListRequest.workflow_execution_id: + +workflow_execution_id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Indicates the workflow execution to filter by. + + +.. _api_field_flyteidl.admin.NodeExecutionListRequest.limit: + +limit + (`uint32 `_) Indicates the number of resources to be returned. + + +.. _api_field_flyteidl.admin.NodeExecutionListRequest.token: + +token + (`string `_) In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + in a query. + +optional + + +.. _api_field_flyteidl.admin.NodeExecutionListRequest.filters: + +filters + (`string `_) Indicates a list of filters passed as string. + More info on constructing filters : + +optional + + +.. _api_field_flyteidl.admin.NodeExecutionListRequest.sort_by: + +sort_by + (:ref:`flyteidl.admin.Sort `) Sort ordering. + +optional + + + + +.. _api_msg_flyteidl.admin.NodeExecutionForTaskListRequest: + +flyteidl.admin.NodeExecutionForTaskListRequest +---------------------------------------------- + +`[flyteidl.admin.NodeExecutionForTaskListRequest proto] `_ + +Represents a request structure to retrieve a list of node execution entities launched by a specific task. + +.. code-block:: json + + { + "task_execution_id": "{...}", + "limit": "...", + "token": "...", + "filters": "...", + "sort_by": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id: + +task_execution_id + (:ref:`flyteidl.core.TaskExecutionIdentifier `) Indicates the node execution to filter by. + + +.. _api_field_flyteidl.admin.NodeExecutionForTaskListRequest.limit: + +limit + (`uint32 `_) Indicates the number of resources to be returned. + + +.. _api_field_flyteidl.admin.NodeExecutionForTaskListRequest.token: + +token + (`string `_) In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + in a query. + +optional + + +.. _api_field_flyteidl.admin.NodeExecutionForTaskListRequest.filters: + +filters + (`string `_) Indicates a list of filters passed as string. + More info on constructing filters : + +optional + + +.. _api_field_flyteidl.admin.NodeExecutionForTaskListRequest.sort_by: + +sort_by + (:ref:`flyteidl.admin.Sort `) Sort ordering. + +optional + + + + +.. _api_msg_flyteidl.admin.NodeExecution: + +flyteidl.admin.NodeExecution +---------------------------- + +`[flyteidl.admin.NodeExecution proto] `_ + +Encapsulates all details for a single node execution entity. +A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +sub-workflow, or even a separate child-workflow execution. +The same task can be called repeatedly in a single workflow but each node is unique. + +.. code-block:: json + + { + "id": "{...}", + "input_uri": "...", + "closure": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecution.id: + +id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) Uniquely identifies an individual node execution. + + +.. _api_field_flyteidl.admin.NodeExecution.input_uri: + +input_uri + (`string `_) Path to remote data store where input blob is stored. + + +.. _api_field_flyteidl.admin.NodeExecution.closure: + +closure + (:ref:`flyteidl.admin.NodeExecutionClosure `) Computed results associated with this node execution. + + + + +.. _api_msg_flyteidl.admin.NodeExecutionList: + +flyteidl.admin.NodeExecutionList +-------------------------------- + +`[flyteidl.admin.NodeExecutionList proto] `_ + +Request structure to retrieve a list of node execution entities. + +.. code-block:: json + + { + "node_executions": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.NodeExecutionList.node_executions: + +node_executions + (:ref:`flyteidl.admin.NodeExecution `) + +.. _api_field_flyteidl.admin.NodeExecutionList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.NodeExecutionClosure: + +flyteidl.admin.NodeExecutionClosure +----------------------------------- + +`[flyteidl.admin.NodeExecutionClosure proto] `_ + +Container for node execution details and results. + +.. code-block:: json + + { + "output_uri": "...", + "error": "{...}", + "phase": "...", + "started_at": "{...}", + "duration": "{...}", + "created_at": "{...}", + "updated_at": "{...}", + "workflow_node_metadata": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionClosure.output_uri: + +output_uri + (`string `_) + Only a node in a terminal state will have a non-empty output_result. + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.admin.NodeExecutionClosure.error: + +error + (:ref:`flyteidl.core.ExecutionError `) Error information for the Node + + Only a node in a terminal state will have a non-empty output_result. + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.admin.NodeExecutionClosure.phase: + +phase + (:ref:`flyteidl.core.NodeExecution.Phase `) The last recorded phase for this node execution. + + +.. _api_field_flyteidl.admin.NodeExecutionClosure.started_at: + +started_at + (:ref:`google.protobuf.Timestamp `) Time at which the node execution began running. + + +.. _api_field_flyteidl.admin.NodeExecutionClosure.duration: + +duration + (:ref:`google.protobuf.Duration `) The amount of time the node execution spent running. + + +.. _api_field_flyteidl.admin.NodeExecutionClosure.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) Time at which the node execution was created. + + +.. _api_field_flyteidl.admin.NodeExecutionClosure.updated_at: + +updated_at + (:ref:`google.protobuf.Timestamp `) Time at which the node execution was last updated. + + +.. _api_field_flyteidl.admin.NodeExecutionClosure.workflow_node_metadata: + +workflow_node_metadata + (:ref:`flyteidl.admin.WorkflowNodeMetadata `) + Store metadata for what the node launched. + for ex: if this is a workflow node, we store information for the launched workflow. + + + + +.. _api_msg_flyteidl.admin.WorkflowNodeMetadata: + +flyteidl.admin.WorkflowNodeMetadata +----------------------------------- + +`[flyteidl.admin.WorkflowNodeMetadata proto] `_ + +Metadata for a WorkflowNode + +.. code-block:: json + + { + "executionId": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowNodeMetadata.executionId: + +executionId + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) + + + +.. _api_msg_flyteidl.admin.NodeExecutionGetDataRequest: + +flyteidl.admin.NodeExecutionGetDataRequest +------------------------------------------ + +`[flyteidl.admin.NodeExecutionGetDataRequest proto] `_ + +Request structure to fetch inputs and output urls for a node execution. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionGetDataRequest.id: + +id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) The identifier of the node execution for which to fetch inputs and outputs. + + + + +.. _api_msg_flyteidl.admin.NodeExecutionGetDataResponse: + +flyteidl.admin.NodeExecutionGetDataResponse +------------------------------------------- + +`[flyteidl.admin.NodeExecutionGetDataResponse proto] `_ + +Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. + +.. code-block:: json + + { + "inputs": "{...}", + "outputs": "{...}" + } + +.. _api_field_flyteidl.admin.NodeExecutionGetDataResponse.inputs: + +inputs + (:ref:`flyteidl.admin.UrlBlob `) Signed url to fetch a core.LiteralMap of node execution inputs. + + +.. _api_field_flyteidl.admin.NodeExecutionGetDataResponse.outputs: + +outputs + (:ref:`flyteidl.admin.UrlBlob `) Signed url to fetch a core.LiteralMap of node execution outputs. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/notification.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/notification.proto.rst new file mode 100644 index 0000000000..d6e46ae590 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/notification.proto.rst @@ -0,0 +1,57 @@ +.. _api_file_flyteidl/admin/notification.proto: + +notification.proto +================================= + +import "validate/validate.proto"; + +.. _api_msg_flyteidl.admin.EmailMessage: + +flyteidl.admin.EmailMessage +--------------------------- + +`[flyteidl.admin.EmailMessage proto] `_ + +Represents the Email object that is sent to a publisher/subscriber +to forward the notification. +Note: This is internal to Admin and doesn't need to be exposed to other components. + +.. code-block:: json + + { + "recipients_email": [], + "sender_email": "...", + "subject_line": "...", + "body": "..." + } + +.. _api_field_flyteidl.admin.EmailMessage.recipients_email: + +recipients_email + (`string `_) The list of email addresses to receive an email with the content populated in the other fields. + Currently, each email recipient will receive its own email. + This populates the TO field. + + +.. _api_field_flyteidl.admin.EmailMessage.sender_email: + +sender_email + (`string `_) The email of the sender. + This populates the FROM field. + + +.. _api_field_flyteidl.admin.EmailMessage.subject_line: + +subject_line + (`string `_) The content of the subject line. + This populates the SUBJECT field. + + +.. _api_field_flyteidl.admin.EmailMessage.body: + +body + (`string `_) The content of the email body. + This populates the BODY field. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/project.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/project.proto.rst new file mode 100644 index 0000000000..ead9e9dde9 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/project.proto.rst @@ -0,0 +1,141 @@ +.. _api_file_flyteidl/admin/project.proto: + +project.proto +============================ + +.. _api_msg_flyteidl.admin.Domain: + +flyteidl.admin.Domain +--------------------- + +`[flyteidl.admin.Domain proto] `_ + +Namespace within a project commonly used to differentiate between different service instances. +e.g. "production", "development", etc. + +.. code-block:: json + + { + "id": "...", + "name": "..." + } + +.. _api_field_flyteidl.admin.Domain.id: + +id + (`string `_) + +.. _api_field_flyteidl.admin.Domain.name: + +name + (`string `_) Display name. + + + + +.. _api_msg_flyteidl.admin.Project: + +flyteidl.admin.Project +---------------------- + +`[flyteidl.admin.Project proto] `_ + +Top-level namespace used to classify different entities like workflows and executions. + +.. code-block:: json + + { + "id": "...", + "name": "...", + "domains": [] + } + +.. _api_field_flyteidl.admin.Project.id: + +id + (`string `_) + +.. _api_field_flyteidl.admin.Project.name: + +name + (`string `_) Display name. + + +.. _api_field_flyteidl.admin.Project.domains: + +domains + (:ref:`flyteidl.admin.Domain `) + + + +.. _api_msg_flyteidl.admin.Projects: + +flyteidl.admin.Projects +----------------------- + +`[flyteidl.admin.Projects proto] `_ + + +.. code-block:: json + + { + "projects": [] + } + +.. _api_field_flyteidl.admin.Projects.projects: + +projects + (:ref:`flyteidl.admin.Project `) + + + +.. _api_msg_flyteidl.admin.ProjectListRequest: + +flyteidl.admin.ProjectListRequest +--------------------------------- + +`[flyteidl.admin.ProjectListRequest proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.ProjectRegisterRequest: + +flyteidl.admin.ProjectRegisterRequest +------------------------------------- + +`[flyteidl.admin.ProjectRegisterRequest proto] `_ + + +.. code-block:: json + + { + "project": "{...}" + } + +.. _api_field_flyteidl.admin.ProjectRegisterRequest.project: + +project + (:ref:`flyteidl.admin.Project `) + + + +.. _api_msg_flyteidl.admin.ProjectRegisterResponse: + +flyteidl.admin.ProjectRegisterResponse +-------------------------------------- + +`[flyteidl.admin.ProjectRegisterResponse proto] `_ + + +.. code-block:: json + + {} + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/schedule.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/schedule.proto.rst new file mode 100644 index 0000000000..bfdffb6a5d --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/schedule.proto.rst @@ -0,0 +1,99 @@ +.. _api_file_flyteidl/admin/schedule.proto: + +schedule.proto +============================= + +.. _api_msg_flyteidl.admin.FixedRate: + +flyteidl.admin.FixedRate +------------------------ + +`[flyteidl.admin.FixedRate proto] `_ + +Option for schedules run at a certain frequency, e.g. every 2 minutes. + +.. code-block:: json + + { + "value": "...", + "unit": "..." + } + +.. _api_field_flyteidl.admin.FixedRate.value: + +value + (`uint32 `_) + +.. _api_field_flyteidl.admin.FixedRate.unit: + +unit + (:ref:`flyteidl.admin.FixedRateUnit `) + + + +.. _api_msg_flyteidl.admin.Schedule: + +flyteidl.admin.Schedule +----------------------- + +`[flyteidl.admin.Schedule proto] `_ + +Defines complete set of information required to trigger an execution on a schedule. + +.. code-block:: json + + { + "cron_expression": "...", + "rate": "{...}", + "kickoff_time_input_arg": "..." + } + +.. _api_field_flyteidl.admin.Schedule.cron_expression: + +cron_expression + (`string `_) Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year" + e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *" + + + + Only one of :ref:`cron_expression `, :ref:`rate ` may be set. + +.. _api_field_flyteidl.admin.Schedule.rate: + +rate + (:ref:`flyteidl.admin.FixedRate `) + + + Only one of :ref:`cron_expression `, :ref:`rate ` may be set. + +.. _api_field_flyteidl.admin.Schedule.kickoff_time_input_arg: + +kickoff_time_input_arg + (`string `_) Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + + + +.. _api_enum_flyteidl.admin.FixedRateUnit: + +Enum flyteidl.admin.FixedRateUnit +--------------------------------- + +`[flyteidl.admin.FixedRateUnit proto] `_ + +Represents a frequency at which to run a schedule. + +.. _api_enum_value_flyteidl.admin.FixedRateUnit.MINUTE: + +MINUTE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.admin.FixedRateUnit.HOUR: + +HOUR + ⁣ + +.. _api_enum_value_flyteidl.admin.FixedRateUnit.DAY: + +DAY + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/task.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/task.proto.rst new file mode 100644 index 0000000000..6ef8c6c232 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/task.proto.rst @@ -0,0 +1,167 @@ +.. _api_file_flyteidl/admin/task.proto: + +task.proto +========================= + +.. _api_msg_flyteidl.admin.TaskCreateRequest: + +flyteidl.admin.TaskCreateRequest +-------------------------------- + +`[flyteidl.admin.TaskCreateRequest proto] `_ + +Represents a request structure to create a revision of a task. + +.. code-block:: json + + { + "id": "{...}", + "spec": "{...}" + } + +.. _api_field_flyteidl.admin.TaskCreateRequest.id: + +id + (:ref:`flyteidl.core.Identifier `) id represents the unique identifier of the task. + + +.. _api_field_flyteidl.admin.TaskCreateRequest.spec: + +spec + (:ref:`flyteidl.admin.TaskSpec `) Represents the specification for task. + + + + +.. _api_msg_flyteidl.admin.TaskCreateResponse: + +flyteidl.admin.TaskCreateResponse +--------------------------------- + +`[flyteidl.admin.TaskCreateResponse proto] `_ + +Represents a response structure if task creation succeeds. + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.Task: + +flyteidl.admin.Task +------------------- + +`[flyteidl.admin.Task proto] `_ + +Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +arranged to process workflow inputs and produce a deterministic set of outputs. +Tasks can come in many varieties tuned for specialized behavior. + +.. code-block:: json + + { + "id": "{...}", + "closure": "{...}" + } + +.. _api_field_flyteidl.admin.Task.id: + +id + (:ref:`flyteidl.core.Identifier `) id represents the unique identifier of the task. + + +.. _api_field_flyteidl.admin.Task.closure: + +closure + (:ref:`flyteidl.admin.TaskClosure `) closure encapsulates all the fields that maps to a compiled version of the task. + + + + +.. _api_msg_flyteidl.admin.TaskList: + +flyteidl.admin.TaskList +----------------------- + +`[flyteidl.admin.TaskList proto] `_ + +Represents a list of tasks returned from the admin. + +.. code-block:: json + + { + "tasks": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.TaskList.tasks: + +tasks + (:ref:`flyteidl.admin.Task `) A list of tasks returned based on the request. + + +.. _api_field_flyteidl.admin.TaskList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.TaskSpec: + +flyteidl.admin.TaskSpec +----------------------- + +`[flyteidl.admin.TaskSpec proto] `_ + +Represents a structure that encapsulates the user-configured specification of the task. + +.. code-block:: json + + { + "template": "{...}" + } + +.. _api_field_flyteidl.admin.TaskSpec.template: + +template + (:ref:`flyteidl.core.TaskTemplate `) Template of the task that encapsulates all the metadata of the task. + + + + +.. _api_msg_flyteidl.admin.TaskClosure: + +flyteidl.admin.TaskClosure +-------------------------- + +`[flyteidl.admin.TaskClosure proto] `_ + +Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +and task metadata. + +.. code-block:: json + + { + "compiled_task": "{...}", + "created_at": "{...}" + } + +.. _api_field_flyteidl.admin.TaskClosure.compiled_task: + +compiled_task + (:ref:`flyteidl.core.CompiledTask `) Represents the compiled representation of the task from the specification provided. + + +.. _api_field_flyteidl.admin.TaskClosure.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) Time at which the task was created. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/task_execution.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/task_execution.proto.rst new file mode 100644 index 0000000000..07a3726688 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/task_execution.proto.rst @@ -0,0 +1,297 @@ +.. _api_file_flyteidl/admin/task_execution.proto: + +task_execution.proto +=================================== + +.. _api_msg_flyteidl.admin.TaskExecutionGetRequest: + +flyteidl.admin.TaskExecutionGetRequest +-------------------------------------- + +`[flyteidl.admin.TaskExecutionGetRequest proto] `_ + +A message used to fetch a single task execution entity. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.TaskExecutionGetRequest.id: + +id + (:ref:`flyteidl.core.TaskExecutionIdentifier `) Unique identifier for the task execution. + + + + +.. _api_msg_flyteidl.admin.TaskExecutionListRequest: + +flyteidl.admin.TaskExecutionListRequest +--------------------------------------- + +`[flyteidl.admin.TaskExecutionListRequest proto] `_ + +Represents a request structure to retrieve a list of task execution entities. + +.. code-block:: json + + { + "node_execution_id": "{...}", + "limit": "...", + "token": "...", + "filters": "...", + "sort_by": "{...}" + } + +.. _api_field_flyteidl.admin.TaskExecutionListRequest.node_execution_id: + +node_execution_id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) Indicates the node execution to filter by. + + +.. _api_field_flyteidl.admin.TaskExecutionListRequest.limit: + +limit + (`uint32 `_) Indicates the number of resources to be returned. + + +.. _api_field_flyteidl.admin.TaskExecutionListRequest.token: + +token + (`string `_) In the case of multiple pages of results, the server-provided token can be used to fetch the next page + in a query. + +optional + + +.. _api_field_flyteidl.admin.TaskExecutionListRequest.filters: + +filters + (`string `_) Indicates a list of filters passed as string. + More info on constructing filters : + +optional + + +.. _api_field_flyteidl.admin.TaskExecutionListRequest.sort_by: + +sort_by + (:ref:`flyteidl.admin.Sort `) Sort ordering for returned list. + +optional + + + + +.. _api_msg_flyteidl.admin.TaskExecution: + +flyteidl.admin.TaskExecution +---------------------------- + +`[flyteidl.admin.TaskExecution proto] `_ + +Encapsulates all details for a single task execution entity. +A task execution represents an instantiated task, including all inputs and additional +metadata as well as computed results included state, outputs, and duration-based attributes. + +.. code-block:: json + + { + "id": "{...}", + "input_uri": "...", + "closure": "{...}", + "is_parent": "..." + } + +.. _api_field_flyteidl.admin.TaskExecution.id: + +id + (:ref:`flyteidl.core.TaskExecutionIdentifier `) Unique identifier for the task execution. + + +.. _api_field_flyteidl.admin.TaskExecution.input_uri: + +input_uri + (`string `_) Path to remote data store where input blob is stored. + + +.. _api_field_flyteidl.admin.TaskExecution.closure: + +closure + (:ref:`flyteidl.admin.TaskExecutionClosure `) Task execution details and results. + + +.. _api_field_flyteidl.admin.TaskExecution.is_parent: + +is_parent + (`bool `_) Whether this task spawned nodes. + + + + +.. _api_msg_flyteidl.admin.TaskExecutionList: + +flyteidl.admin.TaskExecutionList +-------------------------------- + +`[flyteidl.admin.TaskExecutionList proto] `_ + +Response structure for a query to list of task execution entities. + +.. code-block:: json + + { + "task_executions": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.TaskExecutionList.task_executions: + +task_executions + (:ref:`flyteidl.admin.TaskExecution `) + +.. _api_field_flyteidl.admin.TaskExecutionList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.TaskExecutionClosure: + +flyteidl.admin.TaskExecutionClosure +----------------------------------- + +`[flyteidl.admin.TaskExecutionClosure proto] `_ + +Container for task execution details and results. + +.. code-block:: json + + { + "output_uri": "...", + "error": "{...}", + "phase": "...", + "logs": [], + "started_at": "{...}", + "duration": "{...}", + "created_at": "{...}", + "updated_at": "{...}", + "custom_info": "{...}" + } + +.. _api_field_flyteidl.admin.TaskExecutionClosure.output_uri: + +output_uri + (`string `_) Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.admin.TaskExecutionClosure.error: + +error + (:ref:`flyteidl.core.ExecutionError `) Error information for the task execution. Populated if the execution failed. + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.admin.TaskExecutionClosure.phase: + +phase + (:ref:`flyteidl.core.TaskExecution.Phase `) The last recorded phase for this task execution. + + +.. _api_field_flyteidl.admin.TaskExecutionClosure.logs: + +logs + (:ref:`flyteidl.core.TaskLog `) Detailed log information output by the task execution. + + +.. _api_field_flyteidl.admin.TaskExecutionClosure.started_at: + +started_at + (:ref:`google.protobuf.Timestamp `) Time at which the task execution began running. + + +.. _api_field_flyteidl.admin.TaskExecutionClosure.duration: + +duration + (:ref:`google.protobuf.Duration `) The amount of time the task execution spent running. + + +.. _api_field_flyteidl.admin.TaskExecutionClosure.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) Time at which the task execution was created. + + +.. _api_field_flyteidl.admin.TaskExecutionClosure.updated_at: + +updated_at + (:ref:`google.protobuf.Timestamp `) Time at which the task execution was last updated. + + +.. _api_field_flyteidl.admin.TaskExecutionClosure.custom_info: + +custom_info + (:ref:`google.protobuf.Struct `) Custom data specific to the task plugin. + + + + +.. _api_msg_flyteidl.admin.TaskExecutionGetDataRequest: + +flyteidl.admin.TaskExecutionGetDataRequest +------------------------------------------ + +`[flyteidl.admin.TaskExecutionGetDataRequest proto] `_ + +Request structure to fetch inputs and output urls for a task execution. + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.admin.TaskExecutionGetDataRequest.id: + +id + (:ref:`flyteidl.core.TaskExecutionIdentifier `) The identifier of the task execution for which to fetch inputs and outputs. + + + + +.. _api_msg_flyteidl.admin.TaskExecutionGetDataResponse: + +flyteidl.admin.TaskExecutionGetDataResponse +------------------------------------------- + +`[flyteidl.admin.TaskExecutionGetDataResponse proto] `_ + +Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. + +.. code-block:: json + + { + "inputs": "{...}", + "outputs": "{...}" + } + +.. _api_field_flyteidl.admin.TaskExecutionGetDataResponse.inputs: + +inputs + (:ref:`flyteidl.admin.UrlBlob `) Signed url to fetch a core.LiteralMap of task execution inputs. + + +.. _api_field_flyteidl.admin.TaskExecutionGetDataResponse.outputs: + +outputs + (:ref:`flyteidl.admin.UrlBlob `) Signed url to fetch a core.LiteralMap of task execution outputs. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/admin/workflow.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/admin/workflow.proto.rst new file mode 100644 index 0000000000..1032f1c7b9 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/admin/workflow.proto.rst @@ -0,0 +1,165 @@ +.. _api_file_flyteidl/admin/workflow.proto: + +workflow.proto +============================= + +.. _api_msg_flyteidl.admin.WorkflowCreateRequest: + +flyteidl.admin.WorkflowCreateRequest +------------------------------------ + +`[flyteidl.admin.WorkflowCreateRequest proto] `_ + +Represents a request structure to create a revision of a workflow. + +.. code-block:: json + + { + "id": "{...}", + "spec": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowCreateRequest.id: + +id + (:ref:`flyteidl.core.Identifier `) id represents the unique identifier of the workflow. + + +.. _api_field_flyteidl.admin.WorkflowCreateRequest.spec: + +spec + (:ref:`flyteidl.admin.WorkflowSpec `) Represents the specification for workflow. + + + + +.. _api_msg_flyteidl.admin.WorkflowCreateResponse: + +flyteidl.admin.WorkflowCreateResponse +------------------------------------- + +`[flyteidl.admin.WorkflowCreateResponse proto] `_ + + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.admin.Workflow: + +flyteidl.admin.Workflow +----------------------- + +`[flyteidl.admin.Workflow proto] `_ + +Represents the workflow structure stored in the Admin +A workflow is created by ordering tasks and associating outputs to inputs +in order to produce a directed-acyclic execution graph. + +.. code-block:: json + + { + "id": "{...}", + "closure": "{...}" + } + +.. _api_field_flyteidl.admin.Workflow.id: + +id + (:ref:`flyteidl.core.Identifier `) id represents the unique identifier of the workflow. + + +.. _api_field_flyteidl.admin.Workflow.closure: + +closure + (:ref:`flyteidl.admin.WorkflowClosure `) closure encapsulates all the fields that maps to a compiled version of the workflow. + + + + +.. _api_msg_flyteidl.admin.WorkflowList: + +flyteidl.admin.WorkflowList +--------------------------- + +`[flyteidl.admin.WorkflowList proto] `_ + +Represents a list of workflows returned from the admin. + +.. code-block:: json + + { + "workflows": [], + "token": "..." + } + +.. _api_field_flyteidl.admin.WorkflowList.workflows: + +workflows + (:ref:`flyteidl.admin.Workflow `) A list of workflows returned based on the request. + + +.. _api_field_flyteidl.admin.WorkflowList.token: + +token + (`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. + + + + +.. _api_msg_flyteidl.admin.WorkflowSpec: + +flyteidl.admin.WorkflowSpec +--------------------------- + +`[flyteidl.admin.WorkflowSpec proto] `_ + +Represents a structure that encapsulates the specification of the workflow. + +.. code-block:: json + + { + "template": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowSpec.template: + +template + (:ref:`flyteidl.core.WorkflowTemplate `) Template of the task that encapsulates all the metadata of the workflow. + + + + +.. _api_msg_flyteidl.admin.WorkflowClosure: + +flyteidl.admin.WorkflowClosure +------------------------------ + +`[flyteidl.admin.WorkflowClosure proto] `_ + +A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. + +.. code-block:: json + + { + "compiled_workflow": "{...}", + "created_at": "{...}" + } + +.. _api_field_flyteidl.admin.WorkflowClosure.compiled_workflow: + +compiled_workflow + (:ref:`flyteidl.core.CompiledWorkflowClosure `) Represents the compiled representation of the workflow from the specification provided. + + +.. _api_field_flyteidl.admin.WorkflowClosure.created_at: + +created_at + (:ref:`google.protobuf.Timestamp `) Time at which the workflow was created. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/compiler.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/compiler.proto.rst new file mode 100644 index 0000000000..4562e25912 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/compiler.proto.rst @@ -0,0 +1,154 @@ +.. _api_file_flyteidl/core/compiler.proto: + +compiler.proto +============================ + +.. _api_msg_flyteidl.core.ConnectionSet: + +flyteidl.core.ConnectionSet +--------------------------- + +`[flyteidl.core.ConnectionSet proto] `_ + +Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +step uses this created ConnectionSet + +.. code-block:: json + + { + "downstream": "{...}", + "upstream": "{...}" + } + +.. _api_field_flyteidl.core.ConnectionSet.downstream: + +downstream + (map<`string `_, :ref:`flyteidl.core.ConnectionSet.IdList `>) A list of all the node ids that are downstream from a given node id + + +.. _api_field_flyteidl.core.ConnectionSet.upstream: + +upstream + (map<`string `_, :ref:`flyteidl.core.ConnectionSet.IdList `>) A list of all the node ids, that are upstream of this node id + + +.. _api_msg_flyteidl.core.ConnectionSet.IdList: + +flyteidl.core.ConnectionSet.IdList +---------------------------------- + +`[flyteidl.core.ConnectionSet.IdList proto] `_ + + +.. code-block:: json + + { + "ids": [] + } + +.. _api_field_flyteidl.core.ConnectionSet.IdList.ids: + +ids + (`string `_) + + + + + + +.. _api_msg_flyteidl.core.CompiledWorkflow: + +flyteidl.core.CompiledWorkflow +------------------------------ + +`[flyteidl.core.CompiledWorkflow proto] `_ + +Output of the compilation Step. This object represents one workflow. We store more metadata at this layer + +.. code-block:: json + + { + "template": "{...}", + "connections": "{...}" + } + +.. _api_field_flyteidl.core.CompiledWorkflow.template: + +template + (:ref:`flyteidl.core.WorkflowTemplate `) Completely contained Workflow Template + + +.. _api_field_flyteidl.core.CompiledWorkflow.connections: + +connections + (:ref:`flyteidl.core.ConnectionSet `) For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + + + + +.. _api_msg_flyteidl.core.CompiledTask: + +flyteidl.core.CompiledTask +-------------------------- + +`[flyteidl.core.CompiledTask proto] `_ + +Output of the Compilation step. This object represent one Task. We store more metadata at this layer + +.. code-block:: json + + { + "template": "{...}" + } + +.. _api_field_flyteidl.core.CompiledTask.template: + +template + (:ref:`flyteidl.core.TaskTemplate `) Completely contained TaskTemplate + + + + +.. _api_msg_flyteidl.core.CompiledWorkflowClosure: + +flyteidl.core.CompiledWorkflowClosure +------------------------------------- + +`[flyteidl.core.CompiledWorkflowClosure proto] `_ + +A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +compiled subworkflows. + +.. code-block:: json + + { + "primary": "{...}", + "sub_workflows": [], + "tasks": [] + } + +.. _api_field_flyteidl.core.CompiledWorkflowClosure.primary: + +primary + (:ref:`flyteidl.core.CompiledWorkflow `) required + + +.. _api_field_flyteidl.core.CompiledWorkflowClosure.sub_workflows: + +sub_workflows + (:ref:`flyteidl.core.CompiledWorkflow `) Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + as an inlined workflow + optional + + +.. _api_field_flyteidl.core.CompiledWorkflowClosure.tasks: + +tasks + (:ref:`flyteidl.core.CompiledTask `) Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + required (atleast 1) + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/condition.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/condition.proto.rst new file mode 100644 index 0000000000..cad698941c --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/condition.proto.rst @@ -0,0 +1,206 @@ +.. _api_file_flyteidl/core/condition.proto: + +condition.proto +============================= + +.. _api_msg_flyteidl.core.ComparisonExpression: + +flyteidl.core.ComparisonExpression +---------------------------------- + +`[flyteidl.core.ComparisonExpression proto] `_ + +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. + +.. code-block:: json + + { + "operator": "...", + "left_value": "{...}", + "right_value": "{...}" + } + +.. _api_field_flyteidl.core.ComparisonExpression.operator: + +operator + (:ref:`flyteidl.core.ComparisonExpression.Operator `) + +.. _api_field_flyteidl.core.ComparisonExpression.left_value: + +left_value + (:ref:`flyteidl.core.Operand `) + +.. _api_field_flyteidl.core.ComparisonExpression.right_value: + +right_value + (:ref:`flyteidl.core.Operand `) + + +.. _api_enum_flyteidl.core.ComparisonExpression.Operator: + +Enum flyteidl.core.ComparisonExpression.Operator +------------------------------------------------ + +`[flyteidl.core.ComparisonExpression.Operator proto] `_ + +Binary Operator for each expression + +.. _api_enum_value_flyteidl.core.ComparisonExpression.Operator.EQ: + +EQ + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.ComparisonExpression.Operator.NEQ: + +NEQ + ⁣ + +.. _api_enum_value_flyteidl.core.ComparisonExpression.Operator.GT: + +GT + ⁣Greater Than + + +.. _api_enum_value_flyteidl.core.ComparisonExpression.Operator.GTE: + +GTE + ⁣ + +.. _api_enum_value_flyteidl.core.ComparisonExpression.Operator.LT: + +LT + ⁣Less Than + + +.. _api_enum_value_flyteidl.core.ComparisonExpression.Operator.LTE: + +LTE + ⁣ + + +.. _api_msg_flyteidl.core.Operand: + +flyteidl.core.Operand +--------------------- + +`[flyteidl.core.Operand proto] `_ + +Defines an operand to a comparison expression. + +.. code-block:: json + + { + "primitive": "{...}", + "var": "..." + } + +.. _api_field_flyteidl.core.Operand.primitive: + +primitive + (:ref:`flyteidl.core.Primitive `) Can be a constant + + + + Only one of :ref:`primitive `, :ref:`var ` may be set. + +.. _api_field_flyteidl.core.Operand.var: + +var + (`string `_) Or one of this node's input variables + + + + Only one of :ref:`primitive `, :ref:`var ` may be set. + + + +.. _api_msg_flyteidl.core.BooleanExpression: + +flyteidl.core.BooleanExpression +------------------------------- + +`[flyteidl.core.BooleanExpression proto] `_ + +Defines a boolean expression tree. It can be a simple or a conjunction expression. +Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. + +.. code-block:: json + + { + "conjunction": "{...}", + "comparison": "{...}" + } + +.. _api_field_flyteidl.core.BooleanExpression.conjunction: + +conjunction + (:ref:`flyteidl.core.ConjunctionExpression `) + + + Only one of :ref:`conjunction `, :ref:`comparison ` may be set. + +.. _api_field_flyteidl.core.BooleanExpression.comparison: + +comparison + (:ref:`flyteidl.core.ComparisonExpression `) + + + Only one of :ref:`conjunction `, :ref:`comparison ` may be set. + + + +.. _api_msg_flyteidl.core.ConjunctionExpression: + +flyteidl.core.ConjunctionExpression +----------------------------------- + +`[flyteidl.core.ConjunctionExpression proto] `_ + +Defines a conjunction expression of two boolean expressions. + +.. code-block:: json + + { + "operator": "...", + "left_expression": "{...}", + "right_expression": "{...}" + } + +.. _api_field_flyteidl.core.ConjunctionExpression.operator: + +operator + (:ref:`flyteidl.core.ConjunctionExpression.LogicalOperator `) + +.. _api_field_flyteidl.core.ConjunctionExpression.left_expression: + +left_expression + (:ref:`flyteidl.core.BooleanExpression `) + +.. _api_field_flyteidl.core.ConjunctionExpression.right_expression: + +right_expression + (:ref:`flyteidl.core.BooleanExpression `) + + +.. _api_enum_flyteidl.core.ConjunctionExpression.LogicalOperator: + +Enum flyteidl.core.ConjunctionExpression.LogicalOperator +-------------------------------------------------------- + +`[flyteidl.core.ConjunctionExpression.LogicalOperator proto] `_ + +Nested conditions. They can be conjoined using AND / OR +Order of evaluation is not important as the operators are Commutative + +.. _api_enum_value_flyteidl.core.ConjunctionExpression.LogicalOperator.AND: + +AND + *(DEFAULT)* ⁣Conjunction + + +.. _api_enum_value_flyteidl.core.ConjunctionExpression.LogicalOperator.OR: + +OR + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/dynamic_job.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/dynamic_job.proto.rst new file mode 100644 index 0000000000..6bb0f110b5 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/dynamic_job.proto.rst @@ -0,0 +1,60 @@ +.. _api_file_flyteidl/core/dynamic_job.proto: + +dynamic_job.proto +=============================== + +.. _api_msg_flyteidl.core.DynamicJobSpec: + +flyteidl.core.DynamicJobSpec +---------------------------- + +`[flyteidl.core.DynamicJobSpec proto] `_ + +Describes a set of tasks to execute and how the final outputs are produced. + +.. code-block:: json + + { + "nodes": [], + "min_successes": "...", + "outputs": [], + "tasks": [], + "subworkflows": [] + } + +.. _api_field_flyteidl.core.DynamicJobSpec.nodes: + +nodes + (:ref:`flyteidl.core.Node `) A collection of nodes to execute. + + +.. _api_field_flyteidl.core.DynamicJobSpec.min_successes: + +min_successes + (`int64 `_) An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + specified, is the count of nodes repeated field. + + +.. _api_field_flyteidl.core.DynamicJobSpec.outputs: + +outputs + (:ref:`flyteidl.core.Binding `) Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + in bindings should have the generated id for the subtask. + + +.. _api_field_flyteidl.core.DynamicJobSpec.tasks: + +tasks + (:ref:`flyteidl.core.TaskTemplate `) [Optional] A complete list of task specs referenced in nodes. + + +.. _api_field_flyteidl.core.DynamicJobSpec.subworkflows: + +subworkflows + (:ref:`flyteidl.core.WorkflowTemplate `) [Optional] A complete list of task specs referenced in nodes. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/errors.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/errors.proto.rst new file mode 100644 index 0000000000..4d5107f5de --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/errors.proto.rst @@ -0,0 +1,85 @@ +.. _api_file_flyteidl/core/errors.proto: + +errors.proto +========================== + +.. _api_msg_flyteidl.core.ContainerError: + +flyteidl.core.ContainerError +---------------------------- + +`[flyteidl.core.ContainerError proto] `_ + +Error message to propagate detailed errors from container executions to the execution +engine. + +.. code-block:: json + + { + "code": "...", + "message": "...", + "kind": "..." + } + +.. _api_field_flyteidl.core.ContainerError.code: + +code + (`string `_) A simplified code for errors, so that we can provide a glossary of all possible errors. + + +.. _api_field_flyteidl.core.ContainerError.message: + +message + (`string `_) A detailed error message. + + +.. _api_field_flyteidl.core.ContainerError.kind: + +kind + (:ref:`flyteidl.core.ContainerError.Kind `) An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + + + +.. _api_enum_flyteidl.core.ContainerError.Kind: + +Enum flyteidl.core.ContainerError.Kind +-------------------------------------- + +`[flyteidl.core.ContainerError.Kind proto] `_ + +Defines a generic error type that dictates the behavior of the retry strategy. + +.. _api_enum_value_flyteidl.core.ContainerError.Kind.NON_RECOVERABLE: + +NON_RECOVERABLE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.ContainerError.Kind.RECOVERABLE: + +RECOVERABLE + ⁣ + + +.. _api_msg_flyteidl.core.ErrorDocument: + +flyteidl.core.ErrorDocument +--------------------------- + +`[flyteidl.core.ErrorDocument proto] `_ + +Defines the errors.pb file format the container can produce to communicate +failure reasons to the execution engine. + +.. code-block:: json + + { + "error": "{...}" + } + +.. _api_field_flyteidl.core.ErrorDocument.error: + +error + (:ref:`flyteidl.core.ContainerError `) The error raised during execution. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/execution.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/execution.proto.rst new file mode 100644 index 0000000000..791c8407ba --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/execution.proto.rst @@ -0,0 +1,299 @@ +.. _api_file_flyteidl/core/execution.proto: + +execution.proto +============================= + +.. _api_msg_flyteidl.core.WorkflowExecution: + +flyteidl.core.WorkflowExecution +------------------------------- + +`[flyteidl.core.WorkflowExecution proto] `_ + +Indicates various phases of Workflow Execution + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.core.WorkflowExecution.Phase: + +Enum flyteidl.core.WorkflowExecution.Phase +------------------------------------------ + +`[flyteidl.core.WorkflowExecution.Phase proto] `_ + + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.UNDEFINED: + +UNDEFINED + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.QUEUED: + +QUEUED + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.RUNNING: + +RUNNING + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.SUCCEEDING: + +SUCCEEDING + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.SUCCEEDED: + +SUCCEEDED + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.FAILING: + +FAILING + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.FAILED: + +FAILED + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.ABORTED: + +ABORTED + ⁣ + +.. _api_enum_value_flyteidl.core.WorkflowExecution.Phase.TIMED_OUT: + +TIMED_OUT + ⁣ + + +.. _api_msg_flyteidl.core.NodeExecution: + +flyteidl.core.NodeExecution +--------------------------- + +`[flyteidl.core.NodeExecution proto] `_ + +Indicates various phases of Node Execution + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.core.NodeExecution.Phase: + +Enum flyteidl.core.NodeExecution.Phase +-------------------------------------- + +`[flyteidl.core.NodeExecution.Phase proto] `_ + + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.UNDEFINED: + +UNDEFINED + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.QUEUED: + +QUEUED + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.RUNNING: + +RUNNING + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.SUCCEEDED: + +SUCCEEDED + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.FAILING: + +FAILING + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.FAILED: + +FAILED + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.ABORTED: + +ABORTED + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.SKIPPED: + +SKIPPED + ⁣ + +.. _api_enum_value_flyteidl.core.NodeExecution.Phase.TIMED_OUT: + +TIMED_OUT + ⁣ + + +.. _api_msg_flyteidl.core.TaskExecution: + +flyteidl.core.TaskExecution +--------------------------- + +`[flyteidl.core.TaskExecution proto] `_ + +Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +but this is the cumulative list that customers may want to know about for their task. + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.core.TaskExecution.Phase: + +Enum flyteidl.core.TaskExecution.Phase +-------------------------------------- + +`[flyteidl.core.TaskExecution.Phase proto] `_ + + +.. _api_enum_value_flyteidl.core.TaskExecution.Phase.UNDEFINED: + +UNDEFINED + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.TaskExecution.Phase.QUEUED: + +QUEUED + ⁣ + +.. _api_enum_value_flyteidl.core.TaskExecution.Phase.RUNNING: + +RUNNING + ⁣ + +.. _api_enum_value_flyteidl.core.TaskExecution.Phase.SUCCEEDED: + +SUCCEEDED + ⁣ + +.. _api_enum_value_flyteidl.core.TaskExecution.Phase.ABORTED: + +ABORTED + ⁣ + +.. _api_enum_value_flyteidl.core.TaskExecution.Phase.FAILED: + +FAILED + ⁣ + + +.. _api_msg_flyteidl.core.ExecutionError: + +flyteidl.core.ExecutionError +---------------------------- + +`[flyteidl.core.ExecutionError proto] `_ + +Represents the error message from the execution. + +.. code-block:: json + + { + "code": "...", + "message": "...", + "error_uri": "..." + } + +.. _api_field_flyteidl.core.ExecutionError.code: + +code + (`string `_) Error code indicates a grouping of a type of error. + More Info: + + +.. _api_field_flyteidl.core.ExecutionError.message: + +message + (`string `_) Detailed description of the error - including stack trace. + + +.. _api_field_flyteidl.core.ExecutionError.error_uri: + +error_uri + (`string `_) Full error contents accessible via a URI + + + + +.. _api_msg_flyteidl.core.TaskLog: + +flyteidl.core.TaskLog +--------------------- + +`[flyteidl.core.TaskLog proto] `_ + +Log information for the task that is specific to a log sink +When our log story is flushed out, we may have more metadata here like log link expiry + +.. code-block:: json + + { + "uri": "...", + "name": "...", + "message_format": "...", + "ttl": "{...}" + } + +.. _api_field_flyteidl.core.TaskLog.uri: + +uri + (`string `_) + +.. _api_field_flyteidl.core.TaskLog.name: + +name + (`string `_) + +.. _api_field_flyteidl.core.TaskLog.message_format: + +message_format + (:ref:`flyteidl.core.TaskLog.MessageFormat `) + +.. _api_field_flyteidl.core.TaskLog.ttl: + +ttl + (:ref:`google.protobuf.Duration `) + + +.. _api_enum_flyteidl.core.TaskLog.MessageFormat: + +Enum flyteidl.core.TaskLog.MessageFormat +---------------------------------------- + +`[flyteidl.core.TaskLog.MessageFormat proto] `_ + + +.. _api_enum_value_flyteidl.core.TaskLog.MessageFormat.UNKNOWN: + +UNKNOWN + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.TaskLog.MessageFormat.CSV: + +CSV + ⁣ + +.. _api_enum_value_flyteidl.core.TaskLog.MessageFormat.JSON: + +JSON + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/identifier.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/identifier.proto.rst new file mode 100644 index 0000000000..c1f35ff39f --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/identifier.proto.rst @@ -0,0 +1,185 @@ +.. _api_file_flyteidl/core/identifier.proto: + +identifier.proto +============================== + +.. _api_msg_flyteidl.core.Identifier: + +flyteidl.core.Identifier +------------------------ + +`[flyteidl.core.Identifier proto] `_ + +Encapsulation of fields that uniquely identifies a Flyte resource. + +.. code-block:: json + + { + "resource_type": "...", + "project": "...", + "domain": "...", + "name": "...", + "version": "..." + } + +.. _api_field_flyteidl.core.Identifier.resource_type: + +resource_type + (:ref:`flyteidl.core.ResourceType `) Identifies the specific type of resource that this identifer corresponds to. + + +.. _api_field_flyteidl.core.Identifier.project: + +project + (`string `_) Name of the project the resource belongs to. + + +.. _api_field_flyteidl.core.Identifier.domain: + +domain + (`string `_) Name of the domain the resource belongs to. + A domain can be considered as a subset within a specific project. + + +.. _api_field_flyteidl.core.Identifier.name: + +name + (`string `_) User provided value for the resource. + + +.. _api_field_flyteidl.core.Identifier.version: + +version + (`string `_) Specific version of the resource. + + + + +.. _api_msg_flyteidl.core.WorkflowExecutionIdentifier: + +flyteidl.core.WorkflowExecutionIdentifier +----------------------------------------- + +`[flyteidl.core.WorkflowExecutionIdentifier proto] `_ + +Encapsulation of fields that uniquely identifies a Flyte workflow execution + +.. code-block:: json + + { + "project": "...", + "domain": "...", + "name": "..." + } + +.. _api_field_flyteidl.core.WorkflowExecutionIdentifier.project: + +project + (`string `_) Name of the project the resource belongs to. + + +.. _api_field_flyteidl.core.WorkflowExecutionIdentifier.domain: + +domain + (`string `_) Name of the domain the resource belongs to. + A domain can be considered as a subset within a specific project. + + +.. _api_field_flyteidl.core.WorkflowExecutionIdentifier.name: + +name + (`string `_) User or system provided value for the resource. + + + + +.. _api_msg_flyteidl.core.NodeExecutionIdentifier: + +flyteidl.core.NodeExecutionIdentifier +------------------------------------- + +`[flyteidl.core.NodeExecutionIdentifier proto] `_ + +Encapsulation of fields that identify a Flyte node execution entity. + +.. code-block:: json + + { + "node_id": "...", + "execution_id": "{...}" + } + +.. _api_field_flyteidl.core.NodeExecutionIdentifier.node_id: + +node_id + (`string `_) + +.. _api_field_flyteidl.core.NodeExecutionIdentifier.execution_id: + +execution_id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) + + + +.. _api_msg_flyteidl.core.TaskExecutionIdentifier: + +flyteidl.core.TaskExecutionIdentifier +------------------------------------- + +`[flyteidl.core.TaskExecutionIdentifier proto] `_ + +Encapsulation of fields that identify a Flyte task execution entity. + +.. code-block:: json + + { + "task_id": "{...}", + "node_execution_id": "{...}", + "retry_attempt": "..." + } + +.. _api_field_flyteidl.core.TaskExecutionIdentifier.task_id: + +task_id + (:ref:`flyteidl.core.Identifier `) + +.. _api_field_flyteidl.core.TaskExecutionIdentifier.node_execution_id: + +node_execution_id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) + +.. _api_field_flyteidl.core.TaskExecutionIdentifier.retry_attempt: + +retry_attempt + (`uint32 `_) + + +.. _api_enum_flyteidl.core.ResourceType: + +Enum flyteidl.core.ResourceType +------------------------------- + +`[flyteidl.core.ResourceType proto] `_ + +Indicates a resource type within Flyte. + +.. _api_enum_value_flyteidl.core.ResourceType.UNSPECIFIED: + +UNSPECIFIED + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.ResourceType.TASK: + +TASK + ⁣ + +.. _api_enum_value_flyteidl.core.ResourceType.WORKFLOW: + +WORKFLOW + ⁣ + +.. _api_enum_value_flyteidl.core.ResourceType.LAUNCH_PLAN: + +LAUNCH_PLAN + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/index.rst new file mode 100644 index 0000000000..25f472c7e7 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/index.rst @@ -0,0 +1,26 @@ +Core Flyte language specification +================================= + +These set of protocol buffers provides details of some of the core data +structures like Workflows, Tasks, Nodes, Literals. These are the specification +of the various entities in Flyte as well as the type system. + + + +.. toctree:: + :maxdepth: 1 + :caption: core + :name: coretoc + + compiler.proto + condition.proto + dynamic_job.proto + errors.proto + execution.proto + identifier.proto + interface.proto + literals.proto + tasks.proto + types.proto + workflow.proto + workflow_closure.proto diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/interface.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/interface.proto.rst new file mode 100644 index 0000000000..1d0276a173 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/interface.proto.rst @@ -0,0 +1,154 @@ +.. _api_file_flyteidl/core/interface.proto: + +interface.proto +============================= + +.. _api_msg_flyteidl.core.Variable: + +flyteidl.core.Variable +---------------------- + +`[flyteidl.core.Variable proto] `_ + +Defines a strongly typed variable. + +.. code-block:: json + + { + "type": "{...}", + "description": "..." + } + +.. _api_field_flyteidl.core.Variable.type: + +type + (:ref:`flyteidl.core.LiteralType `) Variable literal type. + + +.. _api_field_flyteidl.core.Variable.description: + +description + (`string `_) optional string describing input variable + + + + +.. _api_msg_flyteidl.core.VariableMap: + +flyteidl.core.VariableMap +------------------------- + +`[flyteidl.core.VariableMap proto] `_ + +A map of Variables + +.. code-block:: json + + { + "variables": "{...}" + } + +.. _api_field_flyteidl.core.VariableMap.variables: + +variables + (map<`string `_, :ref:`flyteidl.core.Variable `>) Defines a map of variable names to variables. + + + + +.. _api_msg_flyteidl.core.TypedInterface: + +flyteidl.core.TypedInterface +---------------------------- + +`[flyteidl.core.TypedInterface proto] `_ + +Defines strongly typed inputs and outputs. + +.. code-block:: json + + { + "inputs": "{...}", + "outputs": "{...}" + } + +.. _api_field_flyteidl.core.TypedInterface.inputs: + +inputs + (:ref:`flyteidl.core.VariableMap `) + +.. _api_field_flyteidl.core.TypedInterface.outputs: + +outputs + (:ref:`flyteidl.core.VariableMap `) + + + +.. _api_msg_flyteidl.core.Parameter: + +flyteidl.core.Parameter +----------------------- + +`[flyteidl.core.Parameter proto] `_ + +A parameter is used as input to a launch plan and has +the special ability to have a default value or mark itself as required. + +.. code-block:: json + + { + "var": "{...}", + "default": "{...}", + "required": "..." + } + +.. _api_field_flyteidl.core.Parameter.var: + +var + (:ref:`flyteidl.core.Variable `) required Variable. Defines the type of the variable backing this parameter. + + +.. _api_field_flyteidl.core.Parameter.default: + +default + (:ref:`flyteidl.core.Literal `) Defines a default value that has to match the variable type defined. + + optional + + + Only one of :ref:`default `, :ref:`required ` may be set. + +.. _api_field_flyteidl.core.Parameter.required: + +required + (`bool `_) optional, is this value required to be filled. + + optional + + + Only one of :ref:`default `, :ref:`required ` may be set. + + + +.. _api_msg_flyteidl.core.ParameterMap: + +flyteidl.core.ParameterMap +-------------------------- + +`[flyteidl.core.ParameterMap proto] `_ + +A map of Parameters. + +.. code-block:: json + + { + "parameters": "{...}" + } + +.. _api_field_flyteidl.core.ParameterMap.parameters: + +parameters + (map<`string `_, :ref:`flyteidl.core.Parameter `>) Defines a map of parameter names to parameters. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/literals.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/literals.proto.rst new file mode 100644 index 0000000000..9f29008514 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/literals.proto.rst @@ -0,0 +1,563 @@ +.. _api_file_flyteidl/core/literals.proto: + +literals.proto +============================ + +.. _api_msg_flyteidl.core.Primitive: + +flyteidl.core.Primitive +----------------------- + +`[flyteidl.core.Primitive proto] `_ + +Primitive Types + +.. code-block:: json + + { + "integer": "...", + "float_value": "...", + "string_value": "...", + "boolean": "...", + "datetime": "{...}", + "duration": "{...}" + } + +.. _api_field_flyteidl.core.Primitive.integer: + +integer + (`int64 `_) + Defines one of simple primitive types. These types will get translated into different programming languages as + described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + + + Only one of :ref:`integer `, :ref:`float_value `, :ref:`string_value `, :ref:`boolean `, :ref:`datetime `, :ref:`duration ` may be set. + +.. _api_field_flyteidl.core.Primitive.float_value: + +float_value + (`double `_) + Defines one of simple primitive types. These types will get translated into different programming languages as + described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + + + Only one of :ref:`integer `, :ref:`float_value `, :ref:`string_value `, :ref:`boolean `, :ref:`datetime `, :ref:`duration ` may be set. + +.. _api_field_flyteidl.core.Primitive.string_value: + +string_value + (`string `_) + Defines one of simple primitive types. These types will get translated into different programming languages as + described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + + + Only one of :ref:`integer `, :ref:`float_value `, :ref:`string_value `, :ref:`boolean `, :ref:`datetime `, :ref:`duration ` may be set. + +.. _api_field_flyteidl.core.Primitive.boolean: + +boolean + (`bool `_) + Defines one of simple primitive types. These types will get translated into different programming languages as + described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + + + Only one of :ref:`integer `, :ref:`float_value `, :ref:`string_value `, :ref:`boolean `, :ref:`datetime `, :ref:`duration ` may be set. + +.. _api_field_flyteidl.core.Primitive.datetime: + +datetime + (:ref:`google.protobuf.Timestamp `) + Defines one of simple primitive types. These types will get translated into different programming languages as + described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + + + Only one of :ref:`integer `, :ref:`float_value `, :ref:`string_value `, :ref:`boolean `, :ref:`datetime `, :ref:`duration ` may be set. + +.. _api_field_flyteidl.core.Primitive.duration: + +duration + (:ref:`google.protobuf.Duration `) + Defines one of simple primitive types. These types will get translated into different programming languages as + described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + + + Only one of :ref:`integer `, :ref:`float_value `, :ref:`string_value `, :ref:`boolean `, :ref:`datetime `, :ref:`duration ` may be set. + + + +.. _api_msg_flyteidl.core.Void: + +flyteidl.core.Void +------------------ + +`[flyteidl.core.Void proto] `_ + +Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +undefined since it can be assigned to a scalar of any LiteralType. + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.core.Blob: + +flyteidl.core.Blob +------------------ + +`[flyteidl.core.Blob proto] `_ + +Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. + +.. code-block:: json + + { + "metadata": "{...}", + "uri": "..." + } + +.. _api_field_flyteidl.core.Blob.metadata: + +metadata + (:ref:`flyteidl.core.BlobMetadata `) + +.. _api_field_flyteidl.core.Blob.uri: + +uri + (`string `_) + + + +.. _api_msg_flyteidl.core.BlobMetadata: + +flyteidl.core.BlobMetadata +-------------------------- + +`[flyteidl.core.BlobMetadata proto] `_ + + +.. code-block:: json + + { + "type": "{...}" + } + +.. _api_field_flyteidl.core.BlobMetadata.type: + +type + (:ref:`flyteidl.core.BlobType `) + + + +.. _api_msg_flyteidl.core.Binary: + +flyteidl.core.Binary +-------------------- + +`[flyteidl.core.Binary proto] `_ + +A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. + +.. code-block:: json + + { + "value": "...", + "tag": "..." + } + +.. _api_field_flyteidl.core.Binary.value: + +value + (`bytes `_) + +.. _api_field_flyteidl.core.Binary.tag: + +tag + (`string `_) + + + +.. _api_msg_flyteidl.core.Schema: + +flyteidl.core.Schema +-------------------- + +`[flyteidl.core.Schema proto] `_ + +A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. + +.. code-block:: json + + { + "uri": "...", + "type": "{...}" + } + +.. _api_field_flyteidl.core.Schema.uri: + +uri + (`string `_) + +.. _api_field_flyteidl.core.Schema.type: + +type + (:ref:`flyteidl.core.SchemaType `) + + + +.. _api_msg_flyteidl.core.Scalar: + +flyteidl.core.Scalar +-------------------- + +`[flyteidl.core.Scalar proto] `_ + + +.. code-block:: json + + { + "primitive": "{...}", + "blob": "{...}", + "binary": "{...}", + "schema": "{...}", + "none_type": "{...}", + "error": "{...}", + "generic": "{...}" + } + +.. _api_field_flyteidl.core.Scalar.primitive: + +primitive + (:ref:`flyteidl.core.Primitive `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + +.. _api_field_flyteidl.core.Scalar.blob: + +blob + (:ref:`flyteidl.core.Blob `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + +.. _api_field_flyteidl.core.Scalar.binary: + +binary + (:ref:`flyteidl.core.Binary `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + +.. _api_field_flyteidl.core.Scalar.schema: + +schema + (:ref:`flyteidl.core.Schema `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + +.. _api_field_flyteidl.core.Scalar.none_type: + +none_type + (:ref:`flyteidl.core.Void `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + +.. _api_field_flyteidl.core.Scalar.error: + +error + (:ref:`flyteidl.core.Error `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + +.. _api_field_flyteidl.core.Scalar.generic: + +generic + (:ref:`google.protobuf.Struct `) + + + Only one of :ref:`primitive `, :ref:`blob `, :ref:`binary `, :ref:`schema `, :ref:`none_type `, :ref:`error `, :ref:`generic ` may be set. + + + +.. _api_msg_flyteidl.core.Literal: + +flyteidl.core.Literal +--------------------- + +`[flyteidl.core.Literal proto] `_ + +A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. + +.. code-block:: json + + { + "scalar": "{...}", + "collection": "{...}", + "map": "{...}" + } + +.. _api_field_flyteidl.core.Literal.scalar: + +scalar + (:ref:`flyteidl.core.Scalar `) A simple value. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`map ` may be set. + +.. _api_field_flyteidl.core.Literal.collection: + +collection + (:ref:`flyteidl.core.LiteralCollection `) A collection of literals to allow nesting. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`map ` may be set. + +.. _api_field_flyteidl.core.Literal.map: + +map + (:ref:`flyteidl.core.LiteralMap `) A map of strings to literals. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`map ` may be set. + + + +.. _api_msg_flyteidl.core.LiteralCollection: + +flyteidl.core.LiteralCollection +------------------------------- + +`[flyteidl.core.LiteralCollection proto] `_ + +A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. + +.. code-block:: json + + { + "literals": [] + } + +.. _api_field_flyteidl.core.LiteralCollection.literals: + +literals + (:ref:`flyteidl.core.Literal `) + + + +.. _api_msg_flyteidl.core.LiteralMap: + +flyteidl.core.LiteralMap +------------------------ + +`[flyteidl.core.LiteralMap proto] `_ + +A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. + +.. code-block:: json + + { + "literals": "{...}" + } + +.. _api_field_flyteidl.core.LiteralMap.literals: + +literals + (map<`string `_, :ref:`flyteidl.core.Literal `>) + + + +.. _api_msg_flyteidl.core.BindingDataCollection: + +flyteidl.core.BindingDataCollection +----------------------------------- + +`[flyteidl.core.BindingDataCollection proto] `_ + +A collection of BindingData items. + +.. code-block:: json + + { + "bindings": [] + } + +.. _api_field_flyteidl.core.BindingDataCollection.bindings: + +bindings + (:ref:`flyteidl.core.BindingData `) + + + +.. _api_msg_flyteidl.core.BindingDataMap: + +flyteidl.core.BindingDataMap +---------------------------- + +`[flyteidl.core.BindingDataMap proto] `_ + +A map of BindingData items. + +.. code-block:: json + + { + "bindings": "{...}" + } + +.. _api_field_flyteidl.core.BindingDataMap.bindings: + +bindings + (map<`string `_, :ref:`flyteidl.core.BindingData `>) + + + +.. _api_msg_flyteidl.core.BindingData: + +flyteidl.core.BindingData +------------------------- + +`[flyteidl.core.BindingData proto] `_ + +Specifies either a simple value or a reference to another output. + +.. code-block:: json + + { + "scalar": "{...}", + "collection": "{...}", + "promise": "{...}", + "map": "{...}" + } + +.. _api_field_flyteidl.core.BindingData.scalar: + +scalar + (:ref:`flyteidl.core.Scalar `) A simple scalar value. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`promise `, :ref:`map ` may be set. + +.. _api_field_flyteidl.core.BindingData.collection: + +collection + (:ref:`flyteidl.core.BindingDataCollection `) A collection of binding data. This allows nesting of binding data to any number + of levels. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`promise `, :ref:`map ` may be set. + +.. _api_field_flyteidl.core.BindingData.promise: + +promise + (:ref:`flyteidl.core.OutputReference `) References an output promised by another node. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`promise `, :ref:`map ` may be set. + +.. _api_field_flyteidl.core.BindingData.map: + +map + (:ref:`flyteidl.core.BindingDataMap `) A map of bindings. The key is always a string. + + + + Only one of :ref:`scalar `, :ref:`collection `, :ref:`promise `, :ref:`map ` may be set. + + + +.. _api_msg_flyteidl.core.Binding: + +flyteidl.core.Binding +--------------------- + +`[flyteidl.core.Binding proto] `_ + +An input/output binding of a variable to either static value or a node output. + +.. code-block:: json + + { + "var": "...", + "binding": "{...}" + } + +.. _api_field_flyteidl.core.Binding.var: + +var + (`string `_) Variable name must match an input/output variable of the node. + + +.. _api_field_flyteidl.core.Binding.binding: + +binding + (:ref:`flyteidl.core.BindingData `) Data to use to bind this variable. + + + + +.. _api_msg_flyteidl.core.KeyValuePair: + +flyteidl.core.KeyValuePair +-------------------------- + +`[flyteidl.core.KeyValuePair proto] `_ + +A generic key value pair. + +.. code-block:: json + + { + "key": "...", + "value": "..." + } + +.. _api_field_flyteidl.core.KeyValuePair.key: + +key + (`string `_) equired. + + +.. _api_field_flyteidl.core.KeyValuePair.value: + +value + (`string `_) optional. + + + + +.. _api_msg_flyteidl.core.RetryStrategy: + +flyteidl.core.RetryStrategy +--------------------------- + +`[flyteidl.core.RetryStrategy proto] `_ + +Retry strategy associated with an executable unit. + +.. code-block:: json + + { + "retries": "..." + } + +.. _api_field_flyteidl.core.RetryStrategy.retries: + +retries + (`uint32 `_) Number of retries. Retries will be consumed when the job fails with a recoverable error. + The number of retries must be less than or equals to 10. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/tasks.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/tasks.proto.rst new file mode 100644 index 0000000000..87e9c9fa0c --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/tasks.proto.rst @@ -0,0 +1,374 @@ +.. _api_file_flyteidl/core/tasks.proto: + +tasks.proto +========================= + +----------------- First class Plugins + +.. _api_msg_flyteidl.core.Resources: + +flyteidl.core.Resources +----------------------- + +`[flyteidl.core.Resources proto] `_ + +A customizable interface to convey resources requested for a container. This can be interpretted differently for different +container engines. + +.. code-block:: json + + { + "requests": [], + "limits": [] + } + +.. _api_field_flyteidl.core.Resources.requests: + +requests + (:ref:`flyteidl.core.Resources.ResourceEntry `) The desired set of resources requested. ResourceNames must be unique within the list. + + +.. _api_field_flyteidl.core.Resources.limits: + +limits + (:ref:`flyteidl.core.Resources.ResourceEntry `) Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + within the list. + + +.. _api_msg_flyteidl.core.Resources.ResourceEntry: + +flyteidl.core.Resources.ResourceEntry +------------------------------------- + +`[flyteidl.core.Resources.ResourceEntry proto] `_ + +Encapsulates a resource name and value. + +.. code-block:: json + + { + "name": "...", + "value": "..." + } + +.. _api_field_flyteidl.core.Resources.ResourceEntry.name: + +name + (:ref:`flyteidl.core.Resources.ResourceName `) Resource name. + + +.. _api_field_flyteidl.core.Resources.ResourceEntry.value: + +value + (`string `_) Value must be a valid k8s quantity. See + https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + + + + +.. _api_enum_flyteidl.core.Resources.ResourceName: + +Enum flyteidl.core.Resources.ResourceName +----------------------------------------- + +`[flyteidl.core.Resources.ResourceName proto] `_ + +Known resource names. + +.. _api_enum_value_flyteidl.core.Resources.ResourceName.UNKNOWN: + +UNKNOWN + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.Resources.ResourceName.CPU: + +CPU + ⁣ + +.. _api_enum_value_flyteidl.core.Resources.ResourceName.GPU: + +GPU + ⁣ + +.. _api_enum_value_flyteidl.core.Resources.ResourceName.MEMORY: + +MEMORY + ⁣ + +.. _api_enum_value_flyteidl.core.Resources.ResourceName.STORAGE: + +STORAGE + ⁣ + + +.. _api_msg_flyteidl.core.RuntimeMetadata: + +flyteidl.core.RuntimeMetadata +----------------------------- + +`[flyteidl.core.RuntimeMetadata proto] `_ + +Runtime information. This is losely defined to allow for extensibility. + +.. code-block:: json + + { + "type": "...", + "version": "...", + "flavor": "..." + } + +.. _api_field_flyteidl.core.RuntimeMetadata.type: + +type + (:ref:`flyteidl.core.RuntimeMetadata.RuntimeType `) Type of runtime. + + +.. _api_field_flyteidl.core.RuntimeMetadata.version: + +version + (`string `_) Version of the runtime. All versions should be backward compatible. However, certain cases call for version + checks to ensure tighter validation or setting expectations. + + +.. _api_field_flyteidl.core.RuntimeMetadata.flavor: + +flavor + (`string `_) optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + + + +.. _api_enum_flyteidl.core.RuntimeMetadata.RuntimeType: + +Enum flyteidl.core.RuntimeMetadata.RuntimeType +---------------------------------------------- + +`[flyteidl.core.RuntimeMetadata.RuntimeType proto] `_ + + +.. _api_enum_value_flyteidl.core.RuntimeMetadata.RuntimeType.OTHER: + +OTHER + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.RuntimeMetadata.RuntimeType.FLYTE_SDK: + +FLYTE_SDK + ⁣ + + +.. _api_msg_flyteidl.core.TaskMetadata: + +flyteidl.core.TaskMetadata +-------------------------- + +`[flyteidl.core.TaskMetadata proto] `_ + +Task Metadata + +.. code-block:: json + + { + "discoverable": "...", + "runtime": "{...}", + "timeout": "{...}", + "retries": "{...}", + "discovery_version": "...", + "deprecated_error_message": "..." + } + +.. _api_field_flyteidl.core.TaskMetadata.discoverable: + +discoverable + (`bool `_) Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + + +.. _api_field_flyteidl.core.TaskMetadata.runtime: + +runtime + (:ref:`flyteidl.core.RuntimeMetadata `) Runtime information about the task. + + +.. _api_field_flyteidl.core.TaskMetadata.timeout: + +timeout + (:ref:`google.protobuf.Duration `) The overall timeout of a task including user-triggered retries. + + +.. _api_field_flyteidl.core.TaskMetadata.retries: + +retries + (:ref:`flyteidl.core.RetryStrategy `) Number of retries per task. + + +.. _api_field_flyteidl.core.TaskMetadata.discovery_version: + +discovery_version + (`string `_) Indicates a logical version to apply to this task for the purpose of discovery. + + +.. _api_field_flyteidl.core.TaskMetadata.deprecated_error_message: + +deprecated_error_message + (`string `_) If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + of the ending of support for a given task. + + + + +.. _api_msg_flyteidl.core.TaskTemplate: + +flyteidl.core.TaskTemplate +-------------------------- + +`[flyteidl.core.TaskTemplate proto] `_ + +A Task structure that uniquely identifies a task in the system +Tasks are registered as a first step in the system. + +.. code-block:: json + + { + "id": "{...}", + "type": "...", + "metadata": "{...}", + "interface": "{...}", + "custom": "{...}", + "container": "{...}" + } + +.. _api_field_flyteidl.core.TaskTemplate.id: + +id + (:ref:`flyteidl.core.Identifier `) Auto generated taskId by the system. Task Id uniquely identifies this task globally. + + +.. _api_field_flyteidl.core.TaskTemplate.type: + +type + (`string `_) A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + implementation registered for the TaskCategory. + + +.. _api_field_flyteidl.core.TaskTemplate.metadata: + +metadata + (:ref:`flyteidl.core.TaskMetadata `) Extra metadata about the task. + + +.. _api_field_flyteidl.core.TaskTemplate.interface: + +interface + (:ref:`flyteidl.core.TypedInterface `) A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees + compile-time validation of the workflow to avoid costly runtime failures. + + +.. _api_field_flyteidl.core.TaskTemplate.custom: + +custom + (:ref:`google.protobuf.Struct `) Custom data about the task. This is extensible to allow various plugins in the system. + + +.. _api_field_flyteidl.core.TaskTemplate.container: + +container + (:ref:`flyteidl.core.Container `) + Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + handlers. + + + + +.. _api_msg_flyteidl.core.ContainerPort: + +flyteidl.core.ContainerPort +--------------------------- + +`[flyteidl.core.ContainerPort proto] `_ + +Defines port properties for a container. + +.. code-block:: json + + { + "container_port": "..." + } + +.. _api_field_flyteidl.core.ContainerPort.container_port: + +container_port + (`uint32 `_) Number of port to expose on the pod's IP address. + This must be a valid port number, 0 < x < 65536. + + + + +.. _api_msg_flyteidl.core.Container: + +flyteidl.core.Container +----------------------- + +`[flyteidl.core.Container proto] `_ + + +.. code-block:: json + + { + "image": "...", + "command": [], + "args": [], + "resources": "{...}", + "env": [], + "config": [], + "ports": [] + } + +.. _api_field_flyteidl.core.Container.image: + +image + (`string `_) Container image url. Eg: docker/redis:latest + + +.. _api_field_flyteidl.core.Container.command: + +command + (`string `_) Command to be executed, if not provided, the default entrypoint in the container image will be used. + + +.. _api_field_flyteidl.core.Container.args: + +args + (`string `_) These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + system will populate these before executing the container. + + +.. _api_field_flyteidl.core.Container.resources: + +resources + (:ref:`flyteidl.core.Resources `) Container resources requirement as specified by the container engine. + + +.. _api_field_flyteidl.core.Container.env: + +env + (:ref:`flyteidl.core.KeyValuePair `) Environment variables will be set as the container is starting up. + + +.. _api_field_flyteidl.core.Container.config: + +config + (:ref:`flyteidl.core.KeyValuePair `) Allows extra configs to be available for the container. + TODO: elaborate on how configs will become available. + + +.. _api_field_flyteidl.core.Container.ports: + +ports + (:ref:`flyteidl.core.ContainerPort `) Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + not supported on AWS Batch) + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/types.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/types.proto.rst new file mode 100644 index 0000000000..9d5eb65106 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/types.proto.rst @@ -0,0 +1,335 @@ +.. _api_file_flyteidl/core/types.proto: + +types.proto +========================= + +.. _api_msg_flyteidl.core.SchemaType: + +flyteidl.core.SchemaType +------------------------ + +`[flyteidl.core.SchemaType proto] `_ + +Defines schema columns and types to strongly type-validate schemas interoperability. + +.. code-block:: json + + { + "columns": [] + } + +.. _api_field_flyteidl.core.SchemaType.columns: + +columns + (:ref:`flyteidl.core.SchemaType.SchemaColumn `) A list of ordered columns this schema comprises of. + + +.. _api_msg_flyteidl.core.SchemaType.SchemaColumn: + +flyteidl.core.SchemaType.SchemaColumn +------------------------------------- + +`[flyteidl.core.SchemaType.SchemaColumn proto] `_ + + +.. code-block:: json + + { + "name": "...", + "type": "..." + } + +.. _api_field_flyteidl.core.SchemaType.SchemaColumn.name: + +name + (`string `_) A unique name -within the schema type- for the column + + +.. _api_field_flyteidl.core.SchemaType.SchemaColumn.type: + +type + (:ref:`flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType `) The column type. This allows a limited set of types currently. + + + +.. _api_enum_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType: + +Enum flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType +----------------------------------------------------------- + +`[flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType proto] `_ + + +.. _api_enum_value_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType.INTEGER: + +INTEGER + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType.FLOAT: + +FLOAT + ⁣ + +.. _api_enum_value_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType.STRING: + +STRING + ⁣ + +.. _api_enum_value_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType.BOOLEAN: + +BOOLEAN + ⁣ + +.. _api_enum_value_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType.DATETIME: + +DATETIME + ⁣ + +.. _api_enum_value_flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType.DURATION: + +DURATION + ⁣ + + + +.. _api_msg_flyteidl.core.BlobType: + +flyteidl.core.BlobType +---------------------- + +`[flyteidl.core.BlobType proto] `_ + +Defines type behavior for blob objects + +.. code-block:: json + + { + "format": "...", + "dimensionality": "..." + } + +.. _api_field_flyteidl.core.BlobType.format: + +format + (`string `_) Format can be a free form string understood by SDK/UI etc like + csv, parquet etc + + +.. _api_field_flyteidl.core.BlobType.dimensionality: + +dimensionality + (:ref:`flyteidl.core.BlobType.BlobDimensionality `) + + +.. _api_enum_flyteidl.core.BlobType.BlobDimensionality: + +Enum flyteidl.core.BlobType.BlobDimensionality +---------------------------------------------- + +`[flyteidl.core.BlobType.BlobDimensionality proto] `_ + + +.. _api_enum_value_flyteidl.core.BlobType.BlobDimensionality.SINGLE: + +SINGLE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.BlobType.BlobDimensionality.MULTIPART: + +MULTIPART + ⁣ + + +.. _api_msg_flyteidl.core.LiteralType: + +flyteidl.core.LiteralType +------------------------- + +`[flyteidl.core.LiteralType proto] `_ + +Defines a strong type to allow type checking between interfaces. + +.. code-block:: json + + { + "simple": "...", + "schema": "{...}", + "collection_type": "{...}", + "map_value_type": "{...}", + "blob": "{...}", + "metadata": "{...}" + } + +.. _api_field_flyteidl.core.LiteralType.simple: + +simple + (:ref:`flyteidl.core.SimpleType `) A simple type that can be compared one-to-one with another. + + + + Only one of :ref:`simple `, :ref:`schema `, :ref:`collection_type `, :ref:`map_value_type `, :ref:`blob ` may be set. + +.. _api_field_flyteidl.core.LiteralType.schema: + +schema + (:ref:`flyteidl.core.SchemaType `) A complex type that requires matching of inner fields. + + + + Only one of :ref:`simple `, :ref:`schema `, :ref:`collection_type `, :ref:`map_value_type `, :ref:`blob ` may be set. + +.. _api_field_flyteidl.core.LiteralType.collection_type: + +collection_type + (:ref:`flyteidl.core.LiteralType `) Defines the type of the value of a collection. Only homogeneous collections are allowed. + + + + Only one of :ref:`simple `, :ref:`schema `, :ref:`collection_type `, :ref:`map_value_type `, :ref:`blob ` may be set. + +.. _api_field_flyteidl.core.LiteralType.map_value_type: + +map_value_type + (:ref:`flyteidl.core.LiteralType `) Defines the type of the value of a map type. The type of the key is always a string. + + + + Only one of :ref:`simple `, :ref:`schema `, :ref:`collection_type `, :ref:`map_value_type `, :ref:`blob ` may be set. + +.. _api_field_flyteidl.core.LiteralType.blob: + +blob + (:ref:`flyteidl.core.BlobType `) A blob might have specialized implementation details depending on associated metadata. + + + + Only one of :ref:`simple `, :ref:`schema `, :ref:`collection_type `, :ref:`map_value_type `, :ref:`blob ` may be set. + +.. _api_field_flyteidl.core.LiteralType.metadata: + +metadata + (:ref:`google.protobuf.Struct `) This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + consumers to identify special behavior or display extended information for the type. + + + + +.. _api_msg_flyteidl.core.OutputReference: + +flyteidl.core.OutputReference +----------------------------- + +`[flyteidl.core.OutputReference proto] `_ + +A reference to an output produced by a node. The type can be retrieved -and validated- from +the underlying interface of the node. + +.. code-block:: json + + { + "node_id": "...", + "var": "..." + } + +.. _api_field_flyteidl.core.OutputReference.node_id: + +node_id + (`string `_) Node id must exist at the graph layer. + + +.. _api_field_flyteidl.core.OutputReference.var: + +var + (`string `_) Variable name must refer to an output variable for the node. + + + + +.. _api_msg_flyteidl.core.Error: + +flyteidl.core.Error +------------------- + +`[flyteidl.core.Error proto] `_ + +Represents an error thrown from a node. + +.. code-block:: json + + { + "failed_node_id": "...", + "message": "..." + } + +.. _api_field_flyteidl.core.Error.failed_node_id: + +failed_node_id + (`string `_) The node id that threw the error. + + +.. _api_field_flyteidl.core.Error.message: + +message + (`string `_) Error message thrown. + + + +.. _api_enum_flyteidl.core.SimpleType: + +Enum flyteidl.core.SimpleType +----------------------------- + +`[flyteidl.core.SimpleType proto] `_ + +Define a set of simple types. + +.. _api_enum_value_flyteidl.core.SimpleType.NONE: + +NONE + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.INTEGER: + +INTEGER + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.FLOAT: + +FLOAT + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.STRING: + +STRING + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.BOOLEAN: + +BOOLEAN + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.DATETIME: + +DATETIME + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.DURATION: + +DURATION + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.BINARY: + +BINARY + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.ERROR: + +ERROR + ⁣ + +.. _api_enum_value_flyteidl.core.SimpleType.STRUCT: + +STRUCT + ⁣ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/workflow.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/workflow.proto.rst new file mode 100644 index 0000000000..38f672577a --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/workflow.proto.rst @@ -0,0 +1,411 @@ +.. _api_file_flyteidl/core/workflow.proto: + +workflow.proto +============================ + +.. _api_msg_flyteidl.core.IfBlock: + +flyteidl.core.IfBlock +--------------------- + +`[flyteidl.core.IfBlock proto] `_ + +Defines a condition and the execution unit that should be executed if the condition is satisfied. + +.. code-block:: json + + { + "condition": "{...}", + "then_node": "{...}" + } + +.. _api_field_flyteidl.core.IfBlock.condition: + +condition + (:ref:`flyteidl.core.BooleanExpression `) + +.. _api_field_flyteidl.core.IfBlock.then_node: + +then_node + (:ref:`flyteidl.core.Node `) + + + +.. _api_msg_flyteidl.core.IfElseBlock: + +flyteidl.core.IfElseBlock +------------------------- + +`[flyteidl.core.IfElseBlock proto] `_ + +Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +If no conditions were satisfied, the else_node or the error will execute. + +.. code-block:: json + + { + "case": "{...}", + "other": [], + "else_node": "{...}", + "error": "{...}" + } + +.. _api_field_flyteidl.core.IfElseBlock.case: + +case + (:ref:`flyteidl.core.IfBlock `) required. First condition to evaluate. + + +.. _api_field_flyteidl.core.IfElseBlock.other: + +other + (:ref:`flyteidl.core.IfBlock `) optional. Additional branches to evaluate. + + +.. _api_field_flyteidl.core.IfElseBlock.else_node: + +else_node + (:ref:`flyteidl.core.Node `) The node to execute in case none of the branches were taken. + + required. + + + Only one of :ref:`else_node `, :ref:`error ` may be set. + +.. _api_field_flyteidl.core.IfElseBlock.error: + +error + (:ref:`flyteidl.core.Error `) An error to throw in case none of the branches were taken. + + required. + + + Only one of :ref:`else_node `, :ref:`error ` may be set. + + + +.. _api_msg_flyteidl.core.BranchNode: + +flyteidl.core.BranchNode +------------------------ + +`[flyteidl.core.BranchNode proto] `_ + +BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives). + +.. code-block:: json + + { + "if_else": "{...}" + } + +.. _api_field_flyteidl.core.BranchNode.if_else: + +if_else + (:ref:`flyteidl.core.IfElseBlock `) required + + + + +.. _api_msg_flyteidl.core.TaskNode: + +flyteidl.core.TaskNode +---------------------- + +`[flyteidl.core.TaskNode proto] `_ + +Refers to the task that the Node is to execute. + +.. code-block:: json + + { + "reference_id": "{...}" + } + +.. _api_field_flyteidl.core.TaskNode.reference_id: + +reference_id + (:ref:`flyteidl.core.Identifier `) A globally unique identifier for the task. + + + + + +.. _api_msg_flyteidl.core.WorkflowNode: + +flyteidl.core.WorkflowNode +-------------------------- + +`[flyteidl.core.WorkflowNode proto] `_ + +Refers to a the workflow the node is to execute. + +.. code-block:: json + + { + "launchplan_ref": "{...}", + "sub_workflow_ref": "{...}" + } + +.. _api_field_flyteidl.core.WorkflowNode.launchplan_ref: + +launchplan_ref + (:ref:`flyteidl.core.Identifier `) A globally unique identifier for the launch plan. + + + + Only one of :ref:`launchplan_ref `, :ref:`sub_workflow_ref ` may be set. + +.. _api_field_flyteidl.core.WorkflowNode.sub_workflow_ref: + +sub_workflow_ref + (:ref:`flyteidl.core.Identifier `) Reference to a subworkflow, that should be defined with the compiler context + + + + Only one of :ref:`launchplan_ref `, :ref:`sub_workflow_ref ` may be set. + + + +.. _api_msg_flyteidl.core.NodeMetadata: + +flyteidl.core.NodeMetadata +-------------------------- + +`[flyteidl.core.NodeMetadata proto] `_ + +Defines extra information about the Node. + +.. code-block:: json + + { + "name": "...", + "timeout": "{...}", + "retries": "{...}" + } + +.. _api_field_flyteidl.core.NodeMetadata.name: + +name + (`string `_) A friendly name for the Node + + +.. _api_field_flyteidl.core.NodeMetadata.timeout: + +timeout + (:ref:`google.protobuf.Duration `) The overall timeout of a task. + + +.. _api_field_flyteidl.core.NodeMetadata.retries: + +retries + (:ref:`flyteidl.core.RetryStrategy `) Number of retries per task. + + + + +.. _api_msg_flyteidl.core.Alias: + +flyteidl.core.Alias +------------------- + +`[flyteidl.core.Alias proto] `_ + +Links a variable to an alias. + +.. code-block:: json + + { + "var": "...", + "alias": "..." + } + +.. _api_field_flyteidl.core.Alias.var: + +var + (`string `_) Must match one of the output variable names on a node. + + +.. _api_field_flyteidl.core.Alias.alias: + +alias + (`string `_) A workflow-level unique alias that downstream nodes can refer to in their input. + + + + +.. _api_msg_flyteidl.core.Node: + +flyteidl.core.Node +------------------ + +`[flyteidl.core.Node proto] `_ + +A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +node. + +.. code-block:: json + + { + "id": "...", + "metadata": "{...}", + "inputs": [], + "upstream_node_ids": [], + "output_aliases": [], + "task_node": "{...}", + "workflow_node": "{...}", + "branch_node": "{...}" + } + +.. _api_field_flyteidl.core.Node.id: + +id + (`string `_) A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved + node ids that cannot be used by other nodes. + + +.. _api_field_flyteidl.core.Node.metadata: + +metadata + (:ref:`flyteidl.core.NodeMetadata `) Extra metadata about the node. + + +.. _api_field_flyteidl.core.Node.inputs: + +inputs + (:ref:`flyteidl.core.Binding `) Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + must be fullfilled. + + +.. _api_field_flyteidl.core.Node.upstream_node_ids: + +upstream_node_ids + (`string `_) optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its + upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs + field. + + +.. _api_field_flyteidl.core.Node.output_aliases: + +output_aliases + (:ref:`flyteidl.core.Alias `) optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + nodes outputs using the alias if one's specified. + + +.. _api_field_flyteidl.core.Node.task_node: + +task_node + (:ref:`flyteidl.core.TaskNode `) Information about the Task to execute in this node. + + Information about the target to execute in this node. + + + Only one of :ref:`task_node `, :ref:`workflow_node `, :ref:`branch_node ` may be set. + +.. _api_field_flyteidl.core.Node.workflow_node: + +workflow_node + (:ref:`flyteidl.core.WorkflowNode `) Information about the Workflow to execute in this mode. + + Information about the target to execute in this node. + + + Only one of :ref:`task_node `, :ref:`workflow_node `, :ref:`branch_node ` may be set. + +.. _api_field_flyteidl.core.Node.branch_node: + +branch_node + (:ref:`flyteidl.core.BranchNode `) Information about the branch node to evaluate in this node. + + Information about the target to execute in this node. + + + Only one of :ref:`task_node `, :ref:`workflow_node `, :ref:`branch_node ` may be set. + + + +.. _api_msg_flyteidl.core.WorkflowMetadata: + +flyteidl.core.WorkflowMetadata +------------------------------ + +`[flyteidl.core.WorkflowMetadata proto] `_ + +Metadata for the entire workflow. +To be used in the future. + +.. code-block:: json + + {} + + + + +.. _api_msg_flyteidl.core.WorkflowTemplate: + +flyteidl.core.WorkflowTemplate +------------------------------ + +`[flyteidl.core.WorkflowTemplate proto] `_ + +Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +directed acyclic graph. + +.. code-block:: json + + { + "id": "{...}", + "metadata": "{...}", + "interface": "{...}", + "nodes": [], + "outputs": [], + "failure_node": "{...}" + } + +.. _api_field_flyteidl.core.WorkflowTemplate.id: + +id + (:ref:`flyteidl.core.Identifier `) This is an autogenerated id by the system. The id is globally unique across the system. + + +.. _api_field_flyteidl.core.WorkflowTemplate.metadata: + +metadata + (:ref:`flyteidl.core.WorkflowMetadata `) Extra metadata about the workflow. + + +.. _api_field_flyteidl.core.WorkflowTemplate.interface: + +interface + (:ref:`flyteidl.core.TypedInterface `) Defines a strongly typed interface for the Workflow. This can include some optional parameters. + + +.. _api_field_flyteidl.core.WorkflowTemplate.nodes: + +nodes + (:ref:`flyteidl.core.Node `) A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs. + + +.. _api_field_flyteidl.core.WorkflowTemplate.outputs: + +outputs + (:ref:`flyteidl.core.Binding `) A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + bind final outputs. + Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + outputs from the output of a task. + + +.. _api_field_flyteidl.core.WorkflowTemplate.failure_node: + +failure_node + (:ref:`flyteidl.core.Node `) optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + The interface of this node must match the Workflow interface with an additional input named "error" of type + pb.lyft.flyte.core.Error. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/core/workflow_closure.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/core/workflow_closure.proto.rst new file mode 100644 index 0000000000..1f06362d6b --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/core/workflow_closure.proto.rst @@ -0,0 +1,35 @@ +.. _api_file_flyteidl/core/workflow_closure.proto: + +workflow_closure.proto +==================================== + +.. _api_msg_flyteidl.core.WorkflowClosure: + +flyteidl.core.WorkflowClosure +----------------------------- + +`[flyteidl.core.WorkflowClosure proto] `_ + +Defines an enclosed package of workflow and tasks it references. + +.. code-block:: json + + { + "workflow": "{...}", + "tasks": [] + } + +.. _api_field_flyteidl.core.WorkflowClosure.workflow: + +workflow + (:ref:`flyteidl.core.WorkflowTemplate `) equired. Workflow template. + + +.. _api_field_flyteidl.core.WorkflowClosure.tasks: + +tasks + (:ref:`flyteidl.core.TaskTemplate `) ptional. A collection of tasks referenced by the workflow. Only needed if the workflow + references tasks. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/event/event.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/event/event.proto.rst new file mode 100644 index 0000000000..6252fd40f2 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/event/event.proto.rst @@ -0,0 +1,310 @@ +.. _api_file_flyteidl/event/event.proto: + +event.proto +========================== + +.. _api_msg_flyteidl.event.WorkflowExecutionEvent: + +flyteidl.event.WorkflowExecutionEvent +------------------------------------- + +`[flyteidl.event.WorkflowExecutionEvent proto] `_ + + +.. code-block:: json + + { + "execution_id": "{...}", + "producer_id": "...", + "phase": "...", + "occurred_at": "{...}", + "output_uri": "...", + "error": "{...}" + } + +.. _api_field_flyteidl.event.WorkflowExecutionEvent.execution_id: + +execution_id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) Workflow execution id + + +.. _api_field_flyteidl.event.WorkflowExecutionEvent.producer_id: + +producer_id + (`string `_) the id of the originator (Propeller) of the event + + +.. _api_field_flyteidl.event.WorkflowExecutionEvent.phase: + +phase + (:ref:`flyteidl.core.WorkflowExecution.Phase `) + +.. _api_field_flyteidl.event.WorkflowExecutionEvent.occurred_at: + +occurred_at + (:ref:`google.protobuf.Timestamp `) This timestamp represents when the original event occurred, it is generated + by the executor of the workflow. + + +.. _api_field_flyteidl.event.WorkflowExecutionEvent.output_uri: + +output_uri + (`string `_) URL to the output of the execution, it encodes all the information + including Cloud source provider. ie., s3://... + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.event.WorkflowExecutionEvent.error: + +error + (:ref:`flyteidl.core.ExecutionError `) Error information for the execution + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + + + +.. _api_msg_flyteidl.event.NodeExecutionEvent: + +flyteidl.event.NodeExecutionEvent +--------------------------------- + +`[flyteidl.event.NodeExecutionEvent proto] `_ + + +.. code-block:: json + + { + "id": "{...}", + "producer_id": "...", + "phase": "...", + "occurred_at": "{...}", + "input_uri": "...", + "output_uri": "...", + "error": "{...}", + "workflow_node_metadata": "{...}", + "parent_task_metadata": "{...}" + } + +.. _api_field_flyteidl.event.NodeExecutionEvent.id: + +id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) Unique identifier for this node execution + + +.. _api_field_flyteidl.event.NodeExecutionEvent.producer_id: + +producer_id + (`string `_) the id of the originator (Propeller) of the event + + +.. _api_field_flyteidl.event.NodeExecutionEvent.phase: + +phase + (:ref:`flyteidl.core.NodeExecution.Phase `) + +.. _api_field_flyteidl.event.NodeExecutionEvent.occurred_at: + +occurred_at + (:ref:`google.protobuf.Timestamp `) This timestamp represents when the original event occurred, it is generated + by the executor of the node. + + +.. _api_field_flyteidl.event.NodeExecutionEvent.input_uri: + +input_uri + (`string `_) + +.. _api_field_flyteidl.event.NodeExecutionEvent.output_uri: + +output_uri + (`string `_) URL to the output of the execution, it encodes all the information + including Cloud source provider. ie., s3://... + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.event.NodeExecutionEvent.error: + +error + (:ref:`flyteidl.core.ExecutionError `) Error information for the execution + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.event.NodeExecutionEvent.workflow_node_metadata: + +workflow_node_metadata + (:ref:`flyteidl.event.WorkflowNodeMetadata `) + Additional metadata to do with this event's node target based + on the node type + + +.. _api_field_flyteidl.event.NodeExecutionEvent.parent_task_metadata: + +parent_task_metadata + (:ref:`flyteidl.event.ParentTaskExecutionMetadata `) Specifies which task (if any) launched this node. + + + + +.. _api_msg_flyteidl.event.WorkflowNodeMetadata: + +flyteidl.event.WorkflowNodeMetadata +----------------------------------- + +`[flyteidl.event.WorkflowNodeMetadata proto] `_ + +For Workflow Nodes we need to send information about the workflow that's launched + +.. code-block:: json + + { + "execution_id": "{...}" + } + +.. _api_field_flyteidl.event.WorkflowNodeMetadata.execution_id: + +execution_id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) + + + +.. _api_msg_flyteidl.event.ParentTaskExecutionMetadata: + +flyteidl.event.ParentTaskExecutionMetadata +------------------------------------------ + +`[flyteidl.event.ParentTaskExecutionMetadata proto] `_ + + +.. code-block:: json + + { + "id": "{...}" + } + +.. _api_field_flyteidl.event.ParentTaskExecutionMetadata.id: + +id + (:ref:`flyteidl.core.TaskExecutionIdentifier `) + + + +.. _api_msg_flyteidl.event.TaskExecutionEvent: + +flyteidl.event.TaskExecutionEvent +--------------------------------- + +`[flyteidl.event.TaskExecutionEvent proto] `_ + +Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. + +.. code-block:: json + + { + "task_id": "{...}", + "parent_node_execution_id": "{...}", + "retry_attempt": "...", + "phase": "...", + "producer_id": "...", + "logs": [], + "occurred_at": "{...}", + "input_uri": "...", + "output_uri": "...", + "error": "{...}", + "custom_info": "{...}", + "phase_version": "..." + } + +.. _api_field_flyteidl.event.TaskExecutionEvent.task_id: + +task_id + (:ref:`flyteidl.core.Identifier `) ID of the task. In combination with the retryAttempt this will indicate + the task execution uniquely for a given parent node execution. + + +.. _api_field_flyteidl.event.TaskExecutionEvent.parent_node_execution_id: + +parent_node_execution_id + (:ref:`flyteidl.core.NodeExecutionIdentifier `) A task execution is always kicked off by a node execution, the event consumer + will use the parent_id to relate the task to it's parent node execution + + +.. _api_field_flyteidl.event.TaskExecutionEvent.retry_attempt: + +retry_attempt + (`uint32 `_) retry attempt number for this task, ie., 2 for the second attempt + + +.. _api_field_flyteidl.event.TaskExecutionEvent.phase: + +phase + (:ref:`flyteidl.core.TaskExecution.Phase `) Phase associated with the event + + +.. _api_field_flyteidl.event.TaskExecutionEvent.producer_id: + +producer_id + (`string `_) id of the process that sent this event, mainly for trace debugging + + +.. _api_field_flyteidl.event.TaskExecutionEvent.logs: + +logs + (:ref:`flyteidl.core.TaskLog `) log information for the task execution + + +.. _api_field_flyteidl.event.TaskExecutionEvent.occurred_at: + +occurred_at + (:ref:`google.protobuf.Timestamp `) This timestamp represents when the original event occurred, it is generated + by the executor of the task. + + +.. _api_field_flyteidl.event.TaskExecutionEvent.input_uri: + +input_uri + (`string `_) URI of the input file, it encodes all the information + including Cloud source provider. ie., s3://... + + +.. _api_field_flyteidl.event.TaskExecutionEvent.output_uri: + +output_uri + (`string `_) URI to the output of the execution, it will be in a format that encodes all the information + including Cloud source provider. ie., s3://... + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.event.TaskExecutionEvent.error: + +error + (:ref:`flyteidl.core.ExecutionError `) Error information for the execution + + + + Only one of :ref:`output_uri `, :ref:`error ` may be set. + +.. _api_field_flyteidl.event.TaskExecutionEvent.custom_info: + +custom_info + (:ref:`google.protobuf.Struct `) Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + + +.. _api_field_flyteidl.event.TaskExecutionEvent.phase_version: + +phase_version + (`uint32 `_) Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + that should be recorded regardless of the lack of phase change. + The version field should be incremented when metadata changes across the duration of an individual phase. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/event/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/event/index.rst new file mode 100644 index 0000000000..2ca8562ae4 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/event/index.rst @@ -0,0 +1,27 @@ +############################################## +Flyte Internal and External Eventing interface +############################################## + +This section contains all the protocol buffer definitions for Internal and +External Eventing system. + +Flyte Internal Eventing +======================== + +This is the interface used by the dataplane (execution engine) to communicate +workflow and task progress back to the **control plane** admin service. + +Flyte External Eventing - Event Egress +======================================= + +This refers to the interface for all the event messages exiting from the Flyte +**control plane** and delivered on the configured pubsub channel. + + + +.. toctree:: + :maxdepth: 1 + :caption: event + :name: eventtoc + + event.proto diff --git a/flyteidl/gen/pb-protodoc/flyteidl/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/index.rst new file mode 100644 index 0000000000..ddf2781d24 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/index.rst @@ -0,0 +1,18 @@ +Flyte Language and API specification +==================================== + +The protocol buffers defined here provide a high level specification of various +entities in Flyte control plane and data plane. It provides detailed definition +and documentation of all these entities. + + +.. toctree:: + :maxdepth: 1 + :caption: flyteidl + :name: flyteidltoc + + admin/index + core/index + event/index + plugins/index + service/index diff --git a/flyteidl/gen/pb-protodoc/flyteidl/plugins/array_job.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/plugins/array_job.proto.rst new file mode 100644 index 0000000000..4b8d867952 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/plugins/array_job.proto.rst @@ -0,0 +1,48 @@ +.. _api_file_flyteidl/plugins/array_job.proto: + +array_job.proto +================================ + +.. _api_msg_flyteidl.plugins.ArrayJob: + +flyteidl.plugins.ArrayJob +------------------------- + +`[flyteidl.plugins.ArrayJob proto] `_ + +Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +will be executed concurrently. + +.. code-block:: json + + { + "parallelism": "...", + "size": "...", + "min_successes": "..." + } + +.. _api_field_flyteidl.plugins.ArrayJob.parallelism: + +parallelism + (`int64 `_) Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an + optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + running instances might be more. This has to be a positive number if assigned. Default value is size. + + +.. _api_field_flyteidl.plugins.ArrayJob.size: + +size + (`int64 `_) Defines the number of instances to launch at most. This number should match the size of the input if the job + requires processing of all input data. This has to be a positive number. + +required. + + +.. _api_field_flyteidl.plugins.ArrayJob.min_successes: + +min_successes + (`int64 `_) An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + assigned. Default value is size. + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/plugins/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/plugins/index.rst new file mode 100644 index 0000000000..333cf659b5 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/plugins/index.rst @@ -0,0 +1,17 @@ +Flyte Task Plugins +================== + +These protocol buffer specifications provide information about the various Task +Plugins available in the Flyte system. + + +.. toctree:: + :maxdepth: 1 + :caption: plugins + :name: pluginstoc + + array_job.proto + qubole.proto + sidecar.proto + spark.proto + waitable.proto diff --git a/flyteidl/gen/pb-protodoc/flyteidl/plugins/qubole.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/plugins/qubole.proto.rst new file mode 100644 index 0000000000..124e3f2d9c --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/plugins/qubole.proto.rst @@ -0,0 +1,95 @@ +.. _api_file_flyteidl/plugins/qubole.proto: + +qubole.proto +============================= + +.. _api_msg_flyteidl.plugins.HiveQuery: + +flyteidl.plugins.HiveQuery +-------------------------- + +`[flyteidl.plugins.HiveQuery proto] `_ + +Defines a query to execute on a hive cluster. + +.. code-block:: json + + { + "query": "...", + "timeout_sec": "...", + "retryCount": "..." + } + +.. _api_field_flyteidl.plugins.HiveQuery.query: + +query + (`string `_) + +.. _api_field_flyteidl.plugins.HiveQuery.timeout_sec: + +timeout_sec + (`uint32 `_) + +.. _api_field_flyteidl.plugins.HiveQuery.retryCount: + +retryCount + (`uint32 `_) + + + +.. _api_msg_flyteidl.plugins.HiveQueryCollection: + +flyteidl.plugins.HiveQueryCollection +------------------------------------ + +`[flyteidl.plugins.HiveQueryCollection proto] `_ + +Defines a collection of hive queries. + +.. code-block:: json + + { + "queries": [] + } + +.. _api_field_flyteidl.plugins.HiveQueryCollection.queries: + +queries + (:ref:`flyteidl.plugins.HiveQuery `) + + + +.. _api_msg_flyteidl.plugins.QuboleHiveJob: + +flyteidl.plugins.QuboleHiveJob +------------------------------ + +`[flyteidl.plugins.QuboleHiveJob proto] `_ + +This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +of a hive task's TaskTemplate + +.. code-block:: json + + { + "cluster_label": "...", + "query_collection": "{...}", + "tags": [] + } + +.. _api_field_flyteidl.plugins.QuboleHiveJob.cluster_label: + +cluster_label + (`string `_) + +.. _api_field_flyteidl.plugins.QuboleHiveJob.query_collection: + +query_collection + (:ref:`flyteidl.plugins.HiveQueryCollection `) + +.. _api_field_flyteidl.plugins.QuboleHiveJob.tags: + +tags + (`string `_) + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/plugins/sidecar.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/plugins/sidecar.proto.rst new file mode 100644 index 0000000000..5a1b645556 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/plugins/sidecar.proto.rst @@ -0,0 +1,34 @@ +.. _api_file_flyteidl/plugins/sidecar.proto: + +sidecar.proto +============================== + +.. _api_msg_flyteidl.plugins.SidecarJob: + +flyteidl.plugins.SidecarJob +--------------------------- + +`[flyteidl.plugins.SidecarJob proto] `_ + +A sidecar job brings up the desired pod_spec. +The plugin executor is responsible for keeping the pod alive until the primary container terminates +or the task itself times out. + +.. code-block:: json + + { + "pod_spec": "{...}", + "primary_container_name": "..." + } + +.. _api_field_flyteidl.plugins.SidecarJob.pod_spec: + +pod_spec + (:ref:`k8s.io.api.core.v1.PodSpec `) + +.. _api_field_flyteidl.plugins.SidecarJob.primary_container_name: + +primary_container_name + (`string `_) + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/plugins/spark.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/plugins/spark.proto.rst new file mode 100644 index 0000000000..542de05354 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/plugins/spark.proto.rst @@ -0,0 +1,100 @@ +.. _api_file_flyteidl/plugins/spark.proto: + +spark.proto +============================ + +.. _api_msg_flyteidl.plugins.SparkApplication: + +flyteidl.plugins.SparkApplication +--------------------------------- + +`[flyteidl.plugins.SparkApplication proto] `_ + + +.. code-block:: json + + {} + + + +.. _api_enum_flyteidl.plugins.SparkApplication.Type: + +Enum flyteidl.plugins.SparkApplication.Type +------------------------------------------- + +`[flyteidl.plugins.SparkApplication.Type proto] `_ + + +.. _api_enum_value_flyteidl.plugins.SparkApplication.Type.PYTHON: + +PYTHON + *(DEFAULT)* ⁣ + +.. _api_enum_value_flyteidl.plugins.SparkApplication.Type.JAVA: + +JAVA + ⁣ + +.. _api_enum_value_flyteidl.plugins.SparkApplication.Type.SCALA: + +SCALA + ⁣ + +.. _api_enum_value_flyteidl.plugins.SparkApplication.Type.R: + +R + ⁣ + + +.. _api_msg_flyteidl.plugins.SparkJob: + +flyteidl.plugins.SparkJob +------------------------- + +`[flyteidl.plugins.SparkJob proto] `_ + +Custom Proto for Spark Plugin. + +.. code-block:: json + + { + "applicationType": "...", + "mainApplicationFile": "...", + "mainClass": "...", + "sparkConf": "{...}", + "hadoopConf": "{...}", + "executorPath": "..." + } + +.. _api_field_flyteidl.plugins.SparkJob.applicationType: + +applicationType + (:ref:`flyteidl.plugins.SparkApplication.Type `) + +.. _api_field_flyteidl.plugins.SparkJob.mainApplicationFile: + +mainApplicationFile + (`string `_) + +.. _api_field_flyteidl.plugins.SparkJob.mainClass: + +mainClass + (`string `_) + +.. _api_field_flyteidl.plugins.SparkJob.sparkConf: + +sparkConf + (map<`string `_, `string `_>) + +.. _api_field_flyteidl.plugins.SparkJob.hadoopConf: + +hadoopConf + (map<`string `_, `string `_>) + +.. _api_field_flyteidl.plugins.SparkJob.executorPath: + +executorPath + (`string `_) + + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/plugins/waitable.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/plugins/waitable.proto.rst new file mode 100644 index 0000000000..0856223acc --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/plugins/waitable.proto.rst @@ -0,0 +1,38 @@ +.. _api_file_flyteidl/plugins/waitable.proto: + +waitable.proto +=============================== + +.. _api_msg_flyteidl.plugins.Waitable: + +flyteidl.plugins.Waitable +------------------------- + +`[flyteidl.plugins.Waitable proto] `_ + +Represents an Execution that was launched and could be waited on. + +.. code-block:: json + + { + "wf_exec_id": "{...}", + "phase": "...", + "workflow_id": "..." + } + +.. _api_field_flyteidl.plugins.Waitable.wf_exec_id: + +wf_exec_id + (:ref:`flyteidl.core.WorkflowExecutionIdentifier `) + +.. _api_field_flyteidl.plugins.Waitable.phase: + +phase + (:ref:`flyteidl.core.WorkflowExecution.Phase `) + +.. _api_field_flyteidl.plugins.Waitable.workflow_id: + +workflow_id + (`string `_) + + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/service/admin.proto.rst b/flyteidl/gen/pb-protodoc/flyteidl/service/admin.proto.rst new file mode 100644 index 0000000000..1d5dce78f0 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/service/admin.proto.rst @@ -0,0 +1,5 @@ +.. _api_file_flyteidl/service/admin.proto: + +admin.proto +============================ + diff --git a/flyteidl/gen/pb-protodoc/flyteidl/service/index.rst b/flyteidl/gen/pb-protodoc/flyteidl/service/index.rst new file mode 100644 index 0000000000..9e401a9c32 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/flyteidl/service/index.rst @@ -0,0 +1,13 @@ +################################################### +REST and gRPC interface for the Flyte Admin Service +################################################### + +This section provides all endpoint defintions that are implemented by the Admin +service. + +.. toctree:: + :maxdepth: 1 + :caption: service + :name: servicetoc + + admin.proto diff --git a/flyteidl/gen/pb-protodoc/google/api/annotations.proto.rst b/flyteidl/gen/pb-protodoc/google/api/annotations.proto.rst new file mode 100644 index 0000000000..0574cad065 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/api/annotations.proto.rst @@ -0,0 +1,19 @@ +.. _api_file_google/api/annotations.proto: + +annotations.proto +============================ + +Copyright (c) 2015, Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + diff --git a/flyteidl/gen/pb-protodoc/google/api/http.proto.rst b/flyteidl/gen/pb-protodoc/google/api/http.proto.rst new file mode 100644 index 0000000000..f9a5c026cc --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/api/http.proto.rst @@ -0,0 +1,437 @@ +.. _api_file_google/api/http.proto: + +http.proto +===================== + +Copyright 2018 Google LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +.. _api_msg_google.api.Http: + +google.api.Http +--------------- + +`[google.api.Http proto] `_ + +Defines the HTTP configuration for an API service. It contains a list of +[HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method +to one or more HTTP REST API methods. + +.. code-block:: json + + { + "rules": [], + "fully_decode_reserved_expansion": "..." + } + +.. _api_field_google.api.Http.rules: + +rules + (:ref:`google.api.HttpRule `) A list of HTTP configuration rules that apply to individual API methods. + + **NOTE:** All service configuration rules follow "last one wins" order. + + +.. _api_field_google.api.Http.fully_decode_reserved_expansion: + +fully_decode_reserved_expansion + (`bool `_) When set to true, URL path parmeters will be fully URI-decoded except in + cases of single segment matches in reserved expansion, where "%2F" will be + left encoded. + + The default behavior is to not decode RFC 6570 reserved characters in multi + segment matches. + + + + +.. _api_msg_google.api.HttpRule: + +google.api.HttpRule +------------------- + +`[google.api.HttpRule proto] `_ + +`HttpRule` defines the mapping of an RPC method to one or more HTTP +REST API methods. The mapping specifies how different portions of the RPC +request message are mapped to URL path, URL query parameters, and +HTTP request body. The mapping is typically specified as an +`google.api.http` annotation on the RPC method, +see "google/api/annotations.proto" for details. + +The mapping consists of a field specifying the path template and +method kind. The path template can refer to fields in the request +message, as in the example below which describes a REST GET +operation on a resource collection of messages: + + + service Messaging { + rpc GetMessage(GetMessageRequest) returns (Message) { + option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; + } + } + message GetMessageRequest { + message SubMessage { + string subfield = 1; + } + string message_id = 1; // mapped to the URL + SubMessage sub = 2; // `sub.subfield` is url-mapped + } + message Message { + string text = 1; // content of the resource + } + +The same http annotation can alternatively be expressed inside the +`GRPC API Configuration` YAML file. + + http: + rules: + - selector: .Messaging.GetMessage + get: /v1/messages/{message_id}/{sub.subfield} + +This definition enables an automatic, bidrectional mapping of HTTP +JSON to RPC. Example: + +HTTP | RPC +-----|----- +`GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` + +In general, not only fields but also field paths can be referenced +from a path pattern. Fields mapped to the path pattern cannot be +repeated and must have a primitive (non-message) type. + +Any fields in the request message which are not bound by the path +pattern automatically become (optional) HTTP query +parameters. Assume the following definition of the request message: + + + service Messaging { + rpc GetMessage(GetMessageRequest) returns (Message) { + option (google.api.http).get = "/v1/messages/{message_id}"; + } + } + message GetMessageRequest { + message SubMessage { + string subfield = 1; + } + string message_id = 1; // mapped to the URL + int64 revision = 2; // becomes a parameter + SubMessage sub = 3; // `sub.subfield` becomes a parameter + } + + +This enables a HTTP JSON to RPC mapping as below: + +HTTP | RPC +-----|----- +`GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))` + +Note that fields which are mapped to HTTP parameters must have a +primitive type or a repeated primitive type. Message types are not +allowed. In the case of a repeated type, the parameter can be +repeated in the URL, as in `...?param=A¶m=B`. + +For HTTP method kinds which allow a request body, the `body` field +specifies the mapping. Consider a REST update method on the +message resource collection: + + + service Messaging { + rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + option (google.api.http) = { + put: "/v1/messages/{message_id}" + body: "message" + }; + } + } + message UpdateMessageRequest { + string message_id = 1; // mapped to the URL + Message message = 2; // mapped to the body + } + + +The following HTTP JSON to RPC mapping is enabled, where the +representation of the JSON in the request body is determined by +protos JSON encoding: + +HTTP | RPC +-----|----- +`PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })` + +The special name `*` can be used in the body mapping to define that +every field not bound by the path template should be mapped to the +request body. This enables the following alternative definition of +the update method: + + service Messaging { + rpc UpdateMessage(Message) returns (Message) { + option (google.api.http) = { + put: "/v1/messages/{message_id}" + body: "*" + }; + } + } + message Message { + string message_id = 1; + string text = 2; + } + + +The following HTTP JSON to RPC mapping is enabled: + +HTTP | RPC +-----|----- +`PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")` + +Note that when using `*` in the body mapping, it is not possible to +have HTTP parameters, as all fields not bound by the path end in +the body. This makes this option more rarely used in practice of +defining REST APIs. The common usage of `*` is in custom methods +which don't use the URL at all for transferring data. + +It is possible to define multiple HTTP methods for one RPC by using +the `additional_bindings` option. Example: + + service Messaging { + rpc GetMessage(GetMessageRequest) returns (Message) { + option (google.api.http) = { + get: "/v1/messages/{message_id}" + additional_bindings { + get: "/v1/users/{user_id}/messages/{message_id}" + } + }; + } + } + message GetMessageRequest { + string message_id = 1; + string user_id = 2; + } + + +This enables the following two alternative HTTP JSON to RPC +mappings: + +HTTP | RPC +-----|----- +`GET /v1/messages/123456` | `GetMessage(message_id: "123456")` +`GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` + +# Rules for HTTP mapping + +The rules for mapping HTTP path, query parameters, and body fields +to the request message are as follows: + +1. The `body` field specifies either `*` or a field path, or is + omitted. If omitted, it indicates there is no HTTP request body. +2. Leaf fields (recursive expansion of nested messages in the + request) can be classified into three types: + (a) Matched in the URL template. + (b) Covered by body (if body is `*`, everything except (a) fields; + else everything under the body field) + (c) All other fields. +3. URL query parameters found in the HTTP request are mapped to (c) fields. +4. Any body sent with an HTTP request can contain only (b) fields. + +The syntax of the path template is as follows: + + Template = "/" Segments [ Verb ] ; + Segments = Segment { "/" Segment } ; + Segment = "*" | "**" | LITERAL | Variable ; + Variable = "{" FieldPath [ "=" Segments ] "}" ; + FieldPath = IDENT { "." IDENT } ; + Verb = ":" LITERAL ; + +The syntax `*` matches a single path segment. The syntax `**` matches zero +or more path segments, which must be the last part of the path except the +`Verb`. The syntax `LITERAL` matches literal text in the path. + +The syntax `Variable` matches part of the URL path as specified by its +template. A variable template must not contain other variables. If a variable +matches a single path segment, its template may be omitted, e.g. `{var}` +is equivalent to `{var=*}`. + +If a variable contains exactly one path segment, such as `"{var}"` or +`"{var=*}"`, when such a variable is expanded into a URL path, all characters +except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the +Discovery Document as `{var}`. + +If a variable contains one or more path segments, such as `"{var=foo/*}"` +or `"{var=**}"`, when such a variable is expanded into a URL path, all +characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables +show up in the Discovery Document as `{+var}`. + +NOTE: While the single segment variable matches the semantics of +[RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 +Simple String Expansion, the multi segment variable **does not** match +RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion +does not expand special characters like `?` and `#`, which would lead +to invalid URLs. + +NOTE: the field paths in variables and in the `body` must not refer to +repeated fields or map fields. + +.. code-block:: json + + { + "selector": "...", + "get": "...", + "put": "...", + "post": "...", + "delete": "...", + "patch": "...", + "custom": "{...}", + "body": "...", + "response_body": "...", + "additional_bindings": [] + } + +.. _api_field_google.api.HttpRule.selector: + +selector + (`string `_) Selects methods to which this rule applies. + + Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + + +.. _api_field_google.api.HttpRule.get: + +get + (`string `_) Used for listing and getting information about resources. + + Determines the URL pattern is matched by this rules. This pattern can be + used with any of the {get|put|post|delete|patch} methods. A custom method + can be defined using the 'custom' field. + + + Only one of :ref:`get `, :ref:`put `, :ref:`post `, :ref:`delete `, :ref:`patch `, :ref:`custom ` may be set. + +.. _api_field_google.api.HttpRule.put: + +put + (`string `_) Used for updating a resource. + + Determines the URL pattern is matched by this rules. This pattern can be + used with any of the {get|put|post|delete|patch} methods. A custom method + can be defined using the 'custom' field. + + + Only one of :ref:`get `, :ref:`put `, :ref:`post `, :ref:`delete `, :ref:`patch `, :ref:`custom ` may be set. + +.. _api_field_google.api.HttpRule.post: + +post + (`string `_) Used for creating a resource. + + Determines the URL pattern is matched by this rules. This pattern can be + used with any of the {get|put|post|delete|patch} methods. A custom method + can be defined using the 'custom' field. + + + Only one of :ref:`get `, :ref:`put `, :ref:`post `, :ref:`delete `, :ref:`patch `, :ref:`custom ` may be set. + +.. _api_field_google.api.HttpRule.delete: + +delete + (`string `_) Used for deleting a resource. + + Determines the URL pattern is matched by this rules. This pattern can be + used with any of the {get|put|post|delete|patch} methods. A custom method + can be defined using the 'custom' field. + + + Only one of :ref:`get `, :ref:`put `, :ref:`post `, :ref:`delete `, :ref:`patch `, :ref:`custom ` may be set. + +.. _api_field_google.api.HttpRule.patch: + +patch + (`string `_) Used for updating a resource. + + Determines the URL pattern is matched by this rules. This pattern can be + used with any of the {get|put|post|delete|patch} methods. A custom method + can be defined using the 'custom' field. + + + Only one of :ref:`get `, :ref:`put `, :ref:`post `, :ref:`delete `, :ref:`patch `, :ref:`custom ` may be set. + +.. _api_field_google.api.HttpRule.custom: + +custom + (:ref:`google.api.CustomHttpPattern `) The custom pattern is used for specifying an HTTP method that is not + included in the `pattern` field, such as HEAD, or "*" to leave the + HTTP method unspecified for this rule. The wild-card rule is useful + for services that provide content to Web (HTML) clients. + + Determines the URL pattern is matched by this rules. This pattern can be + used with any of the {get|put|post|delete|patch} methods. A custom method + can be defined using the 'custom' field. + + + Only one of :ref:`get `, :ref:`put `, :ref:`post `, :ref:`delete `, :ref:`patch `, :ref:`custom ` may be set. + +.. _api_field_google.api.HttpRule.body: + +body + (`string `_) The name of the request field whose value is mapped to the HTTP body, or + `*` for mapping all fields not captured by the path pattern to the HTTP + body. NOTE: the referred field must not be a repeated field and must be + present at the top-level of request message type. + + +.. _api_field_google.api.HttpRule.response_body: + +response_body + (`string `_) Optional. The name of the response field whose value is mapped to the HTTP + body of response. Other response fields are ignored. When + not set, the response message will be used as HTTP body of response. + + +.. _api_field_google.api.HttpRule.additional_bindings: + +additional_bindings + (:ref:`google.api.HttpRule `) Additional HTTP bindings for the selector. Nested bindings must + not contain an `additional_bindings` field themselves (that is, + the nesting may only be one level deep). + + + + +.. _api_msg_google.api.CustomHttpPattern: + +google.api.CustomHttpPattern +---------------------------- + +`[google.api.CustomHttpPattern proto] `_ + +A custom pattern is used for defining custom HTTP verb. + +.. code-block:: json + + { + "kind": "...", + "path": "..." + } + +.. _api_field_google.api.CustomHttpPattern.kind: + +kind + (`string `_) The name of this custom HTTP verb. + + +.. _api_field_google.api.CustomHttpPattern.path: + +path + (`string `_) The path matched by this custom verb. + + + diff --git a/flyteidl/gen/pb-protodoc/google/api/index.rst b/flyteidl/gen/pb-protodoc/google/api/index.rst new file mode 100644 index 0000000000..73c62ee264 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/api/index.rst @@ -0,0 +1,10 @@ +api +=== + +.. toctree:: + :maxdepth: 1 + :caption: api + :name: apitoc + + annotations.proto + http.proto diff --git a/flyteidl/gen/pb-protodoc/google/index.rst b/flyteidl/gen/pb-protodoc/google/index.rst new file mode 100644 index 0000000000..8c1d1e22b1 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/index.rst @@ -0,0 +1,10 @@ +google +====== + +.. toctree:: + :maxdepth: 1 + :caption: google + :name: googletoc + + api/index + protobuf/index diff --git a/flyteidl/gen/pb-protodoc/google/protobuf/any.proto.rst b/flyteidl/gen/pb-protodoc/google/protobuf/any.proto.rst new file mode 100644 index 0000000000..2c681e4ae7 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/protobuf/any.proto.rst @@ -0,0 +1,164 @@ +.. _api_file_google/protobuf/any.proto: + +any.proto +========================= + +Protocol Buffers - Google's data interchange format +Copyright 2008 Google Inc. All rights reserved. +https://developers.google.com/protocol-buffers/ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +.. _api_msg_google.protobuf.Any: + +google.protobuf.Any +------------------- + +`[google.protobuf.Any proto] `_ + +`Any` contains an arbitrary serialized protocol buffer message along with a +URL that describes the type of the serialized message. + +Protobuf library provides support to pack/unpack Any values in the form +of utility functions or additional generated methods of the Any type. + +Example 1: Pack and unpack a message in C++. + + Foo foo = ...; + Any any; + any.PackFrom(foo); + ... + if (any.UnpackTo(&foo)) { + ... + } + +Example 2: Pack and unpack a message in Java. + + Foo foo = ...; + Any any = Any.pack(foo); + ... + if (any.is(Foo.class)) { + foo = any.unpack(Foo.class); + } + + Example 3: Pack and unpack a message in Python. + + foo = Foo(...) + any = Any() + any.Pack(foo) + ... + if any.Is(Foo.DESCRIPTOR): + any.Unpack(foo) + ... + + Example 4: Pack and unpack a message in Go + + foo := &pb.Foo{...} + any, err := ptypes.MarshalAny(foo) + ... + foo := &pb.Foo{} + if err := ptypes.UnmarshalAny(any, foo); err != nil { + ... + } + +The pack methods provided by protobuf library will by default use +'type.googleapis.com/full.type.name' as the type URL and the unpack +methods only use the fully qualified type name after the last '/' +in the type URL, for example "foo.bar.com/x/y.z" will yield type +name "y.z". + + +JSON +==== +The JSON representation of an `Any` value uses the regular +representation of the deserialized, embedded message, with an +additional field `@type` which contains the type URL. Example: + + package google.profile; + message Person { + string first_name = 1; + string last_name = 2; + } + + { + "@type": "type.googleapis.com/google.profile.Person", + "firstName": , + "lastName": + } + +If the embedded message type is well-known and has a custom JSON +representation, that representation will be embedded adding a field +`value` which holds the custom JSON in addition to the `@type` +field. Example (for message [google.protobuf.Duration][]): + + { + "@type": "type.googleapis.com/google.protobuf.Duration", + "value": "1.212s" + } + + +.. code-block:: json + + { + "type_url": "...", + "value": "..." + } + +.. _api_field_google.protobuf.Any.type_url: + +type_url + (`string `_) A URL/resource name whose content describes the type of the + serialized protocol buffer message. + + For URLs which use the scheme `http`, `https`, or no scheme, the + following restrictions and interpretations apply: + + * If no scheme is provided, `https` is assumed. + * The last segment of the URL's path must represent the fully + qualified name of the type (as in `path/google.protobuf.Duration`). + The name should be in a canonical form (e.g., leading "." is + not accepted). + * An HTTP GET on the URL must yield a [google.protobuf.Type][] + value in binary format, or produce an error. + * Applications are allowed to cache lookup results based on the + URL, or have them precompiled into a binary to avoid any + lookup. Therefore, binary compatibility needs to be preserved + on changes to types. (Use versioned type names to manage + breaking changes.) + + Schemes other than `http`, `https` (or the empty scheme) might be + used with implementation specific semantics. + + + +.. _api_field_google.protobuf.Any.value: + +value + (`bytes `_) Must be a valid serialized protocol buffer of the above specified type. + + + diff --git a/flyteidl/gen/pb-protodoc/google/protobuf/descriptor.proto.rst b/flyteidl/gen/pb-protodoc/google/protobuf/descriptor.proto.rst new file mode 100644 index 0000000000..47a8093429 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/protobuf/descriptor.proto.rst @@ -0,0 +1,1798 @@ +.. _api_file_google/protobuf/descriptor.proto: + +descriptor.proto +================================ + +Protocol Buffers - Google's data interchange format +Copyright 2008 Google Inc. All rights reserved. +https://developers.google.com/protocol-buffers/ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Author: kenton@google.com (Kenton Varda) + Based on original Protocol Buffers design by + Sanjay Ghemawat, Jeff Dean, and others. + +The messages in this file describe the definitions found in .proto files. +A valid .proto file can be translated directly to a FileDescriptorProto +without any other information (e.g. without reading its imports). + +.. _api_msg_google.protobuf.FileDescriptorSet: + +google.protobuf.FileDescriptorSet +--------------------------------- + +`[google.protobuf.FileDescriptorSet proto] `_ + +The protocol compiler can output a FileDescriptorSet containing the .proto +files it parses. + +.. code-block:: json + + { + "file": [] + } + +.. _api_field_google.protobuf.FileDescriptorSet.file: + +file + (:ref:`google.protobuf.FileDescriptorProto `) + + + +.. _api_msg_google.protobuf.FileDescriptorProto: + +google.protobuf.FileDescriptorProto +----------------------------------- + +`[google.protobuf.FileDescriptorProto proto] `_ + +Describes a complete .proto file. + +.. code-block:: json + + { + "name": "...", + "package": "...", + "dependency": [], + "public_dependency": [], + "weak_dependency": [], + "message_type": [], + "enum_type": [], + "service": [], + "extension": [], + "options": "{...}", + "source_code_info": "{...}", + "syntax": "..." + } + +.. _api_field_google.protobuf.FileDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.FileDescriptorProto.package: + +package + (`string `_) + +.. _api_field_google.protobuf.FileDescriptorProto.dependency: + +dependency + (`string `_) Names of files imported by this file. + + +.. _api_field_google.protobuf.FileDescriptorProto.public_dependency: + +public_dependency + (`int32 `_) Indexes of the public imported files in the dependency list above. + + +.. _api_field_google.protobuf.FileDescriptorProto.weak_dependency: + +weak_dependency + (`int32 `_) Indexes of the weak imported files in the dependency list. + For Google-internal migration only. Do not use. + + +.. _api_field_google.protobuf.FileDescriptorProto.message_type: + +message_type + (:ref:`google.protobuf.DescriptorProto `) All top-level definitions in this file. + + +.. _api_field_google.protobuf.FileDescriptorProto.enum_type: + +enum_type + (:ref:`google.protobuf.EnumDescriptorProto `) + +.. _api_field_google.protobuf.FileDescriptorProto.service: + +service + (:ref:`google.protobuf.ServiceDescriptorProto `) + +.. _api_field_google.protobuf.FileDescriptorProto.extension: + +extension + (:ref:`google.protobuf.FieldDescriptorProto `) + +.. _api_field_google.protobuf.FileDescriptorProto.options: + +options + (:ref:`google.protobuf.FileOptions `) + +.. _api_field_google.protobuf.FileDescriptorProto.source_code_info: + +source_code_info + (:ref:`google.protobuf.SourceCodeInfo `) This field contains optional information about the original source code. + You may safely remove this entire field without harming runtime + functionality of the descriptors -- the information is needed only by + development tools. + + +.. _api_field_google.protobuf.FileDescriptorProto.syntax: + +syntax + (`string `_) The syntax of the proto file. + The supported values are "proto2" and "proto3". + + + + +.. _api_msg_google.protobuf.DescriptorProto: + +google.protobuf.DescriptorProto +------------------------------- + +`[google.protobuf.DescriptorProto proto] `_ + +Describes a message type. + +.. code-block:: json + + { + "name": "...", + "field": [], + "extension": [], + "nested_type": [], + "enum_type": [], + "extension_range": [], + "oneof_decl": [], + "options": "{...}", + "reserved_range": [], + "reserved_name": [] + } + +.. _api_field_google.protobuf.DescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.DescriptorProto.field: + +field + (:ref:`google.protobuf.FieldDescriptorProto `) + +.. _api_field_google.protobuf.DescriptorProto.extension: + +extension + (:ref:`google.protobuf.FieldDescriptorProto `) + +.. _api_field_google.protobuf.DescriptorProto.nested_type: + +nested_type + (:ref:`google.protobuf.DescriptorProto `) + +.. _api_field_google.protobuf.DescriptorProto.enum_type: + +enum_type + (:ref:`google.protobuf.EnumDescriptorProto `) + +.. _api_field_google.protobuf.DescriptorProto.extension_range: + +extension_range + (:ref:`google.protobuf.DescriptorProto.ExtensionRange `) + +.. _api_field_google.protobuf.DescriptorProto.oneof_decl: + +oneof_decl + (:ref:`google.protobuf.OneofDescriptorProto `) + +.. _api_field_google.protobuf.DescriptorProto.options: + +options + (:ref:`google.protobuf.MessageOptions `) + +.. _api_field_google.protobuf.DescriptorProto.reserved_range: + +reserved_range + (:ref:`google.protobuf.DescriptorProto.ReservedRange `) + +.. _api_field_google.protobuf.DescriptorProto.reserved_name: + +reserved_name + (`string `_) Reserved field names, which may not be used by fields in the same message. + A given name may only be reserved once. + + +.. _api_msg_google.protobuf.DescriptorProto.ExtensionRange: + +google.protobuf.DescriptorProto.ExtensionRange +---------------------------------------------- + +`[google.protobuf.DescriptorProto.ExtensionRange proto] `_ + + +.. code-block:: json + + { + "start": "...", + "end": "...", + "options": "{...}" + } + +.. _api_field_google.protobuf.DescriptorProto.ExtensionRange.start: + +start + (`int32 `_) + +.. _api_field_google.protobuf.DescriptorProto.ExtensionRange.end: + +end + (`int32 `_) + +.. _api_field_google.protobuf.DescriptorProto.ExtensionRange.options: + +options + (:ref:`google.protobuf.ExtensionRangeOptions `) + + + +.. _api_msg_google.protobuf.DescriptorProto.ReservedRange: + +google.protobuf.DescriptorProto.ReservedRange +--------------------------------------------- + +`[google.protobuf.DescriptorProto.ReservedRange proto] `_ + +Range of reserved tag numbers. Reserved tag numbers may not be used by +fields or extension ranges in the same message. Reserved ranges may +not overlap. + +.. code-block:: json + + { + "start": "...", + "end": "..." + } + +.. _api_field_google.protobuf.DescriptorProto.ReservedRange.start: + +start + (`int32 `_) + +.. _api_field_google.protobuf.DescriptorProto.ReservedRange.end: + +end + (`int32 `_) + + + + +.. _api_msg_google.protobuf.ExtensionRangeOptions: + +google.protobuf.ExtensionRangeOptions +------------------------------------- + +`[google.protobuf.ExtensionRangeOptions proto] `_ + + +.. code-block:: json + + { + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.ExtensionRangeOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + + +.. _api_msg_google.protobuf.FieldDescriptorProto: + +google.protobuf.FieldDescriptorProto +------------------------------------ + +`[google.protobuf.FieldDescriptorProto proto] `_ + +Describes a field within a message. + +.. code-block:: json + + { + "name": "...", + "number": "...", + "label": "...", + "type": "...", + "type_name": "...", + "extendee": "...", + "default_value": "...", + "oneof_index": "...", + "json_name": "...", + "options": "{...}" + } + +.. _api_field_google.protobuf.FieldDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.FieldDescriptorProto.number: + +number + (`int32 `_) + +.. _api_field_google.protobuf.FieldDescriptorProto.label: + +label + (:ref:`google.protobuf.FieldDescriptorProto.Label `) + +.. _api_field_google.protobuf.FieldDescriptorProto.type: + +type + (:ref:`google.protobuf.FieldDescriptorProto.Type `) If type_name is set, this need not be set. If both this and type_name + are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. + + +.. _api_field_google.protobuf.FieldDescriptorProto.type_name: + +type_name + (`string `_) For message and enum types, this is the name of the type. If the name + starts with a '.', it is fully-qualified. Otherwise, C++-like scoping + rules are used to find the type (i.e. first the nested types within this + message are searched, then within the parent, on up to the root + namespace). + + +.. _api_field_google.protobuf.FieldDescriptorProto.extendee: + +extendee + (`string `_) For extensions, this is the name of the type being extended. It is + resolved in the same manner as type_name. + + +.. _api_field_google.protobuf.FieldDescriptorProto.default_value: + +default_value + (`string `_) For numeric types, contains the original text representation of the value. + For booleans, "true" or "false". + For strings, contains the default text contents (not escaped in any way). + For bytes, contains the C escaped value. All bytes >= 128 are escaped. + TODO(kenton): Base-64 encode? + + +.. _api_field_google.protobuf.FieldDescriptorProto.oneof_index: + +oneof_index + (`int32 `_) If set, gives the index of a oneof in the containing type's oneof_decl + list. This field is a member of that oneof. + + +.. _api_field_google.protobuf.FieldDescriptorProto.json_name: + +json_name + (`string `_) JSON name of this field. The value is set by protocol compiler. If the + user has set a "json_name" option on this field, that option's value + will be used. Otherwise, it's deduced from the field's name by converting + it to camelCase. + + +.. _api_field_google.protobuf.FieldDescriptorProto.options: + +options + (:ref:`google.protobuf.FieldOptions `) + + +.. _api_enum_google.protobuf.FieldDescriptorProto.Type: + +Enum google.protobuf.FieldDescriptorProto.Type +---------------------------------------------- + +`[google.protobuf.FieldDescriptorProto.Type proto] `_ + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_DOUBLE: + +TYPE_DOUBLE + ⁣0 is reserved for errors. + Order is weird for historical reasons. + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_FLOAT: + +TYPE_FLOAT + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_INT64: + +TYPE_INT64 + ⁣Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if + negative values are likely. + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_UINT64: + +TYPE_UINT64 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_INT32: + +TYPE_INT32 + ⁣Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if + negative values are likely. + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_FIXED64: + +TYPE_FIXED64 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_FIXED32: + +TYPE_FIXED32 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_BOOL: + +TYPE_BOOL + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_STRING: + +TYPE_STRING + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_GROUP: + +TYPE_GROUP + ⁣Tag-delimited aggregate. + Group type is deprecated and not supported in proto3. However, Proto3 + implementations should still be able to parse the group wire format and + treat group fields as unknown fields. + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_MESSAGE: + +TYPE_MESSAGE + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_BYTES: + +TYPE_BYTES + ⁣New in version 2. + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_UINT32: + +TYPE_UINT32 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_ENUM: + +TYPE_ENUM + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_SFIXED32: + +TYPE_SFIXED32 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_SFIXED64: + +TYPE_SFIXED64 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_SINT32: + +TYPE_SINT32 + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Type.TYPE_SINT64: + +TYPE_SINT64 + ⁣ + + +.. _api_enum_google.protobuf.FieldDescriptorProto.Label: + +Enum google.protobuf.FieldDescriptorProto.Label +----------------------------------------------- + +`[google.protobuf.FieldDescriptorProto.Label proto] `_ + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Label.LABEL_OPTIONAL: + +LABEL_OPTIONAL + ⁣0 is reserved for errors + + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Label.LABEL_REQUIRED: + +LABEL_REQUIRED + ⁣ + +.. _api_enum_value_google.protobuf.FieldDescriptorProto.Label.LABEL_REPEATED: + +LABEL_REPEATED + ⁣ + + +.. _api_msg_google.protobuf.OneofDescriptorProto: + +google.protobuf.OneofDescriptorProto +------------------------------------ + +`[google.protobuf.OneofDescriptorProto proto] `_ + +Describes a oneof. + +.. code-block:: json + + { + "name": "...", + "options": "{...}" + } + +.. _api_field_google.protobuf.OneofDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.OneofDescriptorProto.options: + +options + (:ref:`google.protobuf.OneofOptions `) + + + +.. _api_msg_google.protobuf.EnumDescriptorProto: + +google.protobuf.EnumDescriptorProto +----------------------------------- + +`[google.protobuf.EnumDescriptorProto proto] `_ + +Describes an enum type. + +.. code-block:: json + + { + "name": "...", + "value": [], + "options": "{...}", + "reserved_range": [], + "reserved_name": [] + } + +.. _api_field_google.protobuf.EnumDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.EnumDescriptorProto.value: + +value + (:ref:`google.protobuf.EnumValueDescriptorProto `) + +.. _api_field_google.protobuf.EnumDescriptorProto.options: + +options + (:ref:`google.protobuf.EnumOptions `) + +.. _api_field_google.protobuf.EnumDescriptorProto.reserved_range: + +reserved_range + (:ref:`google.protobuf.EnumDescriptorProto.EnumReservedRange `) Range of reserved numeric values. Reserved numeric values may not be used + by enum values in the same enum declaration. Reserved ranges may not + overlap. + + +.. _api_field_google.protobuf.EnumDescriptorProto.reserved_name: + +reserved_name + (`string `_) Reserved enum value names, which may not be reused. A given name may only + be reserved once. + + +.. _api_msg_google.protobuf.EnumDescriptorProto.EnumReservedRange: + +google.protobuf.EnumDescriptorProto.EnumReservedRange +----------------------------------------------------- + +`[google.protobuf.EnumDescriptorProto.EnumReservedRange proto] `_ + +Range of reserved numeric values. Reserved values may not be used by +entries in the same enum. Reserved ranges may not overlap. + +Note that this is distinct from DescriptorProto.ReservedRange in that it +is inclusive such that it can appropriately represent the entire int32 +domain. + +.. code-block:: json + + { + "start": "...", + "end": "..." + } + +.. _api_field_google.protobuf.EnumDescriptorProto.EnumReservedRange.start: + +start + (`int32 `_) + +.. _api_field_google.protobuf.EnumDescriptorProto.EnumReservedRange.end: + +end + (`int32 `_) + + + + +.. _api_msg_google.protobuf.EnumValueDescriptorProto: + +google.protobuf.EnumValueDescriptorProto +---------------------------------------- + +`[google.protobuf.EnumValueDescriptorProto proto] `_ + +Describes a value within an enum. + +.. code-block:: json + + { + "name": "...", + "number": "...", + "options": "{...}" + } + +.. _api_field_google.protobuf.EnumValueDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.EnumValueDescriptorProto.number: + +number + (`int32 `_) + +.. _api_field_google.protobuf.EnumValueDescriptorProto.options: + +options + (:ref:`google.protobuf.EnumValueOptions `) + + + +.. _api_msg_google.protobuf.ServiceDescriptorProto: + +google.protobuf.ServiceDescriptorProto +-------------------------------------- + +`[google.protobuf.ServiceDescriptorProto proto] `_ + +Describes a service. + +.. code-block:: json + + { + "name": "...", + "method": [], + "options": "{...}" + } + +.. _api_field_google.protobuf.ServiceDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.ServiceDescriptorProto.method: + +method + (:ref:`google.protobuf.MethodDescriptorProto `) + +.. _api_field_google.protobuf.ServiceDescriptorProto.options: + +options + (:ref:`google.protobuf.ServiceOptions `) + + + +.. _api_msg_google.protobuf.MethodDescriptorProto: + +google.protobuf.MethodDescriptorProto +------------------------------------- + +`[google.protobuf.MethodDescriptorProto proto] `_ + +Describes a method of a service. + +.. code-block:: json + + { + "name": "...", + "input_type": "...", + "output_type": "...", + "options": "{...}", + "client_streaming": "...", + "server_streaming": "..." + } + +.. _api_field_google.protobuf.MethodDescriptorProto.name: + +name + (`string `_) + +.. _api_field_google.protobuf.MethodDescriptorProto.input_type: + +input_type + (`string `_) Input and output type names. These are resolved in the same way as + FieldDescriptorProto.type_name, but must refer to a message type. + + +.. _api_field_google.protobuf.MethodDescriptorProto.output_type: + +output_type + (`string `_) + +.. _api_field_google.protobuf.MethodDescriptorProto.options: + +options + (:ref:`google.protobuf.MethodOptions `) + +.. _api_field_google.protobuf.MethodDescriptorProto.client_streaming: + +client_streaming + (`bool `_) Identifies if client streams multiple client messages + + +.. _api_field_google.protobuf.MethodDescriptorProto.server_streaming: + +server_streaming + (`bool `_) Identifies if server streams multiple server messages + + + + +.. _api_msg_google.protobuf.FileOptions: + +google.protobuf.FileOptions +--------------------------- + +`[google.protobuf.FileOptions proto] `_ + + +.. code-block:: json + + { + "java_package": "...", + "java_outer_classname": "...", + "java_multiple_files": "...", + "java_generate_equals_and_hash": "...", + "java_string_check_utf8": "...", + "optimize_for": "...", + "go_package": "...", + "cc_generic_services": "...", + "java_generic_services": "...", + "py_generic_services": "...", + "php_generic_services": "...", + "deprecated": "...", + "cc_enable_arenas": "...", + "objc_class_prefix": "...", + "csharp_namespace": "...", + "swift_prefix": "...", + "php_class_prefix": "...", + "php_namespace": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.FileOptions.java_package: + +java_package + (`string `_) Sets the Java package where classes generated from this .proto will be + placed. By default, the proto package is used, but this is often + inappropriate because proto packages do not normally start with backwards + domain names. + + +.. _api_field_google.protobuf.FileOptions.java_outer_classname: + +java_outer_classname + (`string `_) If set, all the classes from the .proto file are wrapped in a single + outer class with the given name. This applies to both Proto1 + (equivalent to the old "--one_java_file" option) and Proto2 (where + a .proto always translates to a single class, but you may want to + explicitly choose the class name). + + +.. _api_field_google.protobuf.FileOptions.java_multiple_files: + +java_multiple_files + (`bool `_) If set true, then the Java code generator will generate a separate .java + file for each top-level message, enum, and service defined in the .proto + file. Thus, these types will *not* be nested inside the outer class + named by java_outer_classname. However, the outer class will still be + generated to contain the file's getDescriptor() method as well as any + top-level extensions defined in the file. + + +.. _api_field_google.protobuf.FileOptions.java_generate_equals_and_hash: + +java_generate_equals_and_hash + (`bool `_) This option does nothing. + + +.. _api_field_google.protobuf.FileOptions.java_string_check_utf8: + +java_string_check_utf8 + (`bool `_) If set true, then the Java2 code generator will generate code that + throws an exception whenever an attempt is made to assign a non-UTF-8 + byte sequence to a string field. + Message reflection will do the same. + However, an extension field still accepts non-UTF-8 byte sequences. + This option has no effect on when used with the lite runtime. + + +.. _api_field_google.protobuf.FileOptions.optimize_for: + +optimize_for + (:ref:`google.protobuf.FileOptions.OptimizeMode `) + +.. _api_field_google.protobuf.FileOptions.go_package: + +go_package + (`string `_) Sets the Go package where structs generated from this .proto will be + placed. If omitted, the Go package will be derived from the following: + - The basename of the package import path, if provided. + - Otherwise, the package statement in the .proto file, if present. + - Otherwise, the basename of the .proto file, without extension. + + +.. _api_field_google.protobuf.FileOptions.cc_generic_services: + +cc_generic_services + (`bool `_) Should generic services be generated in each language? "Generic" services + are not specific to any particular RPC system. They are generated by the + main code generators in each language (without additional plugins). + Generic services were the only kind of service generation supported by + early versions of google.protobuf. + + Generic services are now considered deprecated in favor of using plugins + that generate code specific to your particular RPC system. Therefore, + these default to false. Old code which depends on generic services should + explicitly set them to true. + + +.. _api_field_google.protobuf.FileOptions.java_generic_services: + +java_generic_services + (`bool `_) + +.. _api_field_google.protobuf.FileOptions.py_generic_services: + +py_generic_services + (`bool `_) + +.. _api_field_google.protobuf.FileOptions.php_generic_services: + +php_generic_services + (`bool `_) + +.. _api_field_google.protobuf.FileOptions.deprecated: + +deprecated + (`bool `_) Is this file deprecated? + Depending on the target platform, this can emit Deprecated annotations + for everything in the file, or it will be completely ignored; in the very + least, this is a formalization for deprecating files. + + +.. _api_field_google.protobuf.FileOptions.cc_enable_arenas: + +cc_enable_arenas + (`bool `_) Enables the use of arenas for the proto messages in this file. This applies + only to generated classes for C++. + + +.. _api_field_google.protobuf.FileOptions.objc_class_prefix: + +objc_class_prefix + (`string `_) Sets the objective c class prefix which is prepended to all objective c + generated classes from this .proto. There is no default. + + +.. _api_field_google.protobuf.FileOptions.csharp_namespace: + +csharp_namespace + (`string `_) Namespace for generated classes; defaults to the package. + + +.. _api_field_google.protobuf.FileOptions.swift_prefix: + +swift_prefix + (`string `_) By default Swift generators will take the proto package and CamelCase it + replacing '.' with underscore and use that to prefix the types/symbols + defined. When this options is provided, they will use this value instead + to prefix the types/symbols defined. + + +.. _api_field_google.protobuf.FileOptions.php_class_prefix: + +php_class_prefix + (`string `_) Sets the php class prefix which is prepended to all php generated classes + from this .proto. Default is empty. + + +.. _api_field_google.protobuf.FileOptions.php_namespace: + +php_namespace + (`string `_) Use this option to change the namespace of php generated classes. Default + is empty. When this option is empty, the package name will be used for + determining the namespace. + + +.. _api_field_google.protobuf.FileOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. + See the documentation for the "Options" section above. + + + +.. _api_enum_google.protobuf.FileOptions.OptimizeMode: + +Enum google.protobuf.FileOptions.OptimizeMode +--------------------------------------------- + +`[google.protobuf.FileOptions.OptimizeMode proto] `_ + +Generated classes can be optimized for speed or code size. + +.. _api_enum_value_google.protobuf.FileOptions.OptimizeMode.SPEED: + +SPEED + ⁣ + +.. _api_enum_value_google.protobuf.FileOptions.OptimizeMode.CODE_SIZE: + +CODE_SIZE + ⁣etc. + + +.. _api_enum_value_google.protobuf.FileOptions.OptimizeMode.LITE_RUNTIME: + +LITE_RUNTIME + ⁣ + + +.. _api_msg_google.protobuf.MessageOptions: + +google.protobuf.MessageOptions +------------------------------ + +`[google.protobuf.MessageOptions proto] `_ + + +.. code-block:: json + + { + "message_set_wire_format": "...", + "no_standard_descriptor_accessor": "...", + "deprecated": "...", + "map_entry": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.MessageOptions.message_set_wire_format: + +message_set_wire_format + (`bool `_) Set true to use the old proto1 MessageSet wire format for extensions. + This is provided for backwards-compatibility with the MessageSet wire + format. You should not use this for any other reason: It's less + efficient, has fewer features, and is more complicated. + + The message must be defined exactly as follows: + message Foo { + option message_set_wire_format = true; + extensions 4 to max; + } + Note that the message cannot have any defined fields; MessageSets only + have extensions. + + All extensions of your type must be singular messages; e.g. they cannot + be int32s, enums, or repeated messages. + + Because this is an option, the above two restrictions are not enforced by + the protocol compiler. + + +.. _api_field_google.protobuf.MessageOptions.no_standard_descriptor_accessor: + +no_standard_descriptor_accessor + (`bool `_) Disables the generation of the standard "descriptor()" accessor, which can + conflict with a field of the same name. This is meant to make migration + from proto1 easier; new code should avoid fields named "descriptor". + + +.. _api_field_google.protobuf.MessageOptions.deprecated: + +deprecated + (`bool `_) Is this message deprecated? + Depending on the target platform, this can emit Deprecated annotations + for the message, or it will be completely ignored; in the very least, + this is a formalization for deprecating messages. + + +.. _api_field_google.protobuf.MessageOptions.map_entry: + +map_entry + (`bool `_) Whether the message is an automatically generated map entry type for the + maps field. + + For maps fields: + map map_field = 1; + The parsed descriptor looks like: + message MapFieldEntry { + option map_entry = true; + optional KeyType key = 1; + optional ValueType value = 2; + } + repeated MapFieldEntry map_field = 1; + + Implementations may choose not to generate the map_entry=true message, but + use a native map in the target language to hold the keys and values. + The reflection APIs in such implementions still need to work as + if the field is a repeated message field. + + NOTE: Do not set the option in .proto files. Always use the maps syntax + instead. The option should only be implicitly set by the proto compiler + parser. + + +.. _api_field_google.protobuf.MessageOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + + +.. _api_msg_google.protobuf.FieldOptions: + +google.protobuf.FieldOptions +---------------------------- + +`[google.protobuf.FieldOptions proto] `_ + + +.. code-block:: json + + { + "ctype": "...", + "packed": "...", + "jstype": "...", + "lazy": "...", + "deprecated": "...", + "weak": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.FieldOptions.ctype: + +ctype + (:ref:`google.protobuf.FieldOptions.CType `) The ctype option instructs the C++ code generator to use a different + representation of the field than it normally would. See the specific + options below. This option is not yet implemented in the open source + release -- sorry, we'll try to include it in a future version! + + +.. _api_field_google.protobuf.FieldOptions.packed: + +packed + (`bool `_) The packed option can be enabled for repeated primitive fields to enable + a more efficient representation on the wire. Rather than repeatedly + writing the tag and type for each element, the entire array is encoded as + a single length-delimited blob. In proto3, only explicit setting it to + false will avoid using packed encoding. + + +.. _api_field_google.protobuf.FieldOptions.jstype: + +jstype + (:ref:`google.protobuf.FieldOptions.JSType `) The jstype option determines the JavaScript type used for values of the + field. The option is permitted only for 64 bit integral and fixed types + (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING + is represented as JavaScript string, which avoids loss of precision that + can happen when a large value is converted to a floating point JavaScript. + Specifying JS_NUMBER for the jstype causes the generated JavaScript code to + use the JavaScript "number" type. The behavior of the default option + JS_NORMAL is implementation dependent. + + This option is an enum to permit additional types to be added, e.g. + goog.math.Integer. + + +.. _api_field_google.protobuf.FieldOptions.lazy: + +lazy + (`bool `_) Should this field be parsed lazily? Lazy applies only to message-type + fields. It means that when the outer message is initially parsed, the + inner message's contents will not be parsed but instead stored in encoded + form. The inner message will actually be parsed when it is first accessed. + + This is only a hint. Implementations are free to choose whether to use + eager or lazy parsing regardless of the value of this option. However, + setting this option true suggests that the protocol author believes that + using lazy parsing on this field is worth the additional bookkeeping + overhead typically needed to implement it. + + This option does not affect the public interface of any generated code; + all method signatures remain the same. Furthermore, thread-safety of the + interface is not affected by this option; const methods remain safe to + call from multiple threads concurrently, while non-const methods continue + to require exclusive access. + + + Note that implementations may choose not to check required fields within + a lazy sub-message. That is, calling IsInitialized() on the outer message + may return true even if the inner message has missing required fields. + This is necessary because otherwise the inner message would have to be + parsed in order to perform the check, defeating the purpose of lazy + parsing. An implementation which chooses not to check required fields + must be consistent about it. That is, for any particular sub-message, the + implementation must either *always* check its required fields, or *never* + check its required fields, regardless of whether or not the message has + been parsed. + + +.. _api_field_google.protobuf.FieldOptions.deprecated: + +deprecated + (`bool `_) Is this field deprecated? + Depending on the target platform, this can emit Deprecated annotations + for accessors, or it will be completely ignored; in the very least, this + is a formalization for deprecating fields. + + +.. _api_field_google.protobuf.FieldOptions.weak: + +weak + (`bool `_) For Google-internal migration only. Do not use. + + +.. _api_field_google.protobuf.FieldOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + +.. _api_enum_google.protobuf.FieldOptions.CType: + +Enum google.protobuf.FieldOptions.CType +--------------------------------------- + +`[google.protobuf.FieldOptions.CType proto] `_ + + +.. _api_enum_value_google.protobuf.FieldOptions.CType.STRING: + +STRING + *(DEFAULT)* ⁣Default mode. + + +.. _api_enum_value_google.protobuf.FieldOptions.CType.CORD: + +CORD + ⁣ + +.. _api_enum_value_google.protobuf.FieldOptions.CType.STRING_PIECE: + +STRING_PIECE + ⁣ + + +.. _api_enum_google.protobuf.FieldOptions.JSType: + +Enum google.protobuf.FieldOptions.JSType +---------------------------------------- + +`[google.protobuf.FieldOptions.JSType proto] `_ + + +.. _api_enum_value_google.protobuf.FieldOptions.JSType.JS_NORMAL: + +JS_NORMAL + *(DEFAULT)* ⁣Use the default type. + + +.. _api_enum_value_google.protobuf.FieldOptions.JSType.JS_STRING: + +JS_STRING + ⁣Use JavaScript strings. + + +.. _api_enum_value_google.protobuf.FieldOptions.JSType.JS_NUMBER: + +JS_NUMBER + ⁣Use JavaScript numbers. + + + +.. _api_msg_google.protobuf.OneofOptions: + +google.protobuf.OneofOptions +---------------------------- + +`[google.protobuf.OneofOptions proto] `_ + + +.. code-block:: json + + { + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.OneofOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + + +.. _api_msg_google.protobuf.EnumOptions: + +google.protobuf.EnumOptions +--------------------------- + +`[google.protobuf.EnumOptions proto] `_ + + +.. code-block:: json + + { + "allow_alias": "...", + "deprecated": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.EnumOptions.allow_alias: + +allow_alias + (`bool `_) Set this option to true to allow mapping different tag names to the same + value. + + +.. _api_field_google.protobuf.EnumOptions.deprecated: + +deprecated + (`bool `_) Is this enum deprecated? + Depending on the target platform, this can emit Deprecated annotations + for the enum, or it will be completely ignored; in the very least, this + is a formalization for deprecating enums. + + +.. _api_field_google.protobuf.EnumOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + + +.. _api_msg_google.protobuf.EnumValueOptions: + +google.protobuf.EnumValueOptions +-------------------------------- + +`[google.protobuf.EnumValueOptions proto] `_ + + +.. code-block:: json + + { + "deprecated": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.EnumValueOptions.deprecated: + +deprecated + (`bool `_) Is this enum value deprecated? + Depending on the target platform, this can emit Deprecated annotations + for the enum value, or it will be completely ignored; in the very least, + this is a formalization for deprecating enum values. + + +.. _api_field_google.protobuf.EnumValueOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + + +.. _api_msg_google.protobuf.ServiceOptions: + +google.protobuf.ServiceOptions +------------------------------ + +`[google.protobuf.ServiceOptions proto] `_ + + +.. code-block:: json + + { + "deprecated": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.ServiceOptions.deprecated: + +deprecated + (`bool `_) Is this service deprecated? + Depending on the target platform, this can emit Deprecated annotations + for the service, or it will be completely ignored; in the very least, + this is a formalization for deprecating services. + + +.. _api_field_google.protobuf.ServiceOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + + +.. _api_msg_google.protobuf.MethodOptions: + +google.protobuf.MethodOptions +----------------------------- + +`[google.protobuf.MethodOptions proto] `_ + + +.. code-block:: json + + { + "deprecated": "...", + "idempotency_level": "...", + "uninterpreted_option": [] + } + +.. _api_field_google.protobuf.MethodOptions.deprecated: + +deprecated + (`bool `_) Is this method deprecated? + Depending on the target platform, this can emit Deprecated annotations + for the method, or it will be completely ignored; in the very least, + this is a formalization for deprecating methods. + + +.. _api_field_google.protobuf.MethodOptions.idempotency_level: + +idempotency_level + (:ref:`google.protobuf.MethodOptions.IdempotencyLevel `) + +.. _api_field_google.protobuf.MethodOptions.uninterpreted_option: + +uninterpreted_option + (:ref:`google.protobuf.UninterpretedOption `) The parser stores options it doesn't recognize here. See above. + + + +.. _api_enum_google.protobuf.MethodOptions.IdempotencyLevel: + +Enum google.protobuf.MethodOptions.IdempotencyLevel +--------------------------------------------------- + +`[google.protobuf.MethodOptions.IdempotencyLevel proto] `_ + +Is this method side-effect-free (or safe in HTTP parlance), or idempotent, +or neither? HTTP based RPC implementation may choose GET verb for safe +methods, and PUT verb for idempotent methods instead of the default POST. + +.. _api_enum_value_google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENCY_UNKNOWN: + +IDEMPOTENCY_UNKNOWN + *(DEFAULT)* ⁣ + +.. _api_enum_value_google.protobuf.MethodOptions.IdempotencyLevel.NO_SIDE_EFFECTS: + +NO_SIDE_EFFECTS + ⁣ + +.. _api_enum_value_google.protobuf.MethodOptions.IdempotencyLevel.IDEMPOTENT: + +IDEMPOTENT + ⁣ + + +.. _api_msg_google.protobuf.UninterpretedOption: + +google.protobuf.UninterpretedOption +----------------------------------- + +`[google.protobuf.UninterpretedOption proto] `_ + +A message representing a option the parser does not recognize. This only +appears in options protos created by the compiler::Parser class. +DescriptorPool resolves these when building Descriptor objects. Therefore, +options protos in descriptor objects (e.g. returned by Descriptor::options(), +or produced by Descriptor::CopyTo()) will never have UninterpretedOptions +in them. + +.. code-block:: json + + { + "name": [], + "identifier_value": "...", + "positive_int_value": "...", + "negative_int_value": "...", + "double_value": "...", + "string_value": "...", + "aggregate_value": "..." + } + +.. _api_field_google.protobuf.UninterpretedOption.name: + +name + (:ref:`google.protobuf.UninterpretedOption.NamePart `) + +.. _api_field_google.protobuf.UninterpretedOption.identifier_value: + +identifier_value + (`string `_) The value of the uninterpreted option, in whatever type the tokenizer + identified it as during parsing. Exactly one of these should be set. + + +.. _api_field_google.protobuf.UninterpretedOption.positive_int_value: + +positive_int_value + (`uint64 `_) + +.. _api_field_google.protobuf.UninterpretedOption.negative_int_value: + +negative_int_value + (`int64 `_) + +.. _api_field_google.protobuf.UninterpretedOption.double_value: + +double_value + (`double `_) + +.. _api_field_google.protobuf.UninterpretedOption.string_value: + +string_value + (`bytes `_) + +.. _api_field_google.protobuf.UninterpretedOption.aggregate_value: + +aggregate_value + (`string `_) + +.. _api_msg_google.protobuf.UninterpretedOption.NamePart: + +google.protobuf.UninterpretedOption.NamePart +-------------------------------------------- + +`[google.protobuf.UninterpretedOption.NamePart proto] `_ + +The name of the uninterpreted option. Each string represents a segment in +a dot-separated name. is_extension is true iff a segment represents an +extension (denoted with parentheses in options specs in .proto files). +E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents +"foo.(bar.baz).qux". + +.. code-block:: json + + { + "name_part": "...", + "is_extension": "..." + } + +.. _api_field_google.protobuf.UninterpretedOption.NamePart.name_part: + +name_part + (`string `_) + +.. _api_field_google.protobuf.UninterpretedOption.NamePart.is_extension: + +is_extension + (`bool `_) + + + + +.. _api_msg_google.protobuf.SourceCodeInfo: + +google.protobuf.SourceCodeInfo +------------------------------ + +`[google.protobuf.SourceCodeInfo proto] `_ + +Encapsulates information about the original source file from which a +FileDescriptorProto was generated. + +.. code-block:: json + + { + "location": [] + } + +.. _api_field_google.protobuf.SourceCodeInfo.location: + +location + (:ref:`google.protobuf.SourceCodeInfo.Location `) A Location identifies a piece of source code in a .proto file which + corresponds to a particular definition. This information is intended + to be useful to IDEs, code indexers, documentation generators, and similar + tools. + + For example, say we have a file like: + message Foo { + optional string foo = 1; + } + Let's look at just the field definition: + optional string foo = 1; + ^ ^^ ^^ ^ ^^^ + a bc de f ghi + We have the following locations: + span path represents + [a,i) [ 4, 0, 2, 0 ] The whole field definition. + [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). + [c,d) [ 4, 0, 2, 0, 5 ] The type (string). + [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). + [g,h) [ 4, 0, 2, 0, 3 ] The number (1). + + Notes: + - A location may refer to a repeated field itself (i.e. not to any + particular index within it). This is used whenever a set of elements are + logically enclosed in a single code segment. For example, an entire + extend block (possibly containing multiple extension definitions) will + have an outer location whose path refers to the "extensions" repeated + field without an index. + - Multiple locations may have the same path. This happens when a single + logical declaration is spread out across multiple places. The most + obvious example is the "extend" block again -- there may be multiple + extend blocks in the same scope, each of which will have the same path. + - A location's span is not always a subset of its parent's span. For + example, the "extendee" of an extension declaration appears at the + beginning of the "extend" block and is shared by all extensions within + the block. + - Just because a location's span is a subset of some other location's span + does not mean that it is a descendent. For example, a "group" defines + both a type and a field in a single declaration. Thus, the locations + corresponding to the type and field and their components will overlap. + - Code which tries to interpret locations should probably be designed to + ignore those that it doesn't understand, as more types of locations could + be recorded in the future. + + +.. _api_msg_google.protobuf.SourceCodeInfo.Location: + +google.protobuf.SourceCodeInfo.Location +--------------------------------------- + +`[google.protobuf.SourceCodeInfo.Location proto] `_ + + +.. code-block:: json + + { + "path": [], + "span": [], + "leading_comments": "...", + "trailing_comments": "...", + "leading_detached_comments": [] + } + +.. _api_field_google.protobuf.SourceCodeInfo.Location.path: + +path + (`int32 `_) Identifies which part of the FileDescriptorProto was defined at this + location. + + Each element is a field number or an index. They form a path from + the root FileDescriptorProto to the place where the definition. For + example, this path: + [ 4, 3, 2, 7, 1 ] + refers to: + file.message_type(3) // 4, 3 + .field(7) // 2, 7 + .name() // 1 + This is because FileDescriptorProto.message_type has field number 4: + repeated DescriptorProto message_type = 4; + and DescriptorProto.field has field number 2: + repeated FieldDescriptorProto field = 2; + and FieldDescriptorProto.name has field number 1: + optional string name = 1; + + Thus, the above path gives the location of a field name. If we removed + the last element: + [ 4, 3, 2, 7 ] + this path refers to the whole field declaration (from the beginning + of the label to the terminating semicolon). + + +.. _api_field_google.protobuf.SourceCodeInfo.Location.span: + +span + (`int32 `_) Always has exactly three or four elements: start line, start column, + end line (optional, otherwise assumed same as start line), end column. + These are packed into a single field for efficiency. Note that line + and column numbers are zero-based -- typically you will want to add + 1 to each before displaying to a user. + + +.. _api_field_google.protobuf.SourceCodeInfo.Location.leading_comments: + +leading_comments + (`string `_) If this SourceCodeInfo represents a complete declaration, these are any + comments appearing before and after the declaration which appear to be + attached to the declaration. + + A series of line comments appearing on consecutive lines, with no other + tokens appearing on those lines, will be treated as a single comment. + + leading_detached_comments will keep paragraphs of comments that appear + before (but not connected to) the current element. Each paragraph, + separated by empty lines, will be one comment element in the repeated + field. + + Only the comment content is provided; comment markers (e.g. //) are + stripped out. For block comments, leading whitespace and an asterisk + will be stripped from the beginning of each line other than the first. + Newlines are included in the output. + + Examples: + + optional int32 foo = 1; // Comment attached to foo. + // Comment attached to bar. + optional int32 bar = 2; + + optional string baz = 3; + // Comment attached to baz. + // Another line attached to baz. + + // Comment attached to qux. + // + // Another line attached to qux. + optional double qux = 4; + + // Detached comment for corge. This is not leading or trailing comments + // to qux or corge because there are blank lines separating it from + // both. + + // Detached comment for corge paragraph 2. + + optional string corge = 5; + /* Block comment attached + * to corge. Leading asterisks + * will be removed. */ + /* Block comment attached to + * grault. */ + optional int32 grault = 6; + + // ignored detached comments. + + +.. _api_field_google.protobuf.SourceCodeInfo.Location.trailing_comments: + +trailing_comments + (`string `_) + +.. _api_field_google.protobuf.SourceCodeInfo.Location.leading_detached_comments: + +leading_detached_comments + (`string `_) + + + + +.. _api_msg_google.protobuf.GeneratedCodeInfo: + +google.protobuf.GeneratedCodeInfo +--------------------------------- + +`[google.protobuf.GeneratedCodeInfo proto] `_ + +Describes the relationship between generated code and its original source +file. A GeneratedCodeInfo message is associated with only one generated +source file, but may contain references to different source .proto files. + +.. code-block:: json + + { + "annotation": [] + } + +.. _api_field_google.protobuf.GeneratedCodeInfo.annotation: + +annotation + (:ref:`google.protobuf.GeneratedCodeInfo.Annotation `) An Annotation connects some span of text in generated code to an element + of its generating .proto file. + + +.. _api_msg_google.protobuf.GeneratedCodeInfo.Annotation: + +google.protobuf.GeneratedCodeInfo.Annotation +-------------------------------------------- + +`[google.protobuf.GeneratedCodeInfo.Annotation proto] `_ + + +.. code-block:: json + + { + "path": [], + "source_file": "...", + "begin": "...", + "end": "..." + } + +.. _api_field_google.protobuf.GeneratedCodeInfo.Annotation.path: + +path + (`int32 `_) Identifies the element in the original source .proto file. This field + is formatted the same as SourceCodeInfo.Location.path. + + +.. _api_field_google.protobuf.GeneratedCodeInfo.Annotation.source_file: + +source_file + (`string `_) Identifies the filesystem path to the original source .proto. + + +.. _api_field_google.protobuf.GeneratedCodeInfo.Annotation.begin: + +begin + (`int32 `_) Identifies the starting offset in bytes in the generated code + that relates to the identified object. + + +.. _api_field_google.protobuf.GeneratedCodeInfo.Annotation.end: + +end + (`int32 `_) Identifies the ending offset in bytes in the generated code that + relates to the identified offset. The end offset should be one past + the last relevant byte (so the length of the text = end - begin). + + + + diff --git a/flyteidl/gen/pb-protodoc/google/protobuf/duration.proto.rst b/flyteidl/gen/pb-protodoc/google/protobuf/duration.proto.rst new file mode 100644 index 0000000000..df78e8484c --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/protobuf/duration.proto.rst @@ -0,0 +1,130 @@ +.. _api_file_google/protobuf/duration.proto: + +duration.proto +============================== + +Protocol Buffers - Google's data interchange format +Copyright 2008 Google Inc. All rights reserved. +https://developers.google.com/protocol-buffers/ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +.. _api_msg_google.protobuf.Duration: + +google.protobuf.Duration +------------------------ + +`[google.protobuf.Duration proto] `_ + +A Duration represents a signed, fixed-length span of time represented +as a count of seconds and fractions of seconds at nanosecond +resolution. It is independent of any calendar and concepts like "day" +or "month". It is related to Timestamp in that the difference between +two Timestamp values is a Duration and it can be added or subtracted +from a Timestamp. Range is approximately +-10,000 years. + +# Examples + +Example 1: Compute Duration from two Timestamps in pseudo code. + + Timestamp start = ...; + Timestamp end = ...; + Duration duration = ...; + + duration.seconds = end.seconds - start.seconds; + duration.nanos = end.nanos - start.nanos; + + if (duration.seconds < 0 && duration.nanos > 0) { + duration.seconds += 1; + duration.nanos -= 1000000000; + } else if (durations.seconds > 0 && duration.nanos < 0) { + duration.seconds -= 1; + duration.nanos += 1000000000; + } + +Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + + Timestamp start = ...; + Duration duration = ...; + Timestamp end = ...; + + end.seconds = start.seconds + duration.seconds; + end.nanos = start.nanos + duration.nanos; + + if (end.nanos < 0) { + end.seconds -= 1; + end.nanos += 1000000000; + } else if (end.nanos >= 1000000000) { + end.seconds += 1; + end.nanos -= 1000000000; + } + +Example 3: Compute Duration from datetime.timedelta in Python. + + td = datetime.timedelta(days=3, minutes=10) + duration = Duration() + duration.FromTimedelta(td) + +# JSON Mapping + +In JSON format, the Duration type is encoded as a string rather than an +object, where the string ends in the suffix "s" (indicating seconds) and +is preceded by the number of seconds, with nanoseconds expressed as +fractional seconds. For example, 3 seconds with 0 nanoseconds should be +encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should +be expressed in JSON format as "3.000000001s", and 3 seconds and 1 +microsecond should be expressed in JSON format as "3.000001s". + + + +.. code-block:: json + + { + "seconds": "...", + "nanos": "..." + } + +.. _api_field_google.protobuf.Duration.seconds: + +seconds + (`int64 `_) Signed seconds of the span of time. Must be from -315,576,000,000 + to +315,576,000,000 inclusive. Note: these bounds are computed from: + 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + + +.. _api_field_google.protobuf.Duration.nanos: + +nanos + (`int32 `_) Signed fractions of a second at nanosecond resolution of the span + of time. Durations less than one second are represented with a 0 + `seconds` field and a positive or negative `nanos` field. For durations + of one second or more, a non-zero value for the `nanos` field must be + of the same sign as the `seconds` field. Must be from -999,999,999 + to +999,999,999 inclusive. + + + diff --git a/flyteidl/gen/pb-protodoc/google/protobuf/index.rst b/flyteidl/gen/pb-protodoc/google/protobuf/index.rst new file mode 100644 index 0000000000..26f8578496 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/protobuf/index.rst @@ -0,0 +1,13 @@ +protobuf +======== + +.. toctree:: + :maxdepth: 1 + :caption: protobuf + :name: protobuftoc + + any.proto + descriptor.proto + duration.proto + struct.proto + timestamp.proto diff --git a/flyteidl/gen/pb-protodoc/google/protobuf/struct.proto.rst b/flyteidl/gen/pb-protodoc/google/protobuf/struct.proto.rst new file mode 100644 index 0000000000..6627c46dca --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/protobuf/struct.proto.rst @@ -0,0 +1,194 @@ +.. _api_file_google/protobuf/struct.proto: + +struct.proto +============================ + +Protocol Buffers - Google's data interchange format +Copyright 2008 Google Inc. All rights reserved. +https://developers.google.com/protocol-buffers/ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +.. _api_msg_google.protobuf.Struct: + +google.protobuf.Struct +---------------------- + +`[google.protobuf.Struct proto] `_ + +`Struct` represents a structured data value, consisting of fields +which map to dynamically typed values. In some languages, `Struct` +might be supported by a native representation. For example, in +scripting languages like JS a struct is represented as an +object. The details of that representation are described together +with the proto support for the language. + +The JSON representation for `Struct` is JSON object. + +.. code-block:: json + + { + "fields": "{...}" + } + +.. _api_field_google.protobuf.Struct.fields: + +fields + (map<`string `_, :ref:`google.protobuf.Value `>) Unordered map of dynamically typed values. + + + + +.. _api_msg_google.protobuf.Value: + +google.protobuf.Value +--------------------- + +`[google.protobuf.Value proto] `_ + +`Value` represents a dynamically typed value which can be either +null, a number, a string, a boolean, a recursive struct value, or a +list of values. A producer of value is expected to set one of that +variants, absence of any variant indicates an error. + +The JSON representation for `Value` is JSON value. + +.. code-block:: json + + { + "null_value": "...", + "number_value": "...", + "string_value": "...", + "bool_value": "...", + "struct_value": "{...}", + "list_value": "{...}" + } + +.. _api_field_google.protobuf.Value.null_value: + +null_value + (:ref:`google.protobuf.NullValue `) Represents a null value. + + The kind of value. + + + Only one of :ref:`null_value `, :ref:`number_value `, :ref:`string_value `, :ref:`bool_value `, :ref:`struct_value `, :ref:`list_value ` may be set. + +.. _api_field_google.protobuf.Value.number_value: + +number_value + (`double `_) Represents a double value. + + The kind of value. + + + Only one of :ref:`null_value `, :ref:`number_value `, :ref:`string_value `, :ref:`bool_value `, :ref:`struct_value `, :ref:`list_value ` may be set. + +.. _api_field_google.protobuf.Value.string_value: + +string_value + (`string `_) Represents a string value. + + The kind of value. + + + Only one of :ref:`null_value `, :ref:`number_value `, :ref:`string_value `, :ref:`bool_value `, :ref:`struct_value `, :ref:`list_value ` may be set. + +.. _api_field_google.protobuf.Value.bool_value: + +bool_value + (`bool `_) Represents a boolean value. + + The kind of value. + + + Only one of :ref:`null_value `, :ref:`number_value `, :ref:`string_value `, :ref:`bool_value `, :ref:`struct_value `, :ref:`list_value ` may be set. + +.. _api_field_google.protobuf.Value.struct_value: + +struct_value + (:ref:`google.protobuf.Struct `) Represents a structured value. + + The kind of value. + + + Only one of :ref:`null_value `, :ref:`number_value `, :ref:`string_value `, :ref:`bool_value `, :ref:`struct_value `, :ref:`list_value ` may be set. + +.. _api_field_google.protobuf.Value.list_value: + +list_value + (:ref:`google.protobuf.ListValue `) Represents a repeated `Value`. + + The kind of value. + + + Only one of :ref:`null_value `, :ref:`number_value `, :ref:`string_value `, :ref:`bool_value `, :ref:`struct_value `, :ref:`list_value ` may be set. + + + +.. _api_msg_google.protobuf.ListValue: + +google.protobuf.ListValue +------------------------- + +`[google.protobuf.ListValue proto] `_ + +`ListValue` is a wrapper around a repeated field of values. + +The JSON representation for `ListValue` is JSON array. + +.. code-block:: json + + { + "values": [] + } + +.. _api_field_google.protobuf.ListValue.values: + +values + (:ref:`google.protobuf.Value `) Repeated field of dynamically typed values. + + + +.. _api_enum_google.protobuf.NullValue: + +Enum google.protobuf.NullValue +------------------------------ + +`[google.protobuf.NullValue proto] `_ + +`NullValue` is a singleton enumeration to represent the null value for the +`Value` type union. + + The JSON representation for `NullValue` is JSON `null`. + +.. _api_enum_value_google.protobuf.NullValue.NULL_VALUE: + +NULL_VALUE + *(DEFAULT)* ⁣Null value. + + diff --git a/flyteidl/gen/pb-protodoc/google/protobuf/timestamp.proto.rst b/flyteidl/gen/pb-protodoc/google/protobuf/timestamp.proto.rst new file mode 100644 index 0000000000..1bbafc5176 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/google/protobuf/timestamp.proto.rst @@ -0,0 +1,146 @@ +.. _api_file_google/protobuf/timestamp.proto: + +timestamp.proto +=============================== + +Protocol Buffers - Google's data interchange format +Copyright 2008 Google Inc. All rights reserved. +https://developers.google.com/protocol-buffers/ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +.. _api_msg_google.protobuf.Timestamp: + +google.protobuf.Timestamp +------------------------- + +`[google.protobuf.Timestamp proto] `_ + +A Timestamp represents a point in time independent of any time zone +or calendar, represented as seconds and fractions of seconds at +nanosecond resolution in UTC Epoch time. It is encoded using the +Proleptic Gregorian Calendar which extends the Gregorian calendar +backwards to year one. It is encoded assuming all minutes are 60 +seconds long, i.e. leap seconds are "smeared" so that no leap second +table is needed for interpretation. Range is from +0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. +By restricting to that range, we ensure that we can convert to +and from RFC 3339 date strings. +See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). + +# Examples + +Example 1: Compute Timestamp from POSIX `time()`. + + Timestamp timestamp; + timestamp.set_seconds(time(NULL)); + timestamp.set_nanos(0); + +Example 2: Compute Timestamp from POSIX `gettimeofday()`. + + struct timeval tv; + gettimeofday(&tv, NULL); + + Timestamp timestamp; + timestamp.set_seconds(tv.tv_sec); + timestamp.set_nanos(tv.tv_usec * 1000); + +Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + + FILETIME ft; + GetSystemTimeAsFileTime(&ft); + UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + + // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + Timestamp timestamp; + timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + +Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + + long millis = System.currentTimeMillis(); + + Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + .setNanos((int) ((millis % 1000) * 1000000)).build(); + + +Example 5: Compute Timestamp from current time in Python. + + timestamp = Timestamp() + timestamp.GetCurrentTime() + +# JSON Mapping + +In JSON format, the Timestamp type is encoded as a string in the +[RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the +format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" +where {year} is always expressed using four digits while {month}, {day}, +{hour}, {min}, and {sec} are zero-padded to two digits each. The fractional +seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), +are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone +is required, though only UTC (as indicated by "Z") is presently supported. + +For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past +01:30 UTC on January 15, 2017. + +In JavaScript, one can convert a Date object to this format using the +standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] +method. In Python, a standard `datetime.datetime` object can be converted +to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) +with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one +can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( +http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime--) +to obtain a formatter capable of generating timestamps in this format. + + + +.. code-block:: json + + { + "seconds": "...", + "nanos": "..." + } + +.. _api_field_google.protobuf.Timestamp.seconds: + +seconds + (`int64 `_) Represents seconds of UTC time since Unix epoch + 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + 9999-12-31T23:59:59Z inclusive. + + +.. _api_field_google.protobuf.Timestamp.nanos: + +nanos + (`int32 `_) Non-negative fractions of a second at nanosecond resolution. Negative + second values with fractions must still have non-negative nanos values + that count forward in time. Must be from 0 to 999,999,999 + inclusive. + + + diff --git a/flyteidl/gen/pb-protodoc/index.rst b/flyteidl/gen/pb-protodoc/index.rst new file mode 100644 index 0000000000..039ef5b7af --- /dev/null +++ b/flyteidl/gen/pb-protodoc/index.rst @@ -0,0 +1,12 @@ +pb-protodoc +=========== + +.. toctree:: + :maxdepth: 1 + :caption: pb-protodoc + :name: pb-protodoctoc + + flyteidl/index + google/index + k8s.io/index + protoc-gen-swagger/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/api/core/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/api/core/index.rst new file mode 100644 index 0000000000..ea5e71b263 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/api/core/index.rst @@ -0,0 +1,9 @@ +core +==== + +.. toctree:: + :maxdepth: 1 + :caption: core + :name: coretoc + + v1/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/generated.proto.rst b/flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/generated.proto.rst new file mode 100644 index 0000000000..8798474b36 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/generated.proto.rst @@ -0,0 +1,10519 @@ +.. _api_file_k8s.io/api/core/v1/generated.proto: + +generated.proto +================================== + + +opyright The Kubernetes Authors. + +icensed under the Apache License, Version 2.0 (the "License"); +ou may not use this file except in compliance with the License. +ou may obtain a copy of the License at + +ttp://www.apache.org/licenses/LICENSE-2.0 + +nless required by applicable law or agreed to in writing, software +istributed under the License is distributed on an "AS IS" BASIS, +ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +ee the License for the specific language governing permissions and +imitations under the License. +This file was autogenerated by go-to-protobuf. Do not edit it manually! + +.. _api_msg_k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource: + +k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource +--------------------------------------------------- + +`[k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource proto] `_ + +Represents a Persistent Disk resource in AWS. + +An AWS EBS disk must exist before mounting to a container. The disk +must also be in the same AWS zone as the kubelet. An AWS EBS disk +can only be mounted as read/write once. AWS EBS volumes support +ownership management and SELinux relabeling. + +.. code-block:: json + + { + "volumeID": "...", + "fsType": "...", + "partition": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource.volumeID: + +volumeID + (`string `_) Unique ID of the persistent disk resource in AWS (Amazon EBS volume). + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + + +.. _api_field_k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource.fsType: + +fsType + (`string `_) Filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource.partition: + +partition + (`int32 `_) The partition in the volume that you want to mount. + If omitted, the default is to mount by volume name. + Examples: For volume /dev/sda1, you specify the partition as "1". + Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + +optional + + +.. _api_field_k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource.readOnly: + +readOnly + (`bool `_) Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". + If omitted, the default is "false". + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Affinity: + +k8s.io.api.core.v1.Affinity +--------------------------- + +`[k8s.io.api.core.v1.Affinity proto] `_ + +Affinity is a group of affinity scheduling rules. + +.. code-block:: json + + { + "nodeAffinity": "{...}", + "podAffinity": "{...}", + "podAntiAffinity": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Affinity.nodeAffinity: + +nodeAffinity + (:ref:`k8s.io.api.core.v1.NodeAffinity `) Describes node affinity scheduling rules for the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.Affinity.podAffinity: + +podAffinity + (:ref:`k8s.io.api.core.v1.PodAffinity `) Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + +optional + + +.. _api_field_k8s.io.api.core.v1.Affinity.podAntiAffinity: + +podAntiAffinity + (:ref:`k8s.io.api.core.v1.PodAntiAffinity `) Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.AttachedVolume: + +k8s.io.api.core.v1.AttachedVolume +--------------------------------- + +`[k8s.io.api.core.v1.AttachedVolume proto] `_ + +AttachedVolume describes a volume attached to a node + +.. code-block:: json + + { + "name": "...", + "devicePath": "..." + } + +.. _api_field_k8s.io.api.core.v1.AttachedVolume.name: + +name + (`string `_) Name of the attached volume + + +.. _api_field_k8s.io.api.core.v1.AttachedVolume.devicePath: + +devicePath + (`string `_) DevicePath represents the device path where the volume should be available + + + + +.. _api_msg_k8s.io.api.core.v1.AvoidPods: + +k8s.io.api.core.v1.AvoidPods +---------------------------- + +`[k8s.io.api.core.v1.AvoidPods proto] `_ + +AvoidPods describes pods that should avoid this node. This is the value for a +Node annotation with key scheduler.alpha.kubernetes.io/preferAvoidPods and +will eventually become a field of NodeStatus. + +.. code-block:: json + + { + "preferAvoidPods": [] + } + +.. _api_field_k8s.io.api.core.v1.AvoidPods.preferAvoidPods: + +preferAvoidPods + (:ref:`k8s.io.api.core.v1.PreferAvoidPodsEntry `) Bounded-sized list of signatures of pods that should avoid this node, sorted + in timestamp order from oldest to newest. Size of the slice is unspecified. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.AzureDiskVolumeSource: + +k8s.io.api.core.v1.AzureDiskVolumeSource +---------------------------------------- + +`[k8s.io.api.core.v1.AzureDiskVolumeSource proto] `_ + +AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + +.. code-block:: json + + { + "diskName": "...", + "diskURI": "...", + "cachingMode": "...", + "fsType": "...", + "readOnly": "...", + "kind": "..." + } + +.. _api_field_k8s.io.api.core.v1.AzureDiskVolumeSource.diskName: + +diskName + (`string `_) The Name of the data disk in the blob storage + + +.. _api_field_k8s.io.api.core.v1.AzureDiskVolumeSource.diskURI: + +diskURI + (`string `_) The URI the data disk in the blob storage + + +.. _api_field_k8s.io.api.core.v1.AzureDiskVolumeSource.cachingMode: + +cachingMode + (`string `_) Host Caching mode: None, Read Only, Read Write. + +optional + + +.. _api_field_k8s.io.api.core.v1.AzureDiskVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + +optional + + +.. _api_field_k8s.io.api.core.v1.AzureDiskVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.AzureDiskVolumeSource.kind: + +kind + (`string `_) Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared + + + + +.. _api_msg_k8s.io.api.core.v1.AzureFilePersistentVolumeSource: + +k8s.io.api.core.v1.AzureFilePersistentVolumeSource +-------------------------------------------------- + +`[k8s.io.api.core.v1.AzureFilePersistentVolumeSource proto] `_ + +AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + +.. code-block:: json + + { + "secretName": "...", + "shareName": "...", + "readOnly": "...", + "secretNamespace": "..." + } + +.. _api_field_k8s.io.api.core.v1.AzureFilePersistentVolumeSource.secretName: + +secretName + (`string `_) the name of secret that contains Azure Storage Account Name and Key + + +.. _api_field_k8s.io.api.core.v1.AzureFilePersistentVolumeSource.shareName: + +shareName + (`string `_) Share Name + + +.. _api_field_k8s.io.api.core.v1.AzureFilePersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.AzureFilePersistentVolumeSource.secretNamespace: + +secretNamespace + (`string `_) the namespace of the secret that contains Azure Storage Account Name and Key + default is the same as the Pod + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.AzureFileVolumeSource: + +k8s.io.api.core.v1.AzureFileVolumeSource +---------------------------------------- + +`[k8s.io.api.core.v1.AzureFileVolumeSource proto] `_ + +AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + +.. code-block:: json + + { + "secretName": "...", + "shareName": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.AzureFileVolumeSource.secretName: + +secretName + (`string `_) the name of secret that contains Azure Storage Account Name and Key + + +.. _api_field_k8s.io.api.core.v1.AzureFileVolumeSource.shareName: + +shareName + (`string `_) Share Name + + +.. _api_field_k8s.io.api.core.v1.AzureFileVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Binding: + +k8s.io.api.core.v1.Binding +-------------------------- + +`[k8s.io.api.core.v1.Binding proto] `_ + +Binding ties one object to another; for example, a pod is bound to a node by a scheduler. +Deprecated in 1.7, please use the bindings subresource of pods instead. + +.. code-block:: json + + { + "metadata": "{...}", + "target": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Binding.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Binding.target: + +target + (:ref:`k8s.io.api.core.v1.ObjectReference `) The target object that you want to bind to the standard object. + + + + +.. _api_msg_k8s.io.api.core.v1.CSIPersistentVolumeSource: + +k8s.io.api.core.v1.CSIPersistentVolumeSource +-------------------------------------------- + +`[k8s.io.api.core.v1.CSIPersistentVolumeSource proto] `_ + +Represents storage that is managed by an external CSI volume driver (Beta feature) + +.. code-block:: json + + { + "driver": "...", + "volumeHandle": "...", + "readOnly": "...", + "fsType": "...", + "volumeAttributes": "{...}", + "controllerPublishSecretRef": "{...}", + "nodeStageSecretRef": "{...}", + "nodePublishSecretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.driver: + +driver + (`string `_) Driver is the name of the driver to use for this volume. + Required. + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.volumeHandle: + +volumeHandle + (`string `_) VolumeHandle is the unique volume name returned by the CSI volume + plugin’s CreateVolume to refer to the volume on all subsequent calls. + Required. + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: The value to pass to ControllerPublishVolumeRequest. + Defaults to false (read/write). + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.volumeAttributes: + +volumeAttributes + (map<`string `_, `string `_>) Attributes of the volume to publish. + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.controllerPublishSecretRef: + +controllerPublishSecretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) ControllerPublishSecretRef is a reference to the secret object containing + sensitive information to pass to the CSI driver to complete the CSI + ControllerPublishVolume and ControllerUnpublishVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secrets are passed. + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.nodeStageSecretRef: + +nodeStageSecretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) NodeStageSecretRef is a reference to the secret object containing sensitive + information to pass to the CSI driver to complete the CSI NodeStageVolume + and NodeStageVolume and NodeUnstageVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secrets are passed. + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIPersistentVolumeSource.nodePublishSecretRef: + +nodePublishSecretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) NodePublishSecretRef is a reference to the secret object containing + sensitive information to pass to the CSI driver to complete the CSI + NodePublishVolume and NodeUnpublishVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secrets are passed. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.CSIVolumeSource: + +k8s.io.api.core.v1.CSIVolumeSource +---------------------------------- + +`[k8s.io.api.core.v1.CSIVolumeSource proto] `_ + +Represents a source location of a volume to mount, managed by an external CSI driver + +.. code-block:: json + + { + "driver": "...", + "readOnly": "...", + "fsType": "...", + "volumeAttributes": "{...}", + "nodePublishSecretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.CSIVolumeSource.driver: + +driver + (`string `_) Driver is the name of the CSI driver that handles this volume. + Consult with your admin for the correct name as registered in the cluster. + + +.. _api_field_k8s.io.api.core.v1.CSIVolumeSource.readOnly: + +readOnly + (`bool `_) Specifies a read-only configuration for the volume. + Defaults to false (read/write). + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". + If not provided, the empty value is passed to the associated CSI driver + which will determine the default filesystem to apply. + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIVolumeSource.volumeAttributes: + +volumeAttributes + (map<`string `_, `string `_>) VolumeAttributes stores driver-specific properties that are passed to the CSI + driver. Consult your driver's documentation for supported values. + +optional + + +.. _api_field_k8s.io.api.core.v1.CSIVolumeSource.nodePublishSecretRef: + +nodePublishSecretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) NodePublishSecretRef is a reference to the secret object containing + sensitive information to pass to the CSI driver to complete the CSI + NodePublishVolume and NodeUnpublishVolume calls. + This field is optional, and may be empty if no secret is required. If the + secret object contains more than one secret, all secret references are passed. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Capabilities: + +k8s.io.api.core.v1.Capabilities +------------------------------- + +`[k8s.io.api.core.v1.Capabilities proto] `_ + +Adds and removes POSIX capabilities from running containers. + +.. code-block:: json + + { + "add": [], + "drop": [] + } + +.. _api_field_k8s.io.api.core.v1.Capabilities.add: + +add + (`string `_) Added capabilities + +optional + + +.. _api_field_k8s.io.api.core.v1.Capabilities.drop: + +drop + (`string `_) Removed capabilities + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.CephFSPersistentVolumeSource: + +k8s.io.api.core.v1.CephFSPersistentVolumeSource +----------------------------------------------- + +`[k8s.io.api.core.v1.CephFSPersistentVolumeSource proto] `_ + +Represents a Ceph Filesystem mount that lasts the lifetime of a pod +Cephfs volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "monitors": [], + "path": "...", + "user": "...", + "secretFile": "...", + "secretRef": "{...}", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.CephFSPersistentVolumeSource.monitors: + +monitors + (`string `_) Required: Monitors is a collection of Ceph monitors + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + + +.. _api_field_k8s.io.api.core.v1.CephFSPersistentVolumeSource.path: + +path + (`string `_) Optional: Used as the mounted root, rather than the full Ceph tree, default is / + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSPersistentVolumeSource.user: + +user + (`string `_) Optional: User is the rados user name, default is admin + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSPersistentVolumeSource.secretFile: + +secretFile + (`string `_) Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) Optional: SecretRef is reference to the authentication secret for User, default is empty. + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.CephFSVolumeSource: + +k8s.io.api.core.v1.CephFSVolumeSource +------------------------------------- + +`[k8s.io.api.core.v1.CephFSVolumeSource proto] `_ + +Represents a Ceph Filesystem mount that lasts the lifetime of a pod +Cephfs volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "monitors": [], + "path": "...", + "user": "...", + "secretFile": "...", + "secretRef": "{...}", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.CephFSVolumeSource.monitors: + +monitors + (`string `_) Required: Monitors is a collection of Ceph monitors + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + + +.. _api_field_k8s.io.api.core.v1.CephFSVolumeSource.path: + +path + (`string `_) Optional: Used as the mounted root, rather than the full Ceph tree, default is / + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSVolumeSource.user: + +user + (`string `_) Optional: User is the rados user name, default is admin + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSVolumeSource.secretFile: + +secretFile + (`string `_) Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) Optional: SecretRef is reference to the authentication secret for User, default is empty. + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.CephFSVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.CinderPersistentVolumeSource: + +k8s.io.api.core.v1.CinderPersistentVolumeSource +----------------------------------------------- + +`[k8s.io.api.core.v1.CinderPersistentVolumeSource proto] `_ + +Represents a cinder volume resource in Openstack. +A Cinder volume must exist before mounting to a container. +The volume must also be in the same region as the kubelet. +Cinder volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "volumeID": "...", + "fsType": "...", + "readOnly": "...", + "secretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.CinderPersistentVolumeSource.volumeID: + +volumeID + (`string `_) volume id used to identify the volume in cinder + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + + +.. _api_field_k8s.io.api.core.v1.CinderPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.CinderPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.CinderPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) Optional: points to a secret object containing parameters used to connect + to OpenStack. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.CinderVolumeSource: + +k8s.io.api.core.v1.CinderVolumeSource +------------------------------------- + +`[k8s.io.api.core.v1.CinderVolumeSource proto] `_ + +Represents a cinder volume resource in Openstack. +A Cinder volume must exist before mounting to a container. +The volume must also be in the same region as the kubelet. +Cinder volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "volumeID": "...", + "fsType": "...", + "readOnly": "...", + "secretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.CinderVolumeSource.volumeID: + +volumeID + (`string `_) volume id used to identify the volume in cinder + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + + +.. _api_field_k8s.io.api.core.v1.CinderVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.CinderVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.CinderVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) Optional: points to a secret object containing parameters used to connect + to OpenStack. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ClientIPConfig: + +k8s.io.api.core.v1.ClientIPConfig +--------------------------------- + +`[k8s.io.api.core.v1.ClientIPConfig proto] `_ + +ClientIPConfig represents the configurations of Client IP based session affinity. + +.. code-block:: json + + { + "timeoutSeconds": "..." + } + +.. _api_field_k8s.io.api.core.v1.ClientIPConfig.timeoutSeconds: + +timeoutSeconds + (`int32 `_) timeoutSeconds specifies the seconds of ClientIP type session sticky time. + The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP". + Default value is 10800(for 3 hours). + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ComponentCondition: + +k8s.io.api.core.v1.ComponentCondition +------------------------------------- + +`[k8s.io.api.core.v1.ComponentCondition proto] `_ + +Information about the condition of a component. + +.. code-block:: json + + { + "type": "...", + "status": "...", + "message": "...", + "error": "..." + } + +.. _api_field_k8s.io.api.core.v1.ComponentCondition.type: + +type + (`string `_) Type of condition for a component. + Valid value: "Healthy" + + +.. _api_field_k8s.io.api.core.v1.ComponentCondition.status: + +status + (`string `_) Status of the condition for a component. + Valid values for "Healthy": "True", "False", or "Unknown". + + +.. _api_field_k8s.io.api.core.v1.ComponentCondition.message: + +message + (`string `_) Message about the condition for a component. + For example, information about a health check. + +optional + + +.. _api_field_k8s.io.api.core.v1.ComponentCondition.error: + +error + (`string `_) Condition error code for a component. + For example, a health check error code. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ComponentStatus: + +k8s.io.api.core.v1.ComponentStatus +---------------------------------- + +`[k8s.io.api.core.v1.ComponentStatus proto] `_ + +ComponentStatus (and ComponentStatusList) holds the cluster validation info. + +.. code-block:: json + + { + "metadata": "{...}", + "conditions": [] + } + +.. _api_field_k8s.io.api.core.v1.ComponentStatus.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.ComponentStatus.conditions: + +conditions + (:ref:`k8s.io.api.core.v1.ComponentCondition `) List of component conditions observed + +optional + +patchMergeKey=type + +patchStrategy=merge + + + + +.. _api_msg_k8s.io.api.core.v1.ComponentStatusList: + +k8s.io.api.core.v1.ComponentStatusList +-------------------------------------- + +`[k8s.io.api.core.v1.ComponentStatusList proto] `_ + +Status of all the conditions for the component as a list of ComponentStatus objects. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.ComponentStatusList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.ComponentStatusList.items: + +items + (:ref:`k8s.io.api.core.v1.ComponentStatus `) List of ComponentStatus objects. + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMap: + +k8s.io.api.core.v1.ConfigMap +---------------------------- + +`[k8s.io.api.core.v1.ConfigMap proto] `_ + +ConfigMap holds configuration data for pods to consume. + +.. code-block:: json + + { + "metadata": "{...}", + "data": "{...}", + "binaryData": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ConfigMap.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMap.data: + +data + (map<`string `_, `string `_>) Data contains the configuration data. + Each key must consist of alphanumeric characters, '-', '_' or '.'. + Values with non-UTF-8 byte sequences must use the BinaryData field. + The keys stored in Data must not overlap with the keys in + the BinaryData field, this is enforced during validation process. + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMap.binaryData: + +binaryData + (map<`string `_, `bytes `_>) BinaryData contains the binary data. + Each key must consist of alphanumeric characters, '-', '_' or '.'. + BinaryData can contain byte sequences that are not in the UTF-8 range. + The keys stored in BinaryData must not overlap with the ones in + the Data field, this is enforced during validation process. + Using this field will require 1.10+ apiserver and + kubelet. + +optional + + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMapEnvSource: + +k8s.io.api.core.v1.ConfigMapEnvSource +------------------------------------- + +`[k8s.io.api.core.v1.ConfigMapEnvSource proto] `_ + +ConfigMapEnvSource selects a ConfigMap to populate the environment +variables with. + +The contents of the target ConfigMap's Data field will represent the +key-value pairs as environment variables. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.ConfigMapEnvSource.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) The ConfigMap to select from. + + +.. _api_field_k8s.io.api.core.v1.ConfigMapEnvSource.optional: + +optional + (`bool `_) Specify whether the ConfigMap must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMapKeySelector: + +k8s.io.api.core.v1.ConfigMapKeySelector +--------------------------------------- + +`[k8s.io.api.core.v1.ConfigMapKeySelector proto] `_ + +Selects a key from a ConfigMap. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "key": "...", + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.ConfigMapKeySelector.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) The ConfigMap to select from. + + +.. _api_field_k8s.io.api.core.v1.ConfigMapKeySelector.key: + +key + (`string `_) The key to select. + + +.. _api_field_k8s.io.api.core.v1.ConfigMapKeySelector.optional: + +optional + (`bool `_) Specify whether the ConfigMap or it's key must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMapList: + +k8s.io.api.core.v1.ConfigMapList +-------------------------------- + +`[k8s.io.api.core.v1.ConfigMapList proto] `_ + +ConfigMapList is a resource containing a list of ConfigMap objects. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.ConfigMapList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMapList.items: + +items + (:ref:`k8s.io.api.core.v1.ConfigMap `) Items is the list of ConfigMaps. + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMapNodeConfigSource: + +k8s.io.api.core.v1.ConfigMapNodeConfigSource +-------------------------------------------- + +`[k8s.io.api.core.v1.ConfigMapNodeConfigSource proto] `_ + +ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. + +.. code-block:: json + + { + "namespace": "...", + "name": "...", + "uid": "...", + "resourceVersion": "...", + "kubeletConfigKey": "..." + } + +.. _api_field_k8s.io.api.core.v1.ConfigMapNodeConfigSource.namespace: + +namespace + (`string `_) Namespace is the metadata.namespace of the referenced ConfigMap. + This field is required in all cases. + + +.. _api_field_k8s.io.api.core.v1.ConfigMapNodeConfigSource.name: + +name + (`string `_) Name is the metadata.name of the referenced ConfigMap. + This field is required in all cases. + + +.. _api_field_k8s.io.api.core.v1.ConfigMapNodeConfigSource.uid: + +uid + (`string `_) UID is the metadata.UID of the referenced ConfigMap. + This field is forbidden in Node.Spec, and required in Node.Status. + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMapNodeConfigSource.resourceVersion: + +resourceVersion + (`string `_) ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. + This field is forbidden in Node.Spec, and required in Node.Status. + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMapNodeConfigSource.kubeletConfigKey: + +kubeletConfigKey + (`string `_) KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure + This field is required in all cases. + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMapProjection: + +k8s.io.api.core.v1.ConfigMapProjection +-------------------------------------- + +`[k8s.io.api.core.v1.ConfigMapProjection proto] `_ + +Adapts a ConfigMap into a projected volume. + +The contents of the target ConfigMap's Data field will be presented in a +projected volume as files using the keys in the Data field as the file names, +unless the items element is populated with specific mappings of keys to paths. +Note that this is identical to a configmap volume source without the default +mode. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "items": [], + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.ConfigMapProjection.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) + +.. _api_field_k8s.io.api.core.v1.ConfigMapProjection.items: + +items + (:ref:`k8s.io.api.core.v1.KeyToPath `) If unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMapProjection.optional: + +optional + (`bool `_) Specify whether the ConfigMap or it's keys must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ConfigMapVolumeSource: + +k8s.io.api.core.v1.ConfigMapVolumeSource +---------------------------------------- + +`[k8s.io.api.core.v1.ConfigMapVolumeSource proto] `_ + +Adapts a ConfigMap into a volume. + +The contents of the target ConfigMap's Data field will be presented in a +volume as files using the keys in the Data field as the file names, unless +the items element is populated with specific mappings of keys to paths. +ConfigMap volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "items": [], + "defaultMode": "...", + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.ConfigMapVolumeSource.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) + +.. _api_field_k8s.io.api.core.v1.ConfigMapVolumeSource.items: + +items + (:ref:`k8s.io.api.core.v1.KeyToPath `) If unspecified, each key-value pair in the Data field of the referenced + ConfigMap will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the ConfigMap, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMapVolumeSource.defaultMode: + +defaultMode + (`int32 `_) Optional: mode bits to use on created files by default. Must be a + value between 0 and 0777. Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. + +optional + + +.. _api_field_k8s.io.api.core.v1.ConfigMapVolumeSource.optional: + +optional + (`bool `_) Specify whether the ConfigMap or it's keys must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Container: + +k8s.io.api.core.v1.Container +---------------------------- + +`[k8s.io.api.core.v1.Container proto] `_ + +A single application container that you want to run within a pod. + +.. code-block:: json + + { + "name": "...", + "image": "...", + "command": [], + "args": [], + "workingDir": "...", + "ports": [], + "envFrom": [], + "env": [], + "resources": "{...}", + "volumeMounts": [], + "volumeDevices": [], + "livenessProbe": "{...}", + "readinessProbe": "{...}", + "lifecycle": "{...}", + "terminationMessagePath": "...", + "terminationMessagePolicy": "...", + "imagePullPolicy": "...", + "securityContext": "{...}", + "stdin": "...", + "stdinOnce": "...", + "tty": "..." + } + +.. _api_field_k8s.io.api.core.v1.Container.name: + +name + (`string `_) Name of the container specified as a DNS_LABEL. + Each container in a pod must have a unique name (DNS_LABEL). + Cannot be updated. + + +.. _api_field_k8s.io.api.core.v1.Container.image: + +image + (`string `_) Docker image name. + More info: https://kubernetes.io/docs/concepts/containers/images + This field is optional to allow higher level config management to default or override + container images in workload controllers like Deployments and StatefulSets. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.command: + +command + (`string `_) Entrypoint array. Not executed within a shell. + The docker image's ENTRYPOINT is used if this is not provided. + Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + regardless of whether the variable exists or not. + Cannot be updated. + More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.args: + +args + (`string `_) Arguments to the entrypoint. + The docker image's CMD is used if this is not provided. + Variable references $(VAR_NAME) are expanded using the container's environment. If a variable + cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax + can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, + regardless of whether the variable exists or not. + Cannot be updated. + More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.workingDir: + +workingDir + (`string `_) Container's working directory. + If not specified, the container runtime's default will be used, which + might be configured in the container image. + Cannot be updated. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.ports: + +ports + (:ref:`k8s.io.api.core.v1.ContainerPort `) List of ports to expose from the container. Exposing a port here gives + the system additional information about the network connections a + container uses, but is primarily informational. Not specifying a port here + DOES NOT prevent that port from being exposed. Any port which is + listening on the default "0.0.0.0" address inside a container will be + accessible from the network. + Cannot be updated. + +optional + +patchMergeKey=containerPort + +patchStrategy=merge + +listType=map + +listMapKey=containerPort + +listMapKey=protocol + + +.. _api_field_k8s.io.api.core.v1.Container.envFrom: + +envFrom + (:ref:`k8s.io.api.core.v1.EnvFromSource `) List of sources to populate environment variables in the container. + The keys defined within a source must be a C_IDENTIFIER. All invalid keys + will be reported as an event when the container is starting. When a key exists in multiple + sources, the value associated with the last source will take precedence. + Values defined by an Env with a duplicate key will take precedence. + Cannot be updated. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.env: + +env + (:ref:`k8s.io.api.core.v1.EnvVar `) List of environment variables to set in the container. + Cannot be updated. + +optional + +patchMergeKey=name + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.Container.resources: + +resources + (:ref:`k8s.io.api.core.v1.ResourceRequirements `) Compute Resources required by this container. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.volumeMounts: + +volumeMounts + (:ref:`k8s.io.api.core.v1.VolumeMount `) Pod volumes to mount into the container's filesystem. + Cannot be updated. + +optional + +patchMergeKey=mountPath + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.Container.volumeDevices: + +volumeDevices + (:ref:`k8s.io.api.core.v1.VolumeDevice `) volumeDevices is the list of block devices to be used by the container. + This is a beta feature. + +patchMergeKey=devicePath + +patchStrategy=merge + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.livenessProbe: + +livenessProbe + (:ref:`k8s.io.api.core.v1.Probe `) Periodic probe of container liveness. + Container will be restarted if the probe fails. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.readinessProbe: + +readinessProbe + (:ref:`k8s.io.api.core.v1.Probe `) Periodic probe of container service readiness. + Container will be removed from service endpoints if the probe fails. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.lifecycle: + +lifecycle + (:ref:`k8s.io.api.core.v1.Lifecycle `) Actions that the management system should take in response to container lifecycle events. + Cannot be updated. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.terminationMessagePath: + +terminationMessagePath + (`string `_) Optional: Path at which the file to which the container's termination message + will be written is mounted into the container's filesystem. + Message written is intended to be brief final status, such as an assertion failure message. + Will be truncated by the node if greater than 4096 bytes. The total message length across + all containers will be limited to 12kb. + Defaults to /dev/termination-log. + Cannot be updated. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.terminationMessagePolicy: + +terminationMessagePolicy + (`string `_) Indicate how the termination message should be populated. File will use the contents of + terminationMessagePath to populate the container status message on both success and failure. + FallbackToLogsOnError will use the last chunk of container log output if the termination + message file is empty and the container exited with an error. + The log output is limited to 2048 bytes or 80 lines, whichever is smaller. + Defaults to File. + Cannot be updated. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.imagePullPolicy: + +imagePullPolicy + (`string `_) Image pull policy. + One of Always, Never, IfNotPresent. + Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.securityContext: + +securityContext + (:ref:`k8s.io.api.core.v1.SecurityContext `) Security options the pod should run with. + More info: https://kubernetes.io/docs/concepts/policy/security-context/ + More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.stdin: + +stdin + (`bool `_) Whether this container should allocate a buffer for stdin in the container runtime. If this + is not set, reads from stdin in the container will always result in EOF. + Default is false. + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.stdinOnce: + +stdinOnce + (`bool `_) Whether the container runtime should close the stdin channel after it has been opened by + a single attach. When stdin is true the stdin stream will remain open across multiple attach + sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the + first client attaches to stdin, and then remains open and accepts data until the client disconnects, + at which time stdin is closed and remains closed until the container is restarted. If this + flag is false, a container processes that reads from stdin will never receive an EOF. + Default is false + +optional + + +.. _api_field_k8s.io.api.core.v1.Container.tty: + +tty + (`bool `_) Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. + Default is false. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerImage: + +k8s.io.api.core.v1.ContainerImage +--------------------------------- + +`[k8s.io.api.core.v1.ContainerImage proto] `_ + +Describe a container image + +.. code-block:: json + + { + "names": [], + "sizeBytes": "..." + } + +.. _api_field_k8s.io.api.core.v1.ContainerImage.names: + +names + (`string `_) Names by which this image is known. + e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + + +.. _api_field_k8s.io.api.core.v1.ContainerImage.sizeBytes: + +sizeBytes + (`int64 `_) The size of the image in bytes. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerPort: + +k8s.io.api.core.v1.ContainerPort +-------------------------------- + +`[k8s.io.api.core.v1.ContainerPort proto] `_ + +ContainerPort represents a network port in a single container. + +.. code-block:: json + + { + "name": "...", + "hostPort": "...", + "containerPort": "...", + "protocol": "...", + "hostIP": "..." + } + +.. _api_field_k8s.io.api.core.v1.ContainerPort.name: + +name + (`string `_) If specified, this must be an IANA_SVC_NAME and unique within the pod. Each + named port in a pod must have a unique name. Name for the port that can be + referred to by services. + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerPort.hostPort: + +hostPort + (`int32 `_) Number of port to expose on the host. + If specified, this must be a valid port number, 0 < x < 65536. + If HostNetwork is specified, this must match ContainerPort. + Most containers do not need this. + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerPort.containerPort: + +containerPort + (`int32 `_) Number of port to expose on the pod's IP address. + This must be a valid port number, 0 < x < 65536. + + +.. _api_field_k8s.io.api.core.v1.ContainerPort.protocol: + +protocol + (`string `_) Protocol for port. Must be UDP, TCP, or SCTP. + Defaults to "TCP". + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerPort.hostIP: + +hostIP + (`string `_) What host IP to bind the external port to. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerState: + +k8s.io.api.core.v1.ContainerState +--------------------------------- + +`[k8s.io.api.core.v1.ContainerState proto] `_ + +ContainerState holds a possible state of container. +Only one of its members may be specified. +If none of them is specified, the default one is ContainerStateWaiting. + +.. code-block:: json + + { + "waiting": "{...}", + "running": "{...}", + "terminated": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ContainerState.waiting: + +waiting + (:ref:`k8s.io.api.core.v1.ContainerStateWaiting `) Details about a waiting container + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerState.running: + +running + (:ref:`k8s.io.api.core.v1.ContainerStateRunning `) Details about a running container + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerState.terminated: + +terminated + (:ref:`k8s.io.api.core.v1.ContainerStateTerminated `) Details about a terminated container + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerStateRunning: + +k8s.io.api.core.v1.ContainerStateRunning +---------------------------------------- + +`[k8s.io.api.core.v1.ContainerStateRunning proto] `_ + +ContainerStateRunning is a running state of a container. + +.. code-block:: json + + { + "startedAt": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ContainerStateRunning.startedAt: + +startedAt + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Time at which the container was last (re-)started + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerStateTerminated: + +k8s.io.api.core.v1.ContainerStateTerminated +------------------------------------------- + +`[k8s.io.api.core.v1.ContainerStateTerminated proto] `_ + +ContainerStateTerminated is a terminated state of a container. + +.. code-block:: json + + { + "exitCode": "...", + "signal": "...", + "reason": "...", + "message": "...", + "startedAt": "{...}", + "finishedAt": "{...}", + "containerID": "..." + } + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.exitCode: + +exitCode + (`int32 `_) Exit status from the last termination of the container + + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.signal: + +signal + (`int32 `_) Signal from the last termination of the container + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.reason: + +reason + (`string `_) (brief) reason from the last termination of the container + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.message: + +message + (`string `_) Message regarding the last termination of the container + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.startedAt: + +startedAt + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Time at which previous execution of the container started + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.finishedAt: + +finishedAt + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Time at which the container last terminated + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStateTerminated.containerID: + +containerID + (`string `_) Container's ID in the format 'docker://' + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerStateWaiting: + +k8s.io.api.core.v1.ContainerStateWaiting +---------------------------------------- + +`[k8s.io.api.core.v1.ContainerStateWaiting proto] `_ + +ContainerStateWaiting is a waiting state of a container. + +.. code-block:: json + + { + "reason": "...", + "message": "..." + } + +.. _api_field_k8s.io.api.core.v1.ContainerStateWaiting.reason: + +reason + (`string `_) (brief) reason the container is not yet running. + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStateWaiting.message: + +message + (`string `_) Message regarding why the container is not yet running. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ContainerStatus: + +k8s.io.api.core.v1.ContainerStatus +---------------------------------- + +`[k8s.io.api.core.v1.ContainerStatus proto] `_ + +ContainerStatus contains details for the current status of this container. + +.. code-block:: json + + { + "name": "...", + "state": "{...}", + "lastState": "{...}", + "ready": "...", + "restartCount": "...", + "image": "...", + "imageID": "...", + "containerID": "..." + } + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.name: + +name + (`string `_) This must be a DNS_LABEL. Each container in a pod must have a unique name. + Cannot be updated. + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.state: + +state + (:ref:`k8s.io.api.core.v1.ContainerState `) Details about the container's current condition. + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.lastState: + +lastState + (:ref:`k8s.io.api.core.v1.ContainerState `) Details about the container's last termination condition. + +optional + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.ready: + +ready + (`bool `_) Specifies whether the container has passed its readiness probe. + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.restartCount: + +restartCount + (`int32 `_) The number of times the container has been restarted, currently based on + the number of dead containers that have not yet been removed. + Note that this is calculated from dead containers. But those containers are subject to + garbage collection. This value will get capped at 5 by GC. + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.image: + +image + (`string `_) The image the container is running. + More info: https://kubernetes.io/docs/concepts/containers/images + TODO(dchen1107): Which image the container is running with? + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.imageID: + +imageID + (`string `_) ImageID of the container's image. + + +.. _api_field_k8s.io.api.core.v1.ContainerStatus.containerID: + +containerID + (`string `_) Container's ID in the format 'docker://'. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.DaemonEndpoint: + +k8s.io.api.core.v1.DaemonEndpoint +--------------------------------- + +`[k8s.io.api.core.v1.DaemonEndpoint proto] `_ + +DaemonEndpoint contains information about a single Daemon endpoint. + +.. code-block:: json + + { + "Port": "..." + } + +.. _api_field_k8s.io.api.core.v1.DaemonEndpoint.Port: + +Port + (`int32 `_) Port number of the given endpoint. + + + + +.. _api_msg_k8s.io.api.core.v1.DownwardAPIProjection: + +k8s.io.api.core.v1.DownwardAPIProjection +---------------------------------------- + +`[k8s.io.api.core.v1.DownwardAPIProjection proto] `_ + +Represents downward API info for projecting into a projected volume. +Note that this is identical to a downwardAPI volume source without the default +mode. + +.. code-block:: json + + { + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.DownwardAPIProjection.items: + +items + (:ref:`k8s.io.api.core.v1.DownwardAPIVolumeFile `) Items is a list of DownwardAPIVolume file + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.DownwardAPIVolumeFile: + +k8s.io.api.core.v1.DownwardAPIVolumeFile +---------------------------------------- + +`[k8s.io.api.core.v1.DownwardAPIVolumeFile proto] `_ + +DownwardAPIVolumeFile represents information to create the file containing the pod field + +.. code-block:: json + + { + "path": "...", + "fieldRef": "{...}", + "resourceFieldRef": "{...}", + "mode": "..." + } + +.. _api_field_k8s.io.api.core.v1.DownwardAPIVolumeFile.path: + +path + (`string `_) Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' + + +.. _api_field_k8s.io.api.core.v1.DownwardAPIVolumeFile.fieldRef: + +fieldRef + (:ref:`k8s.io.api.core.v1.ObjectFieldSelector `) Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + +optional + + +.. _api_field_k8s.io.api.core.v1.DownwardAPIVolumeFile.resourceFieldRef: + +resourceFieldRef + (:ref:`k8s.io.api.core.v1.ResourceFieldSelector `) Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + +optional + + +.. _api_field_k8s.io.api.core.v1.DownwardAPIVolumeFile.mode: + +mode + (`int32 `_) Optional: mode bits to use on this file, must be a value between 0 + and 0777. If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.DownwardAPIVolumeSource: + +k8s.io.api.core.v1.DownwardAPIVolumeSource +------------------------------------------ + +`[k8s.io.api.core.v1.DownwardAPIVolumeSource proto] `_ + +DownwardAPIVolumeSource represents a volume containing downward API info. +Downward API volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "items": [], + "defaultMode": "..." + } + +.. _api_field_k8s.io.api.core.v1.DownwardAPIVolumeSource.items: + +items + (:ref:`k8s.io.api.core.v1.DownwardAPIVolumeFile `) Items is a list of downward API volume file + +optional + + +.. _api_field_k8s.io.api.core.v1.DownwardAPIVolumeSource.defaultMode: + +defaultMode + (`int32 `_) Optional: mode bits to use on created files by default. Must be a + value between 0 and 0777. Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EmptyDirVolumeSource: + +k8s.io.api.core.v1.EmptyDirVolumeSource +--------------------------------------- + +`[k8s.io.api.core.v1.EmptyDirVolumeSource proto] `_ + +Represents an empty directory for a pod. +Empty directory volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "medium": "...", + "sizeLimit": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.EmptyDirVolumeSource.medium: + +medium + (`string `_) What type of storage medium should back this directory. + The default is "" which means to use the node's default medium. + Must be an empty string (default) or Memory. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + +optional + + +.. _api_field_k8s.io.api.core.v1.EmptyDirVolumeSource.sizeLimit: + +sizeLimit + (:ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `) Total amount of local storage required for this EmptyDir volume. + The size limit is also applicable for memory medium. + The maximum usage on memory medium EmptyDir would be the minimum value between + the SizeLimit specified here and the sum of memory limits of all containers in a pod. + The default is nil which means that the limit is undefined. + More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EndpointAddress: + +k8s.io.api.core.v1.EndpointAddress +---------------------------------- + +`[k8s.io.api.core.v1.EndpointAddress proto] `_ + +EndpointAddress is a tuple that describes single IP address. + +.. code-block:: json + + { + "ip": "...", + "hostname": "...", + "nodeName": "...", + "targetRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.EndpointAddress.ip: + +ip + (`string `_) The IP of this endpoint. + May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), + or link-local multicast ((224.0.0.0/24). + IPv6 is also accepted but not fully supported on all platforms. Also, certain + kubernetes components, like kube-proxy, are not IPv6 ready. + TODO: This should allow hostname or IP, See #4447. + + +.. _api_field_k8s.io.api.core.v1.EndpointAddress.hostname: + +hostname + (`string `_) The Hostname of this endpoint + +optional + + +.. _api_field_k8s.io.api.core.v1.EndpointAddress.nodeName: + +nodeName + (`string `_) Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. + +optional + + +.. _api_field_k8s.io.api.core.v1.EndpointAddress.targetRef: + +targetRef + (:ref:`k8s.io.api.core.v1.ObjectReference `) Reference to object providing the endpoint. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EndpointPort: + +k8s.io.api.core.v1.EndpointPort +------------------------------- + +`[k8s.io.api.core.v1.EndpointPort proto] `_ + +EndpointPort is a tuple that describes a single port. + +.. code-block:: json + + { + "name": "...", + "port": "...", + "protocol": "..." + } + +.. _api_field_k8s.io.api.core.v1.EndpointPort.name: + +name + (`string `_) The name of this port (corresponds to ServicePort.Name). + Must be a DNS_LABEL. + Optional only if one port is defined. + +optional + + +.. _api_field_k8s.io.api.core.v1.EndpointPort.port: + +port + (`int32 `_) The port number of the endpoint. + + +.. _api_field_k8s.io.api.core.v1.EndpointPort.protocol: + +protocol + (`string `_) The IP protocol for this port. + Must be UDP, TCP, or SCTP. + Default is TCP. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EndpointSubset: + +k8s.io.api.core.v1.EndpointSubset +--------------------------------- + +`[k8s.io.api.core.v1.EndpointSubset proto] `_ + +EndpointSubset is a group of addresses with a common set of ports. The +expanded set of endpoints is the Cartesian product of Addresses x Ports. +For example, given: + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + } +The resulting set of endpoints can be viewed as: + a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], + b: [ 10.10.1.1:309, 10.10.2.2:309 ] + +.. code-block:: json + + { + "addresses": [], + "notReadyAddresses": [], + "ports": [] + } + +.. _api_field_k8s.io.api.core.v1.EndpointSubset.addresses: + +addresses + (:ref:`k8s.io.api.core.v1.EndpointAddress `) IP addresses which offer the related ports that are marked as ready. These endpoints + should be considered safe for load balancers and clients to utilize. + +optional + + +.. _api_field_k8s.io.api.core.v1.EndpointSubset.notReadyAddresses: + +notReadyAddresses + (:ref:`k8s.io.api.core.v1.EndpointAddress `) IP addresses which offer the related ports but are not currently marked as ready + because they have not yet finished starting, have recently failed a readiness check, + or have recently failed a liveness check. + +optional + + +.. _api_field_k8s.io.api.core.v1.EndpointSubset.ports: + +ports + (:ref:`k8s.io.api.core.v1.EndpointPort `) Port numbers available on the related IP addresses. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Endpoints: + +k8s.io.api.core.v1.Endpoints +---------------------------- + +`[k8s.io.api.core.v1.Endpoints proto] `_ + +Endpoints is a collection of endpoints that implement the actual service. Example: + Name: "mysvc", + Subsets: [ + { + Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], + Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] + }, + { + Addresses: [{"ip": "10.10.3.3"}], + Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] + }, + ] + +.. code-block:: json + + { + "metadata": "{...}", + "subsets": [] + } + +.. _api_field_k8s.io.api.core.v1.Endpoints.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Endpoints.subsets: + +subsets + (:ref:`k8s.io.api.core.v1.EndpointSubset `) The set of all endpoints is the union of all subsets. Addresses are placed into + subsets according to the IPs they share. A single address with multiple ports, + some of which are ready and some of which are not (because they come from + different containers) will result in the address being displayed in different + subsets for the different ports. No address will appear in both Addresses and + NotReadyAddresses in the same subset. + Sets of addresses and ports that comprise a service. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EndpointsList: + +k8s.io.api.core.v1.EndpointsList +-------------------------------- + +`[k8s.io.api.core.v1.EndpointsList proto] `_ + +EndpointsList is a list of endpoints. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.EndpointsList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.EndpointsList.items: + +items + (:ref:`k8s.io.api.core.v1.Endpoints `) List of endpoints. + + + + +.. _api_msg_k8s.io.api.core.v1.EnvFromSource: + +k8s.io.api.core.v1.EnvFromSource +-------------------------------- + +`[k8s.io.api.core.v1.EnvFromSource proto] `_ + +EnvFromSource represents the source of a set of ConfigMaps + +.. code-block:: json + + { + "prefix": "...", + "configMapRef": "{...}", + "secretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.EnvFromSource.prefix: + +prefix + (`string `_) An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. + +optional + + +.. _api_field_k8s.io.api.core.v1.EnvFromSource.configMapRef: + +configMapRef + (:ref:`k8s.io.api.core.v1.ConfigMapEnvSource `) The ConfigMap to select from + +optional + + +.. _api_field_k8s.io.api.core.v1.EnvFromSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretEnvSource `) The Secret to select from + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EnvVar: + +k8s.io.api.core.v1.EnvVar +------------------------- + +`[k8s.io.api.core.v1.EnvVar proto] `_ + +EnvVar represents an environment variable present in a Container. + +.. code-block:: json + + { + "name": "...", + "value": "...", + "valueFrom": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.EnvVar.name: + +name + (`string `_) Name of the environment variable. Must be a C_IDENTIFIER. + + +.. _api_field_k8s.io.api.core.v1.EnvVar.value: + +value + (`string `_) Variable references $(VAR_NAME) are expanded + using the previous defined environment variables in the container and + any service environment variables. If a variable cannot be resolved, + the reference in the input string will be unchanged. The $(VAR_NAME) + syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + references will never be expanded, regardless of whether the variable + exists or not. + Defaults to "". + +optional + + +.. _api_field_k8s.io.api.core.v1.EnvVar.valueFrom: + +valueFrom + (:ref:`k8s.io.api.core.v1.EnvVarSource `) Source for the environment variable's value. Cannot be used if value is not empty. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EnvVarSource: + +k8s.io.api.core.v1.EnvVarSource +------------------------------- + +`[k8s.io.api.core.v1.EnvVarSource proto] `_ + +EnvVarSource represents a source for the value of an EnvVar. + +.. code-block:: json + + { + "fieldRef": "{...}", + "resourceFieldRef": "{...}", + "configMapKeyRef": "{...}", + "secretKeyRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.EnvVarSource.fieldRef: + +fieldRef + (:ref:`k8s.io.api.core.v1.ObjectFieldSelector `) Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, + spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. + +optional + + +.. _api_field_k8s.io.api.core.v1.EnvVarSource.resourceFieldRef: + +resourceFieldRef + (:ref:`k8s.io.api.core.v1.ResourceFieldSelector `) Selects a resource of the container: only resources limits and requests + (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + +optional + + +.. _api_field_k8s.io.api.core.v1.EnvVarSource.configMapKeyRef: + +configMapKeyRef + (:ref:`k8s.io.api.core.v1.ConfigMapKeySelector `) Selects a key of a ConfigMap. + +optional + + +.. _api_field_k8s.io.api.core.v1.EnvVarSource.secretKeyRef: + +secretKeyRef + (:ref:`k8s.io.api.core.v1.SecretKeySelector `) Selects a key of a secret in the pod's namespace + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Event: + +k8s.io.api.core.v1.Event +------------------------ + +`[k8s.io.api.core.v1.Event proto] `_ + +Event is a report of an event somewhere in the cluster. + +.. code-block:: json + + { + "metadata": "{...}", + "involvedObject": "{...}", + "reason": "...", + "message": "...", + "source": "{...}", + "firstTimestamp": "{...}", + "lastTimestamp": "{...}", + "count": "...", + "type": "...", + "eventTime": "{...}", + "series": "{...}", + "action": "...", + "related": "{...}", + "reportingComponent": "...", + "reportingInstance": "..." + } + +.. _api_field_k8s.io.api.core.v1.Event.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + + +.. _api_field_k8s.io.api.core.v1.Event.involvedObject: + +involvedObject + (:ref:`k8s.io.api.core.v1.ObjectReference `) The object that this event is about. + + +.. _api_field_k8s.io.api.core.v1.Event.reason: + +reason + (`string `_) This should be a short, machine understandable string that gives the reason + for the transition into the object's current status. + TODO: provide exact specification for format. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.message: + +message + (`string `_) A human-readable description of the status of this operation. + TODO: decide on maximum length. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.source: + +source + (:ref:`k8s.io.api.core.v1.EventSource `) The component reporting this event. Should be a short machine understandable string. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.firstTimestamp: + +firstTimestamp + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.lastTimestamp: + +lastTimestamp + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) The time at which the most recent occurrence of this event was recorded. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.count: + +count + (`int32 `_) The number of times this event has occurred. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.type: + +type + (`string `_) Type of this event (Normal, Warning), new types could be added in the future + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.eventTime: + +eventTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime `) Time when this Event was first observed. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.series: + +series + (:ref:`k8s.io.api.core.v1.EventSeries `) Data about the Event series this event represents or nil if it's a singleton Event. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.action: + +action + (`string `_) What action was taken/failed regarding to the Regarding object. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.related: + +related + (:ref:`k8s.io.api.core.v1.ObjectReference `) Optional secondary object for more complex actions. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.reportingComponent: + +reportingComponent + (`string `_) Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. + +optional + + +.. _api_field_k8s.io.api.core.v1.Event.reportingInstance: + +reportingInstance + (`string `_) ID of the controller instance, e.g. `kubelet-xyzf`. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.EventList: + +k8s.io.api.core.v1.EventList +---------------------------- + +`[k8s.io.api.core.v1.EventList proto] `_ + +EventList is a list of events. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.EventList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.EventList.items: + +items + (:ref:`k8s.io.api.core.v1.Event `) List of events + + + + +.. _api_msg_k8s.io.api.core.v1.EventSeries: + +k8s.io.api.core.v1.EventSeries +------------------------------ + +`[k8s.io.api.core.v1.EventSeries proto] `_ + +EventSeries contain information on series of events, i.e. thing that was/is happening +continuously for some time. + +.. code-block:: json + + { + "count": "...", + "lastObservedTime": "{...}", + "state": "..." + } + +.. _api_field_k8s.io.api.core.v1.EventSeries.count: + +count + (`int32 `_) Number of occurrences in this series up to the last heartbeat time + + +.. _api_field_k8s.io.api.core.v1.EventSeries.lastObservedTime: + +lastObservedTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime `) Time of the last occurrence observed + + +.. _api_field_k8s.io.api.core.v1.EventSeries.state: + +state + (`string `_) State of this Series: Ongoing or Finished + + + + +.. _api_msg_k8s.io.api.core.v1.EventSource: + +k8s.io.api.core.v1.EventSource +------------------------------ + +`[k8s.io.api.core.v1.EventSource proto] `_ + +EventSource contains information for an event. + +.. code-block:: json + + { + "component": "...", + "host": "..." + } + +.. _api_field_k8s.io.api.core.v1.EventSource.component: + +component + (`string `_) Component from which the event is generated. + +optional + + +.. _api_field_k8s.io.api.core.v1.EventSource.host: + +host + (`string `_) Node name on which the event is generated. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ExecAction: + +k8s.io.api.core.v1.ExecAction +----------------------------- + +`[k8s.io.api.core.v1.ExecAction proto] `_ + +ExecAction describes a "run in container" action. + +.. code-block:: json + + { + "command": [] + } + +.. _api_field_k8s.io.api.core.v1.ExecAction.command: + +command + (`string `_) Command is the command line to execute inside the container, the working directory for the + command is root ('/') in the container's filesystem. The command is simply exec'd, it is + not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use + a shell, you need to explicitly call out to that shell. + Exit status of 0 is treated as live/healthy and non-zero is unhealthy. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.FCVolumeSource: + +k8s.io.api.core.v1.FCVolumeSource +--------------------------------- + +`[k8s.io.api.core.v1.FCVolumeSource proto] `_ + +Represents a Fibre Channel volume. +Fibre Channel volumes can only be mounted as read/write once. +Fibre Channel volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "targetWWNs": [], + "lun": "...", + "fsType": "...", + "readOnly": "...", + "wwids": [] + } + +.. _api_field_k8s.io.api.core.v1.FCVolumeSource.targetWWNs: + +targetWWNs + (`string `_) Optional: FC target worldwide names (WWNs) + +optional + + +.. _api_field_k8s.io.api.core.v1.FCVolumeSource.lun: + +lun + (`int32 `_) Optional: FC target lun number + +optional + + +.. _api_field_k8s.io.api.core.v1.FCVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.FCVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.FCVolumeSource.wwids: + +wwids + (`string `_) Optional: FC volume world wide identifiers (wwids) + Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.FlexPersistentVolumeSource: + +k8s.io.api.core.v1.FlexPersistentVolumeSource +--------------------------------------------- + +`[k8s.io.api.core.v1.FlexPersistentVolumeSource proto] `_ + +FlexPersistentVolumeSource represents a generic persistent volume resource that is +provisioned/attached using an exec based plugin. + +.. code-block:: json + + { + "driver": "...", + "fsType": "...", + "secretRef": "{...}", + "readOnly": "...", + "options": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.FlexPersistentVolumeSource.driver: + +driver + (`string `_) Driver is the name of the driver to use for this volume. + + +.. _api_field_k8s.io.api.core.v1.FlexPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + +optional + + +.. _api_field_k8s.io.api.core.v1.FlexPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) Optional: SecretRef is reference to the secret object containing + sensitive information to pass to the plugin scripts. This may be + empty if no secret object is specified. If the secret object + contains more than one secret, all secrets are passed to the plugin + scripts. + +optional + + +.. _api_field_k8s.io.api.core.v1.FlexPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.FlexPersistentVolumeSource.options: + +options + (map<`string `_, `string `_>) Optional: Extra command options if any. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.FlexVolumeSource: + +k8s.io.api.core.v1.FlexVolumeSource +----------------------------------- + +`[k8s.io.api.core.v1.FlexVolumeSource proto] `_ + +FlexVolume represents a generic volume resource that is +provisioned/attached using an exec based plugin. + +.. code-block:: json + + { + "driver": "...", + "fsType": "...", + "secretRef": "{...}", + "readOnly": "...", + "options": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.FlexVolumeSource.driver: + +driver + (`string `_) Driver is the name of the driver to use for this volume. + + +.. _api_field_k8s.io.api.core.v1.FlexVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. + +optional + + +.. _api_field_k8s.io.api.core.v1.FlexVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) Optional: SecretRef is reference to the secret object containing + sensitive information to pass to the plugin scripts. This may be + empty if no secret object is specified. If the secret object + contains more than one secret, all secrets are passed to the plugin + scripts. + +optional + + +.. _api_field_k8s.io.api.core.v1.FlexVolumeSource.readOnly: + +readOnly + (`bool `_) Optional: Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.FlexVolumeSource.options: + +options + (map<`string `_, `string `_>) Optional: Extra command options if any. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.FlockerVolumeSource: + +k8s.io.api.core.v1.FlockerVolumeSource +-------------------------------------- + +`[k8s.io.api.core.v1.FlockerVolumeSource proto] `_ + +Represents a Flocker volume mounted by the Flocker agent. +One and only one of datasetName and datasetUUID should be set. +Flocker volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "datasetName": "...", + "datasetUUID": "..." + } + +.. _api_field_k8s.io.api.core.v1.FlockerVolumeSource.datasetName: + +datasetName + (`string `_) Name of the dataset stored as metadata -> name on the dataset for Flocker + should be considered as deprecated + +optional + + +.. _api_field_k8s.io.api.core.v1.FlockerVolumeSource.datasetUUID: + +datasetUUID + (`string `_) UUID of the dataset. This is unique identifier of a Flocker dataset + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.GCEPersistentDiskVolumeSource: + +k8s.io.api.core.v1.GCEPersistentDiskVolumeSource +------------------------------------------------ + +`[k8s.io.api.core.v1.GCEPersistentDiskVolumeSource proto] `_ + +Represents a Persistent Disk resource in Google Compute Engine. + +A GCE PD must exist before mounting to a container. The disk must +also be in the same GCE project and zone as the kubelet. A GCE PD +can only be mounted as read/write once or read-only many times. GCE +PDs support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "pdName": "...", + "fsType": "...", + "partition": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.GCEPersistentDiskVolumeSource.pdName: + +pdName + (`string `_) Unique name of the PD resource in GCE. Used to identify the disk in GCE. + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + + +.. _api_field_k8s.io.api.core.v1.GCEPersistentDiskVolumeSource.fsType: + +fsType + (`string `_) Filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.GCEPersistentDiskVolumeSource.partition: + +partition + (`int32 `_) The partition in the volume that you want to mount. + If omitted, the default is to mount by volume name. + Examples: For volume /dev/sda1, you specify the partition as "1". + Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + +optional + + +.. _api_field_k8s.io.api.core.v1.GCEPersistentDiskVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.GitRepoVolumeSource: + +k8s.io.api.core.v1.GitRepoVolumeSource +-------------------------------------- + +`[k8s.io.api.core.v1.GitRepoVolumeSource proto] `_ + +Represents a volume that is populated with the contents of a git repository. +Git repo volumes do not support ownership management. +Git repo volumes support SELinux relabeling. + +DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an +EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir +into the Pod's container. + +.. code-block:: json + + { + "repository": "...", + "revision": "...", + "directory": "..." + } + +.. _api_field_k8s.io.api.core.v1.GitRepoVolumeSource.repository: + +repository + (`string `_) Repository URL + + +.. _api_field_k8s.io.api.core.v1.GitRepoVolumeSource.revision: + +revision + (`string `_) Commit hash for the specified revision. + +optional + + +.. _api_field_k8s.io.api.core.v1.GitRepoVolumeSource.directory: + +directory + (`string `_) Target directory name. + Must not contain or start with '..'. If '.' is supplied, the volume directory will be the + git repository. Otherwise, if specified, the volume will contain the git repository in + the subdirectory with the given name. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.GlusterfsPersistentVolumeSource: + +k8s.io.api.core.v1.GlusterfsPersistentVolumeSource +-------------------------------------------------- + +`[k8s.io.api.core.v1.GlusterfsPersistentVolumeSource proto] `_ + +Represents a Glusterfs mount that lasts the lifetime of a pod. +Glusterfs volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "endpoints": "...", + "path": "...", + "readOnly": "...", + "endpointsNamespace": "..." + } + +.. _api_field_k8s.io.api.core.v1.GlusterfsPersistentVolumeSource.endpoints: + +endpoints + (`string `_) EndpointsName is the endpoint name that details Glusterfs topology. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + + +.. _api_field_k8s.io.api.core.v1.GlusterfsPersistentVolumeSource.path: + +path + (`string `_) Path is the Glusterfs volume path. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + + +.. _api_field_k8s.io.api.core.v1.GlusterfsPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. + Defaults to false. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + +optional + + +.. _api_field_k8s.io.api.core.v1.GlusterfsPersistentVolumeSource.endpointsNamespace: + +endpointsNamespace + (`string `_) EndpointsNamespace is the namespace that contains Glusterfs endpoint. + If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.GlusterfsVolumeSource: + +k8s.io.api.core.v1.GlusterfsVolumeSource +---------------------------------------- + +`[k8s.io.api.core.v1.GlusterfsVolumeSource proto] `_ + +Represents a Glusterfs mount that lasts the lifetime of a pod. +Glusterfs volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "endpoints": "...", + "path": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.GlusterfsVolumeSource.endpoints: + +endpoints + (`string `_) EndpointsName is the endpoint name that details Glusterfs topology. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + + +.. _api_field_k8s.io.api.core.v1.GlusterfsVolumeSource.path: + +path + (`string `_) Path is the Glusterfs volume path. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + + +.. _api_field_k8s.io.api.core.v1.GlusterfsVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. + Defaults to false. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.HTTPGetAction: + +k8s.io.api.core.v1.HTTPGetAction +-------------------------------- + +`[k8s.io.api.core.v1.HTTPGetAction proto] `_ + +HTTPGetAction describes an action based on HTTP Get requests. + +.. code-block:: json + + { + "path": "...", + "port": "{...}", + "host": "...", + "scheme": "...", + "httpHeaders": [] + } + +.. _api_field_k8s.io.api.core.v1.HTTPGetAction.path: + +path + (`string `_) Path to access on the HTTP server. + +optional + + +.. _api_field_k8s.io.api.core.v1.HTTPGetAction.port: + +port + (:ref:`k8s.io.apimachinery.pkg.util.intstr.IntOrString `) Name or number of the port to access on the container. + Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + + +.. _api_field_k8s.io.api.core.v1.HTTPGetAction.host: + +host + (`string `_) Host name to connect to, defaults to the pod IP. You probably want to set + "Host" in httpHeaders instead. + +optional + + +.. _api_field_k8s.io.api.core.v1.HTTPGetAction.scheme: + +scheme + (`string `_) Scheme to use for connecting to the host. + Defaults to HTTP. + +optional + + +.. _api_field_k8s.io.api.core.v1.HTTPGetAction.httpHeaders: + +httpHeaders + (:ref:`k8s.io.api.core.v1.HTTPHeader `) Custom headers to set in the request. HTTP allows repeated headers. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.HTTPHeader: + +k8s.io.api.core.v1.HTTPHeader +----------------------------- + +`[k8s.io.api.core.v1.HTTPHeader proto] `_ + +HTTPHeader describes a custom header to be used in HTTP probes + +.. code-block:: json + + { + "name": "...", + "value": "..." + } + +.. _api_field_k8s.io.api.core.v1.HTTPHeader.name: + +name + (`string `_) The header field name + + +.. _api_field_k8s.io.api.core.v1.HTTPHeader.value: + +value + (`string `_) The header field value + + + + +.. _api_msg_k8s.io.api.core.v1.Handler: + +k8s.io.api.core.v1.Handler +-------------------------- + +`[k8s.io.api.core.v1.Handler proto] `_ + +Handler defines a specific action that should be taken +TODO: pass structured data to these actions, and document that data here. + +.. code-block:: json + + { + "exec": "{...}", + "httpGet": "{...}", + "tcpSocket": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Handler.exec: + +exec + (:ref:`k8s.io.api.core.v1.ExecAction `) One and only one of the following should be specified. + Exec specifies the action to take. + +optional + + +.. _api_field_k8s.io.api.core.v1.Handler.httpGet: + +httpGet + (:ref:`k8s.io.api.core.v1.HTTPGetAction `) HTTPGet specifies the http request to perform. + +optional + + +.. _api_field_k8s.io.api.core.v1.Handler.tcpSocket: + +tcpSocket + (:ref:`k8s.io.api.core.v1.TCPSocketAction `) TCPSocket specifies an action involving a TCP port. + TCP hooks not yet supported + TODO: implement a realistic TCP lifecycle hook + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.HostAlias: + +k8s.io.api.core.v1.HostAlias +---------------------------- + +`[k8s.io.api.core.v1.HostAlias proto] `_ + +HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the +pod's hosts file. + +.. code-block:: json + + { + "ip": "...", + "hostnames": [] + } + +.. _api_field_k8s.io.api.core.v1.HostAlias.ip: + +ip + (`string `_) IP address of the host file entry. + + +.. _api_field_k8s.io.api.core.v1.HostAlias.hostnames: + +hostnames + (`string `_) Hostnames for the above IP address. + + + + +.. _api_msg_k8s.io.api.core.v1.HostPathVolumeSource: + +k8s.io.api.core.v1.HostPathVolumeSource +--------------------------------------- + +`[k8s.io.api.core.v1.HostPathVolumeSource proto] `_ + +Represents a host path mapped into a pod. +Host path volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "path": "...", + "type": "..." + } + +.. _api_field_k8s.io.api.core.v1.HostPathVolumeSource.path: + +path + (`string `_) Path of the directory on the host. + If the path is a symlink, it will follow the link to the real path. + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + + +.. _api_field_k8s.io.api.core.v1.HostPathVolumeSource.type: + +type + (`string `_) Type for HostPath Volume + Defaults to "" + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ISCSIPersistentVolumeSource: + +k8s.io.api.core.v1.ISCSIPersistentVolumeSource +---------------------------------------------- + +`[k8s.io.api.core.v1.ISCSIPersistentVolumeSource proto] `_ + +ISCSIPersistentVolumeSource represents an ISCSI disk. +ISCSI volumes can only be mounted as read/write once. +ISCSI volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "targetPortal": "...", + "iqn": "...", + "lun": "...", + "iscsiInterface": "...", + "fsType": "...", + "readOnly": "...", + "portals": [], + "chapAuthDiscovery": "...", + "chapAuthSession": "...", + "secretRef": "{...}", + "initiatorName": "..." + } + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.targetPortal: + +targetPortal + (`string `_) iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.iqn: + +iqn + (`string `_) Target iSCSI Qualified Name. + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.lun: + +lun + (`int32 `_) iSCSI Target Lun number. + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.iscsiInterface: + +iscsiInterface + (`string `_) iSCSI Interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.portals: + +portals + (`string `_) iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.chapAuthDiscovery: + +chapAuthDiscovery + (`bool `_) whether support iSCSI Discovery CHAP authentication + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.chapAuthSession: + +chapAuthSession + (`bool `_) whether support iSCSI Session CHAP authentication + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) CHAP Secret for iSCSI target and initiator authentication + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIPersistentVolumeSource.initiatorName: + +initiatorName + (`string `_) Custom iSCSI Initiator Name. + If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface + : will be created for the connection. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ISCSIVolumeSource: + +k8s.io.api.core.v1.ISCSIVolumeSource +------------------------------------ + +`[k8s.io.api.core.v1.ISCSIVolumeSource proto] `_ + +Represents an ISCSI disk. +ISCSI volumes can only be mounted as read/write once. +ISCSI volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "targetPortal": "...", + "iqn": "...", + "lun": "...", + "iscsiInterface": "...", + "fsType": "...", + "readOnly": "...", + "portals": [], + "chapAuthDiscovery": "...", + "chapAuthSession": "...", + "secretRef": "{...}", + "initiatorName": "..." + } + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.targetPortal: + +targetPortal + (`string `_) iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.iqn: + +iqn + (`string `_) Target iSCSI Qualified Name. + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.lun: + +lun + (`int32 `_) iSCSI Target Lun number. + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.iscsiInterface: + +iscsiInterface + (`string `_) iSCSI Interface Name that uses an iSCSI transport. + Defaults to 'default' (tcp). + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.fsType: + +fsType + (`string `_) Filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.portals: + +portals + (`string `_) iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port + is other than default (typically TCP ports 860 and 3260). + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.chapAuthDiscovery: + +chapAuthDiscovery + (`bool `_) whether support iSCSI Discovery CHAP authentication + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.chapAuthSession: + +chapAuthSession + (`bool `_) whether support iSCSI Session CHAP authentication + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) CHAP Secret for iSCSI target and initiator authentication + +optional + + +.. _api_field_k8s.io.api.core.v1.ISCSIVolumeSource.initiatorName: + +initiatorName + (`string `_) Custom iSCSI Initiator Name. + If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface + : will be created for the connection. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.KeyToPath: + +k8s.io.api.core.v1.KeyToPath +---------------------------- + +`[k8s.io.api.core.v1.KeyToPath proto] `_ + +Maps a string key to a path within a volume. + +.. code-block:: json + + { + "key": "...", + "path": "...", + "mode": "..." + } + +.. _api_field_k8s.io.api.core.v1.KeyToPath.key: + +key + (`string `_) The key to project. + + +.. _api_field_k8s.io.api.core.v1.KeyToPath.path: + +path + (`string `_) The relative path of the file to map the key to. + May not be an absolute path. + May not contain the path element '..'. + May not start with the string '..'. + + +.. _api_field_k8s.io.api.core.v1.KeyToPath.mode: + +mode + (`int32 `_) Optional: mode bits to use on this file, must be a value between 0 + and 0777. If not specified, the volume defaultMode will be used. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Lifecycle: + +k8s.io.api.core.v1.Lifecycle +---------------------------- + +`[k8s.io.api.core.v1.Lifecycle proto] `_ + +Lifecycle describes actions that the management system should take in response to container lifecycle +events. For the PostStart and PreStop lifecycle handlers, management of the container blocks +until the action is complete, unless the container process fails, in which case the handler is aborted. + +.. code-block:: json + + { + "postStart": "{...}", + "preStop": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Lifecycle.postStart: + +postStart + (:ref:`k8s.io.api.core.v1.Handler `) PostStart is called immediately after a container is created. If the handler fails, + the container is terminated and restarted according to its restart policy. + Other management of the container blocks until the hook completes. + More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + +optional + + +.. _api_field_k8s.io.api.core.v1.Lifecycle.preStop: + +preStop + (:ref:`k8s.io.api.core.v1.Handler `) PreStop is called immediately before a container is terminated due to an + API request or management event such as liveness probe failure, + preemption, resource contention, etc. The handler is not called if the + container crashes or exits. The reason for termination is passed to the + handler. The Pod's termination grace period countdown begins before the + PreStop hooked is executed. Regardless of the outcome of the handler, the + container will eventually terminate within the Pod's termination grace + period. Other management of the container blocks until the hook completes + or until the termination grace period is reached. + More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.LimitRange: + +k8s.io.api.core.v1.LimitRange +----------------------------- + +`[k8s.io.api.core.v1.LimitRange proto] `_ + +LimitRange sets resource usage limits for each kind of resource in a Namespace. + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.LimitRange.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRange.spec: + +spec + (:ref:`k8s.io.api.core.v1.LimitRangeSpec `) Spec defines the limits enforced. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.LimitRangeItem: + +k8s.io.api.core.v1.LimitRangeItem +--------------------------------- + +`[k8s.io.api.core.v1.LimitRangeItem proto] `_ + +LimitRangeItem defines a min/max usage limit for any resource that matches on kind. + +.. code-block:: json + + { + "type": "...", + "max": "{...}", + "min": "{...}", + "default": "{...}", + "defaultRequest": "{...}", + "maxLimitRequestRatio": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.LimitRangeItem.type: + +type + (`string `_) Type of resource that this limit applies to. + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRangeItem.max: + +max + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Max usage constraints on this kind by resource name. + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRangeItem.min: + +min + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Min usage constraints on this kind by resource name. + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRangeItem.default: + +default + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Default resource requirement limit value by resource name if resource limit is omitted. + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRangeItem.defaultRequest: + +defaultRequest + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRangeItem.maxLimitRequestRatio: + +maxLimitRequestRatio + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. + +optional + + + + + + + + +.. _api_msg_k8s.io.api.core.v1.LimitRangeList: + +k8s.io.api.core.v1.LimitRangeList +--------------------------------- + +`[k8s.io.api.core.v1.LimitRangeList proto] `_ + +LimitRangeList is a list of LimitRange items. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.LimitRangeList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.LimitRangeList.items: + +items + (:ref:`k8s.io.api.core.v1.LimitRange `) Items is a list of LimitRange objects. + More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + + + + +.. _api_msg_k8s.io.api.core.v1.LimitRangeSpec: + +k8s.io.api.core.v1.LimitRangeSpec +--------------------------------- + +`[k8s.io.api.core.v1.LimitRangeSpec proto] `_ + +LimitRangeSpec defines a min/max usage limit for resources that match on kind. + +.. code-block:: json + + { + "limits": [] + } + +.. _api_field_k8s.io.api.core.v1.LimitRangeSpec.limits: + +limits + (:ref:`k8s.io.api.core.v1.LimitRangeItem `) Limits is the list of LimitRangeItem objects that are enforced. + + + + +.. _api_msg_k8s.io.api.core.v1.List: + +k8s.io.api.core.v1.List +----------------------- + +`[k8s.io.api.core.v1.List proto] `_ + +List holds a list of objects, which may not be known by the server. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.List.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.List.items: + +items + (:ref:`k8s.io.apimachinery.pkg.runtime.RawExtension `) List of objects + + + + +.. _api_msg_k8s.io.api.core.v1.LoadBalancerIngress: + +k8s.io.api.core.v1.LoadBalancerIngress +-------------------------------------- + +`[k8s.io.api.core.v1.LoadBalancerIngress proto] `_ + +LoadBalancerIngress represents the status of a load-balancer ingress point: +traffic intended for the service should be sent to an ingress point. + +.. code-block:: json + + { + "ip": "...", + "hostname": "..." + } + +.. _api_field_k8s.io.api.core.v1.LoadBalancerIngress.ip: + +ip + (`string `_) IP is set for load-balancer ingress points that are IP based + (typically GCE or OpenStack load-balancers) + +optional + + +.. _api_field_k8s.io.api.core.v1.LoadBalancerIngress.hostname: + +hostname + (`string `_) Hostname is set for load-balancer ingress points that are DNS based + (typically AWS load-balancers) + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.LoadBalancerStatus: + +k8s.io.api.core.v1.LoadBalancerStatus +------------------------------------- + +`[k8s.io.api.core.v1.LoadBalancerStatus proto] `_ + +LoadBalancerStatus represents the status of a load-balancer. + +.. code-block:: json + + { + "ingress": [] + } + +.. _api_field_k8s.io.api.core.v1.LoadBalancerStatus.ingress: + +ingress + (:ref:`k8s.io.api.core.v1.LoadBalancerIngress `) Ingress is a list containing ingress points for the load-balancer. + Traffic intended for the service should be sent to these ingress points. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.LocalObjectReference: + +k8s.io.api.core.v1.LocalObjectReference +--------------------------------------- + +`[k8s.io.api.core.v1.LocalObjectReference proto] `_ + +LocalObjectReference contains enough information to let you locate the +referenced object inside the same namespace. + +.. code-block:: json + + { + "name": "..." + } + +.. _api_field_k8s.io.api.core.v1.LocalObjectReference.name: + +name + (`string `_) Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid? + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.LocalVolumeSource: + +k8s.io.api.core.v1.LocalVolumeSource +------------------------------------ + +`[k8s.io.api.core.v1.LocalVolumeSource proto] `_ + +Local represents directly-attached storage with node affinity (Beta feature) + +.. code-block:: json + + { + "path": "...", + "fsType": "..." + } + +.. _api_field_k8s.io.api.core.v1.LocalVolumeSource.path: + +path + (`string `_) The full path to the volume on the node. + It can be either a directory or block device (disk, partition, ...). + + +.. _api_field_k8s.io.api.core.v1.LocalVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + It applies only when the Path is a block device. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NFSVolumeSource: + +k8s.io.api.core.v1.NFSVolumeSource +---------------------------------- + +`[k8s.io.api.core.v1.NFSVolumeSource proto] `_ + +Represents an NFS mount that lasts the lifetime of a pod. +NFS volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "server": "...", + "path": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.NFSVolumeSource.server: + +server + (`string `_) Server is the hostname or IP address of the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + +.. _api_field_k8s.io.api.core.v1.NFSVolumeSource.path: + +path + (`string `_) Path that is exported by the NFS server. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + + +.. _api_field_k8s.io.api.core.v1.NFSVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force + the NFS export to be mounted with read-only permissions. + Defaults to false. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Namespace: + +k8s.io.api.core.v1.Namespace +---------------------------- + +`[k8s.io.api.core.v1.Namespace proto] `_ + +Namespace provides a scope for Names. +Use of multiple namespaces is optional. + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Namespace.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Namespace.spec: + +spec + (:ref:`k8s.io.api.core.v1.NamespaceSpec `) Spec defines the behavior of the Namespace. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.api.core.v1.Namespace.status: + +status + (:ref:`k8s.io.api.core.v1.NamespaceStatus `) Status describes the current status of a Namespace. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NamespaceList: + +k8s.io.api.core.v1.NamespaceList +-------------------------------- + +`[k8s.io.api.core.v1.NamespaceList proto] `_ + +NamespaceList is a list of Namespaces. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.NamespaceList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.NamespaceList.items: + +items + (:ref:`k8s.io.api.core.v1.Namespace `) Items is the list of Namespace objects in the list. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + + + + +.. _api_msg_k8s.io.api.core.v1.NamespaceSpec: + +k8s.io.api.core.v1.NamespaceSpec +-------------------------------- + +`[k8s.io.api.core.v1.NamespaceSpec proto] `_ + +NamespaceSpec describes the attributes on a Namespace. + +.. code-block:: json + + { + "finalizers": [] + } + +.. _api_field_k8s.io.api.core.v1.NamespaceSpec.finalizers: + +finalizers + (`string `_) Finalizers is an opaque list of values that must be empty to permanently remove object from storage. + More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NamespaceStatus: + +k8s.io.api.core.v1.NamespaceStatus +---------------------------------- + +`[k8s.io.api.core.v1.NamespaceStatus proto] `_ + +NamespaceStatus is information about the current status of a Namespace. + +.. code-block:: json + + { + "phase": "..." + } + +.. _api_field_k8s.io.api.core.v1.NamespaceStatus.phase: + +phase + (`string `_) Phase is the current lifecycle phase of the namespace. + More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Node: + +k8s.io.api.core.v1.Node +----------------------- + +`[k8s.io.api.core.v1.Node proto] `_ + +Node is a worker node in Kubernetes. +Each node will have a unique identifier in the cache (i.e. in etcd). + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Node.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Node.spec: + +spec + (:ref:`k8s.io.api.core.v1.NodeSpec `) Spec defines the behavior of a node. + https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.api.core.v1.Node.status: + +status + (:ref:`k8s.io.api.core.v1.NodeStatus `) Most recently observed status of the node. + Populated by the system. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeAddress: + +k8s.io.api.core.v1.NodeAddress +------------------------------ + +`[k8s.io.api.core.v1.NodeAddress proto] `_ + +NodeAddress contains information for the node's address. + +.. code-block:: json + + { + "type": "...", + "address": "..." + } + +.. _api_field_k8s.io.api.core.v1.NodeAddress.type: + +type + (`string `_) Node address type, one of Hostname, ExternalIP or InternalIP. + + +.. _api_field_k8s.io.api.core.v1.NodeAddress.address: + +address + (`string `_) The node address. + + + + +.. _api_msg_k8s.io.api.core.v1.NodeAffinity: + +k8s.io.api.core.v1.NodeAffinity +------------------------------- + +`[k8s.io.api.core.v1.NodeAffinity proto] `_ + +Node affinity is a group of node affinity scheduling rules. + +.. code-block:: json + + { + "requiredDuringSchedulingIgnoredDuringExecution": "{...}", + "preferredDuringSchedulingIgnoredDuringExecution": [] + } + +.. _api_field_k8s.io.api.core.v1.NodeAffinity.requiredDuringSchedulingIgnoredDuringExecution: + +requiredDuringSchedulingIgnoredDuringExecution + (:ref:`k8s.io.api.core.v1.NodeSelector `) If the affinity requirements specified by this field are not met at + scheduling time, the pod will not be scheduled onto the node. + If the affinity requirements specified by this field cease to be met + at some point during pod execution (e.g. due to an update), the system + may or may not try to eventually evict the pod from its node. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeAffinity.preferredDuringSchedulingIgnoredDuringExecution: + +preferredDuringSchedulingIgnoredDuringExecution + (:ref:`k8s.io.api.core.v1.PreferredSchedulingTerm `) The scheduler will prefer to schedule pods to nodes that satisfy + the affinity expressions specified by this field, but it may choose + a node that violates one or more of the expressions. The node that is + most preferred is the one with the greatest sum of weights, i.e. + for each node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling affinity expressions, etc.), + compute a sum by iterating through the elements of this field and adding + "weight" to the sum if the node matches the corresponding matchExpressions; the + node(s) with the highest sum are the most preferred. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeCondition: + +k8s.io.api.core.v1.NodeCondition +-------------------------------- + +`[k8s.io.api.core.v1.NodeCondition proto] `_ + +NodeCondition contains condition information for a node. + +.. code-block:: json + + { + "type": "...", + "status": "...", + "lastHeartbeatTime": "{...}", + "lastTransitionTime": "{...}", + "reason": "...", + "message": "..." + } + +.. _api_field_k8s.io.api.core.v1.NodeCondition.type: + +type + (`string `_) Type of node condition. + + +.. _api_field_k8s.io.api.core.v1.NodeCondition.status: + +status + (`string `_) Status of the condition, one of True, False, Unknown. + + +.. _api_field_k8s.io.api.core.v1.NodeCondition.lastHeartbeatTime: + +lastHeartbeatTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Last time we got an update on a given condition. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeCondition.lastTransitionTime: + +lastTransitionTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Last time the condition transit from one status to another. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeCondition.reason: + +reason + (`string `_) (brief) reason for the condition's last transition. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeCondition.message: + +message + (`string `_) Human readable message indicating details about last transition. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeConfigSource: + +k8s.io.api.core.v1.NodeConfigSource +----------------------------------- + +`[k8s.io.api.core.v1.NodeConfigSource proto] `_ + +NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. + +.. code-block:: json + + { + "configMap": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.NodeConfigSource.configMap: + +configMap + (:ref:`k8s.io.api.core.v1.ConfigMapNodeConfigSource `) ConfigMap is a reference to a Node's ConfigMap + + + + +.. _api_msg_k8s.io.api.core.v1.NodeConfigStatus: + +k8s.io.api.core.v1.NodeConfigStatus +----------------------------------- + +`[k8s.io.api.core.v1.NodeConfigStatus proto] `_ + +NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. + +.. code-block:: json + + { + "assigned": "{...}", + "active": "{...}", + "lastKnownGood": "{...}", + "error": "..." + } + +.. _api_field_k8s.io.api.core.v1.NodeConfigStatus.assigned: + +assigned + (:ref:`k8s.io.api.core.v1.NodeConfigSource `) Assigned reports the checkpointed config the node will try to use. + When Node.Spec.ConfigSource is updated, the node checkpoints the associated + config payload to local disk, along with a record indicating intended + config. The node refers to this record to choose its config checkpoint, and + reports this record in Assigned. Assigned only updates in the status after + the record has been checkpointed to disk. When the Kubelet is restarted, + it tries to make the Assigned config the Active config by loading and + validating the checkpointed payload identified by Assigned. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeConfigStatus.active: + +active + (:ref:`k8s.io.api.core.v1.NodeConfigSource `) Active reports the checkpointed config the node is actively using. + Active will represent either the current version of the Assigned config, + or the current LastKnownGood config, depending on whether attempting to use the + Assigned config results in an error. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeConfigStatus.lastKnownGood: + +lastKnownGood + (:ref:`k8s.io.api.core.v1.NodeConfigSource `) LastKnownGood reports the checkpointed config the node will fall back to + when it encounters an error attempting to use the Assigned config. + The Assigned config becomes the LastKnownGood config when the node determines + that the Assigned config is stable and correct. + This is currently implemented as a 10-minute soak period starting when the local + record of Assigned config is updated. If the Assigned config is Active at the end + of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is + reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, + because the local default config is always assumed good. + You should not make assumptions about the node's method of determining config stability + and correctness, as this may change or become configurable in the future. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeConfigStatus.error: + +error + (`string `_) Error describes any problems reconciling the Spec.ConfigSource to the Active config. + Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned + record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting + to load or validate the Assigned config, etc. + Errors may occur at different points while syncing config. Earlier errors (e.g. download or + checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across + Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in + a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error + by fixing the config assigned in Spec.ConfigSource. + You can find additional information for debugging by searching the error message in the Kubelet log. + Error is a human-readable description of the error state; machines can check whether or not Error + is empty, but should not rely on the stability of the Error text across Kubelet versions. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeDaemonEndpoints: + +k8s.io.api.core.v1.NodeDaemonEndpoints +-------------------------------------- + +`[k8s.io.api.core.v1.NodeDaemonEndpoints proto] `_ + +NodeDaemonEndpoints lists ports opened by daemons running on the Node. + +.. code-block:: json + + { + "kubeletEndpoint": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.NodeDaemonEndpoints.kubeletEndpoint: + +kubeletEndpoint + (:ref:`k8s.io.api.core.v1.DaemonEndpoint `) Endpoint on which Kubelet is listening. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeList: + +k8s.io.api.core.v1.NodeList +--------------------------- + +`[k8s.io.api.core.v1.NodeList proto] `_ + +NodeList is the whole list of all Nodes which have been registered with master. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.NodeList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeList.items: + +items + (:ref:`k8s.io.api.core.v1.Node `) List of nodes + + + + +.. _api_msg_k8s.io.api.core.v1.NodeProxyOptions: + +k8s.io.api.core.v1.NodeProxyOptions +----------------------------------- + +`[k8s.io.api.core.v1.NodeProxyOptions proto] `_ + +NodeProxyOptions is the query options to a Node's proxy call. + +.. code-block:: json + + { + "path": "..." + } + +.. _api_field_k8s.io.api.core.v1.NodeProxyOptions.path: + +path + (`string `_) Path is the URL path to use for the current proxy request to node. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeResources: + +k8s.io.api.core.v1.NodeResources +-------------------------------- + +`[k8s.io.api.core.v1.NodeResources proto] `_ + +NodeResources is an object for conveying resource information about a node. +see http://releases.k8s.io/HEAD/docs/design/resources.md for more details. + +.. code-block:: json + + { + "capacity": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.NodeResources.capacity: + +capacity + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Capacity represents the available resources of a node + + + + +.. _api_msg_k8s.io.api.core.v1.NodeSelector: + +k8s.io.api.core.v1.NodeSelector +------------------------------- + +`[k8s.io.api.core.v1.NodeSelector proto] `_ + +A node selector represents the union of the results of one or more label queries +over a set of nodes; that is, it represents the OR of the selectors represented +by the node selector terms. + +.. code-block:: json + + { + "nodeSelectorTerms": [] + } + +.. _api_field_k8s.io.api.core.v1.NodeSelector.nodeSelectorTerms: + +nodeSelectorTerms + (:ref:`k8s.io.api.core.v1.NodeSelectorTerm `) Required. A list of node selector terms. The terms are ORed. + + + + +.. _api_msg_k8s.io.api.core.v1.NodeSelectorRequirement: + +k8s.io.api.core.v1.NodeSelectorRequirement +------------------------------------------ + +`[k8s.io.api.core.v1.NodeSelectorRequirement proto] `_ + +A node selector requirement is a selector that contains values, a key, and an operator +that relates the key and values. + +.. code-block:: json + + { + "key": "...", + "operator": "...", + "values": [] + } + +.. _api_field_k8s.io.api.core.v1.NodeSelectorRequirement.key: + +key + (`string `_) The label key that the selector applies to. + + +.. _api_field_k8s.io.api.core.v1.NodeSelectorRequirement.operator: + +operator + (`string `_) Represents a key's relationship to a set of values. + Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + + +.. _api_field_k8s.io.api.core.v1.NodeSelectorRequirement.values: + +values + (`string `_) An array of string values. If the operator is In or NotIn, + the values array must be non-empty. If the operator is Exists or DoesNotExist, + the values array must be empty. If the operator is Gt or Lt, the values + array must have a single element, which will be interpreted as an integer. + This array is replaced during a strategic merge patch. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeSelectorTerm: + +k8s.io.api.core.v1.NodeSelectorTerm +----------------------------------- + +`[k8s.io.api.core.v1.NodeSelectorTerm proto] `_ + +A null or empty node selector term matches no objects. The requirements of +them are ANDed. +The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + +.. code-block:: json + + { + "matchExpressions": [], + "matchFields": [] + } + +.. _api_field_k8s.io.api.core.v1.NodeSelectorTerm.matchExpressions: + +matchExpressions + (:ref:`k8s.io.api.core.v1.NodeSelectorRequirement `) A list of node selector requirements by node's labels. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeSelectorTerm.matchFields: + +matchFields + (:ref:`k8s.io.api.core.v1.NodeSelectorRequirement `) A list of node selector requirements by node's fields. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeSpec: + +k8s.io.api.core.v1.NodeSpec +--------------------------- + +`[k8s.io.api.core.v1.NodeSpec proto] `_ + +NodeSpec describes the attributes that a node is created with. + +.. code-block:: json + + { + "podCIDR": "...", + "providerID": "...", + "unschedulable": "...", + "taints": [], + "configSource": "{...}", + "externalID": "..." + } + +.. _api_field_k8s.io.api.core.v1.NodeSpec.podCIDR: + +podCIDR + (`string `_) PodCIDR represents the pod IP range assigned to the node. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeSpec.providerID: + +providerID + (`string `_) ID of the node assigned by the cloud provider in the format: :// + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeSpec.unschedulable: + +unschedulable + (`bool `_) Unschedulable controls node schedulability of new pods. By default, node is schedulable. + More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeSpec.taints: + +taints + (:ref:`k8s.io.api.core.v1.Taint `) If specified, the node's taints. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeSpec.configSource: + +configSource + (:ref:`k8s.io.api.core.v1.NodeConfigSource `) If specified, the source to get node configuration from + The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeSpec.externalID: + +externalID + (`string `_) Deprecated. Not all kubelets will set this field. Remove field after 1.13. + see: https://issues.k8s.io/61966 + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.NodeStatus: + +k8s.io.api.core.v1.NodeStatus +----------------------------- + +`[k8s.io.api.core.v1.NodeStatus proto] `_ + +NodeStatus is information about the current status of a node. + +.. code-block:: json + + { + "capacity": "{...}", + "allocatable": "{...}", + "phase": "...", + "conditions": [], + "addresses": [], + "daemonEndpoints": "{...}", + "nodeInfo": "{...}", + "images": [], + "volumesInUse": [], + "volumesAttached": [], + "config": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.NodeStatus.capacity: + +capacity + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Capacity represents the total resources of a node. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.allocatable: + +allocatable + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Allocatable represents the resources of a node that are available for scheduling. + Defaults to Capacity. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.phase: + +phase + (`string `_) NodePhase is the recently observed lifecycle phase of the node. + More info: https://kubernetes.io/docs/concepts/nodes/node/#phase + The field is never populated, and now is deprecated. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.conditions: + +conditions + (:ref:`k8s.io.api.core.v1.NodeCondition `) Conditions is an array of current observed node conditions. + More info: https://kubernetes.io/docs/concepts/nodes/node/#condition + +optional + +patchMergeKey=type + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.addresses: + +addresses + (:ref:`k8s.io.api.core.v1.NodeAddress `) List of addresses reachable to the node. + Queried from cloud provider, if available. + More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses + +optional + +patchMergeKey=type + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.daemonEndpoints: + +daemonEndpoints + (:ref:`k8s.io.api.core.v1.NodeDaemonEndpoints `) Endpoints of daemons running on the Node. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.nodeInfo: + +nodeInfo + (:ref:`k8s.io.api.core.v1.NodeSystemInfo `) Set of ids/uuids to uniquely identify the node. + More info: https://kubernetes.io/docs/concepts/nodes/node/#info + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.images: + +images + (:ref:`k8s.io.api.core.v1.ContainerImage `) List of container images on this node + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.volumesInUse: + +volumesInUse + (`string `_) List of attachable volumes in use (mounted) by the node. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.volumesAttached: + +volumesAttached + (:ref:`k8s.io.api.core.v1.AttachedVolume `) List of volumes that are attached to the node. + +optional + + +.. _api_field_k8s.io.api.core.v1.NodeStatus.config: + +config + (:ref:`k8s.io.api.core.v1.NodeConfigStatus `) Status of the config assigned to the node via the dynamic Kubelet config feature. + +optional + + + + + +.. _api_msg_k8s.io.api.core.v1.NodeSystemInfo: + +k8s.io.api.core.v1.NodeSystemInfo +--------------------------------- + +`[k8s.io.api.core.v1.NodeSystemInfo proto] `_ + +NodeSystemInfo is a set of ids/uuids to uniquely identify the node. + +.. code-block:: json + + { + "machineID": "...", + "systemUUID": "...", + "bootID": "...", + "kernelVersion": "...", + "osImage": "...", + "containerRuntimeVersion": "...", + "kubeletVersion": "...", + "kubeProxyVersion": "...", + "operatingSystem": "...", + "architecture": "..." + } + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.machineID: + +machineID + (`string `_) MachineID reported by the node. For unique machine identification + in the cluster this field is preferred. Learn more from man(5) + machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.systemUUID: + +systemUUID + (`string `_) SystemUUID reported by the node. For unique machine identification + MachineID is preferred. This field is specific to Red Hat hosts + https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.bootID: + +bootID + (`string `_) Boot ID reported by the node. + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.kernelVersion: + +kernelVersion + (`string `_) Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.osImage: + +osImage + (`string `_) OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.containerRuntimeVersion: + +containerRuntimeVersion + (`string `_) ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0). + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.kubeletVersion: + +kubeletVersion + (`string `_) Kubelet Version reported by the node. + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.kubeProxyVersion: + +kubeProxyVersion + (`string `_) KubeProxy Version reported by the node. + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.operatingSystem: + +operatingSystem + (`string `_) The Operating System reported by the node + + +.. _api_field_k8s.io.api.core.v1.NodeSystemInfo.architecture: + +architecture + (`string `_) The Architecture reported by the node + + + + +.. _api_msg_k8s.io.api.core.v1.ObjectFieldSelector: + +k8s.io.api.core.v1.ObjectFieldSelector +-------------------------------------- + +`[k8s.io.api.core.v1.ObjectFieldSelector proto] `_ + +ObjectFieldSelector selects an APIVersioned field of an object. + +.. code-block:: json + + { + "apiVersion": "...", + "fieldPath": "..." + } + +.. _api_field_k8s.io.api.core.v1.ObjectFieldSelector.apiVersion: + +apiVersion + (`string `_) Version of the schema the FieldPath is written in terms of, defaults to "v1". + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectFieldSelector.fieldPath: + +fieldPath + (`string `_) Path of the field to select in the specified API version. + + + + +.. _api_msg_k8s.io.api.core.v1.ObjectReference: + +k8s.io.api.core.v1.ObjectReference +---------------------------------- + +`[k8s.io.api.core.v1.ObjectReference proto] `_ + +ObjectReference contains enough information to let you inspect or modify the referred object. ++k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +.. code-block:: json + + { + "kind": "...", + "namespace": "...", + "name": "...", + "uid": "...", + "apiVersion": "...", + "resourceVersion": "...", + "fieldPath": "..." + } + +.. _api_field_k8s.io.api.core.v1.ObjectReference.kind: + +kind + (`string `_) Kind of the referent. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectReference.namespace: + +namespace + (`string `_) Namespace of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectReference.name: + +name + (`string `_) Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectReference.uid: + +uid + (`string `_) UID of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectReference.apiVersion: + +apiVersion + (`string `_) API version of the referent. + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectReference.resourceVersion: + +resourceVersion + (`string `_) Specific resourceVersion to which this reference is made, if any. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + +optional + + +.. _api_field_k8s.io.api.core.v1.ObjectReference.fieldPath: + +fieldPath + (`string `_) If referring to a piece of an object instead of an entire object, this string + should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. + For example, if the object reference is to a container within a pod, this would take on a value like: + "spec.containers{name}" (where "name" refers to the name of the container that triggered + the event) or if no container name is specified "spec.containers[2]" (container with + index 2 in this pod). This syntax is chosen only to have some well-defined way of + referencing a part of an object. + TODO: this design is not final and this field is subject to change in the future. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolume: + +k8s.io.api.core.v1.PersistentVolume +----------------------------------- + +`[k8s.io.api.core.v1.PersistentVolume proto] `_ + +PersistentVolume (PV) is a storage resource provisioned by an administrator. +It is analogous to a node. +More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolume.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolume.spec: + +spec + (:ref:`k8s.io.api.core.v1.PersistentVolumeSpec `) Spec defines a specification of a persistent volume owned by the cluster. + Provisioned by an administrator. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolume.status: + +status + (:ref:`k8s.io.api.core.v1.PersistentVolumeStatus `) Status represents the current information/status for the persistent volume. + Populated by the system. + Read-only. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeClaim: + +k8s.io.api.core.v1.PersistentVolumeClaim +---------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeClaim proto] `_ + +PersistentVolumeClaim is a user's request for and claim to a persistent volume + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaim.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaim.spec: + +spec + (:ref:`k8s.io.api.core.v1.PersistentVolumeClaimSpec `) Spec defines the desired characteristics of a volume requested by a pod author. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaim.status: + +status + (:ref:`k8s.io.api.core.v1.PersistentVolumeClaimStatus `) Status represents the current information/status of a persistent volume claim. + Read-only. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeClaimCondition: + +k8s.io.api.core.v1.PersistentVolumeClaimCondition +------------------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeClaimCondition proto] `_ + +PersistentVolumeClaimCondition contails details about state of pvc + +.. code-block:: json + + { + "type": "...", + "status": "...", + "lastProbeTime": "{...}", + "lastTransitionTime": "{...}", + "reason": "...", + "message": "..." + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimCondition.type: + +type + (`string `_) + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimCondition.status: + +status + (`string `_) + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimCondition.lastProbeTime: + +lastProbeTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Last time we probed the condition. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimCondition.lastTransitionTime: + +lastTransitionTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Last time the condition transitioned from one status to another. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimCondition.reason: + +reason + (`string `_) Unique, this should be a short, machine understandable string that gives the reason + for condition's last transition. If it reports "ResizeStarted" that means the underlying + persistent volume is being resized. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimCondition.message: + +message + (`string `_) Human-readable message indicating details about last transition. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeClaimList: + +k8s.io.api.core.v1.PersistentVolumeClaimList +-------------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeClaimList proto] `_ + +PersistentVolumeClaimList is a list of PersistentVolumeClaim items. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimList.items: + +items + (:ref:`k8s.io.api.core.v1.PersistentVolumeClaim `) A list of persistent volume claims. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeClaimSpec: + +k8s.io.api.core.v1.PersistentVolumeClaimSpec +-------------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeClaimSpec proto] `_ + +PersistentVolumeClaimSpec describes the common attributes of storage devices +and allows a Source for provider-specific attributes + +.. code-block:: json + + { + "accessModes": [], + "selector": "{...}", + "resources": "{...}", + "volumeName": "...", + "storageClassName": "...", + "volumeMode": "...", + "dataSource": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.accessModes: + +accessModes + (`string `_) AccessModes contains the desired access modes the volume should have. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.selector: + +selector + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector `) A label query over volumes to consider for binding. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.resources: + +resources + (:ref:`k8s.io.api.core.v1.ResourceRequirements `) Resources represents the minimum resources the volume should have. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.volumeName: + +volumeName + (`string `_) VolumeName is the binding reference to the PersistentVolume backing this claim. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.storageClassName: + +storageClassName + (`string `_) Name of the StorageClass required by the claim. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.volumeMode: + +volumeMode + (`string `_) volumeMode defines what type of volume is required by the claim. + Value of Filesystem is implied when not included in claim spec. + This is a beta feature. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimSpec.dataSource: + +dataSource + (:ref:`k8s.io.api.core.v1.TypedLocalObjectReference `) This field requires the VolumeSnapshotDataSource alpha feature gate to be + enabled and currently VolumeSnapshot is the only supported data source. + If the provisioner can support VolumeSnapshot data source, it will create + a new volume and data will be restored to the volume at the same time. + If the provisioner does not support VolumeSnapshot data source, volume will + not be created and the failure will be reported as an event. + In the future, we plan to support more data source types and the behavior + of the provisioner may change. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeClaimStatus: + +k8s.io.api.core.v1.PersistentVolumeClaimStatus +---------------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeClaimStatus proto] `_ + +PersistentVolumeClaimStatus is the current status of a persistent volume claim. + +.. code-block:: json + + { + "phase": "...", + "accessModes": [], + "capacity": "{...}", + "conditions": [] + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimStatus.phase: + +phase + (`string `_) Phase represents the current phase of PersistentVolumeClaim. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimStatus.accessModes: + +accessModes + (`string `_) AccessModes contains the actual access modes the volume backing the PVC has. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimStatus.capacity: + +capacity + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Represents the actual resources of the underlying volume. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimStatus.conditions: + +conditions + (:ref:`k8s.io.api.core.v1.PersistentVolumeClaimCondition `) Current Condition of persistent volume claim. If underlying persistent volume is being + resized then the Condition will be set to 'ResizeStarted'. + +optional + +patchMergeKey=type + +patchStrategy=merge + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource: + +k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource +---------------------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource proto] `_ + +PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. +This volume finds the bound PV and mounts that volume for the pod. A +PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another +type of volume that is owned by someone else (the system). + +.. code-block:: json + + { + "claimName": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource.claimName: + +claimName + (`string `_) ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource.readOnly: + +readOnly + (`bool `_) Will force the ReadOnly setting in VolumeMounts. + Default false. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeList: + +k8s.io.api.core.v1.PersistentVolumeList +--------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeList proto] `_ + +PersistentVolumeList is a list of PersistentVolume items. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeList.items: + +items + (:ref:`k8s.io.api.core.v1.PersistentVolume `) List of persistent volumes. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeSource: + +k8s.io.api.core.v1.PersistentVolumeSource +----------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeSource proto] `_ + +PersistentVolumeSource is similar to VolumeSource but meant for the +administrator who creates PVs. Exactly one of its members must be set. + +.. code-block:: json + + { + "gcePersistentDisk": "{...}", + "awsElasticBlockStore": "{...}", + "hostPath": "{...}", + "glusterfs": "{...}", + "nfs": "{...}", + "rbd": "{...}", + "iscsi": "{...}", + "cinder": "{...}", + "cephfs": "{...}", + "fc": "{...}", + "flocker": "{...}", + "flexVolume": "{...}", + "azureFile": "{...}", + "vsphereVolume": "{...}", + "quobyte": "{...}", + "azureDisk": "{...}", + "photonPersistentDisk": "{...}", + "portworxVolume": "{...}", + "scaleIO": "{...}", + "local": "{...}", + "storageos": "{...}", + "csi": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.gcePersistentDisk: + +gcePersistentDisk + (:ref:`k8s.io.api.core.v1.GCEPersistentDiskVolumeSource `) GCEPersistentDisk represents a GCE Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. Provisioned by an admin. + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.awsElasticBlockStore: + +awsElasticBlockStore + (:ref:`k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource `) AWSElasticBlockStore represents an AWS Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.hostPath: + +hostPath + (:ref:`k8s.io.api.core.v1.HostPathVolumeSource `) HostPath represents a directory on the host. + Provisioned by a developer or tester. + This is useful for single-node development and testing only! + On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.glusterfs: + +glusterfs + (:ref:`k8s.io.api.core.v1.GlusterfsPersistentVolumeSource `) Glusterfs represents a Glusterfs volume that is attached to a host and + exposed to the pod. Provisioned by an admin. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.nfs: + +nfs + (:ref:`k8s.io.api.core.v1.NFSVolumeSource `) NFS represents an NFS mount on the host. Provisioned by an admin. + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.rbd: + +rbd + (:ref:`k8s.io.api.core.v1.RBDPersistentVolumeSource `) RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.iscsi: + +iscsi + (:ref:`k8s.io.api.core.v1.ISCSIPersistentVolumeSource `) ISCSI represents an ISCSI Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. Provisioned by an admin. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.cinder: + +cinder + (:ref:`k8s.io.api.core.v1.CinderPersistentVolumeSource `) Cinder represents a cinder volume attached and mounted on kubelets host machine + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.cephfs: + +cephfs + (:ref:`k8s.io.api.core.v1.CephFSPersistentVolumeSource `) CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.fc: + +fc + (:ref:`k8s.io.api.core.v1.FCVolumeSource `) FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.flocker: + +flocker + (:ref:`k8s.io.api.core.v1.FlockerVolumeSource `) Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.flexVolume: + +flexVolume + (:ref:`k8s.io.api.core.v1.FlexPersistentVolumeSource `) FlexVolume represents a generic volume resource that is + provisioned/attached using an exec based plugin. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.azureFile: + +azureFile + (:ref:`k8s.io.api.core.v1.AzureFilePersistentVolumeSource `) AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.vsphereVolume: + +vsphereVolume + (:ref:`k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource `) VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.quobyte: + +quobyte + (:ref:`k8s.io.api.core.v1.QuobyteVolumeSource `) Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.azureDisk: + +azureDisk + (:ref:`k8s.io.api.core.v1.AzureDiskVolumeSource `) AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.photonPersistentDisk: + +photonPersistentDisk + (:ref:`k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource `) PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.portworxVolume: + +portworxVolume + (:ref:`k8s.io.api.core.v1.PortworxVolumeSource `) PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.scaleIO: + +scaleIO + (:ref:`k8s.io.api.core.v1.ScaleIOPersistentVolumeSource `) ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.local: + +local + (:ref:`k8s.io.api.core.v1.LocalVolumeSource `) Local represents directly-attached storage with node affinity + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.storageos: + +storageos + (:ref:`k8s.io.api.core.v1.StorageOSPersistentVolumeSource `) StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod + More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSource.csi: + +csi + (:ref:`k8s.io.api.core.v1.CSIPersistentVolumeSource `) CSI represents storage that is handled by an external CSI driver (Beta feature). + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeSpec: + +k8s.io.api.core.v1.PersistentVolumeSpec +--------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeSpec proto] `_ + +PersistentVolumeSpec is the specification of a persistent volume. + +.. code-block:: json + + { + "capacity": "{...}", + "persistentVolumeSource": "{...}", + "accessModes": [], + "claimRef": "{...}", + "persistentVolumeReclaimPolicy": "...", + "storageClassName": "...", + "mountOptions": [], + "volumeMode": "...", + "nodeAffinity": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.capacity: + +capacity + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) A description of the persistent volume's resources and capacity. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.persistentVolumeSource: + +persistentVolumeSource + (:ref:`k8s.io.api.core.v1.PersistentVolumeSource `) The actual volume backing the persistent volume. + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.accessModes: + +accessModes + (`string `_) AccessModes contains all ways the volume can be mounted. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.claimRef: + +claimRef + (:ref:`k8s.io.api.core.v1.ObjectReference `) ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. + Expected to be non-nil when bound. + claim.VolumeName is the authoritative bind between PV and PVC. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.persistentVolumeReclaimPolicy: + +persistentVolumeReclaimPolicy + (`string `_) What happens to a persistent volume when released from its claim. + Valid options are Retain (default for manually created PersistentVolumes), Delete (default + for dynamically provisioned PersistentVolumes), and Recycle (deprecated). + Recycle must be supported by the volume plugin underlying this PersistentVolume. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.storageClassName: + +storageClassName + (`string `_) Name of StorageClass to which this persistent volume belongs. Empty value + means that this volume does not belong to any StorageClass. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.mountOptions: + +mountOptions + (`string `_) A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will + simply fail if one is invalid. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.volumeMode: + +volumeMode + (`string `_) volumeMode defines if a volume is intended to be used with a formatted filesystem + or to remain in raw block state. Value of Filesystem is implied when not included in spec. + This is a beta feature. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeSpec.nodeAffinity: + +nodeAffinity + (:ref:`k8s.io.api.core.v1.VolumeNodeAffinity `) NodeAffinity defines constraints that limit what nodes this volume can be accessed from. + This field influences the scheduling of pods that use this volume. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PersistentVolumeStatus: + +k8s.io.api.core.v1.PersistentVolumeStatus +----------------------------------------- + +`[k8s.io.api.core.v1.PersistentVolumeStatus proto] `_ + +PersistentVolumeStatus is the current status of a persistent volume. + +.. code-block:: json + + { + "phase": "...", + "message": "...", + "reason": "..." + } + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeStatus.phase: + +phase + (`string `_) Phase indicates if a volume is available, bound to a claim, or released by a claim. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeStatus.message: + +message + (`string `_) A human-readable message indicating details about why the volume is in this state. + +optional + + +.. _api_field_k8s.io.api.core.v1.PersistentVolumeStatus.reason: + +reason + (`string `_) Reason is a brief CamelCase string that describes any failure and is meant + for machine parsing and tidy display in the CLI. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource: + +k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource +--------------------------------------------------- + +`[k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource proto] `_ + +Represents a Photon Controller persistent disk resource. + +.. code-block:: json + + { + "pdID": "...", + "fsType": "..." + } + +.. _api_field_k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource.pdID: + +pdID + (`string `_) ID that identifies Photon Controller persistent disk + + +.. _api_field_k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + + + + +.. _api_msg_k8s.io.api.core.v1.Pod: + +k8s.io.api.core.v1.Pod +---------------------- + +`[k8s.io.api.core.v1.Pod proto] `_ + +Pod is a collection of containers that can run on a host. This resource is created +by clients and scheduled onto hosts. + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Pod.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Pod.spec: + +spec + (:ref:`k8s.io.api.core.v1.PodSpec `) Specification of the desired behavior of the pod. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.api.core.v1.Pod.status: + +status + (:ref:`k8s.io.api.core.v1.PodStatus `) Most recently observed status of the pod. + This data may not be up to date. + Populated by the system. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodAffinity: + +k8s.io.api.core.v1.PodAffinity +------------------------------ + +`[k8s.io.api.core.v1.PodAffinity proto] `_ + +Pod affinity is a group of inter pod affinity scheduling rules. + +.. code-block:: json + + { + "requiredDuringSchedulingIgnoredDuringExecution": [], + "preferredDuringSchedulingIgnoredDuringExecution": [] + } + +.. _api_field_k8s.io.api.core.v1.PodAffinity.requiredDuringSchedulingIgnoredDuringExecution: + +requiredDuringSchedulingIgnoredDuringExecution + (:ref:`k8s.io.api.core.v1.PodAffinityTerm `) If the affinity requirements specified by this field are not met at + scheduling time, the pod will not be scheduled onto the node. + If the affinity requirements specified by this field cease to be met + at some point during pod execution (e.g. due to a pod label update), the + system may or may not try to eventually evict the pod from its node. + When there are multiple elements, the lists of nodes corresponding to each + podAffinityTerm are intersected, i.e. all terms must be satisfied. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAffinity.preferredDuringSchedulingIgnoredDuringExecution: + +preferredDuringSchedulingIgnoredDuringExecution + (:ref:`k8s.io.api.core.v1.WeightedPodAffinityTerm `) The scheduler will prefer to schedule pods to nodes that satisfy + the affinity expressions specified by this field, but it may choose + a node that violates one or more of the expressions. The node that is + most preferred is the one with the greatest sum of weights, i.e. + for each node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling affinity expressions, etc.), + compute a sum by iterating through the elements of this field and adding + "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + node(s) with the highest sum are the most preferred. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodAffinityTerm: + +k8s.io.api.core.v1.PodAffinityTerm +---------------------------------- + +`[k8s.io.api.core.v1.PodAffinityTerm proto] `_ + +Defines a set of pods (namely those matching the labelSelector +relative to the given namespace(s)) that this pod should be +co-located (affinity) or not co-located (anti-affinity) with, +where co-located is defined as running on a node whose value of +the label with key matches that of any node on which +a pod of the set of pods is running + +.. code-block:: json + + { + "labelSelector": "{...}", + "namespaces": [], + "topologyKey": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodAffinityTerm.labelSelector: + +labelSelector + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector `) A label query over a set of resources, in this case pods. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAffinityTerm.namespaces: + +namespaces + (`string `_) namespaces specifies which namespaces the labelSelector applies to (matches against); + null or empty list means "this pod's namespace" + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAffinityTerm.topologyKey: + +topologyKey + (`string `_) This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching + the labelSelector in the specified namespaces, where co-located is defined as running on a node + whose value of the label with key topologyKey matches that of any node on which any of the + selected pods is running. + Empty topologyKey is not allowed. + + + + +.. _api_msg_k8s.io.api.core.v1.PodAntiAffinity: + +k8s.io.api.core.v1.PodAntiAffinity +---------------------------------- + +`[k8s.io.api.core.v1.PodAntiAffinity proto] `_ + +Pod anti affinity is a group of inter pod anti affinity scheduling rules. + +.. code-block:: json + + { + "requiredDuringSchedulingIgnoredDuringExecution": [], + "preferredDuringSchedulingIgnoredDuringExecution": [] + } + +.. _api_field_k8s.io.api.core.v1.PodAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution: + +requiredDuringSchedulingIgnoredDuringExecution + (:ref:`k8s.io.api.core.v1.PodAffinityTerm `) If the anti-affinity requirements specified by this field are not met at + scheduling time, the pod will not be scheduled onto the node. + If the anti-affinity requirements specified by this field cease to be met + at some point during pod execution (e.g. due to a pod label update), the + system may or may not try to eventually evict the pod from its node. + When there are multiple elements, the lists of nodes corresponding to each + podAffinityTerm are intersected, i.e. all terms must be satisfied. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution: + +preferredDuringSchedulingIgnoredDuringExecution + (:ref:`k8s.io.api.core.v1.WeightedPodAffinityTerm `) The scheduler will prefer to schedule pods to nodes that satisfy + the anti-affinity expressions specified by this field, but it may choose + a node that violates one or more of the expressions. The node that is + most preferred is the one with the greatest sum of weights, i.e. + for each node that meets all of the scheduling requirements (resource + request, requiredDuringScheduling anti-affinity expressions, etc.), + compute a sum by iterating through the elements of this field and adding + "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the + node(s) with the highest sum are the most preferred. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodAttachOptions: + +k8s.io.api.core.v1.PodAttachOptions +----------------------------------- + +`[k8s.io.api.core.v1.PodAttachOptions proto] `_ + +PodAttachOptions is the query options to a Pod's remote attach call. +--- +TODO: merge w/ PodExecOptions below for stdin, stdout, etc +and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY + +.. code-block:: json + + { + "stdin": "...", + "stdout": "...", + "stderr": "...", + "tty": "...", + "container": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodAttachOptions.stdin: + +stdin + (`bool `_) Stdin if true, redirects the standard input stream of the pod for this call. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAttachOptions.stdout: + +stdout + (`bool `_) Stdout if true indicates that stdout is to be redirected for the attach call. + Defaults to true. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAttachOptions.stderr: + +stderr + (`bool `_) Stderr if true indicates that stderr is to be redirected for the attach call. + Defaults to true. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAttachOptions.tty: + +tty + (`bool `_) TTY if true indicates that a tty will be allocated for the attach call. + This is passed through the container runtime so the tty + is allocated on the worker node by the container runtime. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodAttachOptions.container: + +container + (`string `_) The container in which to execute the command. + Defaults to only container if there is only one container in the pod. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodCondition: + +k8s.io.api.core.v1.PodCondition +------------------------------- + +`[k8s.io.api.core.v1.PodCondition proto] `_ + +PodCondition contains details for the current condition of this pod. + +.. code-block:: json + + { + "type": "...", + "status": "...", + "lastProbeTime": "{...}", + "lastTransitionTime": "{...}", + "reason": "...", + "message": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodCondition.type: + +type + (`string `_) Type is the type of the condition. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + + +.. _api_field_k8s.io.api.core.v1.PodCondition.status: + +status + (`string `_) Status is the status of the condition. + Can be True, False, Unknown. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + + +.. _api_field_k8s.io.api.core.v1.PodCondition.lastProbeTime: + +lastProbeTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Last time we probed the condition. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodCondition.lastTransitionTime: + +lastTransitionTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Last time the condition transitioned from one status to another. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodCondition.reason: + +reason + (`string `_) Unique, one-word, CamelCase reason for the condition's last transition. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodCondition.message: + +message + (`string `_) Human-readable message indicating details about last transition. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodDNSConfig: + +k8s.io.api.core.v1.PodDNSConfig +------------------------------- + +`[k8s.io.api.core.v1.PodDNSConfig proto] `_ + +PodDNSConfig defines the DNS parameters of a pod in addition to +those generated from DNSPolicy. + +.. code-block:: json + + { + "nameservers": [], + "searches": [], + "options": [] + } + +.. _api_field_k8s.io.api.core.v1.PodDNSConfig.nameservers: + +nameservers + (`string `_) A list of DNS name server IP addresses. + This will be appended to the base nameservers generated from DNSPolicy. + Duplicated nameservers will be removed. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodDNSConfig.searches: + +searches + (`string `_) A list of DNS search domains for host-name lookup. + This will be appended to the base search paths generated from DNSPolicy. + Duplicated search paths will be removed. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodDNSConfig.options: + +options + (:ref:`k8s.io.api.core.v1.PodDNSConfigOption `) A list of DNS resolver options. + This will be merged with the base options generated from DNSPolicy. + Duplicated entries will be removed. Resolution options given in Options + will override those that appear in the base DNSPolicy. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodDNSConfigOption: + +k8s.io.api.core.v1.PodDNSConfigOption +------------------------------------- + +`[k8s.io.api.core.v1.PodDNSConfigOption proto] `_ + +PodDNSConfigOption defines DNS resolver options of a pod. + +.. code-block:: json + + { + "name": "...", + "value": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodDNSConfigOption.name: + +name + (`string `_) Required. + + +.. _api_field_k8s.io.api.core.v1.PodDNSConfigOption.value: + +value + (`string `_) +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodExecOptions: + +k8s.io.api.core.v1.PodExecOptions +--------------------------------- + +`[k8s.io.api.core.v1.PodExecOptions proto] `_ + +PodExecOptions is the query options to a Pod's remote exec call. +--- +TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging +and also when we cut V2, we should export a "StreamOptions" or somesuch that contains Stdin, Stdout, Stder and TTY + +.. code-block:: json + + { + "stdin": "...", + "stdout": "...", + "stderr": "...", + "tty": "...", + "container": "...", + "command": [] + } + +.. _api_field_k8s.io.api.core.v1.PodExecOptions.stdin: + +stdin + (`bool `_) Redirect the standard input stream of the pod for this call. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodExecOptions.stdout: + +stdout + (`bool `_) Redirect the standard output stream of the pod for this call. + Defaults to true. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodExecOptions.stderr: + +stderr + (`bool `_) Redirect the standard error stream of the pod for this call. + Defaults to true. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodExecOptions.tty: + +tty + (`bool `_) TTY if true indicates that a tty will be allocated for the exec call. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodExecOptions.container: + +container + (`string `_) Container in which to execute the command. + Defaults to only container if there is only one container in the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodExecOptions.command: + +command + (`string `_) Command is the remote command to execute. argv array. Not executed within a shell. + + + + +.. _api_msg_k8s.io.api.core.v1.PodList: + +k8s.io.api.core.v1.PodList +-------------------------- + +`[k8s.io.api.core.v1.PodList proto] `_ + +PodList is a list of Pods. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.PodList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.PodList.items: + +items + (:ref:`k8s.io.api.core.v1.Pod `) List of pods. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md + + + + +.. _api_msg_k8s.io.api.core.v1.PodLogOptions: + +k8s.io.api.core.v1.PodLogOptions +-------------------------------- + +`[k8s.io.api.core.v1.PodLogOptions proto] `_ + +PodLogOptions is the query options for a Pod's logs REST call. + +.. code-block:: json + + { + "container": "...", + "follow": "...", + "previous": "...", + "sinceSeconds": "...", + "sinceTime": "{...}", + "timestamps": "...", + "tailLines": "...", + "limitBytes": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.container: + +container + (`string `_) The container for which to stream logs. Defaults to only container if there is one container in the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.follow: + +follow + (`bool `_) Follow the log stream of the pod. Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.previous: + +previous + (`bool `_) Return previous terminated container logs. Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.sinceSeconds: + +sinceSeconds + (`int64 `_) A relative time in seconds before the current time from which to show logs. If this value + precedes the time a pod was started, only logs since the pod start will be returned. + If this value is in the future, no logs will be returned. + Only one of sinceSeconds or sinceTime may be specified. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.sinceTime: + +sinceTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) An RFC3339 timestamp from which to show logs. If this value + precedes the time a pod was started, only logs since the pod start will be returned. + If this value is in the future, no logs will be returned. + Only one of sinceSeconds or sinceTime may be specified. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.timestamps: + +timestamps + (`bool `_) If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line + of log output. Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.tailLines: + +tailLines + (`int64 `_) If set, the number of lines from the end of the logs to show. If not specified, + logs are shown from the creation of the container or sinceSeconds or sinceTime + +optional + + +.. _api_field_k8s.io.api.core.v1.PodLogOptions.limitBytes: + +limitBytes + (`int64 `_) If set, the number of bytes to read from the server before terminating the + log output. This may not display a complete final line of logging, and may return + slightly more or slightly less than the specified limit. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodPortForwardOptions: + +k8s.io.api.core.v1.PodPortForwardOptions +---------------------------------------- + +`[k8s.io.api.core.v1.PodPortForwardOptions proto] `_ + +PodPortForwardOptions is the query options to a Pod's port forward call +when using WebSockets. +The `port` query parameter must specify the port or +ports (comma separated) to forward over. +Port forwarding over SPDY does not use these options. It requires the port +to be passed in the `port` header as part of request. + +.. code-block:: json + + { + "ports": [] + } + +.. _api_field_k8s.io.api.core.v1.PodPortForwardOptions.ports: + +ports + (`int32 `_) List of ports to forward + Required when using WebSockets + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodProxyOptions: + +k8s.io.api.core.v1.PodProxyOptions +---------------------------------- + +`[k8s.io.api.core.v1.PodProxyOptions proto] `_ + +PodProxyOptions is the query options to a Pod's proxy call. + +.. code-block:: json + + { + "path": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodProxyOptions.path: + +path + (`string `_) Path is the URL path to use for the current proxy request to pod. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodReadinessGate: + +k8s.io.api.core.v1.PodReadinessGate +----------------------------------- + +`[k8s.io.api.core.v1.PodReadinessGate proto] `_ + +PodReadinessGate contains the reference to a pod condition + +.. code-block:: json + + { + "conditionType": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodReadinessGate.conditionType: + +conditionType + (`string `_) ConditionType refers to a condition in the pod's condition list with matching type. + + + + +.. _api_msg_k8s.io.api.core.v1.PodSecurityContext: + +k8s.io.api.core.v1.PodSecurityContext +------------------------------------- + +`[k8s.io.api.core.v1.PodSecurityContext proto] `_ + +PodSecurityContext holds pod-level security attributes and common container settings. +Some fields are also present in container.securityContext. Field values of +container.securityContext take precedence over field values of PodSecurityContext. + +.. code-block:: json + + { + "seLinuxOptions": "{...}", + "runAsUser": "...", + "runAsGroup": "...", + "runAsNonRoot": "...", + "supplementalGroups": [], + "fsGroup": "...", + "sysctls": [] + } + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.seLinuxOptions: + +seLinuxOptions + (:ref:`k8s.io.api.core.v1.SELinuxOptions `) The SELinux context to be applied to all containers. + If unspecified, the container runtime will allocate a random SELinux context for each + container. May also be set in SecurityContext. If set in + both SecurityContext and PodSecurityContext, the value specified in SecurityContext + takes precedence for that container. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.runAsUser: + +runAsUser + (`int64 `_) The UID to run the entrypoint of the container process. + Defaults to user specified in image metadata if unspecified. + May also be set in SecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence + for that container. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.runAsGroup: + +runAsGroup + (`int64 `_) The GID to run the entrypoint of the container process. + Uses runtime default if unset. + May also be set in SecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence + for that container. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.runAsNonRoot: + +runAsNonRoot + (`bool `_) Indicates that the container must run as a non-root user. + If true, the Kubelet will validate the image at runtime to ensure that it + does not run as UID 0 (root) and fail to start the container if it does. + If unset or false, no such validation will be performed. + May also be set in SecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.supplementalGroups: + +supplementalGroups + (`int64 `_) A list of groups applied to the first process run in each container, in addition + to the container's primary GID. If unspecified, no groups will be added to + any container. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.fsGroup: + +fsGroup + (`int64 `_) A special supplemental group that applies to all containers in a pod. + Some volume types allow the Kubelet to change the ownership of that volume + to be owned by the pod: + + 1. The owning GID will be the FSGroup + 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) + 3. The permission bits are OR'd with rw-rw---- + + If unset, the Kubelet will not modify the ownership and permissions of any volume. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSecurityContext.sysctls: + +sysctls + (:ref:`k8s.io.api.core.v1.Sysctl `) Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported + sysctls (by the container runtime) might fail to launch. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodSignature: + +k8s.io.api.core.v1.PodSignature +------------------------------- + +`[k8s.io.api.core.v1.PodSignature proto] `_ + +Describes the class of pods that should avoid this node. +Exactly one field should be set. + +.. code-block:: json + + { + "podController": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PodSignature.podController: + +podController + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference `) Reference to controller whose pods should avoid this node. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodSpec: + +k8s.io.api.core.v1.PodSpec +-------------------------- + +`[k8s.io.api.core.v1.PodSpec proto] `_ + +PodSpec is a description of a pod. + +.. code-block:: json + + { + "volumes": [], + "initContainers": [], + "containers": [], + "restartPolicy": "...", + "terminationGracePeriodSeconds": "...", + "activeDeadlineSeconds": "...", + "dnsPolicy": "...", + "nodeSelector": "{...}", + "serviceAccountName": "...", + "serviceAccount": "...", + "automountServiceAccountToken": "...", + "nodeName": "...", + "hostNetwork": "...", + "hostPID": "...", + "hostIPC": "...", + "shareProcessNamespace": "...", + "securityContext": "{...}", + "imagePullSecrets": [], + "hostname": "...", + "subdomain": "...", + "affinity": "{...}", + "schedulerName": "...", + "tolerations": [], + "hostAliases": [], + "priorityClassName": "...", + "priority": "...", + "dnsConfig": "{...}", + "readinessGates": [], + "runtimeClassName": "...", + "enableServiceLinks": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodSpec.volumes: + +volumes + (:ref:`k8s.io.api.core.v1.Volume `) List of volumes that can be mounted by containers belonging to the pod. + More info: https://kubernetes.io/docs/concepts/storage/volumes + +optional + +patchMergeKey=name + +patchStrategy=merge,retainKeys + + +.. _api_field_k8s.io.api.core.v1.PodSpec.initContainers: + +initContainers + (:ref:`k8s.io.api.core.v1.Container `) List of initialization containers belonging to the pod. + Init containers are executed in order prior to containers being started. If any + init container fails, the pod is considered to have failed and is handled according + to its restartPolicy. The name for an init container or normal container must be + unique among all containers. + Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. + The resourceRequirements of an init container are taken into account during scheduling + by finding the highest request/limit for each resource type, and then using the max of + of that value or the sum of the normal containers. Limits are applied to init containers + in a similar fashion. + Init containers cannot currently be added or removed. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ + +patchMergeKey=name + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.PodSpec.containers: + +containers + (:ref:`k8s.io.api.core.v1.Container `) List of containers belonging to the pod. + Containers cannot currently be added or removed. + There must be at least one container in a Pod. + Cannot be updated. + +patchMergeKey=name + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.PodSpec.restartPolicy: + +restartPolicy + (`string `_) Restart policy for all containers within the pod. + One of Always, OnFailure, Never. + Default to Always. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.terminationGracePeriodSeconds: + +terminationGracePeriodSeconds + (`int64 `_) Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. + Value must be non-negative integer. The value zero indicates delete immediately. + If this value is nil, the default grace period will be used instead. + The grace period is the duration in seconds after the processes running in the pod are sent + a termination signal and the time when the processes are forcibly halted with a kill signal. + Set this value longer than the expected cleanup time for your process. + Defaults to 30 seconds. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.activeDeadlineSeconds: + +activeDeadlineSeconds + (`int64 `_) Optional duration in seconds the pod may be active on the node relative to + StartTime before the system will actively try to mark it failed and kill associated containers. + Value must be a positive integer. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.dnsPolicy: + +dnsPolicy + (`string `_) Set DNS policy for the pod. + Defaults to "ClusterFirst". + Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. + DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. + To have DNS options set along with hostNetwork, you have to specify DNS policy + explicitly to 'ClusterFirstWithHostNet'. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.nodeSelector: + +nodeSelector + (map<`string `_, `string `_>) NodeSelector is a selector which must be true for the pod to fit on a node. + Selector which must match a node's labels for the pod to be scheduled on that node. + More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.serviceAccountName: + +serviceAccountName + (`string `_) ServiceAccountName is the name of the ServiceAccount to use to run this pod. + More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.serviceAccount: + +serviceAccount + (`string `_) DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. + Deprecated: Use serviceAccountName instead. + +k8s:conversion-gen=false + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.automountServiceAccountToken: + +automountServiceAccountToken + (`bool `_) AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.nodeName: + +nodeName + (`string `_) NodeName is a request to schedule this pod onto a specific node. If it is non-empty, + the scheduler simply schedules this pod onto that node, assuming that it fits resource + requirements. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.hostNetwork: + +hostNetwork + (`bool `_) Host networking requested for this pod. Use the host's network namespace. + If this option is set, the ports that will be used must be specified. + Default to false. + +k8s:conversion-gen=false + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.hostPID: + +hostPID + (`bool `_) Use the host's pid namespace. + Optional: Default to false. + +k8s:conversion-gen=false + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.hostIPC: + +hostIPC + (`bool `_) Use the host's ipc namespace. + Optional: Default to false. + +k8s:conversion-gen=false + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.shareProcessNamespace: + +shareProcessNamespace + (`bool `_) Share a single process namespace between all of the containers in a pod. + When this is set containers will be able to view and signal processes from other containers + in the same pod, and the first process in each container will not be assigned PID 1. + HostPID and ShareProcessNamespace cannot both be set. + Optional: Default to false. + This field is beta-level and may be disabled with the PodShareProcessNamespace feature. + +k8s:conversion-gen=false + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.securityContext: + +securityContext + (:ref:`k8s.io.api.core.v1.PodSecurityContext `) SecurityContext holds pod-level security attributes and common container settings. + Optional: Defaults to empty. See type description for default values of each field. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.imagePullSecrets: + +imagePullSecrets + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. + If specified, these secrets will be passed to individual puller implementations for them to use. For example, + in the case of docker, only DockerConfig type secrets are honored. + More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod + +optional + +patchMergeKey=name + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.PodSpec.hostname: + +hostname + (`string `_) Specifies the hostname of the Pod + If not specified, the pod's hostname will be set to a system-defined value. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.subdomain: + +subdomain + (`string `_) If specified, the fully qualified Pod hostname will be "...svc.". + If not specified, the pod will not have a domainname at all. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.affinity: + +affinity + (:ref:`k8s.io.api.core.v1.Affinity `) If specified, the pod's scheduling constraints + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.schedulerName: + +schedulerName + (`string `_) If specified, the pod will be dispatched by specified scheduler. + If not specified, the pod will be dispatched by default scheduler. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.tolerations: + +tolerations + (:ref:`k8s.io.api.core.v1.Toleration `) If specified, the pod's tolerations. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.hostAliases: + +hostAliases + (:ref:`k8s.io.api.core.v1.HostAlias `) HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts + file if specified. This is only valid for non-hostNetwork pods. + +optional + +patchMergeKey=ip + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.PodSpec.priorityClassName: + +priorityClassName + (`string `_) If specified, indicates the pod's priority. "system-node-critical" and + "system-cluster-critical" are two special keywords which indicate the + highest priorities with the former being the highest priority. Any other + name must be defined by creating a PriorityClass object with that name. + If not specified, the pod priority will be default or zero if there is no + default. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.priority: + +priority + (`int32 `_) The priority value. Various system components use this field to find the + priority of the pod. When Priority Admission Controller is enabled, it + prevents users from setting this field. The admission controller populates + this field from PriorityClassName. + The higher the value, the higher the priority. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.dnsConfig: + +dnsConfig + (:ref:`k8s.io.api.core.v1.PodDNSConfig `) Specifies the DNS parameters of a pod. + Parameters specified here will be merged to the generated DNS + configuration based on DNSPolicy. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.readinessGates: + +readinessGates + (:ref:`k8s.io.api.core.v1.PodReadinessGate `) If specified, all readiness gates will be evaluated for pod readiness. + A pod is ready when all its containers are ready AND + all conditions specified in the readiness gates have status equal to "True" + More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.runtimeClassName: + +runtimeClassName + (`string `_) RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used + to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. + If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an + empty definition that uses the default runtime handler. + More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md + This is an alpha feature and may change in the future. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodSpec.enableServiceLinks: + +enableServiceLinks + (`bool `_) EnableServiceLinks indicates whether information about services should be injected into pod's + environment variables, matching the syntax of Docker links. + Optional: Defaults to true. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodStatus: + +k8s.io.api.core.v1.PodStatus +---------------------------- + +`[k8s.io.api.core.v1.PodStatus proto] `_ + +PodStatus represents information about the status of a pod. Status may trail the actual +state of a system, especially if the node that hosts the pod cannot contact the control +plane. + +.. code-block:: json + + { + "phase": "...", + "conditions": [], + "message": "...", + "reason": "...", + "nominatedNodeName": "...", + "hostIP": "...", + "podIP": "...", + "startTime": "{...}", + "initContainerStatuses": [], + "containerStatuses": [], + "qosClass": "..." + } + +.. _api_field_k8s.io.api.core.v1.PodStatus.phase: + +phase + (`string `_) The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. + The conditions array, the reason and message fields, and the individual container status + arrays contain more detail about the pod's status. + There are five possible phase values: + + Pending: The pod has been accepted by the Kubernetes system, but one or more of the + container images has not been created. This includes time before being scheduled as + well as time spent downloading images over the network, which could take a while. + Running: The pod has been bound to a node, and all of the containers have been created. + At least one container is still running, or is in the process of starting or restarting. + Succeeded: All containers in the pod have terminated in success, and will not be restarted. + Failed: All containers in the pod have terminated, and at least one container has + terminated in failure. The container either exited with non-zero status or was terminated + by the system. + Unknown: For some reason the state of the pod could not be obtained, typically due to an + error in communicating with the host of the pod. + + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.conditions: + +conditions + (:ref:`k8s.io.api.core.v1.PodCondition `) Current service state of pod. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions + +optional + +patchMergeKey=type + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.PodStatus.message: + +message + (`string `_) A human readable message indicating details about why the pod is in this condition. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.reason: + +reason + (`string `_) A brief CamelCase message indicating details about why the pod is in this state. + e.g. 'Evicted' + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.nominatedNodeName: + +nominatedNodeName + (`string `_) nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be + scheduled right away as preemption victims receive their graceful termination periods. + This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide + to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to + give the resources on this node to a higher priority pod that is created after preemption. + As a result, this field may be different than PodSpec.nodeName when the pod is + scheduled. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.hostIP: + +hostIP + (`string `_) IP address of the host to which the pod is assigned. Empty if not yet scheduled. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.podIP: + +podIP + (`string `_) IP address allocated to the pod. Routable at least within the cluster. + Empty if not yet allocated. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.startTime: + +startTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) RFC 3339 date and time at which the object was acknowledged by the Kubelet. + This is before the Kubelet pulled the container image(s) for the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.initContainerStatuses: + +initContainerStatuses + (:ref:`k8s.io.api.core.v1.ContainerStatus `) The list has one entry per init container in the manifest. The most recent successful + init container will have ready = true, the most recently started container will have + startTime set. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + + +.. _api_field_k8s.io.api.core.v1.PodStatus.containerStatuses: + +containerStatuses + (:ref:`k8s.io.api.core.v1.ContainerStatus `) The list has one entry per container in the manifest. Each entry is currently the output + of `docker inspect`. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatus.qosClass: + +qosClass + (`string `_) The Quality of Service (QOS) classification assigned to the pod based on resource requirements + See PodQOSClass type for available QOS classes + More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodStatusResult: + +k8s.io.api.core.v1.PodStatusResult +---------------------------------- + +`[k8s.io.api.core.v1.PodStatusResult proto] `_ + +PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded + +.. code-block:: json + + { + "metadata": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PodStatusResult.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.PodStatusResult.status: + +status + (:ref:`k8s.io.api.core.v1.PodStatus `) Most recently observed status of the pod. + This data may not be up to date. + Populated by the system. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodTemplate: + +k8s.io.api.core.v1.PodTemplate +------------------------------ + +`[k8s.io.api.core.v1.PodTemplate proto] `_ + +PodTemplate describes a template for creating copies of a predefined pod. + +.. code-block:: json + + { + "metadata": "{...}", + "template": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PodTemplate.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.PodTemplate.template: + +template + (:ref:`k8s.io.api.core.v1.PodTemplateSpec `) Template defines the pods that will be created from this pod template. + https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PodTemplateList: + +k8s.io.api.core.v1.PodTemplateList +---------------------------------- + +`[k8s.io.api.core.v1.PodTemplateList proto] `_ + +PodTemplateList is a list of PodTemplates. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.PodTemplateList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.PodTemplateList.items: + +items + (:ref:`k8s.io.api.core.v1.PodTemplate `) List of pod templates + + + + +.. _api_msg_k8s.io.api.core.v1.PodTemplateSpec: + +k8s.io.api.core.v1.PodTemplateSpec +---------------------------------- + +`[k8s.io.api.core.v1.PodTemplateSpec proto] `_ + +PodTemplateSpec describes the data a pod should have when created from a template + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PodTemplateSpec.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.PodTemplateSpec.spec: + +spec + (:ref:`k8s.io.api.core.v1.PodSpec `) Specification of the desired behavior of the pod. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PortworxVolumeSource: + +k8s.io.api.core.v1.PortworxVolumeSource +--------------------------------------- + +`[k8s.io.api.core.v1.PortworxVolumeSource proto] `_ + +PortworxVolumeSource represents a Portworx volume resource. + +.. code-block:: json + + { + "volumeID": "...", + "fsType": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.PortworxVolumeSource.volumeID: + +volumeID + (`string `_) VolumeID uniquely identifies a Portworx volume + + +.. _api_field_k8s.io.api.core.v1.PortworxVolumeSource.fsType: + +fsType + (`string `_) FSType represents the filesystem type to mount + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. + + +.. _api_field_k8s.io.api.core.v1.PortworxVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Preconditions: + +k8s.io.api.core.v1.Preconditions +-------------------------------- + +`[k8s.io.api.core.v1.Preconditions proto] `_ + +Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. ++k8s:openapi-gen=false + +.. code-block:: json + + { + "uid": "..." + } + +.. _api_field_k8s.io.api.core.v1.Preconditions.uid: + +uid + (`string `_) Specifies the target UID. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PreferAvoidPodsEntry: + +k8s.io.api.core.v1.PreferAvoidPodsEntry +--------------------------------------- + +`[k8s.io.api.core.v1.PreferAvoidPodsEntry proto] `_ + +Describes a class of pods that should avoid this node. + +.. code-block:: json + + { + "podSignature": "{...}", + "evictionTime": "{...}", + "reason": "...", + "message": "..." + } + +.. _api_field_k8s.io.api.core.v1.PreferAvoidPodsEntry.podSignature: + +podSignature + (:ref:`k8s.io.api.core.v1.PodSignature `) The class of pods. + + +.. _api_field_k8s.io.api.core.v1.PreferAvoidPodsEntry.evictionTime: + +evictionTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Time at which this entry was added to the list. + +optional + + +.. _api_field_k8s.io.api.core.v1.PreferAvoidPodsEntry.reason: + +reason + (`string `_) (brief) reason why this entry was added to the list. + +optional + + +.. _api_field_k8s.io.api.core.v1.PreferAvoidPodsEntry.message: + +message + (`string `_) Human readable message indicating why this entry was added to the list. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.PreferredSchedulingTerm: + +k8s.io.api.core.v1.PreferredSchedulingTerm +------------------------------------------ + +`[k8s.io.api.core.v1.PreferredSchedulingTerm proto] `_ + +An empty preferred scheduling term matches all objects with implicit weight 0 +(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + +.. code-block:: json + + { + "weight": "...", + "preference": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.PreferredSchedulingTerm.weight: + +weight + (`int32 `_) Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + + +.. _api_field_k8s.io.api.core.v1.PreferredSchedulingTerm.preference: + +preference + (:ref:`k8s.io.api.core.v1.NodeSelectorTerm `) A node selector term, associated with the corresponding weight. + + + + +.. _api_msg_k8s.io.api.core.v1.Probe: + +k8s.io.api.core.v1.Probe +------------------------ + +`[k8s.io.api.core.v1.Probe proto] `_ + +Probe describes a health check to be performed against a container to determine whether it is +alive or ready to receive traffic. + +.. code-block:: json + + { + "handler": "{...}", + "initialDelaySeconds": "...", + "timeoutSeconds": "...", + "periodSeconds": "...", + "successThreshold": "...", + "failureThreshold": "..." + } + +.. _api_field_k8s.io.api.core.v1.Probe.handler: + +handler + (:ref:`k8s.io.api.core.v1.Handler `) The action taken to determine the health of a container + + +.. _api_field_k8s.io.api.core.v1.Probe.initialDelaySeconds: + +initialDelaySeconds + (`int32 `_) Number of seconds after the container has started before liveness probes are initiated. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + +optional + + +.. _api_field_k8s.io.api.core.v1.Probe.timeoutSeconds: + +timeoutSeconds + (`int32 `_) Number of seconds after which the probe times out. + Defaults to 1 second. Minimum value is 1. + More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + +optional + + +.. _api_field_k8s.io.api.core.v1.Probe.periodSeconds: + +periodSeconds + (`int32 `_) How often (in seconds) to perform the probe. + Default to 10 seconds. Minimum value is 1. + +optional + + +.. _api_field_k8s.io.api.core.v1.Probe.successThreshold: + +successThreshold + (`int32 `_) Minimum consecutive successes for the probe to be considered successful after having failed. + Defaults to 1. Must be 1 for liveness. Minimum value is 1. + +optional + + +.. _api_field_k8s.io.api.core.v1.Probe.failureThreshold: + +failureThreshold + (`int32 `_) Minimum consecutive failures for the probe to be considered failed after having succeeded. + Defaults to 3. Minimum value is 1. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ProjectedVolumeSource: + +k8s.io.api.core.v1.ProjectedVolumeSource +---------------------------------------- + +`[k8s.io.api.core.v1.ProjectedVolumeSource proto] `_ + +Represents a projected volume source + +.. code-block:: json + + { + "sources": [], + "defaultMode": "..." + } + +.. _api_field_k8s.io.api.core.v1.ProjectedVolumeSource.sources: + +sources + (:ref:`k8s.io.api.core.v1.VolumeProjection `) list of volume projections + + +.. _api_field_k8s.io.api.core.v1.ProjectedVolumeSource.defaultMode: + +defaultMode + (`int32 `_) Mode bits to use on created files by default. Must be a value between + 0 and 0777. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.QuobyteVolumeSource: + +k8s.io.api.core.v1.QuobyteVolumeSource +-------------------------------------- + +`[k8s.io.api.core.v1.QuobyteVolumeSource proto] `_ + +Represents a Quobyte mount that lasts the lifetime of a pod. +Quobyte volumes do not support ownership management or SELinux relabeling. + +.. code-block:: json + + { + "registry": "...", + "volume": "...", + "readOnly": "...", + "user": "...", + "group": "...", + "tenant": "..." + } + +.. _api_field_k8s.io.api.core.v1.QuobyteVolumeSource.registry: + +registry + (`string `_) Registry represents a single or multiple Quobyte Registry services + specified as a string as host:port pair (multiple entries are separated with commas) + which acts as the central registry for volumes + + +.. _api_field_k8s.io.api.core.v1.QuobyteVolumeSource.volume: + +volume + (`string `_) Volume is a string that references an already created Quobyte volume by name. + + +.. _api_field_k8s.io.api.core.v1.QuobyteVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.QuobyteVolumeSource.user: + +user + (`string `_) User to map volume access to + Defaults to serivceaccount user + +optional + + +.. _api_field_k8s.io.api.core.v1.QuobyteVolumeSource.group: + +group + (`string `_) Group to map volume access to + Default is no group + +optional + + +.. _api_field_k8s.io.api.core.v1.QuobyteVolumeSource.tenant: + +tenant + (`string `_) Tenant owning the given Quobyte volume in the Backend + Used with dynamically provisioned Quobyte volumes, value is set by the plugin + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.RBDPersistentVolumeSource: + +k8s.io.api.core.v1.RBDPersistentVolumeSource +-------------------------------------------- + +`[k8s.io.api.core.v1.RBDPersistentVolumeSource proto] `_ + +Represents a Rados Block Device mount that lasts the lifetime of a pod. +RBD volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "monitors": [], + "image": "...", + "fsType": "...", + "pool": "...", + "user": "...", + "keyring": "...", + "secretRef": "{...}", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.monitors: + +monitors + (`string `_) A collection of Ceph monitors. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.image: + +image + (`string `_) The rados image name. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.pool: + +pool + (`string `_) The rados pool name. + Default is rbd. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.user: + +user + (`string `_) The rados user name. + Default is admin. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.keyring: + +keyring + (`string `_) Keyring is the path to key ring for RBDUser. + Default is /etc/ceph/keyring. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) SecretRef is name of the authentication secret for RBDUser. If provided + overrides keyring. + Default is nil. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.RBDVolumeSource: + +k8s.io.api.core.v1.RBDVolumeSource +---------------------------------- + +`[k8s.io.api.core.v1.RBDVolumeSource proto] `_ + +Represents a Rados Block Device mount that lasts the lifetime of a pod. +RBD volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "monitors": [], + "image": "...", + "fsType": "...", + "pool": "...", + "user": "...", + "keyring": "...", + "secretRef": "{...}", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.monitors: + +monitors + (`string `_) A collection of Ceph monitors. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.image: + +image + (`string `_) The rados image name. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.fsType: + +fsType + (`string `_) Filesystem type of the volume that you want to mount. + Tip: Ensure that the filesystem type is supported by the host operating system. + Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd + TODO: how do we prevent errors in the filesystem from compromising the machine + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.pool: + +pool + (`string `_) The rados pool name. + Default is rbd. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.user: + +user + (`string `_) The rados user name. + Default is admin. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.keyring: + +keyring + (`string `_) Keyring is the path to key ring for RBDUser. + Default is /etc/ceph/keyring. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) SecretRef is name of the authentication secret for RBDUser. If provided + overrides keyring. + Default is nil. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + +.. _api_field_k8s.io.api.core.v1.RBDVolumeSource.readOnly: + +readOnly + (`bool `_) ReadOnly here will force the ReadOnly setting in VolumeMounts. + Defaults to false. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.RangeAllocation: + +k8s.io.api.core.v1.RangeAllocation +---------------------------------- + +`[k8s.io.api.core.v1.RangeAllocation proto] `_ + +RangeAllocation is not a public type. + +.. code-block:: json + + { + "metadata": "{...}", + "range": "...", + "data": "..." + } + +.. _api_field_k8s.io.api.core.v1.RangeAllocation.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.RangeAllocation.range: + +range + (`string `_) Range is string that identifies the range represented by 'data'. + + +.. _api_field_k8s.io.api.core.v1.RangeAllocation.data: + +data + (`bytes `_) Data is a bit array containing all allocated addresses in the previous segment. + + + + +.. _api_msg_k8s.io.api.core.v1.ReplicationController: + +k8s.io.api.core.v1.ReplicationController +---------------------------------------- + +`[k8s.io.api.core.v1.ReplicationController proto] `_ + +ReplicationController represents the configuration of a replication controller. + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ReplicationController.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) If the Labels of a ReplicationController are empty, they are defaulted to + be the same as the Pod(s) that the replication controller manages. + Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationController.spec: + +spec + (:ref:`k8s.io.api.core.v1.ReplicationControllerSpec `) Spec defines the specification of the desired behavior of the replication controller. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationController.status: + +status + (:ref:`k8s.io.api.core.v1.ReplicationControllerStatus `) Status is the most recently observed status of the replication controller. + This data may be out of date by some window of time. + Populated by the system. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ReplicationControllerCondition: + +k8s.io.api.core.v1.ReplicationControllerCondition +------------------------------------------------- + +`[k8s.io.api.core.v1.ReplicationControllerCondition proto] `_ + +ReplicationControllerCondition describes the state of a replication controller at a certain point. + +.. code-block:: json + + { + "type": "...", + "status": "...", + "lastTransitionTime": "{...}", + "reason": "...", + "message": "..." + } + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerCondition.type: + +type + (`string `_) Type of replication controller condition. + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerCondition.status: + +status + (`string `_) Status of the condition, one of True, False, Unknown. + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerCondition.lastTransitionTime: + +lastTransitionTime + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) The last time the condition transitioned from one status to another. + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerCondition.reason: + +reason + (`string `_) The reason for the condition's last transition. + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerCondition.message: + +message + (`string `_) A human readable message indicating details about the transition. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ReplicationControllerList: + +k8s.io.api.core.v1.ReplicationControllerList +-------------------------------------------- + +`[k8s.io.api.core.v1.ReplicationControllerList proto] `_ + +ReplicationControllerList is a collection of replication controllers. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerList.items: + +items + (:ref:`k8s.io.api.core.v1.ReplicationController `) List of replication controllers. + More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller + + + + +.. _api_msg_k8s.io.api.core.v1.ReplicationControllerSpec: + +k8s.io.api.core.v1.ReplicationControllerSpec +-------------------------------------------- + +`[k8s.io.api.core.v1.ReplicationControllerSpec proto] `_ + +ReplicationControllerSpec is the specification of a replication controller. + +.. code-block:: json + + { + "replicas": "...", + "minReadySeconds": "...", + "selector": "{...}", + "template": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerSpec.replicas: + +replicas + (`int32 `_) Replicas is the number of desired replicas. + This is a pointer to distinguish between explicit zero and unspecified. + Defaults to 1. + More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerSpec.minReadySeconds: + +minReadySeconds + (`int32 `_) Minimum number of seconds for which a newly created pod should be ready + without any of its container crashing, for it to be considered available. + Defaults to 0 (pod will be considered available as soon as it is ready) + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerSpec.selector: + +selector + (map<`string `_, `string `_>) Selector is a label query over pods that should match the Replicas count. + If Selector is empty, it is defaulted to the labels present on the Pod template. + Label keys and values that must match in order to be controlled by this replication + controller, if empty defaulted to labels on Pod template. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerSpec.template: + +template + (:ref:`k8s.io.api.core.v1.PodTemplateSpec `) Template is the object that describes the pod that will be created if + insufficient replicas are detected. This takes precedence over a TemplateRef. + More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ReplicationControllerStatus: + +k8s.io.api.core.v1.ReplicationControllerStatus +---------------------------------------------- + +`[k8s.io.api.core.v1.ReplicationControllerStatus proto] `_ + +ReplicationControllerStatus represents the current status of a replication +controller. + +.. code-block:: json + + { + "replicas": "...", + "fullyLabeledReplicas": "...", + "readyReplicas": "...", + "availableReplicas": "...", + "observedGeneration": "...", + "conditions": [] + } + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerStatus.replicas: + +replicas + (`int32 `_) Replicas is the most recently oberved number of replicas. + More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerStatus.fullyLabeledReplicas: + +fullyLabeledReplicas + (`int32 `_) The number of pods that have labels matching the labels of the pod template of the replication controller. + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerStatus.readyReplicas: + +readyReplicas + (`int32 `_) The number of ready replicas for this replication controller. + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerStatus.availableReplicas: + +availableReplicas + (`int32 `_) The number of available replicas (ready for at least minReadySeconds) for this replication controller. + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerStatus.observedGeneration: + +observedGeneration + (`int64 `_) ObservedGeneration reflects the generation of the most recently observed replication controller. + +optional + + +.. _api_field_k8s.io.api.core.v1.ReplicationControllerStatus.conditions: + +conditions + (:ref:`k8s.io.api.core.v1.ReplicationControllerCondition `) Represents the latest available observations of a replication controller's current state. + +optional + +patchMergeKey=type + +patchStrategy=merge + + + + +.. _api_msg_k8s.io.api.core.v1.ResourceFieldSelector: + +k8s.io.api.core.v1.ResourceFieldSelector +---------------------------------------- + +`[k8s.io.api.core.v1.ResourceFieldSelector proto] `_ + +ResourceFieldSelector represents container resources (cpu, memory) and their output format + +.. code-block:: json + + { + "containerName": "...", + "resource": "...", + "divisor": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ResourceFieldSelector.containerName: + +containerName + (`string `_) Container name: required for volumes, optional for env vars + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceFieldSelector.resource: + +resource + (`string `_) Required: resource to select + + +.. _api_field_k8s.io.api.core.v1.ResourceFieldSelector.divisor: + +divisor + (:ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `) Specifies the output format of the exposed resources, defaults to "1" + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ResourceQuota: + +k8s.io.api.core.v1.ResourceQuota +-------------------------------- + +`[k8s.io.api.core.v1.ResourceQuota proto] `_ + +ResourceQuota sets aggregate quota restrictions enforced per namespace + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ResourceQuota.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceQuota.spec: + +spec + (:ref:`k8s.io.api.core.v1.ResourceQuotaSpec `) Spec defines the desired quota. + https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceQuota.status: + +status + (:ref:`k8s.io.api.core.v1.ResourceQuotaStatus `) Status defines the actual enforced quota and its current usage. + https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ResourceQuotaList: + +k8s.io.api.core.v1.ResourceQuotaList +------------------------------------ + +`[k8s.io.api.core.v1.ResourceQuotaList proto] `_ + +ResourceQuotaList is a list of ResourceQuota items. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaList.items: + +items + (:ref:`k8s.io.api.core.v1.ResourceQuota `) Items is a list of ResourceQuota objects. + More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + + + + +.. _api_msg_k8s.io.api.core.v1.ResourceQuotaSpec: + +k8s.io.api.core.v1.ResourceQuotaSpec +------------------------------------ + +`[k8s.io.api.core.v1.ResourceQuotaSpec proto] `_ + +ResourceQuotaSpec defines the desired hard limits to enforce for Quota. + +.. code-block:: json + + { + "hard": "{...}", + "scopes": [], + "scopeSelector": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaSpec.hard: + +hard + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) hard is the set of desired hard limits for each named resource. + More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaSpec.scopes: + +scopes + (`string `_) A collection of filters that must match each object tracked by a quota. + If not specified, the quota matches all objects. + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaSpec.scopeSelector: + +scopeSelector + (:ref:`k8s.io.api.core.v1.ScopeSelector `) scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota + but expressed using ScopeSelectorOperator in combination with possible values. + For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ResourceQuotaStatus: + +k8s.io.api.core.v1.ResourceQuotaStatus +-------------------------------------- + +`[k8s.io.api.core.v1.ResourceQuotaStatus proto] `_ + +ResourceQuotaStatus defines the enforced hard limits and observed use. + +.. code-block:: json + + { + "hard": "{...}", + "used": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaStatus.hard: + +hard + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Hard is the set of enforced hard limits for each named resource. + More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceQuotaStatus.used: + +used + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Used is the current observed total usage of the resource in the namespace. + +optional + + + + + +.. _api_msg_k8s.io.api.core.v1.ResourceRequirements: + +k8s.io.api.core.v1.ResourceRequirements +--------------------------------------- + +`[k8s.io.api.core.v1.ResourceRequirements proto] `_ + +ResourceRequirements describes the compute resource requirements. + +.. code-block:: json + + { + "limits": "{...}", + "requests": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ResourceRequirements.limits: + +limits + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Limits describes the maximum amount of compute resources allowed. + More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + +optional + + +.. _api_field_k8s.io.api.core.v1.ResourceRequirements.requests: + +requests + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.api.resource.Quantity `>) Requests describes the minimum amount of compute resources required. + If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, + otherwise to an implementation-defined value. + More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + +optional + + + + + +.. _api_msg_k8s.io.api.core.v1.SELinuxOptions: + +k8s.io.api.core.v1.SELinuxOptions +--------------------------------- + +`[k8s.io.api.core.v1.SELinuxOptions proto] `_ + +SELinuxOptions are the labels to be applied to the container + +.. code-block:: json + + { + "user": "...", + "role": "...", + "type": "...", + "level": "..." + } + +.. _api_field_k8s.io.api.core.v1.SELinuxOptions.user: + +user + (`string `_) User is a SELinux user label that applies to the container. + +optional + + +.. _api_field_k8s.io.api.core.v1.SELinuxOptions.role: + +role + (`string `_) Role is a SELinux role label that applies to the container. + +optional + + +.. _api_field_k8s.io.api.core.v1.SELinuxOptions.type: + +type + (`string `_) Type is a SELinux type label that applies to the container. + +optional + + +.. _api_field_k8s.io.api.core.v1.SELinuxOptions.level: + +level + (`string `_) Level is SELinux level label that applies to the container. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource: + +k8s.io.api.core.v1.ScaleIOPersistentVolumeSource +------------------------------------------------ + +`[k8s.io.api.core.v1.ScaleIOPersistentVolumeSource proto] `_ + +ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume + +.. code-block:: json + + { + "gateway": "...", + "system": "...", + "secretRef": "{...}", + "sslEnabled": "...", + "protectionDomain": "...", + "storagePool": "...", + "storageMode": "...", + "volumeName": "...", + "fsType": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.gateway: + +gateway + (`string `_) The host address of the ScaleIO API Gateway. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.system: + +system + (`string `_) The name of the storage system as configured in ScaleIO. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.SecretReference `) SecretRef references to the secret for ScaleIO user and other + sensitive information. If this is not provided, Login operation will fail. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.sslEnabled: + +sslEnabled + (`bool `_) Flag to enable/disable SSL communication with Gateway, default false + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.protectionDomain: + +protectionDomain + (`string `_) The name of the ScaleIO Protection Domain for the configured storage. + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.storagePool: + +storagePool + (`string `_) The ScaleIO Storage Pool associated with the protection domain. + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.storageMode: + +storageMode + (`string `_) Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + Default is ThinProvisioned. + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.volumeName: + +volumeName + (`string `_) The name of a volume already created in the ScaleIO system + that is associated with this volume source. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". + Default is "xfs" + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ScaleIOVolumeSource: + +k8s.io.api.core.v1.ScaleIOVolumeSource +-------------------------------------- + +`[k8s.io.api.core.v1.ScaleIOVolumeSource proto] `_ + +ScaleIOVolumeSource represents a persistent ScaleIO volume + +.. code-block:: json + + { + "gateway": "...", + "system": "...", + "secretRef": "{...}", + "sslEnabled": "...", + "protectionDomain": "...", + "storagePool": "...", + "storageMode": "...", + "volumeName": "...", + "fsType": "...", + "readOnly": "..." + } + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.gateway: + +gateway + (`string `_) The host address of the ScaleIO API Gateway. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.system: + +system + (`string `_) The name of the storage system as configured in ScaleIO. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) SecretRef references to the secret for ScaleIO user and other + sensitive information. If this is not provided, Login operation will fail. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.sslEnabled: + +sslEnabled + (`bool `_) Flag to enable/disable SSL communication with Gateway, default false + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.protectionDomain: + +protectionDomain + (`string `_) The name of the ScaleIO Protection Domain for the configured storage. + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.storagePool: + +storagePool + (`string `_) The ScaleIO Storage Pool associated with the protection domain. + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.storageMode: + +storageMode + (`string `_) Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + Default is ThinProvisioned. + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.volumeName: + +volumeName + (`string `_) The name of a volume already created in the ScaleIO system + that is associated with this volume source. + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". + Default is "xfs". + +optional + + +.. _api_field_k8s.io.api.core.v1.ScaleIOVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ScopeSelector: + +k8s.io.api.core.v1.ScopeSelector +-------------------------------- + +`[k8s.io.api.core.v1.ScopeSelector proto] `_ + +A scope selector represents the AND of the selectors represented +by the scoped-resource selector requirements. + +.. code-block:: json + + { + "matchExpressions": [] + } + +.. _api_field_k8s.io.api.core.v1.ScopeSelector.matchExpressions: + +matchExpressions + (:ref:`k8s.io.api.core.v1.ScopedResourceSelectorRequirement `) A list of scope selector requirements by scope of the resources. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ScopedResourceSelectorRequirement: + +k8s.io.api.core.v1.ScopedResourceSelectorRequirement +---------------------------------------------------- + +`[k8s.io.api.core.v1.ScopedResourceSelectorRequirement proto] `_ + +A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator +that relates the scope name and values. + +.. code-block:: json + + { + "scopeName": "...", + "operator": "...", + "values": [] + } + +.. _api_field_k8s.io.api.core.v1.ScopedResourceSelectorRequirement.scopeName: + +scopeName + (`string `_) The name of the scope that the selector applies to. + + +.. _api_field_k8s.io.api.core.v1.ScopedResourceSelectorRequirement.operator: + +operator + (`string `_) Represents a scope's relationship to a set of values. + Valid operators are In, NotIn, Exists, DoesNotExist. + + +.. _api_field_k8s.io.api.core.v1.ScopedResourceSelectorRequirement.values: + +values + (`string `_) An array of string values. If the operator is In or NotIn, + the values array must be non-empty. If the operator is Exists or DoesNotExist, + the values array must be empty. + This array is replaced during a strategic merge patch. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Secret: + +k8s.io.api.core.v1.Secret +------------------------- + +`[k8s.io.api.core.v1.Secret proto] `_ + +Secret holds secret data of a certain type. The total bytes of the values in +the Data field must be less than MaxSecretSize bytes. + +.. code-block:: json + + { + "metadata": "{...}", + "data": "{...}", + "stringData": "{...}", + "type": "..." + } + +.. _api_field_k8s.io.api.core.v1.Secret.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Secret.data: + +data + (map<`string `_, `bytes `_>) Data contains the secret data. Each key must consist of alphanumeric + characters, '-', '_' or '.'. The serialized form of the secret data is a + base64 encoded string, representing the arbitrary (possibly non-string) + data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 + +optional + + +.. _api_field_k8s.io.api.core.v1.Secret.stringData: + +stringData + (map<`string `_, `string `_>) stringData allows specifying non-binary secret data in string form. + It is provided as a write-only convenience method. + All keys and values are merged into the data field on write, overwriting any existing values. + It is never output when reading from the API. + +k8s:conversion-gen=false + +optional + + +.. _api_field_k8s.io.api.core.v1.Secret.type: + +type + (`string `_) Used to facilitate programmatic handling of secret data. + +optional + + + + + +.. _api_msg_k8s.io.api.core.v1.SecretEnvSource: + +k8s.io.api.core.v1.SecretEnvSource +---------------------------------- + +`[k8s.io.api.core.v1.SecretEnvSource proto] `_ + +SecretEnvSource selects a Secret to populate the environment +variables with. + +The contents of the target Secret's Data field will represent the +key-value pairs as environment variables. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.SecretEnvSource.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) The Secret to select from. + + +.. _api_field_k8s.io.api.core.v1.SecretEnvSource.optional: + +optional + (`bool `_) Specify whether the Secret must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SecretKeySelector: + +k8s.io.api.core.v1.SecretKeySelector +------------------------------------ + +`[k8s.io.api.core.v1.SecretKeySelector proto] `_ + +SecretKeySelector selects a key of a Secret. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "key": "...", + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.SecretKeySelector.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) The name of the secret in the pod's namespace to select from. + + +.. _api_field_k8s.io.api.core.v1.SecretKeySelector.key: + +key + (`string `_) The key of the secret to select from. Must be a valid secret key. + + +.. _api_field_k8s.io.api.core.v1.SecretKeySelector.optional: + +optional + (`bool `_) Specify whether the Secret or it's key must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SecretList: + +k8s.io.api.core.v1.SecretList +----------------------------- + +`[k8s.io.api.core.v1.SecretList proto] `_ + +SecretList is a list of Secret. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.SecretList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.SecretList.items: + +items + (:ref:`k8s.io.api.core.v1.Secret `) Items is a list of secret objects. + More info: https://kubernetes.io/docs/concepts/configuration/secret + + + + +.. _api_msg_k8s.io.api.core.v1.SecretProjection: + +k8s.io.api.core.v1.SecretProjection +----------------------------------- + +`[k8s.io.api.core.v1.SecretProjection proto] `_ + +Adapts a secret into a projected volume. + +The contents of the target Secret's Data field will be presented in a +projected volume as files using the keys in the Data field as the file names. +Note that this is identical to a secret volume source without the default +mode. + +.. code-block:: json + + { + "localObjectReference": "{...}", + "items": [], + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.SecretProjection.localObjectReference: + +localObjectReference + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) + +.. _api_field_k8s.io.api.core.v1.SecretProjection.items: + +items + (:ref:`k8s.io.api.core.v1.KeyToPath `) If unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecretProjection.optional: + +optional + (`bool `_) Specify whether the Secret or its key must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SecretReference: + +k8s.io.api.core.v1.SecretReference +---------------------------------- + +`[k8s.io.api.core.v1.SecretReference proto] `_ + +SecretReference represents a Secret Reference. It has enough information to retrieve secret +in any namespace + +.. code-block:: json + + { + "name": "...", + "namespace": "..." + } + +.. _api_field_k8s.io.api.core.v1.SecretReference.name: + +name + (`string `_) Name is unique within a namespace to reference a secret resource. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecretReference.namespace: + +namespace + (`string `_) Namespace defines the space within which the secret name must be unique. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SecretVolumeSource: + +k8s.io.api.core.v1.SecretVolumeSource +------------------------------------- + +`[k8s.io.api.core.v1.SecretVolumeSource proto] `_ + +Adapts a Secret into a volume. + +The contents of the target Secret's Data field will be presented in a volume +as files using the keys in the Data field as the file names. +Secret volumes support ownership management and SELinux relabeling. + +.. code-block:: json + + { + "secretName": "...", + "items": [], + "defaultMode": "...", + "optional": "..." + } + +.. _api_field_k8s.io.api.core.v1.SecretVolumeSource.secretName: + +secretName + (`string `_) Name of the secret in the pod's namespace to use. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + +optional + + +.. _api_field_k8s.io.api.core.v1.SecretVolumeSource.items: + +items + (:ref:`k8s.io.api.core.v1.KeyToPath `) If unspecified, each key-value pair in the Data field of the referenced + Secret will be projected into the volume as a file whose name is the + key and content is the value. If specified, the listed keys will be + projected into the specified paths, and unlisted keys will not be + present. If a key is specified which is not present in the Secret, + the volume setup will error unless it is marked optional. Paths must be + relative and may not contain the '..' path or start with '..'. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecretVolumeSource.defaultMode: + +defaultMode + (`int32 `_) Optional: mode bits to use on created files by default. Must be a + value between 0 and 0777. Defaults to 0644. + Directories within the path are not affected by this setting. + This might be in conflict with other options that affect the file + mode, like fsGroup, and the result can be other mode bits set. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecretVolumeSource.optional: + +optional + (`bool `_) Specify whether the Secret or it's keys must be defined + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SecurityContext: + +k8s.io.api.core.v1.SecurityContext +---------------------------------- + +`[k8s.io.api.core.v1.SecurityContext proto] `_ + +SecurityContext holds security configuration that will be applied to a container. +Some fields are present in both SecurityContext and PodSecurityContext. When both +are set, the values in SecurityContext take precedence. + +.. code-block:: json + + { + "capabilities": "{...}", + "privileged": "...", + "seLinuxOptions": "{...}", + "runAsUser": "...", + "runAsGroup": "...", + "runAsNonRoot": "...", + "readOnlyRootFilesystem": "...", + "allowPrivilegeEscalation": "...", + "procMount": "..." + } + +.. _api_field_k8s.io.api.core.v1.SecurityContext.capabilities: + +capabilities + (:ref:`k8s.io.api.core.v1.Capabilities `) The capabilities to add/drop when running containers. + Defaults to the default set of capabilities granted by the container runtime. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.privileged: + +privileged + (`bool `_) Run container in privileged mode. + Processes in privileged containers are essentially equivalent to root on the host. + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.seLinuxOptions: + +seLinuxOptions + (:ref:`k8s.io.api.core.v1.SELinuxOptions `) The SELinux context to be applied to the container. + If unspecified, the container runtime will allocate a random SELinux context for each + container. May also be set in PodSecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.runAsUser: + +runAsUser + (`int64 `_) The UID to run the entrypoint of the container process. + Defaults to user specified in image metadata if unspecified. + May also be set in PodSecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.runAsGroup: + +runAsGroup + (`int64 `_) The GID to run the entrypoint of the container process. + Uses runtime default if unset. + May also be set in PodSecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.runAsNonRoot: + +runAsNonRoot + (`bool `_) Indicates that the container must run as a non-root user. + If true, the Kubelet will validate the image at runtime to ensure that it + does not run as UID 0 (root) and fail to start the container if it does. + If unset or false, no such validation will be performed. + May also be set in PodSecurityContext. If set in both SecurityContext and + PodSecurityContext, the value specified in SecurityContext takes precedence. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.readOnlyRootFilesystem: + +readOnlyRootFilesystem + (`bool `_) Whether this container has a read-only root filesystem. + Default is false. + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.allowPrivilegeEscalation: + +allowPrivilegeEscalation + (`bool `_) AllowPrivilegeEscalation controls whether a process can gain more + privileges than its parent process. This bool directly controls if + the no_new_privs flag will be set on the container process. + AllowPrivilegeEscalation is true always when the container is: + 1) run as Privileged + 2) has CAP_SYS_ADMIN + +optional + + +.. _api_field_k8s.io.api.core.v1.SecurityContext.procMount: + +procMount + (`string `_) procMount denotes the type of proc mount to use for the containers. + The default is DefaultProcMount which uses the container runtime defaults for + readonly paths and masked paths. + This requires the ProcMountType feature flag to be enabled. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SerializedReference: + +k8s.io.api.core.v1.SerializedReference +-------------------------------------- + +`[k8s.io.api.core.v1.SerializedReference proto] `_ + +SerializedReference is a reference to serialized object. + +.. code-block:: json + + { + "reference": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.SerializedReference.reference: + +reference + (:ref:`k8s.io.api.core.v1.ObjectReference `) The reference to an object in the system. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Service: + +k8s.io.api.core.v1.Service +-------------------------- + +`[k8s.io.api.core.v1.Service proto] `_ + +Service is a named abstraction of software service (for example, mysql) consisting of local port +(for example 3306) that the proxy listens on, and the selector that determines which pods +will answer requests sent through the proxy. + +.. code-block:: json + + { + "metadata": "{...}", + "spec": "{...}", + "status": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Service.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.Service.spec: + +spec + (:ref:`k8s.io.api.core.v1.ServiceSpec `) Spec defines the behavior of a service. + https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.api.core.v1.Service.status: + +status + (:ref:`k8s.io.api.core.v1.ServiceStatus `) Most recently observed status of the service. + Populated by the system. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceAccount: + +k8s.io.api.core.v1.ServiceAccount +--------------------------------- + +`[k8s.io.api.core.v1.ServiceAccount proto] `_ + +ServiceAccount binds together: +* a name, understood by users, and perhaps by peripheral systems, for an identity +* a principal that can be authenticated and authorized +* a set of secrets + +.. code-block:: json + + { + "metadata": "{...}", + "secrets": [], + "imagePullSecrets": [], + "automountServiceAccountToken": "..." + } + +.. _api_field_k8s.io.api.core.v1.ServiceAccount.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta `) Standard object's metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceAccount.secrets: + +secrets + (:ref:`k8s.io.api.core.v1.ObjectReference `) Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. + More info: https://kubernetes.io/docs/concepts/configuration/secret + +optional + +patchMergeKey=name + +patchStrategy=merge + + +.. _api_field_k8s.io.api.core.v1.ServiceAccount.imagePullSecrets: + +imagePullSecrets + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images + in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets + can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. + More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceAccount.automountServiceAccountToken: + +automountServiceAccountToken + (`bool `_) AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. + Can be overridden at the pod level. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceAccountList: + +k8s.io.api.core.v1.ServiceAccountList +------------------------------------- + +`[k8s.io.api.core.v1.ServiceAccountList proto] `_ + +ServiceAccountList is a list of ServiceAccount objects + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.ServiceAccountList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceAccountList.items: + +items + (:ref:`k8s.io.api.core.v1.ServiceAccount `) List of ServiceAccounts. + More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceAccountTokenProjection: + +k8s.io.api.core.v1.ServiceAccountTokenProjection +------------------------------------------------ + +`[k8s.io.api.core.v1.ServiceAccountTokenProjection proto] `_ + +ServiceAccountTokenProjection represents a projected service account token +volume. This projection can be used to insert a service account token into +the pods runtime filesystem for use against APIs (Kubernetes API Server or +otherwise). + +.. code-block:: json + + { + "audience": "...", + "expirationSeconds": "...", + "path": "..." + } + +.. _api_field_k8s.io.api.core.v1.ServiceAccountTokenProjection.audience: + +audience + (`string `_) Audience is the intended audience of the token. A recipient of a token + must identify itself with an identifier specified in the audience of the + token, and otherwise should reject the token. The audience defaults to the + identifier of the apiserver. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceAccountTokenProjection.expirationSeconds: + +expirationSeconds + (`int64 `_) ExpirationSeconds is the requested duration of validity of the service + account token. As the token approaches expiration, the kubelet volume + plugin will proactively rotate the service account token. The kubelet will + start trying to rotate the token if the token is older than 80 percent of + its time to live or if the token is older than 24 hours.Defaults to 1 hour + and must be at least 10 minutes. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceAccountTokenProjection.path: + +path + (`string `_) Path is the path relative to the mount point of the file to project the + token into. + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceList: + +k8s.io.api.core.v1.ServiceList +------------------------------ + +`[k8s.io.api.core.v1.ServiceList proto] `_ + +ServiceList holds a list of services. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.api.core.v1.ServiceList.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceList.items: + +items + (:ref:`k8s.io.api.core.v1.Service `) List of services + + + + +.. _api_msg_k8s.io.api.core.v1.ServicePort: + +k8s.io.api.core.v1.ServicePort +------------------------------ + +`[k8s.io.api.core.v1.ServicePort proto] `_ + +ServicePort contains information on service's port. + +.. code-block:: json + + { + "name": "...", + "protocol": "...", + "port": "...", + "targetPort": "{...}", + "nodePort": "..." + } + +.. _api_field_k8s.io.api.core.v1.ServicePort.name: + +name + (`string `_) The name of this port within the service. This must be a DNS_LABEL. + All ports within a ServiceSpec must have unique names. This maps to + the 'Name' field in EndpointPort objects. + Optional if only one ServicePort is defined on this service. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServicePort.protocol: + +protocol + (`string `_) The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". + Default is TCP. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServicePort.port: + +port + (`int32 `_) The port that will be exposed by this service. + + +.. _api_field_k8s.io.api.core.v1.ServicePort.targetPort: + +targetPort + (:ref:`k8s.io.apimachinery.pkg.util.intstr.IntOrString `) Number or name of the port to access on the pods targeted by the service. + Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + If this is a string, it will be looked up as a named port in the + target Pod's container ports. If this is not specified, the value + of the 'port' field is used (an identity map). + This field is ignored for services with clusterIP=None, and should be + omitted or set equal to the 'port' field. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + +optional + + +.. _api_field_k8s.io.api.core.v1.ServicePort.nodePort: + +nodePort + (`int32 `_) The port on each node on which this service is exposed when type=NodePort or LoadBalancer. + Usually assigned by the system. If specified, it will be allocated to the service + if unused or else creation of the service will fail. + Default is to auto-allocate a port if the ServiceType of this Service requires one. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceProxyOptions: + +k8s.io.api.core.v1.ServiceProxyOptions +-------------------------------------- + +`[k8s.io.api.core.v1.ServiceProxyOptions proto] `_ + +ServiceProxyOptions is the query options to a Service's proxy call. + +.. code-block:: json + + { + "path": "..." + } + +.. _api_field_k8s.io.api.core.v1.ServiceProxyOptions.path: + +path + (`string `_) Path is the part of URLs that include service endpoints, suffixes, + and parameters to use for the current proxy request to service. + For example, the whole request URL is + http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. + Path is _search?q=user:kimchy. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceSpec: + +k8s.io.api.core.v1.ServiceSpec +------------------------------ + +`[k8s.io.api.core.v1.ServiceSpec proto] `_ + +ServiceSpec describes the attributes that a user creates on a service. + +.. code-block:: json + + { + "ports": [], + "selector": "{...}", + "clusterIP": "...", + "type": "...", + "externalIPs": [], + "sessionAffinity": "...", + "loadBalancerIP": "...", + "loadBalancerSourceRanges": [], + "externalName": "...", + "externalTrafficPolicy": "...", + "healthCheckNodePort": "...", + "publishNotReadyAddresses": "...", + "sessionAffinityConfig": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.ports: + +ports + (:ref:`k8s.io.api.core.v1.ServicePort `) The list of ports that are exposed by this service. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + +patchMergeKey=port + +patchStrategy=merge + +listType=map + +listMapKey=port + +listMapKey=protocol + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.selector: + +selector + (map<`string `_, `string `_>) Route service traffic to pods with label keys and values matching this + selector. If empty or not present, the service is assumed to have an + external process managing its endpoints, which Kubernetes will not + modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. + Ignored if type is ExternalName. + More info: https://kubernetes.io/docs/concepts/services-networking/service/ + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.clusterIP: + +clusterIP + (`string `_) clusterIP is the IP address of the service and is usually assigned + randomly by the master. If an address is specified manually and is not in + use by others, it will be allocated to the service; otherwise, creation + of the service will fail. This field can not be changed through updates. + Valid values are "None", empty string (""), or a valid IP address. "None" + can be specified for headless services when proxying is not required. + Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if + type is ExternalName. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.type: + +type + (`string `_) type determines how the Service is exposed. Defaults to ClusterIP. Valid + options are ExternalName, ClusterIP, NodePort, and LoadBalancer. + "ExternalName" maps to the specified externalName. + "ClusterIP" allocates a cluster-internal IP address for load-balancing to + endpoints. Endpoints are determined by the selector or if that is not + specified, by manual construction of an Endpoints object. If clusterIP is + "None", no virtual IP is allocated and the endpoints are published as a + set of endpoints rather than a stable IP. + "NodePort" builds on ClusterIP and allocates a port on every node which + routes to the clusterIP. + "LoadBalancer" builds on NodePort and creates an + external load-balancer (if supported in the current cloud) which routes + to the clusterIP. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.externalIPs: + +externalIPs + (`string `_) externalIPs is a list of IP addresses for which nodes in the cluster + will also accept traffic for this service. These IPs are not managed by + Kubernetes. The user is responsible for ensuring that traffic arrives + at a node with this IP. A common example is external load-balancers + that are not part of the Kubernetes system. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.sessionAffinity: + +sessionAffinity + (`string `_) Supports "ClientIP" and "None". Used to maintain session affinity. + Enable client IP based session affinity. + Must be ClientIP or None. + Defaults to None. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.loadBalancerIP: + +loadBalancerIP + (`string `_) Only applies to Service Type: LoadBalancer + LoadBalancer will get created with the IP specified in this field. + This feature depends on whether the underlying cloud-provider supports specifying + the loadBalancerIP when a load balancer is created. + This field will be ignored if the cloud-provider does not support the feature. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.loadBalancerSourceRanges: + +loadBalancerSourceRanges + (`string `_) If specified and supported by the platform, this will restrict traffic through the cloud-provider + load-balancer will be restricted to the specified client IPs. This field will be ignored if the + cloud-provider does not support the feature." + More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.externalName: + +externalName + (`string `_) externalName is the external reference that kubedns or equivalent will + return as a CNAME record for this service. No proxying will be involved. + Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) + and requires Type to be ExternalName. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.externalTrafficPolicy: + +externalTrafficPolicy + (`string `_) externalTrafficPolicy denotes if this Service desires to route external + traffic to node-local or cluster-wide endpoints. "Local" preserves the + client source IP and avoids a second hop for LoadBalancer and Nodeport + type services, but risks potentially imbalanced traffic spreading. + "Cluster" obscures the client source IP and may cause a second hop to + another node, but should have good overall load-spreading. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.healthCheckNodePort: + +healthCheckNodePort + (`int32 `_) healthCheckNodePort specifies the healthcheck nodePort for the service. + If not specified, HealthCheckNodePort is created by the service api + backend with the allocated nodePort. Will use user-specified nodePort value + if specified by the client. Only effects when Type is set to LoadBalancer + and ExternalTrafficPolicy is set to Local. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.publishNotReadyAddresses: + +publishNotReadyAddresses + (`bool `_) publishNotReadyAddresses, when set to true, indicates that DNS implementations + must publish the notReadyAddresses of subsets for the Endpoints associated with + the Service. The default value is false. + The primary use case for setting this field is to use a StatefulSet's Headless Service + to propagate SRV records for its Pods without respect to their readiness for purpose + of peer discovery. + +optional + + +.. _api_field_k8s.io.api.core.v1.ServiceSpec.sessionAffinityConfig: + +sessionAffinityConfig + (:ref:`k8s.io.api.core.v1.SessionAffinityConfig `) sessionAffinityConfig contains the configurations of session affinity. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.ServiceStatus: + +k8s.io.api.core.v1.ServiceStatus +-------------------------------- + +`[k8s.io.api.core.v1.ServiceStatus proto] `_ + +ServiceStatus represents the current status of a service. + +.. code-block:: json + + { + "loadBalancer": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.ServiceStatus.loadBalancer: + +loadBalancer + (:ref:`k8s.io.api.core.v1.LoadBalancerStatus `) LoadBalancer contains the current status of the load-balancer, + if one is present. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.SessionAffinityConfig: + +k8s.io.api.core.v1.SessionAffinityConfig +---------------------------------------- + +`[k8s.io.api.core.v1.SessionAffinityConfig proto] `_ + +SessionAffinityConfig represents the configurations of session affinity. + +.. code-block:: json + + { + "clientIP": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.SessionAffinityConfig.clientIP: + +clientIP + (:ref:`k8s.io.api.core.v1.ClientIPConfig `) clientIP contains the configurations of Client IP based session affinity. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.StorageOSPersistentVolumeSource: + +k8s.io.api.core.v1.StorageOSPersistentVolumeSource +-------------------------------------------------- + +`[k8s.io.api.core.v1.StorageOSPersistentVolumeSource proto] `_ + +Represents a StorageOS persistent volume resource. + +.. code-block:: json + + { + "volumeName": "...", + "volumeNamespace": "...", + "fsType": "...", + "readOnly": "...", + "secretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.StorageOSPersistentVolumeSource.volumeName: + +volumeName + (`string `_) VolumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. + + +.. _api_field_k8s.io.api.core.v1.StorageOSPersistentVolumeSource.volumeNamespace: + +volumeNamespace + (`string `_) VolumeNamespace specifies the scope of the volume within StorageOS. If no + namespace is specified then the Pod's namespace will be used. This allows the + Kubernetes name scoping to be mirrored within StorageOS for tighter integration. + Set VolumeName to any name to override the default behaviour. + Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. + +optional + + +.. _api_field_k8s.io.api.core.v1.StorageOSPersistentVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + +optional + + +.. _api_field_k8s.io.api.core.v1.StorageOSPersistentVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.StorageOSPersistentVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.ObjectReference `) SecretRef specifies the secret to use for obtaining the StorageOS API + credentials. If not specified, default values will be attempted. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.StorageOSVolumeSource: + +k8s.io.api.core.v1.StorageOSVolumeSource +---------------------------------------- + +`[k8s.io.api.core.v1.StorageOSVolumeSource proto] `_ + +Represents a StorageOS persistent volume resource. + +.. code-block:: json + + { + "volumeName": "...", + "volumeNamespace": "...", + "fsType": "...", + "readOnly": "...", + "secretRef": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.StorageOSVolumeSource.volumeName: + +volumeName + (`string `_) VolumeName is the human-readable name of the StorageOS volume. Volume + names are only unique within a namespace. + + +.. _api_field_k8s.io.api.core.v1.StorageOSVolumeSource.volumeNamespace: + +volumeNamespace + (`string `_) VolumeNamespace specifies the scope of the volume within StorageOS. If no + namespace is specified then the Pod's namespace will be used. This allows the + Kubernetes name scoping to be mirrored within StorageOS for tighter integration. + Set VolumeName to any name to override the default behaviour. + Set to "default" if you are not using namespaces within StorageOS. + Namespaces that do not pre-exist within StorageOS will be created. + +optional + + +.. _api_field_k8s.io.api.core.v1.StorageOSVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + +optional + + +.. _api_field_k8s.io.api.core.v1.StorageOSVolumeSource.readOnly: + +readOnly + (`bool `_) Defaults to false (read/write). ReadOnly here will force + the ReadOnly setting in VolumeMounts. + +optional + + +.. _api_field_k8s.io.api.core.v1.StorageOSVolumeSource.secretRef: + +secretRef + (:ref:`k8s.io.api.core.v1.LocalObjectReference `) SecretRef specifies the secret to use for obtaining the StorageOS API + credentials. If not specified, default values will be attempted. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Sysctl: + +k8s.io.api.core.v1.Sysctl +------------------------- + +`[k8s.io.api.core.v1.Sysctl proto] `_ + +Sysctl defines a kernel parameter to be set + +.. code-block:: json + + { + "name": "...", + "value": "..." + } + +.. _api_field_k8s.io.api.core.v1.Sysctl.name: + +name + (`string `_) Name of a property to set + + +.. _api_field_k8s.io.api.core.v1.Sysctl.value: + +value + (`string `_) Value of a property to set + + + + +.. _api_msg_k8s.io.api.core.v1.TCPSocketAction: + +k8s.io.api.core.v1.TCPSocketAction +---------------------------------- + +`[k8s.io.api.core.v1.TCPSocketAction proto] `_ + +TCPSocketAction describes an action based on opening a socket + +.. code-block:: json + + { + "port": "{...}", + "host": "..." + } + +.. _api_field_k8s.io.api.core.v1.TCPSocketAction.port: + +port + (:ref:`k8s.io.apimachinery.pkg.util.intstr.IntOrString `) Number or name of the port to access on the container. + Number must be in the range 1 to 65535. + Name must be an IANA_SVC_NAME. + + +.. _api_field_k8s.io.api.core.v1.TCPSocketAction.host: + +host + (`string `_) Optional: Host name to connect to, defaults to the pod IP. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Taint: + +k8s.io.api.core.v1.Taint +------------------------ + +`[k8s.io.api.core.v1.Taint proto] `_ + +The node this Taint is attached to has the "effect" on +any pod that does not tolerate the Taint. + +.. code-block:: json + + { + "key": "...", + "value": "...", + "effect": "...", + "timeAdded": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Taint.key: + +key + (`string `_) Required. The taint key to be applied to a node. + + +.. _api_field_k8s.io.api.core.v1.Taint.value: + +value + (`string `_) Required. The taint value corresponding to the taint key. + +optional + + +.. _api_field_k8s.io.api.core.v1.Taint.effect: + +effect + (`string `_) Required. The effect of the taint on pods + that do not tolerate the taint. + Valid effects are NoSchedule, PreferNoSchedule and NoExecute. + + +.. _api_field_k8s.io.api.core.v1.Taint.timeAdded: + +timeAdded + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) TimeAdded represents the time at which the taint was added. + It is only written for NoExecute taints. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.Toleration: + +k8s.io.api.core.v1.Toleration +----------------------------- + +`[k8s.io.api.core.v1.Toleration proto] `_ + +The pod this Toleration is attached to tolerates any taint that matches +the triple using the matching operator . + +.. code-block:: json + + { + "key": "...", + "operator": "...", + "value": "...", + "effect": "...", + "tolerationSeconds": "..." + } + +.. _api_field_k8s.io.api.core.v1.Toleration.key: + +key + (`string `_) Key is the taint key that the toleration applies to. Empty means match all taint keys. + If the key is empty, operator must be Exists; this combination means to match all values and all keys. + +optional + + +.. _api_field_k8s.io.api.core.v1.Toleration.operator: + +operator + (`string `_) Operator represents a key's relationship to the value. + Valid operators are Exists and Equal. Defaults to Equal. + Exists is equivalent to wildcard for value, so that a pod can + tolerate all taints of a particular category. + +optional + + +.. _api_field_k8s.io.api.core.v1.Toleration.value: + +value + (`string `_) Value is the taint value the toleration matches to. + If the operator is Exists, the value should be empty, otherwise just a regular string. + +optional + + +.. _api_field_k8s.io.api.core.v1.Toleration.effect: + +effect + (`string `_) Effect indicates the taint effect to match. Empty means match all taint effects. + When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + +optional + + +.. _api_field_k8s.io.api.core.v1.Toleration.tolerationSeconds: + +tolerationSeconds + (`int64 `_) TolerationSeconds represents the period of time the toleration (which must be + of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, + it is not set, which means tolerate the taint forever (do not evict). Zero and + negative values will be treated as 0 (evict immediately) by the system. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.TopologySelectorLabelRequirement: + +k8s.io.api.core.v1.TopologySelectorLabelRequirement +--------------------------------------------------- + +`[k8s.io.api.core.v1.TopologySelectorLabelRequirement proto] `_ + +A topology selector requirement is a selector that matches given label. +This is an alpha feature and may change in the future. + +.. code-block:: json + + { + "key": "...", + "values": [] + } + +.. _api_field_k8s.io.api.core.v1.TopologySelectorLabelRequirement.key: + +key + (`string `_) The label key that the selector applies to. + + +.. _api_field_k8s.io.api.core.v1.TopologySelectorLabelRequirement.values: + +values + (`string `_) An array of string values. One value must match the label to be selected. + Each entry in Values is ORed. + + + + +.. _api_msg_k8s.io.api.core.v1.TopologySelectorTerm: + +k8s.io.api.core.v1.TopologySelectorTerm +--------------------------------------- + +`[k8s.io.api.core.v1.TopologySelectorTerm proto] `_ + +A topology selector term represents the result of label queries. +A null or empty topology selector term matches no objects. +The requirements of them are ANDed. +It provides a subset of functionality as NodeSelectorTerm. +This is an alpha feature and may change in the future. + +.. code-block:: json + + { + "matchLabelExpressions": [] + } + +.. _api_field_k8s.io.api.core.v1.TopologySelectorTerm.matchLabelExpressions: + +matchLabelExpressions + (:ref:`k8s.io.api.core.v1.TopologySelectorLabelRequirement `) A list of topology selector requirements by labels. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.TypedLocalObjectReference: + +k8s.io.api.core.v1.TypedLocalObjectReference +-------------------------------------------- + +`[k8s.io.api.core.v1.TypedLocalObjectReference proto] `_ + +TypedLocalObjectReference contains enough information to let you locate the +typed referenced object inside the same namespace. + +.. code-block:: json + + { + "apiGroup": "...", + "kind": "...", + "name": "..." + } + +.. _api_field_k8s.io.api.core.v1.TypedLocalObjectReference.apiGroup: + +apiGroup + (`string `_) APIGroup is the group for the resource being referenced. + If APIGroup is not specified, the specified Kind must be in the core API group. + For any other third-party types, APIGroup is required. + +optional + + +.. _api_field_k8s.io.api.core.v1.TypedLocalObjectReference.kind: + +kind + (`string `_) Kind is the type of resource being referenced + + +.. _api_field_k8s.io.api.core.v1.TypedLocalObjectReference.name: + +name + (`string `_) Name is the name of resource being referenced + + + + +.. _api_msg_k8s.io.api.core.v1.Volume: + +k8s.io.api.core.v1.Volume +------------------------- + +`[k8s.io.api.core.v1.Volume proto] `_ + +Volume represents a named volume in a pod that may be accessed by any container in the pod. + +.. code-block:: json + + { + "name": "...", + "volumeSource": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.Volume.name: + +name + (`string `_) Volume's name. + Must be a DNS_LABEL and unique within the pod. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + + +.. _api_field_k8s.io.api.core.v1.Volume.volumeSource: + +volumeSource + (:ref:`k8s.io.api.core.v1.VolumeSource `) VolumeSource represents the location and type of the mounted volume. + If not specified, the Volume is implied to be an EmptyDir. + This implied behavior is deprecated and will be removed in a future version. + + + + +.. _api_msg_k8s.io.api.core.v1.VolumeDevice: + +k8s.io.api.core.v1.VolumeDevice +------------------------------- + +`[k8s.io.api.core.v1.VolumeDevice proto] `_ + +volumeDevice describes a mapping of a raw block device within a container. + +.. code-block:: json + + { + "name": "...", + "devicePath": "..." + } + +.. _api_field_k8s.io.api.core.v1.VolumeDevice.name: + +name + (`string `_) name must match the name of a persistentVolumeClaim in the pod + + +.. _api_field_k8s.io.api.core.v1.VolumeDevice.devicePath: + +devicePath + (`string `_) devicePath is the path inside of the container that the device will be mapped to. + + + + +.. _api_msg_k8s.io.api.core.v1.VolumeMount: + +k8s.io.api.core.v1.VolumeMount +------------------------------ + +`[k8s.io.api.core.v1.VolumeMount proto] `_ + +VolumeMount describes a mounting of a Volume within a container. + +.. code-block:: json + + { + "name": "...", + "readOnly": "...", + "mountPath": "...", + "subPath": "...", + "mountPropagation": "...", + "subPathExpr": "..." + } + +.. _api_field_k8s.io.api.core.v1.VolumeMount.name: + +name + (`string `_) This must match the Name of a Volume. + + +.. _api_field_k8s.io.api.core.v1.VolumeMount.readOnly: + +readOnly + (`bool `_) Mounted read-only if true, read-write otherwise (false or unspecified). + Defaults to false. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeMount.mountPath: + +mountPath + (`string `_) Path within the container at which the volume should be mounted. Must + not contain ':'. + + +.. _api_field_k8s.io.api.core.v1.VolumeMount.subPath: + +subPath + (`string `_) Path within the volume from which the container's volume should be mounted. + Defaults to "" (volume's root). + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeMount.mountPropagation: + +mountPropagation + (`string `_) mountPropagation determines how mounts are propagated from the host + to container and the other way around. + When not set, MountPropagationNone is used. + This field is beta in 1.10. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeMount.subPathExpr: + +subPathExpr + (`string `_) Expanded path within the volume from which the container's volume should be mounted. + Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. + Defaults to "" (volume's root). + SubPathExpr and SubPath are mutually exclusive. + This field is alpha in 1.14. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.VolumeNodeAffinity: + +k8s.io.api.core.v1.VolumeNodeAffinity +------------------------------------- + +`[k8s.io.api.core.v1.VolumeNodeAffinity proto] `_ + +VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. + +.. code-block:: json + + { + "required": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.VolumeNodeAffinity.required: + +required + (:ref:`k8s.io.api.core.v1.NodeSelector `) Required specifies hard node constraints that must be met. + + + + +.. _api_msg_k8s.io.api.core.v1.VolumeProjection: + +k8s.io.api.core.v1.VolumeProjection +----------------------------------- + +`[k8s.io.api.core.v1.VolumeProjection proto] `_ + +Projection that may be projected along with other supported volume types + +.. code-block:: json + + { + "secret": "{...}", + "downwardAPI": "{...}", + "configMap": "{...}", + "serviceAccountToken": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.VolumeProjection.secret: + +secret + (:ref:`k8s.io.api.core.v1.SecretProjection `) information about the secret data to project + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeProjection.downwardAPI: + +downwardAPI + (:ref:`k8s.io.api.core.v1.DownwardAPIProjection `) information about the downwardAPI data to project + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeProjection.configMap: + +configMap + (:ref:`k8s.io.api.core.v1.ConfigMapProjection `) information about the configMap data to project + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeProjection.serviceAccountToken: + +serviceAccountToken + (:ref:`k8s.io.api.core.v1.ServiceAccountTokenProjection `) information about the serviceAccountToken data to project + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.VolumeSource: + +k8s.io.api.core.v1.VolumeSource +------------------------------- + +`[k8s.io.api.core.v1.VolumeSource proto] `_ + +Represents the source of a volume to mount. +Only one of its members may be specified. + +.. code-block:: json + + { + "hostPath": "{...}", + "emptyDir": "{...}", + "gcePersistentDisk": "{...}", + "awsElasticBlockStore": "{...}", + "gitRepo": "{...}", + "secret": "{...}", + "nfs": "{...}", + "iscsi": "{...}", + "glusterfs": "{...}", + "persistentVolumeClaim": "{...}", + "rbd": "{...}", + "flexVolume": "{...}", + "cinder": "{...}", + "cephfs": "{...}", + "flocker": "{...}", + "downwardAPI": "{...}", + "fc": "{...}", + "azureFile": "{...}", + "configMap": "{...}", + "vsphereVolume": "{...}", + "quobyte": "{...}", + "azureDisk": "{...}", + "photonPersistentDisk": "{...}", + "projected": "{...}", + "portworxVolume": "{...}", + "scaleIO": "{...}", + "storageos": "{...}", + "csi": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.VolumeSource.hostPath: + +hostPath + (:ref:`k8s.io.api.core.v1.HostPathVolumeSource `) HostPath represents a pre-existing file or directory on the host + machine that is directly exposed to the container. This is generally + used for system agents or other privileged things that are allowed + to see the host machine. Most containers will NOT need this. + More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + --- + TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not + mount host directories as read/write. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.emptyDir: + +emptyDir + (:ref:`k8s.io.api.core.v1.EmptyDirVolumeSource `) EmptyDir represents a temporary directory that shares a pod's lifetime. + More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.gcePersistentDisk: + +gcePersistentDisk + (:ref:`k8s.io.api.core.v1.GCEPersistentDiskVolumeSource `) GCEPersistentDisk represents a GCE Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.awsElasticBlockStore: + +awsElasticBlockStore + (:ref:`k8s.io.api.core.v1.AWSElasticBlockStoreVolumeSource `) AWSElasticBlockStore represents an AWS Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.gitRepo: + +gitRepo + (:ref:`k8s.io.api.core.v1.GitRepoVolumeSource `) GitRepo represents a git repository at a particular revision. + DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an + EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir + into the Pod's container. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.secret: + +secret + (:ref:`k8s.io.api.core.v1.SecretVolumeSource `) Secret represents a secret that should populate this volume. + More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.nfs: + +nfs + (:ref:`k8s.io.api.core.v1.NFSVolumeSource `) NFS represents an NFS mount on the host that shares a pod's lifetime + More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.iscsi: + +iscsi + (:ref:`k8s.io.api.core.v1.ISCSIVolumeSource `) ISCSI represents an ISCSI Disk resource that is attached to a + kubelet's host machine and then exposed to the pod. + More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.glusterfs: + +glusterfs + (:ref:`k8s.io.api.core.v1.GlusterfsVolumeSource `) Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. + More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.persistentVolumeClaim: + +persistentVolumeClaim + (:ref:`k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource `) PersistentVolumeClaimVolumeSource represents a reference to a + PersistentVolumeClaim in the same namespace. + More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.rbd: + +rbd + (:ref:`k8s.io.api.core.v1.RBDVolumeSource `) RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. + More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.flexVolume: + +flexVolume + (:ref:`k8s.io.api.core.v1.FlexVolumeSource `) FlexVolume represents a generic volume resource that is + provisioned/attached using an exec based plugin. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.cinder: + +cinder + (:ref:`k8s.io.api.core.v1.CinderVolumeSource `) Cinder represents a cinder volume attached and mounted on kubelets host machine + More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.cephfs: + +cephfs + (:ref:`k8s.io.api.core.v1.CephFSVolumeSource `) CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.flocker: + +flocker + (:ref:`k8s.io.api.core.v1.FlockerVolumeSource `) Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.downwardAPI: + +downwardAPI + (:ref:`k8s.io.api.core.v1.DownwardAPIVolumeSource `) DownwardAPI represents downward API about the pod that should populate this volume + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.fc: + +fc + (:ref:`k8s.io.api.core.v1.FCVolumeSource `) FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.azureFile: + +azureFile + (:ref:`k8s.io.api.core.v1.AzureFileVolumeSource `) AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.configMap: + +configMap + (:ref:`k8s.io.api.core.v1.ConfigMapVolumeSource `) ConfigMap represents a configMap that should populate this volume + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.vsphereVolume: + +vsphereVolume + (:ref:`k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource `) VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.quobyte: + +quobyte + (:ref:`k8s.io.api.core.v1.QuobyteVolumeSource `) Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.azureDisk: + +azureDisk + (:ref:`k8s.io.api.core.v1.AzureDiskVolumeSource `) AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.photonPersistentDisk: + +photonPersistentDisk + (:ref:`k8s.io.api.core.v1.PhotonPersistentDiskVolumeSource `) PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.projected: + +projected + (:ref:`k8s.io.api.core.v1.ProjectedVolumeSource `) Items for all in one resources secrets, configmaps, and downward API + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.portworxVolume: + +portworxVolume + (:ref:`k8s.io.api.core.v1.PortworxVolumeSource `) PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.scaleIO: + +scaleIO + (:ref:`k8s.io.api.core.v1.ScaleIOVolumeSource `) ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.storageos: + +storageos + (:ref:`k8s.io.api.core.v1.StorageOSVolumeSource `) StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + +optional + + +.. _api_field_k8s.io.api.core.v1.VolumeSource.csi: + +csi + (:ref:`k8s.io.api.core.v1.CSIVolumeSource `) CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource: + +k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource +------------------------------------------------- + +`[k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource proto] `_ + +Represents a vSphere volume resource. + +.. code-block:: json + + { + "volumePath": "...", + "fsType": "...", + "storagePolicyName": "...", + "storagePolicyID": "..." + } + +.. _api_field_k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource.volumePath: + +volumePath + (`string `_) Path that identifies vSphere volume vmdk + + +.. _api_field_k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource.fsType: + +fsType + (`string `_) Filesystem type to mount. + Must be a filesystem type supported by the host operating system. + Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + +optional + + +.. _api_field_k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource.storagePolicyName: + +storagePolicyName + (`string `_) Storage Policy Based Management (SPBM) profile name. + +optional + + +.. _api_field_k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource.storagePolicyID: + +storagePolicyID + (`string `_) Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + +optional + + + + +.. _api_msg_k8s.io.api.core.v1.WeightedPodAffinityTerm: + +k8s.io.api.core.v1.WeightedPodAffinityTerm +------------------------------------------ + +`[k8s.io.api.core.v1.WeightedPodAffinityTerm proto] `_ + +The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + +.. code-block:: json + + { + "weight": "...", + "podAffinityTerm": "{...}" + } + +.. _api_field_k8s.io.api.core.v1.WeightedPodAffinityTerm.weight: + +weight + (`int32 `_) weight associated with matching the corresponding podAffinityTerm, + in the range 1-100. + + +.. _api_field_k8s.io.api.core.v1.WeightedPodAffinityTerm.podAffinityTerm: + +podAffinityTerm + (:ref:`k8s.io.api.core.v1.PodAffinityTerm `) Required. A pod affinity term, associated with the corresponding weight. + + + diff --git a/flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/index.rst new file mode 100644 index 0000000000..23613b6ea7 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/api/core/v1/index.rst @@ -0,0 +1,9 @@ +v1 +== + +.. toctree:: + :maxdepth: 1 + :caption: v1 + :name: v1toc + + generated.proto diff --git a/flyteidl/gen/pb-protodoc/k8s.io/api/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/api/index.rst new file mode 100644 index 0000000000..f29fb341ae --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/api/index.rst @@ -0,0 +1,9 @@ +api +=== + +.. toctree:: + :maxdepth: 1 + :caption: api + :name: apitoc + + core/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/index.rst new file mode 100644 index 0000000000..6bc8a6b4ba --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/index.rst @@ -0,0 +1,9 @@ +apimachinery +============ + +.. toctree:: + :maxdepth: 1 + :caption: apimachinery + :name: apimachinerytoc + + pkg/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/index.rst new file mode 100644 index 0000000000..5fcae966f9 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/index.rst @@ -0,0 +1,9 @@ +api +=== + +.. toctree:: + :maxdepth: 1 + :caption: api + :name: apitoc + + resource/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/generated.proto.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/generated.proto.rst new file mode 100644 index 0000000000..1a32e87f27 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/generated.proto.rst @@ -0,0 +1,99 @@ +.. _api_file_k8s.io/apimachinery/pkg/api/resource/generated.proto: + +generated.proto +==================================================== + + +opyright The Kubernetes Authors. + +icensed under the Apache License, Version 2.0 (the "License"); +ou may not use this file except in compliance with the License. +ou may obtain a copy of the License at + +ttp://www.apache.org/licenses/LICENSE-2.0 + +nless required by applicable law or agreed to in writing, software +istributed under the License is distributed on an "AS IS" BASIS, +ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +ee the License for the specific language governing permissions and +imitations under the License. +This file was autogenerated by go-to-protobuf. Do not edit it manually! + +.. _api_msg_k8s.io.apimachinery.pkg.api.resource.Quantity: + +k8s.io.apimachinery.pkg.api.resource.Quantity +--------------------------------------------- + +`[k8s.io.apimachinery.pkg.api.resource.Quantity proto] `_ + +Quantity is a fixed-point representation of a number. +It provides convenient marshaling/unmarshaling in JSON and YAML, +in addition to String() and Int64() accessors. + +The serialization format is: + + ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 + ::= | + ::= | . | . | . + ::= "+" | "-" + ::= | + ::= | | + ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + +No matter which of the three exponent forms is used, no quantity may represent +a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal +places. Numbers larger or more precise will be capped or rounded up. +(E.g.: 0.1m will rounded up to 1m.) +This may be extended in the future if we require larger or smaller quantities. + +When a Quantity is parsed from a string, it will remember the type of suffix +it had, and will use the same type again when it is serialized. + +Before serializing, Quantity will be put in "canonical form". +This means that Exponent/suffix will be adjusted up or down (with a +corresponding increase or decrease in Mantissa) such that: + a. No precision is lost + b. No fractional digits will be emitted + c. The exponent (or suffix) is as large as possible. +The sign will be omitted unless the number is negative. + +Examples: + 1.5 will be serialized as "1500m" + 1.5Gi will be serialized as "1536Mi" + +Note that the quantity will NEVER be internally represented by a +floating point number. That is the whole point of this exercise. + +Non-canonical values will still parse as long as they are well formed, +but will be re-emitted in their canonical form. (So always use canonical +form, or don't diff.) + +This format is intended to make it difficult to use these numbers without +writing some sort of special handling code in the hopes that that will +cause implementors to also use a fixed point implementation. + ++protobuf=true ++protobuf.embed=string ++protobuf.options.marshal=false ++protobuf.options.(gogoproto.goproto_stringer)=false ++k8s:deepcopy-gen=true ++k8s:openapi-gen=true + +.. code-block:: json + + { + "string": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.api.resource.Quantity.string: + +string + (`string `_) + + diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/index.rst new file mode 100644 index 0000000000..7c8295fec3 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/api/resource/index.rst @@ -0,0 +1,9 @@ +resource +======== + +.. toctree:: + :maxdepth: 1 + :caption: resource + :name: resourcetoc + + generated.proto diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/index.rst new file mode 100644 index 0000000000..a06d0ee673 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/index.rst @@ -0,0 +1,9 @@ +apis +==== + +.. toctree:: + :maxdepth: 1 + :caption: apis + :name: apistoc + + meta/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/index.rst new file mode 100644 index 0000000000..730d468df0 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/index.rst @@ -0,0 +1,9 @@ +meta +==== + +.. toctree:: + :maxdepth: 1 + :caption: meta + :name: metatoc + + v1/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto.rst new file mode 100644 index 0000000000..3e485f655b --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto.rst @@ -0,0 +1,1991 @@ +.. _api_file_k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto: + +generated.proto +==================================================== + + +opyright The Kubernetes Authors. + +icensed under the Apache License, Version 2.0 (the "License"); +ou may not use this file except in compliance with the License. +ou may obtain a copy of the License at + +ttp://www.apache.org/licenses/LICENSE-2.0 + +nless required by applicable law or agreed to in writing, software +istributed under the License is distributed on an "AS IS" BASIS, +ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +ee the License for the specific language governing permissions and +imitations under the License. +This file was autogenerated by go-to-protobuf. Do not edit it manually! + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup: + +k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup +--------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup proto] `_ + +APIGroup contains the name, the supported versions, and the preferred version +of a group. + +.. code-block:: json + + { + "name": "...", + "versions": [], + "preferredVersion": "{...}", + "serverAddressByClientCIDRs": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup.name: + +name + (`string `_) name is the name of the group. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup.versions: + +versions + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery `) versions are the versions supported in this group. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup.preferredVersion: + +preferredVersion + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery `) preferredVersion is the version preferred by the API server, which + probably is the storage version. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup.serverAddressByClientCIDRs: + +serverAddressByClientCIDRs + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR `) a map of client CIDR to server address that is serving this group. + This is to help clients reach servers in the most network-efficient way possible. + Clients can use the appropriate server address as per the CIDR that they match. + In case of multiple matches, clients should use the longest matching CIDR. + The server returns only those CIDRs that it thinks that the client can match. + For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList: + +k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList +------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList proto] `_ + +APIGroupList is a list of APIGroup, to allow clients to discover the API at +/apis. + +.. code-block:: json + + { + "groups": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList.groups: + +groups + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup `) groups is a list of APIGroup. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource: + +k8s.io.apimachinery.pkg.apis.meta.v1.APIResource +------------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.APIResource proto] `_ + +APIResource specifies the name of a resource and whether it is namespaced. + +.. code-block:: json + + { + "name": "...", + "singularName": "...", + "namespaced": "...", + "group": "...", + "version": "...", + "kind": "...", + "verbs": "{...}", + "shortNames": [], + "categories": [], + "storageVersionHash": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.name: + +name + (`string `_) name is the plural name of the resource. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.singularName: + +singularName + (`string `_) singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. + The singularName is more correct for reporting status on a single item and both singular and plural are allowed + from the kubectl CLI interface. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.namespaced: + +namespaced + (`bool `_) namespaced indicates if a resource is namespaced or not. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.group: + +group + (`string `_) group is the preferred group of the resource. Empty implies the group of the containing resource list. + For subresources, this may have a different value, for example: Scale". + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.version: + +version + (`string `_) version is the preferred version of the resource. Empty implies the version of the containing resource list + For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.kind: + +kind + (`string `_) kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.verbs: + +verbs + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Verbs `) verbs is a list of supported kube verbs (this includes get, list, watch, create, + update, patch, delete, deletecollection, and proxy) + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.shortNames: + +shortNames + (`string `_) shortNames is a list of suggested short names of the resource. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.categories: + +categories + (`string `_) categories is a list of the grouped resources this resource belongs to (e.g. 'all') + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResource.storageVersionHash: + +storageVersionHash + (`string `_) The hash value of the storage version, the version this resource is + converted to when written to the data store. Value must be treated + as opaque by clients. Only equality comparison on the value is valid. + This is an alpha feature and may change or be removed in the future. + The field is populated by the apiserver only if the + StorageVersionHash feature gate is enabled. + This field will remain optional even if it graduates. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList: + +k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList +---------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList proto] `_ + +APIResourceList is a list of APIResource, it is used to expose the name of the +resources supported in a specific group and version, and if the resource +is namespaced. + +.. code-block:: json + + { + "groupVersion": "...", + "resources": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList.groupVersion: + +groupVersion + (`string `_) groupVersion is the group and version this APIResourceList is for. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList.resources: + +resources + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.APIResource `) resources contains the name of the resources and if they are namespaced. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions: + +k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions +------------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions proto] `_ + +APIVersions lists the versions that are available, to allow clients to +discover the API at /api, which is the root path of the legacy v1 API. + ++protobuf.options.(gogoproto.goproto_stringer)=false ++k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +.. code-block:: json + + { + "versions": [], + "serverAddressByClientCIDRs": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions.versions: + +versions + (`string `_) versions are the api versions that are available. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.APIVersions.serverAddressByClientCIDRs: + +serverAddressByClientCIDRs + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR `) a map of client CIDR to server address that is serving this group. + This is to help clients reach servers in the most network-efficient way possible. + Clients can use the appropriate server address as per the CIDR that they match. + In case of multiple matches, clients should use the longest matching CIDR. + The server returns only those CIDRs that it thinks that the client can match. + For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. + Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions proto] `_ + +CreateOptions may be provided when creating an API object. + +.. code-block:: json + + { + "dryRun": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.CreateOptions.dryRun: + +dryRun + (`string `_) When present, indicates that modifications should not be + persisted. An invalid or unrecognized dryRun directive will + result in an error response and no further processing of the + request. Valid values are: + - All: all dry run stages will be processed + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions proto] `_ + +DeleteOptions may be provided when deleting an API object. + +.. code-block:: json + + { + "gracePeriodSeconds": "...", + "preconditions": "{...}", + "orphanDependents": "...", + "propagationPolicy": "...", + "dryRun": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions.gracePeriodSeconds: + +gracePeriodSeconds + (`int64 `_) The duration in seconds before the object should be deleted. Value must be non-negative integer. + The value zero indicates delete immediately. If this value is nil, the default grace period for the + specified type will be used. + Defaults to a per object value if not specified. zero means delete immediately. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions.preconditions: + +preconditions + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions `) Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be + returned. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions.orphanDependents: + +orphanDependents + (`bool `_) Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. + Should the dependent objects be orphaned. If true/false, the "orphan" + finalizer will be added to/removed from the object's finalizers list. + Either this field or PropagationPolicy may be set, but not both. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions.propagationPolicy: + +propagationPolicy + (`string `_) Whether and how garbage collection will be performed. + Either this field or OrphanDependents may be set, but not both. + The default policy is decided by the existing finalizer set in the + metadata.finalizers and the resource-specific default policy. + Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - + allow the garbage collector to delete the dependents in the background; + 'Foreground' - a cascading policy that deletes all dependents in the + foreground. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions.dryRun: + +dryRun + (`string `_) When present, indicates that modifications should not be + persisted. An invalid or unrecognized dryRun directive will + result in an error response and no further processing of the + request. Valid values are: + - All: all dry run stages will be processed + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Duration: + +k8s.io.apimachinery.pkg.apis.meta.v1.Duration +--------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Duration proto] `_ + +Duration is a wrapper around time.Duration which supports correct +marshaling to YAML and JSON. In particular, it marshals into strings, which +can be used as map keys in json. + +.. code-block:: json + + { + "duration": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Duration.duration: + +duration + (`int64 `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions proto] `_ + +ExportOptions is the query options to the standard REST get call. +Deprecated. Planned for removal in 1.18. + +.. code-block:: json + + { + "export": "...", + "exact": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions.export: + +export + (`bool `_) Should this value be exported. Export strips fields that a user can not specify. + Deprecated. Planned for removal in 1.18. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ExportOptions.exact: + +exact + (`bool `_) Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. + Deprecated. Planned for removal in 1.18. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Fields: + +k8s.io.apimachinery.pkg.apis.meta.v1.Fields +------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Fields proto] `_ + +Fields stores a set of fields in a data structure like a Trie. +To understand how this is used, see: https://github.com/kubernetes-sigs/structured-merge-diff + +.. code-block:: json + + { + "map": "{...}" + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Fields.map: + +map + (map<`string `_, :ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Fields `>) Map stores a set of fields in a data structure like a Trie. + + Each key is either a '.' representing the field itself, and will always map to an empty set, + or a string representing a sub-field or item. The string will follow one of these four formats: + 'f:', where is the name of a field in a struct, or key in a map + 'v:', where is the exact json formatted value of a list item + 'i:', where is position of a item in a list + 'k:', where is a map of a list item's key fields to their unique values + If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/internal + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions +----------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions proto] `_ + +GetOptions is the standard query options to the standard REST get call. + +.. code-block:: json + + { + "resourceVersion": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GetOptions.resourceVersion: + +resourceVersion + (`string `_) When specified: + - if unset, then the result is returned from remote storage based on quorum-read flag; + - if it's 0, then we simply return what we currently have in cache, no guarantee; + - if set to non zero, then the result is at least as fresh as given rv. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind: + +k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind +---------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind proto] `_ + +GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying +concepts during lookup stages without having partially valid types + ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "group": "...", + "kind": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind.group: + +group + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupKind.kind: + +kind + (`string `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource: + +k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource proto] `_ + +GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying +concepts during lookup stages without having partially valid types + ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "group": "...", + "resource": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource.group: + +group + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource.resource: + +resource + (`string `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion: + +k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion +------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion proto] `_ + +GroupVersion contains the "group" and the "version", which uniquely identifies the API. + ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "group": "...", + "version": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion.group: + +group + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersion.version: + +version + (`string `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery: + +k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery +------------------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery proto] `_ + +GroupVersion contains the "group/version" and "version" string of a version. +It is made a struct to keep extensibility. + +.. code-block:: json + + { + "groupVersion": "...", + "version": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery.groupVersion: + +groupVersion + (`string `_) groupVersion specifies the API group and version in the form "group/version" + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery.version: + +version + (`string `_) version specifies the version in the form of "version". This is to save + the clients the trouble of splitting the GroupVersion. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind: + +k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind +----------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind proto] `_ + +GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion +to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling + ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "group": "...", + "version": "...", + "kind": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind.group: + +group + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind.version: + +version + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind.kind: + +kind + (`string `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource: + +k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource +--------------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource proto] `_ + +GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion +to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling + ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "group": "...", + "version": "...", + "resource": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource.group: + +group + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource.version: + +version + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource.resource: + +resource + (`string `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Initializer: + +k8s.io.apimachinery.pkg.apis.meta.v1.Initializer +------------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Initializer proto] `_ + +Initializer is information about an initializer that has not yet completed. + +.. code-block:: json + + { + "name": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Initializer.name: + +name + (`string `_) name of the process that is responsible for initializing this object. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Initializers: + +k8s.io.apimachinery.pkg.apis.meta.v1.Initializers +------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Initializers proto] `_ + +Initializers tracks the progress of initialization. + +.. code-block:: json + + { + "pending": [], + "result": "{...}" + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Initializers.pending: + +pending + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Initializer `) Pending is a list of initializers that must execute in order before this object is visible. + When the last pending initializer is removed, and no failing result is set, the initializers + struct will be set to nil and the object is considered as initialized and visible to all + clients. + +patchMergeKey=name + +patchStrategy=merge + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Initializers.result: + +result + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Status `) If result is set with the Failure field, the object will be persisted to storage and then deleted, + ensuring that other clients can observe the deletion. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector: + +k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector proto] `_ + +A label selector is a label query over a set of resources. The result of matchLabels and +matchExpressions are ANDed. An empty label selector matches all objects. A null +label selector matches no objects. + +.. code-block:: json + + { + "matchLabels": "{...}", + "matchExpressions": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector.matchLabels: + +matchLabels + (map<`string `_, `string `_>) matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels + map is equivalent to an element of matchExpressions, whose key field is "key", the + operator is "In", and the values array contains only "value". The requirements are ANDed. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector.matchExpressions: + +matchExpressions + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement `) matchExpressions is a list of label selector requirements. The requirements are ANDed. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement: + +k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement +------------------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement proto] `_ + +A label selector requirement is a selector that contains values, a key, and an operator that +relates the key and values. + +.. code-block:: json + + { + "key": "...", + "operator": "...", + "values": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement.key: + +key + (`string `_) key is the label key that the selector applies to. + +patchMergeKey=key + +patchStrategy=merge + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement.operator: + +operator + (`string `_) operator represents a key's relationship to a set of values. + Valid operators are In, NotIn, Exists and DoesNotExist. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement.values: + +values + (`string `_) values is an array of string values. If the operator is In or NotIn, + the values array must be non-empty. If the operator is Exists or DoesNotExist, + the values array must be empty. This array is replaced during a strategic + merge patch. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.List: + +k8s.io.apimachinery.pkg.apis.meta.v1.List +----------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.List proto] `_ + +List holds a list of objects, which may not be known by the server. + +.. code-block:: json + + { + "metadata": "{...}", + "items": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.List.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.List.items: + +items + (:ref:`k8s.io.apimachinery.pkg.runtime.RawExtension `) List of objects + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta: + +k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta +--------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta proto] `_ + +ListMeta describes metadata that synthetic resources must have, including lists and +various status objects. A resource may have only one of {ObjectMeta, ListMeta}. + +.. code-block:: json + + { + "selfLink": "...", + "resourceVersion": "...", + "continue": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta.selfLink: + +selfLink + (`string `_) selfLink is a URL representing this object. + Populated by the system. + Read-only. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta.resourceVersion: + +resourceVersion + (`string `_) String that identifies the server's internal version of this object that + can be used by clients to determine when objects have changed. + Value must be treated as opaque by clients and passed unmodified back to the server. + Populated by the system. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta.continue: + +continue + (`string `_) continue may be set if the user set a limit on the number of items returned, and indicates that + the server has more data available. The value is opaque and may be used to issue another request + to the endpoint that served this list to retrieve the next set of available objects. Continuing a + consistent list may not be possible if the server configuration has changed or more than a few + minutes have passed. The resourceVersion field returned when using this continue value will be + identical to the value in the first response, unless you have received this token from an error + message. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions +------------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions proto] `_ + +ListOptions is the query options to a standard REST list call. + +.. code-block:: json + + { + "labelSelector": "...", + "fieldSelector": "...", + "watch": "...", + "resourceVersion": "...", + "timeoutSeconds": "...", + "limit": "...", + "continue": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.labelSelector: + +labelSelector + (`string `_) A selector to restrict the list of returned objects by their labels. + Defaults to everything. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.fieldSelector: + +fieldSelector + (`string `_) A selector to restrict the list of returned objects by their fields. + Defaults to everything. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.watch: + +watch + (`bool `_) Watch for changes to the described resources and return them as a stream of + add, update, and remove notifications. Specify resourceVersion. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.resourceVersion: + +resourceVersion + (`string `_) When specified with a watch call, shows changes that occur after that particular version of a resource. + Defaults to changes from the beginning of history. + When specified for list: + - if unset, then the result is returned from remote storage based on quorum-read flag; + - if it's 0, then we simply return what we currently have in cache, no guarantee; + - if set to non zero, then the result is at least as fresh as given rv. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.timeoutSeconds: + +timeoutSeconds + (`int64 `_) Timeout for the list/watch call. + This limits the duration of the call, regardless of any activity or inactivity. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.limit: + +limit + (`int64 `_) limit is a maximum number of responses to return for a list call. If more items exist, the + server will set the `continue` field on the list metadata to a value that can be used with the + same initial query to retrieve the next set of results. Setting a limit may return fewer than + the requested amount of items (up to zero items) in the event all requested objects are + filtered out and clients should only use the presence of the continue field to determine whether + more results are available. Servers may choose not to support the limit argument and will return + all of the available results. If limit is specified and the continue field is empty, clients may + assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing + a single list call without a limit - that is, no objects created, modified, or deleted after the + first request is issued will be included in any subsequent continued requests. This is sometimes + referred to as a consistent snapshot, and ensures that a client that is using limit to receive + smaller chunks of a very large result can ensure they see all possible objects. If objects are + updated during a chunked list the version of the object that was present at the time the first list + result was calculated is returned. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions.continue: + +continue + (`string `_) The continue option should be set when retrieving more results from the server. Since this value is + server defined, clients may only use the continue value from a previous query result with identical + query parameters (except for the value of continue) and the server may reject a continue value it + does not recognize. If the specified continue value is no longer valid whether due to expiration + (generally five to fifteen minutes) or a configuration change on the server, the server will + respond with a 410 ResourceExpired error together with a continue token. If the client needs a + consistent list, it must restart their list without the continue field. Otherwise, the client may + send another list request with the token received with the 410 error, the server will respond with + a list starting from the next key, but from the latest snapshot, which is inconsistent from the + previous list results - objects that are created, modified, or deleted after the first list request + will be included in the response, as long as their keys are after the "next key". + + This field is not supported when watch is true. Clients may start a watch from the last + resourceVersion value returned by the server and not miss any modifications. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry: + +k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry +------------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry proto] `_ + +ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource +that the fieldset applies to. + +.. code-block:: json + + { + "manager": "...", + "operation": "...", + "apiVersion": "...", + "time": "{...}", + "fields": "{...}" + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry.manager: + +manager + (`string `_) Manager is an identifier of the workflow managing these fields. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry.operation: + +operation + (`string `_) Operation is the type of operation which lead to this ManagedFieldsEntry being created. + The only valid values for this field are 'Apply' and 'Update'. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry.apiVersion: + +apiVersion + (`string `_) APIVersion defines the version of this resource that this field set + applies to. The format is "group/version" just like the top-level + APIVersion field. It is necessary to track the version of a field + set because it cannot be automatically converted. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry.time: + +time + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry.fields: + +fields + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Fields `) Fields identifies a set of fields. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime: + +k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime +---------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime proto] `_ + +MicroTime is version of Time with microsecond level precision. + ++protobuf.options.marshal=false ++protobuf.as=Timestamp ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "seconds": "...", + "nanos": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime.seconds: + +seconds + (`int64 `_) Represents seconds of UTC time since Unix epoch + 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + 9999-12-31T23:59:59Z inclusive. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime.nanos: + +nanos + (`int32 `_) Non-negative fractions of a second at nanosecond resolution. Negative + second values with fractions must still have non-negative nanos values + that count forward in time. Must be from 0 to 999,999,999 + inclusive. This field may be limited in precision depending on context. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta: + +k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta +----------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta proto] `_ + +ObjectMeta is metadata that all persisted resources must have, which includes all objects +users must create. + +.. code-block:: json + + { + "name": "...", + "generateName": "...", + "namespace": "...", + "selfLink": "...", + "uid": "...", + "resourceVersion": "...", + "generation": "...", + "creationTimestamp": "{...}", + "deletionTimestamp": "{...}", + "deletionGracePeriodSeconds": "...", + "labels": "{...}", + "annotations": "{...}", + "ownerReferences": [], + "initializers": "{...}", + "finalizers": [], + "clusterName": "...", + "managedFields": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.name: + +name + (`string `_) Name must be unique within a namespace. Is required when creating resources, although + some resources may allow a client to request the generation of an appropriate name + automatically. Name is primarily intended for creation idempotence and configuration + definition. + Cannot be updated. + More info: http://kubernetes.io/docs/user-guide/identifiers#names + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.generateName: + +generateName + (`string `_) GenerateName is an optional prefix, used by the server, to generate a unique + name ONLY IF the Name field has not been provided. + If this field is used, the name returned to the client will be different + than the name passed. This value will also be combined with a unique suffix. + The provided value has the same validation rules as the Name field, + and may be truncated by the length of the suffix required to make the value + unique on the server. + + If this field is specified and the generated name exists, the server will + NOT return a 409 - instead, it will either return 201 Created or 500 with Reason + ServerTimeout indicating a unique name could not be found in the time allotted, and the client + should retry (optionally after the time indicated in the Retry-After header). + + Applied only if Name is not specified. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.namespace: + +namespace + (`string `_) Namespace defines the space within each name must be unique. An empty namespace is + equivalent to the "default" namespace, but "default" is the canonical representation. + Not all objects are required to be scoped to a namespace - the value of this field for + those objects will be empty. + + Must be a DNS_LABEL. + Cannot be updated. + More info: http://kubernetes.io/docs/user-guide/namespaces + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.selfLink: + +selfLink + (`string `_) SelfLink is a URL representing this object. + Populated by the system. + Read-only. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.uid: + +uid + (`string `_) UID is the unique in time and space value for this object. It is typically generated by + the server on successful creation of a resource and is not allowed to change on PUT + operations. + + Populated by the system. + Read-only. + More info: http://kubernetes.io/docs/user-guide/identifiers#uids + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.resourceVersion: + +resourceVersion + (`string `_) An opaque value that represents the internal version of this object that can + be used by clients to determine when objects have changed. May be used for optimistic + concurrency, change detection, and the watch operation on a resource or set of resources. + Clients must treat these values as opaque and passed unmodified back to the server. + They may only be valid for a particular resource or set of resources. + + Populated by the system. + Read-only. + Value must be treated as opaque by clients and . + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.generation: + +generation + (`int64 `_) A sequence number representing a specific generation of the desired state. + Populated by the system. Read-only. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.creationTimestamp: + +creationTimestamp + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) CreationTimestamp is a timestamp representing the server time when this object was + created. It is not guaranteed to be set in happens-before order across separate operations. + Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. + Read-only. + Null for lists. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.deletionTimestamp: + +deletionTimestamp + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Time `) DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + field is set by the server when a graceful deletion is requested by the user, and is not + directly settable by a client. The resource is expected to be deleted (no longer visible + from resource lists, and not reachable by name) after the time in this field, once the + finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. + Once the deletionTimestamp is set, this value may not be unset or be set further into the + future, although it may be shortened or the resource may be deleted prior to this time. + For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react + by sending a graceful termination signal to the containers in the pod. After that 30 seconds, + the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, + remove the pod from the API. In the presence of network partitions, this object may still + exist after this timestamp, until an administrator or automated process can determine the + resource is fully terminated. + If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.deletionGracePeriodSeconds: + +deletionGracePeriodSeconds + (`int64 `_) Number of seconds allowed for this object to gracefully terminate before + it will be removed from the system. Only set when deletionTimestamp is also set. + May only be shortened. + Read-only. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.labels: + +labels + (map<`string `_, `string `_>) Map of string keys and values that can be used to organize and categorize + (scope and select) objects. May match selectors of replication controllers + and services. + More info: http://kubernetes.io/docs/user-guide/labels + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.annotations: + +annotations + (map<`string `_, `string `_>) Annotations is an unstructured key value map stored with a resource that may be + set by external tools to store and retrieve arbitrary metadata. They are not + queryable and should be preserved when modifying objects. + More info: http://kubernetes.io/docs/user-guide/annotations + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.ownerReferences: + +ownerReferences + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference `) List of objects depended by this object. If ALL objects in the list have + been deleted, this object will be garbage collected. If this object is managed by a controller, + then an entry in this list will point to this controller, with the controller field set to true. + There cannot be more than one managing controller. + +optional + +patchMergeKey=uid + +patchStrategy=merge + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.initializers: + +initializers + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.Initializers `) An initializer is a controller which enforces some system invariant at object creation time. + This field is a list of initializers that have not yet acted on this object. If nil or empty, + this object has been completely initialized. Otherwise, the object is considered uninitialized + and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to + observe uninitialized objects. + + When an object is created, the system will populate this list with the current set of initializers. + Only privileged users may set or modify this list. Once it is empty, it may not be modified further + by any user. + + DEPRECATED - initializers are an alpha field and will be removed in v1.15. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.finalizers: + +finalizers + (`string `_) Must be empty before the object is deleted from the registry. Each entry + is an identifier for the responsible component that will remove the entry + from the list. If the deletionTimestamp of the object is non-nil, entries + in this list can only be removed. + +optional + +patchStrategy=merge + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.clusterName: + +clusterName + (`string `_) The name of the cluster which the object belongs to. + This is used to distinguish resources with same name and namespace in different clusters. + This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta.managedFields: + +managedFields + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry `) ManagedFields maps workflow-id and version to the set of fields + that are managed by that workflow. This is mostly for internal + housekeeping, and users typically shouldn't need to set or + understand this field. A workflow can be the user's name, a + controller's name, or the name of a specific apply path like + "ci-cd". The set of fields is always in the version that the + workflow used when modifying the object. + + This field is alpha and can be changed or removed without notice. + + +optional + + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference: + +k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference +--------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference proto] `_ + +OwnerReference contains enough information to let you identify an owning +object. An owning object must be in the same namespace as the dependent, or +be cluster-scoped, so there is no namespace field. + +.. code-block:: json + + { + "apiVersion": "...", + "kind": "...", + "name": "...", + "uid": "...", + "controller": "...", + "blockOwnerDeletion": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference.apiVersion: + +apiVersion + (`string `_) API version of the referent. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference.kind: + +kind + (`string `_) Kind of the referent. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference.name: + +name + (`string `_) Name of the referent. + More info: http://kubernetes.io/docs/user-guide/identifiers#names + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference.uid: + +uid + (`string `_) UID of the referent. + More info: http://kubernetes.io/docs/user-guide/identifiers#uids + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference.controller: + +controller + (`bool `_) If true, this reference points to the managing controller. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference.blockOwnerDeletion: + +blockOwnerDeletion + (`bool `_) If true, AND if the owner has the "foregroundDeletion" finalizer, then + the owner cannot be deleted from the key-value store until this + reference is removed. + Defaults to false. + To set this field, a user needs "delete" permission of the owner, + otherwise 422 (Unprocessable Entity) will be returned. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Patch: + +k8s.io.apimachinery.pkg.apis.meta.v1.Patch +------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Patch proto] `_ + +Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. + +.. code-block:: json + + {} + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions +------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions proto] `_ + +PatchOptions may be provided when patching an API object. +PatchOptions is meant to be a superset of UpdateOptions. + +.. code-block:: json + + { + "dryRun": [], + "force": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions.dryRun: + +dryRun + (`string `_) When present, indicates that modifications should not be + persisted. An invalid or unrecognized dryRun directive will + result in an error response and no further processing of the + request. Valid values are: + - All: all dry run stages will be processed + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.PatchOptions.force: + +force + (`bool `_) Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force + flag must be unset for non-apply patch requests. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions: + +k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions proto] `_ + +Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. + +.. code-block:: json + + { + "uid": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions.uid: + +uid + (`string `_) Specifies the target UID. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths: + +k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths +---------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths proto] `_ + +RootPaths lists the paths available at root. +For example: "/healthz", "/apis". + +.. code-block:: json + + { + "paths": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths.paths: + +paths + (`string `_) paths are the paths available at root. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR: + +k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR +-------------------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR proto] `_ + +ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. + +.. code-block:: json + + { + "clientCIDR": "...", + "serverAddress": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR.clientCIDR: + +clientCIDR + (`string `_) The CIDR with which clients can match their IP to figure out the server address that they should use. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR.serverAddress: + +serverAddress + (`string `_) Address of this server, suitable for a client that matches the above CIDR. + This can be a hostname, hostname:port, IP or IP:port. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Status: + +k8s.io.apimachinery.pkg.apis.meta.v1.Status +------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Status proto] `_ + +Status is a return value for calls that don't return other objects. + +.. code-block:: json + + { + "metadata": "{...}", + "status": "...", + "message": "...", + "reason": "...", + "details": "{...}", + "code": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Status.metadata: + +metadata + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta `) Standard list metadata. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Status.status: + +status + (`string `_) Status of the operation. + One of: "Success" or "Failure". + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Status.message: + +message + (`string `_) A human-readable description of the status of this operation. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Status.reason: + +reason + (`string `_) A machine-readable description of why this operation is in the + "Failure" status. If this value is empty there + is no information available. A Reason clarifies an HTTP status + code but does not override it. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Status.details: + +details + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails `) Extended data associated with the reason. Each reason may define its + own extended details. This field is optional and the data returned + is not guaranteed to conform to any schema except that defined by + the reason type. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Status.code: + +code + (`int32 `_) Suggested HTTP return code for this status, 0 if not set. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause: + +k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause +------------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause proto] `_ + +StatusCause provides more information about an api.Status failure, including +cases when multiple errors are encountered. + +.. code-block:: json + + { + "reason": "...", + "message": "...", + "field": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause.reason: + +reason + (`string `_) A machine-readable description of the cause of the error. If this value is + empty there is no information available. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause.message: + +message + (`string `_) A human-readable description of the cause of the error. This field may be + presented as-is to a reader. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause.field: + +field + (`string `_) The field of the resource that has caused this error, as named by its JSON + serialization. May include dot and postfix notation for nested attributes. + Arrays are zero-indexed. Fields may appear more than once in an array of + causes due to fields having multiple errors. + Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails: + +k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails proto] `_ + +StatusDetails is a set of additional properties that MAY be set by the +server to provide additional information about a response. The Reason +field of a Status object defines what attributes will be set. Clients +must ignore fields that do not match the defined type of each attribute, +and should assume that any attribute may be empty, invalid, or under +defined. + +.. code-block:: json + + { + "name": "...", + "group": "...", + "kind": "...", + "uid": "...", + "causes": [], + "retryAfterSeconds": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails.name: + +name + (`string `_) The name attribute of the resource associated with the status StatusReason + (when there is a single name which can be described). + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails.group: + +group + (`string `_) The group attribute of the resource associated with the status StatusReason. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails.kind: + +kind + (`string `_) The kind attribute of the resource associated with the status StatusReason. + On some operations may differ from the requested resource Kind. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails.uid: + +uid + (`string `_) UID of the resource. + (when there is a single resource which can be described). + More info: http://kubernetes.io/docs/user-guide/identifiers#uids + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails.causes: + +causes + (:ref:`k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause `) The Causes array includes more details associated with the StatusReason + failure. Not all StatusReasons may provide detailed causes. + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails.retryAfterSeconds: + +retryAfterSeconds + (`int32 `_) If specified, the time in seconds before the operation should be retried. Some errors may indicate + the client must take an alternate action - for those errors this field may indicate how long to wait + before taking the alternate action. + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Time: + +k8s.io.apimachinery.pkg.apis.meta.v1.Time +----------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Time proto] `_ + +Time is a wrapper around time.Time which supports correct +marshaling to YAML and JSON. Wrappers are provided for many +of the factory methods that the time package offers. + ++protobuf.options.marshal=false ++protobuf.as=Timestamp ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "seconds": "...", + "nanos": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Time.seconds: + +seconds + (`int64 `_) Represents seconds of UTC time since Unix epoch + 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + 9999-12-31T23:59:59Z inclusive. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Time.nanos: + +nanos + (`int32 `_) Non-negative fractions of a second at nanosecond resolution. Negative + second values with fractions must still have non-negative nanos values + that count forward in time. Must be from 0 to 999,999,999 + inclusive. This field may be limited in precision depending on context. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Timestamp: + +k8s.io.apimachinery.pkg.apis.meta.v1.Timestamp +---------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Timestamp proto] `_ + +Timestamp is a struct that is equivalent to Time, but intended for +protobuf marshalling/unmarshalling. It is generated into a serialization +that matches Time. Do not use in Go structs. + +.. code-block:: json + + { + "seconds": "...", + "nanos": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Timestamp.seconds: + +seconds + (`int64 `_) Represents seconds of UTC time since Unix epoch + 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + 9999-12-31T23:59:59Z inclusive. + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Timestamp.nanos: + +nanos + (`int32 `_) Non-negative fractions of a second at nanosecond resolution. Negative + second values with fractions must still have non-negative nanos values + that count forward in time. Must be from 0 to 999,999,999 + inclusive. This field may be limited in precision depending on context. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta: + +k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta +--------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta proto] `_ + +TypeMeta describes an individual object in an API response or request +with strings representing the type of the object and its API schema version. +Structures that are versioned or persisted should inline TypeMeta. + ++k8s:deepcopy-gen=false + +.. code-block:: json + + { + "kind": "...", + "apiVersion": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta.kind: + +kind + (`string `_) Kind is a string value representing the REST resource this object represents. + Servers may infer this from the endpoint the client submits requests to. + Cannot be updated. + In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + +optional + + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.TypeMeta.apiVersion: + +apiVersion + (`string `_) APIVersion defines the versioned schema of this representation of an object. + Servers should convert recognized schemas to the latest internal value, and + may reject unrecognized values. + More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.UpdateOptions: + +k8s.io.apimachinery.pkg.apis.meta.v1.UpdateOptions +-------------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.UpdateOptions proto] `_ + +UpdateOptions may be provided when updating an API object. +All fields in UpdateOptions should also be present in PatchOptions. + +.. code-block:: json + + { + "dryRun": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.UpdateOptions.dryRun: + +dryRun + (`string `_) When present, indicates that modifications should not be + persisted. An invalid or unrecognized dryRun directive will + result in an error response and no further processing of the + request. Valid values are: + - All: all dry run stages will be processed + +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.Verbs: + +k8s.io.apimachinery.pkg.apis.meta.v1.Verbs +------------------------------------------ + +`[k8s.io.apimachinery.pkg.apis.meta.v1.Verbs proto] `_ + +Verbs masks the value so protobuf can generate + ++protobuf.nullable=true ++protobuf.options.(gogoproto.goproto_stringer)=false + +.. code-block:: json + + { + "items": [] + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.Verbs.items: + +items + (`string `_) + + + +.. _api_msg_k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent: + +k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent +----------------------------------------------- + +`[k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent proto] `_ + +Event represents a single event to a watched resource. + ++protobuf=true ++k8s:deepcopy-gen=true ++k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +.. code-block:: json + + { + "type": "...", + "object": "{...}" + } + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent.type: + +type + (`string `_) + +.. _api_field_k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent.object: + +object + (:ref:`k8s.io.apimachinery.pkg.runtime.RawExtension `) Object is: + * If Type is Added or Modified: the new state of the object. + * If Type is Deleted: the state of the object immediately before deletion. + * If Type is Error: *Status is recommended; other types may make sense + depending on context. + + + diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/index.rst new file mode 100644 index 0000000000..23613b6ea7 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/apis/meta/v1/index.rst @@ -0,0 +1,9 @@ +v1 +== + +.. toctree:: + :maxdepth: 1 + :caption: v1 + :name: v1toc + + generated.proto diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/index.rst new file mode 100644 index 0000000000..dd16908831 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/index.rst @@ -0,0 +1,12 @@ +pkg +=== + +.. toctree:: + :maxdepth: 1 + :caption: pkg + :name: pkgtoc + + api/index + apis/index + runtime/index + util/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/generated.proto.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/generated.proto.rst new file mode 100644 index 0000000000..91a580bdcd --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/generated.proto.rst @@ -0,0 +1,188 @@ +.. _api_file_k8s.io/apimachinery/pkg/runtime/generated.proto: + +generated.proto +=============================================== + + +opyright The Kubernetes Authors. + +icensed under the Apache License, Version 2.0 (the "License"); +ou may not use this file except in compliance with the License. +ou may obtain a copy of the License at + +ttp://www.apache.org/licenses/LICENSE-2.0 + +nless required by applicable law or agreed to in writing, software +istributed under the License is distributed on an "AS IS" BASIS, +ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +ee the License for the specific language governing permissions and +imitations under the License. +This file was autogenerated by go-to-protobuf. Do not edit it manually! + +.. _api_msg_k8s.io.apimachinery.pkg.runtime.RawExtension: + +k8s.io.apimachinery.pkg.runtime.RawExtension +-------------------------------------------- + +`[k8s.io.apimachinery.pkg.runtime.RawExtension proto] `_ + +RawExtension is used to hold extensions in external versions. + +To use this, make a field which has RawExtension as its type in your external, versioned +struct, and Object in your internal struct. You also need to register your +various plugin types. + +// Internal package: +type MyAPIObject struct { + runtime.TypeMeta `json:",inline"` + MyPlugin runtime.Object `json:"myPlugin"` +} +type PluginA struct { + AOption string `json:"aOption"` +} + +// External package: +type MyAPIObject struct { + runtime.TypeMeta `json:",inline"` + MyPlugin runtime.RawExtension `json:"myPlugin"` +} +type PluginA struct { + AOption string `json:"aOption"` +} + +// On the wire, the JSON will look something like this: +{ + "kind":"MyAPIObject", + "apiVersion":"v1", + "myPlugin": { + "kind":"PluginA", + "aOption":"foo", + }, +} + +So what happens? Decode first uses json or yaml to unmarshal the serialized data into +your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. +The next step is to copy (using pkg/conversion) into the internal struct. The runtime +package's DefaultScheme has conversion functions installed which will unpack the +JSON stored in RawExtension, turning it into the correct object type, and storing it +in the Object. (TODO: In the case where the object is of an unknown type, a +runtime.Unknown object will be created and stored.) + ++k8s:deepcopy-gen=true ++protobuf=true ++k8s:openapi-gen=true + +.. code-block:: json + + { + "raw": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.runtime.RawExtension.raw: + +raw + (`bytes `_) Raw is the underlying serialization of this object. + + TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data. + + + + +.. _api_msg_k8s.io.apimachinery.pkg.runtime.TypeMeta: + +k8s.io.apimachinery.pkg.runtime.TypeMeta +---------------------------------------- + +`[k8s.io.apimachinery.pkg.runtime.TypeMeta proto] `_ + +TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, +like this: +type MyAwesomeAPIObject struct { + runtime.TypeMeta `json:",inline"` + ... // other fields +} +func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind + +TypeMeta is provided here for convenience. You may use it directly from this package or define +your own with the same fields. + ++k8s:deepcopy-gen=false ++protobuf=true ++k8s:openapi-gen=true + +.. code-block:: json + + { + "apiVersion": "...", + "kind": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.runtime.TypeMeta.apiVersion: + +apiVersion + (`string `_) +optional + + +.. _api_field_k8s.io.apimachinery.pkg.runtime.TypeMeta.kind: + +kind + (`string `_) +optional + + + + +.. _api_msg_k8s.io.apimachinery.pkg.runtime.Unknown: + +k8s.io.apimachinery.pkg.runtime.Unknown +--------------------------------------- + +`[k8s.io.apimachinery.pkg.runtime.Unknown proto] `_ + +Unknown allows api objects with unknown types to be passed-through. This can be used +to deal with the API objects from a plug-in. Unknown objects still have functioning +TypeMeta features-- kind, version, etc. +TODO: Make this object have easy access to field based accessors and settors for +metadata and field mutatation. + ++k8s:deepcopy-gen=true ++k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ++protobuf=true ++k8s:openapi-gen=true + +.. code-block:: json + + { + "typeMeta": "{...}", + "raw": "...", + "contentEncoding": "...", + "contentType": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.runtime.Unknown.typeMeta: + +typeMeta + (:ref:`k8s.io.apimachinery.pkg.runtime.TypeMeta `) + +.. _api_field_k8s.io.apimachinery.pkg.runtime.Unknown.raw: + +raw + (`bytes `_) Raw will hold the complete serialized object which couldn't be matched + with a registered type. Most likely, nothing should be done with this + except for passing it through the system. + + +.. _api_field_k8s.io.apimachinery.pkg.runtime.Unknown.contentEncoding: + +contentEncoding + (`string `_) ContentEncoding is encoding used to encode 'Raw' data. + Unspecified means no encoding. + + +.. _api_field_k8s.io.apimachinery.pkg.runtime.Unknown.contentType: + +contentType + (`string `_) ContentType is serialization method used to serialize 'Raw'. + Unspecified means ContentTypeJSON. + + + diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/index.rst new file mode 100644 index 0000000000..d34b77d824 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/index.rst @@ -0,0 +1,10 @@ +runtime +======= + +.. toctree:: + :maxdepth: 1 + :caption: runtime + :name: runtimetoc + + schema/index + generated.proto diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/generated.proto.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/generated.proto.rst new file mode 100644 index 0000000000..f3dd8a421d --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/generated.proto.rst @@ -0,0 +1,21 @@ +.. _api_file_k8s.io/apimachinery/pkg/runtime/schema/generated.proto: + +generated.proto +====================================================== + + +opyright The Kubernetes Authors. + +icensed under the Apache License, Version 2.0 (the "License"); +ou may not use this file except in compliance with the License. +ou may obtain a copy of the License at + +ttp://www.apache.org/licenses/LICENSE-2.0 + +nless required by applicable law or agreed to in writing, software +istributed under the License is distributed on an "AS IS" BASIS, +ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +ee the License for the specific language governing permissions and +imitations under the License. +This file was autogenerated by go-to-protobuf. Do not edit it manually! + diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/index.rst new file mode 100644 index 0000000000..29e08134ca --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/runtime/schema/index.rst @@ -0,0 +1,9 @@ +schema +====== + +.. toctree:: + :maxdepth: 1 + :caption: schema + :name: schematoc + + generated.proto diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/index.rst new file mode 100644 index 0000000000..1711856363 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/index.rst @@ -0,0 +1,9 @@ +util +==== + +.. toctree:: + :maxdepth: 1 + :caption: util + :name: utiltoc + + intstr/index diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/generated.proto.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/generated.proto.rst new file mode 100644 index 0000000000..ef244109bd --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/generated.proto.rst @@ -0,0 +1,62 @@ +.. _api_file_k8s.io/apimachinery/pkg/util/intstr/generated.proto: + +generated.proto +=================================================== + + +opyright The Kubernetes Authors. + +icensed under the Apache License, Version 2.0 (the "License"); +ou may not use this file except in compliance with the License. +ou may obtain a copy of the License at + +ttp://www.apache.org/licenses/LICENSE-2.0 + +nless required by applicable law or agreed to in writing, software +istributed under the License is distributed on an "AS IS" BASIS, +ITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +ee the License for the specific language governing permissions and +imitations under the License. +This file was autogenerated by go-to-protobuf. Do not edit it manually! + +.. _api_msg_k8s.io.apimachinery.pkg.util.intstr.IntOrString: + +k8s.io.apimachinery.pkg.util.intstr.IntOrString +----------------------------------------------- + +`[k8s.io.apimachinery.pkg.util.intstr.IntOrString proto] `_ + +IntOrString is a type that can hold an int32 or a string. When used in +JSON or YAML marshalling and unmarshalling, it produces or consumes the +inner type. This allows you to have, for example, a JSON field that can +accept a name or number. +TODO: Rename to Int32OrString + ++protobuf=true ++protobuf.options.(gogoproto.goproto_stringer)=false ++k8s:openapi-gen=true + +.. code-block:: json + + { + "type": "...", + "intVal": "...", + "strVal": "..." + } + +.. _api_field_k8s.io.apimachinery.pkg.util.intstr.IntOrString.type: + +type + (`int64 `_) + +.. _api_field_k8s.io.apimachinery.pkg.util.intstr.IntOrString.intVal: + +intVal + (`int32 `_) + +.. _api_field_k8s.io.apimachinery.pkg.util.intstr.IntOrString.strVal: + +strVal + (`string `_) + + diff --git a/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/index.rst new file mode 100644 index 0000000000..b9e34d47f4 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/apimachinery/pkg/util/intstr/index.rst @@ -0,0 +1,9 @@ +intstr +====== + +.. toctree:: + :maxdepth: 1 + :caption: intstr + :name: intstrtoc + + generated.proto diff --git a/flyteidl/gen/pb-protodoc/k8s.io/index.rst b/flyteidl/gen/pb-protodoc/k8s.io/index.rst new file mode 100644 index 0000000000..810e21b67d --- /dev/null +++ b/flyteidl/gen/pb-protodoc/k8s.io/index.rst @@ -0,0 +1,10 @@ +k8s.io +====== + +.. toctree:: + :maxdepth: 1 + :caption: k8s.io + :name: k8s.iotoc + + api/index + apimachinery/index diff --git a/flyteidl/gen/pb-protodoc/protoc-gen-swagger/index.rst b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/index.rst new file mode 100644 index 0000000000..d6eb056fc3 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/index.rst @@ -0,0 +1,9 @@ +protoc-gen-swagger +================== + +.. toctree:: + :maxdepth: 1 + :caption: protoc-gen-swagger + :name: protoc-gen-swaggertoc + + options/index diff --git a/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/annotations.proto.rst b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/annotations.proto.rst new file mode 100644 index 0000000000..1c39b834b4 --- /dev/null +++ b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/annotations.proto.rst @@ -0,0 +1,5 @@ +.. _api_file_protoc-gen-swagger/options/annotations.proto: + +annotations.proto +============================================ + diff --git a/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/index.rst b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/index.rst new file mode 100644 index 0000000000..b1ce35c59d --- /dev/null +++ b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/index.rst @@ -0,0 +1,10 @@ +options +======= + +.. toctree:: + :maxdepth: 1 + :caption: options + :name: optionstoc + + annotations.proto + openapiv2.proto diff --git a/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/openapiv2.proto.rst b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/openapiv2.proto.rst new file mode 100644 index 0000000000..123878e26a --- /dev/null +++ b/flyteidl/gen/pb-protodoc/protoc-gen-swagger/options/openapiv2.proto.rst @@ -0,0 +1,955 @@ +.. _api_file_protoc-gen-swagger/options/openapiv2.proto: + +openapiv2.proto +========================================== + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Swagger: + +grpc.gateway.protoc_gen_swagger.options.Swagger +----------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Swagger proto] `_ + +`Swagger` is a representation of OpenAPI v2 specification's Swagger object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "swagger": "...", + "info": "{...}", + "host": "...", + "base_path": "...", + "schemes": [], + "consumes": [], + "produces": [], + "responses": "{...}", + "security_definitions": "{...}", + "security": [], + "external_docs": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.swagger: + +swagger + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.info: + +info + (:ref:`grpc.gateway.protoc_gen_swagger.options.Info `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.host: + +host + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.base_path: + +base_path + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.schemes: + +schemes + (:ref:`grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.consumes: + +consumes + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.produces: + +produces + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.responses: + +responses + (map<`string `_, :ref:`grpc.gateway.protoc_gen_swagger.options.Response `>) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.security_definitions: + +security_definitions + (:ref:`grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.security: + +security + (:ref:`grpc.gateway.protoc_gen_swagger.options.SecurityRequirement `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Swagger.external_docs: + +external_docs + (:ref:`grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation `) + + +.. _api_enum_grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme: + +Enum grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme +------------------------------------------------------------------ + +`[grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme proto] `_ + + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme.UNKNOWN: + +UNKNOWN + *(DEFAULT)* ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme.HTTP: + +HTTP + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme.HTTPS: + +HTTPS + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme.WS: + +WS + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.Swagger.SwaggerScheme.WSS: + +WSS + ⁣ + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Operation: + +grpc.gateway.protoc_gen_swagger.options.Operation +------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Operation proto] `_ + +`Operation` is a representation of OpenAPI v2 specification's Operation object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "tags": [], + "summary": "...", + "description": "...", + "external_docs": "{...}", + "operation_id": "...", + "consumes": [], + "produces": [], + "responses": "{...}", + "schemes": [], + "deprecated": "...", + "security": [] + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.tags: + +tags + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.summary: + +summary + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.description: + +description + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.external_docs: + +external_docs + (:ref:`grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.operation_id: + +operation_id + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.consumes: + +consumes + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.produces: + +produces + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.responses: + +responses + (map<`string `_, :ref:`grpc.gateway.protoc_gen_swagger.options.Response `>) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.schemes: + +schemes + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.deprecated: + +deprecated + (`bool `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Operation.security: + +security + (:ref:`grpc.gateway.protoc_gen_swagger.options.SecurityRequirement `) + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Response: + +grpc.gateway.protoc_gen_swagger.options.Response +------------------------------------------------ + +`[grpc.gateway.protoc_gen_swagger.options.Response proto] `_ + +`Response` is a representation of OpenAPI v2 specification's Response object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject + + +.. code-block:: json + + { + "description": "...", + "schema": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Response.description: + +description + (`string `_) `Description` is a short description of the response. + GFM syntax can be used for rich text representation. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Response.schema: + +schema + (:ref:`grpc.gateway.protoc_gen_swagger.options.Schema `) `Schema` optionally defines the structure of the response. + If `Schema` is not provided, it means there is no content to the response. + + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Info: + +grpc.gateway.protoc_gen_swagger.options.Info +-------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Info proto] `_ + +`Info` is a representation of OpenAPI v2 specification's Info object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "title": "...", + "description": "...", + "terms_of_service": "...", + "contact": "{...}", + "version": "..." + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Info.title: + +title + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Info.description: + +description + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Info.terms_of_service: + +terms_of_service + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Info.contact: + +contact + (:ref:`grpc.gateway.protoc_gen_swagger.options.Contact `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Info.version: + +version + (`string `_) + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Contact: + +grpc.gateway.protoc_gen_swagger.options.Contact +----------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Contact proto] `_ + +`Contact` is a representation of OpenAPI v2 specification's Contact object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "name": "...", + "url": "...", + "email": "..." + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Contact.name: + +name + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Contact.url: + +url + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Contact.email: + +email + (`string `_) + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation: + +grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation +------------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation proto] `_ + +`ExternalDocumentation` is a representation of OpenAPI v2 specification's +ExternalDocumentation object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "description": "...", + "url": "..." + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation.description: + +description + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation.url: + +url + (`string `_) + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Schema: + +grpc.gateway.protoc_gen_swagger.options.Schema +---------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Schema proto] `_ + +`Schema` is a representation of OpenAPI v2 specification's Schema object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "json_schema": "{...}", + "discriminator": "...", + "read_only": "...", + "external_docs": "{...}", + "example": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Schema.json_schema: + +json_schema + (:ref:`grpc.gateway.protoc_gen_swagger.options.JSONSchema `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Schema.discriminator: + +discriminator + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Schema.read_only: + +read_only + (`bool `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Schema.external_docs: + +external_docs + (:ref:`grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation `) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Schema.example: + +example + (:ref:`google.protobuf.Any `) + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.JSONSchema: + +grpc.gateway.protoc_gen_swagger.options.JSONSchema +-------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.JSONSchema proto] `_ + +`JSONSchema` represents properties from JSON Schema taken, and as used, in +the OpenAPI v2 spec. + +This includes changes made by OpenAPI v2. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject + +See also: https://cswr.github.io/JsonSchema/spec/basic_types/, +https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json + +TODO(ivucica): document fields + +.. code-block:: json + + { + "ref": "...", + "title": "...", + "description": "...", + "default": "...", + "multiple_of": "...", + "maximum": "...", + "exclusive_maximum": "...", + "minimum": "...", + "exclusive_minimum": "...", + "max_length": "...", + "min_length": "...", + "pattern": "...", + "max_items": "...", + "min_items": "...", + "unique_items": "...", + "max_properties": "...", + "min_properties": "...", + "required": [], + "array": [], + "type": [] + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.ref: + +ref + (`string `_) Ref is used to define an external reference to include in the message. + This could be a fully qualified proto message reference, and that type must be imported + into the protofile. If no message is identified, the Ref will be used verbatim in + the output. + For example: + `ref: ".google.protobuf.Timestamp"`. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.title: + +title + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.description: + +description + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.default: + +default + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.multiple_of: + +multiple_of + (`double `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.maximum: + +maximum + (`double `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.exclusive_maximum: + +exclusive_maximum + (`bool `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.minimum: + +minimum + (`double `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.exclusive_minimum: + +exclusive_minimum + (`bool `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.max_length: + +max_length + (`uint64 `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.min_length: + +min_length + (`uint64 `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.pattern: + +pattern + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.max_items: + +max_items + (`uint64 `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.min_items: + +min_items + (`uint64 `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.unique_items: + +unique_items + (`bool `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.max_properties: + +max_properties + (`uint64 `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.min_properties: + +min_properties + (`uint64 `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.required: + +required + (`string `_) + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.array: + +array + (`string `_) Items in 'array' must be unique. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.JSONSchema.type: + +type + (:ref:`grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes `) + + +.. _api_enum_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes: + +Enum grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes +----------------------------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes proto] `_ + + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.UNKNOWN: + +UNKNOWN + *(DEFAULT)* ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.ARRAY: + +ARRAY + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.BOOLEAN: + +BOOLEAN + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.INTEGER: + +INTEGER + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.NULL: + +NULL + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.NUMBER: + +NUMBER + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.OBJECT: + +OBJECT + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.JSONSchema.JSONSchemaSimpleTypes.STRING: + +STRING + ⁣ + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Tag: + +grpc.gateway.protoc_gen_swagger.options.Tag +------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Tag proto] `_ + +`Tag` is a representation of OpenAPI v2 specification's Tag object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject + +TODO(ivucica): document fields + +.. code-block:: json + + { + "description": "...", + "external_docs": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Tag.description: + +description + (`string `_) TODO(ivucica): Description should be extracted from comments on the proto + service object. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Tag.external_docs: + +external_docs + (:ref:`grpc.gateway.protoc_gen_swagger.options.ExternalDocumentation `) + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions: + +grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions +----------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions proto] `_ + +`SecurityDefinitions` is a representation of OpenAPI v2 specification's +Security Definitions object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject + +A declaration of the security schemes available to be used in the +specification. This does not enforce the security schemes on the operations +and only serves to provide the relevant details for each scheme. + +.. code-block:: json + + { + "security": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityDefinitions.security: + +security + (map<`string `_, :ref:`grpc.gateway.protoc_gen_swagger.options.SecurityScheme `>) A single security scheme definition, mapping a "name" to the scheme it defines. + + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.SecurityScheme: + +grpc.gateway.protoc_gen_swagger.options.SecurityScheme +------------------------------------------------------ + +`[grpc.gateway.protoc_gen_swagger.options.SecurityScheme proto] `_ + +`SecurityScheme` is a representation of OpenAPI v2 specification's +Security Scheme object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject + +Allows the definition of a security scheme that can be used by the +operations. Supported schemes are basic authentication, an API key (either as +a header or as a query parameter) and OAuth2's common flows (implicit, +password, application and access code). + +.. code-block:: json + + { + "type": "...", + "description": "...", + "name": "...", + "in": "...", + "flow": "...", + "authorization_url": "...", + "token_url": "...", + "scopes": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.type: + +type + (:ref:`grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type `) Required. The type of the security scheme. Valid values are "basic", + "apiKey" or "oauth2". + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.description: + +description + (`string `_) A short description for security scheme. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.name: + +name + (`string `_) Required. The name of the header or query parameter to be used. + + Valid for apiKey. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.in: + +in + (:ref:`grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In `) Required. The location of the API key. Valid values are "query" or "header". + + Valid for apiKey. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.flow: + +flow + (:ref:`grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow `) Required. The flow used by the OAuth2 security scheme. Valid values are + "implicit", "password", "application" or "accessCode". + + Valid for oauth2. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.authorization_url: + +authorization_url + (`string `_) Required. The authorization URL to be used for this flow. This SHOULD be in + the form of a URL. + + Valid for oauth2/implicit and oauth2/accessCode. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.token_url: + +token_url + (`string `_) Required. The token URL to be used for this flow. This SHOULD be in the + form of a URL. + + Valid for oauth2/password, oauth2/application and oauth2/accessCode. + + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.scopes: + +scopes + (:ref:`grpc.gateway.protoc_gen_swagger.options.Scopes `) Required. The available scopes for the OAuth2 security scheme. + + Valid for oauth2. + + + +.. _api_enum_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type: + +Enum grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type +---------------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type proto] `_ + +Required. The type of the security scheme. Valid values are "basic", +"apiKey" or "oauth2". + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type.TYPE_INVALID: + +TYPE_INVALID + *(DEFAULT)* ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type.TYPE_BASIC: + +TYPE_BASIC + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type.TYPE_API_KEY: + +TYPE_API_KEY + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Type.TYPE_OAUTH2: + +TYPE_OAUTH2 + ⁣ + + +.. _api_enum_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In: + +Enum grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In +-------------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In proto] `_ + +Required. The location of the API key. Valid values are "query" or "header". + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In.IN_INVALID: + +IN_INVALID + *(DEFAULT)* ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In.IN_QUERY: + +IN_QUERY + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.In.IN_HEADER: + +IN_HEADER + ⁣ + + +.. _api_enum_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow: + +Enum grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow +---------------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow proto] `_ + +Required. The flow used by the OAuth2 security scheme. Valid values are +"implicit", "password", "application" or "accessCode". + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow.FLOW_INVALID: + +FLOW_INVALID + *(DEFAULT)* ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow.FLOW_IMPLICIT: + +FLOW_IMPLICIT + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow.FLOW_PASSWORD: + +FLOW_PASSWORD + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow.FLOW_APPLICATION: + +FLOW_APPLICATION + ⁣ + +.. _api_enum_value_grpc.gateway.protoc_gen_swagger.options.SecurityScheme.Flow.FLOW_ACCESS_CODE: + +FLOW_ACCESS_CODE + ⁣ + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.SecurityRequirement: + +grpc.gateway.protoc_gen_swagger.options.SecurityRequirement +----------------------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.SecurityRequirement proto] `_ + +`SecurityRequirement` is a representation of OpenAPI v2 specification's +Security Requirement object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject + +Lists the required security schemes to execute this operation. The object can +have multiple security schemes declared in it which are all required (that +is, there is a logical AND between the schemes). + +The name used for each property MUST correspond to a security scheme +declared in the Security Definitions. + +.. code-block:: json + + { + "security_requirement": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.security_requirement: + +security_requirement + (map<`string `_, :ref:`grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue `>) Each name must correspond to a security scheme which is declared in + the Security Definitions. If the security scheme is of type "oauth2", + then the value is a list of scope names required for the execution. + For other security scheme types, the array MUST be empty. + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue: + +grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue +------------------------------------------------------------------------------------ + +`[grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue proto] `_ + +If the security scheme is of type "oauth2", then the value is a list of +scope names required for the execution. For other security scheme types, +the array MUST be empty. + +.. code-block:: json + + { + "scope": [] + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.SecurityRequirement.SecurityRequirementValue.scope: + +scope + (`string `_) + + + + + +.. _api_msg_grpc.gateway.protoc_gen_swagger.options.Scopes: + +grpc.gateway.protoc_gen_swagger.options.Scopes +---------------------------------------------- + +`[grpc.gateway.protoc_gen_swagger.options.Scopes proto] `_ + +`Scopes` is a representation of OpenAPI v2 specification's Scopes object. + +See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject + +Lists the available scopes for an OAuth2 security scheme. + +.. code-block:: json + + { + "scope": "{...}" + } + +.. _api_field_grpc.gateway.protoc_gen_swagger.options.Scopes.scope: + +scope + (map<`string `_, `string `_>) Maps between a name of a scope to a short description of it (as the value + of the property). + + + diff --git a/flyteidl/gen/pb_python/__init__.py b/flyteidl/gen/pb_python/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/__init__.py b/flyteidl/gen/pb_python/flyteidl/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/__init__.py b/flyteidl/gen/pb_python/flyteidl/admin/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py new file mode 100644 index 0000000000..f440fb1361 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py @@ -0,0 +1,798 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/common.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/common.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x1b\x66lyteidl/admin/common.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"F\n\x15NamedEntityIdentifier\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\"r\n\x04Sort\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\tdirection\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.Sort.Direction\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x88\x01\n NamedEntityIdentifierListRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\r\x12\r\n\x05token\x18\x04 \x01(\t\x12%\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.Sort\"c\n\x19NamedEntityIdentifierList\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.flyteidl.admin.NamedEntityIdentifier\x12\r\n\x05token\x18\x02 \x01(\t\"9\n\x10ObjectGetRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\"\x9e\x01\n\x13ResourceListRequest\x12\x31\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifier\x12\r\n\x05limit\x18\x02 \x01(\r\x12\r\n\x05token\x18\x03 \x01(\t\x12\x0f\n\x07\x66ilters\x18\x04 \x01(\t\x12%\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.Sort\"-\n\x11\x45mailNotification\x12\x18\n\x10recipients_email\x18\x01 \x03(\t\"1\n\x15PagerDutyNotification\x12\x18\n\x10recipients_email\x18\x01 \x03(\t\"-\n\x11SlackNotification\x12\x18\n\x10recipients_email\x18\x01 \x03(\t\"\xf3\x01\n\x0cNotification\x12\x36\n\x06phases\x18\x01 \x03(\x0e\x32&.flyteidl.core.WorkflowExecution.Phase\x12\x32\n\x05\x65mail\x18\x02 \x01(\x0b\x32!.flyteidl.admin.EmailNotificationH\x00\x12;\n\npager_duty\x18\x03 \x01(\x0b\x32%.flyteidl.admin.PagerDutyNotificationH\x00\x12\x32\n\x05slack\x18\x04 \x01(\x0b\x32!.flyteidl.admin.SlackNotificationH\x00\x42\x06\n\x04type\"%\n\x07UrlBlob\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05\x62ytes\x18\x02 \x01(\x03\"k\n\x06Labels\x12\x32\n\x06values\x18\x01 \x03(\x0b\x32\".flyteidl.admin.Labels.ValuesEntry\x1a-\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x0b\x41nnotations\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.flyteidl.admin.Annotations.ValuesEntry\x1a-\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x33Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,]) + + + +_SORT_DIRECTION = _descriptor.EnumDescriptor( + name='Direction', + full_name='flyteidl.admin.Sort.Direction', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='DESCENDING', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ASCENDING', index=1, number=1, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=254, + serialized_end=296, +) +_sym_db.RegisterEnumDescriptor(_SORT_DIRECTION) + + +_NAMEDENTITYIDENTIFIER = _descriptor.Descriptor( + name='NamedEntityIdentifier', + full_name='flyteidl.admin.NamedEntityIdentifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='project', full_name='flyteidl.admin.NamedEntityIdentifier.project', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain', full_name='flyteidl.admin.NamedEntityIdentifier.domain', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.admin.NamedEntityIdentifier.name', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=110, + serialized_end=180, +) + + +_SORT = _descriptor.Descriptor( + name='Sort', + full_name='flyteidl.admin.Sort', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.admin.Sort.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='direction', full_name='flyteidl.admin.Sort.direction', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SORT_DIRECTION, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=182, + serialized_end=296, +) + + +_NAMEDENTITYIDENTIFIERLISTREQUEST = _descriptor.Descriptor( + name='NamedEntityIdentifierListRequest', + full_name='flyteidl.admin.NamedEntityIdentifierListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='project', full_name='flyteidl.admin.NamedEntityIdentifierListRequest.project', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain', full_name='flyteidl.admin.NamedEntityIdentifierListRequest.domain', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='limit', full_name='flyteidl.admin.NamedEntityIdentifierListRequest.limit', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.NamedEntityIdentifierListRequest.token', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sort_by', full_name='flyteidl.admin.NamedEntityIdentifierListRequest.sort_by', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=299, + serialized_end=435, +) + + +_NAMEDENTITYIDENTIFIERLIST = _descriptor.Descriptor( + name='NamedEntityIdentifierList', + full_name='flyteidl.admin.NamedEntityIdentifierList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='entities', full_name='flyteidl.admin.NamedEntityIdentifierList.entities', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.NamedEntityIdentifierList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=437, + serialized_end=536, +) + + +_OBJECTGETREQUEST = _descriptor.Descriptor( + name='ObjectGetRequest', + full_name='flyteidl.admin.ObjectGetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.ObjectGetRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=538, + serialized_end=595, +) + + +_RESOURCELISTREQUEST = _descriptor.Descriptor( + name='ResourceListRequest', + full_name='flyteidl.admin.ResourceListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.ResourceListRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='limit', full_name='flyteidl.admin.ResourceListRequest.limit', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.ResourceListRequest.token', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='filters', full_name='flyteidl.admin.ResourceListRequest.filters', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sort_by', full_name='flyteidl.admin.ResourceListRequest.sort_by', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=598, + serialized_end=756, +) + + +_EMAILNOTIFICATION = _descriptor.Descriptor( + name='EmailNotification', + full_name='flyteidl.admin.EmailNotification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recipients_email', full_name='flyteidl.admin.EmailNotification.recipients_email', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=758, + serialized_end=803, +) + + +_PAGERDUTYNOTIFICATION = _descriptor.Descriptor( + name='PagerDutyNotification', + full_name='flyteidl.admin.PagerDutyNotification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recipients_email', full_name='flyteidl.admin.PagerDutyNotification.recipients_email', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=805, + serialized_end=854, +) + + +_SLACKNOTIFICATION = _descriptor.Descriptor( + name='SlackNotification', + full_name='flyteidl.admin.SlackNotification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recipients_email', full_name='flyteidl.admin.SlackNotification.recipients_email', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=856, + serialized_end=901, +) + + +_NOTIFICATION = _descriptor.Descriptor( + name='Notification', + full_name='flyteidl.admin.Notification', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='phases', full_name='flyteidl.admin.Notification.phases', index=0, + number=1, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email', full_name='flyteidl.admin.Notification.email', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pager_duty', full_name='flyteidl.admin.Notification.pager_duty', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='slack', full_name='flyteidl.admin.Notification.slack', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='type', full_name='flyteidl.admin.Notification.type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=904, + serialized_end=1147, +) + + +_URLBLOB = _descriptor.Descriptor( + name='UrlBlob', + full_name='flyteidl.admin.UrlBlob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='url', full_name='flyteidl.admin.UrlBlob.url', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bytes', full_name='flyteidl.admin.UrlBlob.bytes', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1149, + serialized_end=1186, +) + + +_LABELS_VALUESENTRY = _descriptor.Descriptor( + name='ValuesEntry', + full_name='flyteidl.admin.Labels.ValuesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.admin.Labels.ValuesEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.admin.Labels.ValuesEntry.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1250, + serialized_end=1295, +) + +_LABELS = _descriptor.Descriptor( + name='Labels', + full_name='flyteidl.admin.Labels', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='values', full_name='flyteidl.admin.Labels.values', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_LABELS_VALUESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1188, + serialized_end=1295, +) + + +_ANNOTATIONS_VALUESENTRY = _descriptor.Descriptor( + name='ValuesEntry', + full_name='flyteidl.admin.Annotations.ValuesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.admin.Annotations.ValuesEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.admin.Annotations.ValuesEntry.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1250, + serialized_end=1295, +) + +_ANNOTATIONS = _descriptor.Descriptor( + name='Annotations', + full_name='flyteidl.admin.Annotations', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='values', full_name='flyteidl.admin.Annotations.values', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ANNOTATIONS_VALUESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1297, + serialized_end=1414, +) + +_SORT.fields_by_name['direction'].enum_type = _SORT_DIRECTION +_SORT_DIRECTION.containing_type = _SORT +_NAMEDENTITYIDENTIFIERLISTREQUEST.fields_by_name['sort_by'].message_type = _SORT +_NAMEDENTITYIDENTIFIERLIST.fields_by_name['entities'].message_type = _NAMEDENTITYIDENTIFIER +_OBJECTGETREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_RESOURCELISTREQUEST.fields_by_name['id'].message_type = _NAMEDENTITYIDENTIFIER +_RESOURCELISTREQUEST.fields_by_name['sort_by'].message_type = _SORT +_NOTIFICATION.fields_by_name['phases'].enum_type = flyteidl_dot_core_dot_execution__pb2._WORKFLOWEXECUTION_PHASE +_NOTIFICATION.fields_by_name['email'].message_type = _EMAILNOTIFICATION +_NOTIFICATION.fields_by_name['pager_duty'].message_type = _PAGERDUTYNOTIFICATION +_NOTIFICATION.fields_by_name['slack'].message_type = _SLACKNOTIFICATION +_NOTIFICATION.oneofs_by_name['type'].fields.append( + _NOTIFICATION.fields_by_name['email']) +_NOTIFICATION.fields_by_name['email'].containing_oneof = _NOTIFICATION.oneofs_by_name['type'] +_NOTIFICATION.oneofs_by_name['type'].fields.append( + _NOTIFICATION.fields_by_name['pager_duty']) +_NOTIFICATION.fields_by_name['pager_duty'].containing_oneof = _NOTIFICATION.oneofs_by_name['type'] +_NOTIFICATION.oneofs_by_name['type'].fields.append( + _NOTIFICATION.fields_by_name['slack']) +_NOTIFICATION.fields_by_name['slack'].containing_oneof = _NOTIFICATION.oneofs_by_name['type'] +_LABELS_VALUESENTRY.containing_type = _LABELS +_LABELS.fields_by_name['values'].message_type = _LABELS_VALUESENTRY +_ANNOTATIONS_VALUESENTRY.containing_type = _ANNOTATIONS +_ANNOTATIONS.fields_by_name['values'].message_type = _ANNOTATIONS_VALUESENTRY +DESCRIPTOR.message_types_by_name['NamedEntityIdentifier'] = _NAMEDENTITYIDENTIFIER +DESCRIPTOR.message_types_by_name['Sort'] = _SORT +DESCRIPTOR.message_types_by_name['NamedEntityIdentifierListRequest'] = _NAMEDENTITYIDENTIFIERLISTREQUEST +DESCRIPTOR.message_types_by_name['NamedEntityIdentifierList'] = _NAMEDENTITYIDENTIFIERLIST +DESCRIPTOR.message_types_by_name['ObjectGetRequest'] = _OBJECTGETREQUEST +DESCRIPTOR.message_types_by_name['ResourceListRequest'] = _RESOURCELISTREQUEST +DESCRIPTOR.message_types_by_name['EmailNotification'] = _EMAILNOTIFICATION +DESCRIPTOR.message_types_by_name['PagerDutyNotification'] = _PAGERDUTYNOTIFICATION +DESCRIPTOR.message_types_by_name['SlackNotification'] = _SLACKNOTIFICATION +DESCRIPTOR.message_types_by_name['Notification'] = _NOTIFICATION +DESCRIPTOR.message_types_by_name['UrlBlob'] = _URLBLOB +DESCRIPTOR.message_types_by_name['Labels'] = _LABELS +DESCRIPTOR.message_types_by_name['Annotations'] = _ANNOTATIONS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +NamedEntityIdentifier = _reflection.GeneratedProtocolMessageType('NamedEntityIdentifier', (_message.Message,), dict( + DESCRIPTOR = _NAMEDENTITYIDENTIFIER, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) + )) +_sym_db.RegisterMessage(NamedEntityIdentifier) + +Sort = _reflection.GeneratedProtocolMessageType('Sort', (_message.Message,), dict( + DESCRIPTOR = _SORT, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) + )) +_sym_db.RegisterMessage(Sort) + +NamedEntityIdentifierListRequest = _reflection.GeneratedProtocolMessageType('NamedEntityIdentifierListRequest', (_message.Message,), dict( + DESCRIPTOR = _NAMEDENTITYIDENTIFIERLISTREQUEST, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) + )) +_sym_db.RegisterMessage(NamedEntityIdentifierListRequest) + +NamedEntityIdentifierList = _reflection.GeneratedProtocolMessageType('NamedEntityIdentifierList', (_message.Message,), dict( + DESCRIPTOR = _NAMEDENTITYIDENTIFIERLIST, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) + )) +_sym_db.RegisterMessage(NamedEntityIdentifierList) + +ObjectGetRequest = _reflection.GeneratedProtocolMessageType('ObjectGetRequest', (_message.Message,), dict( + DESCRIPTOR = _OBJECTGETREQUEST, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) + )) +_sym_db.RegisterMessage(ObjectGetRequest) + +ResourceListRequest = _reflection.GeneratedProtocolMessageType('ResourceListRequest', (_message.Message,), dict( + DESCRIPTOR = _RESOURCELISTREQUEST, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) + )) +_sym_db.RegisterMessage(ResourceListRequest) + +EmailNotification = _reflection.GeneratedProtocolMessageType('EmailNotification', (_message.Message,), dict( + DESCRIPTOR = _EMAILNOTIFICATION, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) + )) +_sym_db.RegisterMessage(EmailNotification) + +PagerDutyNotification = _reflection.GeneratedProtocolMessageType('PagerDutyNotification', (_message.Message,), dict( + DESCRIPTOR = _PAGERDUTYNOTIFICATION, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) + )) +_sym_db.RegisterMessage(PagerDutyNotification) + +SlackNotification = _reflection.GeneratedProtocolMessageType('SlackNotification', (_message.Message,), dict( + DESCRIPTOR = _SLACKNOTIFICATION, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) + )) +_sym_db.RegisterMessage(SlackNotification) + +Notification = _reflection.GeneratedProtocolMessageType('Notification', (_message.Message,), dict( + DESCRIPTOR = _NOTIFICATION, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) + )) +_sym_db.RegisterMessage(Notification) + +UrlBlob = _reflection.GeneratedProtocolMessageType('UrlBlob', (_message.Message,), dict( + DESCRIPTOR = _URLBLOB, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) + )) +_sym_db.RegisterMessage(UrlBlob) + +Labels = _reflection.GeneratedProtocolMessageType('Labels', (_message.Message,), dict( + + ValuesEntry = _reflection.GeneratedProtocolMessageType('ValuesEntry', (_message.Message,), dict( + DESCRIPTOR = _LABELS_VALUESENTRY, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Labels.ValuesEntry) + )) + , + DESCRIPTOR = _LABELS, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) + )) +_sym_db.RegisterMessage(Labels) +_sym_db.RegisterMessage(Labels.ValuesEntry) + +Annotations = _reflection.GeneratedProtocolMessageType('Annotations', (_message.Message,), dict( + + ValuesEntry = _reflection.GeneratedProtocolMessageType('ValuesEntry', (_message.Message,), dict( + DESCRIPTOR = _ANNOTATIONS_VALUESENTRY, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations.ValuesEntry) + )) + , + DESCRIPTOR = _ANNOTATIONS, + __module__ = 'flyteidl.admin.common_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) + )) +_sym_db.RegisterMessage(Annotations) +_sym_db.RegisterMessage(Annotations.ValuesEntry) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +_LABELS_VALUESENTRY.has_options = True +_LABELS_VALUESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_ANNOTATIONS_VALUESENTRY.has_options = True +_ANNOTATIONS_VALUESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py new file mode 100644 index 0000000000..43d6308355 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py @@ -0,0 +1,356 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/event.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/event.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x1a\x66lyteidl/admin/event.proto\x12\x0e\x66lyteidl.admin\x1a\x1a\x66lyteidl/event/event.proto\"9\n EventErrorAlreadyInTerminalState\x12\x15\n\rcurrent_phase\x18\x01 \x01(\t\"u\n\x12\x45ventFailureReason\x12U\n\x19\x61lready_in_terminal_state\x18\x01 \x01(\x0b\x32\x30.flyteidl.admin.EventErrorAlreadyInTerminalStateH\x00\x42\x08\n\x06reason\"j\n\x1dWorkflowExecutionEventRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x35\n\x05\x65vent\x18\x02 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEvent\" \n\x1eWorkflowExecutionEventResponse\"b\n\x19NodeExecutionEventRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x31\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEvent\"\x1c\n\x1aNodeExecutionEventResponse\"b\n\x19TaskExecutionEventRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x31\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEvent\"\x1c\n\x1aTaskExecutionEventResponseB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_event_dot_event__pb2.DESCRIPTOR,]) + + + + +_EVENTERRORALREADYINTERMINALSTATE = _descriptor.Descriptor( + name='EventErrorAlreadyInTerminalState', + full_name='flyteidl.admin.EventErrorAlreadyInTerminalState', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='current_phase', full_name='flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=74, + serialized_end=131, +) + + +_EVENTFAILUREREASON = _descriptor.Descriptor( + name='EventFailureReason', + full_name='flyteidl.admin.EventFailureReason', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='already_in_terminal_state', full_name='flyteidl.admin.EventFailureReason.already_in_terminal_state', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='reason', full_name='flyteidl.admin.EventFailureReason.reason', + index=0, containing_type=None, fields=[]), + ], + serialized_start=133, + serialized_end=250, +) + + +_WORKFLOWEXECUTIONEVENTREQUEST = _descriptor.Descriptor( + name='WorkflowExecutionEventRequest', + full_name='flyteidl.admin.WorkflowExecutionEventRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='request_id', full_name='flyteidl.admin.WorkflowExecutionEventRequest.request_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='event', full_name='flyteidl.admin.WorkflowExecutionEventRequest.event', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=252, + serialized_end=358, +) + + +_WORKFLOWEXECUTIONEVENTRESPONSE = _descriptor.Descriptor( + name='WorkflowExecutionEventResponse', + full_name='flyteidl.admin.WorkflowExecutionEventResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=360, + serialized_end=392, +) + + +_NODEEXECUTIONEVENTREQUEST = _descriptor.Descriptor( + name='NodeExecutionEventRequest', + full_name='flyteidl.admin.NodeExecutionEventRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='request_id', full_name='flyteidl.admin.NodeExecutionEventRequest.request_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='event', full_name='flyteidl.admin.NodeExecutionEventRequest.event', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=394, + serialized_end=492, +) + + +_NODEEXECUTIONEVENTRESPONSE = _descriptor.Descriptor( + name='NodeExecutionEventResponse', + full_name='flyteidl.admin.NodeExecutionEventResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=494, + serialized_end=522, +) + + +_TASKEXECUTIONEVENTREQUEST = _descriptor.Descriptor( + name='TaskExecutionEventRequest', + full_name='flyteidl.admin.TaskExecutionEventRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='request_id', full_name='flyteidl.admin.TaskExecutionEventRequest.request_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='event', full_name='flyteidl.admin.TaskExecutionEventRequest.event', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=524, + serialized_end=622, +) + + +_TASKEXECUTIONEVENTRESPONSE = _descriptor.Descriptor( + name='TaskExecutionEventResponse', + full_name='flyteidl.admin.TaskExecutionEventResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=624, + serialized_end=652, +) + +_EVENTFAILUREREASON.fields_by_name['already_in_terminal_state'].message_type = _EVENTERRORALREADYINTERMINALSTATE +_EVENTFAILUREREASON.oneofs_by_name['reason'].fields.append( + _EVENTFAILUREREASON.fields_by_name['already_in_terminal_state']) +_EVENTFAILUREREASON.fields_by_name['already_in_terminal_state'].containing_oneof = _EVENTFAILUREREASON.oneofs_by_name['reason'] +_WORKFLOWEXECUTIONEVENTREQUEST.fields_by_name['event'].message_type = flyteidl_dot_event_dot_event__pb2._WORKFLOWEXECUTIONEVENT +_NODEEXECUTIONEVENTREQUEST.fields_by_name['event'].message_type = flyteidl_dot_event_dot_event__pb2._NODEEXECUTIONEVENT +_TASKEXECUTIONEVENTREQUEST.fields_by_name['event'].message_type = flyteidl_dot_event_dot_event__pb2._TASKEXECUTIONEVENT +DESCRIPTOR.message_types_by_name['EventErrorAlreadyInTerminalState'] = _EVENTERRORALREADYINTERMINALSTATE +DESCRIPTOR.message_types_by_name['EventFailureReason'] = _EVENTFAILUREREASON +DESCRIPTOR.message_types_by_name['WorkflowExecutionEventRequest'] = _WORKFLOWEXECUTIONEVENTREQUEST +DESCRIPTOR.message_types_by_name['WorkflowExecutionEventResponse'] = _WORKFLOWEXECUTIONEVENTRESPONSE +DESCRIPTOR.message_types_by_name['NodeExecutionEventRequest'] = _NODEEXECUTIONEVENTREQUEST +DESCRIPTOR.message_types_by_name['NodeExecutionEventResponse'] = _NODEEXECUTIONEVENTRESPONSE +DESCRIPTOR.message_types_by_name['TaskExecutionEventRequest'] = _TASKEXECUTIONEVENTREQUEST +DESCRIPTOR.message_types_by_name['TaskExecutionEventResponse'] = _TASKEXECUTIONEVENTRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +EventErrorAlreadyInTerminalState = _reflection.GeneratedProtocolMessageType('EventErrorAlreadyInTerminalState', (_message.Message,), dict( + DESCRIPTOR = _EVENTERRORALREADYINTERMINALSTATE, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) + )) +_sym_db.RegisterMessage(EventErrorAlreadyInTerminalState) + +EventFailureReason = _reflection.GeneratedProtocolMessageType('EventFailureReason', (_message.Message,), dict( + DESCRIPTOR = _EVENTFAILUREREASON, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) + )) +_sym_db.RegisterMessage(EventFailureReason) + +WorkflowExecutionEventRequest = _reflection.GeneratedProtocolMessageType('WorkflowExecutionEventRequest', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONEVENTREQUEST, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) + )) +_sym_db.RegisterMessage(WorkflowExecutionEventRequest) + +WorkflowExecutionEventResponse = _reflection.GeneratedProtocolMessageType('WorkflowExecutionEventResponse', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONEVENTRESPONSE, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) + )) +_sym_db.RegisterMessage(WorkflowExecutionEventResponse) + +NodeExecutionEventRequest = _reflection.GeneratedProtocolMessageType('NodeExecutionEventRequest', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONEVENTREQUEST, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) + )) +_sym_db.RegisterMessage(NodeExecutionEventRequest) + +NodeExecutionEventResponse = _reflection.GeneratedProtocolMessageType('NodeExecutionEventResponse', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONEVENTRESPONSE, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) + )) +_sym_db.RegisterMessage(NodeExecutionEventResponse) + +TaskExecutionEventRequest = _reflection.GeneratedProtocolMessageType('TaskExecutionEventRequest', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONEVENTREQUEST, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) + )) +_sym_db.RegisterMessage(TaskExecutionEventRequest) + +TaskExecutionEventResponse = _reflection.GeneratedProtocolMessageType('TaskExecutionEventResponse', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONEVENTRESPONSE, + __module__ = 'flyteidl.admin.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) + )) +_sym_db.RegisterMessage(TaskExecutionEventResponse) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py new file mode 100644 index 0000000000..b717eb2630 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py @@ -0,0 +1,926 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/execution.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__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.FileDescriptor( + name='flyteidl/admin/execution.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x1e\x66lyteidl/admin/execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x16\x45xecutionCreateRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12+\n\x04spec\x18\x04 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpec\"`\n\x18\x45xecutionRelaunchRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\x12\x0c\n\x04name\x18\x03 \x01(\t\"Q\n\x17\x45xecutionCreateResponse\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"U\n\x1bWorkflowExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"\xa3\x01\n\tExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\x12+\n\x04spec\x18\x02 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpec\x12\x31\n\x07\x63losure\x18\x03 \x01(\x0b\x32 .flyteidl.admin.ExecutionClosure\"M\n\rExecutionList\x12-\n\nexecutions\x18\x01 \x03(\x0b\x32\x19.flyteidl.admin.Execution\x12\r\n\x05token\x18\x02 \x01(\t\"T\n\x0eLiteralMapBlob\x12+\n\x06values\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x42\x06\n\x04\x64\x61ta\"\xaa\x04\n\x10\x45xecutionClosure\x12\x31\n\x07outputs\x18\x01 \x01(\x0b\x32\x1e.flyteidl.admin.LiteralMapBlobH\x00\x12.\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00\x12\x15\n\x0b\x61\x62ort_cause\x18\n \x01(\tH\x00\x12\x32\n\x0f\x63omputed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMap\x12\x35\n\x05phase\x18\x04 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.Phase\x12.\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\rnotifications\x18\t \x03(\x0b\x32\x1c.flyteidl.admin.Notification\x12.\n\x0bworkflow_id\x18\x0b \x01(\x0b\x32\x19.flyteidl.core.IdentifierB\x0f\n\routput_result\"\x92\x03\n\x11\x45xecutionMetadata\x12=\n\x04mode\x18\x01 \x01(\x0e\x32/.flyteidl.admin.ExecutionMetadata.ExecutionMode\x12\x11\n\tprincipal\x18\x02 \x01(\t\x12\x0f\n\x07nesting\x18\x03 \x01(\r\x12\x30\n\x0cscheduled_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x15parent_node_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\x12G\n\x13reference_execution\x18\x10 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"X\n\rExecutionMode\x12\n\n\x06MANUAL\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0c\n\x08RELAUNCH\x10\x03\x12\x12\n\x0e\x43HILD_WORKFLOW\x10\x04\"G\n\x10NotificationList\x12\x33\n\rnotifications\x18\x01 \x03(\x0b\x32\x1c.flyteidl.admin.Notification\"\xeb\x02\n\rExecutionSpec\x12.\n\x0blaunch_plan\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12)\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMap\x12\x33\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadata\x12\x39\n\rnotifications\x18\x05 \x01(\x0b\x32 .flyteidl.admin.NotificationListH\x00\x12\x15\n\x0b\x64isable_all\x18\x06 \x01(\x08H\x00\x12&\n\x06labels\x18\x07 \x01(\x0b\x32\x16.flyteidl.admin.Labels\x12\x30\n\x0b\x61nnotations\x18\x08 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsB\x18\n\x16notification_overridesJ\x04\x08\x04\x10\x05\"b\n\x19\x45xecutionTerminateRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\x12\r\n\x05\x63\x61use\x18\x02 \x01(\t\"\x1c\n\x1a\x45xecutionTerminateResponse\"Y\n\x1fWorkflowExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"L\n WorkflowExecutionGetDataResponse\x12(\n\x07outputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_admin_dot_common__pb2.DESCRIPTOR,flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,flyteidl_dot_core_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + + +_EXECUTIONMETADATA_EXECUTIONMODE = _descriptor.EnumDescriptor( + name='ExecutionMode', + full_name='flyteidl.admin.ExecutionMetadata.ExecutionMode', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MANUAL', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCHEDULED', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SYSTEM', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RELAUNCH', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CHILD_WORKFLOW', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=1826, + serialized_end=1914, +) +_sym_db.RegisterEnumDescriptor(_EXECUTIONMETADATA_EXECUTIONMODE) + + +_EXECUTIONCREATEREQUEST = _descriptor.Descriptor( + name='ExecutionCreateRequest', + full_name='flyteidl.admin.ExecutionCreateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='project', full_name='flyteidl.admin.ExecutionCreateRequest.project', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain', full_name='flyteidl.admin.ExecutionCreateRequest.domain', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.admin.ExecutionCreateRequest.name', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spec', full_name='flyteidl.admin.ExecutionCreateRequest.spec', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=237, + serialized_end=353, +) + + +_EXECUTIONRELAUNCHREQUEST = _descriptor.Descriptor( + name='ExecutionRelaunchRequest', + full_name='flyteidl.admin.ExecutionRelaunchRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.ExecutionRelaunchRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.admin.ExecutionRelaunchRequest.name', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=355, + serialized_end=451, +) + + +_EXECUTIONCREATERESPONSE = _descriptor.Descriptor( + name='ExecutionCreateResponse', + full_name='flyteidl.admin.ExecutionCreateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.ExecutionCreateResponse.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=453, + serialized_end=534, +) + + +_WORKFLOWEXECUTIONGETREQUEST = _descriptor.Descriptor( + name='WorkflowExecutionGetRequest', + full_name='flyteidl.admin.WorkflowExecutionGetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.WorkflowExecutionGetRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=536, + serialized_end=621, +) + + +_EXECUTION = _descriptor.Descriptor( + name='Execution', + full_name='flyteidl.admin.Execution', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.Execution.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spec', full_name='flyteidl.admin.Execution.spec', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closure', full_name='flyteidl.admin.Execution.closure', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=624, + serialized_end=787, +) + + +_EXECUTIONLIST = _descriptor.Descriptor( + name='ExecutionList', + full_name='flyteidl.admin.ExecutionList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='executions', full_name='flyteidl.admin.ExecutionList.executions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.ExecutionList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=789, + serialized_end=866, +) + + +_LITERALMAPBLOB = _descriptor.Descriptor( + name='LiteralMapBlob', + full_name='flyteidl.admin.LiteralMapBlob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='values', full_name='flyteidl.admin.LiteralMapBlob.values', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri', full_name='flyteidl.admin.LiteralMapBlob.uri', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='data', full_name='flyteidl.admin.LiteralMapBlob.data', + index=0, containing_type=None, fields=[]), + ], + serialized_start=868, + serialized_end=952, +) + + +_EXECUTIONCLOSURE = _descriptor.Descriptor( + name='ExecutionClosure', + full_name='flyteidl.admin.ExecutionClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.admin.ExecutionClosure.outputs', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.admin.ExecutionClosure.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='abort_cause', full_name='flyteidl.admin.ExecutionClosure.abort_cause', index=2, + number=10, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='computed_inputs', full_name='flyteidl.admin.ExecutionClosure.computed_inputs', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.admin.ExecutionClosure.phase', index=4, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='started_at', full_name='flyteidl.admin.ExecutionClosure.started_at', index=5, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='flyteidl.admin.ExecutionClosure.duration', index=6, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='flyteidl.admin.ExecutionClosure.created_at', index=7, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='updated_at', full_name='flyteidl.admin.ExecutionClosure.updated_at', index=8, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='notifications', full_name='flyteidl.admin.ExecutionClosure.notifications', index=9, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='workflow_id', full_name='flyteidl.admin.ExecutionClosure.workflow_id', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='output_result', full_name='flyteidl.admin.ExecutionClosure.output_result', + index=0, containing_type=None, fields=[]), + ], + serialized_start=955, + serialized_end=1509, +) + + +_EXECUTIONMETADATA = _descriptor.Descriptor( + name='ExecutionMetadata', + full_name='flyteidl.admin.ExecutionMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='mode', full_name='flyteidl.admin.ExecutionMetadata.mode', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='principal', full_name='flyteidl.admin.ExecutionMetadata.principal', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='nesting', full_name='flyteidl.admin.ExecutionMetadata.nesting', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='scheduled_at', full_name='flyteidl.admin.ExecutionMetadata.scheduled_at', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_node_execution', full_name='flyteidl.admin.ExecutionMetadata.parent_node_execution', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reference_execution', full_name='flyteidl.admin.ExecutionMetadata.reference_execution', index=5, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXECUTIONMETADATA_EXECUTIONMODE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1512, + serialized_end=1914, +) + + +_NOTIFICATIONLIST = _descriptor.Descriptor( + name='NotificationList', + full_name='flyteidl.admin.NotificationList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='notifications', full_name='flyteidl.admin.NotificationList.notifications', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1916, + serialized_end=1987, +) + + +_EXECUTIONSPEC = _descriptor.Descriptor( + name='ExecutionSpec', + full_name='flyteidl.admin.ExecutionSpec', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='launch_plan', full_name='flyteidl.admin.ExecutionSpec.launch_plan', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='inputs', full_name='flyteidl.admin.ExecutionSpec.inputs', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metadata', full_name='flyteidl.admin.ExecutionSpec.metadata', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='notifications', full_name='flyteidl.admin.ExecutionSpec.notifications', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='disable_all', full_name='flyteidl.admin.ExecutionSpec.disable_all', index=4, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='labels', full_name='flyteidl.admin.ExecutionSpec.labels', index=5, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='annotations', full_name='flyteidl.admin.ExecutionSpec.annotations', index=6, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='notification_overrides', full_name='flyteidl.admin.ExecutionSpec.notification_overrides', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1990, + serialized_end=2353, +) + + +_EXECUTIONTERMINATEREQUEST = _descriptor.Descriptor( + name='ExecutionTerminateRequest', + full_name='flyteidl.admin.ExecutionTerminateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.ExecutionTerminateRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cause', full_name='flyteidl.admin.ExecutionTerminateRequest.cause', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2355, + serialized_end=2453, +) + + +_EXECUTIONTERMINATERESPONSE = _descriptor.Descriptor( + name='ExecutionTerminateResponse', + full_name='flyteidl.admin.ExecutionTerminateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2455, + serialized_end=2483, +) + + +_WORKFLOWEXECUTIONGETDATAREQUEST = _descriptor.Descriptor( + name='WorkflowExecutionGetDataRequest', + full_name='flyteidl.admin.WorkflowExecutionGetDataRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.WorkflowExecutionGetDataRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2485, + serialized_end=2574, +) + + +_WORKFLOWEXECUTIONGETDATARESPONSE = _descriptor.Descriptor( + name='WorkflowExecutionGetDataResponse', + full_name='flyteidl.admin.WorkflowExecutionGetDataResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.admin.WorkflowExecutionGetDataResponse.outputs', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2576, + serialized_end=2652, +) + +_EXECUTIONCREATEREQUEST.fields_by_name['spec'].message_type = _EXECUTIONSPEC +_EXECUTIONRELAUNCHREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_EXECUTIONCREATERESPONSE.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_WORKFLOWEXECUTIONGETREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_EXECUTION.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_EXECUTION.fields_by_name['spec'].message_type = _EXECUTIONSPEC +_EXECUTION.fields_by_name['closure'].message_type = _EXECUTIONCLOSURE +_EXECUTIONLIST.fields_by_name['executions'].message_type = _EXECUTION +_LITERALMAPBLOB.fields_by_name['values'].message_type = flyteidl_dot_core_dot_literals__pb2._LITERALMAP +_LITERALMAPBLOB.oneofs_by_name['data'].fields.append( + _LITERALMAPBLOB.fields_by_name['values']) +_LITERALMAPBLOB.fields_by_name['values'].containing_oneof = _LITERALMAPBLOB.oneofs_by_name['data'] +_LITERALMAPBLOB.oneofs_by_name['data'].fields.append( + _LITERALMAPBLOB.fields_by_name['uri']) +_LITERALMAPBLOB.fields_by_name['uri'].containing_oneof = _LITERALMAPBLOB.oneofs_by_name['data'] +_EXECUTIONCLOSURE.fields_by_name['outputs'].message_type = _LITERALMAPBLOB +_EXECUTIONCLOSURE.fields_by_name['error'].message_type = flyteidl_dot_core_dot_execution__pb2._EXECUTIONERROR +_EXECUTIONCLOSURE.fields_by_name['computed_inputs'].message_type = flyteidl_dot_core_dot_literals__pb2._LITERALMAP +_EXECUTIONCLOSURE.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._WORKFLOWEXECUTION_PHASE +_EXECUTIONCLOSURE.fields_by_name['started_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_EXECUTIONCLOSURE.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_EXECUTIONCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_EXECUTIONCLOSURE.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_EXECUTIONCLOSURE.fields_by_name['notifications'].message_type = flyteidl_dot_admin_dot_common__pb2._NOTIFICATION +_EXECUTIONCLOSURE.fields_by_name['workflow_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_EXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _EXECUTIONCLOSURE.fields_by_name['outputs']) +_EXECUTIONCLOSURE.fields_by_name['outputs'].containing_oneof = _EXECUTIONCLOSURE.oneofs_by_name['output_result'] +_EXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _EXECUTIONCLOSURE.fields_by_name['error']) +_EXECUTIONCLOSURE.fields_by_name['error'].containing_oneof = _EXECUTIONCLOSURE.oneofs_by_name['output_result'] +_EXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _EXECUTIONCLOSURE.fields_by_name['abort_cause']) +_EXECUTIONCLOSURE.fields_by_name['abort_cause'].containing_oneof = _EXECUTIONCLOSURE.oneofs_by_name['output_result'] +_EXECUTIONMETADATA.fields_by_name['mode'].enum_type = _EXECUTIONMETADATA_EXECUTIONMODE +_EXECUTIONMETADATA.fields_by_name['scheduled_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_EXECUTIONMETADATA.fields_by_name['parent_node_execution'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_EXECUTIONMETADATA.fields_by_name['reference_execution'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_EXECUTIONMETADATA_EXECUTIONMODE.containing_type = _EXECUTIONMETADATA +_NOTIFICATIONLIST.fields_by_name['notifications'].message_type = flyteidl_dot_admin_dot_common__pb2._NOTIFICATION +_EXECUTIONSPEC.fields_by_name['launch_plan'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_EXECUTIONSPEC.fields_by_name['inputs'].message_type = flyteidl_dot_core_dot_literals__pb2._LITERALMAP +_EXECUTIONSPEC.fields_by_name['metadata'].message_type = _EXECUTIONMETADATA +_EXECUTIONSPEC.fields_by_name['notifications'].message_type = _NOTIFICATIONLIST +_EXECUTIONSPEC.fields_by_name['labels'].message_type = flyteidl_dot_admin_dot_common__pb2._LABELS +_EXECUTIONSPEC.fields_by_name['annotations'].message_type = flyteidl_dot_admin_dot_common__pb2._ANNOTATIONS +_EXECUTIONSPEC.oneofs_by_name['notification_overrides'].fields.append( + _EXECUTIONSPEC.fields_by_name['notifications']) +_EXECUTIONSPEC.fields_by_name['notifications'].containing_oneof = _EXECUTIONSPEC.oneofs_by_name['notification_overrides'] +_EXECUTIONSPEC.oneofs_by_name['notification_overrides'].fields.append( + _EXECUTIONSPEC.fields_by_name['disable_all']) +_EXECUTIONSPEC.fields_by_name['disable_all'].containing_oneof = _EXECUTIONSPEC.oneofs_by_name['notification_overrides'] +_EXECUTIONTERMINATEREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_WORKFLOWEXECUTIONGETDATAREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs'].message_type = flyteidl_dot_admin_dot_common__pb2._URLBLOB +DESCRIPTOR.message_types_by_name['ExecutionCreateRequest'] = _EXECUTIONCREATEREQUEST +DESCRIPTOR.message_types_by_name['ExecutionRelaunchRequest'] = _EXECUTIONRELAUNCHREQUEST +DESCRIPTOR.message_types_by_name['ExecutionCreateResponse'] = _EXECUTIONCREATERESPONSE +DESCRIPTOR.message_types_by_name['WorkflowExecutionGetRequest'] = _WORKFLOWEXECUTIONGETREQUEST +DESCRIPTOR.message_types_by_name['Execution'] = _EXECUTION +DESCRIPTOR.message_types_by_name['ExecutionList'] = _EXECUTIONLIST +DESCRIPTOR.message_types_by_name['LiteralMapBlob'] = _LITERALMAPBLOB +DESCRIPTOR.message_types_by_name['ExecutionClosure'] = _EXECUTIONCLOSURE +DESCRIPTOR.message_types_by_name['ExecutionMetadata'] = _EXECUTIONMETADATA +DESCRIPTOR.message_types_by_name['NotificationList'] = _NOTIFICATIONLIST +DESCRIPTOR.message_types_by_name['ExecutionSpec'] = _EXECUTIONSPEC +DESCRIPTOR.message_types_by_name['ExecutionTerminateRequest'] = _EXECUTIONTERMINATEREQUEST +DESCRIPTOR.message_types_by_name['ExecutionTerminateResponse'] = _EXECUTIONTERMINATERESPONSE +DESCRIPTOR.message_types_by_name['WorkflowExecutionGetDataRequest'] = _WORKFLOWEXECUTIONGETDATAREQUEST +DESCRIPTOR.message_types_by_name['WorkflowExecutionGetDataResponse'] = _WORKFLOWEXECUTIONGETDATARESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExecutionCreateRequest = _reflection.GeneratedProtocolMessageType('ExecutionCreateRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONCREATEREQUEST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) + )) +_sym_db.RegisterMessage(ExecutionCreateRequest) + +ExecutionRelaunchRequest = _reflection.GeneratedProtocolMessageType('ExecutionRelaunchRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONRELAUNCHREQUEST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) + )) +_sym_db.RegisterMessage(ExecutionRelaunchRequest) + +ExecutionCreateResponse = _reflection.GeneratedProtocolMessageType('ExecutionCreateResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONCREATERESPONSE, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) + )) +_sym_db.RegisterMessage(ExecutionCreateResponse) + +WorkflowExecutionGetRequest = _reflection.GeneratedProtocolMessageType('WorkflowExecutionGetRequest', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONGETREQUEST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) + )) +_sym_db.RegisterMessage(WorkflowExecutionGetRequest) + +Execution = _reflection.GeneratedProtocolMessageType('Execution', (_message.Message,), dict( + DESCRIPTOR = _EXECUTION, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) + )) +_sym_db.RegisterMessage(Execution) + +ExecutionList = _reflection.GeneratedProtocolMessageType('ExecutionList', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONLIST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) + )) +_sym_db.RegisterMessage(ExecutionList) + +LiteralMapBlob = _reflection.GeneratedProtocolMessageType('LiteralMapBlob', (_message.Message,), dict( + DESCRIPTOR = _LITERALMAPBLOB, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) + )) +_sym_db.RegisterMessage(LiteralMapBlob) + +ExecutionClosure = _reflection.GeneratedProtocolMessageType('ExecutionClosure', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONCLOSURE, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) + )) +_sym_db.RegisterMessage(ExecutionClosure) + +ExecutionMetadata = _reflection.GeneratedProtocolMessageType('ExecutionMetadata', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONMETADATA, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) + )) +_sym_db.RegisterMessage(ExecutionMetadata) + +NotificationList = _reflection.GeneratedProtocolMessageType('NotificationList', (_message.Message,), dict( + DESCRIPTOR = _NOTIFICATIONLIST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) + )) +_sym_db.RegisterMessage(NotificationList) + +ExecutionSpec = _reflection.GeneratedProtocolMessageType('ExecutionSpec', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONSPEC, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) + )) +_sym_db.RegisterMessage(ExecutionSpec) + +ExecutionTerminateRequest = _reflection.GeneratedProtocolMessageType('ExecutionTerminateRequest', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONTERMINATEREQUEST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) + )) +_sym_db.RegisterMessage(ExecutionTerminateRequest) + +ExecutionTerminateResponse = _reflection.GeneratedProtocolMessageType('ExecutionTerminateResponse', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONTERMINATERESPONSE, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) + )) +_sym_db.RegisterMessage(ExecutionTerminateResponse) + +WorkflowExecutionGetDataRequest = _reflection.GeneratedProtocolMessageType('WorkflowExecutionGetDataRequest', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONGETDATAREQUEST, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) + )) +_sym_db.RegisterMessage(WorkflowExecutionGetDataRequest) + +WorkflowExecutionGetDataResponse = _reflection.GeneratedProtocolMessageType('WorkflowExecutionGetDataResponse', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONGETDATARESPONSE, + __module__ = 'flyteidl.admin.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) + )) +_sym_db.RegisterMessage(WorkflowExecutionGetDataResponse) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py new file mode 100644 index 0000000000..da604f3925 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py @@ -0,0 +1,601 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/launch_plan.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.admin import schedule_pb2 as flyteidl_dot_admin_dot_schedule__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/launch_plan.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n flyteidl/admin/launch_plan.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1d\x66lyteidl/admin/schedule.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"n\n\x17LaunchPlanCreateRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12,\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpec\"\x1a\n\x18LaunchPlanCreateResponse\"\x95\x01\n\nLaunchPlan\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12,\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpec\x12\x32\n\x07\x63losure\x18\x03 \x01(\x0b\x32!.flyteidl.admin.LaunchPlanClosure\"Q\n\x0eLaunchPlanList\x12\x30\n\x0claunch_plans\x18\x01 \x03(\x0b\x32\x1a.flyteidl.admin.LaunchPlan\x12\r\n\x05token\x18\x02 \x01(\t\"T\n\x04\x41uth\x12\x1c\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tH\x00\x12$\n\x1akubernetes_service_account\x18\x02 \x01(\tH\x00\x42\x08\n\x06method\"\xf3\x02\n\x0eLaunchPlanSpec\x12.\n\x0bworkflow_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12;\n\x0f\x65ntity_metadata\x18\x02 \x01(\x0b\x32\".flyteidl.admin.LaunchPlanMetadata\x12\x33\n\x0e\x64\x65\x66\x61ult_inputs\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMap\x12/\n\x0c\x66ixed_inputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMap\x12\x10\n\x04role\x18\x05 \x01(\tB\x02\x18\x01\x12&\n\x06labels\x18\x06 \x01(\x0b\x32\x16.flyteidl.admin.Labels\x12\x30\n\x0b\x61nnotations\x18\x07 \x01(\x0b\x32\x1b.flyteidl.admin.Annotations\x12\"\n\x04\x61uth\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.Auth\"\x8f\x02\n\x11LaunchPlanClosure\x12.\n\x05state\x18\x01 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanState\x12\x34\n\x0f\x65xpected_inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMap\x12\x34\n\x10\x65xpected_outputs\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.VariableMap\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"u\n\x12LaunchPlanMetadata\x12*\n\x08schedule\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.Schedule\x12\x33\n\rnotifications\x18\x02 \x03(\x0b\x32\x1c.flyteidl.admin.Notification\"p\n\x17LaunchPlanUpdateRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12.\n\x05state\x18\x02 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanState\"\x1a\n\x18LaunchPlanUpdateResponse*+\n\x0fLaunchPlanState\x12\x0c\n\x08INACTIVE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x42\x33Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,flyteidl_dot_core_dot_interface__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_schedule__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + +_LAUNCHPLANSTATE = _descriptor.EnumDescriptor( + name='LaunchPlanState', + full_name='flyteidl.admin.LaunchPlanState', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='INACTIVE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACTIVE', index=1, number=1, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=1608, + serialized_end=1651, +) +_sym_db.RegisterEnumDescriptor(_LAUNCHPLANSTATE) + +LaunchPlanState = enum_type_wrapper.EnumTypeWrapper(_LAUNCHPLANSTATE) +INACTIVE = 0 +ACTIVE = 1 + + + +_LAUNCHPLANCREATEREQUEST = _descriptor.Descriptor( + name='LaunchPlanCreateRequest', + full_name='flyteidl.admin.LaunchPlanCreateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.LaunchPlanCreateRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spec', full_name='flyteidl.admin.LaunchPlanCreateRequest.spec', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=238, + serialized_end=348, +) + + +_LAUNCHPLANCREATERESPONSE = _descriptor.Descriptor( + name='LaunchPlanCreateResponse', + full_name='flyteidl.admin.LaunchPlanCreateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=350, + serialized_end=376, +) + + +_LAUNCHPLAN = _descriptor.Descriptor( + name='LaunchPlan', + full_name='flyteidl.admin.LaunchPlan', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.LaunchPlan.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spec', full_name='flyteidl.admin.LaunchPlan.spec', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closure', full_name='flyteidl.admin.LaunchPlan.closure', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=379, + serialized_end=528, +) + + +_LAUNCHPLANLIST = _descriptor.Descriptor( + name='LaunchPlanList', + full_name='flyteidl.admin.LaunchPlanList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='launch_plans', full_name='flyteidl.admin.LaunchPlanList.launch_plans', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.LaunchPlanList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=530, + serialized_end=611, +) + + +_AUTH = _descriptor.Descriptor( + name='Auth', + full_name='flyteidl.admin.Auth', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='assumable_iam_role', full_name='flyteidl.admin.Auth.assumable_iam_role', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='kubernetes_service_account', full_name='flyteidl.admin.Auth.kubernetes_service_account', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='method', full_name='flyteidl.admin.Auth.method', + index=0, containing_type=None, fields=[]), + ], + serialized_start=613, + serialized_end=697, +) + + +_LAUNCHPLANSPEC = _descriptor.Descriptor( + name='LaunchPlanSpec', + full_name='flyteidl.admin.LaunchPlanSpec', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='workflow_id', full_name='flyteidl.admin.LaunchPlanSpec.workflow_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='entity_metadata', full_name='flyteidl.admin.LaunchPlanSpec.entity_metadata', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='default_inputs', full_name='flyteidl.admin.LaunchPlanSpec.default_inputs', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed_inputs', full_name='flyteidl.admin.LaunchPlanSpec.fixed_inputs', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='role', full_name='flyteidl.admin.LaunchPlanSpec.role', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='labels', full_name='flyteidl.admin.LaunchPlanSpec.labels', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='annotations', full_name='flyteidl.admin.LaunchPlanSpec.annotations', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='auth', full_name='flyteidl.admin.LaunchPlanSpec.auth', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=700, + serialized_end=1071, +) + + +_LAUNCHPLANCLOSURE = _descriptor.Descriptor( + name='LaunchPlanClosure', + full_name='flyteidl.admin.LaunchPlanClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='state', full_name='flyteidl.admin.LaunchPlanClosure.state', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='expected_inputs', full_name='flyteidl.admin.LaunchPlanClosure.expected_inputs', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='expected_outputs', full_name='flyteidl.admin.LaunchPlanClosure.expected_outputs', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='flyteidl.admin.LaunchPlanClosure.created_at', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='updated_at', full_name='flyteidl.admin.LaunchPlanClosure.updated_at', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1074, + serialized_end=1345, +) + + +_LAUNCHPLANMETADATA = _descriptor.Descriptor( + name='LaunchPlanMetadata', + full_name='flyteidl.admin.LaunchPlanMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='schedule', full_name='flyteidl.admin.LaunchPlanMetadata.schedule', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='notifications', full_name='flyteidl.admin.LaunchPlanMetadata.notifications', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1347, + serialized_end=1464, +) + + +_LAUNCHPLANUPDATEREQUEST = _descriptor.Descriptor( + name='LaunchPlanUpdateRequest', + full_name='flyteidl.admin.LaunchPlanUpdateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.LaunchPlanUpdateRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='state', full_name='flyteidl.admin.LaunchPlanUpdateRequest.state', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1466, + serialized_end=1578, +) + + +_LAUNCHPLANUPDATERESPONSE = _descriptor.Descriptor( + name='LaunchPlanUpdateResponse', + full_name='flyteidl.admin.LaunchPlanUpdateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1580, + serialized_end=1606, +) + +_LAUNCHPLANCREATEREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_LAUNCHPLANCREATEREQUEST.fields_by_name['spec'].message_type = _LAUNCHPLANSPEC +_LAUNCHPLAN.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_LAUNCHPLAN.fields_by_name['spec'].message_type = _LAUNCHPLANSPEC +_LAUNCHPLAN.fields_by_name['closure'].message_type = _LAUNCHPLANCLOSURE +_LAUNCHPLANLIST.fields_by_name['launch_plans'].message_type = _LAUNCHPLAN +_AUTH.oneofs_by_name['method'].fields.append( + _AUTH.fields_by_name['assumable_iam_role']) +_AUTH.fields_by_name['assumable_iam_role'].containing_oneof = _AUTH.oneofs_by_name['method'] +_AUTH.oneofs_by_name['method'].fields.append( + _AUTH.fields_by_name['kubernetes_service_account']) +_AUTH.fields_by_name['kubernetes_service_account'].containing_oneof = _AUTH.oneofs_by_name['method'] +_LAUNCHPLANSPEC.fields_by_name['workflow_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_LAUNCHPLANSPEC.fields_by_name['entity_metadata'].message_type = _LAUNCHPLANMETADATA +_LAUNCHPLANSPEC.fields_by_name['default_inputs'].message_type = flyteidl_dot_core_dot_interface__pb2._PARAMETERMAP +_LAUNCHPLANSPEC.fields_by_name['fixed_inputs'].message_type = flyteidl_dot_core_dot_literals__pb2._LITERALMAP +_LAUNCHPLANSPEC.fields_by_name['labels'].message_type = flyteidl_dot_admin_dot_common__pb2._LABELS +_LAUNCHPLANSPEC.fields_by_name['annotations'].message_type = flyteidl_dot_admin_dot_common__pb2._ANNOTATIONS +_LAUNCHPLANSPEC.fields_by_name['auth'].message_type = _AUTH +_LAUNCHPLANCLOSURE.fields_by_name['state'].enum_type = _LAUNCHPLANSTATE +_LAUNCHPLANCLOSURE.fields_by_name['expected_inputs'].message_type = flyteidl_dot_core_dot_interface__pb2._PARAMETERMAP +_LAUNCHPLANCLOSURE.fields_by_name['expected_outputs'].message_type = flyteidl_dot_core_dot_interface__pb2._VARIABLEMAP +_LAUNCHPLANCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LAUNCHPLANCLOSURE.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_LAUNCHPLANMETADATA.fields_by_name['schedule'].message_type = flyteidl_dot_admin_dot_schedule__pb2._SCHEDULE +_LAUNCHPLANMETADATA.fields_by_name['notifications'].message_type = flyteidl_dot_admin_dot_common__pb2._NOTIFICATION +_LAUNCHPLANUPDATEREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_LAUNCHPLANUPDATEREQUEST.fields_by_name['state'].enum_type = _LAUNCHPLANSTATE +DESCRIPTOR.message_types_by_name['LaunchPlanCreateRequest'] = _LAUNCHPLANCREATEREQUEST +DESCRIPTOR.message_types_by_name['LaunchPlanCreateResponse'] = _LAUNCHPLANCREATERESPONSE +DESCRIPTOR.message_types_by_name['LaunchPlan'] = _LAUNCHPLAN +DESCRIPTOR.message_types_by_name['LaunchPlanList'] = _LAUNCHPLANLIST +DESCRIPTOR.message_types_by_name['Auth'] = _AUTH +DESCRIPTOR.message_types_by_name['LaunchPlanSpec'] = _LAUNCHPLANSPEC +DESCRIPTOR.message_types_by_name['LaunchPlanClosure'] = _LAUNCHPLANCLOSURE +DESCRIPTOR.message_types_by_name['LaunchPlanMetadata'] = _LAUNCHPLANMETADATA +DESCRIPTOR.message_types_by_name['LaunchPlanUpdateRequest'] = _LAUNCHPLANUPDATEREQUEST +DESCRIPTOR.message_types_by_name['LaunchPlanUpdateResponse'] = _LAUNCHPLANUPDATERESPONSE +DESCRIPTOR.enum_types_by_name['LaunchPlanState'] = _LAUNCHPLANSTATE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LaunchPlanCreateRequest = _reflection.GeneratedProtocolMessageType('LaunchPlanCreateRequest', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANCREATEREQUEST, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) + )) +_sym_db.RegisterMessage(LaunchPlanCreateRequest) + +LaunchPlanCreateResponse = _reflection.GeneratedProtocolMessageType('LaunchPlanCreateResponse', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANCREATERESPONSE, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) + )) +_sym_db.RegisterMessage(LaunchPlanCreateResponse) + +LaunchPlan = _reflection.GeneratedProtocolMessageType('LaunchPlan', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLAN, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) + )) +_sym_db.RegisterMessage(LaunchPlan) + +LaunchPlanList = _reflection.GeneratedProtocolMessageType('LaunchPlanList', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANLIST, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) + )) +_sym_db.RegisterMessage(LaunchPlanList) + +Auth = _reflection.GeneratedProtocolMessageType('Auth', (_message.Message,), dict( + DESCRIPTOR = _AUTH, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) + )) +_sym_db.RegisterMessage(Auth) + +LaunchPlanSpec = _reflection.GeneratedProtocolMessageType('LaunchPlanSpec', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANSPEC, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) + )) +_sym_db.RegisterMessage(LaunchPlanSpec) + +LaunchPlanClosure = _reflection.GeneratedProtocolMessageType('LaunchPlanClosure', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANCLOSURE, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) + )) +_sym_db.RegisterMessage(LaunchPlanClosure) + +LaunchPlanMetadata = _reflection.GeneratedProtocolMessageType('LaunchPlanMetadata', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANMETADATA, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) + )) +_sym_db.RegisterMessage(LaunchPlanMetadata) + +LaunchPlanUpdateRequest = _reflection.GeneratedProtocolMessageType('LaunchPlanUpdateRequest', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANUPDATEREQUEST, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) + )) +_sym_db.RegisterMessage(LaunchPlanUpdateRequest) + +LaunchPlanUpdateResponse = _reflection.GeneratedProtocolMessageType('LaunchPlanUpdateResponse', (_message.Message,), dict( + DESCRIPTOR = _LAUNCHPLANUPDATERESPONSE, + __module__ = 'flyteidl.admin.launch_plan_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) + )) +_sym_db.RegisterMessage(LaunchPlanUpdateResponse) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +_LAUNCHPLANSPEC.fields_by_name['role'].has_options = True +_LAUNCHPLANSPEC.fields_by_name['role']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\030\001')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py new file mode 100644 index 0000000000..fd197e6d67 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py @@ -0,0 +1,556 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/node_execution.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +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 duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/node_execution.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n#flyteidl/admin/node_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"M\n\x17NodeExecutionGetRequest\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\"\xbb\x01\n\x18NodeExecutionListRequest\x12I\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\x12\r\n\x05limit\x18\x02 \x01(\r\x12\r\n\x05token\x18\x03 \x01(\t\x12\x0f\n\x07\x66ilters\x18\x04 \x01(\t\x12%\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.Sort\"\xba\x01\n\x1fNodeExecutionForTaskListRequest\x12\x41\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifier\x12\r\n\x05limit\x18\x02 \x01(\r\x12\r\n\x05token\x18\x03 \x01(\t\x12\x0f\n\x07\x66ilters\x18\x04 \x01(\t\x12%\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.Sort\"\x8d\x01\n\rNodeExecution\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\x12\x11\n\tinput_uri\x18\x02 \x01(\t\x12\x35\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.NodeExecutionClosure\"Z\n\x11NodeExecutionList\x12\x36\n\x0fnode_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.NodeExecution\x12\r\n\x05token\x18\x02 \x01(\t\"\xb8\x03\n\x14NodeExecutionClosure\x12\x14\n\noutput_uri\x18\x01 \x01(\tH\x00\x12.\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00\x12\x31\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.Phase\x12.\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.admin.WorkflowNodeMetadataH\x01\x42\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"W\n\x14WorkflowNodeMetadata\x12?\n\x0b\x65xecutionId\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"Q\n\x1bNodeExecutionGetDataRequest\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\"q\n\x1cNodeExecutionGetDataResponse\x12\'\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlob\x12(\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_admin_dot_common__pb2.DESCRIPTOR,flyteidl_dot_core_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + + + + +_NODEEXECUTIONGETREQUEST = _descriptor.Descriptor( + name='NodeExecutionGetRequest', + full_name='flyteidl.admin.NodeExecutionGetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.NodeExecutionGetRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=212, + serialized_end=289, +) + + +_NODEEXECUTIONLISTREQUEST = _descriptor.Descriptor( + name='NodeExecutionListRequest', + full_name='flyteidl.admin.NodeExecutionListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='workflow_execution_id', full_name='flyteidl.admin.NodeExecutionListRequest.workflow_execution_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='limit', full_name='flyteidl.admin.NodeExecutionListRequest.limit', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.NodeExecutionListRequest.token', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='filters', full_name='flyteidl.admin.NodeExecutionListRequest.filters', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sort_by', full_name='flyteidl.admin.NodeExecutionListRequest.sort_by', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=292, + serialized_end=479, +) + + +_NODEEXECUTIONFORTASKLISTREQUEST = _descriptor.Descriptor( + name='NodeExecutionForTaskListRequest', + full_name='flyteidl.admin.NodeExecutionForTaskListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='task_execution_id', full_name='flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='limit', full_name='flyteidl.admin.NodeExecutionForTaskListRequest.limit', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.NodeExecutionForTaskListRequest.token', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='filters', full_name='flyteidl.admin.NodeExecutionForTaskListRequest.filters', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sort_by', full_name='flyteidl.admin.NodeExecutionForTaskListRequest.sort_by', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=482, + serialized_end=668, +) + + +_NODEEXECUTION = _descriptor.Descriptor( + name='NodeExecution', + full_name='flyteidl.admin.NodeExecution', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.NodeExecution.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='input_uri', full_name='flyteidl.admin.NodeExecution.input_uri', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closure', full_name='flyteidl.admin.NodeExecution.closure', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=671, + serialized_end=812, +) + + +_NODEEXECUTIONLIST = _descriptor.Descriptor( + name='NodeExecutionList', + full_name='flyteidl.admin.NodeExecutionList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='node_executions', full_name='flyteidl.admin.NodeExecutionList.node_executions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.NodeExecutionList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=814, + serialized_end=904, +) + + +_NODEEXECUTIONCLOSURE = _descriptor.Descriptor( + name='NodeExecutionClosure', + full_name='flyteidl.admin.NodeExecutionClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='output_uri', full_name='flyteidl.admin.NodeExecutionClosure.output_uri', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.admin.NodeExecutionClosure.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.admin.NodeExecutionClosure.phase', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='started_at', full_name='flyteidl.admin.NodeExecutionClosure.started_at', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='flyteidl.admin.NodeExecutionClosure.duration', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='flyteidl.admin.NodeExecutionClosure.created_at', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='updated_at', full_name='flyteidl.admin.NodeExecutionClosure.updated_at', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='workflow_node_metadata', full_name='flyteidl.admin.NodeExecutionClosure.workflow_node_metadata', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='output_result', full_name='flyteidl.admin.NodeExecutionClosure.output_result', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='target_metadata', full_name='flyteidl.admin.NodeExecutionClosure.target_metadata', + index=1, containing_type=None, fields=[]), + ], + serialized_start=907, + serialized_end=1347, +) + + +_WORKFLOWNODEMETADATA = _descriptor.Descriptor( + name='WorkflowNodeMetadata', + full_name='flyteidl.admin.WorkflowNodeMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='executionId', full_name='flyteidl.admin.WorkflowNodeMetadata.executionId', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1349, + serialized_end=1436, +) + + +_NODEEXECUTIONGETDATAREQUEST = _descriptor.Descriptor( + name='NodeExecutionGetDataRequest', + full_name='flyteidl.admin.NodeExecutionGetDataRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.NodeExecutionGetDataRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1438, + serialized_end=1519, +) + + +_NODEEXECUTIONGETDATARESPONSE = _descriptor.Descriptor( + name='NodeExecutionGetDataResponse', + full_name='flyteidl.admin.NodeExecutionGetDataResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='inputs', full_name='flyteidl.admin.NodeExecutionGetDataResponse.inputs', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.admin.NodeExecutionGetDataResponse.outputs', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1521, + serialized_end=1634, +) + +_NODEEXECUTIONGETREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_NODEEXECUTIONLISTREQUEST.fields_by_name['workflow_execution_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_NODEEXECUTIONLISTREQUEST.fields_by_name['sort_by'].message_type = flyteidl_dot_admin_dot_common__pb2._SORT +_NODEEXECUTIONFORTASKLISTREQUEST.fields_by_name['task_execution_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._TASKEXECUTIONIDENTIFIER +_NODEEXECUTIONFORTASKLISTREQUEST.fields_by_name['sort_by'].message_type = flyteidl_dot_admin_dot_common__pb2._SORT +_NODEEXECUTION.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_NODEEXECUTION.fields_by_name['closure'].message_type = _NODEEXECUTIONCLOSURE +_NODEEXECUTIONLIST.fields_by_name['node_executions'].message_type = _NODEEXECUTION +_NODEEXECUTIONCLOSURE.fields_by_name['error'].message_type = flyteidl_dot_core_dot_execution__pb2._EXECUTIONERROR +_NODEEXECUTIONCLOSURE.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._NODEEXECUTION_PHASE +_NODEEXECUTIONCLOSURE.fields_by_name['started_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_NODEEXECUTIONCLOSURE.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_NODEEXECUTIONCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_NODEEXECUTIONCLOSURE.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_NODEEXECUTIONCLOSURE.fields_by_name['workflow_node_metadata'].message_type = _WORKFLOWNODEMETADATA +_NODEEXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']) +_NODEEXECUTIONCLOSURE.fields_by_name['output_uri'].containing_oneof = _NODEEXECUTIONCLOSURE.oneofs_by_name['output_result'] +_NODEEXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _NODEEXECUTIONCLOSURE.fields_by_name['error']) +_NODEEXECUTIONCLOSURE.fields_by_name['error'].containing_oneof = _NODEEXECUTIONCLOSURE.oneofs_by_name['output_result'] +_NODEEXECUTIONCLOSURE.oneofs_by_name['target_metadata'].fields.append( + _NODEEXECUTIONCLOSURE.fields_by_name['workflow_node_metadata']) +_NODEEXECUTIONCLOSURE.fields_by_name['workflow_node_metadata'].containing_oneof = _NODEEXECUTIONCLOSURE.oneofs_by_name['target_metadata'] +_WORKFLOWNODEMETADATA.fields_by_name['executionId'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_NODEEXECUTIONGETDATAREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs'].message_type = flyteidl_dot_admin_dot_common__pb2._URLBLOB +_NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs'].message_type = flyteidl_dot_admin_dot_common__pb2._URLBLOB +DESCRIPTOR.message_types_by_name['NodeExecutionGetRequest'] = _NODEEXECUTIONGETREQUEST +DESCRIPTOR.message_types_by_name['NodeExecutionListRequest'] = _NODEEXECUTIONLISTREQUEST +DESCRIPTOR.message_types_by_name['NodeExecutionForTaskListRequest'] = _NODEEXECUTIONFORTASKLISTREQUEST +DESCRIPTOR.message_types_by_name['NodeExecution'] = _NODEEXECUTION +DESCRIPTOR.message_types_by_name['NodeExecutionList'] = _NODEEXECUTIONLIST +DESCRIPTOR.message_types_by_name['NodeExecutionClosure'] = _NODEEXECUTIONCLOSURE +DESCRIPTOR.message_types_by_name['WorkflowNodeMetadata'] = _WORKFLOWNODEMETADATA +DESCRIPTOR.message_types_by_name['NodeExecutionGetDataRequest'] = _NODEEXECUTIONGETDATAREQUEST +DESCRIPTOR.message_types_by_name['NodeExecutionGetDataResponse'] = _NODEEXECUTIONGETDATARESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +NodeExecutionGetRequest = _reflection.GeneratedProtocolMessageType('NodeExecutionGetRequest', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONGETREQUEST, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) + )) +_sym_db.RegisterMessage(NodeExecutionGetRequest) + +NodeExecutionListRequest = _reflection.GeneratedProtocolMessageType('NodeExecutionListRequest', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONLISTREQUEST, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) + )) +_sym_db.RegisterMessage(NodeExecutionListRequest) + +NodeExecutionForTaskListRequest = _reflection.GeneratedProtocolMessageType('NodeExecutionForTaskListRequest', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONFORTASKLISTREQUEST, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) + )) +_sym_db.RegisterMessage(NodeExecutionForTaskListRequest) + +NodeExecution = _reflection.GeneratedProtocolMessageType('NodeExecution', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTION, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) + )) +_sym_db.RegisterMessage(NodeExecution) + +NodeExecutionList = _reflection.GeneratedProtocolMessageType('NodeExecutionList', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONLIST, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) + )) +_sym_db.RegisterMessage(NodeExecutionList) + +NodeExecutionClosure = _reflection.GeneratedProtocolMessageType('NodeExecutionClosure', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONCLOSURE, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) + )) +_sym_db.RegisterMessage(NodeExecutionClosure) + +WorkflowNodeMetadata = _reflection.GeneratedProtocolMessageType('WorkflowNodeMetadata', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWNODEMETADATA, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) + )) +_sym_db.RegisterMessage(WorkflowNodeMetadata) + +NodeExecutionGetDataRequest = _reflection.GeneratedProtocolMessageType('NodeExecutionGetDataRequest', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONGETDATAREQUEST, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) + )) +_sym_db.RegisterMessage(NodeExecutionGetDataRequest) + +NodeExecutionGetDataResponse = _reflection.GeneratedProtocolMessageType('NodeExecutionGetDataResponse', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONGETDATARESPONSE, + __module__ = 'flyteidl.admin.node_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) + )) +_sym_db.RegisterMessage(NodeExecutionGetDataResponse) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py new file mode 100644 index 0000000000..07cf2f3cb3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py @@ -0,0 +1,92 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/notification.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/notification.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n!flyteidl/admin/notification.proto\x12\x0e\x66lyteidl.admin\"b\n\x0c\x45mailMessage\x12\x18\n\x10recipients_email\x18\x01 \x03(\t\x12\x14\n\x0csender_email\x18\x02 \x01(\t\x12\x14\n\x0csubject_line\x18\x03 \x01(\t\x12\x0c\n\x04\x62ody\x18\x04 \x01(\tB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') +) + + + + +_EMAILMESSAGE = _descriptor.Descriptor( + name='EmailMessage', + full_name='flyteidl.admin.EmailMessage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recipients_email', full_name='flyteidl.admin.EmailMessage.recipients_email', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sender_email', full_name='flyteidl.admin.EmailMessage.sender_email', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='subject_line', full_name='flyteidl.admin.EmailMessage.subject_line', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='body', full_name='flyteidl.admin.EmailMessage.body', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=53, + serialized_end=151, +) + +DESCRIPTOR.message_types_by_name['EmailMessage'] = _EMAILMESSAGE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +EmailMessage = _reflection.GeneratedProtocolMessageType('EmailMessage', (_message.Message,), dict( + DESCRIPTOR = _EMAILMESSAGE, + __module__ = 'flyteidl.admin.notification_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) + )) +_sym_db.RegisterMessage(EmailMessage) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py new file mode 100644 index 0000000000..d2a7c21901 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py @@ -0,0 +1,276 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/project.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x1c\x66lyteidl/admin/project.proto\x12\x0e\x66lyteidl.admin\"\"\n\x06\x44omain\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"L\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\'\n\x07\x64omains\x18\x03 \x03(\x0b\x32\x16.flyteidl.admin.Domain\"5\n\x08Projects\x12)\n\x08projects\x18\x01 \x03(\x0b\x32\x17.flyteidl.admin.Project\"\x14\n\x12ProjectListRequest\"B\n\x16ProjectRegisterRequest\x12(\n\x07project\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.Project\"\x19\n\x17ProjectRegisterResponseB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') +) + + + + +_DOMAIN = _descriptor.Descriptor( + name='Domain', + full_name='flyteidl.admin.Domain', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.Domain.id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.admin.Domain.name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=48, + serialized_end=82, +) + + +_PROJECT = _descriptor.Descriptor( + name='Project', + full_name='flyteidl.admin.Project', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.Project.id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.admin.Project.name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domains', full_name='flyteidl.admin.Project.domains', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=84, + serialized_end=160, +) + + +_PROJECTS = _descriptor.Descriptor( + name='Projects', + full_name='flyteidl.admin.Projects', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='projects', full_name='flyteidl.admin.Projects.projects', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=162, + serialized_end=215, +) + + +_PROJECTLISTREQUEST = _descriptor.Descriptor( + name='ProjectListRequest', + full_name='flyteidl.admin.ProjectListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=217, + serialized_end=237, +) + + +_PROJECTREGISTERREQUEST = _descriptor.Descriptor( + name='ProjectRegisterRequest', + full_name='flyteidl.admin.ProjectRegisterRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='project', full_name='flyteidl.admin.ProjectRegisterRequest.project', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=239, + serialized_end=305, +) + + +_PROJECTREGISTERRESPONSE = _descriptor.Descriptor( + name='ProjectRegisterResponse', + full_name='flyteidl.admin.ProjectRegisterResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=307, + serialized_end=332, +) + +_PROJECT.fields_by_name['domains'].message_type = _DOMAIN +_PROJECTS.fields_by_name['projects'].message_type = _PROJECT +_PROJECTREGISTERREQUEST.fields_by_name['project'].message_type = _PROJECT +DESCRIPTOR.message_types_by_name['Domain'] = _DOMAIN +DESCRIPTOR.message_types_by_name['Project'] = _PROJECT +DESCRIPTOR.message_types_by_name['Projects'] = _PROJECTS +DESCRIPTOR.message_types_by_name['ProjectListRequest'] = _PROJECTLISTREQUEST +DESCRIPTOR.message_types_by_name['ProjectRegisterRequest'] = _PROJECTREGISTERREQUEST +DESCRIPTOR.message_types_by_name['ProjectRegisterResponse'] = _PROJECTREGISTERRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Domain = _reflection.GeneratedProtocolMessageType('Domain', (_message.Message,), dict( + DESCRIPTOR = _DOMAIN, + __module__ = 'flyteidl.admin.project_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) + )) +_sym_db.RegisterMessage(Domain) + +Project = _reflection.GeneratedProtocolMessageType('Project', (_message.Message,), dict( + DESCRIPTOR = _PROJECT, + __module__ = 'flyteidl.admin.project_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Project) + )) +_sym_db.RegisterMessage(Project) + +Projects = _reflection.GeneratedProtocolMessageType('Projects', (_message.Message,), dict( + DESCRIPTOR = _PROJECTS, + __module__ = 'flyteidl.admin.project_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) + )) +_sym_db.RegisterMessage(Projects) + +ProjectListRequest = _reflection.GeneratedProtocolMessageType('ProjectListRequest', (_message.Message,), dict( + DESCRIPTOR = _PROJECTLISTREQUEST, + __module__ = 'flyteidl.admin.project_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) + )) +_sym_db.RegisterMessage(ProjectListRequest) + +ProjectRegisterRequest = _reflection.GeneratedProtocolMessageType('ProjectRegisterRequest', (_message.Message,), dict( + DESCRIPTOR = _PROJECTREGISTERREQUEST, + __module__ = 'flyteidl.admin.project_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) + )) +_sym_db.RegisterMessage(ProjectRegisterRequest) + +ProjectRegisterResponse = _reflection.GeneratedProtocolMessageType('ProjectRegisterResponse', (_message.Message,), dict( + DESCRIPTOR = _PROJECTREGISTERRESPONSE, + __module__ = 'flyteidl.admin.project_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) + )) +_sym_db.RegisterMessage(ProjectRegisterResponse) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py new file mode 100644 index 0000000000..dfb9cde569 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py @@ -0,0 +1,174 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/schedule.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/schedule.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x1d\x66lyteidl/admin/schedule.proto\x12\x0e\x66lyteidl.admin\"G\n\tFixedRate\x12\r\n\x05value\x18\x01 \x01(\r\x12+\n\x04unit\x18\x02 \x01(\x0e\x32\x1d.flyteidl.admin.FixedRateUnit\"\x86\x01\n\x08Schedule\x12\x19\n\x0f\x63ron_expression\x18\x01 \x01(\tH\x00\x12)\n\x04rate\x18\x02 \x01(\x0b\x32\x19.flyteidl.admin.FixedRateH\x00\x12\x1e\n\x16kickoff_time_input_arg\x18\x03 \x01(\tB\x14\n\x12ScheduleExpression*.\n\rFixedRateUnit\x12\n\n\x06MINUTE\x10\x00\x12\x08\n\x04HOUR\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x42\x33Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') +) + +_FIXEDRATEUNIT = _descriptor.EnumDescriptor( + name='FixedRateUnit', + full_name='flyteidl.admin.FixedRateUnit', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='MINUTE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOUR', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DAY', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=259, + serialized_end=305, +) +_sym_db.RegisterEnumDescriptor(_FIXEDRATEUNIT) + +FixedRateUnit = enum_type_wrapper.EnumTypeWrapper(_FIXEDRATEUNIT) +MINUTE = 0 +HOUR = 1 +DAY = 2 + + + +_FIXEDRATE = _descriptor.Descriptor( + name='FixedRate', + full_name='flyteidl.admin.FixedRate', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.admin.FixedRate.value', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unit', full_name='flyteidl.admin.FixedRate.unit', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=49, + serialized_end=120, +) + + +_SCHEDULE = _descriptor.Descriptor( + name='Schedule', + full_name='flyteidl.admin.Schedule', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cron_expression', full_name='flyteidl.admin.Schedule.cron_expression', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='rate', full_name='flyteidl.admin.Schedule.rate', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='kickoff_time_input_arg', full_name='flyteidl.admin.Schedule.kickoff_time_input_arg', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='ScheduleExpression', full_name='flyteidl.admin.Schedule.ScheduleExpression', + index=0, containing_type=None, fields=[]), + ], + serialized_start=123, + serialized_end=257, +) + +_FIXEDRATE.fields_by_name['unit'].enum_type = _FIXEDRATEUNIT +_SCHEDULE.fields_by_name['rate'].message_type = _FIXEDRATE +_SCHEDULE.oneofs_by_name['ScheduleExpression'].fields.append( + _SCHEDULE.fields_by_name['cron_expression']) +_SCHEDULE.fields_by_name['cron_expression'].containing_oneof = _SCHEDULE.oneofs_by_name['ScheduleExpression'] +_SCHEDULE.oneofs_by_name['ScheduleExpression'].fields.append( + _SCHEDULE.fields_by_name['rate']) +_SCHEDULE.fields_by_name['rate'].containing_oneof = _SCHEDULE.oneofs_by_name['ScheduleExpression'] +DESCRIPTOR.message_types_by_name['FixedRate'] = _FIXEDRATE +DESCRIPTOR.message_types_by_name['Schedule'] = _SCHEDULE +DESCRIPTOR.enum_types_by_name['FixedRateUnit'] = _FIXEDRATEUNIT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FixedRate = _reflection.GeneratedProtocolMessageType('FixedRate', (_message.Message,), dict( + DESCRIPTOR = _FIXEDRATE, + __module__ = 'flyteidl.admin.schedule_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) + )) +_sym_db.RegisterMessage(FixedRate) + +Schedule = _reflection.GeneratedProtocolMessageType('Schedule', (_message.Message,), dict( + DESCRIPTOR = _SCHEDULE, + __module__ = 'flyteidl.admin.schedule_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) + )) +_sym_db.RegisterMessage(Schedule) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py new file mode 100644 index 0000000000..874b5809ef --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py @@ -0,0 +1,457 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/task_execution.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +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 duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/task_execution.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n#flyteidl/admin/task_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"M\n\x17TaskExecutionGetRequest\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifier\"\xb3\x01\n\x18TaskExecutionListRequest\x12\x41\n\x11node_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\x12\r\n\x05limit\x18\x02 \x01(\r\x12\r\n\x05token\x18\x03 \x01(\t\x12\x0f\n\x07\x66ilters\x18\x04 \x01(\t\x12%\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.Sort\"\xa0\x01\n\rTaskExecution\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifier\x12\x11\n\tinput_uri\x18\x02 \x01(\t\x12\x35\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.TaskExecutionClosure\x12\x11\n\tis_parent\x18\x04 \x01(\x08\"Z\n\x11TaskExecutionList\x12\x36\n\x0ftask_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.TaskExecution\x12\r\n\x05token\x18\x02 \x01(\t\"\xb1\x03\n\x14TaskExecutionClosure\x12\x14\n\noutput_uri\x18\x01 \x01(\tH\x00\x12.\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00\x12\x31\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.TaskExecution.Phase\x12$\n\x04logs\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLog\x12.\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x63ustom_info\x18\t \x01(\x0b\x32\x17.google.protobuf.StructB\x0f\n\routput_result\"Q\n\x1bTaskExecutionGetDataRequest\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifier\"q\n\x1cTaskExecutionGetDataResponse\x12\'\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlob\x12(\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_admin_dot_common__pb2.DESCRIPTOR,flyteidl_dot_core_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + + + + +_TASKEXECUTIONGETREQUEST = _descriptor.Descriptor( + name='TaskExecutionGetRequest', + full_name='flyteidl.admin.TaskExecutionGetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.TaskExecutionGetRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=242, + serialized_end=319, +) + + +_TASKEXECUTIONLISTREQUEST = _descriptor.Descriptor( + name='TaskExecutionListRequest', + full_name='flyteidl.admin.TaskExecutionListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='node_execution_id', full_name='flyteidl.admin.TaskExecutionListRequest.node_execution_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='limit', full_name='flyteidl.admin.TaskExecutionListRequest.limit', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.TaskExecutionListRequest.token', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='filters', full_name='flyteidl.admin.TaskExecutionListRequest.filters', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sort_by', full_name='flyteidl.admin.TaskExecutionListRequest.sort_by', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=322, + serialized_end=501, +) + + +_TASKEXECUTION = _descriptor.Descriptor( + name='TaskExecution', + full_name='flyteidl.admin.TaskExecution', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.TaskExecution.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='input_uri', full_name='flyteidl.admin.TaskExecution.input_uri', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closure', full_name='flyteidl.admin.TaskExecution.closure', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='is_parent', full_name='flyteidl.admin.TaskExecution.is_parent', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=504, + serialized_end=664, +) + + +_TASKEXECUTIONLIST = _descriptor.Descriptor( + name='TaskExecutionList', + full_name='flyteidl.admin.TaskExecutionList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='task_executions', full_name='flyteidl.admin.TaskExecutionList.task_executions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.TaskExecutionList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=666, + serialized_end=756, +) + + +_TASKEXECUTIONCLOSURE = _descriptor.Descriptor( + name='TaskExecutionClosure', + full_name='flyteidl.admin.TaskExecutionClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='output_uri', full_name='flyteidl.admin.TaskExecutionClosure.output_uri', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.admin.TaskExecutionClosure.error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.admin.TaskExecutionClosure.phase', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logs', full_name='flyteidl.admin.TaskExecutionClosure.logs', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='started_at', full_name='flyteidl.admin.TaskExecutionClosure.started_at', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='flyteidl.admin.TaskExecutionClosure.duration', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='flyteidl.admin.TaskExecutionClosure.created_at', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='updated_at', full_name='flyteidl.admin.TaskExecutionClosure.updated_at', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_info', full_name='flyteidl.admin.TaskExecutionClosure.custom_info', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='output_result', full_name='flyteidl.admin.TaskExecutionClosure.output_result', + index=0, containing_type=None, fields=[]), + ], + serialized_start=759, + serialized_end=1192, +) + + +_TASKEXECUTIONGETDATAREQUEST = _descriptor.Descriptor( + name='TaskExecutionGetDataRequest', + full_name='flyteidl.admin.TaskExecutionGetDataRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.TaskExecutionGetDataRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1194, + serialized_end=1275, +) + + +_TASKEXECUTIONGETDATARESPONSE = _descriptor.Descriptor( + name='TaskExecutionGetDataResponse', + full_name='flyteidl.admin.TaskExecutionGetDataResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='inputs', full_name='flyteidl.admin.TaskExecutionGetDataResponse.inputs', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.admin.TaskExecutionGetDataResponse.outputs', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1277, + serialized_end=1390, +) + +_TASKEXECUTIONGETREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._TASKEXECUTIONIDENTIFIER +_TASKEXECUTIONLISTREQUEST.fields_by_name['node_execution_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_TASKEXECUTIONLISTREQUEST.fields_by_name['sort_by'].message_type = flyteidl_dot_admin_dot_common__pb2._SORT +_TASKEXECUTION.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._TASKEXECUTIONIDENTIFIER +_TASKEXECUTION.fields_by_name['closure'].message_type = _TASKEXECUTIONCLOSURE +_TASKEXECUTIONLIST.fields_by_name['task_executions'].message_type = _TASKEXECUTION +_TASKEXECUTIONCLOSURE.fields_by_name['error'].message_type = flyteidl_dot_core_dot_execution__pb2._EXECUTIONERROR +_TASKEXECUTIONCLOSURE.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._TASKEXECUTION_PHASE +_TASKEXECUTIONCLOSURE.fields_by_name['logs'].message_type = flyteidl_dot_core_dot_execution__pb2._TASKLOG +_TASKEXECUTIONCLOSURE.fields_by_name['started_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASKEXECUTIONCLOSURE.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TASKEXECUTIONCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASKEXECUTIONCLOSURE.fields_by_name['updated_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASKEXECUTIONCLOSURE.fields_by_name['custom_info'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_TASKEXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']) +_TASKEXECUTIONCLOSURE.fields_by_name['output_uri'].containing_oneof = _TASKEXECUTIONCLOSURE.oneofs_by_name['output_result'] +_TASKEXECUTIONCLOSURE.oneofs_by_name['output_result'].fields.append( + _TASKEXECUTIONCLOSURE.fields_by_name['error']) +_TASKEXECUTIONCLOSURE.fields_by_name['error'].containing_oneof = _TASKEXECUTIONCLOSURE.oneofs_by_name['output_result'] +_TASKEXECUTIONGETDATAREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._TASKEXECUTIONIDENTIFIER +_TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs'].message_type = flyteidl_dot_admin_dot_common__pb2._URLBLOB +_TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs'].message_type = flyteidl_dot_admin_dot_common__pb2._URLBLOB +DESCRIPTOR.message_types_by_name['TaskExecutionGetRequest'] = _TASKEXECUTIONGETREQUEST +DESCRIPTOR.message_types_by_name['TaskExecutionListRequest'] = _TASKEXECUTIONLISTREQUEST +DESCRIPTOR.message_types_by_name['TaskExecution'] = _TASKEXECUTION +DESCRIPTOR.message_types_by_name['TaskExecutionList'] = _TASKEXECUTIONLIST +DESCRIPTOR.message_types_by_name['TaskExecutionClosure'] = _TASKEXECUTIONCLOSURE +DESCRIPTOR.message_types_by_name['TaskExecutionGetDataRequest'] = _TASKEXECUTIONGETDATAREQUEST +DESCRIPTOR.message_types_by_name['TaskExecutionGetDataResponse'] = _TASKEXECUTIONGETDATARESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TaskExecutionGetRequest = _reflection.GeneratedProtocolMessageType('TaskExecutionGetRequest', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONGETREQUEST, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) + )) +_sym_db.RegisterMessage(TaskExecutionGetRequest) + +TaskExecutionListRequest = _reflection.GeneratedProtocolMessageType('TaskExecutionListRequest', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONLISTREQUEST, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) + )) +_sym_db.RegisterMessage(TaskExecutionListRequest) + +TaskExecution = _reflection.GeneratedProtocolMessageType('TaskExecution', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTION, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) + )) +_sym_db.RegisterMessage(TaskExecution) + +TaskExecutionList = _reflection.GeneratedProtocolMessageType('TaskExecutionList', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONLIST, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) + )) +_sym_db.RegisterMessage(TaskExecutionList) + +TaskExecutionClosure = _reflection.GeneratedProtocolMessageType('TaskExecutionClosure', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONCLOSURE, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) + )) +_sym_db.RegisterMessage(TaskExecutionClosure) + +TaskExecutionGetDataRequest = _reflection.GeneratedProtocolMessageType('TaskExecutionGetDataRequest', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONGETDATAREQUEST, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) + )) +_sym_db.RegisterMessage(TaskExecutionGetDataRequest) + +TaskExecutionGetDataResponse = _reflection.GeneratedProtocolMessageType('TaskExecutionGetDataResponse', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONGETDATARESPONSE, + __module__ = 'flyteidl.admin.task_execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) + )) +_sym_db.RegisterMessage(TaskExecutionGetDataResponse) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py new file mode 100644 index 0000000000..887066b3e0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py @@ -0,0 +1,300 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/task.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/task.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x19\x66lyteidl/admin/task.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"b\n\x11TaskCreateRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12&\n\x04spec\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.TaskSpec\"\x14\n\x12TaskCreateResponse\"[\n\x04Task\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12,\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1b.flyteidl.admin.TaskClosure\">\n\x08TaskList\x12#\n\x05tasks\x18\x01 \x03(\x0b\x32\x14.flyteidl.admin.Task\x12\r\n\x05token\x18\x02 \x01(\t\"9\n\x08TaskSpec\x12-\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplate\"q\n\x0bTaskClosure\x12\x32\n\rcompiled_task\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.CompiledTask\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,flyteidl_dot_core_dot_compiler__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + + + +_TASKCREATEREQUEST = _descriptor.Descriptor( + name='TaskCreateRequest', + full_name='flyteidl.admin.TaskCreateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.TaskCreateRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spec', full_name='flyteidl.admin.TaskCreateRequest.spec', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=167, + serialized_end=265, +) + + +_TASKCREATERESPONSE = _descriptor.Descriptor( + name='TaskCreateResponse', + full_name='flyteidl.admin.TaskCreateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=267, + serialized_end=287, +) + + +_TASK = _descriptor.Descriptor( + name='Task', + full_name='flyteidl.admin.Task', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.Task.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closure', full_name='flyteidl.admin.Task.closure', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=289, + serialized_end=380, +) + + +_TASKLIST = _descriptor.Descriptor( + name='TaskList', + full_name='flyteidl.admin.TaskList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tasks', full_name='flyteidl.admin.TaskList.tasks', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.TaskList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=382, + serialized_end=444, +) + + +_TASKSPEC = _descriptor.Descriptor( + name='TaskSpec', + full_name='flyteidl.admin.TaskSpec', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='template', full_name='flyteidl.admin.TaskSpec.template', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=446, + serialized_end=503, +) + + +_TASKCLOSURE = _descriptor.Descriptor( + name='TaskClosure', + full_name='flyteidl.admin.TaskClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='compiled_task', full_name='flyteidl.admin.TaskClosure.compiled_task', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='flyteidl.admin.TaskClosure.created_at', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=505, + serialized_end=618, +) + +_TASKCREATEREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_TASKCREATEREQUEST.fields_by_name['spec'].message_type = _TASKSPEC +_TASK.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_TASK.fields_by_name['closure'].message_type = _TASKCLOSURE +_TASKLIST.fields_by_name['tasks'].message_type = _TASK +_TASKSPEC.fields_by_name['template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE +_TASKCLOSURE.fields_by_name['compiled_task'].message_type = flyteidl_dot_core_dot_compiler__pb2._COMPILEDTASK +_TASKCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name['TaskCreateRequest'] = _TASKCREATEREQUEST +DESCRIPTOR.message_types_by_name['TaskCreateResponse'] = _TASKCREATERESPONSE +DESCRIPTOR.message_types_by_name['Task'] = _TASK +DESCRIPTOR.message_types_by_name['TaskList'] = _TASKLIST +DESCRIPTOR.message_types_by_name['TaskSpec'] = _TASKSPEC +DESCRIPTOR.message_types_by_name['TaskClosure'] = _TASKCLOSURE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TaskCreateRequest = _reflection.GeneratedProtocolMessageType('TaskCreateRequest', (_message.Message,), dict( + DESCRIPTOR = _TASKCREATEREQUEST, + __module__ = 'flyteidl.admin.task_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) + )) +_sym_db.RegisterMessage(TaskCreateRequest) + +TaskCreateResponse = _reflection.GeneratedProtocolMessageType('TaskCreateResponse', (_message.Message,), dict( + DESCRIPTOR = _TASKCREATERESPONSE, + __module__ = 'flyteidl.admin.task_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) + )) +_sym_db.RegisterMessage(TaskCreateResponse) + +Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), dict( + DESCRIPTOR = _TASK, + __module__ = 'flyteidl.admin.task_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Task) + )) +_sym_db.RegisterMessage(Task) + +TaskList = _reflection.GeneratedProtocolMessageType('TaskList', (_message.Message,), dict( + DESCRIPTOR = _TASKLIST, + __module__ = 'flyteidl.admin.task_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) + )) +_sym_db.RegisterMessage(TaskList) + +TaskSpec = _reflection.GeneratedProtocolMessageType('TaskSpec', (_message.Message,), dict( + DESCRIPTOR = _TASKSPEC, + __module__ = 'flyteidl.admin.task_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) + )) +_sym_db.RegisterMessage(TaskSpec) + +TaskClosure = _reflection.GeneratedProtocolMessageType('TaskClosure', (_message.Message,), dict( + DESCRIPTOR = _TASKCLOSURE, + __module__ = 'flyteidl.admin.task_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) + )) +_sym_db.RegisterMessage(TaskClosure) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py new file mode 100644 index 0000000000..021e61b472 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py @@ -0,0 +1,301 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/workflow.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/admin/workflow.proto', + package='flyteidl.admin', + syntax='proto3', + serialized_pb=_b('\n\x1d\x66lyteidl/admin/workflow.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"j\n\x15WorkflowCreateRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12*\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpec\"\x18\n\x16WorkflowCreateResponse\"c\n\x08Workflow\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12\x30\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosure\"J\n\x0cWorkflowList\x12+\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.Workflow\x12\r\n\x05token\x18\x02 \x01(\t\"A\n\x0cWorkflowSpec\x12\x31\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\"\x84\x01\n\x0fWorkflowClosure\x12\x41\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosure\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_compiler__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,flyteidl_dot_core_dot_workflow__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_common__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + + + +_WORKFLOWCREATEREQUEST = _descriptor.Descriptor( + name='WorkflowCreateRequest', + full_name='flyteidl.admin.WorkflowCreateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.WorkflowCreateRequest.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spec', full_name='flyteidl.admin.WorkflowCreateRequest.spec', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=203, + serialized_end=309, +) + + +_WORKFLOWCREATERESPONSE = _descriptor.Descriptor( + name='WorkflowCreateResponse', + full_name='flyteidl.admin.WorkflowCreateResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=311, + serialized_end=335, +) + + +_WORKFLOW = _descriptor.Descriptor( + name='Workflow', + full_name='flyteidl.admin.Workflow', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.Workflow.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closure', full_name='flyteidl.admin.Workflow.closure', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=337, + serialized_end=436, +) + + +_WORKFLOWLIST = _descriptor.Descriptor( + name='WorkflowList', + full_name='flyteidl.admin.WorkflowList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='workflows', full_name='flyteidl.admin.WorkflowList.workflows', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='token', full_name='flyteidl.admin.WorkflowList.token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=438, + serialized_end=512, +) + + +_WORKFLOWSPEC = _descriptor.Descriptor( + name='WorkflowSpec', + full_name='flyteidl.admin.WorkflowSpec', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='template', full_name='flyteidl.admin.WorkflowSpec.template', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=514, + serialized_end=579, +) + + +_WORKFLOWCLOSURE = _descriptor.Descriptor( + name='WorkflowClosure', + full_name='flyteidl.admin.WorkflowClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='compiled_workflow', full_name='flyteidl.admin.WorkflowClosure.compiled_workflow', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='created_at', full_name='flyteidl.admin.WorkflowClosure.created_at', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=582, + serialized_end=714, +) + +_WORKFLOWCREATEREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_WORKFLOWCREATEREQUEST.fields_by_name['spec'].message_type = _WORKFLOWSPEC +_WORKFLOW.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_WORKFLOW.fields_by_name['closure'].message_type = _WORKFLOWCLOSURE +_WORKFLOWLIST.fields_by_name['workflows'].message_type = _WORKFLOW +_WORKFLOWSPEC.fields_by_name['template'].message_type = flyteidl_dot_core_dot_workflow__pb2._WORKFLOWTEMPLATE +_WORKFLOWCLOSURE.fields_by_name['compiled_workflow'].message_type = flyteidl_dot_core_dot_compiler__pb2._COMPILEDWORKFLOWCLOSURE +_WORKFLOWCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +DESCRIPTOR.message_types_by_name['WorkflowCreateRequest'] = _WORKFLOWCREATEREQUEST +DESCRIPTOR.message_types_by_name['WorkflowCreateResponse'] = _WORKFLOWCREATERESPONSE +DESCRIPTOR.message_types_by_name['Workflow'] = _WORKFLOW +DESCRIPTOR.message_types_by_name['WorkflowList'] = _WORKFLOWLIST +DESCRIPTOR.message_types_by_name['WorkflowSpec'] = _WORKFLOWSPEC +DESCRIPTOR.message_types_by_name['WorkflowClosure'] = _WORKFLOWCLOSURE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +WorkflowCreateRequest = _reflection.GeneratedProtocolMessageType('WorkflowCreateRequest', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWCREATEREQUEST, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) + )) +_sym_db.RegisterMessage(WorkflowCreateRequest) + +WorkflowCreateResponse = _reflection.GeneratedProtocolMessageType('WorkflowCreateResponse', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWCREATERESPONSE, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) + )) +_sym_db.RegisterMessage(WorkflowCreateResponse) + +Workflow = _reflection.GeneratedProtocolMessageType('Workflow', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOW, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) + )) +_sym_db.RegisterMessage(Workflow) + +WorkflowList = _reflection.GeneratedProtocolMessageType('WorkflowList', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWLIST, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) + )) +_sym_db.RegisterMessage(WorkflowList) + +WorkflowSpec = _reflection.GeneratedProtocolMessageType('WorkflowSpec', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWSPEC, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) + )) +_sym_db.RegisterMessage(WorkflowSpec) + +WorkflowClosure = _reflection.GeneratedProtocolMessageType('WorkflowClosure', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWCLOSURE, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) + )) +_sym_db.RegisterMessage(WorkflowClosure) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/__init__.py b/flyteidl/gen/pb_python/flyteidl/core/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py new file mode 100644 index 0000000000..080bf21e30 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py @@ -0,0 +1,364 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/compiler.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/compiler.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xd4\x02\n\rConnectionSet\x12@\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntry\x12<\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntry\x1a\x15\n\x06IdList\x12\x0b\n\x03ids\x18\x01 \x03(\t\x1aV\n\x0f\x44ownstreamEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdList:\x02\x38\x01\x1aT\n\rUpstreamEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdList:\x02\x38\x01\"x\n\x10\x43ompiledWorkflow\x12\x31\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\x12\x31\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSet\"=\n\x0c\x43ompiledTask\x12-\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplate\"\xaf\x01\n\x17\x43ompiledWorkflowClosure\x12\x30\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflow\x12\x36\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflow\x12*\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_workflow__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) + + + + +_CONNECTIONSET_IDLIST = _descriptor.Descriptor( + name='IdList', + full_name='flyteidl.core.ConnectionSet.IdList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ids', full_name='flyteidl.core.ConnectionSet.IdList.ids', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=250, + serialized_end=271, +) + +_CONNECTIONSET_DOWNSTREAMENTRY = _descriptor.Descriptor( + name='DownstreamEntry', + full_name='flyteidl.core.ConnectionSet.DownstreamEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.ConnectionSet.DownstreamEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.ConnectionSet.DownstreamEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=273, + serialized_end=359, +) + +_CONNECTIONSET_UPSTREAMENTRY = _descriptor.Descriptor( + name='UpstreamEntry', + full_name='flyteidl.core.ConnectionSet.UpstreamEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.ConnectionSet.UpstreamEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.ConnectionSet.UpstreamEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=361, + serialized_end=445, +) + +_CONNECTIONSET = _descriptor.Descriptor( + name='ConnectionSet', + full_name='flyteidl.core.ConnectionSet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='downstream', full_name='flyteidl.core.ConnectionSet.downstream', index=0, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='upstream', full_name='flyteidl.core.ConnectionSet.upstream', index=1, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_CONNECTIONSET_IDLIST, _CONNECTIONSET_DOWNSTREAMENTRY, _CONNECTIONSET_UPSTREAMENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=105, + serialized_end=445, +) + + +_COMPILEDWORKFLOW = _descriptor.Descriptor( + name='CompiledWorkflow', + full_name='flyteidl.core.CompiledWorkflow', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='template', full_name='flyteidl.core.CompiledWorkflow.template', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='connections', full_name='flyteidl.core.CompiledWorkflow.connections', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=447, + serialized_end=567, +) + + +_COMPILEDTASK = _descriptor.Descriptor( + name='CompiledTask', + full_name='flyteidl.core.CompiledTask', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='template', full_name='flyteidl.core.CompiledTask.template', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=569, + serialized_end=630, +) + + +_COMPILEDWORKFLOWCLOSURE = _descriptor.Descriptor( + name='CompiledWorkflowClosure', + full_name='flyteidl.core.CompiledWorkflowClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='primary', full_name='flyteidl.core.CompiledWorkflowClosure.primary', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sub_workflows', full_name='flyteidl.core.CompiledWorkflowClosure.sub_workflows', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tasks', full_name='flyteidl.core.CompiledWorkflowClosure.tasks', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=633, + serialized_end=808, +) + +_CONNECTIONSET_IDLIST.containing_type = _CONNECTIONSET +_CONNECTIONSET_DOWNSTREAMENTRY.fields_by_name['value'].message_type = _CONNECTIONSET_IDLIST +_CONNECTIONSET_DOWNSTREAMENTRY.containing_type = _CONNECTIONSET +_CONNECTIONSET_UPSTREAMENTRY.fields_by_name['value'].message_type = _CONNECTIONSET_IDLIST +_CONNECTIONSET_UPSTREAMENTRY.containing_type = _CONNECTIONSET +_CONNECTIONSET.fields_by_name['downstream'].message_type = _CONNECTIONSET_DOWNSTREAMENTRY +_CONNECTIONSET.fields_by_name['upstream'].message_type = _CONNECTIONSET_UPSTREAMENTRY +_COMPILEDWORKFLOW.fields_by_name['template'].message_type = flyteidl_dot_core_dot_workflow__pb2._WORKFLOWTEMPLATE +_COMPILEDWORKFLOW.fields_by_name['connections'].message_type = _CONNECTIONSET +_COMPILEDTASK.fields_by_name['template'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE +_COMPILEDWORKFLOWCLOSURE.fields_by_name['primary'].message_type = _COMPILEDWORKFLOW +_COMPILEDWORKFLOWCLOSURE.fields_by_name['sub_workflows'].message_type = _COMPILEDWORKFLOW +_COMPILEDWORKFLOWCLOSURE.fields_by_name['tasks'].message_type = _COMPILEDTASK +DESCRIPTOR.message_types_by_name['ConnectionSet'] = _CONNECTIONSET +DESCRIPTOR.message_types_by_name['CompiledWorkflow'] = _COMPILEDWORKFLOW +DESCRIPTOR.message_types_by_name['CompiledTask'] = _COMPILEDTASK +DESCRIPTOR.message_types_by_name['CompiledWorkflowClosure'] = _COMPILEDWORKFLOWCLOSURE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConnectionSet = _reflection.GeneratedProtocolMessageType('ConnectionSet', (_message.Message,), dict( + + IdList = _reflection.GeneratedProtocolMessageType('IdList', (_message.Message,), dict( + DESCRIPTOR = _CONNECTIONSET_IDLIST, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) + )) + , + + DownstreamEntry = _reflection.GeneratedProtocolMessageType('DownstreamEntry', (_message.Message,), dict( + DESCRIPTOR = _CONNECTIONSET_DOWNSTREAMENTRY, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.DownstreamEntry) + )) + , + + UpstreamEntry = _reflection.GeneratedProtocolMessageType('UpstreamEntry', (_message.Message,), dict( + DESCRIPTOR = _CONNECTIONSET_UPSTREAMENTRY, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.UpstreamEntry) + )) + , + DESCRIPTOR = _CONNECTIONSET, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) + )) +_sym_db.RegisterMessage(ConnectionSet) +_sym_db.RegisterMessage(ConnectionSet.IdList) +_sym_db.RegisterMessage(ConnectionSet.DownstreamEntry) +_sym_db.RegisterMessage(ConnectionSet.UpstreamEntry) + +CompiledWorkflow = _reflection.GeneratedProtocolMessageType('CompiledWorkflow', (_message.Message,), dict( + DESCRIPTOR = _COMPILEDWORKFLOW, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) + )) +_sym_db.RegisterMessage(CompiledWorkflow) + +CompiledTask = _reflection.GeneratedProtocolMessageType('CompiledTask', (_message.Message,), dict( + DESCRIPTOR = _COMPILEDTASK, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) + )) +_sym_db.RegisterMessage(CompiledTask) + +CompiledWorkflowClosure = _reflection.GeneratedProtocolMessageType('CompiledWorkflowClosure', (_message.Message,), dict( + DESCRIPTOR = _COMPILEDWORKFLOWCLOSURE, + __module__ = 'flyteidl.core.compiler_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) + )) +_sym_db.RegisterMessage(CompiledWorkflowClosure) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +_CONNECTIONSET_DOWNSTREAMENTRY.has_options = True +_CONNECTIONSET_DOWNSTREAMENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_CONNECTIONSET_UPSTREAMENTRY.has_options = True +_CONNECTIONSET_UPSTREAMENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py new file mode 100644 index 0000000000..6cef507f8d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py @@ -0,0 +1,323 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/condition.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/condition.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1d\x66lyteidl/core/condition.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/literals.proto\"\xee\x01\n\x14\x43omparisonExpression\x12>\n\x08operator\x18\x01 \x01(\x0e\x32,.flyteidl.core.ComparisonExpression.Operator\x12*\n\nleft_value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.Operand\x12+\n\x0bright_value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.Operand\"=\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03NEQ\x10\x01\x12\x06\n\x02GT\x10\x02\x12\x07\n\x03GTE\x10\x03\x12\x06\n\x02LT\x10\x04\x12\x07\n\x03LTE\x10\x05\"N\n\x07Operand\x12-\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveH\x00\x12\r\n\x03var\x18\x02 \x01(\tH\x00\x42\x05\n\x03val\"\x93\x01\n\x11\x42ooleanExpression\x12;\n\x0b\x63onjunction\x18\x01 \x01(\x0b\x32$.flyteidl.core.ConjunctionExpressionH\x00\x12\x39\n\ncomparison\x18\x02 \x01(\x0b\x32#.flyteidl.core.ComparisonExpressionH\x00\x42\x06\n\x04\x65xpr\"\xfa\x01\n\x15\x43onjunctionExpression\x12\x46\n\x08operator\x18\x01 \x01(\x0e\x32\x34.flyteidl.core.ConjunctionExpression.LogicalOperator\x12\x39\n\x0fleft_expression\x18\x02 \x01(\x0b\x32 .flyteidl.core.BooleanExpression\x12:\n\x10right_expression\x18\x03 \x01(\x0b\x32 .flyteidl.core.BooleanExpression\"\"\n\x0fLogicalOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x42\x32Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,]) + + + +_COMPARISONEXPRESSION_OPERATOR = _descriptor.EnumDescriptor( + name='Operator', + full_name='flyteidl.core.ComparisonExpression.Operator', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='EQ', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEQ', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GTE', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LT', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LTE', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=256, + serialized_end=317, +) +_sym_db.RegisterEnumDescriptor(_COMPARISONEXPRESSION_OPERATOR) + +_CONJUNCTIONEXPRESSION_LOGICALOPERATOR = _descriptor.EnumDescriptor( + name='LogicalOperator', + full_name='flyteidl.core.ConjunctionExpression.LogicalOperator', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='AND', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OR', index=1, number=1, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=766, + serialized_end=800, +) +_sym_db.RegisterEnumDescriptor(_CONJUNCTIONEXPRESSION_LOGICALOPERATOR) + + +_COMPARISONEXPRESSION = _descriptor.Descriptor( + name='ComparisonExpression', + full_name='flyteidl.core.ComparisonExpression', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='operator', full_name='flyteidl.core.ComparisonExpression.operator', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='left_value', full_name='flyteidl.core.ComparisonExpression.left_value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='right_value', full_name='flyteidl.core.ComparisonExpression.right_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _COMPARISONEXPRESSION_OPERATOR, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=79, + serialized_end=317, +) + + +_OPERAND = _descriptor.Descriptor( + name='Operand', + full_name='flyteidl.core.Operand', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='primitive', full_name='flyteidl.core.Operand.primitive', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='var', full_name='flyteidl.core.Operand.var', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='val', full_name='flyteidl.core.Operand.val', + index=0, containing_type=None, fields=[]), + ], + serialized_start=319, + serialized_end=397, +) + + +_BOOLEANEXPRESSION = _descriptor.Descriptor( + name='BooleanExpression', + full_name='flyteidl.core.BooleanExpression', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='conjunction', full_name='flyteidl.core.BooleanExpression.conjunction', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='comparison', full_name='flyteidl.core.BooleanExpression.comparison', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='expr', full_name='flyteidl.core.BooleanExpression.expr', + index=0, containing_type=None, fields=[]), + ], + serialized_start=400, + serialized_end=547, +) + + +_CONJUNCTIONEXPRESSION = _descriptor.Descriptor( + name='ConjunctionExpression', + full_name='flyteidl.core.ConjunctionExpression', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='operator', full_name='flyteidl.core.ConjunctionExpression.operator', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='left_expression', full_name='flyteidl.core.ConjunctionExpression.left_expression', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='right_expression', full_name='flyteidl.core.ConjunctionExpression.right_expression', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONJUNCTIONEXPRESSION_LOGICALOPERATOR, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=550, + serialized_end=800, +) + +_COMPARISONEXPRESSION.fields_by_name['operator'].enum_type = _COMPARISONEXPRESSION_OPERATOR +_COMPARISONEXPRESSION.fields_by_name['left_value'].message_type = _OPERAND +_COMPARISONEXPRESSION.fields_by_name['right_value'].message_type = _OPERAND +_COMPARISONEXPRESSION_OPERATOR.containing_type = _COMPARISONEXPRESSION +_OPERAND.fields_by_name['primitive'].message_type = flyteidl_dot_core_dot_literals__pb2._PRIMITIVE +_OPERAND.oneofs_by_name['val'].fields.append( + _OPERAND.fields_by_name['primitive']) +_OPERAND.fields_by_name['primitive'].containing_oneof = _OPERAND.oneofs_by_name['val'] +_OPERAND.oneofs_by_name['val'].fields.append( + _OPERAND.fields_by_name['var']) +_OPERAND.fields_by_name['var'].containing_oneof = _OPERAND.oneofs_by_name['val'] +_BOOLEANEXPRESSION.fields_by_name['conjunction'].message_type = _CONJUNCTIONEXPRESSION +_BOOLEANEXPRESSION.fields_by_name['comparison'].message_type = _COMPARISONEXPRESSION +_BOOLEANEXPRESSION.oneofs_by_name['expr'].fields.append( + _BOOLEANEXPRESSION.fields_by_name['conjunction']) +_BOOLEANEXPRESSION.fields_by_name['conjunction'].containing_oneof = _BOOLEANEXPRESSION.oneofs_by_name['expr'] +_BOOLEANEXPRESSION.oneofs_by_name['expr'].fields.append( + _BOOLEANEXPRESSION.fields_by_name['comparison']) +_BOOLEANEXPRESSION.fields_by_name['comparison'].containing_oneof = _BOOLEANEXPRESSION.oneofs_by_name['expr'] +_CONJUNCTIONEXPRESSION.fields_by_name['operator'].enum_type = _CONJUNCTIONEXPRESSION_LOGICALOPERATOR +_CONJUNCTIONEXPRESSION.fields_by_name['left_expression'].message_type = _BOOLEANEXPRESSION +_CONJUNCTIONEXPRESSION.fields_by_name['right_expression'].message_type = _BOOLEANEXPRESSION +_CONJUNCTIONEXPRESSION_LOGICALOPERATOR.containing_type = _CONJUNCTIONEXPRESSION +DESCRIPTOR.message_types_by_name['ComparisonExpression'] = _COMPARISONEXPRESSION +DESCRIPTOR.message_types_by_name['Operand'] = _OPERAND +DESCRIPTOR.message_types_by_name['BooleanExpression'] = _BOOLEANEXPRESSION +DESCRIPTOR.message_types_by_name['ConjunctionExpression'] = _CONJUNCTIONEXPRESSION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ComparisonExpression = _reflection.GeneratedProtocolMessageType('ComparisonExpression', (_message.Message,), dict( + DESCRIPTOR = _COMPARISONEXPRESSION, + __module__ = 'flyteidl.core.condition_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) + )) +_sym_db.RegisterMessage(ComparisonExpression) + +Operand = _reflection.GeneratedProtocolMessageType('Operand', (_message.Message,), dict( + DESCRIPTOR = _OPERAND, + __module__ = 'flyteidl.core.condition_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Operand) + )) +_sym_db.RegisterMessage(Operand) + +BooleanExpression = _reflection.GeneratedProtocolMessageType('BooleanExpression', (_message.Message,), dict( + DESCRIPTOR = _BOOLEANEXPRESSION, + __module__ = 'flyteidl.core.condition_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) + )) +_sym_db.RegisterMessage(BooleanExpression) + +ConjunctionExpression = _reflection.GeneratedProtocolMessageType('ConjunctionExpression', (_message.Message,), dict( + DESCRIPTOR = _CONJUNCTIONEXPRESSION, + __module__ = 'flyteidl.core.condition_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) + )) +_sym_db.RegisterMessage(ConjunctionExpression) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py new file mode 100644 index 0000000000..b283b32a8c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py @@ -0,0 +1,107 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/dynamic_job.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/dynamic_job.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1f\x66lyteidl/core/dynamic_job.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\xd7\x01\n\x0e\x44ynamicJobSpec\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.flyteidl.core.Node\x12\x15\n\rmin_successes\x18\x02 \x01(\x03\x12\'\n\x07outputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.Binding\x12*\n\x05tasks\x18\x04 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplate\x12\x35\n\x0csubworkflows\x18\x05 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,flyteidl_dot_core_dot_workflow__pb2.DESCRIPTOR,flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,]) + + + + +_DYNAMICJOBSPEC = _descriptor.Descriptor( + name='DynamicJobSpec', + full_name='flyteidl.core.DynamicJobSpec', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='nodes', full_name='flyteidl.core.DynamicJobSpec.nodes', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_successes', full_name='flyteidl.core.DynamicJobSpec.min_successes', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.core.DynamicJobSpec.outputs', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tasks', full_name='flyteidl.core.DynamicJobSpec.tasks', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='subworkflows', full_name='flyteidl.core.DynamicJobSpec.subworkflows', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=353, +) + +_DYNAMICJOBSPEC.fields_by_name['nodes'].message_type = flyteidl_dot_core_dot_workflow__pb2._NODE +_DYNAMICJOBSPEC.fields_by_name['outputs'].message_type = flyteidl_dot_core_dot_literals__pb2._BINDING +_DYNAMICJOBSPEC.fields_by_name['tasks'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE +_DYNAMICJOBSPEC.fields_by_name['subworkflows'].message_type = flyteidl_dot_core_dot_workflow__pb2._WORKFLOWTEMPLATE +DESCRIPTOR.message_types_by_name['DynamicJobSpec'] = _DYNAMICJOBSPEC +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DynamicJobSpec = _reflection.GeneratedProtocolMessageType('DynamicJobSpec', (_message.Message,), dict( + DESCRIPTOR = _DYNAMICJOBSPEC, + __module__ = 'flyteidl.core.dynamic_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) + )) +_sym_db.RegisterMessage(DynamicJobSpec) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py new file mode 100644 index 0000000000..f7c7cd72dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py @@ -0,0 +1,150 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/errors.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/errors.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\"\x8f\x01\n\x0e\x43ontainerError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x30\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.Kind\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"=\n\rErrorDocument\x12,\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') +) + + + +_CONTAINERERROR_KIND = _descriptor.EnumDescriptor( + name='Kind', + full_name='flyteidl.core.ContainerError.Kind', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='NON_RECOVERABLE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RECOVERABLE', index=1, number=1, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=145, + serialized_end=189, +) +_sym_db.RegisterEnumDescriptor(_CONTAINERERROR_KIND) + + +_CONTAINERERROR = _descriptor.Descriptor( + name='ContainerError', + full_name='flyteidl.core.ContainerError', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='flyteidl.core.ContainerError.code', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message', full_name='flyteidl.core.ContainerError.message', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='kind', full_name='flyteidl.core.ContainerError.kind', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONTAINERERROR_KIND, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=46, + serialized_end=189, +) + + +_ERRORDOCUMENT = _descriptor.Descriptor( + name='ErrorDocument', + full_name='flyteidl.core.ErrorDocument', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.core.ErrorDocument.error', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=191, + serialized_end=252, +) + +_CONTAINERERROR.fields_by_name['kind'].enum_type = _CONTAINERERROR_KIND +_CONTAINERERROR_KIND.containing_type = _CONTAINERERROR +_ERRORDOCUMENT.fields_by_name['error'].message_type = _CONTAINERERROR +DESCRIPTOR.message_types_by_name['ContainerError'] = _CONTAINERERROR +DESCRIPTOR.message_types_by_name['ErrorDocument'] = _ERRORDOCUMENT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ContainerError = _reflection.GeneratedProtocolMessageType('ContainerError', (_message.Message,), dict( + DESCRIPTOR = _CONTAINERERROR, + __module__ = 'flyteidl.core.errors_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) + )) +_sym_db.RegisterMessage(ContainerError) + +ErrorDocument = _reflection.GeneratedProtocolMessageType('ErrorDocument', (_message.Message,), dict( + DESCRIPTOR = _ERRORDOCUMENT, + __module__ = 'flyteidl.core.errors_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) + )) +_sym_db.RegisterMessage(ErrorDocument) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py new file mode 100644 index 0000000000..e326a3ca5b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py @@ -0,0 +1,417 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/execution.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/execution.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1d\x66lyteidl/core/execution.proto\x12\rflyteidl.core\x1a\x1egoogle/protobuf/duration.proto\"\x99\x01\n\x11WorkflowExecution\"\x83\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nSUCCEEDING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0b\n\x07\x46\x41ILING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x41\x42ORTED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\"\x92\x01\n\rNodeExecution\"\x80\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x46\x41ILING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\"h\n\rTaskExecution\"W\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x41\x42ORTED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"B\n\x0e\x45xecutionError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x11\n\terror_uri\x18\x03 \x01(\t\"\xbb\x01\n\x07TaskLog\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12<\n\x0emessage_format\x18\x03 \x01(\x0e\x32$.flyteidl.core.TaskLog.MessageFormat\x12&\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\"/\n\rMessageFormat\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43SV\x10\x01\x12\x08\n\x04JSON\x10\x02\x42\x32Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + + + +_WORKFLOWEXECUTION_PHASE = _descriptor.EnumDescriptor( + name='Phase', + full_name='flyteidl.core.WorkflowExecution.Phase', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNDEFINED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUEUED', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RUNNING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUCCEEDING', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUCCEEDED', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FAILING', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FAILED', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ABORTED', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TIMED_OUT', index=8, number=8, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=103, + serialized_end=234, +) +_sym_db.RegisterEnumDescriptor(_WORKFLOWEXECUTION_PHASE) + +_NODEEXECUTION_PHASE = _descriptor.EnumDescriptor( + name='Phase', + full_name='flyteidl.core.NodeExecution.Phase', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNDEFINED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUEUED', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RUNNING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUCCEEDED', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FAILING', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FAILED', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ABORTED', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SKIPPED', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TIMED_OUT', index=8, number=8, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=255, + serialized_end=383, +) +_sym_db.RegisterEnumDescriptor(_NODEEXECUTION_PHASE) + +_TASKEXECUTION_PHASE = _descriptor.EnumDescriptor( + name='Phase', + full_name='flyteidl.core.TaskExecution.Phase', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNDEFINED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUEUED', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RUNNING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUCCEEDED', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ABORTED', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FAILED', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=402, + serialized_end=489, +) +_sym_db.RegisterEnumDescriptor(_TASKEXECUTION_PHASE) + +_TASKLOG_MESSAGEFORMAT = _descriptor.EnumDescriptor( + name='MessageFormat', + full_name='flyteidl.core.TaskLog.MessageFormat', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CSV', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='JSON', index=2, number=2, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=700, + serialized_end=747, +) +_sym_db.RegisterEnumDescriptor(_TASKLOG_MESSAGEFORMAT) + + +_WORKFLOWEXECUTION = _descriptor.Descriptor( + name='WorkflowExecution', + full_name='flyteidl.core.WorkflowExecution', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _WORKFLOWEXECUTION_PHASE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=81, + serialized_end=234, +) + + +_NODEEXECUTION = _descriptor.Descriptor( + name='NodeExecution', + full_name='flyteidl.core.NodeExecution', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _NODEEXECUTION_PHASE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=237, + serialized_end=383, +) + + +_TASKEXECUTION = _descriptor.Descriptor( + name='TaskExecution', + full_name='flyteidl.core.TaskExecution', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TASKEXECUTION_PHASE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=385, + serialized_end=489, +) + + +_EXECUTIONERROR = _descriptor.Descriptor( + name='ExecutionError', + full_name='flyteidl.core.ExecutionError', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='code', full_name='flyteidl.core.ExecutionError.code', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message', full_name='flyteidl.core.ExecutionError.message', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error_uri', full_name='flyteidl.core.ExecutionError.error_uri', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=491, + serialized_end=557, +) + + +_TASKLOG = _descriptor.Descriptor( + name='TaskLog', + full_name='flyteidl.core.TaskLog', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uri', full_name='flyteidl.core.TaskLog.uri', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.core.TaskLog.name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message_format', full_name='flyteidl.core.TaskLog.message_format', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ttl', full_name='flyteidl.core.TaskLog.ttl', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TASKLOG_MESSAGEFORMAT, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=560, + serialized_end=747, +) + +_WORKFLOWEXECUTION_PHASE.containing_type = _WORKFLOWEXECUTION +_NODEEXECUTION_PHASE.containing_type = _NODEEXECUTION +_TASKEXECUTION_PHASE.containing_type = _TASKEXECUTION +_TASKLOG.fields_by_name['message_format'].enum_type = _TASKLOG_MESSAGEFORMAT +_TASKLOG.fields_by_name['ttl'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TASKLOG_MESSAGEFORMAT.containing_type = _TASKLOG +DESCRIPTOR.message_types_by_name['WorkflowExecution'] = _WORKFLOWEXECUTION +DESCRIPTOR.message_types_by_name['NodeExecution'] = _NODEEXECUTION +DESCRIPTOR.message_types_by_name['TaskExecution'] = _TASKEXECUTION +DESCRIPTOR.message_types_by_name['ExecutionError'] = _EXECUTIONERROR +DESCRIPTOR.message_types_by_name['TaskLog'] = _TASKLOG +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +WorkflowExecution = _reflection.GeneratedProtocolMessageType('WorkflowExecution', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTION, + __module__ = 'flyteidl.core.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) + )) +_sym_db.RegisterMessage(WorkflowExecution) + +NodeExecution = _reflection.GeneratedProtocolMessageType('NodeExecution', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTION, + __module__ = 'flyteidl.core.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) + )) +_sym_db.RegisterMessage(NodeExecution) + +TaskExecution = _reflection.GeneratedProtocolMessageType('TaskExecution', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTION, + __module__ = 'flyteidl.core.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) + )) +_sym_db.RegisterMessage(TaskExecution) + +ExecutionError = _reflection.GeneratedProtocolMessageType('ExecutionError', (_message.Message,), dict( + DESCRIPTOR = _EXECUTIONERROR, + __module__ = 'flyteidl.core.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) + )) +_sym_db.RegisterMessage(ExecutionError) + +TaskLog = _reflection.GeneratedProtocolMessageType('TaskLog', (_message.Message,), dict( + DESCRIPTOR = _TASKLOG, + __module__ = 'flyteidl.core.execution_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) + )) +_sym_db.RegisterMessage(TaskLog) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py new file mode 100644 index 0000000000..5eae84c5d0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py @@ -0,0 +1,292 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/identifier.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/identifier.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1e\x66lyteidl/core/identifier.proto\x12\rflyteidl.core\"\x80\x01\n\nIdentifier\x12\x32\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceType\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x0e\n\x06\x64omain\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\"L\n\x1bWorkflowExecutionIdentifier\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\"l\n\x17NodeExecutionIdentifier\x12\x0f\n\x07node_id\x18\x01 \x01(\t\x12@\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"\x9f\x01\n\x17TaskExecutionIdentifier\x12*\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12\x41\n\x11node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\x12\x15\n\rretry_attempt\x18\x03 \x01(\r*H\n\x0cResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04TASK\x10\x01\x12\x0c\n\x08WORKFLOW\x10\x02\x12\x0f\n\x0bLAUNCH_PLAN\x10\x03\x42\x32Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') +) + +_RESOURCETYPE = _descriptor.EnumDescriptor( + name='ResourceType', + full_name='flyteidl.core.ResourceType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TASK', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WORKFLOW', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LAUNCH_PLAN', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=530, + serialized_end=602, +) +_sym_db.RegisterEnumDescriptor(_RESOURCETYPE) + +ResourceType = enum_type_wrapper.EnumTypeWrapper(_RESOURCETYPE) +UNSPECIFIED = 0 +TASK = 1 +WORKFLOW = 2 +LAUNCH_PLAN = 3 + + + +_IDENTIFIER = _descriptor.Descriptor( + name='Identifier', + full_name='flyteidl.core.Identifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_type', full_name='flyteidl.core.Identifier.resource_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='project', full_name='flyteidl.core.Identifier.project', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain', full_name='flyteidl.core.Identifier.domain', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.core.Identifier.name', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='version', full_name='flyteidl.core.Identifier.version', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=50, + serialized_end=178, +) + + +_WORKFLOWEXECUTIONIDENTIFIER = _descriptor.Descriptor( + name='WorkflowExecutionIdentifier', + full_name='flyteidl.core.WorkflowExecutionIdentifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='project', full_name='flyteidl.core.WorkflowExecutionIdentifier.project', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain', full_name='flyteidl.core.WorkflowExecutionIdentifier.domain', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.core.WorkflowExecutionIdentifier.name', index=2, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=180, + serialized_end=256, +) + + +_NODEEXECUTIONIDENTIFIER = _descriptor.Descriptor( + name='NodeExecutionIdentifier', + full_name='flyteidl.core.NodeExecutionIdentifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='node_id', full_name='flyteidl.core.NodeExecutionIdentifier.node_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='execution_id', full_name='flyteidl.core.NodeExecutionIdentifier.execution_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=258, + serialized_end=366, +) + + +_TASKEXECUTIONIDENTIFIER = _descriptor.Descriptor( + name='TaskExecutionIdentifier', + full_name='flyteidl.core.TaskExecutionIdentifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='task_id', full_name='flyteidl.core.TaskExecutionIdentifier.task_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='node_execution_id', full_name='flyteidl.core.TaskExecutionIdentifier.node_execution_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='retry_attempt', full_name='flyteidl.core.TaskExecutionIdentifier.retry_attempt', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=369, + serialized_end=528, +) + +_IDENTIFIER.fields_by_name['resource_type'].enum_type = _RESOURCETYPE +_NODEEXECUTIONIDENTIFIER.fields_by_name['execution_id'].message_type = _WORKFLOWEXECUTIONIDENTIFIER +_TASKEXECUTIONIDENTIFIER.fields_by_name['task_id'].message_type = _IDENTIFIER +_TASKEXECUTIONIDENTIFIER.fields_by_name['node_execution_id'].message_type = _NODEEXECUTIONIDENTIFIER +DESCRIPTOR.message_types_by_name['Identifier'] = _IDENTIFIER +DESCRIPTOR.message_types_by_name['WorkflowExecutionIdentifier'] = _WORKFLOWEXECUTIONIDENTIFIER +DESCRIPTOR.message_types_by_name['NodeExecutionIdentifier'] = _NODEEXECUTIONIDENTIFIER +DESCRIPTOR.message_types_by_name['TaskExecutionIdentifier'] = _TASKEXECUTIONIDENTIFIER +DESCRIPTOR.enum_types_by_name['ResourceType'] = _RESOURCETYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Identifier = _reflection.GeneratedProtocolMessageType('Identifier', (_message.Message,), dict( + DESCRIPTOR = _IDENTIFIER, + __module__ = 'flyteidl.core.identifier_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) + )) +_sym_db.RegisterMessage(Identifier) + +WorkflowExecutionIdentifier = _reflection.GeneratedProtocolMessageType('WorkflowExecutionIdentifier', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONIDENTIFIER, + __module__ = 'flyteidl.core.identifier_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) + )) +_sym_db.RegisterMessage(WorkflowExecutionIdentifier) + +NodeExecutionIdentifier = _reflection.GeneratedProtocolMessageType('NodeExecutionIdentifier', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONIDENTIFIER, + __module__ = 'flyteidl.core.identifier_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) + )) +_sym_db.RegisterMessage(NodeExecutionIdentifier) + +TaskExecutionIdentifier = _reflection.GeneratedProtocolMessageType('TaskExecutionIdentifier', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONIDENTIFIER, + __module__ = 'flyteidl.core.identifier_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) + )) +_sym_db.RegisterMessage(TaskExecutionIdentifier) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py new file mode 100644 index 0000000000..f81832a7ea --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py @@ -0,0 +1,372 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/interface.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/interface.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1d\x66lyteidl/core/interface.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/literals.proto\"I\n\x08Variable\x12(\n\x04type\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralType\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"\x96\x01\n\x0bVariableMap\x12<\n\tvariables\x18\x01 \x03(\x0b\x32).flyteidl.core.VariableMap.VariablesEntry\x1aI\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.flyteidl.core.Variable:\x02\x38\x01\"i\n\x0eTypedInterface\x12*\n\x06inputs\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.VariableMap\x12+\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMap\"|\n\tParameter\x12$\n\x03var\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.Variable\x12)\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00\x12\x12\n\x08required\x18\x03 \x01(\x08H\x00\x42\n\n\x08\x62\x65havior\"\x9c\x01\n\x0cParameterMap\x12?\n\nparameters\x18\x01 \x03(\x0b\x32+.flyteidl.core.ParameterMap.ParametersEntry\x1aK\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.Parameter:\x02\x38\x01\x42\x32Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_types__pb2.DESCRIPTOR,flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,]) + + + + +_VARIABLE = _descriptor.Descriptor( + name='Variable', + full_name='flyteidl.core.Variable', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='type', full_name='flyteidl.core.Variable.type', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='flyteidl.core.Variable.description', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=105, + serialized_end=178, +) + + +_VARIABLEMAP_VARIABLESENTRY = _descriptor.Descriptor( + name='VariablesEntry', + full_name='flyteidl.core.VariableMap.VariablesEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.VariableMap.VariablesEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.VariableMap.VariablesEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=258, + serialized_end=331, +) + +_VARIABLEMAP = _descriptor.Descriptor( + name='VariableMap', + full_name='flyteidl.core.VariableMap', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='variables', full_name='flyteidl.core.VariableMap.variables', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_VARIABLEMAP_VARIABLESENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=181, + serialized_end=331, +) + + +_TYPEDINTERFACE = _descriptor.Descriptor( + name='TypedInterface', + full_name='flyteidl.core.TypedInterface', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='inputs', full_name='flyteidl.core.TypedInterface.inputs', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.core.TypedInterface.outputs', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=333, + serialized_end=438, +) + + +_PARAMETER = _descriptor.Descriptor( + name='Parameter', + full_name='flyteidl.core.Parameter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='var', full_name='flyteidl.core.Parameter.var', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='default', full_name='flyteidl.core.Parameter.default', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='required', full_name='flyteidl.core.Parameter.required', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='behavior', full_name='flyteidl.core.Parameter.behavior', + index=0, containing_type=None, fields=[]), + ], + serialized_start=440, + serialized_end=564, +) + + +_PARAMETERMAP_PARAMETERSENTRY = _descriptor.Descriptor( + name='ParametersEntry', + full_name='flyteidl.core.ParameterMap.ParametersEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.ParameterMap.ParametersEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.ParameterMap.ParametersEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=648, + serialized_end=723, +) + +_PARAMETERMAP = _descriptor.Descriptor( + name='ParameterMap', + full_name='flyteidl.core.ParameterMap', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parameters', full_name='flyteidl.core.ParameterMap.parameters', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_PARAMETERMAP_PARAMETERSENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=567, + serialized_end=723, +) + +_VARIABLE.fields_by_name['type'].message_type = flyteidl_dot_core_dot_types__pb2._LITERALTYPE +_VARIABLEMAP_VARIABLESENTRY.fields_by_name['value'].message_type = _VARIABLE +_VARIABLEMAP_VARIABLESENTRY.containing_type = _VARIABLEMAP +_VARIABLEMAP.fields_by_name['variables'].message_type = _VARIABLEMAP_VARIABLESENTRY +_TYPEDINTERFACE.fields_by_name['inputs'].message_type = _VARIABLEMAP +_TYPEDINTERFACE.fields_by_name['outputs'].message_type = _VARIABLEMAP +_PARAMETER.fields_by_name['var'].message_type = _VARIABLE +_PARAMETER.fields_by_name['default'].message_type = flyteidl_dot_core_dot_literals__pb2._LITERAL +_PARAMETER.oneofs_by_name['behavior'].fields.append( + _PARAMETER.fields_by_name['default']) +_PARAMETER.fields_by_name['default'].containing_oneof = _PARAMETER.oneofs_by_name['behavior'] +_PARAMETER.oneofs_by_name['behavior'].fields.append( + _PARAMETER.fields_by_name['required']) +_PARAMETER.fields_by_name['required'].containing_oneof = _PARAMETER.oneofs_by_name['behavior'] +_PARAMETERMAP_PARAMETERSENTRY.fields_by_name['value'].message_type = _PARAMETER +_PARAMETERMAP_PARAMETERSENTRY.containing_type = _PARAMETERMAP +_PARAMETERMAP.fields_by_name['parameters'].message_type = _PARAMETERMAP_PARAMETERSENTRY +DESCRIPTOR.message_types_by_name['Variable'] = _VARIABLE +DESCRIPTOR.message_types_by_name['VariableMap'] = _VARIABLEMAP +DESCRIPTOR.message_types_by_name['TypedInterface'] = _TYPEDINTERFACE +DESCRIPTOR.message_types_by_name['Parameter'] = _PARAMETER +DESCRIPTOR.message_types_by_name['ParameterMap'] = _PARAMETERMAP +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Variable = _reflection.GeneratedProtocolMessageType('Variable', (_message.Message,), dict( + DESCRIPTOR = _VARIABLE, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Variable) + )) +_sym_db.RegisterMessage(Variable) + +VariableMap = _reflection.GeneratedProtocolMessageType('VariableMap', (_message.Message,), dict( + + VariablesEntry = _reflection.GeneratedProtocolMessageType('VariablesEntry', (_message.Message,), dict( + DESCRIPTOR = _VARIABLEMAP_VARIABLESENTRY, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap.VariablesEntry) + )) + , + DESCRIPTOR = _VARIABLEMAP, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) + )) +_sym_db.RegisterMessage(VariableMap) +_sym_db.RegisterMessage(VariableMap.VariablesEntry) + +TypedInterface = _reflection.GeneratedProtocolMessageType('TypedInterface', (_message.Message,), dict( + DESCRIPTOR = _TYPEDINTERFACE, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) + )) +_sym_db.RegisterMessage(TypedInterface) + +Parameter = _reflection.GeneratedProtocolMessageType('Parameter', (_message.Message,), dict( + DESCRIPTOR = _PARAMETER, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) + )) +_sym_db.RegisterMessage(Parameter) + +ParameterMap = _reflection.GeneratedProtocolMessageType('ParameterMap', (_message.Message,), dict( + + ParametersEntry = _reflection.GeneratedProtocolMessageType('ParametersEntry', (_message.Message,), dict( + DESCRIPTOR = _PARAMETERMAP_PARAMETERSENTRY, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap.ParametersEntry) + )) + , + DESCRIPTOR = _PARAMETERMAP, + __module__ = 'flyteidl.core.interface_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) + )) +_sym_db.RegisterMessage(ParameterMap) +_sym_db.RegisterMessage(ParameterMap.ParametersEntry) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +_VARIABLEMAP_VARIABLESENTRY.has_options = True +_VARIABLEMAP_VARIABLESENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_PARAMETERMAP_PARAMETERSENTRY.has_options = True +_PARAMETERMAP_PARAMETERSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py new file mode 100644 index 0000000000..c402b7d54a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py @@ -0,0 +1,995 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/literals.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/literals.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1c\x66lyteidl/core/literals.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x19\x66lyteidl/core/types.proto\"\xc8\x01\n\tPrimitive\x12\x11\n\x07integer\x18\x01 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x11\n\x07\x62oolean\x18\x04 \x01(\x08H\x00\x12.\n\x08\x64\x61tetime\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12-\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x42\x07\n\x05value\"\x06\n\x04Void\"B\n\x04\x42lob\x12-\n\x08metadata\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.BlobMetadata\x12\x0b\n\x03uri\x18\x03 \x01(\t\"5\n\x0c\x42lobMetadata\x12%\n\x04type\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.BlobType\"$\n\x06\x42inary\x12\r\n\x05value\x18\x01 \x01(\x0c\x12\x0b\n\x03tag\x18\x02 \x01(\t\">\n\x06Schema\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\'\n\x04type\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.SchemaType\"\xb4\x02\n\x06Scalar\x12-\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveH\x00\x12#\n\x04\x62lob\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.BlobH\x00\x12\'\n\x06\x62inary\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.BinaryH\x00\x12\'\n\x06schema\x18\x04 \x01(\x0b\x32\x15.flyteidl.core.SchemaH\x00\x12(\n\tnone_type\x18\x05 \x01(\x0b\x32\x13.flyteidl.core.VoidH\x00\x12%\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00\x12*\n\x07generic\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x42\x07\n\x05value\"\x9d\x01\n\x07Literal\x12\'\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00\x12\x36\n\ncollection\x18\x02 \x01(\x0b\x32 .flyteidl.core.LiteralCollectionH\x00\x12(\n\x03map\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00\x42\x07\n\x05value\"=\n\x11LiteralCollection\x12(\n\x08literals\x18\x01 \x03(\x0b\x32\x16.flyteidl.core.Literal\"\x90\x01\n\nLiteralMap\x12\x39\n\x08literals\x18\x01 \x03(\x0b\x32\'.flyteidl.core.LiteralMap.LiteralsEntry\x1aG\n\rLiteralsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.Literal:\x02\x38\x01\"E\n\x15\x42indingDataCollection\x12,\n\x08\x62indings\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.BindingData\"\x9c\x01\n\x0e\x42indingDataMap\x12=\n\x08\x62indings\x18\x01 \x03(\x0b\x32+.flyteidl.core.BindingDataMap.BindingsEntry\x1aK\n\rBindingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingData:\x02\x38\x01\"\xdc\x01\n\x0b\x42indingData\x12\'\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00\x12:\n\ncollection\x18\x02 \x01(\x0b\x32$.flyteidl.core.BindingDataCollectionH\x00\x12\x31\n\x07promise\x18\x03 \x01(\x0b\x32\x1e.flyteidl.core.OutputReferenceH\x00\x12,\n\x03map\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.BindingDataMapH\x00\x42\x07\n\x05value\"C\n\x07\x42inding\x12\x0b\n\x03var\x18\x01 \x01(\t\x12+\n\x07\x62inding\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingData\"*\n\x0cKeyValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\" \n\rRetryStrategy\x12\x0f\n\x07retries\x18\x05 \x01(\rB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,flyteidl_dot_core_dot_types__pb2.DESCRIPTOR,]) + + + + +_PRIMITIVE = _descriptor.Descriptor( + name='Primitive', + full_name='flyteidl.core.Primitive', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='integer', full_name='flyteidl.core.Primitive.integer', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='float_value', full_name='flyteidl.core.Primitive.float_value', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string_value', full_name='flyteidl.core.Primitive.string_value', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='boolean', full_name='flyteidl.core.Primitive.boolean', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='datetime', full_name='flyteidl.core.Primitive.datetime', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='flyteidl.core.Primitive.duration', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='value', full_name='flyteidl.core.Primitive.value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=170, + serialized_end=370, +) + + +_VOID = _descriptor.Descriptor( + name='Void', + full_name='flyteidl.core.Void', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=372, + serialized_end=378, +) + + +_BLOB = _descriptor.Descriptor( + name='Blob', + full_name='flyteidl.core.Blob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='metadata', full_name='flyteidl.core.Blob.metadata', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri', full_name='flyteidl.core.Blob.uri', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=380, + serialized_end=446, +) + + +_BLOBMETADATA = _descriptor.Descriptor( + name='BlobMetadata', + full_name='flyteidl.core.BlobMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='type', full_name='flyteidl.core.BlobMetadata.type', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=448, + serialized_end=501, +) + + +_BINARY = _descriptor.Descriptor( + name='Binary', + full_name='flyteidl.core.Binary', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.Binary.value', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tag', full_name='flyteidl.core.Binary.tag', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=503, + serialized_end=539, +) + + +_SCHEMA = _descriptor.Descriptor( + name='Schema', + full_name='flyteidl.core.Schema', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='uri', full_name='flyteidl.core.Schema.uri', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='flyteidl.core.Schema.type', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=541, + serialized_end=603, +) + + +_SCALAR = _descriptor.Descriptor( + name='Scalar', + full_name='flyteidl.core.Scalar', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='primitive', full_name='flyteidl.core.Scalar.primitive', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='blob', full_name='flyteidl.core.Scalar.blob', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='binary', full_name='flyteidl.core.Scalar.binary', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='schema', full_name='flyteidl.core.Scalar.schema', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='none_type', full_name='flyteidl.core.Scalar.none_type', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.core.Scalar.error', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='generic', full_name='flyteidl.core.Scalar.generic', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='value', full_name='flyteidl.core.Scalar.value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=606, + serialized_end=914, +) + + +_LITERAL = _descriptor.Descriptor( + name='Literal', + full_name='flyteidl.core.Literal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='scalar', full_name='flyteidl.core.Literal.scalar', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='collection', full_name='flyteidl.core.Literal.collection', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map', full_name='flyteidl.core.Literal.map', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='value', full_name='flyteidl.core.Literal.value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=917, + serialized_end=1074, +) + + +_LITERALCOLLECTION = _descriptor.Descriptor( + name='LiteralCollection', + full_name='flyteidl.core.LiteralCollection', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='literals', full_name='flyteidl.core.LiteralCollection.literals', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1076, + serialized_end=1137, +) + + +_LITERALMAP_LITERALSENTRY = _descriptor.Descriptor( + name='LiteralsEntry', + full_name='flyteidl.core.LiteralMap.LiteralsEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.LiteralMap.LiteralsEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.LiteralMap.LiteralsEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1213, + serialized_end=1284, +) + +_LITERALMAP = _descriptor.Descriptor( + name='LiteralMap', + full_name='flyteidl.core.LiteralMap', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='literals', full_name='flyteidl.core.LiteralMap.literals', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_LITERALMAP_LITERALSENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1140, + serialized_end=1284, +) + + +_BINDINGDATACOLLECTION = _descriptor.Descriptor( + name='BindingDataCollection', + full_name='flyteidl.core.BindingDataCollection', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='bindings', full_name='flyteidl.core.BindingDataCollection.bindings', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1286, + serialized_end=1355, +) + + +_BINDINGDATAMAP_BINDINGSENTRY = _descriptor.Descriptor( + name='BindingsEntry', + full_name='flyteidl.core.BindingDataMap.BindingsEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.BindingDataMap.BindingsEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.BindingDataMap.BindingsEntry.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1439, + serialized_end=1514, +) + +_BINDINGDATAMAP = _descriptor.Descriptor( + name='BindingDataMap', + full_name='flyteidl.core.BindingDataMap', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='bindings', full_name='flyteidl.core.BindingDataMap.bindings', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_BINDINGDATAMAP_BINDINGSENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1358, + serialized_end=1514, +) + + +_BINDINGDATA = _descriptor.Descriptor( + name='BindingData', + full_name='flyteidl.core.BindingData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='scalar', full_name='flyteidl.core.BindingData.scalar', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='collection', full_name='flyteidl.core.BindingData.collection', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='promise', full_name='flyteidl.core.BindingData.promise', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map', full_name='flyteidl.core.BindingData.map', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='value', full_name='flyteidl.core.BindingData.value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1517, + serialized_end=1737, +) + + +_BINDING = _descriptor.Descriptor( + name='Binding', + full_name='flyteidl.core.Binding', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='var', full_name='flyteidl.core.Binding.var', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='binding', full_name='flyteidl.core.Binding.binding', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1739, + serialized_end=1806, +) + + +_KEYVALUEPAIR = _descriptor.Descriptor( + name='KeyValuePair', + full_name='flyteidl.core.KeyValuePair', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.core.KeyValuePair.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.KeyValuePair.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1808, + serialized_end=1850, +) + + +_RETRYSTRATEGY = _descriptor.Descriptor( + name='RetryStrategy', + full_name='flyteidl.core.RetryStrategy', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='retries', full_name='flyteidl.core.RetryStrategy.retries', index=0, + number=5, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1852, + serialized_end=1884, +) + +_PRIMITIVE.fields_by_name['datetime'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_PRIMITIVE.fields_by_name['duration'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_PRIMITIVE.oneofs_by_name['value'].fields.append( + _PRIMITIVE.fields_by_name['integer']) +_PRIMITIVE.fields_by_name['integer'].containing_oneof = _PRIMITIVE.oneofs_by_name['value'] +_PRIMITIVE.oneofs_by_name['value'].fields.append( + _PRIMITIVE.fields_by_name['float_value']) +_PRIMITIVE.fields_by_name['float_value'].containing_oneof = _PRIMITIVE.oneofs_by_name['value'] +_PRIMITIVE.oneofs_by_name['value'].fields.append( + _PRIMITIVE.fields_by_name['string_value']) +_PRIMITIVE.fields_by_name['string_value'].containing_oneof = _PRIMITIVE.oneofs_by_name['value'] +_PRIMITIVE.oneofs_by_name['value'].fields.append( + _PRIMITIVE.fields_by_name['boolean']) +_PRIMITIVE.fields_by_name['boolean'].containing_oneof = _PRIMITIVE.oneofs_by_name['value'] +_PRIMITIVE.oneofs_by_name['value'].fields.append( + _PRIMITIVE.fields_by_name['datetime']) +_PRIMITIVE.fields_by_name['datetime'].containing_oneof = _PRIMITIVE.oneofs_by_name['value'] +_PRIMITIVE.oneofs_by_name['value'].fields.append( + _PRIMITIVE.fields_by_name['duration']) +_PRIMITIVE.fields_by_name['duration'].containing_oneof = _PRIMITIVE.oneofs_by_name['value'] +_BLOB.fields_by_name['metadata'].message_type = _BLOBMETADATA +_BLOBMETADATA.fields_by_name['type'].message_type = flyteidl_dot_core_dot_types__pb2._BLOBTYPE +_SCHEMA.fields_by_name['type'].message_type = flyteidl_dot_core_dot_types__pb2._SCHEMATYPE +_SCALAR.fields_by_name['primitive'].message_type = _PRIMITIVE +_SCALAR.fields_by_name['blob'].message_type = _BLOB +_SCALAR.fields_by_name['binary'].message_type = _BINARY +_SCALAR.fields_by_name['schema'].message_type = _SCHEMA +_SCALAR.fields_by_name['none_type'].message_type = _VOID +_SCALAR.fields_by_name['error'].message_type = flyteidl_dot_core_dot_types__pb2._ERROR +_SCALAR.fields_by_name['generic'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['primitive']) +_SCALAR.fields_by_name['primitive'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['blob']) +_SCALAR.fields_by_name['blob'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['binary']) +_SCALAR.fields_by_name['binary'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['schema']) +_SCALAR.fields_by_name['schema'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['none_type']) +_SCALAR.fields_by_name['none_type'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['error']) +_SCALAR.fields_by_name['error'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_SCALAR.oneofs_by_name['value'].fields.append( + _SCALAR.fields_by_name['generic']) +_SCALAR.fields_by_name['generic'].containing_oneof = _SCALAR.oneofs_by_name['value'] +_LITERAL.fields_by_name['scalar'].message_type = _SCALAR +_LITERAL.fields_by_name['collection'].message_type = _LITERALCOLLECTION +_LITERAL.fields_by_name['map'].message_type = _LITERALMAP +_LITERAL.oneofs_by_name['value'].fields.append( + _LITERAL.fields_by_name['scalar']) +_LITERAL.fields_by_name['scalar'].containing_oneof = _LITERAL.oneofs_by_name['value'] +_LITERAL.oneofs_by_name['value'].fields.append( + _LITERAL.fields_by_name['collection']) +_LITERAL.fields_by_name['collection'].containing_oneof = _LITERAL.oneofs_by_name['value'] +_LITERAL.oneofs_by_name['value'].fields.append( + _LITERAL.fields_by_name['map']) +_LITERAL.fields_by_name['map'].containing_oneof = _LITERAL.oneofs_by_name['value'] +_LITERALCOLLECTION.fields_by_name['literals'].message_type = _LITERAL +_LITERALMAP_LITERALSENTRY.fields_by_name['value'].message_type = _LITERAL +_LITERALMAP_LITERALSENTRY.containing_type = _LITERALMAP +_LITERALMAP.fields_by_name['literals'].message_type = _LITERALMAP_LITERALSENTRY +_BINDINGDATACOLLECTION.fields_by_name['bindings'].message_type = _BINDINGDATA +_BINDINGDATAMAP_BINDINGSENTRY.fields_by_name['value'].message_type = _BINDINGDATA +_BINDINGDATAMAP_BINDINGSENTRY.containing_type = _BINDINGDATAMAP +_BINDINGDATAMAP.fields_by_name['bindings'].message_type = _BINDINGDATAMAP_BINDINGSENTRY +_BINDINGDATA.fields_by_name['scalar'].message_type = _SCALAR +_BINDINGDATA.fields_by_name['collection'].message_type = _BINDINGDATACOLLECTION +_BINDINGDATA.fields_by_name['promise'].message_type = flyteidl_dot_core_dot_types__pb2._OUTPUTREFERENCE +_BINDINGDATA.fields_by_name['map'].message_type = _BINDINGDATAMAP +_BINDINGDATA.oneofs_by_name['value'].fields.append( + _BINDINGDATA.fields_by_name['scalar']) +_BINDINGDATA.fields_by_name['scalar'].containing_oneof = _BINDINGDATA.oneofs_by_name['value'] +_BINDINGDATA.oneofs_by_name['value'].fields.append( + _BINDINGDATA.fields_by_name['collection']) +_BINDINGDATA.fields_by_name['collection'].containing_oneof = _BINDINGDATA.oneofs_by_name['value'] +_BINDINGDATA.oneofs_by_name['value'].fields.append( + _BINDINGDATA.fields_by_name['promise']) +_BINDINGDATA.fields_by_name['promise'].containing_oneof = _BINDINGDATA.oneofs_by_name['value'] +_BINDINGDATA.oneofs_by_name['value'].fields.append( + _BINDINGDATA.fields_by_name['map']) +_BINDINGDATA.fields_by_name['map'].containing_oneof = _BINDINGDATA.oneofs_by_name['value'] +_BINDING.fields_by_name['binding'].message_type = _BINDINGDATA +DESCRIPTOR.message_types_by_name['Primitive'] = _PRIMITIVE +DESCRIPTOR.message_types_by_name['Void'] = _VOID +DESCRIPTOR.message_types_by_name['Blob'] = _BLOB +DESCRIPTOR.message_types_by_name['BlobMetadata'] = _BLOBMETADATA +DESCRIPTOR.message_types_by_name['Binary'] = _BINARY +DESCRIPTOR.message_types_by_name['Schema'] = _SCHEMA +DESCRIPTOR.message_types_by_name['Scalar'] = _SCALAR +DESCRIPTOR.message_types_by_name['Literal'] = _LITERAL +DESCRIPTOR.message_types_by_name['LiteralCollection'] = _LITERALCOLLECTION +DESCRIPTOR.message_types_by_name['LiteralMap'] = _LITERALMAP +DESCRIPTOR.message_types_by_name['BindingDataCollection'] = _BINDINGDATACOLLECTION +DESCRIPTOR.message_types_by_name['BindingDataMap'] = _BINDINGDATAMAP +DESCRIPTOR.message_types_by_name['BindingData'] = _BINDINGDATA +DESCRIPTOR.message_types_by_name['Binding'] = _BINDING +DESCRIPTOR.message_types_by_name['KeyValuePair'] = _KEYVALUEPAIR +DESCRIPTOR.message_types_by_name['RetryStrategy'] = _RETRYSTRATEGY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Primitive = _reflection.GeneratedProtocolMessageType('Primitive', (_message.Message,), dict( + DESCRIPTOR = _PRIMITIVE, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) + )) +_sym_db.RegisterMessage(Primitive) + +Void = _reflection.GeneratedProtocolMessageType('Void', (_message.Message,), dict( + DESCRIPTOR = _VOID, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Void) + )) +_sym_db.RegisterMessage(Void) + +Blob = _reflection.GeneratedProtocolMessageType('Blob', (_message.Message,), dict( + DESCRIPTOR = _BLOB, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Blob) + )) +_sym_db.RegisterMessage(Blob) + +BlobMetadata = _reflection.GeneratedProtocolMessageType('BlobMetadata', (_message.Message,), dict( + DESCRIPTOR = _BLOBMETADATA, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) + )) +_sym_db.RegisterMessage(BlobMetadata) + +Binary = _reflection.GeneratedProtocolMessageType('Binary', (_message.Message,), dict( + DESCRIPTOR = _BINARY, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Binary) + )) +_sym_db.RegisterMessage(Binary) + +Schema = _reflection.GeneratedProtocolMessageType('Schema', (_message.Message,), dict( + DESCRIPTOR = _SCHEMA, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Schema) + )) +_sym_db.RegisterMessage(Schema) + +Scalar = _reflection.GeneratedProtocolMessageType('Scalar', (_message.Message,), dict( + DESCRIPTOR = _SCALAR, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) + )) +_sym_db.RegisterMessage(Scalar) + +Literal = _reflection.GeneratedProtocolMessageType('Literal', (_message.Message,), dict( + DESCRIPTOR = _LITERAL, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Literal) + )) +_sym_db.RegisterMessage(Literal) + +LiteralCollection = _reflection.GeneratedProtocolMessageType('LiteralCollection', (_message.Message,), dict( + DESCRIPTOR = _LITERALCOLLECTION, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) + )) +_sym_db.RegisterMessage(LiteralCollection) + +LiteralMap = _reflection.GeneratedProtocolMessageType('LiteralMap', (_message.Message,), dict( + + LiteralsEntry = _reflection.GeneratedProtocolMessageType('LiteralsEntry', (_message.Message,), dict( + DESCRIPTOR = _LITERALMAP_LITERALSENTRY, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap.LiteralsEntry) + )) + , + DESCRIPTOR = _LITERALMAP, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) + )) +_sym_db.RegisterMessage(LiteralMap) +_sym_db.RegisterMessage(LiteralMap.LiteralsEntry) + +BindingDataCollection = _reflection.GeneratedProtocolMessageType('BindingDataCollection', (_message.Message,), dict( + DESCRIPTOR = _BINDINGDATACOLLECTION, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) + )) +_sym_db.RegisterMessage(BindingDataCollection) + +BindingDataMap = _reflection.GeneratedProtocolMessageType('BindingDataMap', (_message.Message,), dict( + + BindingsEntry = _reflection.GeneratedProtocolMessageType('BindingsEntry', (_message.Message,), dict( + DESCRIPTOR = _BINDINGDATAMAP_BINDINGSENTRY, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap.BindingsEntry) + )) + , + DESCRIPTOR = _BINDINGDATAMAP, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) + )) +_sym_db.RegisterMessage(BindingDataMap) +_sym_db.RegisterMessage(BindingDataMap.BindingsEntry) + +BindingData = _reflection.GeneratedProtocolMessageType('BindingData', (_message.Message,), dict( + DESCRIPTOR = _BINDINGDATA, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) + )) +_sym_db.RegisterMessage(BindingData) + +Binding = _reflection.GeneratedProtocolMessageType('Binding', (_message.Message,), dict( + DESCRIPTOR = _BINDING, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Binding) + )) +_sym_db.RegisterMessage(Binding) + +KeyValuePair = _reflection.GeneratedProtocolMessageType('KeyValuePair', (_message.Message,), dict( + DESCRIPTOR = _KEYVALUEPAIR, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) + )) +_sym_db.RegisterMessage(KeyValuePair) + +RetryStrategy = _reflection.GeneratedProtocolMessageType('RetryStrategy', (_message.Message,), dict( + DESCRIPTOR = _RETRYSTRATEGY, + __module__ = 'flyteidl.core.literals_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) + )) +_sym_db.RegisterMessage(RetryStrategy) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +_LITERALMAP_LITERALSENTRY.has_options = True +_LITERALMAP_LITERALSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_BINDINGDATAMAP_BINDINGSENTRY.has_options = True +_BINDINGDATAMAP_BINDINGSENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py new file mode 100644 index 0000000000..faa6082344 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py @@ -0,0 +1,533 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/tasks.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/tasks.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x19\x66lyteidl/core/tasks.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x9a\x02\n\tResources\x12\x38\n\x08requests\x18\x01 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntry\x12\x36\n\x06limits\x18\x02 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntry\x1aS\n\rResourceEntry\x12\x33\n\x04name\x18\x01 \x01(\x0e\x32%.flyteidl.core.Resources.ResourceName\x12\r\n\x05value\x18\x02 \x01(\t\"F\n\x0cResourceName\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x07\n\x03GPU\x10\x02\x12\n\n\x06MEMORY\x10\x03\x12\x0b\n\x07STORAGE\x10\x04\"\x95\x01\n\x0fRuntimeMetadata\x12\x38\n\x04type\x18\x01 \x01(\x0e\x32*.flyteidl.core.RuntimeMetadata.RuntimeType\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0e\n\x06\x66lavor\x18\x03 \x01(\t\"\'\n\x0bRuntimeType\x12\t\n\x05OTHER\x10\x00\x12\r\n\tFLYTE_SDK\x10\x01\"\xed\x01\n\x0cTaskMetadata\x12\x14\n\x0c\x64iscoverable\x18\x01 \x01(\x08\x12/\n\x07runtime\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.RuntimeMetadata\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategy\x12\x19\n\x11\x64iscovery_version\x18\x06 \x01(\t\x12 \n\x18\x64\x65precated_error_message\x18\x07 \x01(\t\"\x86\x02\n\x0cTaskTemplate\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12\x0c\n\x04type\x18\x02 \x01(\t\x12-\n\x08metadata\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.TaskMetadata\x12\x30\n\tinterface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterface\x12\'\n\x06\x63ustom\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12-\n\tcontainer\x18\x06 \x01(\x0b\x32\x18.flyteidl.core.ContainerH\x00\x42\x08\n\x06target\"\'\n\rContainerPort\x12\x16\n\x0e\x63ontainer_port\x18\x01 \x01(\r\"\xea\x01\n\tContainer\x12\r\n\x05image\x18\x01 \x01(\t\x12\x0f\n\x07\x63ommand\x18\x02 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\t\x12+\n\tresources\x18\x04 \x01(\x0b\x32\x18.flyteidl.core.Resources\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePair\x12+\n\x06\x63onfig\x18\x06 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePair\x12+\n\x05ports\x18\x07 \x03(\x0b\x32\x1c.flyteidl.core.ContainerPortB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,flyteidl_dot_core_dot_interface__pb2.DESCRIPTOR,flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + + + +_RESOURCES_RESOURCENAME = _descriptor.EnumDescriptor( + name='ResourceName', + full_name='flyteidl.core.Resources.ResourceName', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CPU', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GPU', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MEMORY', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORAGE', index=4, number=4, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=412, + serialized_end=482, +) +_sym_db.RegisterEnumDescriptor(_RESOURCES_RESOURCENAME) + +_RUNTIMEMETADATA_RUNTIMETYPE = _descriptor.EnumDescriptor( + name='RuntimeType', + full_name='flyteidl.core.RuntimeMetadata.RuntimeType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='OTHER', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLYTE_SDK', index=1, number=1, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=595, + serialized_end=634, +) +_sym_db.RegisterEnumDescriptor(_RUNTIMEMETADATA_RUNTIMETYPE) + + +_RESOURCES_RESOURCEENTRY = _descriptor.Descriptor( + name='ResourceEntry', + full_name='flyteidl.core.Resources.ResourceEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.core.Resources.ResourceEntry.name', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.core.Resources.ResourceEntry.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=327, + serialized_end=410, +) + +_RESOURCES = _descriptor.Descriptor( + name='Resources', + full_name='flyteidl.core.Resources', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='requests', full_name='flyteidl.core.Resources.requests', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='limits', full_name='flyteidl.core.Resources.limits', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_RESOURCES_RESOURCEENTRY, ], + enum_types=[ + _RESOURCES_RESOURCENAME, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=200, + serialized_end=482, +) + + +_RUNTIMEMETADATA = _descriptor.Descriptor( + name='RuntimeMetadata', + full_name='flyteidl.core.RuntimeMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='type', full_name='flyteidl.core.RuntimeMetadata.type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='version', full_name='flyteidl.core.RuntimeMetadata.version', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='flavor', full_name='flyteidl.core.RuntimeMetadata.flavor', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _RUNTIMEMETADATA_RUNTIMETYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=485, + serialized_end=634, +) + + +_TASKMETADATA = _descriptor.Descriptor( + name='TaskMetadata', + full_name='flyteidl.core.TaskMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='discoverable', full_name='flyteidl.core.TaskMetadata.discoverable', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='runtime', full_name='flyteidl.core.TaskMetadata.runtime', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timeout', full_name='flyteidl.core.TaskMetadata.timeout', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='retries', full_name='flyteidl.core.TaskMetadata.retries', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='discovery_version', full_name='flyteidl.core.TaskMetadata.discovery_version', index=4, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='deprecated_error_message', full_name='flyteidl.core.TaskMetadata.deprecated_error_message', index=5, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=637, + serialized_end=874, +) + + +_TASKTEMPLATE = _descriptor.Descriptor( + name='TaskTemplate', + full_name='flyteidl.core.TaskTemplate', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.core.TaskTemplate.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='flyteidl.core.TaskTemplate.type', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metadata', full_name='flyteidl.core.TaskTemplate.metadata', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interface', full_name='flyteidl.core.TaskTemplate.interface', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom', full_name='flyteidl.core.TaskTemplate.custom', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='container', full_name='flyteidl.core.TaskTemplate.container', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='target', full_name='flyteidl.core.TaskTemplate.target', + index=0, containing_type=None, fields=[]), + ], + serialized_start=877, + serialized_end=1139, +) + + +_CONTAINERPORT = _descriptor.Descriptor( + name='ContainerPort', + full_name='flyteidl.core.ContainerPort', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='container_port', full_name='flyteidl.core.ContainerPort.container_port', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1141, + serialized_end=1180, +) + + +_CONTAINER = _descriptor.Descriptor( + name='Container', + full_name='flyteidl.core.Container', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='image', full_name='flyteidl.core.Container.image', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='command', full_name='flyteidl.core.Container.command', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='args', full_name='flyteidl.core.Container.args', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resources', full_name='flyteidl.core.Container.resources', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='env', full_name='flyteidl.core.Container.env', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='config', full_name='flyteidl.core.Container.config', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ports', full_name='flyteidl.core.Container.ports', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1183, + serialized_end=1417, +) + +_RESOURCES_RESOURCEENTRY.fields_by_name['name'].enum_type = _RESOURCES_RESOURCENAME +_RESOURCES_RESOURCEENTRY.containing_type = _RESOURCES +_RESOURCES.fields_by_name['requests'].message_type = _RESOURCES_RESOURCEENTRY +_RESOURCES.fields_by_name['limits'].message_type = _RESOURCES_RESOURCEENTRY +_RESOURCES_RESOURCENAME.containing_type = _RESOURCES +_RUNTIMEMETADATA.fields_by_name['type'].enum_type = _RUNTIMEMETADATA_RUNTIMETYPE +_RUNTIMEMETADATA_RUNTIMETYPE.containing_type = _RUNTIMEMETADATA +_TASKMETADATA.fields_by_name['runtime'].message_type = _RUNTIMEMETADATA +_TASKMETADATA.fields_by_name['timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TASKMETADATA.fields_by_name['retries'].message_type = flyteidl_dot_core_dot_literals__pb2._RETRYSTRATEGY +_TASKTEMPLATE.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_TASKTEMPLATE.fields_by_name['metadata'].message_type = _TASKMETADATA +_TASKTEMPLATE.fields_by_name['interface'].message_type = flyteidl_dot_core_dot_interface__pb2._TYPEDINTERFACE +_TASKTEMPLATE.fields_by_name['custom'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_TASKTEMPLATE.fields_by_name['container'].message_type = _CONTAINER +_TASKTEMPLATE.oneofs_by_name['target'].fields.append( + _TASKTEMPLATE.fields_by_name['container']) +_TASKTEMPLATE.fields_by_name['container'].containing_oneof = _TASKTEMPLATE.oneofs_by_name['target'] +_CONTAINER.fields_by_name['resources'].message_type = _RESOURCES +_CONTAINER.fields_by_name['env'].message_type = flyteidl_dot_core_dot_literals__pb2._KEYVALUEPAIR +_CONTAINER.fields_by_name['config'].message_type = flyteidl_dot_core_dot_literals__pb2._KEYVALUEPAIR +_CONTAINER.fields_by_name['ports'].message_type = _CONTAINERPORT +DESCRIPTOR.message_types_by_name['Resources'] = _RESOURCES +DESCRIPTOR.message_types_by_name['RuntimeMetadata'] = _RUNTIMEMETADATA +DESCRIPTOR.message_types_by_name['TaskMetadata'] = _TASKMETADATA +DESCRIPTOR.message_types_by_name['TaskTemplate'] = _TASKTEMPLATE +DESCRIPTOR.message_types_by_name['ContainerPort'] = _CONTAINERPORT +DESCRIPTOR.message_types_by_name['Container'] = _CONTAINER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Resources = _reflection.GeneratedProtocolMessageType('Resources', (_message.Message,), dict( + + ResourceEntry = _reflection.GeneratedProtocolMessageType('ResourceEntry', (_message.Message,), dict( + DESCRIPTOR = _RESOURCES_RESOURCEENTRY, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) + )) + , + DESCRIPTOR = _RESOURCES, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Resources) + )) +_sym_db.RegisterMessage(Resources) +_sym_db.RegisterMessage(Resources.ResourceEntry) + +RuntimeMetadata = _reflection.GeneratedProtocolMessageType('RuntimeMetadata', (_message.Message,), dict( + DESCRIPTOR = _RUNTIMEMETADATA, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) + )) +_sym_db.RegisterMessage(RuntimeMetadata) + +TaskMetadata = _reflection.GeneratedProtocolMessageType('TaskMetadata', (_message.Message,), dict( + DESCRIPTOR = _TASKMETADATA, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) + )) +_sym_db.RegisterMessage(TaskMetadata) + +TaskTemplate = _reflection.GeneratedProtocolMessageType('TaskTemplate', (_message.Message,), dict( + DESCRIPTOR = _TASKTEMPLATE, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) + )) +_sym_db.RegisterMessage(TaskTemplate) + +ContainerPort = _reflection.GeneratedProtocolMessageType('ContainerPort', (_message.Message,), dict( + DESCRIPTOR = _CONTAINERPORT, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) + )) +_sym_db.RegisterMessage(ContainerPort) + +Container = _reflection.GeneratedProtocolMessageType('Container', (_message.Message,), dict( + DESCRIPTOR = _CONTAINER, + __module__ = 'flyteidl.core.tasks_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Container) + )) +_sym_db.RegisterMessage(Container) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py new file mode 100644 index 0000000000..f0bb3602e0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py @@ -0,0 +1,489 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/types.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/types.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x19\x66lyteidl/core/types.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\x8c\x02\n\nSchemaType\x12\x37\n\x07\x63olumns\x18\x03 \x03(\x0b\x32&.flyteidl.core.SchemaType.SchemaColumn\x1a\xc4\x01\n\x0cSchemaColumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x04type\x18\x02 \x01(\x0e\x32\x37.flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType\"_\n\x10SchemaColumnType\x12\x0b\n\x07INTEGER\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0b\n\x07\x42OOLEAN\x10\x03\x12\x0c\n\x08\x44\x41TETIME\x10\x04\x12\x0c\n\x08\x44URATION\x10\x05\"\x8f\x01\n\x08\x42lobType\x12\x0e\n\x06\x66ormat\x18\x01 \x01(\t\x12\x42\n\x0e\x64imensionality\x18\x02 \x01(\x0e\x32*.flyteidl.core.BlobType.BlobDimensionality\"/\n\x12\x42lobDimensionality\x12\n\n\x06SINGLE\x10\x00\x12\r\n\tMULTIPART\x10\x01\"\xb0\x02\n\x0bLiteralType\x12+\n\x06simple\x18\x01 \x01(\x0e\x32\x19.flyteidl.core.SimpleTypeH\x00\x12+\n\x06schema\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeH\x00\x12\x35\n\x0f\x63ollection_type\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00\x12\x34\n\x0emap_value_type\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00\x12\'\n\x04\x62lob\x18\x05 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeH\x00\x12)\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\n\x04type\"/\n\x0fOutputReference\x12\x0f\n\x07node_id\x18\x01 \x01(\t\x12\x0b\n\x03var\x18\x02 \x01(\t\"0\n\x05\x45rror\x12\x16\n\x0e\x66\x61iled_node_id\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t*\x86\x01\n\nSimpleType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07INTEGER\x10\x01\x12\t\n\x05\x46LOAT\x10\x02\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0c\n\x08\x44\x41TETIME\x10\x05\x12\x0c\n\x08\x44URATION\x10\x06\x12\n\n\x06\x42INARY\x10\x07\x12\t\n\x05\x45RROR\x10\x08\x12\n\n\x06STRUCT\x10\tB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + +_SIMPLETYPE = _descriptor.EnumDescriptor( + name='SimpleType', + full_name='flyteidl.core.SimpleType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='NONE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INTEGER', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLOAT', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BOOLEAN', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATETIME', index=5, number=5, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DURATION', index=6, number=6, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BINARY', index=7, number=7, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ERROR', index=8, number=8, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCT', index=9, number=9, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=898, + serialized_end=1032, +) +_sym_db.RegisterEnumDescriptor(_SIMPLETYPE) + +SimpleType = enum_type_wrapper.EnumTypeWrapper(_SIMPLETYPE) +NONE = 0 +INTEGER = 1 +FLOAT = 2 +STRING = 3 +BOOLEAN = 4 +DATETIME = 5 +DURATION = 6 +BINARY = 7 +ERROR = 8 +STRUCT = 9 + + +_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE = _descriptor.EnumDescriptor( + name='SchemaColumnType', + full_name='flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='INTEGER', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLOAT', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BOOLEAN', index=3, number=3, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATETIME', index=4, number=4, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DURATION', index=5, number=5, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=248, + serialized_end=343, +) +_sym_db.RegisterEnumDescriptor(_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE) + +_BLOBTYPE_BLOBDIMENSIONALITY = _descriptor.EnumDescriptor( + name='BlobDimensionality', + full_name='flyteidl.core.BlobType.BlobDimensionality', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='SINGLE', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPART', index=1, number=1, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=442, + serialized_end=489, +) +_sym_db.RegisterEnumDescriptor(_BLOBTYPE_BLOBDIMENSIONALITY) + + +_SCHEMATYPE_SCHEMACOLUMN = _descriptor.Descriptor( + name='SchemaColumn', + full_name='flyteidl.core.SchemaType.SchemaColumn', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.core.SchemaType.SchemaColumn.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='flyteidl.core.SchemaType.SchemaColumn.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=147, + serialized_end=343, +) + +_SCHEMATYPE = _descriptor.Descriptor( + name='SchemaType', + full_name='flyteidl.core.SchemaType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='columns', full_name='flyteidl.core.SchemaType.columns', index=0, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_SCHEMATYPE_SCHEMACOLUMN, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=75, + serialized_end=343, +) + + +_BLOBTYPE = _descriptor.Descriptor( + name='BlobType', + full_name='flyteidl.core.BlobType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='format', full_name='flyteidl.core.BlobType.format', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='dimensionality', full_name='flyteidl.core.BlobType.dimensionality', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BLOBTYPE_BLOBDIMENSIONALITY, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=346, + serialized_end=489, +) + + +_LITERALTYPE = _descriptor.Descriptor( + name='LiteralType', + full_name='flyteidl.core.LiteralType', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='simple', full_name='flyteidl.core.LiteralType.simple', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='schema', full_name='flyteidl.core.LiteralType.schema', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='collection_type', full_name='flyteidl.core.LiteralType.collection_type', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map_value_type', full_name='flyteidl.core.LiteralType.map_value_type', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='blob', full_name='flyteidl.core.LiteralType.blob', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metadata', full_name='flyteidl.core.LiteralType.metadata', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='type', full_name='flyteidl.core.LiteralType.type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=492, + serialized_end=796, +) + + +_OUTPUTREFERENCE = _descriptor.Descriptor( + name='OutputReference', + full_name='flyteidl.core.OutputReference', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='node_id', full_name='flyteidl.core.OutputReference.node_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='var', full_name='flyteidl.core.OutputReference.var', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=798, + serialized_end=845, +) + + +_ERROR = _descriptor.Descriptor( + name='Error', + full_name='flyteidl.core.Error', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='failed_node_id', full_name='flyteidl.core.Error.failed_node_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message', full_name='flyteidl.core.Error.message', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=847, + serialized_end=895, +) + +_SCHEMATYPE_SCHEMACOLUMN.fields_by_name['type'].enum_type = _SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE +_SCHEMATYPE_SCHEMACOLUMN.containing_type = _SCHEMATYPE +_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE.containing_type = _SCHEMATYPE_SCHEMACOLUMN +_SCHEMATYPE.fields_by_name['columns'].message_type = _SCHEMATYPE_SCHEMACOLUMN +_BLOBTYPE.fields_by_name['dimensionality'].enum_type = _BLOBTYPE_BLOBDIMENSIONALITY +_BLOBTYPE_BLOBDIMENSIONALITY.containing_type = _BLOBTYPE +_LITERALTYPE.fields_by_name['simple'].enum_type = _SIMPLETYPE +_LITERALTYPE.fields_by_name['schema'].message_type = _SCHEMATYPE +_LITERALTYPE.fields_by_name['collection_type'].message_type = _LITERALTYPE +_LITERALTYPE.fields_by_name['map_value_type'].message_type = _LITERALTYPE +_LITERALTYPE.fields_by_name['blob'].message_type = _BLOBTYPE +_LITERALTYPE.fields_by_name['metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_LITERALTYPE.oneofs_by_name['type'].fields.append( + _LITERALTYPE.fields_by_name['simple']) +_LITERALTYPE.fields_by_name['simple'].containing_oneof = _LITERALTYPE.oneofs_by_name['type'] +_LITERALTYPE.oneofs_by_name['type'].fields.append( + _LITERALTYPE.fields_by_name['schema']) +_LITERALTYPE.fields_by_name['schema'].containing_oneof = _LITERALTYPE.oneofs_by_name['type'] +_LITERALTYPE.oneofs_by_name['type'].fields.append( + _LITERALTYPE.fields_by_name['collection_type']) +_LITERALTYPE.fields_by_name['collection_type'].containing_oneof = _LITERALTYPE.oneofs_by_name['type'] +_LITERALTYPE.oneofs_by_name['type'].fields.append( + _LITERALTYPE.fields_by_name['map_value_type']) +_LITERALTYPE.fields_by_name['map_value_type'].containing_oneof = _LITERALTYPE.oneofs_by_name['type'] +_LITERALTYPE.oneofs_by_name['type'].fields.append( + _LITERALTYPE.fields_by_name['blob']) +_LITERALTYPE.fields_by_name['blob'].containing_oneof = _LITERALTYPE.oneofs_by_name['type'] +DESCRIPTOR.message_types_by_name['SchemaType'] = _SCHEMATYPE +DESCRIPTOR.message_types_by_name['BlobType'] = _BLOBTYPE +DESCRIPTOR.message_types_by_name['LiteralType'] = _LITERALTYPE +DESCRIPTOR.message_types_by_name['OutputReference'] = _OUTPUTREFERENCE +DESCRIPTOR.message_types_by_name['Error'] = _ERROR +DESCRIPTOR.enum_types_by_name['SimpleType'] = _SIMPLETYPE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SchemaType = _reflection.GeneratedProtocolMessageType('SchemaType', (_message.Message,), dict( + + SchemaColumn = _reflection.GeneratedProtocolMessageType('SchemaColumn', (_message.Message,), dict( + DESCRIPTOR = _SCHEMATYPE_SCHEMACOLUMN, + __module__ = 'flyteidl.core.types_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) + )) + , + DESCRIPTOR = _SCHEMATYPE, + __module__ = 'flyteidl.core.types_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) + )) +_sym_db.RegisterMessage(SchemaType) +_sym_db.RegisterMessage(SchemaType.SchemaColumn) + +BlobType = _reflection.GeneratedProtocolMessageType('BlobType', (_message.Message,), dict( + DESCRIPTOR = _BLOBTYPE, + __module__ = 'flyteidl.core.types_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) + )) +_sym_db.RegisterMessage(BlobType) + +LiteralType = _reflection.GeneratedProtocolMessageType('LiteralType', (_message.Message,), dict( + DESCRIPTOR = _LITERALTYPE, + __module__ = 'flyteidl.core.types_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) + )) +_sym_db.RegisterMessage(LiteralType) + +OutputReference = _reflection.GeneratedProtocolMessageType('OutputReference', (_message.Message,), dict( + DESCRIPTOR = _OUTPUTREFERENCE, + __module__ = 'flyteidl.core.types_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) + )) +_sym_db.RegisterMessage(OutputReference) + +Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), dict( + DESCRIPTOR = _ERROR, + __module__ = 'flyteidl.core.types_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Error) + )) +_sym_db.RegisterMessage(Error) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py new file mode 100644 index 0000000000..b9bed99638 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py @@ -0,0 +1,83 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/workflow_closure.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/workflow_closure.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n$flyteidl/core/workflow_closure.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"p\n\x0fWorkflowClosure\x12\x31\n\x08workflow\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\x12*\n\x05tasks\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_workflow__pb2.DESCRIPTOR,flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) + + + + +_WORKFLOWCLOSURE = _descriptor.Descriptor( + name='WorkflowClosure', + full_name='flyteidl.core.WorkflowClosure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='workflow', full_name='flyteidl.core.WorkflowClosure.workflow', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tasks', full_name='flyteidl.core.WorkflowClosure.tasks', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=112, + serialized_end=224, +) + +_WORKFLOWCLOSURE.fields_by_name['workflow'].message_type = flyteidl_dot_core_dot_workflow__pb2._WORKFLOWTEMPLATE +_WORKFLOWCLOSURE.fields_by_name['tasks'].message_type = flyteidl_dot_core_dot_tasks__pb2._TASKTEMPLATE +DESCRIPTOR.message_types_by_name['WorkflowClosure'] = _WORKFLOWCLOSURE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +WorkflowClosure = _reflection.GeneratedProtocolMessageType('WorkflowClosure', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWCLOSURE, + __module__ = 'flyteidl.core.workflow_closure_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) + )) +_sym_db.RegisterMessage(WorkflowClosure) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py new file mode 100644 index 0000000000..09c0b36e51 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py @@ -0,0 +1,622 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/workflow.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import condition_pb2 as flyteidl_dot_core_dot_condition__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/core/workflow.proto', + package='flyteidl.core', + syntax='proto3', + serialized_pb=_b('\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1egoogle/protobuf/duration.proto\"f\n\x07IfBlock\x12\x33\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpression\x12&\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.Node\"\xb6\x01\n\x0bIfElseBlock\x12$\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlock\x12%\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlock\x12(\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00\x12%\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00\x42\t\n\x07\x64\x65\x66\x61ult\"9\n\nBranchNode\x12+\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlock\"J\n\x08TaskNode\x12\x31\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00\x42\x0b\n\treference\"\x87\x01\n\x0cWorkflowNode\x12\x33\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00\x12\x35\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00\x42\x0b\n\treference\"w\n\x0cNodeMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategy\"#\n\x05\x41lias\x12\x0b\n\x03var\x18\x01 \x01(\t\x12\r\n\x05\x61lias\x18\x02 \x01(\t\"\xd2\x02\n\x04Node\x12\n\n\x02id\x18\x01 \x01(\t\x12-\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadata\x12&\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.Binding\x12\x19\n\x11upstream_node_ids\x18\x04 \x03(\t\x12,\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.Alias\x12,\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00\x12\x34\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00\x12\x30\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00\x42\x08\n\x06target\"\x12\n\x10WorkflowMetadata\"\x96\x02\n\x10WorkflowTemplate\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadata\x12\x30\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterface\x12\"\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.Node\x12\'\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.Binding\x12)\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeB2Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/coreb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_condition__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,flyteidl_dot_core_dot_interface__pb2.DESCRIPTOR,flyteidl_dot_core_dot_literals__pb2.DESCRIPTOR,flyteidl_dot_core_dot_types__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + + + + +_IFBLOCK = _descriptor.Descriptor( + name='IfBlock', + full_name='flyteidl.core.IfBlock', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='condition', full_name='flyteidl.core.IfBlock.condition', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='then_node', full_name='flyteidl.core.IfBlock.then_node', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=230, + serialized_end=332, +) + + +_IFELSEBLOCK = _descriptor.Descriptor( + name='IfElseBlock', + full_name='flyteidl.core.IfElseBlock', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='case', full_name='flyteidl.core.IfElseBlock.case', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='other', full_name='flyteidl.core.IfElseBlock.other', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='else_node', full_name='flyteidl.core.IfElseBlock.else_node', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.core.IfElseBlock.error', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='default', full_name='flyteidl.core.IfElseBlock.default', + index=0, containing_type=None, fields=[]), + ], + serialized_start=335, + serialized_end=517, +) + + +_BRANCHNODE = _descriptor.Descriptor( + name='BranchNode', + full_name='flyteidl.core.BranchNode', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='if_else', full_name='flyteidl.core.BranchNode.if_else', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=519, + serialized_end=576, +) + + +_TASKNODE = _descriptor.Descriptor( + name='TaskNode', + full_name='flyteidl.core.TaskNode', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='reference_id', full_name='flyteidl.core.TaskNode.reference_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='reference', full_name='flyteidl.core.TaskNode.reference', + index=0, containing_type=None, fields=[]), + ], + serialized_start=578, + serialized_end=652, +) + + +_WORKFLOWNODE = _descriptor.Descriptor( + name='WorkflowNode', + full_name='flyteidl.core.WorkflowNode', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='launchplan_ref', full_name='flyteidl.core.WorkflowNode.launchplan_ref', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sub_workflow_ref', full_name='flyteidl.core.WorkflowNode.sub_workflow_ref', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='reference', full_name='flyteidl.core.WorkflowNode.reference', + index=0, containing_type=None, fields=[]), + ], + serialized_start=655, + serialized_end=790, +) + + +_NODEMETADATA = _descriptor.Descriptor( + name='NodeMetadata', + full_name='flyteidl.core.NodeMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='flyteidl.core.NodeMetadata.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timeout', full_name='flyteidl.core.NodeMetadata.timeout', index=1, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='retries', full_name='flyteidl.core.NodeMetadata.retries', index=2, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=792, + serialized_end=911, +) + + +_ALIAS = _descriptor.Descriptor( + name='Alias', + full_name='flyteidl.core.Alias', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='var', full_name='flyteidl.core.Alias.var', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='alias', full_name='flyteidl.core.Alias.alias', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=913, + serialized_end=948, +) + + +_NODE = _descriptor.Descriptor( + name='Node', + full_name='flyteidl.core.Node', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.core.Node.id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metadata', full_name='flyteidl.core.Node.metadata', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='inputs', full_name='flyteidl.core.Node.inputs', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='upstream_node_ids', full_name='flyteidl.core.Node.upstream_node_ids', index=3, + number=4, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='output_aliases', full_name='flyteidl.core.Node.output_aliases', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='task_node', full_name='flyteidl.core.Node.task_node', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='workflow_node', full_name='flyteidl.core.Node.workflow_node', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='branch_node', full_name='flyteidl.core.Node.branch_node', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='target', full_name='flyteidl.core.Node.target', + index=0, containing_type=None, fields=[]), + ], + serialized_start=951, + serialized_end=1289, +) + + +_WORKFLOWMETADATA = _descriptor.Descriptor( + name='WorkflowMetadata', + full_name='flyteidl.core.WorkflowMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1291, + serialized_end=1309, +) + + +_WORKFLOWTEMPLATE = _descriptor.Descriptor( + name='WorkflowTemplate', + full_name='flyteidl.core.WorkflowTemplate', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.core.WorkflowTemplate.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metadata', full_name='flyteidl.core.WorkflowTemplate.metadata', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interface', full_name='flyteidl.core.WorkflowTemplate.interface', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='nodes', full_name='flyteidl.core.WorkflowTemplate.nodes', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='outputs', full_name='flyteidl.core.WorkflowTemplate.outputs', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='failure_node', full_name='flyteidl.core.WorkflowTemplate.failure_node', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1312, + serialized_end=1590, +) + +_IFBLOCK.fields_by_name['condition'].message_type = flyteidl_dot_core_dot_condition__pb2._BOOLEANEXPRESSION +_IFBLOCK.fields_by_name['then_node'].message_type = _NODE +_IFELSEBLOCK.fields_by_name['case'].message_type = _IFBLOCK +_IFELSEBLOCK.fields_by_name['other'].message_type = _IFBLOCK +_IFELSEBLOCK.fields_by_name['else_node'].message_type = _NODE +_IFELSEBLOCK.fields_by_name['error'].message_type = flyteidl_dot_core_dot_types__pb2._ERROR +_IFELSEBLOCK.oneofs_by_name['default'].fields.append( + _IFELSEBLOCK.fields_by_name['else_node']) +_IFELSEBLOCK.fields_by_name['else_node'].containing_oneof = _IFELSEBLOCK.oneofs_by_name['default'] +_IFELSEBLOCK.oneofs_by_name['default'].fields.append( + _IFELSEBLOCK.fields_by_name['error']) +_IFELSEBLOCK.fields_by_name['error'].containing_oneof = _IFELSEBLOCK.oneofs_by_name['default'] +_BRANCHNODE.fields_by_name['if_else'].message_type = _IFELSEBLOCK +_TASKNODE.fields_by_name['reference_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_TASKNODE.oneofs_by_name['reference'].fields.append( + _TASKNODE.fields_by_name['reference_id']) +_TASKNODE.fields_by_name['reference_id'].containing_oneof = _TASKNODE.oneofs_by_name['reference'] +_WORKFLOWNODE.fields_by_name['launchplan_ref'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_WORKFLOWNODE.fields_by_name['sub_workflow_ref'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_WORKFLOWNODE.oneofs_by_name['reference'].fields.append( + _WORKFLOWNODE.fields_by_name['launchplan_ref']) +_WORKFLOWNODE.fields_by_name['launchplan_ref'].containing_oneof = _WORKFLOWNODE.oneofs_by_name['reference'] +_WORKFLOWNODE.oneofs_by_name['reference'].fields.append( + _WORKFLOWNODE.fields_by_name['sub_workflow_ref']) +_WORKFLOWNODE.fields_by_name['sub_workflow_ref'].containing_oneof = _WORKFLOWNODE.oneofs_by_name['reference'] +_NODEMETADATA.fields_by_name['timeout'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_NODEMETADATA.fields_by_name['retries'].message_type = flyteidl_dot_core_dot_literals__pb2._RETRYSTRATEGY +_NODE.fields_by_name['metadata'].message_type = _NODEMETADATA +_NODE.fields_by_name['inputs'].message_type = flyteidl_dot_core_dot_literals__pb2._BINDING +_NODE.fields_by_name['output_aliases'].message_type = _ALIAS +_NODE.fields_by_name['task_node'].message_type = _TASKNODE +_NODE.fields_by_name['workflow_node'].message_type = _WORKFLOWNODE +_NODE.fields_by_name['branch_node'].message_type = _BRANCHNODE +_NODE.oneofs_by_name['target'].fields.append( + _NODE.fields_by_name['task_node']) +_NODE.fields_by_name['task_node'].containing_oneof = _NODE.oneofs_by_name['target'] +_NODE.oneofs_by_name['target'].fields.append( + _NODE.fields_by_name['workflow_node']) +_NODE.fields_by_name['workflow_node'].containing_oneof = _NODE.oneofs_by_name['target'] +_NODE.oneofs_by_name['target'].fields.append( + _NODE.fields_by_name['branch_node']) +_NODE.fields_by_name['branch_node'].containing_oneof = _NODE.oneofs_by_name['target'] +_WORKFLOWTEMPLATE.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_WORKFLOWTEMPLATE.fields_by_name['metadata'].message_type = _WORKFLOWMETADATA +_WORKFLOWTEMPLATE.fields_by_name['interface'].message_type = flyteidl_dot_core_dot_interface__pb2._TYPEDINTERFACE +_WORKFLOWTEMPLATE.fields_by_name['nodes'].message_type = _NODE +_WORKFLOWTEMPLATE.fields_by_name['outputs'].message_type = flyteidl_dot_core_dot_literals__pb2._BINDING +_WORKFLOWTEMPLATE.fields_by_name['failure_node'].message_type = _NODE +DESCRIPTOR.message_types_by_name['IfBlock'] = _IFBLOCK +DESCRIPTOR.message_types_by_name['IfElseBlock'] = _IFELSEBLOCK +DESCRIPTOR.message_types_by_name['BranchNode'] = _BRANCHNODE +DESCRIPTOR.message_types_by_name['TaskNode'] = _TASKNODE +DESCRIPTOR.message_types_by_name['WorkflowNode'] = _WORKFLOWNODE +DESCRIPTOR.message_types_by_name['NodeMetadata'] = _NODEMETADATA +DESCRIPTOR.message_types_by_name['Alias'] = _ALIAS +DESCRIPTOR.message_types_by_name['Node'] = _NODE +DESCRIPTOR.message_types_by_name['WorkflowMetadata'] = _WORKFLOWMETADATA +DESCRIPTOR.message_types_by_name['WorkflowTemplate'] = _WORKFLOWTEMPLATE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +IfBlock = _reflection.GeneratedProtocolMessageType('IfBlock', (_message.Message,), dict( + DESCRIPTOR = _IFBLOCK, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) + )) +_sym_db.RegisterMessage(IfBlock) + +IfElseBlock = _reflection.GeneratedProtocolMessageType('IfElseBlock', (_message.Message,), dict( + DESCRIPTOR = _IFELSEBLOCK, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) + )) +_sym_db.RegisterMessage(IfElseBlock) + +BranchNode = _reflection.GeneratedProtocolMessageType('BranchNode', (_message.Message,), dict( + DESCRIPTOR = _BRANCHNODE, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) + )) +_sym_db.RegisterMessage(BranchNode) + +TaskNode = _reflection.GeneratedProtocolMessageType('TaskNode', (_message.Message,), dict( + DESCRIPTOR = _TASKNODE, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) + )) +_sym_db.RegisterMessage(TaskNode) + +WorkflowNode = _reflection.GeneratedProtocolMessageType('WorkflowNode', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWNODE, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) + )) +_sym_db.RegisterMessage(WorkflowNode) + +NodeMetadata = _reflection.GeneratedProtocolMessageType('NodeMetadata', (_message.Message,), dict( + DESCRIPTOR = _NODEMETADATA, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) + )) +_sym_db.RegisterMessage(NodeMetadata) + +Alias = _reflection.GeneratedProtocolMessageType('Alias', (_message.Message,), dict( + DESCRIPTOR = _ALIAS, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Alias) + )) +_sym_db.RegisterMessage(Alias) + +Node = _reflection.GeneratedProtocolMessageType('Node', (_message.Message,), dict( + DESCRIPTOR = _NODE, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.Node) + )) +_sym_db.RegisterMessage(Node) + +WorkflowMetadata = _reflection.GeneratedProtocolMessageType('WorkflowMetadata', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWMETADATA, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) + )) +_sym_db.RegisterMessage(WorkflowMetadata) + +WorkflowTemplate = _reflection.GeneratedProtocolMessageType('WorkflowTemplate', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWTEMPLATE, + __module__ = 'flyteidl.core.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) + )) +_sym_db.RegisterMessage(WorkflowTemplate) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z0github.com/lyft/flyteidl/gen/pb-go/flyteidl/core')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/event/__init__.py b/flyteidl/gen/pb_python/flyteidl/event/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py new file mode 100644 index 0000000000..f0be7b80ce --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py @@ -0,0 +1,452 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/event/event.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +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.FileDescriptor( + name='flyteidl/event/event.proto', + package='flyteidl.event', + syntax='proto3', + serialized_pb=_b('\n\x1a\x66lyteidl/event/event.proto\x12\x0e\x66lyteidl.event\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xae\x02\n\x16WorkflowExecutionEvent\x12@\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\x12\x13\n\x0bproducer_id\x18\x02 \x01(\t\x12\x35\n\x05phase\x18\x03 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.Phase\x12/\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\noutput_uri\x18\x05 \x01(\tH\x00\x12.\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00\x42\x0f\n\routput_result\"\xd1\x03\n\x12NodeExecutionEvent\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\x12\x13\n\x0bproducer_id\x18\x02 \x01(\t\x12\x31\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.Phase\x12/\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tinput_uri\x18\x05 \x01(\t\x12\x14\n\noutput_uri\x18\x06 \x01(\tH\x00\x12.\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00\x12\x46\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.event.WorkflowNodeMetadataH\x01\x12I\n\x14parent_task_metadata\x18\t \x01(\x0b\x32+.flyteidl.event.ParentTaskExecutionMetadataB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"X\n\x14WorkflowNodeMetadata\x12@\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\"Q\n\x1bParentTaskExecutionMetadata\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifier\"\xef\x03\n\x12TaskExecutionEvent\x12*\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12H\n\x18parent_node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifier\x12\x15\n\rretry_attempt\x18\x03 \x01(\r\x12\x31\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.Phase\x12\x13\n\x0bproducer_id\x18\x05 \x01(\t\x12$\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLog\x12/\n\x0boccurred_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tinput_uri\x18\x08 \x01(\t\x12\x14\n\noutput_uri\x18\t \x01(\tH\x00\x12.\n\x05\x65rror\x18\n \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00\x12,\n\x0b\x63ustom_info\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\rphase_version\x18\x0c \x01(\rB\x0f\n\routput_resultB3Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/eventb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,]) + + + + +_WORKFLOWEXECUTIONEVENT = _descriptor.Descriptor( + name='WorkflowExecutionEvent', + full_name='flyteidl.event.WorkflowExecutionEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='execution_id', full_name='flyteidl.event.WorkflowExecutionEvent.execution_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='producer_id', full_name='flyteidl.event.WorkflowExecutionEvent.producer_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.event.WorkflowExecutionEvent.phase', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='occurred_at', full_name='flyteidl.event.WorkflowExecutionEvent.occurred_at', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='output_uri', full_name='flyteidl.event.WorkflowExecutionEvent.output_uri', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.event.WorkflowExecutionEvent.error', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='output_result', full_name='flyteidl.event.WorkflowExecutionEvent.output_result', + index=0, containing_type=None, fields=[]), + ], + serialized_start=173, + serialized_end=475, +) + + +_NODEEXECUTIONEVENT = _descriptor.Descriptor( + name='NodeExecutionEvent', + full_name='flyteidl.event.NodeExecutionEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.event.NodeExecutionEvent.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='producer_id', full_name='flyteidl.event.NodeExecutionEvent.producer_id', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.event.NodeExecutionEvent.phase', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='occurred_at', full_name='flyteidl.event.NodeExecutionEvent.occurred_at', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='input_uri', full_name='flyteidl.event.NodeExecutionEvent.input_uri', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='output_uri', full_name='flyteidl.event.NodeExecutionEvent.output_uri', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.event.NodeExecutionEvent.error', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='workflow_node_metadata', full_name='flyteidl.event.NodeExecutionEvent.workflow_node_metadata', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_task_metadata', full_name='flyteidl.event.NodeExecutionEvent.parent_task_metadata', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='output_result', full_name='flyteidl.event.NodeExecutionEvent.output_result', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='target_metadata', full_name='flyteidl.event.NodeExecutionEvent.target_metadata', + index=1, containing_type=None, fields=[]), + ], + serialized_start=478, + serialized_end=943, +) + + +_WORKFLOWNODEMETADATA = _descriptor.Descriptor( + name='WorkflowNodeMetadata', + full_name='flyteidl.event.WorkflowNodeMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='execution_id', full_name='flyteidl.event.WorkflowNodeMetadata.execution_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=945, + serialized_end=1033, +) + + +_PARENTTASKEXECUTIONMETADATA = _descriptor.Descriptor( + name='ParentTaskExecutionMetadata', + full_name='flyteidl.event.ParentTaskExecutionMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.event.ParentTaskExecutionMetadata.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1035, + serialized_end=1116, +) + + +_TASKEXECUTIONEVENT = _descriptor.Descriptor( + name='TaskExecutionEvent', + full_name='flyteidl.event.TaskExecutionEvent', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='task_id', full_name='flyteidl.event.TaskExecutionEvent.task_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_node_execution_id', full_name='flyteidl.event.TaskExecutionEvent.parent_node_execution_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='retry_attempt', full_name='flyteidl.event.TaskExecutionEvent.retry_attempt', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.event.TaskExecutionEvent.phase', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='producer_id', full_name='flyteidl.event.TaskExecutionEvent.producer_id', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logs', full_name='flyteidl.event.TaskExecutionEvent.logs', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='occurred_at', full_name='flyteidl.event.TaskExecutionEvent.occurred_at', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='input_uri', full_name='flyteidl.event.TaskExecutionEvent.input_uri', index=7, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='output_uri', full_name='flyteidl.event.TaskExecutionEvent.output_uri', index=8, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='error', full_name='flyteidl.event.TaskExecutionEvent.error', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_info', full_name='flyteidl.event.TaskExecutionEvent.custom_info', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase_version', full_name='flyteidl.event.TaskExecutionEvent.phase_version', index=11, + number=12, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='output_result', full_name='flyteidl.event.TaskExecutionEvent.output_result', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1119, + serialized_end=1614, +) + +_WORKFLOWEXECUTIONEVENT.fields_by_name['execution_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_WORKFLOWEXECUTIONEVENT.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._WORKFLOWEXECUTION_PHASE +_WORKFLOWEXECUTIONEVENT.fields_by_name['occurred_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_WORKFLOWEXECUTIONEVENT.fields_by_name['error'].message_type = flyteidl_dot_core_dot_execution__pb2._EXECUTIONERROR +_WORKFLOWEXECUTIONEVENT.oneofs_by_name['output_result'].fields.append( + _WORKFLOWEXECUTIONEVENT.fields_by_name['output_uri']) +_WORKFLOWEXECUTIONEVENT.fields_by_name['output_uri'].containing_oneof = _WORKFLOWEXECUTIONEVENT.oneofs_by_name['output_result'] +_WORKFLOWEXECUTIONEVENT.oneofs_by_name['output_result'].fields.append( + _WORKFLOWEXECUTIONEVENT.fields_by_name['error']) +_WORKFLOWEXECUTIONEVENT.fields_by_name['error'].containing_oneof = _WORKFLOWEXECUTIONEVENT.oneofs_by_name['output_result'] +_NODEEXECUTIONEVENT.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_NODEEXECUTIONEVENT.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._NODEEXECUTION_PHASE +_NODEEXECUTIONEVENT.fields_by_name['occurred_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_NODEEXECUTIONEVENT.fields_by_name['error'].message_type = flyteidl_dot_core_dot_execution__pb2._EXECUTIONERROR +_NODEEXECUTIONEVENT.fields_by_name['workflow_node_metadata'].message_type = _WORKFLOWNODEMETADATA +_NODEEXECUTIONEVENT.fields_by_name['parent_task_metadata'].message_type = _PARENTTASKEXECUTIONMETADATA +_NODEEXECUTIONEVENT.oneofs_by_name['output_result'].fields.append( + _NODEEXECUTIONEVENT.fields_by_name['output_uri']) +_NODEEXECUTIONEVENT.fields_by_name['output_uri'].containing_oneof = _NODEEXECUTIONEVENT.oneofs_by_name['output_result'] +_NODEEXECUTIONEVENT.oneofs_by_name['output_result'].fields.append( + _NODEEXECUTIONEVENT.fields_by_name['error']) +_NODEEXECUTIONEVENT.fields_by_name['error'].containing_oneof = _NODEEXECUTIONEVENT.oneofs_by_name['output_result'] +_NODEEXECUTIONEVENT.oneofs_by_name['target_metadata'].fields.append( + _NODEEXECUTIONEVENT.fields_by_name['workflow_node_metadata']) +_NODEEXECUTIONEVENT.fields_by_name['workflow_node_metadata'].containing_oneof = _NODEEXECUTIONEVENT.oneofs_by_name['target_metadata'] +_WORKFLOWNODEMETADATA.fields_by_name['execution_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_PARENTTASKEXECUTIONMETADATA.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._TASKEXECUTIONIDENTIFIER +_TASKEXECUTIONEVENT.fields_by_name['task_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_TASKEXECUTIONEVENT.fields_by_name['parent_node_execution_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._NODEEXECUTIONIDENTIFIER +_TASKEXECUTIONEVENT.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._TASKEXECUTION_PHASE +_TASKEXECUTIONEVENT.fields_by_name['logs'].message_type = flyteidl_dot_core_dot_execution__pb2._TASKLOG +_TASKEXECUTIONEVENT.fields_by_name['occurred_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TASKEXECUTIONEVENT.fields_by_name['error'].message_type = flyteidl_dot_core_dot_execution__pb2._EXECUTIONERROR +_TASKEXECUTIONEVENT.fields_by_name['custom_info'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_TASKEXECUTIONEVENT.oneofs_by_name['output_result'].fields.append( + _TASKEXECUTIONEVENT.fields_by_name['output_uri']) +_TASKEXECUTIONEVENT.fields_by_name['output_uri'].containing_oneof = _TASKEXECUTIONEVENT.oneofs_by_name['output_result'] +_TASKEXECUTIONEVENT.oneofs_by_name['output_result'].fields.append( + _TASKEXECUTIONEVENT.fields_by_name['error']) +_TASKEXECUTIONEVENT.fields_by_name['error'].containing_oneof = _TASKEXECUTIONEVENT.oneofs_by_name['output_result'] +DESCRIPTOR.message_types_by_name['WorkflowExecutionEvent'] = _WORKFLOWEXECUTIONEVENT +DESCRIPTOR.message_types_by_name['NodeExecutionEvent'] = _NODEEXECUTIONEVENT +DESCRIPTOR.message_types_by_name['WorkflowNodeMetadata'] = _WORKFLOWNODEMETADATA +DESCRIPTOR.message_types_by_name['ParentTaskExecutionMetadata'] = _PARENTTASKEXECUTIONMETADATA +DESCRIPTOR.message_types_by_name['TaskExecutionEvent'] = _TASKEXECUTIONEVENT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +WorkflowExecutionEvent = _reflection.GeneratedProtocolMessageType('WorkflowExecutionEvent', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWEXECUTIONEVENT, + __module__ = 'flyteidl.event.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) + )) +_sym_db.RegisterMessage(WorkflowExecutionEvent) + +NodeExecutionEvent = _reflection.GeneratedProtocolMessageType('NodeExecutionEvent', (_message.Message,), dict( + DESCRIPTOR = _NODEEXECUTIONEVENT, + __module__ = 'flyteidl.event.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) + )) +_sym_db.RegisterMessage(NodeExecutionEvent) + +WorkflowNodeMetadata = _reflection.GeneratedProtocolMessageType('WorkflowNodeMetadata', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWNODEMETADATA, + __module__ = 'flyteidl.event.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) + )) +_sym_db.RegisterMessage(WorkflowNodeMetadata) + +ParentTaskExecutionMetadata = _reflection.GeneratedProtocolMessageType('ParentTaskExecutionMetadata', (_message.Message,), dict( + DESCRIPTOR = _PARENTTASKEXECUTIONMETADATA, + __module__ = 'flyteidl.event.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) + )) +_sym_db.RegisterMessage(ParentTaskExecutionMetadata) + +TaskExecutionEvent = _reflection.GeneratedProtocolMessageType('TaskExecutionEvent', (_message.Message,), dict( + DESCRIPTOR = _TASKEXECUTIONEVENT, + __module__ = 'flyteidl.event.event_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) + )) +_sym_db.RegisterMessage(TaskExecutionEvent) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z1github.com/lyft/flyteidl/gen/pb-go/flyteidl/event')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py new file mode 100644 index 0000000000..84e9857762 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py @@ -0,0 +1,85 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/array_job.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/array_job.proto', + package='flyteidl.plugins', + syntax='proto3', + serialized_pb=_b('\n flyteidl/plugins/array_job.proto\x12\x10\x66lyteidl.plugins\"D\n\x08\x41rrayJob\x12\x13\n\x0bparallelism\x18\x01 \x01(\x03\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12\x15\n\rmin_successes\x18\x03 \x01(\x03\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + + + + +_ARRAYJOB = _descriptor.Descriptor( + name='ArrayJob', + full_name='flyteidl.plugins.ArrayJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='parallelism', full_name='flyteidl.plugins.ArrayJob.parallelism', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='size', full_name='flyteidl.plugins.ArrayJob.size', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_successes', full_name='flyteidl.plugins.ArrayJob.min_successes', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=54, + serialized_end=122, +) + +DESCRIPTOR.message_types_by_name['ArrayJob'] = _ARRAYJOB +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ArrayJob = _reflection.GeneratedProtocolMessageType('ArrayJob', (_message.Message,), dict( + DESCRIPTOR = _ARRAYJOB, + __module__ = 'flyteidl.plugins.array_job_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) + )) +_sym_db.RegisterMessage(ArrayJob) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py new file mode 100644 index 0000000000..8522c37c94 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py @@ -0,0 +1,181 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/qubole.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/qubole.proto', + package='flyteidl.plugins', + syntax='proto3', + serialized_pb=_b('\n\x1d\x66lyteidl/plugins/qubole.proto\x12\x10\x66lyteidl.plugins\x1a\x19\x66lyteidl/core/tasks.proto\"C\n\tHiveQuery\x12\r\n\x05query\x18\x01 \x01(\t\x12\x13\n\x0btimeout_sec\x18\x02 \x01(\r\x12\x12\n\nretryCount\x18\x03 \x01(\r\"C\n\x13HiveQueryCollection\x12,\n\x07queries\x18\x02 \x03(\x0b\x32\x1b.flyteidl.plugins.HiveQuery\"u\n\rQuboleHiveJob\x12\x15\n\rcluster_label\x18\x01 \x01(\t\x12?\n\x10query_collection\x18\x02 \x01(\x0b\x32%.flyteidl.plugins.HiveQueryCollection\x12\x0c\n\x04tags\x18\x03 \x03(\tB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_tasks__pb2.DESCRIPTOR,]) + + + + +_HIVEQUERY = _descriptor.Descriptor( + name='HiveQuery', + full_name='flyteidl.plugins.HiveQuery', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='flyteidl.plugins.HiveQuery.query', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timeout_sec', full_name='flyteidl.plugins.HiveQuery.timeout_sec', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='retryCount', full_name='flyteidl.plugins.HiveQuery.retryCount', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=78, + serialized_end=145, +) + + +_HIVEQUERYCOLLECTION = _descriptor.Descriptor( + name='HiveQueryCollection', + full_name='flyteidl.plugins.HiveQueryCollection', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='queries', full_name='flyteidl.plugins.HiveQueryCollection.queries', index=0, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=147, + serialized_end=214, +) + + +_QUBOLEHIVEJOB = _descriptor.Descriptor( + name='QuboleHiveJob', + full_name='flyteidl.plugins.QuboleHiveJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cluster_label', full_name='flyteidl.plugins.QuboleHiveJob.cluster_label', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='query_collection', full_name='flyteidl.plugins.QuboleHiveJob.query_collection', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tags', full_name='flyteidl.plugins.QuboleHiveJob.tags', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=216, + serialized_end=333, +) + +_HIVEQUERYCOLLECTION.fields_by_name['queries'].message_type = _HIVEQUERY +_QUBOLEHIVEJOB.fields_by_name['query_collection'].message_type = _HIVEQUERYCOLLECTION +DESCRIPTOR.message_types_by_name['HiveQuery'] = _HIVEQUERY +DESCRIPTOR.message_types_by_name['HiveQueryCollection'] = _HIVEQUERYCOLLECTION +DESCRIPTOR.message_types_by_name['QuboleHiveJob'] = _QUBOLEHIVEJOB +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HiveQuery = _reflection.GeneratedProtocolMessageType('HiveQuery', (_message.Message,), dict( + DESCRIPTOR = _HIVEQUERY, + __module__ = 'flyteidl.plugins.qubole_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) + )) +_sym_db.RegisterMessage(HiveQuery) + +HiveQueryCollection = _reflection.GeneratedProtocolMessageType('HiveQueryCollection', (_message.Message,), dict( + DESCRIPTOR = _HIVEQUERYCOLLECTION, + __module__ = 'flyteidl.plugins.qubole_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) + )) +_sym_db.RegisterMessage(HiveQueryCollection) + +QuboleHiveJob = _reflection.GeneratedProtocolMessageType('QuboleHiveJob', (_message.Message,), dict( + DESCRIPTOR = _QUBOLEHIVEJOB, + __module__ = 'flyteidl.plugins.qubole_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) + )) +_sym_db.RegisterMessage(QuboleHiveJob) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2.py new file mode 100644 index 0000000000..36445718a6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2.py @@ -0,0 +1,81 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/sidecar.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from k8s.io.api.core.v1 import generated_pb2 as k8s_dot_io_dot_api_dot_core_dot_v1_dot_generated__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/sidecar.proto', + package='flyteidl.plugins', + syntax='proto3', + serialized_pb=_b('\n\x1e\x66lyteidl/plugins/sidecar.proto\x12\x10\x66lyteidl.plugins\x1a\"k8s.io/api/core/v1/generated.proto\"[\n\nSidecarJob\x12-\n\x08pod_spec\x18\x01 \x01(\x0b\x32\x1b.k8s.io.api.core.v1.PodSpec\x12\x1e\n\x16primary_container_name\x18\x02 \x01(\tB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[k8s_dot_io_dot_api_dot_core_dot_v1_dot_generated__pb2.DESCRIPTOR,]) + + + + +_SIDECARJOB = _descriptor.Descriptor( + name='SidecarJob', + full_name='flyteidl.plugins.SidecarJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='pod_spec', full_name='flyteidl.plugins.SidecarJob.pod_spec', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='primary_container_name', full_name='flyteidl.plugins.SidecarJob.primary_container_name', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=88, + serialized_end=179, +) + +_SIDECARJOB.fields_by_name['pod_spec'].message_type = k8s_dot_io_dot_api_dot_core_dot_v1_dot_generated__pb2._PODSPEC +DESCRIPTOR.message_types_by_name['SidecarJob'] = _SIDECARJOB +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SidecarJob = _reflection.GeneratedProtocolMessageType('SidecarJob', (_message.Message,), dict( + DESCRIPTOR = _SIDECARJOB, + __module__ = 'flyteidl.plugins.sidecar_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.SidecarJob) + )) +_sym_db.RegisterMessage(SidecarJob) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/sidecar_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py new file mode 100644 index 0000000000..248fb8a345 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py @@ -0,0 +1,269 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/spark.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/spark.proto', + package='flyteidl.plugins', + syntax='proto3', + serialized_pb=_b('\n\x1c\x66lyteidl/plugins/spark.proto\x12\x10\x66lyteidl.plugins\"B\n\x10SparkApplication\".\n\x04Type\x12\n\n\x06PYTHON\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\t\n\x05SCALA\x10\x02\x12\x05\n\x01R\x10\x03\"\xf5\x02\n\x08SparkJob\x12@\n\x0f\x61pplicationType\x18\x01 \x01(\x0e\x32\'.flyteidl.plugins.SparkApplication.Type\x12\x1b\n\x13mainApplicationFile\x18\x02 \x01(\t\x12\x11\n\tmainClass\x18\x03 \x01(\t\x12<\n\tsparkConf\x18\x04 \x03(\x0b\x32).flyteidl.plugins.SparkJob.SparkConfEntry\x12>\n\nhadoopConf\x18\x05 \x03(\x0b\x32*.flyteidl.plugins.SparkJob.HadoopConfEntry\x12\x14\n\x0c\x65xecutorPath\x18\x06 \x01(\t\x1a\x30\n\x0eSparkConfEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fHadoopConfEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x35Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') +) + + + +_SPARKAPPLICATION_TYPE = _descriptor.EnumDescriptor( + name='Type', + full_name='flyteidl.plugins.SparkApplication.Type', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='PYTHON', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='JAVA', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCALA', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='R', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=70, + serialized_end=116, +) +_sym_db.RegisterEnumDescriptor(_SPARKAPPLICATION_TYPE) + + +_SPARKAPPLICATION = _descriptor.Descriptor( + name='SparkApplication', + full_name='flyteidl.plugins.SparkApplication', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SPARKAPPLICATION_TYPE, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=50, + serialized_end=116, +) + + +_SPARKJOB_SPARKCONFENTRY = _descriptor.Descriptor( + name='SparkConfEntry', + full_name='flyteidl.plugins.SparkJob.SparkConfEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.plugins.SparkJob.SparkConfEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.plugins.SparkJob.SparkConfEntry.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=393, + serialized_end=441, +) + +_SPARKJOB_HADOOPCONFENTRY = _descriptor.Descriptor( + name='HadoopConfEntry', + full_name='flyteidl.plugins.SparkJob.HadoopConfEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='flyteidl.plugins.SparkJob.HadoopConfEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='flyteidl.plugins.SparkJob.HadoopConfEntry.value', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=443, + serialized_end=492, +) + +_SPARKJOB = _descriptor.Descriptor( + name='SparkJob', + full_name='flyteidl.plugins.SparkJob', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='applicationType', full_name='flyteidl.plugins.SparkJob.applicationType', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mainApplicationFile', full_name='flyteidl.plugins.SparkJob.mainApplicationFile', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mainClass', full_name='flyteidl.plugins.SparkJob.mainClass', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sparkConf', full_name='flyteidl.plugins.SparkJob.sparkConf', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hadoopConf', full_name='flyteidl.plugins.SparkJob.hadoopConf', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='executorPath', full_name='flyteidl.plugins.SparkJob.executorPath', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_SPARKJOB_SPARKCONFENTRY, _SPARKJOB_HADOOPCONFENTRY, ], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=492, +) + +_SPARKAPPLICATION_TYPE.containing_type = _SPARKAPPLICATION +_SPARKJOB_SPARKCONFENTRY.containing_type = _SPARKJOB +_SPARKJOB_HADOOPCONFENTRY.containing_type = _SPARKJOB +_SPARKJOB.fields_by_name['applicationType'].enum_type = _SPARKAPPLICATION_TYPE +_SPARKJOB.fields_by_name['sparkConf'].message_type = _SPARKJOB_SPARKCONFENTRY +_SPARKJOB.fields_by_name['hadoopConf'].message_type = _SPARKJOB_HADOOPCONFENTRY +DESCRIPTOR.message_types_by_name['SparkApplication'] = _SPARKAPPLICATION +DESCRIPTOR.message_types_by_name['SparkJob'] = _SPARKJOB +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SparkApplication = _reflection.GeneratedProtocolMessageType('SparkApplication', (_message.Message,), dict( + DESCRIPTOR = _SPARKAPPLICATION, + __module__ = 'flyteidl.plugins.spark_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) + )) +_sym_db.RegisterMessage(SparkApplication) + +SparkJob = _reflection.GeneratedProtocolMessageType('SparkJob', (_message.Message,), dict( + + SparkConfEntry = _reflection.GeneratedProtocolMessageType('SparkConfEntry', (_message.Message,), dict( + DESCRIPTOR = _SPARKJOB_SPARKCONFENTRY, + __module__ = 'flyteidl.plugins.spark_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob.SparkConfEntry) + )) + , + + HadoopConfEntry = _reflection.GeneratedProtocolMessageType('HadoopConfEntry', (_message.Message,), dict( + DESCRIPTOR = _SPARKJOB_HADOOPCONFENTRY, + __module__ = 'flyteidl.plugins.spark_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob.HadoopConfEntry) + )) + , + DESCRIPTOR = _SPARKJOB, + __module__ = 'flyteidl.plugins.spark_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) + )) +_sym_db.RegisterMessage(SparkJob) +_sym_db.RegisterMessage(SparkJob.SparkConfEntry) +_sym_db.RegisterMessage(SparkJob.HadoopConfEntry) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins')) +_SPARKJOB_SPARKCONFENTRY.has_options = True +_SPARKJOB_SPARKCONFENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +_SPARKJOB_HADOOPCONFENTRY.has_options = True +_SPARKJOB_HADOOPCONFENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py new file mode 100644 index 0000000000..e1d602d116 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py @@ -0,0 +1,90 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/waitable.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/plugins/waitable.proto', + package='flyteidl.plugins', + syntax='proto3', + serialized_pb=_b('\n\x1f\x66lyteidl/plugins/waitable.proto\x12\x10\x66lyteidl.plugins\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\x96\x01\n\x08Waitable\x12>\n\nwf_exec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifier\x12\x35\n\x05phase\x18\x02 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.Phase\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\tB5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/pluginsb\x06proto3') + , + dependencies=[flyteidl_dot_core_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,]) + + + + +_WAITABLE = _descriptor.Descriptor( + name='Waitable', + full_name='flyteidl.plugins.Waitable', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='wf_exec_id', full_name='flyteidl.plugins.Waitable.wf_exec_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phase', full_name='flyteidl.plugins.Waitable.phase', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='workflow_id', full_name='flyteidl.plugins.Waitable.workflow_id', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=117, + serialized_end=267, +) + +_WAITABLE.fields_by_name['wf_exec_id'].message_type = flyteidl_dot_core_dot_identifier__pb2._WORKFLOWEXECUTIONIDENTIFIER +_WAITABLE.fields_by_name['phase'].enum_type = flyteidl_dot_core_dot_execution__pb2._WORKFLOWEXECUTION_PHASE +DESCRIPTOR.message_types_by_name['Waitable'] = _WAITABLE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Waitable = _reflection.GeneratedProtocolMessageType('Waitable', (_message.Message,), dict( + DESCRIPTOR = _WAITABLE, + __module__ = 'flyteidl.plugins.waitable_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) + )) +_sym_db.RegisterMessage(Waitable) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins')) +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/service/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py new file mode 100644 index 0000000000..051f45de0b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py @@ -0,0 +1,338 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/admin.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 +from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 +from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 +from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 +from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 +from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 +from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 +from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='flyteidl/service/admin.proto', + package='flyteidl.service', + syntax='proto3', + serialized_pb=_b('\n\x1c\x66lyteidl/service/admin.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x66lyteidl/admin/project.proto\x1a\x19\x66lyteidl/admin/task.proto\x1a\x1d\x66lyteidl/admin/workflow.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1a\x66lyteidl/admin/event.proto\x1a\x1e\x66lyteidl/admin/execution.proto\x1a#flyteidl/admin/node_execution.proto\x1a#flyteidl/admin/task_execution.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a,protoc-gen-swagger/options/annotations.proto2\xc1\x38\n\x0c\x41\x64minService\x12\xc4\x02\n\nCreateTask\x12!.flyteidl.admin.TaskCreateRequest\x1a\".flyteidl.admin.TaskCreateResponse\"\xee\x01\x82\xd3\xe4\x93\x02\x12\"\r/api/v1/tasks:\x01*\x92\x41\xd2\x01\x1a%Create and register a task definitionJB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x12\x88\x01\n\x07GetTask\x12 .flyteidl.admin.ObjectGetRequest\x1a\x14.flyteidl.admin.Task\"E\x82\xd3\xe4\x93\x02?\x12=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x97\x01\n\x0bListTaskIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"+\x82\xd3\xe4\x93\x02%\x12#/api/v1/task_ids/{project}/{domain}\x12\xae\x01\n\tListTasks\x12#.flyteidl.admin.ResourceListRequest\x1a\x18.flyteidl.admin.TaskList\"b\x82\xd3\xe4\x93\x02\\\x12\x30/api/v1/tasks/{id.project}/{id.domain}/{id.name}Z(\x12&/api/v1/tasks/{id.project}/{id.domain}\x12\xd8\x02\n\x0e\x43reateWorkflow\x12%.flyteidl.admin.WorkflowCreateRequest\x1a&.flyteidl.admin.WorkflowCreateResponse\"\xf6\x01\x82\xd3\xe4\x93\x02\x16\"\x11/api/v1/workflows:\x01*\x92\x41\xd6\x01\x1a)Create and register a workflow definitionJB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x12\x94\x01\n\x0bGetWorkflow\x12 .flyteidl.admin.ObjectGetRequest\x1a\x18.flyteidl.admin.Workflow\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x9f\x01\n\x0fListWorkflowIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"/\x82\xd3\xe4\x93\x02)\x12\'/api/v1/workflow_ids/{project}/{domain}\x12\xbe\x01\n\rListWorkflows\x12#.flyteidl.admin.ResourceListRequest\x1a\x1c.flyteidl.admin.WorkflowList\"j\x82\xd3\xe4\x93\x02\x64\x12\x34/api/v1/workflows/{id.project}/{id.domain}/{id.name}Z,\x12*/api/v1/workflows/{id.project}/{id.domain}\x12\xe4\x02\n\x10\x43reateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanCreateRequest\x1a(.flyteidl.admin.LaunchPlanCreateResponse\"\xfc\x01\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/launch_plans:\x01*\x92\x41\xd9\x01\x1a,Create and register a launch plan definitionJB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x12\x9b\x01\n\rGetLaunchPlan\x12 .flyteidl.admin.ObjectGetRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xa4\x01\n\x11ListLaunchPlanIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"2\x82\xd3\xe4\x93\x02,\x12*/api/v1/launch_plan_ids/{project}/{domain}\x12\xc8\x01\n\x0fListLaunchPlans\x12#.flyteidl.admin.ResourceListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"p\x82\xd3\xe4\x93\x02j\x12\x37/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}Z/\x12-/api/v1/launch_plans/{id.project}/{id.domain}\x12\xb6\x01\n\x10UpdateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanUpdateRequest\x1a(.flyteidl.admin.LaunchPlanUpdateResponse\"O\x82\xd3\xe4\x93\x02I\x1a\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}:\x01*\x12\xce\x02\n\x0f\x43reateExecution\x12&.flyteidl.admin.ExecutionCreateRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"\xe9\x01\x82\xd3\xe4\x93\x02\x17\"\x12/api/v1/executions:\x01*\x92\x41\xc8\x01\x1a\x1b\x43reate a workflow executionJB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x12\xdd\x02\n\x11RelaunchExecution\x12(.flyteidl.admin.ExecutionRelaunchRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"\xf4\x01\x82\xd3\xe4\x93\x02 \"\x1b/api/v1/executions/relaunch:\x01*\x92\x41\xca\x01\x1a\x1dRelaunch a workflow executionJB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x12\x95\x01\n\x0cGetExecution\x12+.flyteidl.admin.WorkflowExecutionGetRequest\x1a\x19.flyteidl.admin.Execution\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xb9\x01\n\x10GetExecutionData\x12/.flyteidl.admin.WorkflowExecutionGetDataRequest\x1a\x30.flyteidl.admin.WorkflowExecutionGetDataResponse\"B\x82\xd3\xe4\x93\x02<\x12:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}\x12\x89\x01\n\x0eListExecutions\x12#.flyteidl.admin.ResourceListRequest\x1a\x1d.flyteidl.admin.ExecutionList\"3\x82\xd3\xe4\x93\x02-\x12+/api/v1/executions/{id.project}/{id.domain}\x12\xad\x01\n\x12TerminateExecution\x12).flyteidl.admin.ExecutionTerminateRequest\x1a*.flyteidl.admin.ExecutionTerminateResponse\"@\x82\xd3\xe4\x93\x02:*5/api/v1/executions/{id.project}/{id.domain}/{id.name}:\x01*\x12\xd2\x01\n\x10GetNodeExecution\x12\'.flyteidl.admin.NodeExecutionGetRequest\x1a\x1d.flyteidl.admin.NodeExecution\"v\x82\xd3\xe4\x93\x02p\x12n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\xde\x01\n\x12ListNodeExecutions\x12(.flyteidl.admin.NodeExecutionListRequest\x1a!.flyteidl.admin.NodeExecutionList\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xa5\x04\n\x19ListNodeExecutionsForTask\x12/.flyteidl.admin.NodeExecutionForTaskListRequest\x1a!.flyteidl.admin.NodeExecutionList\"\xb3\x03\x82\xd3\xe4\x93\x02\xac\x03\x12\xa9\x03/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}\x12\xee\x01\n\x14GetNodeExecutionData\x12+.flyteidl.admin.NodeExecutionGetDataRequest\x1a,.flyteidl.admin.NodeExecutionGetDataResponse\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\xa5\x02\n\x0fRegisterProject\x12&.flyteidl.admin.ProjectRegisterRequest\x1a\'.flyteidl.admin.ProjectRegisterResponse\"\xc0\x01\x82\xd3\xe4\x93\x02\x15\"\x10/api/v1/projects:\x01*\x92\x41\xa1\x01\x1a+Register a project along with valid domainsJ.\n\x03\x32\x30\x31\x12\'\n%Returned for successful registration.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.\x12\x66\n\x0cListProjects\x12\".flyteidl.admin.ProjectListRequest\x1a\x18.flyteidl.admin.Projects\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/projects\x12\x99\x01\n\x13\x43reateWorkflowEvent\x12-.flyteidl.admin.WorkflowExecutionEventRequest\x1a..flyteidl.admin.WorkflowExecutionEventResponse\"#\x82\xd3\xe4\x93\x02\x1d\"\x18/api/v1/events/workflows:\x01*\x12\x89\x01\n\x0f\x43reateNodeEvent\x12).flyteidl.admin.NodeExecutionEventRequest\x1a*.flyteidl.admin.NodeExecutionEventResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/events/nodes:\x01*\x12\x89\x01\n\x0f\x43reateTaskEvent\x12).flyteidl.admin.TaskExecutionEventRequest\x1a*.flyteidl.admin.TaskExecutionEventResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\"\x14/api/v1/events/tasks:\x01*\x12\x80\x03\n\x10GetTaskExecution\x12\'.flyteidl.admin.TaskExecutionGetRequest\x1a\x1d.flyteidl.admin.TaskExecution\"\xa3\x02\x82\xd3\xe4\x93\x02\x9c\x02\x12\x99\x02/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\x98\x02\n\x12ListTaskExecutions\x12(.flyteidl.admin.TaskExecutionListRequest\x1a!.flyteidl.admin.TaskExecutionList\"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01\x12\xaa\x01/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}\x12\x9c\x03\n\x14GetTaskExecutionData\x12+.flyteidl.admin.TaskExecutionGetDataRequest\x1a,.flyteidl.admin.TaskExecutionGetDataResponse\"\xa8\x02\x82\xd3\xe4\x93\x02\xa1\x02\x12\x9e\x02/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}B5Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/serviceb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_project__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_task__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_workflow__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_launch__plan__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_event__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_execution__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_node__execution__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_task__execution__pb2.DESCRIPTOR,flyteidl_dot_admin_dot_common__pb2.DESCRIPTOR,protoc__gen__swagger_dot_options_dot_annotations__pb2.DESCRIPTOR,]) + + + +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + +DESCRIPTOR.has_options = True +DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('Z3github.com/lyft/flyteidl/gen/pb-go/flyteidl/service')) + +_ADMINSERVICE = _descriptor.ServiceDescriptor( + name='AdminService', + full_name='flyteidl.service.AdminService', + file=DESCRIPTOR, + index=0, + options=None, + serialized_start=412, + serialized_end=7645, + methods=[ + _descriptor.MethodDescriptor( + name='CreateTask', + full_name='flyteidl.service.AdminService.CreateTask', + index=0, + containing_service=None, + input_type=flyteidl_dot_admin_dot_task__pb2._TASKCREATEREQUEST, + output_type=flyteidl_dot_admin_dot_task__pb2._TASKCREATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\022\"\r/api/v1/tasks:\001*\222A\322\001\032%Create and register a task definitionJB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.')), + ), + _descriptor.MethodDescriptor( + name='GetTask', + full_name='flyteidl.service.AdminService.GetTask', + index=1, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._OBJECTGETREQUEST, + output_type=flyteidl_dot_admin_dot_task__pb2._TASK, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002?\022=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}')), + ), + _descriptor.MethodDescriptor( + name='ListTaskIds', + full_name='flyteidl.service.AdminService.ListTaskIds', + index=2, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._NAMEDENTITYIDENTIFIERLISTREQUEST, + output_type=flyteidl_dot_admin_dot_common__pb2._NAMEDENTITYIDENTIFIERLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002%\022#/api/v1/task_ids/{project}/{domain}')), + ), + _descriptor.MethodDescriptor( + name='ListTasks', + full_name='flyteidl.service.AdminService.ListTasks', + index=3, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._RESOURCELISTREQUEST, + output_type=flyteidl_dot_admin_dot_task__pb2._TASKLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\\\0220/api/v1/tasks/{id.project}/{id.domain}/{id.name}Z(\022&/api/v1/tasks/{id.project}/{id.domain}')), + ), + _descriptor.MethodDescriptor( + name='CreateWorkflow', + full_name='flyteidl.service.AdminService.CreateWorkflow', + index=4, + containing_service=None, + input_type=flyteidl_dot_admin_dot_workflow__pb2._WORKFLOWCREATEREQUEST, + output_type=flyteidl_dot_admin_dot_workflow__pb2._WORKFLOWCREATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\026\"\021/api/v1/workflows:\001*\222A\326\001\032)Create and register a workflow definitionJB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.')), + ), + _descriptor.MethodDescriptor( + name='GetWorkflow', + full_name='flyteidl.service.AdminService.GetWorkflow', + index=5, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._OBJECTGETREQUEST, + output_type=flyteidl_dot_admin_dot_workflow__pb2._WORKFLOW, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002C\022A/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}')), + ), + _descriptor.MethodDescriptor( + name='ListWorkflowIds', + full_name='flyteidl.service.AdminService.ListWorkflowIds', + index=6, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._NAMEDENTITYIDENTIFIERLISTREQUEST, + output_type=flyteidl_dot_admin_dot_common__pb2._NAMEDENTITYIDENTIFIERLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002)\022\'/api/v1/workflow_ids/{project}/{domain}')), + ), + _descriptor.MethodDescriptor( + name='ListWorkflows', + full_name='flyteidl.service.AdminService.ListWorkflows', + index=7, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._RESOURCELISTREQUEST, + output_type=flyteidl_dot_admin_dot_workflow__pb2._WORKFLOWLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002d\0224/api/v1/workflows/{id.project}/{id.domain}/{id.name}Z,\022*/api/v1/workflows/{id.project}/{id.domain}')), + ), + _descriptor.MethodDescriptor( + name='CreateLaunchPlan', + full_name='flyteidl.service.AdminService.CreateLaunchPlan', + index=8, + containing_service=None, + input_type=flyteidl_dot_admin_dot_launch__plan__pb2._LAUNCHPLANCREATEREQUEST, + output_type=flyteidl_dot_admin_dot_launch__plan__pb2._LAUNCHPLANCREATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\031\"\024/api/v1/launch_plans:\001*\222A\331\001\032,Create and register a launch plan definitionJB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.')), + ), + _descriptor.MethodDescriptor( + name='GetLaunchPlan', + full_name='flyteidl.service.AdminService.GetLaunchPlan', + index=9, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._OBJECTGETREQUEST, + output_type=flyteidl_dot_admin_dot_launch__plan__pb2._LAUNCHPLAN, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002F\022D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}')), + ), + _descriptor.MethodDescriptor( + name='ListLaunchPlanIds', + full_name='flyteidl.service.AdminService.ListLaunchPlanIds', + index=10, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._NAMEDENTITYIDENTIFIERLISTREQUEST, + output_type=flyteidl_dot_admin_dot_common__pb2._NAMEDENTITYIDENTIFIERLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002,\022*/api/v1/launch_plan_ids/{project}/{domain}')), + ), + _descriptor.MethodDescriptor( + name='ListLaunchPlans', + full_name='flyteidl.service.AdminService.ListLaunchPlans', + index=11, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._RESOURCELISTREQUEST, + output_type=flyteidl_dot_admin_dot_launch__plan__pb2._LAUNCHPLANLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002j\0227/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}Z/\022-/api/v1/launch_plans/{id.project}/{id.domain}')), + ), + _descriptor.MethodDescriptor( + name='UpdateLaunchPlan', + full_name='flyteidl.service.AdminService.UpdateLaunchPlan', + index=12, + containing_service=None, + input_type=flyteidl_dot_admin_dot_launch__plan__pb2._LAUNCHPLANUPDATEREQUEST, + output_type=flyteidl_dot_admin_dot_launch__plan__pb2._LAUNCHPLANUPDATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002I\032D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}:\001*')), + ), + _descriptor.MethodDescriptor( + name='CreateExecution', + full_name='flyteidl.service.AdminService.CreateExecution', + index=13, + containing_service=None, + input_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONCREATEREQUEST, + output_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONCREATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\027\"\022/api/v1/executions:\001*\222A\310\001\032\033Create a workflow executionJB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.')), + ), + _descriptor.MethodDescriptor( + name='RelaunchExecution', + full_name='flyteidl.service.AdminService.RelaunchExecution', + index=14, + containing_service=None, + input_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONRELAUNCHREQUEST, + output_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONCREATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002 \"\033/api/v1/executions/relaunch:\001*\222A\312\001\032\035Relaunch a workflow executionJB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.')), + ), + _descriptor.MethodDescriptor( + name='GetExecution', + full_name='flyteidl.service.AdminService.GetExecution', + index=15, + containing_service=None, + input_type=flyteidl_dot_admin_dot_execution__pb2._WORKFLOWEXECUTIONGETREQUEST, + output_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTION, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\0027\0225/api/v1/executions/{id.project}/{id.domain}/{id.name}')), + ), + _descriptor.MethodDescriptor( + name='GetExecutionData', + full_name='flyteidl.service.AdminService.GetExecutionData', + index=16, + containing_service=None, + input_type=flyteidl_dot_admin_dot_execution__pb2._WORKFLOWEXECUTIONGETDATAREQUEST, + output_type=flyteidl_dot_admin_dot_execution__pb2._WORKFLOWEXECUTIONGETDATARESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002<\022:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}')), + ), + _descriptor.MethodDescriptor( + name='ListExecutions', + full_name='flyteidl.service.AdminService.ListExecutions', + index=17, + containing_service=None, + input_type=flyteidl_dot_admin_dot_common__pb2._RESOURCELISTREQUEST, + output_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002-\022+/api/v1/executions/{id.project}/{id.domain}')), + ), + _descriptor.MethodDescriptor( + name='TerminateExecution', + full_name='flyteidl.service.AdminService.TerminateExecution', + index=18, + containing_service=None, + input_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONTERMINATEREQUEST, + output_type=flyteidl_dot_admin_dot_execution__pb2._EXECUTIONTERMINATERESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002:*5/api/v1/executions/{id.project}/{id.domain}/{id.name}:\001*')), + ), + _descriptor.MethodDescriptor( + name='GetNodeExecution', + full_name='flyteidl.service.AdminService.GetNodeExecution', + index=19, + containing_service=None, + input_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONGETREQUEST, + output_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTION, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002p\022n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}')), + ), + _descriptor.MethodDescriptor( + name='ListNodeExecutions', + full_name='flyteidl.service.AdminService.ListNodeExecutions', + index=20, + containing_service=None, + input_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONLISTREQUEST, + output_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002u\022s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}')), + ), + _descriptor.MethodDescriptor( + name='ListNodeExecutionsForTask', + full_name='flyteidl.service.AdminService.ListNodeExecutionsForTask', + index=21, + containing_service=None, + input_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONFORTASKLISTREQUEST, + output_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}')), + ), + _descriptor.MethodDescriptor( + name='GetNodeExecutionData', + full_name='flyteidl.service.AdminService.GetNodeExecutionData', + index=22, + containing_service=None, + input_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONGETDATAREQUEST, + output_type=flyteidl_dot_admin_dot_node__execution__pb2._NODEEXECUTIONGETDATARESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002u\022s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}')), + ), + _descriptor.MethodDescriptor( + name='RegisterProject', + full_name='flyteidl.service.AdminService.RegisterProject', + index=23, + containing_service=None, + input_type=flyteidl_dot_admin_dot_project__pb2._PROJECTREGISTERREQUEST, + output_type=flyteidl_dot_admin_dot_project__pb2._PROJECTREGISTERRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\025\"\020/api/v1/projects:\001*\222A\241\001\032+Register a project along with valid domainsJ.\n\003201\022\'\n%Returned for successful registration.JB\n\003400\022;\n9Returned for bad request that may have failed validation.')), + ), + _descriptor.MethodDescriptor( + name='ListProjects', + full_name='flyteidl.service.AdminService.ListProjects', + index=24, + containing_service=None, + input_type=flyteidl_dot_admin_dot_project__pb2._PROJECTLISTREQUEST, + output_type=flyteidl_dot_admin_dot_project__pb2._PROJECTS, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\022\022\020/api/v1/projects')), + ), + _descriptor.MethodDescriptor( + name='CreateWorkflowEvent', + full_name='flyteidl.service.AdminService.CreateWorkflowEvent', + index=25, + containing_service=None, + input_type=flyteidl_dot_admin_dot_event__pb2._WORKFLOWEXECUTIONEVENTREQUEST, + output_type=flyteidl_dot_admin_dot_event__pb2._WORKFLOWEXECUTIONEVENTRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\035\"\030/api/v1/events/workflows:\001*')), + ), + _descriptor.MethodDescriptor( + name='CreateNodeEvent', + full_name='flyteidl.service.AdminService.CreateNodeEvent', + index=26, + containing_service=None, + input_type=flyteidl_dot_admin_dot_event__pb2._NODEEXECUTIONEVENTREQUEST, + output_type=flyteidl_dot_admin_dot_event__pb2._NODEEXECUTIONEVENTRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\031\"\024/api/v1/events/nodes:\001*')), + ), + _descriptor.MethodDescriptor( + name='CreateTaskEvent', + full_name='flyteidl.service.AdminService.CreateTaskEvent', + index=27, + containing_service=None, + input_type=flyteidl_dot_admin_dot_event__pb2._TASKEXECUTIONEVENTREQUEST, + output_type=flyteidl_dot_admin_dot_event__pb2._TASKEXECUTIONEVENTRESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\031\"\024/api/v1/events/tasks:\001*')), + ), + _descriptor.MethodDescriptor( + name='GetTaskExecution', + full_name='flyteidl.service.AdminService.GetTaskExecution', + index=28, + containing_service=None, + input_type=flyteidl_dot_admin_dot_task__execution__pb2._TASKEXECUTIONGETREQUEST, + output_type=flyteidl_dot_admin_dot_task__execution__pb2._TASKEXECUTION, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}')), + ), + _descriptor.MethodDescriptor( + name='ListTaskExecutions', + full_name='flyteidl.service.AdminService.ListTaskExecutions', + index=29, + containing_service=None, + input_type=flyteidl_dot_admin_dot_task__execution__pb2._TASKEXECUTIONLISTREQUEST, + output_type=flyteidl_dot_admin_dot_task__execution__pb2._TASKEXECUTIONLIST, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}')), + ), + _descriptor.MethodDescriptor( + name='GetTaskExecutionData', + full_name='flyteidl.service.AdminService.GetTaskExecutionData', + index=30, + containing_service=None, + input_type=flyteidl_dot_admin_dot_task__execution__pb2._TASKEXECUTIONGETDATAREQUEST, + output_type=flyteidl_dot_admin_dot_task__execution__pb2._TASKEXECUTIONGETDATARESPONSE, + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\241\002\022\236\002/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}')), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADMINSERVICE) + +DESCRIPTOR.services_by_name['AdminService'] = _ADMINSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py new file mode 100644 index 0000000000..2551969319 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py @@ -0,0 +1,564 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 +from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 +from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 +from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 +from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 +from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 +from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 +from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 + + +class AdminServiceStub(object): + # missing associated documentation comment in .proto file + pass + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateTask = channel.unary_unary( + '/flyteidl.service.AdminService/CreateTask', + request_serializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.FromString, + ) + self.GetTask = channel.unary_unary( + '/flyteidl.service.AdminService/GetTask', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__pb2.Task.FromString, + ) + self.ListTaskIds = channel.unary_unary( + '/flyteidl.service.AdminService/ListTaskIds', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + ) + self.ListTasks = channel.unary_unary( + '/flyteidl.service.AdminService/ListTasks', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskList.FromString, + ) + self.CreateWorkflow = channel.unary_unary( + '/flyteidl.service.AdminService/CreateWorkflow', + request_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.FromString, + ) + self.GetWorkflow = channel.unary_unary( + '/flyteidl.service.AdminService/GetWorkflow', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.Workflow.FromString, + ) + self.ListWorkflowIds = channel.unary_unary( + '/flyteidl.service.AdminService/ListWorkflowIds', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + ) + self.ListWorkflows = channel.unary_unary( + '/flyteidl.service.AdminService/ListWorkflows', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.FromString, + ) + self.CreateLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/CreateLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.FromString, + ) + self.GetLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/GetLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, + ) + self.ListLaunchPlanIds = channel.unary_unary( + '/flyteidl.service.AdminService/ListLaunchPlanIds', + request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, + ) + self.ListLaunchPlans = channel.unary_unary( + '/flyteidl.service.AdminService/ListLaunchPlans', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, + ) + self.UpdateLaunchPlan = channel.unary_unary( + '/flyteidl.service.AdminService/UpdateLaunchPlan', + request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.FromString, + ) + self.CreateExecution = channel.unary_unary( + '/flyteidl.service.AdminService/CreateExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + ) + self.RelaunchExecution = channel.unary_unary( + '/flyteidl.service.AdminService/RelaunchExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, + ) + self.GetExecution = channel.unary_unary( + '/flyteidl.service.AdminService/GetExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.Execution.FromString, + ) + self.GetExecutionData = channel.unary_unary( + '/flyteidl.service.AdminService/GetExecutionData', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.FromString, + ) + self.ListExecutions = channel.unary_unary( + '/flyteidl.service.AdminService/ListExecutions', + request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionList.FromString, + ) + self.TerminateExecution = channel.unary_unary( + '/flyteidl.service.AdminService/TerminateExecution', + request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.FromString, + ) + self.GetNodeExecution = channel.unary_unary( + '/flyteidl.service.AdminService/GetNodeExecution', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.FromString, + ) + self.ListNodeExecutions = channel.unary_unary( + '/flyteidl.service.AdminService/ListNodeExecutions', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, + ) + self.ListNodeExecutionsForTask = channel.unary_unary( + '/flyteidl.service.AdminService/ListNodeExecutionsForTask', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, + ) + self.GetNodeExecutionData = channel.unary_unary( + '/flyteidl.service.AdminService/GetNodeExecutionData', + request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.FromString, + ) + self.RegisterProject = channel.unary_unary( + '/flyteidl.service.AdminService/RegisterProject', + request_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.FromString, + ) + self.ListProjects = channel.unary_unary( + '/flyteidl.service.AdminService/ListProjects', + request_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_project__pb2.Projects.FromString, + ) + self.CreateWorkflowEvent = channel.unary_unary( + '/flyteidl.service.AdminService/CreateWorkflowEvent', + request_serializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.FromString, + ) + self.CreateNodeEvent = channel.unary_unary( + '/flyteidl.service.AdminService/CreateNodeEvent', + request_serializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.FromString, + ) + self.CreateTaskEvent = channel.unary_unary( + '/flyteidl.service.AdminService/CreateTaskEvent', + request_serializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.FromString, + ) + self.GetTaskExecution = channel.unary_unary( + '/flyteidl.service.AdminService/GetTaskExecution', + request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.FromString, + ) + self.ListTaskExecutions = channel.unary_unary( + '/flyteidl.service.AdminService/ListTaskExecutions', + request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.FromString, + ) + self.GetTaskExecutionData = channel.unary_unary( + '/flyteidl.service.AdminService/GetTaskExecutionData', + request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.FromString, + ) + + +class AdminServiceServicer(object): + # missing associated documentation comment in .proto file + pass + + def CreateTask(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTask(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTaskIds(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTasks(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWorkflow(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetWorkflow(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListWorkflowIds(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListWorkflows(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateLaunchPlan(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLaunchPlan(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListLaunchPlanIds(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListLaunchPlans(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateLaunchPlan(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateExecution(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RelaunchExecution(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExecution(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExecutionData(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListExecutions(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TerminateExecution(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNodeExecution(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListNodeExecutions(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListNodeExecutionsForTask(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNodeExecutionData(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RegisterProject(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListProjects(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWorkflowEvent(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateNodeEvent(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateTaskEvent(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTaskExecution(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListTaskExecutions(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTaskExecutionData(self, request, context): + # missing associated documentation comment in .proto file + pass + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdminServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateTask': grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.SerializeToString, + ), + 'GetTask': grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__pb2.Task.SerializeToString, + ), + 'ListTaskIds': grpc.unary_unary_rpc_method_handler( + servicer.ListTaskIds, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, + ), + 'ListTasks': grpc.unary_unary_rpc_method_handler( + servicer.ListTasks, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__pb2.TaskList.SerializeToString, + ), + 'CreateWorkflow': grpc.unary_unary_rpc_method_handler( + servicer.CreateWorkflow, + request_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.SerializeToString, + ), + 'GetWorkflow': grpc.unary_unary_rpc_method_handler( + servicer.GetWorkflow, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__pb2.Workflow.SerializeToString, + ), + 'ListWorkflowIds': grpc.unary_unary_rpc_method_handler( + servicer.ListWorkflowIds, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, + ), + 'ListWorkflows': grpc.unary_unary_rpc_method_handler( + servicer.ListWorkflows, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.SerializeToString, + ), + 'CreateLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.CreateLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.SerializeToString, + ), + 'GetLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.GetLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.SerializeToString, + ), + 'ListLaunchPlanIds': grpc.unary_unary_rpc_method_handler( + servicer.ListLaunchPlanIds, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, + ), + 'ListLaunchPlans': grpc.unary_unary_rpc_method_handler( + servicer.ListLaunchPlans, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.SerializeToString, + ), + 'UpdateLaunchPlan': grpc.unary_unary_rpc_method_handler( + servicer.UpdateLaunchPlan, + request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.SerializeToString, + ), + 'CreateExecution': grpc.unary_unary_rpc_method_handler( + servicer.CreateExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, + ), + 'RelaunchExecution': grpc.unary_unary_rpc_method_handler( + servicer.RelaunchExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, + ), + 'GetExecution': grpc.unary_unary_rpc_method_handler( + servicer.GetExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.Execution.SerializeToString, + ), + 'GetExecutionData': grpc.unary_unary_rpc_method_handler( + servicer.GetExecutionData, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.SerializeToString, + ), + 'ListExecutions': grpc.unary_unary_rpc_method_handler( + servicer.ListExecutions, + request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionList.SerializeToString, + ), + 'TerminateExecution': grpc.unary_unary_rpc_method_handler( + servicer.TerminateExecution, + request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.SerializeToString, + ), + 'GetNodeExecution': grpc.unary_unary_rpc_method_handler( + servicer.GetNodeExecution, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.SerializeToString, + ), + 'ListNodeExecutions': grpc.unary_unary_rpc_method_handler( + servicer.ListNodeExecutions, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.SerializeToString, + ), + 'ListNodeExecutionsForTask': grpc.unary_unary_rpc_method_handler( + servicer.ListNodeExecutionsForTask, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.SerializeToString, + ), + 'GetNodeExecutionData': grpc.unary_unary_rpc_method_handler( + servicer.GetNodeExecutionData, + request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.SerializeToString, + ), + 'RegisterProject': grpc.unary_unary_rpc_method_handler( + servicer.RegisterProject, + request_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.SerializeToString, + ), + 'ListProjects': grpc.unary_unary_rpc_method_handler( + servicer.ListProjects, + request_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_project__pb2.Projects.SerializeToString, + ), + 'CreateWorkflowEvent': grpc.unary_unary_rpc_method_handler( + servicer.CreateWorkflowEvent, + request_deserializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.SerializeToString, + ), + 'CreateNodeEvent': grpc.unary_unary_rpc_method_handler( + servicer.CreateNodeEvent, + request_deserializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.SerializeToString, + ), + 'CreateTaskEvent': grpc.unary_unary_rpc_method_handler( + servicer.CreateTaskEvent, + request_deserializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.SerializeToString, + ), + 'GetTaskExecution': grpc.unary_unary_rpc_method_handler( + servicer.GetTaskExecution, + request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.SerializeToString, + ), + 'ListTaskExecutions': grpc.unary_unary_rpc_method_handler( + servicer.ListTaskExecutions, + request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.SerializeToString, + ), + 'GetTaskExecutionData': grpc.unary_unary_rpc_method_handler( + servicer.GetTaskExecutionData, + request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.AdminService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore new file mode 100644 index 0000000000..a655050c26 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore @@ -0,0 +1,64 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore new file mode 100644 index 0000000000..c5fa491b4c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION new file mode 100644 index 0000000000..6cecc1a68f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.6-SNAPSHOT \ No newline at end of file diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml new file mode 100644 index 0000000000..86211e2d4a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml @@ -0,0 +1,14 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md new file mode 100644 index 0000000000..7e5a857577 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md @@ -0,0 +1,271 @@ +# flyteadmin +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: + +- API version: version not set +- Package version: 1.0.0 +- Build package: io.swagger.codegen.languages.PythonClientCodegen + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on Github, you can install directly from Github + +```sh +pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) + +Then import the package: +```python +import flyteadmin +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import flyteadmin +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import flyteadmin +from flyteadmin.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = flyteadmin.AdminServiceApi(flyteadmin.ApiClient(configuration)) +body = flyteadmin.AdminExecutionCreateRequest() # AdminExecutionCreateRequest | + +try: + api_response = api_instance.create_execution(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminServiceApi->create_execution: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminServiceApi* | [**create_execution**](docs/AdminServiceApi.md#create_execution) | **POST** /api/v1/executions | +*AdminServiceApi* | [**create_launch_plan**](docs/AdminServiceApi.md#create_launch_plan) | **POST** /api/v1/launch_plans | +*AdminServiceApi* | [**create_node_event**](docs/AdminServiceApi.md#create_node_event) | **POST** /api/v1/events/nodes | +*AdminServiceApi* | [**create_task**](docs/AdminServiceApi.md#create_task) | **POST** /api/v1/tasks | +*AdminServiceApi* | [**create_task_event**](docs/AdminServiceApi.md#create_task_event) | **POST** /api/v1/events/tasks | +*AdminServiceApi* | [**create_workflow**](docs/AdminServiceApi.md#create_workflow) | **POST** /api/v1/workflows | +*AdminServiceApi* | [**create_workflow_event**](docs/AdminServiceApi.md#create_workflow_event) | **POST** /api/v1/events/workflows | +*AdminServiceApi* | [**get_execution**](docs/AdminServiceApi.md#get_execution) | **GET** /api/v1/executions/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**get_execution_data**](docs/AdminServiceApi.md#get_execution_data) | **GET** /api/v1/data/executions/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**get_launch_plan**](docs/AdminServiceApi.md#get_launch_plan) | **GET** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | +*AdminServiceApi* | [**get_node_execution**](docs/AdminServiceApi.md#get_node_execution) | **GET** /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | +*AdminServiceApi* | [**get_node_execution_data**](docs/AdminServiceApi.md#get_node_execution_data) | **GET** /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | +*AdminServiceApi* | [**get_task**](docs/AdminServiceApi.md#get_task) | **GET** /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version} | +*AdminServiceApi* | [**get_task_execution**](docs/AdminServiceApi.md#get_task_execution) | **GET** /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | +*AdminServiceApi* | [**get_task_execution_data**](docs/AdminServiceApi.md#get_task_execution_data) | **GET** /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | +*AdminServiceApi* | [**get_workflow**](docs/AdminServiceApi.md#get_workflow) | **GET** /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version} | +*AdminServiceApi* | [**list_executions**](docs/AdminServiceApi.md#list_executions) | **GET** /api/v1/executions/{id.project}/{id.domain} | +*AdminServiceApi* | [**list_launch_plan_ids**](docs/AdminServiceApi.md#list_launch_plan_ids) | **GET** /api/v1/launch_plan_ids/{project}/{domain} | +*AdminServiceApi* | [**list_launch_plans**](docs/AdminServiceApi.md#list_launch_plans) | **GET** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**list_launch_plans2**](docs/AdminServiceApi.md#list_launch_plans2) | **GET** /api/v1/launch_plans/{id.project}/{id.domain} | +*AdminServiceApi* | [**list_node_executions**](docs/AdminServiceApi.md#list_node_executions) | **GET** /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name} | +*AdminServiceApi* | [**list_node_executions_for_task**](docs/AdminServiceApi.md#list_node_executions_for_task) | **GET** /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} | +*AdminServiceApi* | [**list_projects**](docs/AdminServiceApi.md#list_projects) | **GET** /api/v1/projects | +*AdminServiceApi* | [**list_task_executions**](docs/AdminServiceApi.md#list_task_executions) | **GET** /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} | +*AdminServiceApi* | [**list_task_ids**](docs/AdminServiceApi.md#list_task_ids) | **GET** /api/v1/task_ids/{project}/{domain} | +*AdminServiceApi* | [**list_tasks**](docs/AdminServiceApi.md#list_tasks) | **GET** /api/v1/tasks/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**list_tasks2**](docs/AdminServiceApi.md#list_tasks2) | **GET** /api/v1/tasks/{id.project}/{id.domain} | +*AdminServiceApi* | [**list_workflow_ids**](docs/AdminServiceApi.md#list_workflow_ids) | **GET** /api/v1/workflow_ids/{project}/{domain} | +*AdminServiceApi* | [**list_workflows**](docs/AdminServiceApi.md#list_workflows) | **GET** /api/v1/workflows/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**list_workflows2**](docs/AdminServiceApi.md#list_workflows2) | **GET** /api/v1/workflows/{id.project}/{id.domain} | +*AdminServiceApi* | [**register_project**](docs/AdminServiceApi.md#register_project) | **POST** /api/v1/projects | +*AdminServiceApi* | [**relaunch_execution**](docs/AdminServiceApi.md#relaunch_execution) | **POST** /api/v1/executions/relaunch | +*AdminServiceApi* | [**terminate_execution**](docs/AdminServiceApi.md#terminate_execution) | **DELETE** /api/v1/executions/{id.project}/{id.domain}/{id.name} | +*AdminServiceApi* | [**update_launch_plan**](docs/AdminServiceApi.md#update_launch_plan) | **PUT** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | + + +## Documentation For Models + + - [AdminAnnotations](docs/AdminAnnotations.md) + - [AdminAuth](docs/AdminAuth.md) + - [AdminDomain](docs/AdminDomain.md) + - [AdminEmailNotification](docs/AdminEmailNotification.md) + - [AdminExecution](docs/AdminExecution.md) + - [AdminExecutionClosure](docs/AdminExecutionClosure.md) + - [AdminExecutionCreateRequest](docs/AdminExecutionCreateRequest.md) + - [AdminExecutionCreateResponse](docs/AdminExecutionCreateResponse.md) + - [AdminExecutionList](docs/AdminExecutionList.md) + - [AdminExecutionMetadata](docs/AdminExecutionMetadata.md) + - [AdminExecutionRelaunchRequest](docs/AdminExecutionRelaunchRequest.md) + - [AdminExecutionSpec](docs/AdminExecutionSpec.md) + - [AdminExecutionTerminateRequest](docs/AdminExecutionTerminateRequest.md) + - [AdminExecutionTerminateResponse](docs/AdminExecutionTerminateResponse.md) + - [AdminFixedRate](docs/AdminFixedRate.md) + - [AdminFixedRateUnit](docs/AdminFixedRateUnit.md) + - [AdminLabels](docs/AdminLabels.md) + - [AdminLaunchPlan](docs/AdminLaunchPlan.md) + - [AdminLaunchPlanClosure](docs/AdminLaunchPlanClosure.md) + - [AdminLaunchPlanCreateRequest](docs/AdminLaunchPlanCreateRequest.md) + - [AdminLaunchPlanCreateResponse](docs/AdminLaunchPlanCreateResponse.md) + - [AdminLaunchPlanList](docs/AdminLaunchPlanList.md) + - [AdminLaunchPlanMetadata](docs/AdminLaunchPlanMetadata.md) + - [AdminLaunchPlanSpec](docs/AdminLaunchPlanSpec.md) + - [AdminLaunchPlanState](docs/AdminLaunchPlanState.md) + - [AdminLaunchPlanUpdateRequest](docs/AdminLaunchPlanUpdateRequest.md) + - [AdminLaunchPlanUpdateResponse](docs/AdminLaunchPlanUpdateResponse.md) + - [AdminLiteralMapBlob](docs/AdminLiteralMapBlob.md) + - [AdminNamedEntityIdentifier](docs/AdminNamedEntityIdentifier.md) + - [AdminNamedEntityIdentifierList](docs/AdminNamedEntityIdentifierList.md) + - [AdminNodeExecutionClosure](docs/AdminNodeExecutionClosure.md) + - [AdminNodeExecutionEventRequest](docs/AdminNodeExecutionEventRequest.md) + - [AdminNodeExecutionEventResponse](docs/AdminNodeExecutionEventResponse.md) + - [AdminNodeExecutionGetDataResponse](docs/AdminNodeExecutionGetDataResponse.md) + - [AdminNodeExecutionList](docs/AdminNodeExecutionList.md) + - [AdminNotification](docs/AdminNotification.md) + - [AdminNotificationList](docs/AdminNotificationList.md) + - [AdminPagerDutyNotification](docs/AdminPagerDutyNotification.md) + - [AdminProject](docs/AdminProject.md) + - [AdminProjectRegisterRequest](docs/AdminProjectRegisterRequest.md) + - [AdminProjectRegisterResponse](docs/AdminProjectRegisterResponse.md) + - [AdminProjects](docs/AdminProjects.md) + - [AdminSchedule](docs/AdminSchedule.md) + - [AdminSlackNotification](docs/AdminSlackNotification.md) + - [AdminSort](docs/AdminSort.md) + - [AdminTask](docs/AdminTask.md) + - [AdminTaskClosure](docs/AdminTaskClosure.md) + - [AdminTaskCreateRequest](docs/AdminTaskCreateRequest.md) + - [AdminTaskCreateResponse](docs/AdminTaskCreateResponse.md) + - [AdminTaskExecutionClosure](docs/AdminTaskExecutionClosure.md) + - [AdminTaskExecutionEventRequest](docs/AdminTaskExecutionEventRequest.md) + - [AdminTaskExecutionEventResponse](docs/AdminTaskExecutionEventResponse.md) + - [AdminTaskExecutionGetDataResponse](docs/AdminTaskExecutionGetDataResponse.md) + - [AdminTaskExecutionList](docs/AdminTaskExecutionList.md) + - [AdminTaskList](docs/AdminTaskList.md) + - [AdminTaskSpec](docs/AdminTaskSpec.md) + - [AdminUrlBlob](docs/AdminUrlBlob.md) + - [AdminWorkflow](docs/AdminWorkflow.md) + - [AdminWorkflowClosure](docs/AdminWorkflowClosure.md) + - [AdminWorkflowCreateRequest](docs/AdminWorkflowCreateRequest.md) + - [AdminWorkflowCreateResponse](docs/AdminWorkflowCreateResponse.md) + - [AdminWorkflowExecutionEventRequest](docs/AdminWorkflowExecutionEventRequest.md) + - [AdminWorkflowExecutionEventResponse](docs/AdminWorkflowExecutionEventResponse.md) + - [AdminWorkflowExecutionGetDataResponse](docs/AdminWorkflowExecutionGetDataResponse.md) + - [AdminWorkflowList](docs/AdminWorkflowList.md) + - [AdminWorkflowSpec](docs/AdminWorkflowSpec.md) + - [BlobTypeBlobDimensionality](docs/BlobTypeBlobDimensionality.md) + - [ComparisonExpressionOperator](docs/ComparisonExpressionOperator.md) + - [ConjunctionExpressionLogicalOperator](docs/ConjunctionExpressionLogicalOperator.md) + - [ConnectionSetIdList](docs/ConnectionSetIdList.md) + - [CoreAlias](docs/CoreAlias.md) + - [CoreBinary](docs/CoreBinary.md) + - [CoreBinding](docs/CoreBinding.md) + - [CoreBindingData](docs/CoreBindingData.md) + - [CoreBindingDataCollection](docs/CoreBindingDataCollection.md) + - [CoreBindingDataMap](docs/CoreBindingDataMap.md) + - [CoreBlob](docs/CoreBlob.md) + - [CoreBlobMetadata](docs/CoreBlobMetadata.md) + - [CoreBlobType](docs/CoreBlobType.md) + - [CoreBooleanExpression](docs/CoreBooleanExpression.md) + - [CoreBranchNode](docs/CoreBranchNode.md) + - [CoreComparisonExpression](docs/CoreComparisonExpression.md) + - [CoreCompiledTask](docs/CoreCompiledTask.md) + - [CoreCompiledWorkflow](docs/CoreCompiledWorkflow.md) + - [CoreCompiledWorkflowClosure](docs/CoreCompiledWorkflowClosure.md) + - [CoreConjunctionExpression](docs/CoreConjunctionExpression.md) + - [CoreConnectionSet](docs/CoreConnectionSet.md) + - [CoreContainer](docs/CoreContainer.md) + - [CoreContainerPort](docs/CoreContainerPort.md) + - [CoreError](docs/CoreError.md) + - [CoreExecutionError](docs/CoreExecutionError.md) + - [CoreIdentifier](docs/CoreIdentifier.md) + - [CoreIfBlock](docs/CoreIfBlock.md) + - [CoreIfElseBlock](docs/CoreIfElseBlock.md) + - [CoreKeyValuePair](docs/CoreKeyValuePair.md) + - [CoreLiteral](docs/CoreLiteral.md) + - [CoreLiteralCollection](docs/CoreLiteralCollection.md) + - [CoreLiteralMap](docs/CoreLiteralMap.md) + - [CoreLiteralType](docs/CoreLiteralType.md) + - [CoreNode](docs/CoreNode.md) + - [CoreNodeExecutionIdentifier](docs/CoreNodeExecutionIdentifier.md) + - [CoreNodeExecutionPhase](docs/CoreNodeExecutionPhase.md) + - [CoreNodeMetadata](docs/CoreNodeMetadata.md) + - [CoreOperand](docs/CoreOperand.md) + - [CoreOutputReference](docs/CoreOutputReference.md) + - [CoreParameter](docs/CoreParameter.md) + - [CoreParameterMap](docs/CoreParameterMap.md) + - [CorePrimitive](docs/CorePrimitive.md) + - [CoreResourceType](docs/CoreResourceType.md) + - [CoreResources](docs/CoreResources.md) + - [CoreRetryStrategy](docs/CoreRetryStrategy.md) + - [CoreRuntimeMetadata](docs/CoreRuntimeMetadata.md) + - [CoreScalar](docs/CoreScalar.md) + - [CoreSchemaType](docs/CoreSchemaType.md) + - [CoreSimpleType](docs/CoreSimpleType.md) + - [CoreTaskExecutionIdentifier](docs/CoreTaskExecutionIdentifier.md) + - [CoreTaskExecutionPhase](docs/CoreTaskExecutionPhase.md) + - [CoreTaskLog](docs/CoreTaskLog.md) + - [CoreTaskMetadata](docs/CoreTaskMetadata.md) + - [CoreTaskNode](docs/CoreTaskNode.md) + - [CoreTaskTemplate](docs/CoreTaskTemplate.md) + - [CoreTypedInterface](docs/CoreTypedInterface.md) + - [CoreVariable](docs/CoreVariable.md) + - [CoreVariableMap](docs/CoreVariableMap.md) + - [CoreVoid](docs/CoreVoid.md) + - [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md) + - [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md) + - [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md) + - [CoreWorkflowNode](docs/CoreWorkflowNode.md) + - [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md) + - [EventNodeExecutionEvent](docs/EventNodeExecutionEvent.md) + - [EventParentTaskExecutionMetadata](docs/EventParentTaskExecutionMetadata.md) + - [EventTaskExecutionEvent](docs/EventTaskExecutionEvent.md) + - [EventWorkflowExecutionEvent](docs/EventWorkflowExecutionEvent.md) + - [ExecutionMetadataExecutionMode](docs/ExecutionMetadataExecutionMode.md) + - [FlyteidladminNodeExecution](docs/FlyteidladminNodeExecution.md) + - [FlyteidladminTaskExecution](docs/FlyteidladminTaskExecution.md) + - [FlyteidladminWorkflowNodeMetadata](docs/FlyteidladminWorkflowNodeMetadata.md) + - [FlyteidlcoreSchema](docs/FlyteidlcoreSchema.md) + - [FlyteidleventWorkflowNodeMetadata](docs/FlyteidleventWorkflowNodeMetadata.md) + - [ProtobufListValue](docs/ProtobufListValue.md) + - [ProtobufNullValue](docs/ProtobufNullValue.md) + - [ProtobufStruct](docs/ProtobufStruct.md) + - [ProtobufValue](docs/ProtobufValue.md) + - [ResourcesResourceEntry](docs/ResourcesResourceEntry.md) + - [ResourcesResourceName](docs/ResourcesResourceName.md) + - [RuntimeMetadataRuntimeType](docs/RuntimeMetadataRuntimeType.md) + - [SchemaColumnSchemaColumnType](docs/SchemaColumnSchemaColumnType.md) + - [SchemaTypeSchemaColumn](docs/SchemaTypeSchemaColumn.md) + - [SortDirection](docs/SortDirection.md) + - [TaskLogMessageFormat](docs/TaskLogMessageFormat.md) + + +## Documentation For Authorization + + All endpoints do not require authorization. + + +## Author + + + diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py new file mode 100644 index 0000000000..cadc49e3ff --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +# flake8: noqa + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import apis into sdk package +from flyteadmin.api.admin_service_api import AdminServiceApi + +# import ApiClient +from flyteadmin.api_client import ApiClient +from flyteadmin.configuration import Configuration +# import models into sdk package +from flyteadmin.models.admin_annotations import AdminAnnotations +from flyteadmin.models.admin_auth import AdminAuth +from flyteadmin.models.admin_domain import AdminDomain +from flyteadmin.models.admin_email_notification import AdminEmailNotification +from flyteadmin.models.admin_execution import AdminExecution +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure +from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest +from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse +from flyteadmin.models.admin_execution_list import AdminExecutionList +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata +from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec +from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest +from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse +from flyteadmin.models.admin_fixed_rate import AdminFixedRate +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit +from flyteadmin.models.admin_labels import AdminLabels +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure +from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest +from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse +from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState +from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest +from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier +from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure +from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest +from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse +from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse +from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList +from flyteadmin.models.admin_notification import AdminNotification +from flyteadmin.models.admin_notification_list import AdminNotificationList +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification +from flyteadmin.models.admin_project import AdminProject +from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest +from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse +from flyteadmin.models.admin_projects import AdminProjects +from flyteadmin.models.admin_schedule import AdminSchedule +from flyteadmin.models.admin_slack_notification import AdminSlackNotification +from flyteadmin.models.admin_sort import AdminSort +from flyteadmin.models.admin_task import AdminTask +from flyteadmin.models.admin_task_closure import AdminTaskClosure +from flyteadmin.models.admin_task_create_request import AdminTaskCreateRequest +from flyteadmin.models.admin_task_create_response import AdminTaskCreateResponse +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure +from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest +from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse +from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse +from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList +from flyteadmin.models.admin_task_list import AdminTaskList +from flyteadmin.models.admin_task_spec import AdminTaskSpec +from flyteadmin.models.admin_url_blob import AdminUrlBlob +from flyteadmin.models.admin_workflow import AdminWorkflow +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure +from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest +from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse +from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest +from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse +from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse +from flyteadmin.models.admin_workflow_list import AdminWorkflowList +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList +from flyteadmin.models.core_alias import CoreAlias +from flyteadmin.models.core_binary import CoreBinary +from flyteadmin.models.core_binding import CoreBinding +from flyteadmin.models.core_binding_data import CoreBindingData +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap +from flyteadmin.models.core_blob import CoreBlob +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata +from flyteadmin.models.core_blob_type import CoreBlobType +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression +from flyteadmin.models.core_branch_node import CoreBranchNode +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression +from flyteadmin.models.core_compiled_task import CoreCompiledTask +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression +from flyteadmin.models.core_connection_set import CoreConnectionSet +from flyteadmin.models.core_container import CoreContainer +from flyteadmin.models.core_container_port import CoreContainerPort +from flyteadmin.models.core_error import CoreError +from flyteadmin.models.core_execution_error import CoreExecutionError +from flyteadmin.models.core_identifier import CoreIdentifier +from flyteadmin.models.core_if_block import CoreIfBlock +from flyteadmin.models.core_if_else_block import CoreIfElseBlock +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair +from flyteadmin.models.core_literal import CoreLiteral +from flyteadmin.models.core_literal_collection import CoreLiteralCollection +from flyteadmin.models.core_literal_map import CoreLiteralMap +from flyteadmin.models.core_literal_type import CoreLiteralType +from flyteadmin.models.core_node import CoreNode +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase +from flyteadmin.models.core_node_metadata import CoreNodeMetadata +from flyteadmin.models.core_operand import CoreOperand +from flyteadmin.models.core_output_reference import CoreOutputReference +from flyteadmin.models.core_parameter import CoreParameter +from flyteadmin.models.core_parameter_map import CoreParameterMap +from flyteadmin.models.core_primitive import CorePrimitive +from flyteadmin.models.core_resource_type import CoreResourceType +from flyteadmin.models.core_resources import CoreResources +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata +from flyteadmin.models.core_scalar import CoreScalar +from flyteadmin.models.core_schema_type import CoreSchemaType +from flyteadmin.models.core_simple_type import CoreSimpleType +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase +from flyteadmin.models.core_task_log import CoreTaskLog +from flyteadmin.models.core_task_metadata import CoreTaskMetadata +from flyteadmin.models.core_task_node import CoreTaskNode +from flyteadmin.models.core_task_template import CoreTaskTemplate +from flyteadmin.models.core_typed_interface import CoreTypedInterface +from flyteadmin.models.core_variable import CoreVariable +from flyteadmin.models.core_variable_map import CoreVariableMap +from flyteadmin.models.core_void import CoreVoid +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata +from flyteadmin.models.core_workflow_node import CoreWorkflowNode +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata +from flyteadmin.models.flyteidlcore_schema import FlyteidlcoreSchema +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata +from flyteadmin.models.protobuf_list_value import ProtobufListValue +from flyteadmin.models.protobuf_null_value import ProtobufNullValue +from flyteadmin.models.protobuf_struct import ProtobufStruct +from flyteadmin.models.protobuf_value import ProtobufValue +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry +from flyteadmin.models.resources_resource_name import ResourcesResourceName +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn +from flyteadmin.models.sort_direction import SortDirection +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py new file mode 100644 index 0000000000..3da695695e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py @@ -0,0 +1,6 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from flyteadmin.api.admin_service_api import AdminServiceApi diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py new file mode 100644 index 0000000000..5b282df09c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py @@ -0,0 +1,4168 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from flyteadmin.api_client import ApiClient + + +class AdminServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_execution(self, body, **kwargs): # noqa: E501 + """create_execution # noqa: E501 + + Create a workflow execution # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_execution(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionCreateRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_execution_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_execution_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_execution_with_http_info(self, body, **kwargs): # noqa: E501 + """create_execution # noqa: E501 + + Create a workflow execution # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_execution_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionCreateRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_launch_plan(self, body, **kwargs): # noqa: E501 + """create_launch_plan # noqa: E501 + + Create and register a launch plan definition # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_launch_plan(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminLaunchPlanCreateRequest body: (required) + :return: AdminLaunchPlanCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_launch_plan_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_launch_plan_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_launch_plan_with_http_info(self, body, **kwargs): # noqa: E501 + """create_launch_plan # noqa: E501 + + Create and register a launch plan definition # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_launch_plan_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminLaunchPlanCreateRequest body: (required) + :return: AdminLaunchPlanCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_node_event(self, body, **kwargs): # noqa: E501 + """create_node_event # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_node_event(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminNodeExecutionEventRequest body: (required) + :return: AdminNodeExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_node_event_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_node_event_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_node_event_with_http_info(self, body, **kwargs): # noqa: E501 + """create_node_event # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_node_event_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminNodeExecutionEventRequest body: (required) + :return: AdminNodeExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_node_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_node_event`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events/nodes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionEventResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_task(self, body, **kwargs): # noqa: E501 + """create_task # noqa: E501 + + Create and register a task definition # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminTaskCreateRequest body: (required) + :return: AdminTaskCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_task_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_task_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_task_with_http_info(self, body, **kwargs): # noqa: E501 + """create_task # noqa: E501 + + Create and register a task definition # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminTaskCreateRequest body: (required) + :return: AdminTaskCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_task" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_task`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_task_event(self, body, **kwargs): # noqa: E501 + """create_task_event # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task_event(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminTaskExecutionEventRequest body: (required) + :return: AdminTaskExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_task_event_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_task_event_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_task_event_with_http_info(self, body, **kwargs): # noqa: E501 + """create_task_event # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_task_event_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminTaskExecutionEventRequest body: (required) + :return: AdminTaskExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_task_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_task_event`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events/tasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskExecutionEventResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_workflow(self, body, **kwargs): # noqa: E501 + """create_workflow # noqa: E501 + + Create and register a workflow definition # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowCreateRequest body: (required) + :return: AdminWorkflowCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_workflow_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_workflow_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_workflow_with_http_info(self, body, **kwargs): # noqa: E501 + """create_workflow # noqa: E501 + + Create and register a workflow definition # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowCreateRequest body: (required) + :return: AdminWorkflowCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_workflow" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_workflow`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_workflow_event(self, body, **kwargs): # noqa: E501 + """create_workflow_event # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow_event(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowExecutionEventRequest body: (required) + :return: AdminWorkflowExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_workflow_event_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.create_workflow_event_with_http_info(body, **kwargs) # noqa: E501 + return data + + def create_workflow_event_with_http_info(self, body, **kwargs): # noqa: E501 + """create_workflow_event # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_workflow_event_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminWorkflowExecutionEventRequest body: (required) + :return: AdminWorkflowExecutionEventResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_workflow_event" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_workflow_event`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/events/workflows', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowExecutionEventResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_execution(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """get_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminExecution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_execution_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_execution_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_execution_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """get_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminExecution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_execution`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_execution`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_execution_data(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """get_execution_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_data(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminWorkflowExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_execution_data_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.get_execution_data_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def get_execution_data_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """get_execution_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_execution_data_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :return: AdminWorkflowExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_execution_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_execution_data`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_execution_data`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_execution_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/data/executions/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowExecutionGetDataResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_launch_plan(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """get_launch_plan # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_launch_plan(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminLaunchPlan + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_launch_plan_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """get_launch_plan # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminLaunchPlan + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_launch_plan`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_launch_plan`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_launch_plan`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + if 'id_resource_type' in params: + query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlan', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_node_execution(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """get_node_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: FlyteidladminNodeExecution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + else: + (data) = self.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + return data + + def get_node_execution_with_http_info(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """get_node_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: FlyteidladminNodeExecution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_execution_id_project', 'id_execution_id_domain', 'id_execution_id_name', 'id_node_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_execution_id_project' is set + if ('id_execution_id_project' not in params or + params['id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_execution_id_project` when calling `get_node_execution`") # noqa: E501 + # verify the required parameter 'id_execution_id_domain' is set + if ('id_execution_id_domain' not in params or + params['id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_execution_id_domain` when calling `get_node_execution`") # noqa: E501 + # verify the required parameter 'id_execution_id_name' is set + if ('id_execution_id_name' not in params or + params['id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_execution_id_name` when calling `get_node_execution`") # noqa: E501 + # verify the required parameter 'id_node_id' is set + if ('id_node_id' not in params or + params['id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_id` when calling `get_node_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_execution_id_project' in params: + path_params['id.execution_id.project'] = params['id_execution_id_project'] # noqa: E501 + if 'id_execution_id_domain' in params: + path_params['id.execution_id.domain'] = params['id_execution_id_domain'] # noqa: E501 + if 'id_execution_id_name' in params: + path_params['id.execution_id.name'] = params['id_execution_id_name'] # noqa: E501 + if 'id_node_id' in params: + path_params['id.node_id'] = params['id_node_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FlyteidladminNodeExecution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_node_execution_data(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """get_node_execution_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution_data(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: AdminNodeExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + else: + (data) = self.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 + return data + + def get_node_execution_data_with_http_info(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 + """get_node_execution_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_id: (required) + :return: AdminNodeExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_execution_id_project', 'id_execution_id_domain', 'id_execution_id_name', 'id_node_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_node_execution_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_execution_id_project' is set + if ('id_execution_id_project' not in params or + params['id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_execution_id_project` when calling `get_node_execution_data`") # noqa: E501 + # verify the required parameter 'id_execution_id_domain' is set + if ('id_execution_id_domain' not in params or + params['id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_execution_id_domain` when calling `get_node_execution_data`") # noqa: E501 + # verify the required parameter 'id_execution_id_name' is set + if ('id_execution_id_name' not in params or + params['id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_execution_id_name` when calling `get_node_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_id' is set + if ('id_node_id' not in params or + params['id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_id` when calling `get_node_execution_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_execution_id_project' in params: + path_params['id.execution_id.project'] = params['id_execution_id_project'] # noqa: E501 + if 'id_execution_id_domain' in params: + path_params['id.execution_id.domain'] = params['id_execution_id_domain'] # noqa: E501 + if 'id_execution_id_name' in params: + path_params['id.execution_id.name'] = params['id_execution_id_name'] # noqa: E501 + if 'id_node_id' in params: + path_params['id.node_id'] = params['id_node_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionGetDataResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_task(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """get_task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminTask + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_task_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_task_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_task_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """get_task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminTask + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_task" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_task`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_task`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_task`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_task`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + if 'id_resource_type' in params: + query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTask', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_task_execution(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """get_task_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: FlyteidladminTaskExecution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + else: + (data) = self.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + return data + + def get_task_execution_with_http_info(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """get_task_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: FlyteidladminTaskExecution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_node_execution_id_execution_id_project', 'id_node_execution_id_execution_id_domain', 'id_node_execution_id_execution_id_name', 'id_node_execution_id_node_id', 'id_task_id_project', 'id_task_id_domain', 'id_task_id_name', 'id_task_id_version', 'id_retry_attempt', 'id_task_id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_task_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_node_execution_id_execution_id_project' is set + if ('id_node_execution_id_execution_id_project' not in params or + params['id_node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_project` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_domain' is set + if ('id_node_execution_id_execution_id_domain' not in params or + params['id_node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_domain` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_name' is set + if ('id_node_execution_id_execution_id_name' not in params or + params['id_node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_name` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_node_id' is set + if ('id_node_execution_id_node_id' not in params or + params['id_node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_node_id` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_project' is set + if ('id_task_id_project' not in params or + params['id_task_id_project'] is None): + raise ValueError("Missing the required parameter `id_task_id_project` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_domain' is set + if ('id_task_id_domain' not in params or + params['id_task_id_domain'] is None): + raise ValueError("Missing the required parameter `id_task_id_domain` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_name' is set + if ('id_task_id_name' not in params or + params['id_task_id_name'] is None): + raise ValueError("Missing the required parameter `id_task_id_name` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_task_id_version' is set + if ('id_task_id_version' not in params or + params['id_task_id_version'] is None): + raise ValueError("Missing the required parameter `id_task_id_version` when calling `get_task_execution`") # noqa: E501 + # verify the required parameter 'id_retry_attempt' is set + if ('id_retry_attempt' not in params or + params['id_retry_attempt'] is None): + raise ValueError("Missing the required parameter `id_retry_attempt` when calling `get_task_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_node_execution_id_execution_id_project' in params: + path_params['id.node_execution_id.execution_id.project'] = params['id_node_execution_id_execution_id_project'] # noqa: E501 + if 'id_node_execution_id_execution_id_domain' in params: + path_params['id.node_execution_id.execution_id.domain'] = params['id_node_execution_id_execution_id_domain'] # noqa: E501 + if 'id_node_execution_id_execution_id_name' in params: + path_params['id.node_execution_id.execution_id.name'] = params['id_node_execution_id_execution_id_name'] # noqa: E501 + if 'id_node_execution_id_node_id' in params: + path_params['id.node_execution_id.node_id'] = params['id_node_execution_id_node_id'] # noqa: E501 + if 'id_task_id_project' in params: + path_params['id.task_id.project'] = params['id_task_id_project'] # noqa: E501 + if 'id_task_id_domain' in params: + path_params['id.task_id.domain'] = params['id_task_id_domain'] # noqa: E501 + if 'id_task_id_name' in params: + path_params['id.task_id.name'] = params['id_task_id_name'] # noqa: E501 + if 'id_task_id_version' in params: + path_params['id.task_id.version'] = params['id_task_id_version'] # noqa: E501 + if 'id_retry_attempt' in params: + path_params['id.retry_attempt'] = params['id_retry_attempt'] # noqa: E501 + + query_params = [] + if 'id_task_id_resource_type' in params: + query_params.append(('id.task_id.resource_type', params['id_task_id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FlyteidladminTaskExecution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_task_execution_data(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """get_task_execution_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution_data(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminTaskExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + else: + (data) = self.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 + return data + + def get_task_execution_data_with_http_info(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 + """get_task_execution_data # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str id_node_execution_id_node_id: (required) + :param str id_task_id_project: Name of the project the resource belongs to. (required) + :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_task_id_name: User provided value for the resource. (required) + :param str id_task_id_version: Specific version of the resource. (required) + :param int id_retry_attempt: (required) + :param str id_task_id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminTaskExecutionGetDataResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_node_execution_id_execution_id_project', 'id_node_execution_id_execution_id_domain', 'id_node_execution_id_execution_id_name', 'id_node_execution_id_node_id', 'id_task_id_project', 'id_task_id_domain', 'id_task_id_name', 'id_task_id_version', 'id_retry_attempt', 'id_task_id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_task_execution_data" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_node_execution_id_execution_id_project' is set + if ('id_node_execution_id_execution_id_project' not in params or + params['id_node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_project` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_domain' is set + if ('id_node_execution_id_execution_id_domain' not in params or + params['id_node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_domain` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_execution_id_name' is set + if ('id_node_execution_id_execution_id_name' not in params or + params['id_node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_name` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_node_execution_id_node_id' is set + if ('id_node_execution_id_node_id' not in params or + params['id_node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `id_node_execution_id_node_id` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_project' is set + if ('id_task_id_project' not in params or + params['id_task_id_project'] is None): + raise ValueError("Missing the required parameter `id_task_id_project` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_domain' is set + if ('id_task_id_domain' not in params or + params['id_task_id_domain'] is None): + raise ValueError("Missing the required parameter `id_task_id_domain` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_name' is set + if ('id_task_id_name' not in params or + params['id_task_id_name'] is None): + raise ValueError("Missing the required parameter `id_task_id_name` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_task_id_version' is set + if ('id_task_id_version' not in params or + params['id_task_id_version'] is None): + raise ValueError("Missing the required parameter `id_task_id_version` when calling `get_task_execution_data`") # noqa: E501 + # verify the required parameter 'id_retry_attempt' is set + if ('id_retry_attempt' not in params or + params['id_retry_attempt'] is None): + raise ValueError("Missing the required parameter `id_retry_attempt` when calling `get_task_execution_data`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_node_execution_id_execution_id_project' in params: + path_params['id.node_execution_id.execution_id.project'] = params['id_node_execution_id_execution_id_project'] # noqa: E501 + if 'id_node_execution_id_execution_id_domain' in params: + path_params['id.node_execution_id.execution_id.domain'] = params['id_node_execution_id_execution_id_domain'] # noqa: E501 + if 'id_node_execution_id_execution_id_name' in params: + path_params['id.node_execution_id.execution_id.name'] = params['id_node_execution_id_execution_id_name'] # noqa: E501 + if 'id_node_execution_id_node_id' in params: + path_params['id.node_execution_id.node_id'] = params['id_node_execution_id_node_id'] # noqa: E501 + if 'id_task_id_project' in params: + path_params['id.task_id.project'] = params['id_task_id_project'] # noqa: E501 + if 'id_task_id_domain' in params: + path_params['id.task_id.domain'] = params['id_task_id_domain'] # noqa: E501 + if 'id_task_id_name' in params: + path_params['id.task_id.name'] = params['id_task_id_name'] # noqa: E501 + if 'id_task_id_version' in params: + path_params['id.task_id.version'] = params['id_task_id_version'] # noqa: E501 + if 'id_retry_attempt' in params: + path_params['id.retry_attempt'] = params['id_retry_attempt'] # noqa: E501 + + query_params = [] + if 'id_task_id_resource_type' in params: + query_params.append(('id.task_id.resource_type', params['id_task_id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskExecutionGetDataResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_workflow(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """get_workflow # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminWorkflow + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + else: + (data) = self.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 + return data + + def get_workflow_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 + """get_workflow # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param str id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :return: AdminWorkflow + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_workflow" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `get_workflow`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `get_workflow`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `get_workflow`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `get_workflow`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + if 'id_resource_type' in params: + query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflow', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_executions(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_executions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_executions(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_executions_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_executions_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_executions_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_executions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_executions_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_executions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_executions`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_executions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_launch_plan_ids(self, project, domain, **kwargs): # noqa: E501 + """list_launch_plan_ids # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plan_ids(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_launch_plan_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_launch_plan_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_launch_plan_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """list_launch_plan_ids # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plan_ids_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_launch_plan_ids" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_launch_plan_ids`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_launch_plan_ids`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plan_ids/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityIdentifierList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_launch_plans(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """list_launch_plans # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_launch_plans_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_launch_plans_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_launch_plans_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """list_launch_plans # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_launch_plans" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_launch_plans`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_launch_plans`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_launch_plans`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_launch_plans2(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_launch_plans2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans2(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_launch_plans2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_launch_plans2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_launch_plans2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_launch_plans2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_launch_plans2_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminLaunchPlanList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_launch_plans2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_launch_plans2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_launch_plans2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_node_executions(self, workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs): # noqa: E501 + """list_node_executions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str workflow_execution_id_project: Name of the project the resource belongs to. (required) + :param str workflow_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str workflow_execution_id_name: User or system provided value for the resource. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs) # noqa: E501 + return data + + def list_node_executions_with_http_info(self, workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs): # noqa: E501 + """list_node_executions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str workflow_execution_id_project: Name of the project the resource belongs to. (required) + :param str workflow_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str workflow_execution_id_name: User or system provided value for the resource. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['workflow_execution_id_project', 'workflow_execution_id_domain', 'workflow_execution_id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_node_executions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'workflow_execution_id_project' is set + if ('workflow_execution_id_project' not in params or + params['workflow_execution_id_project'] is None): + raise ValueError("Missing the required parameter `workflow_execution_id_project` when calling `list_node_executions`") # noqa: E501 + # verify the required parameter 'workflow_execution_id_domain' is set + if ('workflow_execution_id_domain' not in params or + params['workflow_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `workflow_execution_id_domain` when calling `list_node_executions`") # noqa: E501 + # verify the required parameter 'workflow_execution_id_name' is set + if ('workflow_execution_id_name' not in params or + params['workflow_execution_id_name'] is None): + raise ValueError("Missing the required parameter `workflow_execution_id_name` when calling `list_node_executions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'workflow_execution_id_project' in params: + path_params['workflow_execution_id.project'] = params['workflow_execution_id_project'] # noqa: E501 + if 'workflow_execution_id_domain' in params: + path_params['workflow_execution_id.domain'] = params['workflow_execution_id_domain'] # noqa: E501 + if 'workflow_execution_id_name' in params: + path_params['workflow_execution_id.name'] = params['workflow_execution_id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_node_executions_for_task(self, task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs): # noqa: E501 + """list_node_executions_for_task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions_for_task(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str task_execution_id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str task_execution_id_node_execution_id_node_id: (required) + :param str task_execution_id_task_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_task_id_name: User provided value for the resource. (required) + :param str task_execution_id_task_id_version: Specific version of the resource. (required) + :param int task_execution_id_retry_attempt: (required) + :param str task_execution_id_task_id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs) # noqa: E501 + else: + (data) = self.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs) # noqa: E501 + return data + + def list_node_executions_for_task_with_http_info(self, task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs): # noqa: E501 + """list_node_executions_for_task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str task_execution_id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str task_execution_id_node_execution_id_node_id: (required) + :param str task_execution_id_task_id_project: Name of the project the resource belongs to. (required) + :param str task_execution_id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str task_execution_id_task_id_name: User provided value for the resource. (required) + :param str task_execution_id_task_id_version: Specific version of the resource. (required) + :param int task_execution_id_retry_attempt: (required) + :param str task_execution_id_task_id_resource_type: Identifies the specific type of resource that this identifer corresponds to. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNodeExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['task_execution_id_node_execution_id_execution_id_project', 'task_execution_id_node_execution_id_execution_id_domain', 'task_execution_id_node_execution_id_execution_id_name', 'task_execution_id_node_execution_id_node_id', 'task_execution_id_task_id_project', 'task_execution_id_task_id_domain', 'task_execution_id_task_id_name', 'task_execution_id_task_id_version', 'task_execution_id_retry_attempt', 'task_execution_id_task_id_resource_type', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_node_executions_for_task" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'task_execution_id_node_execution_id_execution_id_project' is set + if ('task_execution_id_node_execution_id_execution_id_project' not in params or + params['task_execution_id_node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_project` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_node_execution_id_execution_id_domain' is set + if ('task_execution_id_node_execution_id_execution_id_domain' not in params or + params['task_execution_id_node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_domain` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_node_execution_id_execution_id_name' is set + if ('task_execution_id_node_execution_id_execution_id_name' not in params or + params['task_execution_id_node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_name` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_node_execution_id_node_id' is set + if ('task_execution_id_node_execution_id_node_id' not in params or + params['task_execution_id_node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_node_id` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_project' is set + if ('task_execution_id_task_id_project' not in params or + params['task_execution_id_task_id_project'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_project` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_domain' is set + if ('task_execution_id_task_id_domain' not in params or + params['task_execution_id_task_id_domain'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_domain` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_name' is set + if ('task_execution_id_task_id_name' not in params or + params['task_execution_id_task_id_name'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_name` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_task_id_version' is set + if ('task_execution_id_task_id_version' not in params or + params['task_execution_id_task_id_version'] is None): + raise ValueError("Missing the required parameter `task_execution_id_task_id_version` when calling `list_node_executions_for_task`") # noqa: E501 + # verify the required parameter 'task_execution_id_retry_attempt' is set + if ('task_execution_id_retry_attempt' not in params or + params['task_execution_id_retry_attempt'] is None): + raise ValueError("Missing the required parameter `task_execution_id_retry_attempt` when calling `list_node_executions_for_task`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'task_execution_id_node_execution_id_execution_id_project' in params: + path_params['task_execution_id.node_execution_id.execution_id.project'] = params['task_execution_id_node_execution_id_execution_id_project'] # noqa: E501 + if 'task_execution_id_node_execution_id_execution_id_domain' in params: + path_params['task_execution_id.node_execution_id.execution_id.domain'] = params['task_execution_id_node_execution_id_execution_id_domain'] # noqa: E501 + if 'task_execution_id_node_execution_id_execution_id_name' in params: + path_params['task_execution_id.node_execution_id.execution_id.name'] = params['task_execution_id_node_execution_id_execution_id_name'] # noqa: E501 + if 'task_execution_id_node_execution_id_node_id' in params: + path_params['task_execution_id.node_execution_id.node_id'] = params['task_execution_id_node_execution_id_node_id'] # noqa: E501 + if 'task_execution_id_task_id_project' in params: + path_params['task_execution_id.task_id.project'] = params['task_execution_id_task_id_project'] # noqa: E501 + if 'task_execution_id_task_id_domain' in params: + path_params['task_execution_id.task_id.domain'] = params['task_execution_id_task_id_domain'] # noqa: E501 + if 'task_execution_id_task_id_name' in params: + path_params['task_execution_id.task_id.name'] = params['task_execution_id_task_id_name'] # noqa: E501 + if 'task_execution_id_task_id_version' in params: + path_params['task_execution_id.task_id.version'] = params['task_execution_id_task_id_version'] # noqa: E501 + if 'task_execution_id_retry_attempt' in params: + path_params['task_execution_id.retry_attempt'] = params['task_execution_id_retry_attempt'] # noqa: E501 + + query_params = [] + if 'task_execution_id_task_id_resource_type' in params: + query_params.append(('task_execution_id.task_id.resource_type', params['task_execution_id_task_id_resource_type'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNodeExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_projects(self, **kwargs): # noqa: E501 + """list_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_projects(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: AdminProjects + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_projects_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.list_projects_with_http_info(**kwargs) # noqa: E501 + return data + + def list_projects_with_http_info(self, **kwargs): # noqa: E501 + """list_projects # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_projects_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: AdminProjects + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_projects" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/projects', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjects', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_task_executions(self, node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs): # noqa: E501 + """list_task_executions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_executions(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str node_execution_id_node_id: (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminTaskExecutionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs) # noqa: E501 + else: + (data) = self.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs) # noqa: E501 + return data + + def list_task_executions_with_http_info(self, node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs): # noqa: E501 + """list_task_executions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) + :param str node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str node_execution_id_execution_id_name: User or system provided value for the resource. (required) + :param str node_execution_id_node_id: (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminTaskExecutionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['node_execution_id_execution_id_project', 'node_execution_id_execution_id_domain', 'node_execution_id_execution_id_name', 'node_execution_id_node_id', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_task_executions" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'node_execution_id_execution_id_project' is set + if ('node_execution_id_execution_id_project' not in params or + params['node_execution_id_execution_id_project'] is None): + raise ValueError("Missing the required parameter `node_execution_id_execution_id_project` when calling `list_task_executions`") # noqa: E501 + # verify the required parameter 'node_execution_id_execution_id_domain' is set + if ('node_execution_id_execution_id_domain' not in params or + params['node_execution_id_execution_id_domain'] is None): + raise ValueError("Missing the required parameter `node_execution_id_execution_id_domain` when calling `list_task_executions`") # noqa: E501 + # verify the required parameter 'node_execution_id_execution_id_name' is set + if ('node_execution_id_execution_id_name' not in params or + params['node_execution_id_execution_id_name'] is None): + raise ValueError("Missing the required parameter `node_execution_id_execution_id_name` when calling `list_task_executions`") # noqa: E501 + # verify the required parameter 'node_execution_id_node_id' is set + if ('node_execution_id_node_id' not in params or + params['node_execution_id_node_id'] is None): + raise ValueError("Missing the required parameter `node_execution_id_node_id` when calling `list_task_executions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'node_execution_id_execution_id_project' in params: + path_params['node_execution_id.execution_id.project'] = params['node_execution_id_execution_id_project'] # noqa: E501 + if 'node_execution_id_execution_id_domain' in params: + path_params['node_execution_id.execution_id.domain'] = params['node_execution_id_execution_id_domain'] # noqa: E501 + if 'node_execution_id_execution_id_name' in params: + path_params['node_execution_id.execution_id.name'] = params['node_execution_id_execution_id_name'] # noqa: E501 + if 'node_execution_id_node_id' in params: + path_params['node_execution_id.node_id'] = params['node_execution_id_node_id'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskExecutionList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_task_ids(self, project, domain, **kwargs): # noqa: E501 + """list_task_ids # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_ids(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_task_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_task_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_task_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """list_task_ids # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_task_ids_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_task_ids" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_task_ids`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_task_ids`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/task_ids/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityIdentifierList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_tasks(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """list_tasks # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_tasks_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_tasks_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_tasks_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """list_tasks # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_tasks" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_tasks`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_tasks`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_tasks`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_tasks2(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_tasks2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks2(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_tasks2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_tasks2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_tasks2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_tasks2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_tasks2_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminTaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_tasks2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_tasks2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_tasks2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/tasks/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminTaskList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_workflow_ids(self, project, domain, **kwargs): # noqa: E501 + """list_workflow_ids # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflow_ids(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_workflow_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + else: + (data) = self.list_workflow_ids_with_http_info(project, domain, **kwargs) # noqa: E501 + return data + + def list_workflow_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 + """list_workflow_ids # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflow_ids_with_http_info(project, domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str project: Name of the project that contains the identifiers. (required) + :param str domain: Name of the domain the identifiers belongs to within the project. (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminNamedEntityIdentifierList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_workflow_ids" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'project' is set + if ('project' not in params or + params['project'] is None): + raise ValueError("Missing the required parameter `project` when calling `list_workflow_ids`") # noqa: E501 + # verify the required parameter 'domain' is set + if ('domain' not in params or + params['domain'] is None): + raise ValueError("Missing the required parameter `domain` when calling `list_workflow_ids`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'project' in params: + path_params['project'] = params['project'] # noqa: E501 + if 'domain' in params: + path_params['domain'] = params['domain'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflow_ids/{project}/{domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminNamedEntityIdentifierList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_workflows(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """list_workflows # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_workflows_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + else: + (data) = self.list_workflows_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 + return data + + def list_workflows_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 + """list_workflows # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows_with_http_info(id_project, id_domain, id_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_workflows" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_workflows`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_workflows`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `list_workflows`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows/{id.project}/{id.domain}/{id.name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def list_workflows2(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_workflows2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows2(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.list_workflows2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + else: + (data) = self.list_workflows2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 + return data + + def list_workflows2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 + """list_workflows2 # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.list_workflows2_with_http_info(id_project, id_domain, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. + :param int limit: Indicates the number of resources to be returned. + :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. + :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. + :param str sort_by_key: Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. + :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. + :return: AdminWorkflowList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method list_workflows2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `list_workflows2`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `list_workflows2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + + query_params = [] + if 'id_name' in params: + query_params.append(('id.name', params['id_name'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'token' in params: + query_params.append(('token', params['token'])) # noqa: E501 + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'sort_by_key' in params: + query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 + if 'sort_by_direction' in params: + query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workflows/{id.project}/{id.domain}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminWorkflowList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def register_project(self, body, **kwargs): # noqa: E501 + """register_project # noqa: E501 + + Register a project along with valid domains # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.register_project(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminProjectRegisterRequest body: (required) + :return: AdminProjectRegisterResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.register_project_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.register_project_with_http_info(body, **kwargs) # noqa: E501 + return data + + def register_project_with_http_info(self, body, **kwargs): # noqa: E501 + """register_project # noqa: E501 + + Register a project along with valid domains # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.register_project_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminProjectRegisterRequest body: (required) + :return: AdminProjectRegisterResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method register_project" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `register_project`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/projects', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminProjectRegisterResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def relaunch_execution(self, body, **kwargs): # noqa: E501 + """relaunch_execution # noqa: E501 + + Relaunch a workflow execution # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.relaunch_execution(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionRelaunchRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.relaunch_execution_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.relaunch_execution_with_http_info(body, **kwargs) # noqa: E501 + return data + + def relaunch_execution_with_http_info(self, body, **kwargs): # noqa: E501 + """relaunch_execution # noqa: E501 + + Relaunch a workflow execution # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.relaunch_execution_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AdminExecutionRelaunchRequest body: (required) + :return: AdminExecutionCreateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method relaunch_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `relaunch_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/relaunch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionCreateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def terminate_execution(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """terminate_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.terminate_execution(id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param AdminExecutionTerminateRequest body: (required) + :return: AdminExecutionTerminateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.terminate_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + else: + (data) = self.terminate_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 + return data + + def terminate_execution_with_http_info(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 + """terminate_execution # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.terminate_execution_with_http_info(id_project, id_domain, id_name, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User or system provided value for the resource. (required) + :param AdminExecutionTerminateRequest body: (required) + :return: AdminExecutionTerminateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method terminate_execution" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `terminate_execution`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `terminate_execution`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `terminate_execution`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `terminate_execution`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminExecutionTerminateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_launch_plan(self, id_project, id_domain, id_name, id_version, body, **kwargs): # noqa: E501 + """update_launch_plan # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_launch_plan(id_project, id_domain, id_name, id_version, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param AdminLaunchPlanUpdateRequest body: (required) + :return: AdminLaunchPlanUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, **kwargs) # noqa: E501 + else: + (data) = self.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, **kwargs) # noqa: E501 + return data + + def update_launch_plan_with_http_info(self, id_project, id_domain, id_name, id_version, body, **kwargs): # noqa: E501 + """update_launch_plan # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id_project: Name of the project the resource belongs to. (required) + :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) + :param str id_name: User provided value for the resource. (required) + :param str id_version: Specific version of the resource. (required) + :param AdminLaunchPlanUpdateRequest body: (required) + :return: AdminLaunchPlanUpdateResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_launch_plan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id_project' is set + if ('id_project' not in params or + params['id_project'] is None): + raise ValueError("Missing the required parameter `id_project` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'id_domain' is set + if ('id_domain' not in params or + params['id_domain'] is None): + raise ValueError("Missing the required parameter `id_domain` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'id_name' is set + if ('id_name' not in params or + params['id_name'] is None): + raise ValueError("Missing the required parameter `id_name` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'id_version' is set + if ('id_version' not in params or + params['id_version'] is None): + raise ValueError("Missing the required parameter `id_version` when calling `update_launch_plan`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `update_launch_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id_project' in params: + path_params['id.project'] = params['id_project'] # noqa: E501 + if 'id_domain' in params: + path_params['id.domain'] = params['id_domain'] # noqa: E501 + if 'id_name' in params: + path_params['id.name'] = params['id_name'] # noqa: E501 + if 'id_version' in params: + path_params['id.version'] = params['id_version'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AdminLaunchPlanUpdateResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py new file mode 100644 index 0000000000..9a7091b08f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py @@ -0,0 +1,638 @@ +# coding: utf-8 +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from flyteadmin.configuration import Configuration +import flyteadmin.models +from flyteadmin import rest + + +class ApiClient(object): + """Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + def __del__(self): + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.configuration.host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(flyteadmin.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): + return data + + kwargs = {} + if klass.swagger_types is not None: + for attr, attr_type in six.iteritems(klass.swagger_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py new file mode 100644 index 0000000000..e6773bd5f1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py @@ -0,0 +1,237 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class Configuration(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + _default = None + + def __init__(self): + """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + + # Default Base url + self.host = "http://localhost" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("flyteadmin") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @classmethod + def set_default(cls, default): + cls._default = default + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: version not set\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py new file mode 100644 index 0000000000..510b5e2337 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +# flake8: noqa +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +# import models into model package +from flyteadmin.models.admin_annotations import AdminAnnotations +from flyteadmin.models.admin_auth import AdminAuth +from flyteadmin.models.admin_domain import AdminDomain +from flyteadmin.models.admin_email_notification import AdminEmailNotification +from flyteadmin.models.admin_execution import AdminExecution +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure +from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest +from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse +from flyteadmin.models.admin_execution_list import AdminExecutionList +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata +from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec +from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest +from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse +from flyteadmin.models.admin_fixed_rate import AdminFixedRate +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit +from flyteadmin.models.admin_labels import AdminLabels +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure +from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest +from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse +from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState +from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest +from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier +from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure +from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest +from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse +from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse +from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList +from flyteadmin.models.admin_notification import AdminNotification +from flyteadmin.models.admin_notification_list import AdminNotificationList +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification +from flyteadmin.models.admin_project import AdminProject +from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest +from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse +from flyteadmin.models.admin_projects import AdminProjects +from flyteadmin.models.admin_schedule import AdminSchedule +from flyteadmin.models.admin_slack_notification import AdminSlackNotification +from flyteadmin.models.admin_sort import AdminSort +from flyteadmin.models.admin_task import AdminTask +from flyteadmin.models.admin_task_closure import AdminTaskClosure +from flyteadmin.models.admin_task_create_request import AdminTaskCreateRequest +from flyteadmin.models.admin_task_create_response import AdminTaskCreateResponse +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure +from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest +from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse +from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse +from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList +from flyteadmin.models.admin_task_list import AdminTaskList +from flyteadmin.models.admin_task_spec import AdminTaskSpec +from flyteadmin.models.admin_url_blob import AdminUrlBlob +from flyteadmin.models.admin_workflow import AdminWorkflow +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure +from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest +from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse +from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest +from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse +from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse +from flyteadmin.models.admin_workflow_list import AdminWorkflowList +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList +from flyteadmin.models.core_alias import CoreAlias +from flyteadmin.models.core_binary import CoreBinary +from flyteadmin.models.core_binding import CoreBinding +from flyteadmin.models.core_binding_data import CoreBindingData +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap +from flyteadmin.models.core_blob import CoreBlob +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata +from flyteadmin.models.core_blob_type import CoreBlobType +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression +from flyteadmin.models.core_branch_node import CoreBranchNode +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression +from flyteadmin.models.core_compiled_task import CoreCompiledTask +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression +from flyteadmin.models.core_connection_set import CoreConnectionSet +from flyteadmin.models.core_container import CoreContainer +from flyteadmin.models.core_container_port import CoreContainerPort +from flyteadmin.models.core_error import CoreError +from flyteadmin.models.core_execution_error import CoreExecutionError +from flyteadmin.models.core_identifier import CoreIdentifier +from flyteadmin.models.core_if_block import CoreIfBlock +from flyteadmin.models.core_if_else_block import CoreIfElseBlock +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair +from flyteadmin.models.core_literal import CoreLiteral +from flyteadmin.models.core_literal_collection import CoreLiteralCollection +from flyteadmin.models.core_literal_map import CoreLiteralMap +from flyteadmin.models.core_literal_type import CoreLiteralType +from flyteadmin.models.core_node import CoreNode +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase +from flyteadmin.models.core_node_metadata import CoreNodeMetadata +from flyteadmin.models.core_operand import CoreOperand +from flyteadmin.models.core_output_reference import CoreOutputReference +from flyteadmin.models.core_parameter import CoreParameter +from flyteadmin.models.core_parameter_map import CoreParameterMap +from flyteadmin.models.core_primitive import CorePrimitive +from flyteadmin.models.core_resource_type import CoreResourceType +from flyteadmin.models.core_resources import CoreResources +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata +from flyteadmin.models.core_scalar import CoreScalar +from flyteadmin.models.core_schema_type import CoreSchemaType +from flyteadmin.models.core_simple_type import CoreSimpleType +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase +from flyteadmin.models.core_task_log import CoreTaskLog +from flyteadmin.models.core_task_metadata import CoreTaskMetadata +from flyteadmin.models.core_task_node import CoreTaskNode +from flyteadmin.models.core_task_template import CoreTaskTemplate +from flyteadmin.models.core_typed_interface import CoreTypedInterface +from flyteadmin.models.core_variable import CoreVariable +from flyteadmin.models.core_variable_map import CoreVariableMap +from flyteadmin.models.core_void import CoreVoid +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata +from flyteadmin.models.core_workflow_node import CoreWorkflowNode +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata +from flyteadmin.models.flyteidlcore_schema import FlyteidlcoreSchema +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata +from flyteadmin.models.protobuf_list_value import ProtobufListValue +from flyteadmin.models.protobuf_null_value import ProtobufNullValue +from flyteadmin.models.protobuf_struct import ProtobufStruct +from flyteadmin.models.protobuf_value import ProtobufValue +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry +from flyteadmin.models.resources_resource_name import ResourcesResourceName +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn +from flyteadmin.models.sort_direction import SortDirection +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py new file mode 100644 index 0000000000..c0aeceade3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminAnnotations(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'dict(str, str)' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """AdminAnnotations - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this AdminAnnotations. # noqa: E501 + + Map of custom annotations to be applied to the execution resource. # noqa: E501 + + :return: The values of this AdminAnnotations. # noqa: E501 + :rtype: dict(str, str) + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminAnnotations. + + Map of custom annotations to be applied to the execution resource. # noqa: E501 + + :param values: The values of this AdminAnnotations. # noqa: E501 + :type: dict(str, str) + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminAnnotations, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminAnnotations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py new file mode 100644 index 0000000000..6ef29cf637 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminAuth(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'assumable_iam_role': 'str', + 'kubernetes_service_account': 'str' + } + + attribute_map = { + 'assumable_iam_role': 'assumable_iam_role', + 'kubernetes_service_account': 'kubernetes_service_account' + } + + def __init__(self, assumable_iam_role=None, kubernetes_service_account=None): # noqa: E501 + """AdminAuth - a model defined in Swagger""" # noqa: E501 + + self._assumable_iam_role = None + self._kubernetes_service_account = None + self.discriminator = None + + if assumable_iam_role is not None: + self.assumable_iam_role = assumable_iam_role + if kubernetes_service_account is not None: + self.kubernetes_service_account = kubernetes_service_account + + @property + def assumable_iam_role(self): + """Gets the assumable_iam_role of this AdminAuth. # noqa: E501 + + + :return: The assumable_iam_role of this AdminAuth. # noqa: E501 + :rtype: str + """ + return self._assumable_iam_role + + @assumable_iam_role.setter + def assumable_iam_role(self, assumable_iam_role): + """Sets the assumable_iam_role of this AdminAuth. + + + :param assumable_iam_role: The assumable_iam_role of this AdminAuth. # noqa: E501 + :type: str + """ + + self._assumable_iam_role = assumable_iam_role + + @property + def kubernetes_service_account(self): + """Gets the kubernetes_service_account of this AdminAuth. # noqa: E501 + + + :return: The kubernetes_service_account of this AdminAuth. # noqa: E501 + :rtype: str + """ + return self._kubernetes_service_account + + @kubernetes_service_account.setter + def kubernetes_service_account(self, kubernetes_service_account): + """Sets the kubernetes_service_account of this AdminAuth. + + + :param kubernetes_service_account: The kubernetes_service_account of this AdminAuth. # noqa: E501 + :type: str + """ + + self._kubernetes_service_account = kubernetes_service_account + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminAuth, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminAuth): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py new file mode 100644 index 0000000000..04aff54b98 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminDomain(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """AdminDomain - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this AdminDomain. # noqa: E501 + + + :return: The id of this AdminDomain. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminDomain. + + + :param id: The id of this AdminDomain. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminDomain. # noqa: E501 + + Display name. # noqa: E501 + + :return: The name of this AdminDomain. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminDomain. + + Display name. # noqa: E501 + + :param name: The name of this AdminDomain. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminDomain, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminDomain): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py new file mode 100644 index 0000000000..b3e40f1375 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminEmailNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'recipients_email': 'list[str]' + } + + attribute_map = { + 'recipients_email': 'recipients_email' + } + + def __init__(self, recipients_email=None): # noqa: E501 + """AdminEmailNotification - a model defined in Swagger""" # noqa: E501 + + self._recipients_email = None + self.discriminator = None + + if recipients_email is not None: + self.recipients_email = recipients_email + + @property + def recipients_email(self): + """Gets the recipients_email of this AdminEmailNotification. # noqa: E501 + + The list of email addresses recipients for this notification. # noqa: E501 + + :return: The recipients_email of this AdminEmailNotification. # noqa: E501 + :rtype: list[str] + """ + return self._recipients_email + + @recipients_email.setter + def recipients_email(self, recipients_email): + """Sets the recipients_email of this AdminEmailNotification. + + The list of email addresses recipients for this notification. # noqa: E501 + + :param recipients_email: The recipients_email of this AdminEmailNotification. # noqa: E501 + :type: list[str] + """ + + self._recipients_email = recipients_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminEmailNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminEmailNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py new file mode 100644 index 0000000000..1de4f19d97 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure # noqa: F401,E501 +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'spec': 'AdminExecutionSpec', + 'closure': 'AdminExecutionClosure' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec', + 'closure': 'closure' + } + + def __init__(self, id=None, spec=None, closure=None): # noqa: E501 + """AdminExecution - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this AdminExecution. # noqa: E501 + + Unique identifier of the workflow execution. # noqa: E501 + + :return: The id of this AdminExecution. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecution. + + Unique identifier of the workflow execution. # noqa: E501 + + :param id: The id of this AdminExecution. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminExecution. # noqa: E501 + + User-provided configuration and inputs for launching the execution. # noqa: E501 + + :return: The spec of this AdminExecution. # noqa: E501 + :rtype: AdminExecutionSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminExecution. + + User-provided configuration and inputs for launching the execution. # noqa: E501 + + :param spec: The spec of this AdminExecution. # noqa: E501 + :type: AdminExecutionSpec + """ + + self._spec = spec + + @property + def closure(self): + """Gets the closure of this AdminExecution. # noqa: E501 + + Execution results. # noqa: E501 + + :return: The closure of this AdminExecution. # noqa: E501 + :rtype: AdminExecutionClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminExecution. + + Execution results. # noqa: E501 + + :param closure: The closure of this AdminExecution. # noqa: E501 + :type: AdminExecutionClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py new file mode 100644 index 0000000000..e40044d9b0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py @@ -0,0 +1,402 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob # noqa: F401,E501 +from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 + + +class AdminExecutionClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'outputs': 'AdminLiteralMapBlob', + 'error': 'CoreExecutionError', + 'abort_cause': 'str', + 'computed_inputs': 'CoreLiteralMap', + 'phase': 'CoreWorkflowExecutionPhase', + 'started_at': 'datetime', + 'duration': 'str', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'notifications': 'list[AdminNotification]', + 'workflow_id': 'CoreIdentifier' + } + + attribute_map = { + 'outputs': 'outputs', + 'error': 'error', + 'abort_cause': 'abort_cause', + 'computed_inputs': 'computed_inputs', + 'phase': 'phase', + 'started_at': 'started_at', + 'duration': 'duration', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'notifications': 'notifications', + 'workflow_id': 'workflow_id' + } + + def __init__(self, outputs=None, error=None, abort_cause=None, computed_inputs=None, phase=None, started_at=None, duration=None, created_at=None, updated_at=None, notifications=None, workflow_id=None): # noqa: E501 + """AdminExecutionClosure - a model defined in Swagger""" # noqa: E501 + + self._outputs = None + self._error = None + self._abort_cause = None + self._computed_inputs = None + self._phase = None + self._started_at = None + self._duration = None + self._created_at = None + self._updated_at = None + self._notifications = None + self._workflow_id = None + self.discriminator = None + + if outputs is not None: + self.outputs = outputs + if error is not None: + self.error = error + if abort_cause is not None: + self.abort_cause = abort_cause + if computed_inputs is not None: + self.computed_inputs = computed_inputs + if phase is not None: + self.phase = phase + if started_at is not None: + self.started_at = started_at + if duration is not None: + self.duration = duration + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if notifications is not None: + self.notifications = notifications + if workflow_id is not None: + self.workflow_id = workflow_id + + @property + def outputs(self): + """Gets the outputs of this AdminExecutionClosure. # noqa: E501 + + A map of outputs in the case of a successful execution. # noqa: E501 + + :return: The outputs of this AdminExecutionClosure. # noqa: E501 + :rtype: AdminLiteralMapBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminExecutionClosure. + + A map of outputs in the case of a successful execution. # noqa: E501 + + :param outputs: The outputs of this AdminExecutionClosure. # noqa: E501 + :type: AdminLiteralMapBlob + """ + + self._outputs = outputs + + @property + def error(self): + """Gets the error of this AdminExecutionClosure. # noqa: E501 + + Error information in the case of a failed execution. # noqa: E501 + + :return: The error of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this AdminExecutionClosure. + + Error information in the case of a failed execution. # noqa: E501 + + :param error: The error of this AdminExecutionClosure. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def abort_cause(self): + """Gets the abort_cause of this AdminExecutionClosure. # noqa: E501 + + In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 + + :return: The abort_cause of this AdminExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._abort_cause + + @abort_cause.setter + def abort_cause(self, abort_cause): + """Sets the abort_cause of this AdminExecutionClosure. + + In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 + + :param abort_cause: The abort_cause of this AdminExecutionClosure. # noqa: E501 + :type: str + """ + + self._abort_cause = abort_cause + + @property + def computed_inputs(self): + """Gets the computed_inputs of this AdminExecutionClosure. # noqa: E501 + + + :return: The computed_inputs of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._computed_inputs + + @computed_inputs.setter + def computed_inputs(self, computed_inputs): + """Sets the computed_inputs of this AdminExecutionClosure. + + + :param computed_inputs: The computed_inputs of this AdminExecutionClosure. # noqa: E501 + :type: CoreLiteralMap + """ + + self._computed_inputs = computed_inputs + + @property + def phase(self): + """Gets the phase of this AdminExecutionClosure. # noqa: E501 + + Most recent recorded phase for the execution. # noqa: E501 + + :return: The phase of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreWorkflowExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this AdminExecutionClosure. + + Most recent recorded phase for the execution. # noqa: E501 + + :param phase: The phase of this AdminExecutionClosure. # noqa: E501 + :type: CoreWorkflowExecutionPhase + """ + + self._phase = phase + + @property + def started_at(self): + """Gets the started_at of this AdminExecutionClosure. # noqa: E501 + + Reported ime at which the execution began running. # noqa: E501 + + :return: The started_at of this AdminExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this AdminExecutionClosure. + + Reported ime at which the execution began running. # noqa: E501 + + :param started_at: The started_at of this AdminExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._started_at = started_at + + @property + def duration(self): + """Gets the duration of this AdminExecutionClosure. # noqa: E501 + + The amount of time the execution spent running. # noqa: E501 + + :return: The duration of this AdminExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AdminExecutionClosure. + + The amount of time the execution spent running. # noqa: E501 + + :param duration: The duration of this AdminExecutionClosure. # noqa: E501 + :type: str + """ + + self._duration = duration + + @property + def created_at(self): + """Gets the created_at of this AdminExecutionClosure. # noqa: E501 + + Reported time at which the execution was created. # noqa: E501 + + :return: The created_at of this AdminExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminExecutionClosure. + + Reported time at which the execution was created. # noqa: E501 + + :param created_at: The created_at of this AdminExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminExecutionClosure. # noqa: E501 + + Reported time at which the execution was last updated. # noqa: E501 + + :return: The updated_at of this AdminExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminExecutionClosure. + + Reported time at which the execution was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def notifications(self): + """Gets the notifications of this AdminExecutionClosure. # noqa: E501 + + The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. # noqa: E501 + + :return: The notifications of this AdminExecutionClosure. # noqa: E501 + :rtype: list[AdminNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminExecutionClosure. + + The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. # noqa: E501 + + :param notifications: The notifications of this AdminExecutionClosure. # noqa: E501 + :type: list[AdminNotification] + """ + + self._notifications = notifications + + @property + def workflow_id(self): + """Gets the workflow_id of this AdminExecutionClosure. # noqa: E501 + + Identifies the workflow definition for this execution. # noqa: E501 + + :return: The workflow_id of this AdminExecutionClosure. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._workflow_id + + @workflow_id.setter + def workflow_id(self, workflow_id): + """Sets the workflow_id of this AdminExecutionClosure. + + Identifies the workflow definition for this execution. # noqa: E501 + + :param workflow_id: The workflow_id of this AdminExecutionClosure. # noqa: E501 + :type: CoreIdentifier + """ + + self._workflow_id = workflow_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py new file mode 100644 index 0000000000..03679082c4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: F401,E501 + + +class AdminExecutionCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'name': 'str', + 'spec': 'AdminExecutionSpec' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'name': 'name', + 'spec': 'spec' + } + + def __init__(self, project=None, domain=None, name=None, spec=None): # noqa: E501 + """AdminExecutionCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._name = None + self._spec = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + if spec is not None: + self.spec = spec + + @property + def project(self): + """Gets the project of this AdminExecutionCreateRequest. # noqa: E501 + + Name of the project the execution belongs to. # noqa: E501 + + :return: The project of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminExecutionCreateRequest. + + Name of the project the execution belongs to. # noqa: E501 + + :param project: The project of this AdminExecutionCreateRequest. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminExecutionCreateRequest. # noqa: E501 + + Name of the domain the execution belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminExecutionCreateRequest. + + Name of the domain the execution belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this AdminExecutionCreateRequest. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this AdminExecutionCreateRequest. # noqa: E501 + + + :return: The name of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminExecutionCreateRequest. + + + :param name: The name of this AdminExecutionCreateRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def spec(self): + """Gets the spec of this AdminExecutionCreateRequest. # noqa: E501 + + Additional fields necessary to launch the execution. # noqa: E501 + + :return: The spec of this AdminExecutionCreateRequest. # noqa: E501 + :rtype: AdminExecutionSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminExecutionCreateRequest. + + Additional fields necessary to launch the execution. # noqa: E501 + + :param spec: The spec of this AdminExecutionCreateRequest. # noqa: E501 + :type: AdminExecutionSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py new file mode 100644 index 0000000000..664459cde6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """AdminExecutionCreateResponse - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this AdminExecutionCreateResponse. # noqa: E501 + + + :return: The id of this AdminExecutionCreateResponse. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionCreateResponse. + + + :param id: The id of this AdminExecutionCreateResponse. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py new file mode 100644 index 0000000000..3821efb2f6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_execution import AdminExecution # noqa: F401,E501 + + +class AdminExecutionList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'executions': 'list[AdminExecution]', + 'token': 'str' + } + + attribute_map = { + 'executions': 'executions', + 'token': 'token' + } + + def __init__(self, executions=None, token=None): # noqa: E501 + """AdminExecutionList - a model defined in Swagger""" # noqa: E501 + + self._executions = None + self._token = None + self.discriminator = None + + if executions is not None: + self.executions = executions + if token is not None: + self.token = token + + @property + def executions(self): + """Gets the executions of this AdminExecutionList. # noqa: E501 + + + :return: The executions of this AdminExecutionList. # noqa: E501 + :rtype: list[AdminExecution] + """ + return self._executions + + @executions.setter + def executions(self, executions): + """Sets the executions of this AdminExecutionList. + + + :param executions: The executions of this AdminExecutionList. # noqa: E501 + :type: list[AdminExecution] + """ + + self._executions = executions + + @property + def token(self): + """Gets the token of this AdminExecutionList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminExecutionList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminExecutionList. + + 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. # noqa: E501 + + :param token: The token of this AdminExecutionList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py new file mode 100644 index 0000000000..64502cd0d2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode # noqa: F401,E501 + + +class AdminExecutionMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mode': 'ExecutionMetadataExecutionMode', + 'principal': 'str', + 'nesting': 'int', + 'scheduled_at': 'datetime', + 'parent_node_execution': 'CoreNodeExecutionIdentifier', + 'reference_execution': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'mode': 'mode', + 'principal': 'principal', + 'nesting': 'nesting', + 'scheduled_at': 'scheduled_at', + 'parent_node_execution': 'parent_node_execution', + 'reference_execution': 'reference_execution' + } + + def __init__(self, mode=None, principal=None, nesting=None, scheduled_at=None, parent_node_execution=None, reference_execution=None): # noqa: E501 + """AdminExecutionMetadata - a model defined in Swagger""" # noqa: E501 + + self._mode = None + self._principal = None + self._nesting = None + self._scheduled_at = None + self._parent_node_execution = None + self._reference_execution = None + self.discriminator = None + + if mode is not None: + self.mode = mode + if principal is not None: + self.principal = principal + if nesting is not None: + self.nesting = nesting + if scheduled_at is not None: + self.scheduled_at = scheduled_at + if parent_node_execution is not None: + self.parent_node_execution = parent_node_execution + if reference_execution is not None: + self.reference_execution = reference_execution + + @property + def mode(self): + """Gets the mode of this AdminExecutionMetadata. # noqa: E501 + + + :return: The mode of this AdminExecutionMetadata. # noqa: E501 + :rtype: ExecutionMetadataExecutionMode + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this AdminExecutionMetadata. + + + :param mode: The mode of this AdminExecutionMetadata. # noqa: E501 + :type: ExecutionMetadataExecutionMode + """ + + self._mode = mode + + @property + def principal(self): + """Gets the principal of this AdminExecutionMetadata. # noqa: E501 + + Identifier of the entity that triggered this execution. # noqa: E501 + + :return: The principal of this AdminExecutionMetadata. # noqa: E501 + :rtype: str + """ + return self._principal + + @principal.setter + def principal(self, principal): + """Sets the principal of this AdminExecutionMetadata. + + Identifier of the entity that triggered this execution. # noqa: E501 + + :param principal: The principal of this AdminExecutionMetadata. # noqa: E501 + :type: str + """ + + self._principal = principal + + @property + def nesting(self): + """Gets the nesting of this AdminExecutionMetadata. # noqa: E501 + + Indicates the \"nestedness\" of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. # noqa: E501 + + :return: The nesting of this AdminExecutionMetadata. # noqa: E501 + :rtype: int + """ + return self._nesting + + @nesting.setter + def nesting(self, nesting): + """Sets the nesting of this AdminExecutionMetadata. + + Indicates the \"nestedness\" of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. # noqa: E501 + + :param nesting: The nesting of this AdminExecutionMetadata. # noqa: E501 + :type: int + """ + + self._nesting = nesting + + @property + def scheduled_at(self): + """Gets the scheduled_at of this AdminExecutionMetadata. # noqa: E501 + + For scheduled executions, the requested time for execution for this specific schedule invocation. # noqa: E501 + + :return: The scheduled_at of this AdminExecutionMetadata. # noqa: E501 + :rtype: datetime + """ + return self._scheduled_at + + @scheduled_at.setter + def scheduled_at(self, scheduled_at): + """Sets the scheduled_at of this AdminExecutionMetadata. + + For scheduled executions, the requested time for execution for this specific schedule invocation. # noqa: E501 + + :param scheduled_at: The scheduled_at of this AdminExecutionMetadata. # noqa: E501 + :type: datetime + """ + + self._scheduled_at = scheduled_at + + @property + def parent_node_execution(self): + """Gets the parent_node_execution of this AdminExecutionMetadata. # noqa: E501 + + + :return: The parent_node_execution of this AdminExecutionMetadata. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._parent_node_execution + + @parent_node_execution.setter + def parent_node_execution(self, parent_node_execution): + """Sets the parent_node_execution of this AdminExecutionMetadata. + + + :param parent_node_execution: The parent_node_execution of this AdminExecutionMetadata. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._parent_node_execution = parent_node_execution + + @property + def reference_execution(self): + """Gets the reference_execution of this AdminExecutionMetadata. # noqa: E501 + + Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. # noqa: E501 + + :return: The reference_execution of this AdminExecutionMetadata. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._reference_execution + + @reference_execution.setter + def reference_execution(self, reference_execution): + """Sets the reference_execution of this AdminExecutionMetadata. + + Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. # noqa: E501 + + :param reference_execution: The reference_execution of this AdminExecutionMetadata. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._reference_execution = reference_execution + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py new file mode 100644 index 0000000000..91d2d2f8d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionRelaunchRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """AdminExecutionRelaunchRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this AdminExecutionRelaunchRequest. # noqa: E501 + + Identifier of the workflow execution to relaunch. # noqa: E501 + + :return: The id of this AdminExecutionRelaunchRequest. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionRelaunchRequest. + + Identifier of the workflow execution to relaunch. # noqa: E501 + + :param id: The id of this AdminExecutionRelaunchRequest. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminExecutionRelaunchRequest. # noqa: E501 + + + :return: The name of this AdminExecutionRelaunchRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminExecutionRelaunchRequest. + + + :param name: The name of this AdminExecutionRelaunchRequest. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionRelaunchRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionRelaunchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py new file mode 100644 index 0000000000..14f38d719b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py @@ -0,0 +1,286 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 +from flyteadmin.models.admin_notification_list import AdminNotificationList # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 + + +class AdminExecutionSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'launch_plan': 'CoreIdentifier', + 'inputs': 'CoreLiteralMap', + 'metadata': 'AdminExecutionMetadata', + 'notifications': 'AdminNotificationList', + 'disable_all': 'bool', + 'labels': 'AdminLabels', + 'annotations': 'AdminAnnotations' + } + + attribute_map = { + 'launch_plan': 'launch_plan', + 'inputs': 'inputs', + 'metadata': 'metadata', + 'notifications': 'notifications', + 'disable_all': 'disable_all', + 'labels': 'labels', + 'annotations': 'annotations' + } + + def __init__(self, launch_plan=None, inputs=None, metadata=None, notifications=None, disable_all=None, labels=None, annotations=None): # noqa: E501 + """AdminExecutionSpec - a model defined in Swagger""" # noqa: E501 + + self._launch_plan = None + self._inputs = None + self._metadata = None + self._notifications = None + self._disable_all = None + self._labels = None + self._annotations = None + self.discriminator = None + + if launch_plan is not None: + self.launch_plan = launch_plan + if inputs is not None: + self.inputs = inputs + if metadata is not None: + self.metadata = metadata + if notifications is not None: + self.notifications = notifications + if disable_all is not None: + self.disable_all = disable_all + if labels is not None: + self.labels = labels + if annotations is not None: + self.annotations = annotations + + @property + def launch_plan(self): + """Gets the launch_plan of this AdminExecutionSpec. # noqa: E501 + + + :return: The launch_plan of this AdminExecutionSpec. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._launch_plan + + @launch_plan.setter + def launch_plan(self, launch_plan): + """Sets the launch_plan of this AdminExecutionSpec. + + + :param launch_plan: The launch_plan of this AdminExecutionSpec. # noqa: E501 + :type: CoreIdentifier + """ + + self._launch_plan = launch_plan + + @property + def inputs(self): + """Gets the inputs of this AdminExecutionSpec. # noqa: E501 + + + :return: The inputs of this AdminExecutionSpec. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminExecutionSpec. + + + :param inputs: The inputs of this AdminExecutionSpec. # noqa: E501 + :type: CoreLiteralMap + """ + + self._inputs = inputs + + @property + def metadata(self): + """Gets the metadata of this AdminExecutionSpec. # noqa: E501 + + + :return: The metadata of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminExecutionMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this AdminExecutionSpec. + + + :param metadata: The metadata of this AdminExecutionSpec. # noqa: E501 + :type: AdminExecutionMetadata + """ + + self._metadata = metadata + + @property + def notifications(self): + """Gets the notifications of this AdminExecutionSpec. # noqa: E501 + + List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. # noqa: E501 + + :return: The notifications of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminNotificationList + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminExecutionSpec. + + List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. # noqa: E501 + + :param notifications: The notifications of this AdminExecutionSpec. # noqa: E501 + :type: AdminNotificationList + """ + + self._notifications = notifications + + @property + def disable_all(self): + """Gets the disable_all of this AdminExecutionSpec. # noqa: E501 + + This should be set to true if all notifications are intended to be disabled for this execution. # noqa: E501 + + :return: The disable_all of this AdminExecutionSpec. # noqa: E501 + :rtype: bool + """ + return self._disable_all + + @disable_all.setter + def disable_all(self, disable_all): + """Sets the disable_all of this AdminExecutionSpec. + + This should be set to true if all notifications are intended to be disabled for this execution. # noqa: E501 + + :param disable_all: The disable_all of this AdminExecutionSpec. # noqa: E501 + :type: bool + """ + + self._disable_all = disable_all + + @property + def labels(self): + """Gets the labels of this AdminExecutionSpec. # noqa: E501 + + Labels to apply to the execution resource. # noqa: E501 + + :return: The labels of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this AdminExecutionSpec. + + Labels to apply to the execution resource. # noqa: E501 + + :param labels: The labels of this AdminExecutionSpec. # noqa: E501 + :type: AdminLabels + """ + + self._labels = labels + + @property + def annotations(self): + """Gets the annotations of this AdminExecutionSpec. # noqa: E501 + + Annotations to apply to the execution resource. # noqa: E501 + + :return: The annotations of this AdminExecutionSpec. # noqa: E501 + :rtype: AdminAnnotations + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this AdminExecutionSpec. + + Annotations to apply to the execution resource. # noqa: E501 + + :param annotations: The annotations of this AdminExecutionSpec. # noqa: E501 + :type: AdminAnnotations + """ + + self._annotations = annotations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py new file mode 100644 index 0000000000..a2fb097d43 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class AdminExecutionTerminateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreWorkflowExecutionIdentifier', + 'cause': 'str' + } + + attribute_map = { + 'id': 'id', + 'cause': 'cause' + } + + def __init__(self, id=None, cause=None): # noqa: E501 + """AdminExecutionTerminateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._cause = None + self.discriminator = None + + if id is not None: + self.id = id + if cause is not None: + self.cause = cause + + @property + def id(self): + """Gets the id of this AdminExecutionTerminateRequest. # noqa: E501 + + Uniquely identifies the individual workflow execution to be terminated. # noqa: E501 + + :return: The id of this AdminExecutionTerminateRequest. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminExecutionTerminateRequest. + + Uniquely identifies the individual workflow execution to be terminated. # noqa: E501 + + :param id: The id of this AdminExecutionTerminateRequest. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._id = id + + @property + def cause(self): + """Gets the cause of this AdminExecutionTerminateRequest. # noqa: E501 + + Optional reason for aborting. # noqa: E501 + + :return: The cause of this AdminExecutionTerminateRequest. # noqa: E501 + :rtype: str + """ + return self._cause + + @cause.setter + def cause(self, cause): + """Sets the cause of this AdminExecutionTerminateRequest. + + Optional reason for aborting. # noqa: E501 + + :param cause: The cause of this AdminExecutionTerminateRequest. # noqa: E501 + :type: str + """ + + self._cause = cause + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionTerminateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionTerminateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py new file mode 100644 index 0000000000..b7e68c83d4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminExecutionTerminateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminExecutionTerminateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminExecutionTerminateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminExecutionTerminateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py new file mode 100644 index 0000000000..5eacbeebca --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit # noqa: F401,E501 + + +class AdminFixedRate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'int', + 'unit': 'AdminFixedRateUnit' + } + + attribute_map = { + 'value': 'value', + 'unit': 'unit' + } + + def __init__(self, value=None, unit=None): # noqa: E501 + """AdminFixedRate - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._unit = None + self.discriminator = None + + if value is not None: + self.value = value + if unit is not None: + self.unit = unit + + @property + def value(self): + """Gets the value of this AdminFixedRate. # noqa: E501 + + + :return: The value of this AdminFixedRate. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this AdminFixedRate. + + + :param value: The value of this AdminFixedRate. # noqa: E501 + :type: int + """ + + self._value = value + + @property + def unit(self): + """Gets the unit of this AdminFixedRate. # noqa: E501 + + + :return: The unit of this AdminFixedRate. # noqa: E501 + :rtype: AdminFixedRateUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this AdminFixedRate. + + + :param unit: The unit of this AdminFixedRate. # noqa: E501 + :type: AdminFixedRateUnit + """ + + self._unit = unit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminFixedRate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminFixedRate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py new file mode 100644 index 0000000000..2c65b556bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminFixedRateUnit(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + MINUTE = "MINUTE" + HOUR = "HOUR" + DAY = "DAY" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminFixedRateUnit - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminFixedRateUnit, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminFixedRateUnit): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py new file mode 100644 index 0000000000..1391051e4b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLabels(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'dict(str, str)' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """AdminLabels - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this AdminLabels. # noqa: E501 + + Map of custom labels to be applied to the execution resource. # noqa: E501 + + :return: The values of this AdminLabels. # noqa: E501 + :rtype: dict(str, str) + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminLabels. + + Map of custom labels to be applied to the execution resource. # noqa: E501 + + :param values: The values of this AdminLabels. # noqa: E501 + :type: dict(str, str) + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLabels, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLabels): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py new file mode 100644 index 0000000000..5f3b3f98b9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure # noqa: F401,E501 +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminLaunchPlan(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminLaunchPlanSpec', + 'closure': 'AdminLaunchPlanClosure' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec', + 'closure': 'closure' + } + + def __init__(self, id=None, spec=None, closure=None): # noqa: E501 + """AdminLaunchPlan - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this AdminLaunchPlan. # noqa: E501 + + + :return: The id of this AdminLaunchPlan. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminLaunchPlan. + + + :param id: The id of this AdminLaunchPlan. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminLaunchPlan. # noqa: E501 + + + :return: The spec of this AdminLaunchPlan. # noqa: E501 + :rtype: AdminLaunchPlanSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminLaunchPlan. + + + :param spec: The spec of this AdminLaunchPlan. # noqa: E501 + :type: AdminLaunchPlanSpec + """ + + self._spec = spec + + @property + def closure(self): + """Gets the closure of this AdminLaunchPlan. # noqa: E501 + + + :return: The closure of this AdminLaunchPlan. # noqa: E501 + :rtype: AdminLaunchPlanClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminLaunchPlan. + + + :param closure: The closure of this AdminLaunchPlan. # noqa: E501 + :type: AdminLaunchPlanClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlan, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlan): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py new file mode 100644 index 0000000000..b4f5920897 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: F401,E501 +from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: F401,E501 +from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: F401,E501 + + +class AdminLaunchPlanClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'state': 'AdminLaunchPlanState', + 'expected_inputs': 'CoreParameterMap', + 'expected_outputs': 'CoreVariableMap', + 'created_at': 'datetime', + 'updated_at': 'datetime' + } + + attribute_map = { + 'state': 'state', + 'expected_inputs': 'expected_inputs', + 'expected_outputs': 'expected_outputs', + 'created_at': 'created_at', + 'updated_at': 'updated_at' + } + + def __init__(self, state=None, expected_inputs=None, expected_outputs=None, created_at=None, updated_at=None): # noqa: E501 + """AdminLaunchPlanClosure - a model defined in Swagger""" # noqa: E501 + + self._state = None + self._expected_inputs = None + self._expected_outputs = None + self._created_at = None + self._updated_at = None + self.discriminator = None + + if state is not None: + self.state = state + if expected_inputs is not None: + self.expected_inputs = expected_inputs + if expected_outputs is not None: + self.expected_outputs = expected_outputs + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + + @property + def state(self): + """Gets the state of this AdminLaunchPlanClosure. # noqa: E501 + + + :return: The state of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: AdminLaunchPlanState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminLaunchPlanClosure. + + + :param state: The state of this AdminLaunchPlanClosure. # noqa: E501 + :type: AdminLaunchPlanState + """ + + self._state = state + + @property + def expected_inputs(self): + """Gets the expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 + + + :return: The expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: CoreParameterMap + """ + return self._expected_inputs + + @expected_inputs.setter + def expected_inputs(self, expected_inputs): + """Sets the expected_inputs of this AdminLaunchPlanClosure. + + + :param expected_inputs: The expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 + :type: CoreParameterMap + """ + + self._expected_inputs = expected_inputs + + @property + def expected_outputs(self): + """Gets the expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 + + + :return: The expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: CoreVariableMap + """ + return self._expected_outputs + + @expected_outputs.setter + def expected_outputs(self, expected_outputs): + """Sets the expected_outputs of this AdminLaunchPlanClosure. + + + :param expected_outputs: The expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 + :type: CoreVariableMap + """ + + self._expected_outputs = expected_outputs + + @property + def created_at(self): + """Gets the created_at of this AdminLaunchPlanClosure. # noqa: E501 + + Time at which the launch plan was created. # noqa: E501 + + :return: The created_at of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminLaunchPlanClosure. + + Time at which the launch plan was created. # noqa: E501 + + :param created_at: The created_at of this AdminLaunchPlanClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminLaunchPlanClosure. # noqa: E501 + + Time at which the launch plan was last updated. # noqa: E501 + + :return: The updated_at of this AdminLaunchPlanClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminLaunchPlanClosure. + + Time at which the launch plan was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminLaunchPlanClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py new file mode 100644 index 0000000000..888fa5b2fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminLaunchPlanCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminLaunchPlanSpec' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec' + } + + def __init__(self, id=None, spec=None): # noqa: E501 + """AdminLaunchPlanCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + + @property + def id(self): + """Gets the id of this AdminLaunchPlanCreateRequest. # noqa: E501 + + Uniquely identifies a launch plan entity. # noqa: E501 + + :return: The id of this AdminLaunchPlanCreateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminLaunchPlanCreateRequest. + + Uniquely identifies a launch plan entity. # noqa: E501 + + :param id: The id of this AdminLaunchPlanCreateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminLaunchPlanCreateRequest. # noqa: E501 + + User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 + + :return: The spec of this AdminLaunchPlanCreateRequest. # noqa: E501 + :rtype: AdminLaunchPlanSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminLaunchPlanCreateRequest. + + User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 + + :param spec: The spec of this AdminLaunchPlanCreateRequest. # noqa: E501 + :type: AdminLaunchPlanSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py new file mode 100644 index 0000000000..8bc8d4a761 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLaunchPlanCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminLaunchPlanCreateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py new file mode 100644 index 0000000000..9c337f347e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan # noqa: F401,E501 + + +class AdminLaunchPlanList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'launch_plans': 'list[AdminLaunchPlan]', + 'token': 'str' + } + + attribute_map = { + 'launch_plans': 'launch_plans', + 'token': 'token' + } + + def __init__(self, launch_plans=None, token=None): # noqa: E501 + """AdminLaunchPlanList - a model defined in Swagger""" # noqa: E501 + + self._launch_plans = None + self._token = None + self.discriminator = None + + if launch_plans is not None: + self.launch_plans = launch_plans + if token is not None: + self.token = token + + @property + def launch_plans(self): + """Gets the launch_plans of this AdminLaunchPlanList. # noqa: E501 + + + :return: The launch_plans of this AdminLaunchPlanList. # noqa: E501 + :rtype: list[AdminLaunchPlan] + """ + return self._launch_plans + + @launch_plans.setter + def launch_plans(self, launch_plans): + """Sets the launch_plans of this AdminLaunchPlanList. + + + :param launch_plans: The launch_plans of this AdminLaunchPlanList. # noqa: E501 + :type: list[AdminLaunchPlan] + """ + + self._launch_plans = launch_plans + + @property + def token(self): + """Gets the token of this AdminLaunchPlanList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminLaunchPlanList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminLaunchPlanList. + + 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. # noqa: E501 + + :param token: The token of this AdminLaunchPlanList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py new file mode 100644 index 0000000000..d4ebda5dc7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 +from flyteadmin.models.admin_schedule import AdminSchedule # noqa: F401,E501 + + +class AdminLaunchPlanMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'schedule': 'AdminSchedule', + 'notifications': 'list[AdminNotification]' + } + + attribute_map = { + 'schedule': 'schedule', + 'notifications': 'notifications' + } + + def __init__(self, schedule=None, notifications=None): # noqa: E501 + """AdminLaunchPlanMetadata - a model defined in Swagger""" # noqa: E501 + + self._schedule = None + self._notifications = None + self.discriminator = None + + if schedule is not None: + self.schedule = schedule + if notifications is not None: + self.notifications = notifications + + @property + def schedule(self): + """Gets the schedule of this AdminLaunchPlanMetadata. # noqa: E501 + + + :return: The schedule of this AdminLaunchPlanMetadata. # noqa: E501 + :rtype: AdminSchedule + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this AdminLaunchPlanMetadata. + + + :param schedule: The schedule of this AdminLaunchPlanMetadata. # noqa: E501 + :type: AdminSchedule + """ + + self._schedule = schedule + + @property + def notifications(self): + """Gets the notifications of this AdminLaunchPlanMetadata. # noqa: E501 + + + :return: The notifications of this AdminLaunchPlanMetadata. # noqa: E501 + :rtype: list[AdminNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminLaunchPlanMetadata. + + + :param notifications: The notifications of this AdminLaunchPlanMetadata. # noqa: E501 + :type: list[AdminNotification] + """ + + self._notifications = notifications + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py new file mode 100644 index 0000000000..69ff2902ea --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 +from flyteadmin.models.admin_auth import AdminAuth # noqa: F401,E501 +from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: F401,E501 + + +class AdminLaunchPlanSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'workflow_id': 'CoreIdentifier', + 'entity_metadata': 'AdminLaunchPlanMetadata', + 'default_inputs': 'CoreParameterMap', + 'fixed_inputs': 'CoreLiteralMap', + 'role': 'str', + 'labels': 'AdminLabels', + 'annotations': 'AdminAnnotations', + 'auth': 'AdminAuth' + } + + attribute_map = { + 'workflow_id': 'workflow_id', + 'entity_metadata': 'entity_metadata', + 'default_inputs': 'default_inputs', + 'fixed_inputs': 'fixed_inputs', + 'role': 'role', + 'labels': 'labels', + 'annotations': 'annotations', + 'auth': 'auth' + } + + def __init__(self, workflow_id=None, entity_metadata=None, default_inputs=None, fixed_inputs=None, role=None, labels=None, annotations=None, auth=None): # noqa: E501 + """AdminLaunchPlanSpec - a model defined in Swagger""" # noqa: E501 + + self._workflow_id = None + self._entity_metadata = None + self._default_inputs = None + self._fixed_inputs = None + self._role = None + self._labels = None + self._annotations = None + self._auth = None + self.discriminator = None + + if workflow_id is not None: + self.workflow_id = workflow_id + if entity_metadata is not None: + self.entity_metadata = entity_metadata + if default_inputs is not None: + self.default_inputs = default_inputs + if fixed_inputs is not None: + self.fixed_inputs = fixed_inputs + if role is not None: + self.role = role + if labels is not None: + self.labels = labels + if annotations is not None: + self.annotations = annotations + if auth is not None: + self.auth = auth + + @property + def workflow_id(self): + """Gets the workflow_id of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The workflow_id of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._workflow_id + + @workflow_id.setter + def workflow_id(self, workflow_id): + """Sets the workflow_id of this AdminLaunchPlanSpec. + + + :param workflow_id: The workflow_id of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreIdentifier + """ + + self._workflow_id = workflow_id + + @property + def entity_metadata(self): + """Gets the entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminLaunchPlanMetadata + """ + return self._entity_metadata + + @entity_metadata.setter + def entity_metadata(self, entity_metadata): + """Sets the entity_metadata of this AdminLaunchPlanSpec. + + + :param entity_metadata: The entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminLaunchPlanMetadata + """ + + self._entity_metadata = entity_metadata + + @property + def default_inputs(self): + """Gets the default_inputs of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The default_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreParameterMap + """ + return self._default_inputs + + @default_inputs.setter + def default_inputs(self, default_inputs): + """Sets the default_inputs of this AdminLaunchPlanSpec. + + + :param default_inputs: The default_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreParameterMap + """ + + self._default_inputs = default_inputs + + @property + def fixed_inputs(self): + """Gets the fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._fixed_inputs + + @fixed_inputs.setter + def fixed_inputs(self, fixed_inputs): + """Sets the fixed_inputs of this AdminLaunchPlanSpec. + + + :param fixed_inputs: The fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 + :type: CoreLiteralMap + """ + + self._fixed_inputs = fixed_inputs + + @property + def role(self): + """Gets the role of this AdminLaunchPlanSpec. # noqa: E501 + + + :return: The role of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this AdminLaunchPlanSpec. + + + :param role: The role of this AdminLaunchPlanSpec. # noqa: E501 + :type: str + """ + + self._role = role + + @property + def labels(self): + """Gets the labels of this AdminLaunchPlanSpec. # noqa: E501 + + Custom labels to be applied to the execution resource. # noqa: E501 + + :return: The labels of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminLabels + """ + return self._labels + + @labels.setter + def labels(self, labels): + """Sets the labels of this AdminLaunchPlanSpec. + + Custom labels to be applied to the execution resource. # noqa: E501 + + :param labels: The labels of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminLabels + """ + + self._labels = labels + + @property + def annotations(self): + """Gets the annotations of this AdminLaunchPlanSpec. # noqa: E501 + + Custom annotations to be applied to the execution resource. # noqa: E501 + + :return: The annotations of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminAnnotations + """ + return self._annotations + + @annotations.setter + def annotations(self, annotations): + """Sets the annotations of this AdminLaunchPlanSpec. + + Custom annotations to be applied to the execution resource. # noqa: E501 + + :param annotations: The annotations of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminAnnotations + """ + + self._annotations = annotations + + @property + def auth(self): + """Gets the auth of this AdminLaunchPlanSpec. # noqa: E501 + + Indicates the permission associated with workflow executions triggered with this launch plan. # noqa: E501 + + :return: The auth of this AdminLaunchPlanSpec. # noqa: E501 + :rtype: AdminAuth + """ + return self._auth + + @auth.setter + def auth(self, auth): + """Sets the auth of this AdminLaunchPlanSpec. + + Indicates the permission associated with workflow executions triggered with this launch plan. # noqa: E501 + + :param auth: The auth of this AdminLaunchPlanSpec. # noqa: E501 + :type: AdminAuth + """ + + self._auth = auth + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py new file mode 100644 index 0000000000..49b1828a80 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLaunchPlanState(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + INACTIVE = "INACTIVE" + ACTIVE = "ACTIVE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminLaunchPlanState - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanState, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanState): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py new file mode 100644 index 0000000000..ec892e71db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminLaunchPlanUpdateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'state': 'AdminLaunchPlanState' + } + + attribute_map = { + 'id': 'id', + 'state': 'state' + } + + def __init__(self, id=None, state=None): # noqa: E501 + """AdminLaunchPlanUpdateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._state = None + self.discriminator = None + + if id is not None: + self.id = id + if state is not None: + self.state = state + + @property + def id(self): + """Gets the id of this AdminLaunchPlanUpdateRequest. # noqa: E501 + + Identifier of launch plan for which to change state. # noqa: E501 + + :return: The id of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminLaunchPlanUpdateRequest. + + Identifier of launch plan for which to change state. # noqa: E501 + + :param id: The id of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def state(self): + """Gets the state of this AdminLaunchPlanUpdateRequest. # noqa: E501 + + Desired state to apply to the launch plan. # noqa: E501 + + :return: The state of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :rtype: AdminLaunchPlanState + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AdminLaunchPlanUpdateRequest. + + Desired state to apply to the launch plan. # noqa: E501 + + :param state: The state of this AdminLaunchPlanUpdateRequest. # noqa: E501 + :type: AdminLaunchPlanState + """ + + self._state = state + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanUpdateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanUpdateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py new file mode 100644 index 0000000000..03932d5cd2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminLaunchPlanUpdateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminLaunchPlanUpdateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLaunchPlanUpdateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLaunchPlanUpdateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py new file mode 100644 index 0000000000..6d7c78b497 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 + + +class AdminLiteralMapBlob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'CoreLiteralMap', + 'uri': 'str' + } + + attribute_map = { + 'values': 'values', + 'uri': 'uri' + } + + def __init__(self, values=None, uri=None): # noqa: E501 + """AdminLiteralMapBlob - a model defined in Swagger""" # noqa: E501 + + self._values = None + self._uri = None + self.discriminator = None + + if values is not None: + self.values = values + if uri is not None: + self.uri = uri + + @property + def values(self): + """Gets the values of this AdminLiteralMapBlob. # noqa: E501 + + + :return: The values of this AdminLiteralMapBlob. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this AdminLiteralMapBlob. + + + :param values: The values of this AdminLiteralMapBlob. # noqa: E501 + :type: CoreLiteralMap + """ + + self._values = values + + @property + def uri(self): + """Gets the uri of this AdminLiteralMapBlob. # noqa: E501 + + + :return: The uri of this AdminLiteralMapBlob. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this AdminLiteralMapBlob. + + + :param uri: The uri of this AdminLiteralMapBlob. # noqa: E501 + :type: str + """ + + self._uri = uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminLiteralMapBlob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminLiteralMapBlob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py new file mode 100644 index 0000000000..8a06241403 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNamedEntityIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'name': 'str' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'name': 'name' + } + + def __init__(self, project=None, domain=None, name=None): # noqa: E501 + """AdminNamedEntityIdentifier - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._name = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + + @property + def project(self): + """Gets the project of this AdminNamedEntityIdentifier. # noqa: E501 + + Name of the project the resource belongs to. # noqa: E501 + + :return: The project of this AdminNamedEntityIdentifier. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminNamedEntityIdentifier. + + Name of the project the resource belongs to. # noqa: E501 + + :param project: The project of this AdminNamedEntityIdentifier. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this AdminNamedEntityIdentifier. # noqa: E501 + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this AdminNamedEntityIdentifier. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this AdminNamedEntityIdentifier. + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this AdminNamedEntityIdentifier. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this AdminNamedEntityIdentifier. # noqa: E501 + + + :return: The name of this AdminNamedEntityIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminNamedEntityIdentifier. + + + :param name: The name of this AdminNamedEntityIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py new file mode 100644 index 0000000000..04a4ad0284 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 + + +class AdminNamedEntityIdentifierList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'entities': 'list[AdminNamedEntityIdentifier]', + 'token': 'str' + } + + attribute_map = { + 'entities': 'entities', + 'token': 'token' + } + + def __init__(self, entities=None, token=None): # noqa: E501 + """AdminNamedEntityIdentifierList - a model defined in Swagger""" # noqa: E501 + + self._entities = None + self._token = None + self.discriminator = None + + if entities is not None: + self.entities = entities + if token is not None: + self.token = token + + @property + def entities(self): + """Gets the entities of this AdminNamedEntityIdentifierList. # noqa: E501 + + A list of identifiers. # noqa: E501 + + :return: The entities of this AdminNamedEntityIdentifierList. # noqa: E501 + :rtype: list[AdminNamedEntityIdentifier] + """ + return self._entities + + @entities.setter + def entities(self, entities): + """Sets the entities of this AdminNamedEntityIdentifierList. + + A list of identifiers. # noqa: E501 + + :param entities: The entities of this AdminNamedEntityIdentifierList. # noqa: E501 + :type: list[AdminNamedEntityIdentifier] + """ + + self._entities = entities + + @property + def token(self): + """Gets the token of this AdminNamedEntityIdentifierList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminNamedEntityIdentifierList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminNamedEntityIdentifierList. + + 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. # noqa: E501 + + :param token: The token of this AdminNamedEntityIdentifierList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNamedEntityIdentifierList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNamedEntityIdentifierList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py new file mode 100644 index 0000000000..7c5e61c0a0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py @@ -0,0 +1,311 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: F401,E501 +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata # noqa: F401,E501 + + +class AdminNodeExecutionClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'phase': 'CoreNodeExecutionPhase', + 'started_at': 'datetime', + 'duration': 'str', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'workflow_node_metadata': 'FlyteidladminWorkflowNodeMetadata' + } + + attribute_map = { + 'output_uri': 'output_uri', + 'error': 'error', + 'phase': 'phase', + 'started_at': 'started_at', + 'duration': 'duration', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'workflow_node_metadata': 'workflow_node_metadata' + } + + def __init__(self, output_uri=None, error=None, phase=None, started_at=None, duration=None, created_at=None, updated_at=None, workflow_node_metadata=None): # noqa: E501 + """AdminNodeExecutionClosure - a model defined in Swagger""" # noqa: E501 + + self._output_uri = None + self._error = None + self._phase = None + self._started_at = None + self._duration = None + self._created_at = None + self._updated_at = None + self._workflow_node_metadata = None + self.discriminator = None + + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if phase is not None: + self.phase = phase + if started_at is not None: + self.started_at = started_at + if duration is not None: + self.duration = duration + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if workflow_node_metadata is not None: + self.workflow_node_metadata = workflow_node_metadata + + @property + def output_uri(self): + """Gets the output_uri of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The output_uri of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this AdminNodeExecutionClosure. + + + :param output_uri: The output_uri of this AdminNodeExecutionClosure. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The error of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this AdminNodeExecutionClosure. + + + :param error: The error of this AdminNodeExecutionClosure. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def phase(self): + """Gets the phase of this AdminNodeExecutionClosure. # noqa: E501 + + The last recorded phase for this node execution. # noqa: E501 + + :return: The phase of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: CoreNodeExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this AdminNodeExecutionClosure. + + The last recorded phase for this node execution. # noqa: E501 + + :param phase: The phase of this AdminNodeExecutionClosure. # noqa: E501 + :type: CoreNodeExecutionPhase + """ + + self._phase = phase + + @property + def started_at(self): + """Gets the started_at of this AdminNodeExecutionClosure. # noqa: E501 + + Time at which the node execution began running. # noqa: E501 + + :return: The started_at of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this AdminNodeExecutionClosure. + + Time at which the node execution began running. # noqa: E501 + + :param started_at: The started_at of this AdminNodeExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._started_at = started_at + + @property + def duration(self): + """Gets the duration of this AdminNodeExecutionClosure. # noqa: E501 + + The amount of time the node execution spent running. # noqa: E501 + + :return: The duration of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AdminNodeExecutionClosure. + + The amount of time the node execution spent running. # noqa: E501 + + :param duration: The duration of this AdminNodeExecutionClosure. # noqa: E501 + :type: str + """ + + self._duration = duration + + @property + def created_at(self): + """Gets the created_at of this AdminNodeExecutionClosure. # noqa: E501 + + Time at which the node execution was created. # noqa: E501 + + :return: The created_at of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminNodeExecutionClosure. + + Time at which the node execution was created. # noqa: E501 + + :param created_at: The created_at of this AdminNodeExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminNodeExecutionClosure. # noqa: E501 + + Time at which the node execution was last updated. # noqa: E501 + + :return: The updated_at of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminNodeExecutionClosure. + + Time at which the node execution was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminNodeExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def workflow_node_metadata(self): + """Gets the workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + + + :return: The workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + :rtype: FlyteidladminWorkflowNodeMetadata + """ + return self._workflow_node_metadata + + @workflow_node_metadata.setter + def workflow_node_metadata(self, workflow_node_metadata): + """Sets the workflow_node_metadata of this AdminNodeExecutionClosure. + + + :param workflow_node_metadata: The workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 + :type: FlyteidladminWorkflowNodeMetadata + """ + + self._workflow_node_metadata = workflow_node_metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py new file mode 100644 index 0000000000..1b0555a030 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent # noqa: F401,E501 + + +class AdminNodeExecutionEventRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'request_id': 'str', + 'event': 'EventNodeExecutionEvent' + } + + attribute_map = { + 'request_id': 'request_id', + 'event': 'event' + } + + def __init__(self, request_id=None, event=None): # noqa: E501 + """AdminNodeExecutionEventRequest - a model defined in Swagger""" # noqa: E501 + + self._request_id = None + self._event = None + self.discriminator = None + + if request_id is not None: + self.request_id = request_id + if event is not None: + self.event = event + + @property + def request_id(self): + """Gets the request_id of this AdminNodeExecutionEventRequest. # noqa: E501 + + + :return: The request_id of this AdminNodeExecutionEventRequest. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this AdminNodeExecutionEventRequest. + + + :param request_id: The request_id of this AdminNodeExecutionEventRequest. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def event(self): + """Gets the event of this AdminNodeExecutionEventRequest. # noqa: E501 + + Details about the event that occurred. # noqa: E501 + + :return: The event of this AdminNodeExecutionEventRequest. # noqa: E501 + :rtype: EventNodeExecutionEvent + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this AdminNodeExecutionEventRequest. + + Details about the event that occurred. # noqa: E501 + + :param event: The event of this AdminNodeExecutionEventRequest. # noqa: E501 + :type: EventNodeExecutionEvent + """ + + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionEventRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py new file mode 100644 index 0000000000..bc409dd130 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminNodeExecutionEventResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminNodeExecutionEventResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionEventResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py new file mode 100644 index 0000000000..413f218d98 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 + + +class AdminNodeExecutionGetDataResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'AdminUrlBlob', + 'outputs': 'AdminUrlBlob' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs' + } + + def __init__(self, inputs=None, outputs=None): # noqa: E501 + """AdminNodeExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + + @property + def inputs(self): + """Gets the inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of node execution inputs. # noqa: E501 + + :return: The inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminNodeExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of node execution inputs. # noqa: E501 + + :param inputs: The inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of node execution outputs. # noqa: E501 + + :return: The outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminNodeExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of node execution outputs. # noqa: E501 + + :param outputs: The outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionGetDataResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionGetDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py new file mode 100644 index 0000000000..8f23e8cd48 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution # noqa: F401,E501 + + +class AdminNodeExecutionList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_executions': 'list[FlyteidladminNodeExecution]', + 'token': 'str' + } + + attribute_map = { + 'node_executions': 'node_executions', + 'token': 'token' + } + + def __init__(self, node_executions=None, token=None): # noqa: E501 + """AdminNodeExecutionList - a model defined in Swagger""" # noqa: E501 + + self._node_executions = None + self._token = None + self.discriminator = None + + if node_executions is not None: + self.node_executions = node_executions + if token is not None: + self.token = token + + @property + def node_executions(self): + """Gets the node_executions of this AdminNodeExecutionList. # noqa: E501 + + + :return: The node_executions of this AdminNodeExecutionList. # noqa: E501 + :rtype: list[FlyteidladminNodeExecution] + """ + return self._node_executions + + @node_executions.setter + def node_executions(self, node_executions): + """Sets the node_executions of this AdminNodeExecutionList. + + + :param node_executions: The node_executions of this AdminNodeExecutionList. # noqa: E501 + :type: list[FlyteidladminNodeExecution] + """ + + self._node_executions = node_executions + + @property + def token(self): + """Gets the token of this AdminNodeExecutionList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminNodeExecutionList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminNodeExecutionList. + + 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. # noqa: E501 + + :param token: The token of this AdminNodeExecutionList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNodeExecutionList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNodeExecutionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py new file mode 100644 index 0000000000..cfd79f05ae --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_email_notification import AdminEmailNotification # noqa: F401,E501 +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification # noqa: F401,E501 +from flyteadmin.models.admin_slack_notification import AdminSlackNotification # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 + + +class AdminNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'phases': 'list[CoreWorkflowExecutionPhase]', + 'email': 'AdminEmailNotification', + 'pager_duty': 'AdminPagerDutyNotification', + 'slack': 'AdminSlackNotification' + } + + attribute_map = { + 'phases': 'phases', + 'email': 'email', + 'pager_duty': 'pager_duty', + 'slack': 'slack' + } + + def __init__(self, phases=None, email=None, pager_duty=None, slack=None): # noqa: E501 + """AdminNotification - a model defined in Swagger""" # noqa: E501 + + self._phases = None + self._email = None + self._pager_duty = None + self._slack = None + self.discriminator = None + + if phases is not None: + self.phases = phases + if email is not None: + self.email = email + if pager_duty is not None: + self.pager_duty = pager_duty + if slack is not None: + self.slack = slack + + @property + def phases(self): + """Gets the phases of this AdminNotification. # noqa: E501 + + A list of phases to which users can associate the notifications to. # noqa: E501 + + :return: The phases of this AdminNotification. # noqa: E501 + :rtype: list[CoreWorkflowExecutionPhase] + """ + return self._phases + + @phases.setter + def phases(self, phases): + """Sets the phases of this AdminNotification. + + A list of phases to which users can associate the notifications to. # noqa: E501 + + :param phases: The phases of this AdminNotification. # noqa: E501 + :type: list[CoreWorkflowExecutionPhase] + """ + + self._phases = phases + + @property + def email(self): + """Gets the email of this AdminNotification. # noqa: E501 + + + :return: The email of this AdminNotification. # noqa: E501 + :rtype: AdminEmailNotification + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this AdminNotification. + + + :param email: The email of this AdminNotification. # noqa: E501 + :type: AdminEmailNotification + """ + + self._email = email + + @property + def pager_duty(self): + """Gets the pager_duty of this AdminNotification. # noqa: E501 + + + :return: The pager_duty of this AdminNotification. # noqa: E501 + :rtype: AdminPagerDutyNotification + """ + return self._pager_duty + + @pager_duty.setter + def pager_duty(self, pager_duty): + """Sets the pager_duty of this AdminNotification. + + + :param pager_duty: The pager_duty of this AdminNotification. # noqa: E501 + :type: AdminPagerDutyNotification + """ + + self._pager_duty = pager_duty + + @property + def slack(self): + """Gets the slack of this AdminNotification. # noqa: E501 + + + :return: The slack of this AdminNotification. # noqa: E501 + :rtype: AdminSlackNotification + """ + return self._slack + + @slack.setter + def slack(self, slack): + """Sets the slack of this AdminNotification. + + + :param slack: The slack of this AdminNotification. # noqa: E501 + :type: AdminSlackNotification + """ + + self._slack = slack + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py new file mode 100644 index 0000000000..200a0b1fee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 + + +class AdminNotificationList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'notifications': 'list[AdminNotification]' + } + + attribute_map = { + 'notifications': 'notifications' + } + + def __init__(self, notifications=None): # noqa: E501 + """AdminNotificationList - a model defined in Swagger""" # noqa: E501 + + self._notifications = None + self.discriminator = None + + if notifications is not None: + self.notifications = notifications + + @property + def notifications(self): + """Gets the notifications of this AdminNotificationList. # noqa: E501 + + + :return: The notifications of this AdminNotificationList. # noqa: E501 + :rtype: list[AdminNotification] + """ + return self._notifications + + @notifications.setter + def notifications(self, notifications): + """Sets the notifications of this AdminNotificationList. + + + :param notifications: The notifications of this AdminNotificationList. # noqa: E501 + :type: list[AdminNotification] + """ + + self._notifications = notifications + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminNotificationList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminNotificationList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py new file mode 100644 index 0000000000..9320d99871 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminPagerDutyNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'recipients_email': 'list[str]' + } + + attribute_map = { + 'recipients_email': 'recipients_email' + } + + def __init__(self, recipients_email=None): # noqa: E501 + """AdminPagerDutyNotification - a model defined in Swagger""" # noqa: E501 + + self._recipients_email = None + self.discriminator = None + + if recipients_email is not None: + self.recipients_email = recipients_email + + @property + def recipients_email(self): + """Gets the recipients_email of this AdminPagerDutyNotification. # noqa: E501 + + Currently, PagerDuty notifications leverage email to trigger a notification. # noqa: E501 + + :return: The recipients_email of this AdminPagerDutyNotification. # noqa: E501 + :rtype: list[str] + """ + return self._recipients_email + + @recipients_email.setter + def recipients_email(self, recipients_email): + """Sets the recipients_email of this AdminPagerDutyNotification. + + Currently, PagerDuty notifications leverage email to trigger a notification. # noqa: E501 + + :param recipients_email: The recipients_email of this AdminPagerDutyNotification. # noqa: E501 + :type: list[str] + """ + + self._recipients_email = recipients_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminPagerDutyNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminPagerDutyNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py new file mode 100644 index 0000000000..fef06e2153 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_domain import AdminDomain # noqa: F401,E501 + + +class AdminProject(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'domains': 'list[AdminDomain]' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'domains': 'domains' + } + + def __init__(self, id=None, name=None, domains=None): # noqa: E501 + """AdminProject - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._domains = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if domains is not None: + self.domains = domains + + @property + def id(self): + """Gets the id of this AdminProject. # noqa: E501 + + + :return: The id of this AdminProject. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminProject. + + + :param id: The id of this AdminProject. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this AdminProject. # noqa: E501 + + Display name. # noqa: E501 + + :return: The name of this AdminProject. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this AdminProject. + + Display name. # noqa: E501 + + :param name: The name of this AdminProject. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def domains(self): + """Gets the domains of this AdminProject. # noqa: E501 + + + :return: The domains of this AdminProject. # noqa: E501 + :rtype: list[AdminDomain] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this AdminProject. + + + :param domains: The domains of this AdminProject. # noqa: E501 + :type: list[AdminDomain] + """ + + self._domains = domains + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProject, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py new file mode 100644 index 0000000000..bbc2a0d94c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project import AdminProject # noqa: F401,E501 + + +class AdminProjectRegisterRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'AdminProject' + } + + attribute_map = { + 'project': 'project' + } + + def __init__(self, project=None): # noqa: E501 + """AdminProjectRegisterRequest - a model defined in Swagger""" # noqa: E501 + + self._project = None + self.discriminator = None + + if project is not None: + self.project = project + + @property + def project(self): + """Gets the project of this AdminProjectRegisterRequest. # noqa: E501 + + + :return: The project of this AdminProjectRegisterRequest. # noqa: E501 + :rtype: AdminProject + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this AdminProjectRegisterRequest. + + + :param project: The project of this AdminProjectRegisterRequest. # noqa: E501 + :type: AdminProject + """ + + self._project = project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectRegisterRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectRegisterRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py new file mode 100644 index 0000000000..e6868b0516 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminProjectRegisterResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminProjectRegisterResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjectRegisterResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjectRegisterResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py new file mode 100644 index 0000000000..ca0171b285 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_project import AdminProject # noqa: F401,E501 + + +class AdminProjects(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'projects': 'list[AdminProject]' + } + + attribute_map = { + 'projects': 'projects' + } + + def __init__(self, projects=None): # noqa: E501 + """AdminProjects - a model defined in Swagger""" # noqa: E501 + + self._projects = None + self.discriminator = None + + if projects is not None: + self.projects = projects + + @property + def projects(self): + """Gets the projects of this AdminProjects. # noqa: E501 + + + :return: The projects of this AdminProjects. # noqa: E501 + :rtype: list[AdminProject] + """ + return self._projects + + @projects.setter + def projects(self, projects): + """Sets the projects of this AdminProjects. + + + :param projects: The projects of this AdminProjects. # noqa: E501 + :type: list[AdminProject] + """ + + self._projects = projects + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminProjects, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminProjects): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py new file mode 100644 index 0000000000..3ee7cee02b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_fixed_rate import AdminFixedRate # noqa: F401,E501 + + +class AdminSchedule(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cron_expression': 'str', + 'rate': 'AdminFixedRate', + 'kickoff_time_input_arg': 'str' + } + + attribute_map = { + 'cron_expression': 'cron_expression', + 'rate': 'rate', + 'kickoff_time_input_arg': 'kickoff_time_input_arg' + } + + def __init__(self, cron_expression=None, rate=None, kickoff_time_input_arg=None): # noqa: E501 + """AdminSchedule - a model defined in Swagger""" # noqa: E501 + + self._cron_expression = None + self._rate = None + self._kickoff_time_input_arg = None + self.discriminator = None + + if cron_expression is not None: + self.cron_expression = cron_expression + if rate is not None: + self.rate = rate + if kickoff_time_input_arg is not None: + self.kickoff_time_input_arg = kickoff_time_input_arg + + @property + def cron_expression(self): + """Gets the cron_expression of this AdminSchedule. # noqa: E501 + + + :return: The cron_expression of this AdminSchedule. # noqa: E501 + :rtype: str + """ + return self._cron_expression + + @cron_expression.setter + def cron_expression(self, cron_expression): + """Sets the cron_expression of this AdminSchedule. + + + :param cron_expression: The cron_expression of this AdminSchedule. # noqa: E501 + :type: str + """ + + self._cron_expression = cron_expression + + @property + def rate(self): + """Gets the rate of this AdminSchedule. # noqa: E501 + + + :return: The rate of this AdminSchedule. # noqa: E501 + :rtype: AdminFixedRate + """ + return self._rate + + @rate.setter + def rate(self, rate): + """Sets the rate of this AdminSchedule. + + + :param rate: The rate of this AdminSchedule. # noqa: E501 + :type: AdminFixedRate + """ + + self._rate = rate + + @property + def kickoff_time_input_arg(self): + """Gets the kickoff_time_input_arg of this AdminSchedule. # noqa: E501 + + Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. # noqa: E501 + + :return: The kickoff_time_input_arg of this AdminSchedule. # noqa: E501 + :rtype: str + """ + return self._kickoff_time_input_arg + + @kickoff_time_input_arg.setter + def kickoff_time_input_arg(self, kickoff_time_input_arg): + """Sets the kickoff_time_input_arg of this AdminSchedule. + + Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. # noqa: E501 + + :param kickoff_time_input_arg: The kickoff_time_input_arg of this AdminSchedule. # noqa: E501 + :type: str + """ + + self._kickoff_time_input_arg = kickoff_time_input_arg + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSchedule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSchedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py new file mode 100644 index 0000000000..e60174b85f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminSlackNotification(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'recipients_email': 'list[str]' + } + + attribute_map = { + 'recipients_email': 'recipients_email' + } + + def __init__(self, recipients_email=None): # noqa: E501 + """AdminSlackNotification - a model defined in Swagger""" # noqa: E501 + + self._recipients_email = None + self.discriminator = None + + if recipients_email is not None: + self.recipients_email = recipients_email + + @property + def recipients_email(self): + """Gets the recipients_email of this AdminSlackNotification. # noqa: E501 + + Currently, Slack notifications leverage email to trigger a notification. # noqa: E501 + + :return: The recipients_email of this AdminSlackNotification. # noqa: E501 + :rtype: list[str] + """ + return self._recipients_email + + @recipients_email.setter + def recipients_email(self, recipients_email): + """Sets the recipients_email of this AdminSlackNotification. + + Currently, Slack notifications leverage email to trigger a notification. # noqa: E501 + + :param recipients_email: The recipients_email of this AdminSlackNotification. # noqa: E501 + :type: list[str] + """ + + self._recipients_email = recipients_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSlackNotification, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSlackNotification): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py new file mode 100644 index 0000000000..0d4a94a14a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.sort_direction import SortDirection # noqa: F401,E501 + + +class AdminSort(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'direction': 'SortDirection' + } + + attribute_map = { + 'key': 'key', + 'direction': 'direction' + } + + def __init__(self, key=None, direction=None): # noqa: E501 + """AdminSort - a model defined in Swagger""" # noqa: E501 + + self._key = None + self._direction = None + self.discriminator = None + + if key is not None: + self.key = key + if direction is not None: + self.direction = direction + + @property + def key(self): + """Gets the key of this AdminSort. # noqa: E501 + + Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. # noqa: E501 + + :return: The key of this AdminSort. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this AdminSort. + + Indicates an attribute to sort the response values. TODO(katrogan): Add string validation here. This should never be empty. # noqa: E501 + + :param key: The key of this AdminSort. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def direction(self): + """Gets the direction of this AdminSort. # noqa: E501 + + + :return: The direction of this AdminSort. # noqa: E501 + :rtype: SortDirection + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this AdminSort. + + + :param direction: The direction of this AdminSort. # noqa: E501 + :type: SortDirection + """ + + self._direction = direction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminSort, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminSort): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py new file mode 100644 index 0000000000..cae8fe3e3c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_closure import AdminTaskClosure # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminTask(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'closure': 'AdminTaskClosure' + } + + attribute_map = { + 'id': 'id', + 'closure': 'closure' + } + + def __init__(self, id=None, closure=None): # noqa: E501 + """AdminTask - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this AdminTask. # noqa: E501 + + id represents the unique identifier of the task. # noqa: E501 + + :return: The id of this AdminTask. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminTask. + + id represents the unique identifier of the task. # noqa: E501 + + :param id: The id of this AdminTask. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def closure(self): + """Gets the closure of this AdminTask. # noqa: E501 + + closure encapsulates all the fields that maps to a compiled version of the task. # noqa: E501 + + :return: The closure of this AdminTask. # noqa: E501 + :rtype: AdminTaskClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminTask. + + closure encapsulates all the fields that maps to a compiled version of the task. # noqa: E501 + + :param closure: The closure of this AdminTask. # noqa: E501 + :type: AdminTaskClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTask, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTask): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py new file mode 100644 index 0000000000..d43a096309 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: F401,E501 + + +class AdminTaskClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'compiled_task': 'CoreCompiledTask', + 'created_at': 'datetime' + } + + attribute_map = { + 'compiled_task': 'compiled_task', + 'created_at': 'created_at' + } + + def __init__(self, compiled_task=None, created_at=None): # noqa: E501 + """AdminTaskClosure - a model defined in Swagger""" # noqa: E501 + + self._compiled_task = None + self._created_at = None + self.discriminator = None + + if compiled_task is not None: + self.compiled_task = compiled_task + if created_at is not None: + self.created_at = created_at + + @property + def compiled_task(self): + """Gets the compiled_task of this AdminTaskClosure. # noqa: E501 + + Represents the compiled representation of the task from the specification provided. # noqa: E501 + + :return: The compiled_task of this AdminTaskClosure. # noqa: E501 + :rtype: CoreCompiledTask + """ + return self._compiled_task + + @compiled_task.setter + def compiled_task(self, compiled_task): + """Sets the compiled_task of this AdminTaskClosure. + + Represents the compiled representation of the task from the specification provided. # noqa: E501 + + :param compiled_task: The compiled_task of this AdminTaskClosure. # noqa: E501 + :type: CoreCompiledTask + """ + + self._compiled_task = compiled_task + + @property + def created_at(self): + """Gets the created_at of this AdminTaskClosure. # noqa: E501 + + Time at which the task was created. # noqa: E501 + + :return: The created_at of this AdminTaskClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminTaskClosure. + + Time at which the task was created. # noqa: E501 + + :param created_at: The created_at of this AdminTaskClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_request.py new file mode 100644 index 0000000000..b4ae024c63 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_request.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_spec import AdminTaskSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminTaskCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminTaskSpec' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec' + } + + def __init__(self, id=None, spec=None): # noqa: E501 + """AdminTaskCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + + @property + def id(self): + """Gets the id of this AdminTaskCreateRequest. # noqa: E501 + + id represents the unique identifier of the task. # noqa: E501 + + :return: The id of this AdminTaskCreateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminTaskCreateRequest. + + id represents the unique identifier of the task. # noqa: E501 + + :param id: The id of this AdminTaskCreateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminTaskCreateRequest. # noqa: E501 + + Represents the specification for task. # noqa: E501 + + :return: The spec of this AdminTaskCreateRequest. # noqa: E501 + :rtype: AdminTaskSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminTaskCreateRequest. + + Represents the specification for task. # noqa: E501 + + :param spec: The spec of this AdminTaskCreateRequest. # noqa: E501 + :type: AdminTaskSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_response.py new file mode 100644 index 0000000000..de1ecdf4d9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_create_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminTaskCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminTaskCreateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py new file mode 100644 index 0000000000..7e79574b7a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py @@ -0,0 +1,346 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class AdminTaskExecutionClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'phase': 'CoreTaskExecutionPhase', + 'logs': 'list[CoreTaskLog]', + 'started_at': 'datetime', + 'duration': 'str', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'custom_info': 'ProtobufStruct' + } + + attribute_map = { + 'output_uri': 'output_uri', + 'error': 'error', + 'phase': 'phase', + 'logs': 'logs', + 'started_at': 'started_at', + 'duration': 'duration', + 'created_at': 'created_at', + 'updated_at': 'updated_at', + 'custom_info': 'custom_info' + } + + def __init__(self, output_uri=None, error=None, phase=None, logs=None, started_at=None, duration=None, created_at=None, updated_at=None, custom_info=None): # noqa: E501 + """AdminTaskExecutionClosure - a model defined in Swagger""" # noqa: E501 + + self._output_uri = None + self._error = None + self._phase = None + self._logs = None + self._started_at = None + self._duration = None + self._created_at = None + self._updated_at = None + self._custom_info = None + self.discriminator = None + + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if phase is not None: + self.phase = phase + if logs is not None: + self.logs = logs + if started_at is not None: + self.started_at = started_at + if duration is not None: + self.duration = duration + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if custom_info is not None: + self.custom_info = custom_info + + @property + def output_uri(self): + """Gets the output_uri of this AdminTaskExecutionClosure. # noqa: E501 + + Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). # noqa: E501 + + :return: The output_uri of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this AdminTaskExecutionClosure. + + Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). # noqa: E501 + + :param output_uri: The output_uri of this AdminTaskExecutionClosure. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this AdminTaskExecutionClosure. # noqa: E501 + + Error information for the task execution. Populated if the execution failed. # noqa: E501 + + :return: The error of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this AdminTaskExecutionClosure. + + Error information for the task execution. Populated if the execution failed. # noqa: E501 + + :param error: The error of this AdminTaskExecutionClosure. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def phase(self): + """Gets the phase of this AdminTaskExecutionClosure. # noqa: E501 + + The last recorded phase for this task execution. # noqa: E501 + + :return: The phase of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: CoreTaskExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this AdminTaskExecutionClosure. + + The last recorded phase for this task execution. # noqa: E501 + + :param phase: The phase of this AdminTaskExecutionClosure. # noqa: E501 + :type: CoreTaskExecutionPhase + """ + + self._phase = phase + + @property + def logs(self): + """Gets the logs of this AdminTaskExecutionClosure. # noqa: E501 + + Detailed log information output by the task execution. # noqa: E501 + + :return: The logs of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: list[CoreTaskLog] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this AdminTaskExecutionClosure. + + Detailed log information output by the task execution. # noqa: E501 + + :param logs: The logs of this AdminTaskExecutionClosure. # noqa: E501 + :type: list[CoreTaskLog] + """ + + self._logs = logs + + @property + def started_at(self): + """Gets the started_at of this AdminTaskExecutionClosure. # noqa: E501 + + Time at which the task execution began running. # noqa: E501 + + :return: The started_at of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._started_at + + @started_at.setter + def started_at(self, started_at): + """Sets the started_at of this AdminTaskExecutionClosure. + + Time at which the task execution began running. # noqa: E501 + + :param started_at: The started_at of this AdminTaskExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._started_at = started_at + + @property + def duration(self): + """Gets the duration of this AdminTaskExecutionClosure. # noqa: E501 + + The amount of time the task execution spent running. # noqa: E501 + + :return: The duration of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this AdminTaskExecutionClosure. + + The amount of time the task execution spent running. # noqa: E501 + + :param duration: The duration of this AdminTaskExecutionClosure. # noqa: E501 + :type: str + """ + + self._duration = duration + + @property + def created_at(self): + """Gets the created_at of this AdminTaskExecutionClosure. # noqa: E501 + + Time at which the task execution was created. # noqa: E501 + + :return: The created_at of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminTaskExecutionClosure. + + Time at which the task execution was created. # noqa: E501 + + :param created_at: The created_at of this AdminTaskExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this AdminTaskExecutionClosure. # noqa: E501 + + Time at which the task execution was last updated. # noqa: E501 + + :return: The updated_at of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this AdminTaskExecutionClosure. + + Time at which the task execution was last updated. # noqa: E501 + + :param updated_at: The updated_at of this AdminTaskExecutionClosure. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def custom_info(self): + """Gets the custom_info of this AdminTaskExecutionClosure. # noqa: E501 + + Custom data specific to the task plugin. # noqa: E501 + + :return: The custom_info of this AdminTaskExecutionClosure. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._custom_info + + @custom_info.setter + def custom_info(self, custom_info): + """Sets the custom_info of this AdminTaskExecutionClosure. + + Custom data specific to the task plugin. # noqa: E501 + + :param custom_info: The custom_info of this AdminTaskExecutionClosure. # noqa: E501 + :type: ProtobufStruct + """ + + self._custom_info = custom_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py new file mode 100644 index 0000000000..d8d650d41d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent # noqa: F401,E501 + + +class AdminTaskExecutionEventRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'request_id': 'str', + 'event': 'EventTaskExecutionEvent' + } + + attribute_map = { + 'request_id': 'request_id', + 'event': 'event' + } + + def __init__(self, request_id=None, event=None): # noqa: E501 + """AdminTaskExecutionEventRequest - a model defined in Swagger""" # noqa: E501 + + self._request_id = None + self._event = None + self.discriminator = None + + if request_id is not None: + self.request_id = request_id + if event is not None: + self.event = event + + @property + def request_id(self): + """Gets the request_id of this AdminTaskExecutionEventRequest. # noqa: E501 + + + :return: The request_id of this AdminTaskExecutionEventRequest. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this AdminTaskExecutionEventRequest. + + + :param request_id: The request_id of this AdminTaskExecutionEventRequest. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def event(self): + """Gets the event of this AdminTaskExecutionEventRequest. # noqa: E501 + + Details about the event that occurred. # noqa: E501 + + :return: The event of this AdminTaskExecutionEventRequest. # noqa: E501 + :rtype: EventTaskExecutionEvent + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this AdminTaskExecutionEventRequest. + + Details about the event that occurred. # noqa: E501 + + :param event: The event of this AdminTaskExecutionEventRequest. # noqa: E501 + :type: EventTaskExecutionEvent + """ + + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionEventRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py new file mode 100644 index 0000000000..9e8bd3882a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminTaskExecutionEventResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminTaskExecutionEventResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionEventResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py new file mode 100644 index 0000000000..7646ebc072 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 + + +class AdminTaskExecutionGetDataResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'AdminUrlBlob', + 'outputs': 'AdminUrlBlob' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs' + } + + def __init__(self, inputs=None, outputs=None): # noqa: E501 + """AdminTaskExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + + @property + def inputs(self): + """Gets the inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of task execution inputs. # noqa: E501 + + :return: The inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this AdminTaskExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of task execution inputs. # noqa: E501 + + :param inputs: The inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of task execution outputs. # noqa: E501 + + :return: The outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminTaskExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of task execution outputs. # noqa: E501 + + :param outputs: The outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionGetDataResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionGetDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py new file mode 100644 index 0000000000..4c3a8e7c1d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution # noqa: F401,E501 + + +class AdminTaskExecutionList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_executions': 'list[FlyteidladminTaskExecution]', + 'token': 'str' + } + + attribute_map = { + 'task_executions': 'task_executions', + 'token': 'token' + } + + def __init__(self, task_executions=None, token=None): # noqa: E501 + """AdminTaskExecutionList - a model defined in Swagger""" # noqa: E501 + + self._task_executions = None + self._token = None + self.discriminator = None + + if task_executions is not None: + self.task_executions = task_executions + if token is not None: + self.token = token + + @property + def task_executions(self): + """Gets the task_executions of this AdminTaskExecutionList. # noqa: E501 + + + :return: The task_executions of this AdminTaskExecutionList. # noqa: E501 + :rtype: list[FlyteidladminTaskExecution] + """ + return self._task_executions + + @task_executions.setter + def task_executions(self, task_executions): + """Sets the task_executions of this AdminTaskExecutionList. + + + :param task_executions: The task_executions of this AdminTaskExecutionList. # noqa: E501 + :type: list[FlyteidladminTaskExecution] + """ + + self._task_executions = task_executions + + @property + def token(self): + """Gets the token of this AdminTaskExecutionList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminTaskExecutionList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminTaskExecutionList. + + 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. # noqa: E501 + + :param token: The token of this AdminTaskExecutionList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskExecutionList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskExecutionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py new file mode 100644 index 0000000000..ea9212b92b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task import AdminTask # noqa: F401,E501 + + +class AdminTaskList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tasks': 'list[AdminTask]', + 'token': 'str' + } + + attribute_map = { + 'tasks': 'tasks', + 'token': 'token' + } + + def __init__(self, tasks=None, token=None): # noqa: E501 + """AdminTaskList - a model defined in Swagger""" # noqa: E501 + + self._tasks = None + self._token = None + self.discriminator = None + + if tasks is not None: + self.tasks = tasks + if token is not None: + self.token = token + + @property + def tasks(self): + """Gets the tasks of this AdminTaskList. # noqa: E501 + + A list of tasks returned based on the request. # noqa: E501 + + :return: The tasks of this AdminTaskList. # noqa: E501 + :rtype: list[AdminTask] + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this AdminTaskList. + + A list of tasks returned based on the request. # noqa: E501 + + :param tasks: The tasks of this AdminTaskList. # noqa: E501 + :type: list[AdminTask] + """ + + self._tasks = tasks + + @property + def token(self): + """Gets the token of this AdminTaskList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminTaskList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminTaskList. + + 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. # noqa: E501 + + :param token: The token of this AdminTaskList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py new file mode 100644 index 0000000000..b9fa4fddcf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: F401,E501 + + +class AdminTaskSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreTaskTemplate' + } + + attribute_map = { + 'template': 'template' + } + + def __init__(self, template=None): # noqa: E501 + """AdminTaskSpec - a model defined in Swagger""" # noqa: E501 + + self._template = None + self.discriminator = None + + if template is not None: + self.template = template + + @property + def template(self): + """Gets the template of this AdminTaskSpec. # noqa: E501 + + Template of the task that encapsulates all the metadata of the task. # noqa: E501 + + :return: The template of this AdminTaskSpec. # noqa: E501 + :rtype: CoreTaskTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this AdminTaskSpec. + + Template of the task that encapsulates all the metadata of the task. # noqa: E501 + + :param template: The template of this AdminTaskSpec. # noqa: E501 + :type: CoreTaskTemplate + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminTaskSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminTaskSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py new file mode 100644 index 0000000000..7d0bb6ef92 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminUrlBlob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'url': 'str', + 'bytes': 'str' + } + + attribute_map = { + 'url': 'url', + 'bytes': 'bytes' + } + + def __init__(self, url=None, bytes=None): # noqa: E501 + """AdminUrlBlob - a model defined in Swagger""" # noqa: E501 + + self._url = None + self._bytes = None + self.discriminator = None + + if url is not None: + self.url = url + if bytes is not None: + self.bytes = bytes + + @property + def url(self): + """Gets the url of this AdminUrlBlob. # noqa: E501 + + Actual url value. # noqa: E501 + + :return: The url of this AdminUrlBlob. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this AdminUrlBlob. + + Actual url value. # noqa: E501 + + :param url: The url of this AdminUrlBlob. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def bytes(self): + """Gets the bytes of this AdminUrlBlob. # noqa: E501 + + Represents the size of the file accessible at the above url. # noqa: E501 + + :return: The bytes of this AdminUrlBlob. # noqa: E501 + :rtype: str + """ + return self._bytes + + @bytes.setter + def bytes(self, bytes): + """Sets the bytes of this AdminUrlBlob. + + Represents the size of the file accessible at the above url. # noqa: E501 + + :param bytes: The bytes of this AdminUrlBlob. # noqa: E501 + :type: str + """ + + self._bytes = bytes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminUrlBlob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminUrlBlob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py new file mode 100644 index 0000000000..244e9cda0c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminWorkflow(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'closure': 'AdminWorkflowClosure' + } + + attribute_map = { + 'id': 'id', + 'closure': 'closure' + } + + def __init__(self, id=None, closure=None): # noqa: E501 + """AdminWorkflow - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this AdminWorkflow. # noqa: E501 + + id represents the unique identifier of the workflow. # noqa: E501 + + :return: The id of this AdminWorkflow. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminWorkflow. + + id represents the unique identifier of the workflow. # noqa: E501 + + :param id: The id of this AdminWorkflow. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def closure(self): + """Gets the closure of this AdminWorkflow. # noqa: E501 + + closure encapsulates all the fields that maps to a compiled version of the workflow. # noqa: E501 + + :return: The closure of this AdminWorkflow. # noqa: E501 + :rtype: AdminWorkflowClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this AdminWorkflow. + + closure encapsulates all the fields that maps to a compiled version of the workflow. # noqa: E501 + + :param closure: The closure of this AdminWorkflow. # noqa: E501 + :type: AdminWorkflowClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflow, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py new file mode 100644 index 0000000000..41b674b65e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 + + +class AdminWorkflowClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'compiled_workflow': 'CoreCompiledWorkflowClosure', + 'created_at': 'datetime' + } + + attribute_map = { + 'compiled_workflow': 'compiled_workflow', + 'created_at': 'created_at' + } + + def __init__(self, compiled_workflow=None, created_at=None): # noqa: E501 + """AdminWorkflowClosure - a model defined in Swagger""" # noqa: E501 + + self._compiled_workflow = None + self._created_at = None + self.discriminator = None + + if compiled_workflow is not None: + self.compiled_workflow = compiled_workflow + if created_at is not None: + self.created_at = created_at + + @property + def compiled_workflow(self): + """Gets the compiled_workflow of this AdminWorkflowClosure. # noqa: E501 + + Represents the compiled representation of the workflow from the specification provided. # noqa: E501 + + :return: The compiled_workflow of this AdminWorkflowClosure. # noqa: E501 + :rtype: CoreCompiledWorkflowClosure + """ + return self._compiled_workflow + + @compiled_workflow.setter + def compiled_workflow(self, compiled_workflow): + """Sets the compiled_workflow of this AdminWorkflowClosure. + + Represents the compiled representation of the workflow from the specification provided. # noqa: E501 + + :param compiled_workflow: The compiled_workflow of this AdminWorkflowClosure. # noqa: E501 + :type: CoreCompiledWorkflowClosure + """ + + self._compiled_workflow = compiled_workflow + + @property + def created_at(self): + """Gets the created_at of this AdminWorkflowClosure. # noqa: E501 + + Time at which the workflow was created. # noqa: E501 + + :return: The created_at of this AdminWorkflowClosure. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this AdminWorkflowClosure. + + Time at which the workflow was created. # noqa: E501 + + :param created_at: The created_at of this AdminWorkflowClosure. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py new file mode 100644 index 0000000000..c3afefd1b9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class AdminWorkflowCreateRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'spec': 'AdminWorkflowSpec' + } + + attribute_map = { + 'id': 'id', + 'spec': 'spec' + } + + def __init__(self, id=None, spec=None): # noqa: E501 + """AdminWorkflowCreateRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._spec = None + self.discriminator = None + + if id is not None: + self.id = id + if spec is not None: + self.spec = spec + + @property + def id(self): + """Gets the id of this AdminWorkflowCreateRequest. # noqa: E501 + + id represents the unique identifier of the workflow. # noqa: E501 + + :return: The id of this AdminWorkflowCreateRequest. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AdminWorkflowCreateRequest. + + id represents the unique identifier of the workflow. # noqa: E501 + + :param id: The id of this AdminWorkflowCreateRequest. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def spec(self): + """Gets the spec of this AdminWorkflowCreateRequest. # noqa: E501 + + Represents the specification for workflow. # noqa: E501 + + :return: The spec of this AdminWorkflowCreateRequest. # noqa: E501 + :rtype: AdminWorkflowSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """Sets the spec of this AdminWorkflowCreateRequest. + + Represents the specification for workflow. # noqa: E501 + + :param spec: The spec of this AdminWorkflowCreateRequest. # noqa: E501 + :type: AdminWorkflowSpec + """ + + self._spec = spec + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowCreateRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowCreateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py new file mode 100644 index 0000000000..63dfaa0329 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminWorkflowCreateResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminWorkflowCreateResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowCreateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowCreateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py new file mode 100644 index 0000000000..5b49fb3631 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent # noqa: F401,E501 + + +class AdminWorkflowExecutionEventRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'request_id': 'str', + 'event': 'EventWorkflowExecutionEvent' + } + + attribute_map = { + 'request_id': 'request_id', + 'event': 'event' + } + + def __init__(self, request_id=None, event=None): # noqa: E501 + """AdminWorkflowExecutionEventRequest - a model defined in Swagger""" # noqa: E501 + + self._request_id = None + self._event = None + self.discriminator = None + + if request_id is not None: + self.request_id = request_id + if event is not None: + self.event = event + + @property + def request_id(self): + """Gets the request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 + + + :return: The request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this AdminWorkflowExecutionEventRequest. + + + :param request_id: The request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def event(self): + """Gets the event of this AdminWorkflowExecutionEventRequest. # noqa: E501 + + Details about the event that occurred. # noqa: E501 + + :return: The event of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :rtype: EventWorkflowExecutionEvent + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this AdminWorkflowExecutionEventRequest. + + Details about the event that occurred. # noqa: E501 + + :param event: The event of this AdminWorkflowExecutionEventRequest. # noqa: E501 + :type: EventWorkflowExecutionEvent + """ + + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionEventRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionEventRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py new file mode 100644 index 0000000000..e4ddc78b69 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class AdminWorkflowExecutionEventResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """AdminWorkflowExecutionEventResponse - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionEventResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionEventResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py new file mode 100644 index 0000000000..9588de881f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 + + +class AdminWorkflowExecutionGetDataResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'outputs': 'AdminUrlBlob' + } + + attribute_map = { + 'outputs': 'outputs' + } + + def __init__(self, outputs=None): # noqa: E501 + """AdminWorkflowExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 + + self._outputs = None + self.discriminator = None + + if outputs is not None: + self.outputs = outputs + + @property + def outputs(self): + """Gets the outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + + Signed url to fetch a core.LiteralMap of execution outputs. # noqa: E501 + + :return: The outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :rtype: AdminUrlBlob + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this AdminWorkflowExecutionGetDataResponse. + + Signed url to fetch a core.LiteralMap of execution outputs. # noqa: E501 + + :param outputs: The outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 + :type: AdminUrlBlob + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowExecutionGetDataResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowExecutionGetDataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py new file mode 100644 index 0000000000..65fe9fb331 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_workflow import AdminWorkflow # noqa: F401,E501 + + +class AdminWorkflowList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'workflows': 'list[AdminWorkflow]', + 'token': 'str' + } + + attribute_map = { + 'workflows': 'workflows', + 'token': 'token' + } + + def __init__(self, workflows=None, token=None): # noqa: E501 + """AdminWorkflowList - a model defined in Swagger""" # noqa: E501 + + self._workflows = None + self._token = None + self.discriminator = None + + if workflows is not None: + self.workflows = workflows + if token is not None: + self.token = token + + @property + def workflows(self): + """Gets the workflows of this AdminWorkflowList. # noqa: E501 + + A list of workflows returned based on the request. # noqa: E501 + + :return: The workflows of this AdminWorkflowList. # noqa: E501 + :rtype: list[AdminWorkflow] + """ + return self._workflows + + @workflows.setter + def workflows(self, workflows): + """Sets the workflows of this AdminWorkflowList. + + A list of workflows returned based on the request. # noqa: E501 + + :param workflows: The workflows of this AdminWorkflowList. # noqa: E501 + :type: list[AdminWorkflow] + """ + + self._workflows = workflows + + @property + def token(self): + """Gets the token of this AdminWorkflowList. # noqa: E501 + + 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. # noqa: E501 + + :return: The token of this AdminWorkflowList. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this AdminWorkflowList. + + 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. # noqa: E501 + + :param token: The token of this AdminWorkflowList. # noqa: E501 + :type: str + """ + + self._token = token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py new file mode 100644 index 0000000000..5860c9ae54 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: F401,E501 + + +class AdminWorkflowSpec(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreWorkflowTemplate' + } + + attribute_map = { + 'template': 'template' + } + + def __init__(self, template=None): # noqa: E501 + """AdminWorkflowSpec - a model defined in Swagger""" # noqa: E501 + + self._template = None + self.discriminator = None + + if template is not None: + self.template = template + + @property + def template(self): + """Gets the template of this AdminWorkflowSpec. # noqa: E501 + + Template of the task that encapsulates all the metadata of the workflow. # noqa: E501 + + :return: The template of this AdminWorkflowSpec. # noqa: E501 + :rtype: CoreWorkflowTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this AdminWorkflowSpec. + + Template of the task that encapsulates all the metadata of the workflow. # noqa: E501 + + :param template: The template of this AdminWorkflowSpec. # noqa: E501 + :type: CoreWorkflowTemplate + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AdminWorkflowSpec, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AdminWorkflowSpec): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py new file mode 100644 index 0000000000..94a5d768f7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlobTypeBlobDimensionality(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + SINGLE = "SINGLE" + MULTIPART = "MULTIPART" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """BlobTypeBlobDimensionality - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BlobTypeBlobDimensionality, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlobTypeBlobDimensionality): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py new file mode 100644 index 0000000000..b141515185 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ComparisonExpressionOperator(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + EQ = "EQ" + NEQ = "NEQ" + GT = "GT" + GTE = "GTE" + LT = "LT" + LTE = "LTE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ComparisonExpressionOperator - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ComparisonExpressionOperator, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComparisonExpressionOperator): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py new file mode 100644 index 0000000000..95bbfe7148 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConjunctionExpressionLogicalOperator(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + AND = "AND" + OR = "OR" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ConjunctionExpressionLogicalOperator - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConjunctionExpressionLogicalOperator, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConjunctionExpressionLogicalOperator): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py new file mode 100644 index 0000000000..75c0232481 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConnectionSetIdList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ids': 'list[str]' + } + + attribute_map = { + 'ids': 'ids' + } + + def __init__(self, ids=None): # noqa: E501 + """ConnectionSetIdList - a model defined in Swagger""" # noqa: E501 + + self._ids = None + self.discriminator = None + + if ids is not None: + self.ids = ids + + @property + def ids(self): + """Gets the ids of this ConnectionSetIdList. # noqa: E501 + + + :return: The ids of this ConnectionSetIdList. # noqa: E501 + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this ConnectionSetIdList. + + + :param ids: The ids of this ConnectionSetIdList. # noqa: E501 + :type: list[str] + """ + + self._ids = ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConnectionSetIdList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConnectionSetIdList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py new file mode 100644 index 0000000000..e838fed4ee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreAlias(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'var': 'str', + 'alias': 'str' + } + + attribute_map = { + 'var': 'var', + 'alias': 'alias' + } + + def __init__(self, var=None, alias=None): # noqa: E501 + """CoreAlias - a model defined in Swagger""" # noqa: E501 + + self._var = None + self._alias = None + self.discriminator = None + + if var is not None: + self.var = var + if alias is not None: + self.alias = alias + + @property + def var(self): + """Gets the var of this CoreAlias. # noqa: E501 + + Must match one of the output variable names on a node. # noqa: E501 + + :return: The var of this CoreAlias. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreAlias. + + Must match one of the output variable names on a node. # noqa: E501 + + :param var: The var of this CoreAlias. # noqa: E501 + :type: str + """ + + self._var = var + + @property + def alias(self): + """Gets the alias of this CoreAlias. # noqa: E501 + + A workflow-level unique alias that downstream nodes can refer to in their input. # noqa: E501 + + :return: The alias of this CoreAlias. # noqa: E501 + :rtype: str + """ + return self._alias + + @alias.setter + def alias(self, alias): + """Sets the alias of this CoreAlias. + + A workflow-level unique alias that downstream nodes can refer to in their input. # noqa: E501 + + :param alias: The alias of this CoreAlias. # noqa: E501 + :type: str + """ + + self._alias = alias + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreAlias, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreAlias): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py new file mode 100644 index 0000000000..3712928191 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreBinary(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'tag': 'str' + } + + attribute_map = { + 'value': 'value', + 'tag': 'tag' + } + + def __init__(self, value=None, tag=None): # noqa: E501 + """CoreBinary - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._tag = None + self.discriminator = None + + if value is not None: + self.value = value + if tag is not None: + self.tag = tag + + @property + def value(self): + """Gets the value of this CoreBinary. # noqa: E501 + + + :return: The value of this CoreBinary. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CoreBinary. + + + :param value: The value of this CoreBinary. # noqa: E501 + :type: str + """ + if value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value): # noqa: E501 + raise ValueError(r"Invalid value for `value`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 + + self._value = value + + @property + def tag(self): + """Gets the tag of this CoreBinary. # noqa: E501 + + + :return: The tag of this CoreBinary. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this CoreBinary. + + + :param tag: The tag of this CoreBinary. # noqa: E501 + :type: str + """ + + self._tag = tag + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBinary, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBinary): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py new file mode 100644 index 0000000000..e865a23dc7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 + + +class CoreBinding(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'var': 'str', + 'binding': 'CoreBindingData' + } + + attribute_map = { + 'var': 'var', + 'binding': 'binding' + } + + def __init__(self, var=None, binding=None): # noqa: E501 + """CoreBinding - a model defined in Swagger""" # noqa: E501 + + self._var = None + self._binding = None + self.discriminator = None + + if var is not None: + self.var = var + if binding is not None: + self.binding = binding + + @property + def var(self): + """Gets the var of this CoreBinding. # noqa: E501 + + Variable name must match an input/output variable of the node. # noqa: E501 + + :return: The var of this CoreBinding. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreBinding. + + Variable name must match an input/output variable of the node. # noqa: E501 + + :param var: The var of this CoreBinding. # noqa: E501 + :type: str + """ + + self._var = var + + @property + def binding(self): + """Gets the binding of this CoreBinding. # noqa: E501 + + Data to use to bind this variable. # noqa: E501 + + :return: The binding of this CoreBinding. # noqa: E501 + :rtype: CoreBindingData + """ + return self._binding + + @binding.setter + def binding(self, binding): + """Sets the binding of this CoreBinding. + + Data to use to bind this variable. # noqa: E501 + + :param binding: The binding of this CoreBinding. # noqa: E501 + :type: CoreBindingData + """ + + self._binding = binding + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBinding, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py new file mode 100644 index 0000000000..b0ff327062 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py @@ -0,0 +1,206 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection # noqa: F401,E501 +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap # noqa: F401,E501 +from flyteadmin.models.core_output_reference import CoreOutputReference # noqa: F401,E501 +from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 + + +class CoreBindingData(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scalar': 'CoreScalar', + 'collection': 'CoreBindingDataCollection', + 'promise': 'CoreOutputReference', + 'map': 'CoreBindingDataMap' + } + + attribute_map = { + 'scalar': 'scalar', + 'collection': 'collection', + 'promise': 'promise', + 'map': 'map' + } + + def __init__(self, scalar=None, collection=None, promise=None, map=None): # noqa: E501 + """CoreBindingData - a model defined in Swagger""" # noqa: E501 + + self._scalar = None + self._collection = None + self._promise = None + self._map = None + self.discriminator = None + + if scalar is not None: + self.scalar = scalar + if collection is not None: + self.collection = collection + if promise is not None: + self.promise = promise + if map is not None: + self.map = map + + @property + def scalar(self): + """Gets the scalar of this CoreBindingData. # noqa: E501 + + A simple scalar value. # noqa: E501 + + :return: The scalar of this CoreBindingData. # noqa: E501 + :rtype: CoreScalar + """ + return self._scalar + + @scalar.setter + def scalar(self, scalar): + """Sets the scalar of this CoreBindingData. + + A simple scalar value. # noqa: E501 + + :param scalar: The scalar of this CoreBindingData. # noqa: E501 + :type: CoreScalar + """ + + self._scalar = scalar + + @property + def collection(self): + """Gets the collection of this CoreBindingData. # noqa: E501 + + A collection of binding data. This allows nesting of binding data to any number of levels. # noqa: E501 + + :return: The collection of this CoreBindingData. # noqa: E501 + :rtype: CoreBindingDataCollection + """ + return self._collection + + @collection.setter + def collection(self, collection): + """Sets the collection of this CoreBindingData. + + A collection of binding data. This allows nesting of binding data to any number of levels. # noqa: E501 + + :param collection: The collection of this CoreBindingData. # noqa: E501 + :type: CoreBindingDataCollection + """ + + self._collection = collection + + @property + def promise(self): + """Gets the promise of this CoreBindingData. # noqa: E501 + + References an output promised by another node. # noqa: E501 + + :return: The promise of this CoreBindingData. # noqa: E501 + :rtype: CoreOutputReference + """ + return self._promise + + @promise.setter + def promise(self, promise): + """Sets the promise of this CoreBindingData. + + References an output promised by another node. # noqa: E501 + + :param promise: The promise of this CoreBindingData. # noqa: E501 + :type: CoreOutputReference + """ + + self._promise = promise + + @property + def map(self): + """Gets the map of this CoreBindingData. # noqa: E501 + + A map of bindings. The key is always a string. # noqa: E501 + + :return: The map of this CoreBindingData. # noqa: E501 + :rtype: CoreBindingDataMap + """ + return self._map + + @map.setter + def map(self, map): + """Sets the map of this CoreBindingData. + + A map of bindings. The key is always a string. # noqa: E501 + + :param map: The map of this CoreBindingData. # noqa: E501 + :type: CoreBindingDataMap + """ + + self._map = map + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBindingData, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBindingData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py new file mode 100644 index 0000000000..a2e765d7fa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 + + +class CoreBindingDataCollection(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bindings': 'list[CoreBindingData]' + } + + attribute_map = { + 'bindings': 'bindings' + } + + def __init__(self, bindings=None): # noqa: E501 + """CoreBindingDataCollection - a model defined in Swagger""" # noqa: E501 + + self._bindings = None + self.discriminator = None + + if bindings is not None: + self.bindings = bindings + + @property + def bindings(self): + """Gets the bindings of this CoreBindingDataCollection. # noqa: E501 + + + :return: The bindings of this CoreBindingDataCollection. # noqa: E501 + :rtype: list[CoreBindingData] + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this CoreBindingDataCollection. + + + :param bindings: The bindings of this CoreBindingDataCollection. # noqa: E501 + :type: list[CoreBindingData] + """ + + self._bindings = bindings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBindingDataCollection, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBindingDataCollection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py new file mode 100644 index 0000000000..d3d00d4044 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 + + +class CoreBindingDataMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'bindings': 'dict(str, CoreBindingData)' + } + + attribute_map = { + 'bindings': 'bindings' + } + + def __init__(self, bindings=None): # noqa: E501 + """CoreBindingDataMap - a model defined in Swagger""" # noqa: E501 + + self._bindings = None + self.discriminator = None + + if bindings is not None: + self.bindings = bindings + + @property + def bindings(self): + """Gets the bindings of this CoreBindingDataMap. # noqa: E501 + + + :return: The bindings of this CoreBindingDataMap. # noqa: E501 + :rtype: dict(str, CoreBindingData) + """ + return self._bindings + + @bindings.setter + def bindings(self, bindings): + """Sets the bindings of this CoreBindingDataMap. + + + :param bindings: The bindings of this CoreBindingDataMap. # noqa: E501 + :type: dict(str, CoreBindingData) + """ + + self._bindings = bindings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBindingDataMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBindingDataMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py new file mode 100644 index 0000000000..270ae7060e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata # noqa: F401,E501 + + +class CoreBlob(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'metadata': 'CoreBlobMetadata', + 'uri': 'str' + } + + attribute_map = { + 'metadata': 'metadata', + 'uri': 'uri' + } + + def __init__(self, metadata=None, uri=None): # noqa: E501 + """CoreBlob - a model defined in Swagger""" # noqa: E501 + + self._metadata = None + self._uri = None + self.discriminator = None + + if metadata is not None: + self.metadata = metadata + if uri is not None: + self.uri = uri + + @property + def metadata(self): + """Gets the metadata of this CoreBlob. # noqa: E501 + + + :return: The metadata of this CoreBlob. # noqa: E501 + :rtype: CoreBlobMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreBlob. + + + :param metadata: The metadata of this CoreBlob. # noqa: E501 + :type: CoreBlobMetadata + """ + + self._metadata = metadata + + @property + def uri(self): + """Gets the uri of this CoreBlob. # noqa: E501 + + + :return: The uri of this CoreBlob. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this CoreBlob. + + + :param uri: The uri of this CoreBlob. # noqa: E501 + :type: str + """ + + self._uri = uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBlob, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBlob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py new file mode 100644 index 0000000000..3a12b7f987 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_blob_type import CoreBlobType # noqa: F401,E501 + + +class CoreBlobMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'CoreBlobType' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): # noqa: E501 + """CoreBlobMetadata - a model defined in Swagger""" # noqa: E501 + + self._type = None + self.discriminator = None + + if type is not None: + self.type = type + + @property + def type(self): + """Gets the type of this CoreBlobMetadata. # noqa: E501 + + + :return: The type of this CoreBlobMetadata. # noqa: E501 + :rtype: CoreBlobType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreBlobMetadata. + + + :param type: The type of this CoreBlobMetadata. # noqa: E501 + :type: CoreBlobType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBlobMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBlobMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py new file mode 100644 index 0000000000..a81b58c44f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality # noqa: F401,E501 + + +class CoreBlobType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'format': 'str', + 'dimensionality': 'BlobTypeBlobDimensionality' + } + + attribute_map = { + 'format': 'format', + 'dimensionality': 'dimensionality' + } + + def __init__(self, format=None, dimensionality=None): # noqa: E501 + """CoreBlobType - a model defined in Swagger""" # noqa: E501 + + self._format = None + self._dimensionality = None + self.discriminator = None + + if format is not None: + self.format = format + if dimensionality is not None: + self.dimensionality = dimensionality + + @property + def format(self): + """Gets the format of this CoreBlobType. # noqa: E501 + + + :return: The format of this CoreBlobType. # noqa: E501 + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CoreBlobType. + + + :param format: The format of this CoreBlobType. # noqa: E501 + :type: str + """ + + self._format = format + + @property + def dimensionality(self): + """Gets the dimensionality of this CoreBlobType. # noqa: E501 + + + :return: The dimensionality of this CoreBlobType. # noqa: E501 + :rtype: BlobTypeBlobDimensionality + """ + return self._dimensionality + + @dimensionality.setter + def dimensionality(self, dimensionality): + """Sets the dimensionality of this CoreBlobType. + + + :param dimensionality: The dimensionality of this CoreBlobType. # noqa: E501 + :type: BlobTypeBlobDimensionality + """ + + self._dimensionality = dimensionality + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBlobType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBlobType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py new file mode 100644 index 0000000000..f7eaff6130 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression # noqa: F401,E501 +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression # noqa: F401,E501 + + +class CoreBooleanExpression(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'conjunction': 'CoreConjunctionExpression', + 'comparison': 'CoreComparisonExpression' + } + + attribute_map = { + 'conjunction': 'conjunction', + 'comparison': 'comparison' + } + + def __init__(self, conjunction=None, comparison=None): # noqa: E501 + """CoreBooleanExpression - a model defined in Swagger""" # noqa: E501 + + self._conjunction = None + self._comparison = None + self.discriminator = None + + if conjunction is not None: + self.conjunction = conjunction + if comparison is not None: + self.comparison = comparison + + @property + def conjunction(self): + """Gets the conjunction of this CoreBooleanExpression. # noqa: E501 + + + :return: The conjunction of this CoreBooleanExpression. # noqa: E501 + :rtype: CoreConjunctionExpression + """ + return self._conjunction + + @conjunction.setter + def conjunction(self, conjunction): + """Sets the conjunction of this CoreBooleanExpression. + + + :param conjunction: The conjunction of this CoreBooleanExpression. # noqa: E501 + :type: CoreConjunctionExpression + """ + + self._conjunction = conjunction + + @property + def comparison(self): + """Gets the comparison of this CoreBooleanExpression. # noqa: E501 + + + :return: The comparison of this CoreBooleanExpression. # noqa: E501 + :rtype: CoreComparisonExpression + """ + return self._comparison + + @comparison.setter + def comparison(self, comparison): + """Sets the comparison of this CoreBooleanExpression. + + + :param comparison: The comparison of this CoreBooleanExpression. # noqa: E501 + :type: CoreComparisonExpression + """ + + self._comparison = comparison + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBooleanExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBooleanExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py new file mode 100644 index 0000000000..db7cc3c71d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_if_else_block import CoreIfElseBlock # noqa: F401,E501 + + +class CoreBranchNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'if_else': 'CoreIfElseBlock' + } + + attribute_map = { + 'if_else': 'if_else' + } + + def __init__(self, if_else=None): # noqa: E501 + """CoreBranchNode - a model defined in Swagger""" # noqa: E501 + + self._if_else = None + self.discriminator = None + + if if_else is not None: + self.if_else = if_else + + @property + def if_else(self): + """Gets the if_else of this CoreBranchNode. # noqa: E501 + + + :return: The if_else of this CoreBranchNode. # noqa: E501 + :rtype: CoreIfElseBlock + """ + return self._if_else + + @if_else.setter + def if_else(self, if_else): + """Sets the if_else of this CoreBranchNode. + + + :param if_else: The if_else of this CoreBranchNode. # noqa: E501 + :type: CoreIfElseBlock + """ + + self._if_else = if_else + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreBranchNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreBranchNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py new file mode 100644 index 0000000000..76e06e75c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator # noqa: F401,E501 +from flyteadmin.models.core_operand import CoreOperand # noqa: F401,E501 + + +class CoreComparisonExpression(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'operator': 'ComparisonExpressionOperator', + 'left_value': 'CoreOperand', + 'right_value': 'CoreOperand' + } + + attribute_map = { + 'operator': 'operator', + 'left_value': 'left_value', + 'right_value': 'right_value' + } + + def __init__(self, operator=None, left_value=None, right_value=None): # noqa: E501 + """CoreComparisonExpression - a model defined in Swagger""" # noqa: E501 + + self._operator = None + self._left_value = None + self._right_value = None + self.discriminator = None + + if operator is not None: + self.operator = operator + if left_value is not None: + self.left_value = left_value + if right_value is not None: + self.right_value = right_value + + @property + def operator(self): + """Gets the operator of this CoreComparisonExpression. # noqa: E501 + + + :return: The operator of this CoreComparisonExpression. # noqa: E501 + :rtype: ComparisonExpressionOperator + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this CoreComparisonExpression. + + + :param operator: The operator of this CoreComparisonExpression. # noqa: E501 + :type: ComparisonExpressionOperator + """ + + self._operator = operator + + @property + def left_value(self): + """Gets the left_value of this CoreComparisonExpression. # noqa: E501 + + + :return: The left_value of this CoreComparisonExpression. # noqa: E501 + :rtype: CoreOperand + """ + return self._left_value + + @left_value.setter + def left_value(self, left_value): + """Sets the left_value of this CoreComparisonExpression. + + + :param left_value: The left_value of this CoreComparisonExpression. # noqa: E501 + :type: CoreOperand + """ + + self._left_value = left_value + + @property + def right_value(self): + """Gets the right_value of this CoreComparisonExpression. # noqa: E501 + + + :return: The right_value of this CoreComparisonExpression. # noqa: E501 + :rtype: CoreOperand + """ + return self._right_value + + @right_value.setter + def right_value(self, right_value): + """Sets the right_value of this CoreComparisonExpression. + + + :param right_value: The right_value of this CoreComparisonExpression. # noqa: E501 + :type: CoreOperand + """ + + self._right_value = right_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreComparisonExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreComparisonExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py new file mode 100644 index 0000000000..e7bb749c0f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: F401,E501 + + +class CoreCompiledTask(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreTaskTemplate' + } + + attribute_map = { + 'template': 'template' + } + + def __init__(self, template=None): # noqa: E501 + """CoreCompiledTask - a model defined in Swagger""" # noqa: E501 + + self._template = None + self.discriminator = None + + if template is not None: + self.template = template + + @property + def template(self): + """Gets the template of this CoreCompiledTask. # noqa: E501 + + + :return: The template of this CoreCompiledTask. # noqa: E501 + :rtype: CoreTaskTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this CoreCompiledTask. + + + :param template: The template of this CoreCompiledTask. # noqa: E501 + :type: CoreTaskTemplate + """ + + self._template = template + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCompiledTask, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCompiledTask): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py new file mode 100644 index 0000000000..2b7de1f256 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_connection_set import CoreConnectionSet # noqa: F401,E501 +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: F401,E501 + + +class CoreCompiledWorkflow(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template': 'CoreWorkflowTemplate', + 'connections': 'CoreConnectionSet' + } + + attribute_map = { + 'template': 'template', + 'connections': 'connections' + } + + def __init__(self, template=None, connections=None): # noqa: E501 + """CoreCompiledWorkflow - a model defined in Swagger""" # noqa: E501 + + self._template = None + self._connections = None + self.discriminator = None + + if template is not None: + self.template = template + if connections is not None: + self.connections = connections + + @property + def template(self): + """Gets the template of this CoreCompiledWorkflow. # noqa: E501 + + + :return: The template of this CoreCompiledWorkflow. # noqa: E501 + :rtype: CoreWorkflowTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this CoreCompiledWorkflow. + + + :param template: The template of this CoreCompiledWorkflow. # noqa: E501 + :type: CoreWorkflowTemplate + """ + + self._template = template + + @property + def connections(self): + """Gets the connections of this CoreCompiledWorkflow. # noqa: E501 + + For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. # noqa: E501 + + :return: The connections of this CoreCompiledWorkflow. # noqa: E501 + :rtype: CoreConnectionSet + """ + return self._connections + + @connections.setter + def connections(self, connections): + """Sets the connections of this CoreCompiledWorkflow. + + For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. # noqa: E501 + + :param connections: The connections of this CoreCompiledWorkflow. # noqa: E501 + :type: CoreConnectionSet + """ + + self._connections = connections + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCompiledWorkflow, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCompiledWorkflow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py new file mode 100644 index 0000000000..48afd2e2cc --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: F401,E501 +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow # noqa: F401,E501 + + +class CoreCompiledWorkflowClosure(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primary': 'CoreCompiledWorkflow', + 'sub_workflows': 'list[CoreCompiledWorkflow]', + 'tasks': 'list[CoreCompiledTask]' + } + + attribute_map = { + 'primary': 'primary', + 'sub_workflows': 'sub_workflows', + 'tasks': 'tasks' + } + + def __init__(self, primary=None, sub_workflows=None, tasks=None): # noqa: E501 + """CoreCompiledWorkflowClosure - a model defined in Swagger""" # noqa: E501 + + self._primary = None + self._sub_workflows = None + self._tasks = None + self.discriminator = None + + if primary is not None: + self.primary = primary + if sub_workflows is not None: + self.sub_workflows = sub_workflows + if tasks is not None: + self.tasks = tasks + + @property + def primary(self): + """Gets the primary of this CoreCompiledWorkflowClosure. # noqa: E501 + + + :return: The primary of this CoreCompiledWorkflowClosure. # noqa: E501 + :rtype: CoreCompiledWorkflow + """ + return self._primary + + @primary.setter + def primary(self, primary): + """Sets the primary of this CoreCompiledWorkflowClosure. + + + :param primary: The primary of this CoreCompiledWorkflowClosure. # noqa: E501 + :type: CoreCompiledWorkflow + """ + + self._primary = primary + + @property + def sub_workflows(self): + """Gets the sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 + + + :return: The sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 + :rtype: list[CoreCompiledWorkflow] + """ + return self._sub_workflows + + @sub_workflows.setter + def sub_workflows(self, sub_workflows): + """Sets the sub_workflows of this CoreCompiledWorkflowClosure. + + + :param sub_workflows: The sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 + :type: list[CoreCompiledWorkflow] + """ + + self._sub_workflows = sub_workflows + + @property + def tasks(self): + """Gets the tasks of this CoreCompiledWorkflowClosure. # noqa: E501 + + + :return: The tasks of this CoreCompiledWorkflowClosure. # noqa: E501 + :rtype: list[CoreCompiledTask] + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """Sets the tasks of this CoreCompiledWorkflowClosure. + + + :param tasks: The tasks of this CoreCompiledWorkflowClosure. # noqa: E501 + :type: list[CoreCompiledTask] + """ + + self._tasks = tasks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreCompiledWorkflowClosure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreCompiledWorkflowClosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py new file mode 100644 index 0000000000..d28a2ac830 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator # noqa: F401,E501 +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: F401,E501 + + +class CoreConjunctionExpression(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'operator': 'ConjunctionExpressionLogicalOperator', + 'left_expression': 'CoreBooleanExpression', + 'right_expression': 'CoreBooleanExpression' + } + + attribute_map = { + 'operator': 'operator', + 'left_expression': 'left_expression', + 'right_expression': 'right_expression' + } + + def __init__(self, operator=None, left_expression=None, right_expression=None): # noqa: E501 + """CoreConjunctionExpression - a model defined in Swagger""" # noqa: E501 + + self._operator = None + self._left_expression = None + self._right_expression = None + self.discriminator = None + + if operator is not None: + self.operator = operator + if left_expression is not None: + self.left_expression = left_expression + if right_expression is not None: + self.right_expression = right_expression + + @property + def operator(self): + """Gets the operator of this CoreConjunctionExpression. # noqa: E501 + + + :return: The operator of this CoreConjunctionExpression. # noqa: E501 + :rtype: ConjunctionExpressionLogicalOperator + """ + return self._operator + + @operator.setter + def operator(self, operator): + """Sets the operator of this CoreConjunctionExpression. + + + :param operator: The operator of this CoreConjunctionExpression. # noqa: E501 + :type: ConjunctionExpressionLogicalOperator + """ + + self._operator = operator + + @property + def left_expression(self): + """Gets the left_expression of this CoreConjunctionExpression. # noqa: E501 + + + :return: The left_expression of this CoreConjunctionExpression. # noqa: E501 + :rtype: CoreBooleanExpression + """ + return self._left_expression + + @left_expression.setter + def left_expression(self, left_expression): + """Sets the left_expression of this CoreConjunctionExpression. + + + :param left_expression: The left_expression of this CoreConjunctionExpression. # noqa: E501 + :type: CoreBooleanExpression + """ + + self._left_expression = left_expression + + @property + def right_expression(self): + """Gets the right_expression of this CoreConjunctionExpression. # noqa: E501 + + + :return: The right_expression of this CoreConjunctionExpression. # noqa: E501 + :rtype: CoreBooleanExpression + """ + return self._right_expression + + @right_expression.setter + def right_expression(self, right_expression): + """Sets the right_expression of this CoreConjunctionExpression. + + + :param right_expression: The right_expression of this CoreConjunctionExpression. # noqa: E501 + :type: CoreBooleanExpression + """ + + self._right_expression = right_expression + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreConjunctionExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreConjunctionExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py new file mode 100644 index 0000000000..05361c4a1e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList # noqa: F401,E501 + + +class CoreConnectionSet(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'downstream': 'dict(str, ConnectionSetIdList)', + 'upstream': 'dict(str, ConnectionSetIdList)' + } + + attribute_map = { + 'downstream': 'downstream', + 'upstream': 'upstream' + } + + def __init__(self, downstream=None, upstream=None): # noqa: E501 + """CoreConnectionSet - a model defined in Swagger""" # noqa: E501 + + self._downstream = None + self._upstream = None + self.discriminator = None + + if downstream is not None: + self.downstream = downstream + if upstream is not None: + self.upstream = upstream + + @property + def downstream(self): + """Gets the downstream of this CoreConnectionSet. # noqa: E501 + + + :return: The downstream of this CoreConnectionSet. # noqa: E501 + :rtype: dict(str, ConnectionSetIdList) + """ + return self._downstream + + @downstream.setter + def downstream(self, downstream): + """Sets the downstream of this CoreConnectionSet. + + + :param downstream: The downstream of this CoreConnectionSet. # noqa: E501 + :type: dict(str, ConnectionSetIdList) + """ + + self._downstream = downstream + + @property + def upstream(self): + """Gets the upstream of this CoreConnectionSet. # noqa: E501 + + + :return: The upstream of this CoreConnectionSet. # noqa: E501 + :rtype: dict(str, ConnectionSetIdList) + """ + return self._upstream + + @upstream.setter + def upstream(self, upstream): + """Sets the upstream of this CoreConnectionSet. + + + :param upstream: The upstream of this CoreConnectionSet. # noqa: E501 + :type: dict(str, ConnectionSetIdList) + """ + + self._upstream = upstream + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreConnectionSet, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreConnectionSet): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py new file mode 100644 index 0000000000..089f8204ae --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_container_port import CoreContainerPort # noqa: F401,E501 +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: F401,E501 +from flyteadmin.models.core_resources import CoreResources # noqa: F401,E501 + + +class CoreContainer(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'image': 'str', + 'command': 'list[str]', + 'args': 'list[str]', + 'resources': 'CoreResources', + 'env': 'list[CoreKeyValuePair]', + 'config': 'list[CoreKeyValuePair]', + 'ports': 'list[CoreContainerPort]' + } + + attribute_map = { + 'image': 'image', + 'command': 'command', + 'args': 'args', + 'resources': 'resources', + 'env': 'env', + 'config': 'config', + 'ports': 'ports' + } + + def __init__(self, image=None, command=None, args=None, resources=None, env=None, config=None, ports=None): # noqa: E501 + """CoreContainer - a model defined in Swagger""" # noqa: E501 + + self._image = None + self._command = None + self._args = None + self._resources = None + self._env = None + self._config = None + self._ports = None + self.discriminator = None + + if image is not None: + self.image = image + if command is not None: + self.command = command + if args is not None: + self.args = args + if resources is not None: + self.resources = resources + if env is not None: + self.env = env + if config is not None: + self.config = config + if ports is not None: + self.ports = ports + + @property + def image(self): + """Gets the image of this CoreContainer. # noqa: E501 + + + :return: The image of this CoreContainer. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this CoreContainer. + + + :param image: The image of this CoreContainer. # noqa: E501 + :type: str + """ + + self._image = image + + @property + def command(self): + """Gets the command of this CoreContainer. # noqa: E501 + + Command to be executed, if not provided, the default entrypoint in the container image will be used. # noqa: E501 + + :return: The command of this CoreContainer. # noqa: E501 + :rtype: list[str] + """ + return self._command + + @command.setter + def command(self, command): + """Sets the command of this CoreContainer. + + Command to be executed, if not provided, the default entrypoint in the container image will be used. # noqa: E501 + + :param command: The command of this CoreContainer. # noqa: E501 + :type: list[str] + """ + + self._command = command + + @property + def args(self): + """Gets the args of this CoreContainer. # noqa: E501 + + These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. # noqa: E501 + + :return: The args of this CoreContainer. # noqa: E501 + :rtype: list[str] + """ + return self._args + + @args.setter + def args(self, args): + """Sets the args of this CoreContainer. + + These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. # noqa: E501 + + :param args: The args of this CoreContainer. # noqa: E501 + :type: list[str] + """ + + self._args = args + + @property + def resources(self): + """Gets the resources of this CoreContainer. # noqa: E501 + + Container resources requirement as specified by the container engine. # noqa: E501 + + :return: The resources of this CoreContainer. # noqa: E501 + :rtype: CoreResources + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this CoreContainer. + + Container resources requirement as specified by the container engine. # noqa: E501 + + :param resources: The resources of this CoreContainer. # noqa: E501 + :type: CoreResources + """ + + self._resources = resources + + @property + def env(self): + """Gets the env of this CoreContainer. # noqa: E501 + + Environment variables will be set as the container is starting up. # noqa: E501 + + :return: The env of this CoreContainer. # noqa: E501 + :rtype: list[CoreKeyValuePair] + """ + return self._env + + @env.setter + def env(self, env): + """Sets the env of this CoreContainer. + + Environment variables will be set as the container is starting up. # noqa: E501 + + :param env: The env of this CoreContainer. # noqa: E501 + :type: list[CoreKeyValuePair] + """ + + self._env = env + + @property + def config(self): + """Gets the config of this CoreContainer. # noqa: E501 + + Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. # noqa: E501 + + :return: The config of this CoreContainer. # noqa: E501 + :rtype: list[CoreKeyValuePair] + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this CoreContainer. + + Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. # noqa: E501 + + :param config: The config of this CoreContainer. # noqa: E501 + :type: list[CoreKeyValuePair] + """ + + self._config = config + + @property + def ports(self): + """Gets the ports of this CoreContainer. # noqa: E501 + + + :return: The ports of this CoreContainer. # noqa: E501 + :rtype: list[CoreContainerPort] + """ + return self._ports + + @ports.setter + def ports(self, ports): + """Sets the ports of this CoreContainer. + + + :param ports: The ports of this CoreContainer. # noqa: E501 + :type: list[CoreContainerPort] + """ + + self._ports = ports + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreContainer, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreContainer): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py new file mode 100644 index 0000000000..812da5c31e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreContainerPort(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'container_port': 'int' + } + + attribute_map = { + 'container_port': 'container_port' + } + + def __init__(self, container_port=None): # noqa: E501 + """CoreContainerPort - a model defined in Swagger""" # noqa: E501 + + self._container_port = None + self.discriminator = None + + if container_port is not None: + self.container_port = container_port + + @property + def container_port(self): + """Gets the container_port of this CoreContainerPort. # noqa: E501 + + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 + + :return: The container_port of this CoreContainerPort. # noqa: E501 + :rtype: int + """ + return self._container_port + + @container_port.setter + def container_port(self, container_port): + """Sets the container_port of this CoreContainerPort. + + Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 + + :param container_port: The container_port of this CoreContainerPort. # noqa: E501 + :type: int + """ + + self._container_port = container_port + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreContainerPort, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreContainerPort): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py new file mode 100644 index 0000000000..50537e11db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreError(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'failed_node_id': 'str', + 'message': 'str' + } + + attribute_map = { + 'failed_node_id': 'failed_node_id', + 'message': 'message' + } + + def __init__(self, failed_node_id=None, message=None): # noqa: E501 + """CoreError - a model defined in Swagger""" # noqa: E501 + + self._failed_node_id = None + self._message = None + self.discriminator = None + + if failed_node_id is not None: + self.failed_node_id = failed_node_id + if message is not None: + self.message = message + + @property + def failed_node_id(self): + """Gets the failed_node_id of this CoreError. # noqa: E501 + + The node id that threw the error. # noqa: E501 + + :return: The failed_node_id of this CoreError. # noqa: E501 + :rtype: str + """ + return self._failed_node_id + + @failed_node_id.setter + def failed_node_id(self, failed_node_id): + """Sets the failed_node_id of this CoreError. + + The node id that threw the error. # noqa: E501 + + :param failed_node_id: The failed_node_id of this CoreError. # noqa: E501 + :type: str + """ + + self._failed_node_id = failed_node_id + + @property + def message(self): + """Gets the message of this CoreError. # noqa: E501 + + Error message thrown. # noqa: E501 + + :return: The message of this CoreError. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CoreError. + + Error message thrown. # noqa: E501 + + :param message: The message of this CoreError. # noqa: E501 + :type: str + """ + + self._message = message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreError, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py new file mode 100644 index 0000000000..b694c496e3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreExecutionError(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'code': 'str', + 'message': 'str', + 'error_uri': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'error_uri': 'error_uri' + } + + def __init__(self, code=None, message=None, error_uri=None): # noqa: E501 + """CoreExecutionError - a model defined in Swagger""" # noqa: E501 + + self._code = None + self._message = None + self._error_uri = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + if error_uri is not None: + self.error_uri = error_uri + + @property + def code(self): + """Gets the code of this CoreExecutionError. # noqa: E501 + + + :return: The code of this CoreExecutionError. # noqa: E501 + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this CoreExecutionError. + + + :param code: The code of this CoreExecutionError. # noqa: E501 + :type: str + """ + + self._code = code + + @property + def message(self): + """Gets the message of this CoreExecutionError. # noqa: E501 + + Detailed description of the error - including stack trace. # noqa: E501 + + :return: The message of this CoreExecutionError. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this CoreExecutionError. + + Detailed description of the error - including stack trace. # noqa: E501 + + :param message: The message of this CoreExecutionError. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def error_uri(self): + """Gets the error_uri of this CoreExecutionError. # noqa: E501 + + + :return: The error_uri of this CoreExecutionError. # noqa: E501 + :rtype: str + """ + return self._error_uri + + @error_uri.setter + def error_uri(self, error_uri): + """Sets the error_uri of this CoreExecutionError. + + + :param error_uri: The error_uri of this CoreExecutionError. # noqa: E501 + :type: str + """ + + self._error_uri = error_uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreExecutionError, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreExecutionError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py new file mode 100644 index 0000000000..e610b90c67 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 + + +class CoreIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_type': 'CoreResourceType', + 'project': 'str', + 'domain': 'str', + 'name': 'str', + 'version': 'str' + } + + attribute_map = { + 'resource_type': 'resource_type', + 'project': 'project', + 'domain': 'domain', + 'name': 'name', + 'version': 'version' + } + + def __init__(self, resource_type=None, project=None, domain=None, name=None, version=None): # noqa: E501 + """CoreIdentifier - a model defined in Swagger""" # noqa: E501 + + self._resource_type = None + self._project = None + self._domain = None + self._name = None + self._version = None + self.discriminator = None + + if resource_type is not None: + self.resource_type = resource_type + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + if version is not None: + self.version = version + + @property + def resource_type(self): + """Gets the resource_type of this CoreIdentifier. # noqa: E501 + + Identifies the specific type of resource that this identifer corresponds to. # noqa: E501 + + :return: The resource_type of this CoreIdentifier. # noqa: E501 + :rtype: CoreResourceType + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """Sets the resource_type of this CoreIdentifier. + + Identifies the specific type of resource that this identifer corresponds to. # noqa: E501 + + :param resource_type: The resource_type of this CoreIdentifier. # noqa: E501 + :type: CoreResourceType + """ + + self._resource_type = resource_type + + @property + def project(self): + """Gets the project of this CoreIdentifier. # noqa: E501 + + Name of the project the resource belongs to. # noqa: E501 + + :return: The project of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this CoreIdentifier. + + Name of the project the resource belongs to. # noqa: E501 + + :param project: The project of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this CoreIdentifier. # noqa: E501 + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this CoreIdentifier. + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this CoreIdentifier. # noqa: E501 + + User provided value for the resource. # noqa: E501 + + :return: The name of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreIdentifier. + + User provided value for the resource. # noqa: E501 + + :param name: The name of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def version(self): + """Gets the version of this CoreIdentifier. # noqa: E501 + + Specific version of the resource. # noqa: E501 + + :return: The version of this CoreIdentifier. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CoreIdentifier. + + Specific version of the resource. # noqa: E501 + + :param version: The version of this CoreIdentifier. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py new file mode 100644 index 0000000000..5368a70365 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: F401,E501 +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 + + +class CoreIfBlock(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'condition': 'CoreBooleanExpression', + 'then_node': 'CoreNode' + } + + attribute_map = { + 'condition': 'condition', + 'then_node': 'then_node' + } + + def __init__(self, condition=None, then_node=None): # noqa: E501 + """CoreIfBlock - a model defined in Swagger""" # noqa: E501 + + self._condition = None + self._then_node = None + self.discriminator = None + + if condition is not None: + self.condition = condition + if then_node is not None: + self.then_node = then_node + + @property + def condition(self): + """Gets the condition of this CoreIfBlock. # noqa: E501 + + + :return: The condition of this CoreIfBlock. # noqa: E501 + :rtype: CoreBooleanExpression + """ + return self._condition + + @condition.setter + def condition(self, condition): + """Sets the condition of this CoreIfBlock. + + + :param condition: The condition of this CoreIfBlock. # noqa: E501 + :type: CoreBooleanExpression + """ + + self._condition = condition + + @property + def then_node(self): + """Gets the then_node of this CoreIfBlock. # noqa: E501 + + + :return: The then_node of this CoreIfBlock. # noqa: E501 + :rtype: CoreNode + """ + return self._then_node + + @then_node.setter + def then_node(self, then_node): + """Sets the then_node of this CoreIfBlock. + + + :param then_node: The then_node of this CoreIfBlock. # noqa: E501 + :type: CoreNode + """ + + self._then_node = then_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIfBlock, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIfBlock): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py new file mode 100644 index 0000000000..bff092a8a8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_error import CoreError # noqa: F401,E501 +from flyteadmin.models.core_if_block import CoreIfBlock # noqa: F401,E501 +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 + + +class CoreIfElseBlock(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'case': 'CoreIfBlock', + 'other': 'list[CoreIfBlock]', + 'else_node': 'CoreNode', + 'error': 'CoreError' + } + + attribute_map = { + 'case': 'case', + 'other': 'other', + 'else_node': 'else_node', + 'error': 'error' + } + + def __init__(self, case=None, other=None, else_node=None, error=None): # noqa: E501 + """CoreIfElseBlock - a model defined in Swagger""" # noqa: E501 + + self._case = None + self._other = None + self._else_node = None + self._error = None + self.discriminator = None + + if case is not None: + self.case = case + if other is not None: + self.other = other + if else_node is not None: + self.else_node = else_node + if error is not None: + self.error = error + + @property + def case(self): + """Gets the case of this CoreIfElseBlock. # noqa: E501 + + +required. First condition to evaluate. # noqa: E501 + + :return: The case of this CoreIfElseBlock. # noqa: E501 + :rtype: CoreIfBlock + """ + return self._case + + @case.setter + def case(self, case): + """Sets the case of this CoreIfElseBlock. + + +required. First condition to evaluate. # noqa: E501 + + :param case: The case of this CoreIfElseBlock. # noqa: E501 + :type: CoreIfBlock + """ + + self._case = case + + @property + def other(self): + """Gets the other of this CoreIfElseBlock. # noqa: E501 + + +optional. Additional branches to evaluate. # noqa: E501 + + :return: The other of this CoreIfElseBlock. # noqa: E501 + :rtype: list[CoreIfBlock] + """ + return self._other + + @other.setter + def other(self, other): + """Sets the other of this CoreIfElseBlock. + + +optional. Additional branches to evaluate. # noqa: E501 + + :param other: The other of this CoreIfElseBlock. # noqa: E501 + :type: list[CoreIfBlock] + """ + + self._other = other + + @property + def else_node(self): + """Gets the else_node of this CoreIfElseBlock. # noqa: E501 + + The node to execute in case none of the branches were taken. # noqa: E501 + + :return: The else_node of this CoreIfElseBlock. # noqa: E501 + :rtype: CoreNode + """ + return self._else_node + + @else_node.setter + def else_node(self, else_node): + """Sets the else_node of this CoreIfElseBlock. + + The node to execute in case none of the branches were taken. # noqa: E501 + + :param else_node: The else_node of this CoreIfElseBlock. # noqa: E501 + :type: CoreNode + """ + + self._else_node = else_node + + @property + def error(self): + """Gets the error of this CoreIfElseBlock. # noqa: E501 + + An error to throw in case none of the branches were taken. # noqa: E501 + + :return: The error of this CoreIfElseBlock. # noqa: E501 + :rtype: CoreError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this CoreIfElseBlock. + + An error to throw in case none of the branches were taken. # noqa: E501 + + :param error: The error of this CoreIfElseBlock. # noqa: E501 + :type: CoreError + """ + + self._error = error + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreIfElseBlock, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreIfElseBlock): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py new file mode 100644 index 0000000000..cd985c0fec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreKeyValuePair(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'value': 'str' + } + + attribute_map = { + 'key': 'key', + 'value': 'value' + } + + def __init__(self, key=None, value=None): # noqa: E501 + """CoreKeyValuePair - a model defined in Swagger""" # noqa: E501 + + self._key = None + self._value = None + self.discriminator = None + + if key is not None: + self.key = key + if value is not None: + self.value = value + + @property + def key(self): + """Gets the key of this CoreKeyValuePair. # noqa: E501 + + required. # noqa: E501 + + :return: The key of this CoreKeyValuePair. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CoreKeyValuePair. + + required. # noqa: E501 + + :param key: The key of this CoreKeyValuePair. # noqa: E501 + :type: str + """ + + self._key = key + + @property + def value(self): + """Gets the value of this CoreKeyValuePair. # noqa: E501 + + +optional. # noqa: E501 + + :return: The value of this CoreKeyValuePair. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this CoreKeyValuePair. + + +optional. # noqa: E501 + + :param value: The value of this CoreKeyValuePair. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreKeyValuePair, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreKeyValuePair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py new file mode 100644 index 0000000000..ef876c7c4d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_collection import CoreLiteralCollection # noqa: F401,E501 +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 +from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 + + +class CoreLiteral(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'scalar': 'CoreScalar', + 'collection': 'CoreLiteralCollection', + 'map': 'CoreLiteralMap' + } + + attribute_map = { + 'scalar': 'scalar', + 'collection': 'collection', + 'map': 'map' + } + + def __init__(self, scalar=None, collection=None, map=None): # noqa: E501 + """CoreLiteral - a model defined in Swagger""" # noqa: E501 + + self._scalar = None + self._collection = None + self._map = None + self.discriminator = None + + if scalar is not None: + self.scalar = scalar + if collection is not None: + self.collection = collection + if map is not None: + self.map = map + + @property + def scalar(self): + """Gets the scalar of this CoreLiteral. # noqa: E501 + + A simple value. # noqa: E501 + + :return: The scalar of this CoreLiteral. # noqa: E501 + :rtype: CoreScalar + """ + return self._scalar + + @scalar.setter + def scalar(self, scalar): + """Sets the scalar of this CoreLiteral. + + A simple value. # noqa: E501 + + :param scalar: The scalar of this CoreLiteral. # noqa: E501 + :type: CoreScalar + """ + + self._scalar = scalar + + @property + def collection(self): + """Gets the collection of this CoreLiteral. # noqa: E501 + + A collection of literals to allow nesting. # noqa: E501 + + :return: The collection of this CoreLiteral. # noqa: E501 + :rtype: CoreLiteralCollection + """ + return self._collection + + @collection.setter + def collection(self, collection): + """Sets the collection of this CoreLiteral. + + A collection of literals to allow nesting. # noqa: E501 + + :param collection: The collection of this CoreLiteral. # noqa: E501 + :type: CoreLiteralCollection + """ + + self._collection = collection + + @property + def map(self): + """Gets the map of this CoreLiteral. # noqa: E501 + + A map of strings to literals. # noqa: E501 + + :return: The map of this CoreLiteral. # noqa: E501 + :rtype: CoreLiteralMap + """ + return self._map + + @map.setter + def map(self, map): + """Sets the map of this CoreLiteral. + + A map of strings to literals. # noqa: E501 + + :param map: The map of this CoreLiteral. # noqa: E501 + :type: CoreLiteralMap + """ + + self._map = map + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteral, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteral): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py new file mode 100644 index 0000000000..325550f749 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 + + +class CoreLiteralCollection(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'literals': 'list[CoreLiteral]' + } + + attribute_map = { + 'literals': 'literals' + } + + def __init__(self, literals=None): # noqa: E501 + """CoreLiteralCollection - a model defined in Swagger""" # noqa: E501 + + self._literals = None + self.discriminator = None + + if literals is not None: + self.literals = literals + + @property + def literals(self): + """Gets the literals of this CoreLiteralCollection. # noqa: E501 + + + :return: The literals of this CoreLiteralCollection. # noqa: E501 + :rtype: list[CoreLiteral] + """ + return self._literals + + @literals.setter + def literals(self, literals): + """Sets the literals of this CoreLiteralCollection. + + + :param literals: The literals of this CoreLiteralCollection. # noqa: E501 + :type: list[CoreLiteral] + """ + + self._literals = literals + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteralCollection, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteralCollection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py new file mode 100644 index 0000000000..bdcf7cc370 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 + + +class CoreLiteralMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'literals': 'dict(str, CoreLiteral)' + } + + attribute_map = { + 'literals': 'literals' + } + + def __init__(self, literals=None): # noqa: E501 + """CoreLiteralMap - a model defined in Swagger""" # noqa: E501 + + self._literals = None + self.discriminator = None + + if literals is not None: + self.literals = literals + + @property + def literals(self): + """Gets the literals of this CoreLiteralMap. # noqa: E501 + + + :return: The literals of this CoreLiteralMap. # noqa: E501 + :rtype: dict(str, CoreLiteral) + """ + return self._literals + + @literals.setter + def literals(self, literals): + """Sets the literals of this CoreLiteralMap. + + + :param literals: The literals of this CoreLiteralMap. # noqa: E501 + :type: dict(str, CoreLiteral) + """ + + self._literals = literals + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteralMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteralMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py new file mode 100644 index 0000000000..687118e97e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_blob_type import CoreBlobType # noqa: F401,E501 +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 +from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: F401,E501 +from flyteadmin.models.core_simple_type import CoreSimpleType # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreLiteralType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'simple': 'CoreSimpleType', + 'schema': 'CoreSchemaType', + 'collection_type': 'CoreLiteralType', + 'map_value_type': 'CoreLiteralType', + 'blob': 'CoreBlobType', + 'metadata': 'ProtobufStruct' + } + + attribute_map = { + 'simple': 'simple', + 'schema': 'schema', + 'collection_type': 'collection_type', + 'map_value_type': 'map_value_type', + 'blob': 'blob', + 'metadata': 'metadata' + } + + def __init__(self, simple=None, schema=None, collection_type=None, map_value_type=None, blob=None, metadata=None): # noqa: E501 + """CoreLiteralType - a model defined in Swagger""" # noqa: E501 + + self._simple = None + self._schema = None + self._collection_type = None + self._map_value_type = None + self._blob = None + self._metadata = None + self.discriminator = None + + if simple is not None: + self.simple = simple + if schema is not None: + self.schema = schema + if collection_type is not None: + self.collection_type = collection_type + if map_value_type is not None: + self.map_value_type = map_value_type + if blob is not None: + self.blob = blob + if metadata is not None: + self.metadata = metadata + + @property + def simple(self): + """Gets the simple of this CoreLiteralType. # noqa: E501 + + A simple type that can be compared one-to-one with another. # noqa: E501 + + :return: The simple of this CoreLiteralType. # noqa: E501 + :rtype: CoreSimpleType + """ + return self._simple + + @simple.setter + def simple(self, simple): + """Sets the simple of this CoreLiteralType. + + A simple type that can be compared one-to-one with another. # noqa: E501 + + :param simple: The simple of this CoreLiteralType. # noqa: E501 + :type: CoreSimpleType + """ + + self._simple = simple + + @property + def schema(self): + """Gets the schema of this CoreLiteralType. # noqa: E501 + + A complex type that requires matching of inner fields. # noqa: E501 + + :return: The schema of this CoreLiteralType. # noqa: E501 + :rtype: CoreSchemaType + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this CoreLiteralType. + + A complex type that requires matching of inner fields. # noqa: E501 + + :param schema: The schema of this CoreLiteralType. # noqa: E501 + :type: CoreSchemaType + """ + + self._schema = schema + + @property + def collection_type(self): + """Gets the collection_type of this CoreLiteralType. # noqa: E501 + + Defines the type of the value of a collection. Only homogeneous collections are allowed. # noqa: E501 + + :return: The collection_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._collection_type + + @collection_type.setter + def collection_type(self, collection_type): + """Sets the collection_type of this CoreLiteralType. + + Defines the type of the value of a collection. Only homogeneous collections are allowed. # noqa: E501 + + :param collection_type: The collection_type of this CoreLiteralType. # noqa: E501 + :type: CoreLiteralType + """ + + self._collection_type = collection_type + + @property + def map_value_type(self): + """Gets the map_value_type of this CoreLiteralType. # noqa: E501 + + Defines the type of the value of a map type. The type of the key is always a string. # noqa: E501 + + :return: The map_value_type of this CoreLiteralType. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._map_value_type + + @map_value_type.setter + def map_value_type(self, map_value_type): + """Sets the map_value_type of this CoreLiteralType. + + Defines the type of the value of a map type. The type of the key is always a string. # noqa: E501 + + :param map_value_type: The map_value_type of this CoreLiteralType. # noqa: E501 + :type: CoreLiteralType + """ + + self._map_value_type = map_value_type + + @property + def blob(self): + """Gets the blob of this CoreLiteralType. # noqa: E501 + + A blob might have specialized implementation details depending on associated metadata. # noqa: E501 + + :return: The blob of this CoreLiteralType. # noqa: E501 + :rtype: CoreBlobType + """ + return self._blob + + @blob.setter + def blob(self, blob): + """Sets the blob of this CoreLiteralType. + + A blob might have specialized implementation details depending on associated metadata. # noqa: E501 + + :param blob: The blob of this CoreLiteralType. # noqa: E501 + :type: CoreBlobType + """ + + self._blob = blob + + @property + def metadata(self): + """Gets the metadata of this CoreLiteralType. # noqa: E501 + + This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. # noqa: E501 + + :return: The metadata of this CoreLiteralType. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreLiteralType. + + This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. # noqa: E501 + + :param metadata: The metadata of this CoreLiteralType. # noqa: E501 + :type: ProtobufStruct + """ + + self._metadata = metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreLiteralType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreLiteralType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py new file mode 100644 index 0000000000..31e9475471 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_alias import CoreAlias # noqa: F401,E501 +from flyteadmin.models.core_binding import CoreBinding # noqa: F401,E501 +from flyteadmin.models.core_branch_node import CoreBranchNode # noqa: F401,E501 +from flyteadmin.models.core_node_metadata import CoreNodeMetadata # noqa: F401,E501 +from flyteadmin.models.core_task_node import CoreTaskNode # noqa: F401,E501 +from flyteadmin.models.core_workflow_node import CoreWorkflowNode # noqa: F401,E501 + + +class CoreNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'metadata': 'CoreNodeMetadata', + 'inputs': 'list[CoreBinding]', + 'upstream_node_ids': 'list[str]', + 'output_aliases': 'list[CoreAlias]', + 'task_node': 'CoreTaskNode', + 'workflow_node': 'CoreWorkflowNode', + 'branch_node': 'CoreBranchNode' + } + + attribute_map = { + 'id': 'id', + 'metadata': 'metadata', + 'inputs': 'inputs', + 'upstream_node_ids': 'upstream_node_ids', + 'output_aliases': 'output_aliases', + 'task_node': 'task_node', + 'workflow_node': 'workflow_node', + 'branch_node': 'branch_node' + } + + def __init__(self, id=None, metadata=None, inputs=None, upstream_node_ids=None, output_aliases=None, task_node=None, workflow_node=None, branch_node=None): # noqa: E501 + """CoreNode - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._metadata = None + self._inputs = None + self._upstream_node_ids = None + self._output_aliases = None + self._task_node = None + self._workflow_node = None + self._branch_node = None + self.discriminator = None + + if id is not None: + self.id = id + if metadata is not None: + self.metadata = metadata + if inputs is not None: + self.inputs = inputs + if upstream_node_ids is not None: + self.upstream_node_ids = upstream_node_ids + if output_aliases is not None: + self.output_aliases = output_aliases + if task_node is not None: + self.task_node = task_node + if workflow_node is not None: + self.workflow_node = workflow_node + if branch_node is not None: + self.branch_node = branch_node + + @property + def id(self): + """Gets the id of this CoreNode. # noqa: E501 + + A workflow-level unique identifier that identifies this node in the workflow. \"inputs\" and \"outputs\" are reserved node ids that cannot be used by other nodes. # noqa: E501 + + :return: The id of this CoreNode. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CoreNode. + + A workflow-level unique identifier that identifies this node in the workflow. \"inputs\" and \"outputs\" are reserved node ids that cannot be used by other nodes. # noqa: E501 + + :param id: The id of this CoreNode. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def metadata(self): + """Gets the metadata of this CoreNode. # noqa: E501 + + Extra metadata about the node. # noqa: E501 + + :return: The metadata of this CoreNode. # noqa: E501 + :rtype: CoreNodeMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreNode. + + Extra metadata about the node. # noqa: E501 + + :param metadata: The metadata of this CoreNode. # noqa: E501 + :type: CoreNodeMetadata + """ + + self._metadata = metadata + + @property + def inputs(self): + """Gets the inputs of this CoreNode. # noqa: E501 + + Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fullfilled. # noqa: E501 + + :return: The inputs of this CoreNode. # noqa: E501 + :rtype: list[CoreBinding] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this CoreNode. + + Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fullfilled. # noqa: E501 + + :param inputs: The inputs of this CoreNode. # noqa: E501 + :type: list[CoreBinding] + """ + + self._inputs = inputs + + @property + def upstream_node_ids(self): + """Gets the upstream_node_ids of this CoreNode. # noqa: E501 + + +optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs field. # noqa: E501 + + :return: The upstream_node_ids of this CoreNode. # noqa: E501 + :rtype: list[str] + """ + return self._upstream_node_ids + + @upstream_node_ids.setter + def upstream_node_ids(self, upstream_node_ids): + """Sets the upstream_node_ids of this CoreNode. + + +optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs field. # noqa: E501 + + :param upstream_node_ids: The upstream_node_ids of this CoreNode. # noqa: E501 + :type: list[str] + """ + + self._upstream_node_ids = upstream_node_ids + + @property + def output_aliases(self): + """Gets the output_aliases of this CoreNode. # noqa: E501 + + +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. # noqa: E501 + + :return: The output_aliases of this CoreNode. # noqa: E501 + :rtype: list[CoreAlias] + """ + return self._output_aliases + + @output_aliases.setter + def output_aliases(self, output_aliases): + """Sets the output_aliases of this CoreNode. + + +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. # noqa: E501 + + :param output_aliases: The output_aliases of this CoreNode. # noqa: E501 + :type: list[CoreAlias] + """ + + self._output_aliases = output_aliases + + @property + def task_node(self): + """Gets the task_node of this CoreNode. # noqa: E501 + + Information about the Task to execute in this node. # noqa: E501 + + :return: The task_node of this CoreNode. # noqa: E501 + :rtype: CoreTaskNode + """ + return self._task_node + + @task_node.setter + def task_node(self, task_node): + """Sets the task_node of this CoreNode. + + Information about the Task to execute in this node. # noqa: E501 + + :param task_node: The task_node of this CoreNode. # noqa: E501 + :type: CoreTaskNode + """ + + self._task_node = task_node + + @property + def workflow_node(self): + """Gets the workflow_node of this CoreNode. # noqa: E501 + + Information about the Workflow to execute in this mode. # noqa: E501 + + :return: The workflow_node of this CoreNode. # noqa: E501 + :rtype: CoreWorkflowNode + """ + return self._workflow_node + + @workflow_node.setter + def workflow_node(self, workflow_node): + """Sets the workflow_node of this CoreNode. + + Information about the Workflow to execute in this mode. # noqa: E501 + + :param workflow_node: The workflow_node of this CoreNode. # noqa: E501 + :type: CoreWorkflowNode + """ + + self._workflow_node = workflow_node + + @property + def branch_node(self): + """Gets the branch_node of this CoreNode. # noqa: E501 + + Information about the branch node to evaluate in this node. # noqa: E501 + + :return: The branch_node of this CoreNode. # noqa: E501 + :rtype: CoreBranchNode + """ + return self._branch_node + + @branch_node.setter + def branch_node(self, branch_node): + """Sets the branch_node of this CoreNode. + + Information about the branch node to evaluate in this node. # noqa: E501 + + :param branch_node: The branch_node of this CoreNode. # noqa: E501 + :type: CoreBranchNode + """ + + self._branch_node = branch_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py new file mode 100644 index 0000000000..0c3ea4e60f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class CoreNodeExecutionIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_id': 'str', + 'execution_id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'node_id': 'node_id', + 'execution_id': 'execution_id' + } + + def __init__(self, node_id=None, execution_id=None): # noqa: E501 + """CoreNodeExecutionIdentifier - a model defined in Swagger""" # noqa: E501 + + self._node_id = None + self._execution_id = None + self.discriminator = None + + if node_id is not None: + self.node_id = node_id + if execution_id is not None: + self.execution_id = execution_id + + @property + def node_id(self): + """Gets the node_id of this CoreNodeExecutionIdentifier. # noqa: E501 + + + :return: The node_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this CoreNodeExecutionIdentifier. + + + :param node_id: The node_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._node_id = node_id + + @property + def execution_id(self): + """Gets the execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 + + + :return: The execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this CoreNodeExecutionIdentifier. + + + :param execution_id: The execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNodeExecutionIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNodeExecutionIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py new file mode 100644 index 0000000000..4c8e71bf63 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreNodeExecutionPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + QUEUED = "QUEUED" + RUNNING = "RUNNING" + SUCCEEDED = "SUCCEEDED" + FAILING = "FAILING" + FAILED = "FAILED" + ABORTED = "ABORTED" + SKIPPED = "SKIPPED" + TIMED_OUT = "TIMED_OUT" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreNodeExecutionPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNodeExecutionPhase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNodeExecutionPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py new file mode 100644 index 0000000000..5a046b2cb2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: F401,E501 + + +class CoreNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'timeout': 'str', + 'retries': 'CoreRetryStrategy' + } + + attribute_map = { + 'name': 'name', + 'timeout': 'timeout', + 'retries': 'retries' + } + + def __init__(self, name=None, timeout=None, retries=None): # noqa: E501 + """CoreNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._timeout = None + self._retries = None + self.discriminator = None + + if name is not None: + self.name = name + if timeout is not None: + self.timeout = timeout + if retries is not None: + self.retries = retries + + @property + def name(self): + """Gets the name of this CoreNodeMetadata. # noqa: E501 + + + :return: The name of this CoreNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreNodeMetadata. + + + :param name: The name of this CoreNodeMetadata. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def timeout(self): + """Gets the timeout of this CoreNodeMetadata. # noqa: E501 + + The overall timeout of a task. # noqa: E501 + + :return: The timeout of this CoreNodeMetadata. # noqa: E501 + :rtype: str + """ + return self._timeout + + @timeout.setter + def timeout(self, timeout): + """Sets the timeout of this CoreNodeMetadata. + + The overall timeout of a task. # noqa: E501 + + :param timeout: The timeout of this CoreNodeMetadata. # noqa: E501 + :type: str + """ + + self._timeout = timeout + + @property + def retries(self): + """Gets the retries of this CoreNodeMetadata. # noqa: E501 + + Number of retries per task. # noqa: E501 + + :return: The retries of this CoreNodeMetadata. # noqa: E501 + :rtype: CoreRetryStrategy + """ + return self._retries + + @retries.setter + def retries(self, retries): + """Sets the retries of this CoreNodeMetadata. + + Number of retries per task. # noqa: E501 + + :param retries: The retries of this CoreNodeMetadata. # noqa: E501 + :type: CoreRetryStrategy + """ + + self._retries = retries + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py new file mode 100644 index 0000000000..fad1d9ea49 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_primitive import CorePrimitive # noqa: F401,E501 + + +class CoreOperand(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primitive': 'CorePrimitive', + 'var': 'str' + } + + attribute_map = { + 'primitive': 'primitive', + 'var': 'var' + } + + def __init__(self, primitive=None, var=None): # noqa: E501 + """CoreOperand - a model defined in Swagger""" # noqa: E501 + + self._primitive = None + self._var = None + self.discriminator = None + + if primitive is not None: + self.primitive = primitive + if var is not None: + self.var = var + + @property + def primitive(self): + """Gets the primitive of this CoreOperand. # noqa: E501 + + + :return: The primitive of this CoreOperand. # noqa: E501 + :rtype: CorePrimitive + """ + return self._primitive + + @primitive.setter + def primitive(self, primitive): + """Sets the primitive of this CoreOperand. + + + :param primitive: The primitive of this CoreOperand. # noqa: E501 + :type: CorePrimitive + """ + + self._primitive = primitive + + @property + def var(self): + """Gets the var of this CoreOperand. # noqa: E501 + + + :return: The var of this CoreOperand. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreOperand. + + + :param var: The var of this CoreOperand. # noqa: E501 + :type: str + """ + + self._var = var + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOperand, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOperand): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py new file mode 100644 index 0000000000..801fd4552c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreOutputReference(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'node_id': 'str', + 'var': 'str' + } + + attribute_map = { + 'node_id': 'node_id', + 'var': 'var' + } + + def __init__(self, node_id=None, var=None): # noqa: E501 + """CoreOutputReference - a model defined in Swagger""" # noqa: E501 + + self._node_id = None + self._var = None + self.discriminator = None + + if node_id is not None: + self.node_id = node_id + if var is not None: + self.var = var + + @property + def node_id(self): + """Gets the node_id of this CoreOutputReference. # noqa: E501 + + Node id must exist at the graph layer. # noqa: E501 + + :return: The node_id of this CoreOutputReference. # noqa: E501 + :rtype: str + """ + return self._node_id + + @node_id.setter + def node_id(self, node_id): + """Sets the node_id of this CoreOutputReference. + + Node id must exist at the graph layer. # noqa: E501 + + :param node_id: The node_id of this CoreOutputReference. # noqa: E501 + :type: str + """ + + self._node_id = node_id + + @property + def var(self): + """Gets the var of this CoreOutputReference. # noqa: E501 + + Variable name must refer to an output variable for the node. # noqa: E501 + + :return: The var of this CoreOutputReference. # noqa: E501 + :rtype: str + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreOutputReference. + + Variable name must refer to an output variable for the node. # noqa: E501 + + :param var: The var of this CoreOutputReference. # noqa: E501 + :type: str + """ + + self._var = var + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreOutputReference, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreOutputReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py new file mode 100644 index 0000000000..a6e71104f4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 +from flyteadmin.models.core_variable import CoreVariable # noqa: F401,E501 + + +class CoreParameter(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'var': 'CoreVariable', + 'default': 'CoreLiteral', + 'required': 'bool' + } + + attribute_map = { + 'var': 'var', + 'default': 'default', + 'required': 'required' + } + + def __init__(self, var=None, default=None, required=None): # noqa: E501 + """CoreParameter - a model defined in Swagger""" # noqa: E501 + + self._var = None + self._default = None + self._required = None + self.discriminator = None + + if var is not None: + self.var = var + if default is not None: + self.default = default + if required is not None: + self.required = required + + @property + def var(self): + """Gets the var of this CoreParameter. # noqa: E501 + + +required Variable. Defines the type of the variable backing this parameter. # noqa: E501 + + :return: The var of this CoreParameter. # noqa: E501 + :rtype: CoreVariable + """ + return self._var + + @var.setter + def var(self, var): + """Sets the var of this CoreParameter. + + +required Variable. Defines the type of the variable backing this parameter. # noqa: E501 + + :param var: The var of this CoreParameter. # noqa: E501 + :type: CoreVariable + """ + + self._var = var + + @property + def default(self): + """Gets the default of this CoreParameter. # noqa: E501 + + Defines a default value that has to match the variable type defined. # noqa: E501 + + :return: The default of this CoreParameter. # noqa: E501 + :rtype: CoreLiteral + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this CoreParameter. + + Defines a default value that has to match the variable type defined. # noqa: E501 + + :param default: The default of this CoreParameter. # noqa: E501 + :type: CoreLiteral + """ + + self._default = default + + @property + def required(self): + """Gets the required of this CoreParameter. # noqa: E501 + + +optional, is this value required to be filled. # noqa: E501 + + :return: The required of this CoreParameter. # noqa: E501 + :rtype: bool + """ + return self._required + + @required.setter + def required(self, required): + """Sets the required of this CoreParameter. + + +optional, is this value required to be filled. # noqa: E501 + + :param required: The required of this CoreParameter. # noqa: E501 + :type: bool + """ + + self._required = required + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py new file mode 100644 index 0000000000..f2ca84c2e1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_parameter import CoreParameter # noqa: F401,E501 + + +class CoreParameterMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parameters': 'dict(str, CoreParameter)' + } + + attribute_map = { + 'parameters': 'parameters' + } + + def __init__(self, parameters=None): # noqa: E501 + """CoreParameterMap - a model defined in Swagger""" # noqa: E501 + + self._parameters = None + self.discriminator = None + + if parameters is not None: + self.parameters = parameters + + @property + def parameters(self): + """Gets the parameters of this CoreParameterMap. # noqa: E501 + + Defines a map of parameter names to parameters. # noqa: E501 + + :return: The parameters of this CoreParameterMap. # noqa: E501 + :rtype: dict(str, CoreParameter) + """ + return self._parameters + + @parameters.setter + def parameters(self, parameters): + """Sets the parameters of this CoreParameterMap. + + Defines a map of parameter names to parameters. # noqa: E501 + + :param parameters: The parameters of this CoreParameterMap. # noqa: E501 + :type: dict(str, CoreParameter) + """ + + self._parameters = parameters + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreParameterMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreParameterMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py new file mode 100644 index 0000000000..8a834e28d7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CorePrimitive(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'integer': 'str', + 'float_value': 'float', + 'string_value': 'str', + 'boolean': 'bool', + '_datetime': 'datetime', + 'duration': 'str' + } + + attribute_map = { + 'integer': 'integer', + 'float_value': 'float_value', + 'string_value': 'string_value', + 'boolean': 'boolean', + '_datetime': 'datetime', + 'duration': 'duration' + } + + def __init__(self, integer=None, float_value=None, string_value=None, boolean=None, _datetime=None, duration=None): # noqa: E501 + """CorePrimitive - a model defined in Swagger""" # noqa: E501 + + self._integer = None + self._float_value = None + self._string_value = None + self._boolean = None + self.__datetime = None + self._duration = None + self.discriminator = None + + if integer is not None: + self.integer = integer + if float_value is not None: + self.float_value = float_value + if string_value is not None: + self.string_value = string_value + if boolean is not None: + self.boolean = boolean + if _datetime is not None: + self._datetime = _datetime + if duration is not None: + self.duration = duration + + @property + def integer(self): + """Gets the integer of this CorePrimitive. # noqa: E501 + + + :return: The integer of this CorePrimitive. # noqa: E501 + :rtype: str + """ + return self._integer + + @integer.setter + def integer(self, integer): + """Sets the integer of this CorePrimitive. + + + :param integer: The integer of this CorePrimitive. # noqa: E501 + :type: str + """ + + self._integer = integer + + @property + def float_value(self): + """Gets the float_value of this CorePrimitive. # noqa: E501 + + + :return: The float_value of this CorePrimitive. # noqa: E501 + :rtype: float + """ + return self._float_value + + @float_value.setter + def float_value(self, float_value): + """Sets the float_value of this CorePrimitive. + + + :param float_value: The float_value of this CorePrimitive. # noqa: E501 + :type: float + """ + + self._float_value = float_value + + @property + def string_value(self): + """Gets the string_value of this CorePrimitive. # noqa: E501 + + + :return: The string_value of this CorePrimitive. # noqa: E501 + :rtype: str + """ + return self._string_value + + @string_value.setter + def string_value(self, string_value): + """Sets the string_value of this CorePrimitive. + + + :param string_value: The string_value of this CorePrimitive. # noqa: E501 + :type: str + """ + + self._string_value = string_value + + @property + def boolean(self): + """Gets the boolean of this CorePrimitive. # noqa: E501 + + + :return: The boolean of this CorePrimitive. # noqa: E501 + :rtype: bool + """ + return self._boolean + + @boolean.setter + def boolean(self, boolean): + """Sets the boolean of this CorePrimitive. + + + :param boolean: The boolean of this CorePrimitive. # noqa: E501 + :type: bool + """ + + self._boolean = boolean + + @property + def _datetime(self): + """Gets the _datetime of this CorePrimitive. # noqa: E501 + + + :return: The _datetime of this CorePrimitive. # noqa: E501 + :rtype: datetime + """ + return self.__datetime + + @_datetime.setter + def _datetime(self, _datetime): + """Sets the _datetime of this CorePrimitive. + + + :param _datetime: The _datetime of this CorePrimitive. # noqa: E501 + :type: datetime + """ + + self.__datetime = _datetime + + @property + def duration(self): + """Gets the duration of this CorePrimitive. # noqa: E501 + + + :return: The duration of this CorePrimitive. # noqa: E501 + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this CorePrimitive. + + + :param duration: The duration of this CorePrimitive. # noqa: E501 + :type: str + """ + + self._duration = duration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CorePrimitive, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CorePrimitive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py new file mode 100644 index 0000000000..4b62c9aca7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreResourceType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "UNSPECIFIED" + TASK = "TASK" + WORKFLOW = "WORKFLOW" + LAUNCH_PLAN = "LAUNCH_PLAN" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreResourceType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreResourceType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreResourceType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py new file mode 100644 index 0000000000..0e14879b03 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry # noqa: F401,E501 + + +class CoreResources(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'requests': 'list[ResourcesResourceEntry]', + 'limits': 'list[ResourcesResourceEntry]' + } + + attribute_map = { + 'requests': 'requests', + 'limits': 'limits' + } + + def __init__(self, requests=None, limits=None): # noqa: E501 + """CoreResources - a model defined in Swagger""" # noqa: E501 + + self._requests = None + self._limits = None + self.discriminator = None + + if requests is not None: + self.requests = requests + if limits is not None: + self.limits = limits + + @property + def requests(self): + """Gets the requests of this CoreResources. # noqa: E501 + + The desired set of resources requested. ResourceNames must be unique within the list. # noqa: E501 + + :return: The requests of this CoreResources. # noqa: E501 + :rtype: list[ResourcesResourceEntry] + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this CoreResources. + + The desired set of resources requested. ResourceNames must be unique within the list. # noqa: E501 + + :param requests: The requests of this CoreResources. # noqa: E501 + :type: list[ResourcesResourceEntry] + """ + + self._requests = requests + + @property + def limits(self): + """Gets the limits of this CoreResources. # noqa: E501 + + Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. # noqa: E501 + + :return: The limits of this CoreResources. # noqa: E501 + :rtype: list[ResourcesResourceEntry] + """ + return self._limits + + @limits.setter + def limits(self, limits): + """Sets the limits of this CoreResources. + + Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. # noqa: E501 + + :param limits: The limits of this CoreResources. # noqa: E501 + :type: list[ResourcesResourceEntry] + """ + + self._limits = limits + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreResources, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreResources): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py new file mode 100644 index 0000000000..45ba6d22f4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreRetryStrategy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'retries': 'int' + } + + attribute_map = { + 'retries': 'retries' + } + + def __init__(self, retries=None): # noqa: E501 + """CoreRetryStrategy - a model defined in Swagger""" # noqa: E501 + + self._retries = None + self.discriminator = None + + if retries is not None: + self.retries = retries + + @property + def retries(self): + """Gets the retries of this CoreRetryStrategy. # noqa: E501 + + Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. # noqa: E501 + + :return: The retries of this CoreRetryStrategy. # noqa: E501 + :rtype: int + """ + return self._retries + + @retries.setter + def retries(self, retries): + """Sets the retries of this CoreRetryStrategy. + + Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. # noqa: E501 + + :param retries: The retries of this CoreRetryStrategy. # noqa: E501 + :type: int + """ + + self._retries = retries + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreRetryStrategy, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreRetryStrategy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py new file mode 100644 index 0000000000..b14a330293 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType # noqa: F401,E501 + + +class CoreRuntimeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'RuntimeMetadataRuntimeType', + 'version': 'str', + 'flavor': 'str' + } + + attribute_map = { + 'type': 'type', + 'version': 'version', + 'flavor': 'flavor' + } + + def __init__(self, type=None, version=None, flavor=None): # noqa: E501 + """CoreRuntimeMetadata - a model defined in Swagger""" # noqa: E501 + + self._type = None + self._version = None + self._flavor = None + self.discriminator = None + + if type is not None: + self.type = type + if version is not None: + self.version = version + if flavor is not None: + self.flavor = flavor + + @property + def type(self): + """Gets the type of this CoreRuntimeMetadata. # noqa: E501 + + Type of runtime. # noqa: E501 + + :return: The type of this CoreRuntimeMetadata. # noqa: E501 + :rtype: RuntimeMetadataRuntimeType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreRuntimeMetadata. + + Type of runtime. # noqa: E501 + + :param type: The type of this CoreRuntimeMetadata. # noqa: E501 + :type: RuntimeMetadataRuntimeType + """ + + self._type = type + + @property + def version(self): + """Gets the version of this CoreRuntimeMetadata. # noqa: E501 + + Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. # noqa: E501 + + :return: The version of this CoreRuntimeMetadata. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this CoreRuntimeMetadata. + + Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. # noqa: E501 + + :param version: The version of this CoreRuntimeMetadata. # noqa: E501 + :type: str + """ + + self._version = version + + @property + def flavor(self): + """Gets the flavor of this CoreRuntimeMetadata. # noqa: E501 + + +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). # noqa: E501 + + :return: The flavor of this CoreRuntimeMetadata. # noqa: E501 + :rtype: str + """ + return self._flavor + + @flavor.setter + def flavor(self, flavor): + """Sets the flavor of this CoreRuntimeMetadata. + + +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). # noqa: E501 + + :param flavor: The flavor of this CoreRuntimeMetadata. # noqa: E501 + :type: str + """ + + self._flavor = flavor + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreRuntimeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreRuntimeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py new file mode 100644 index 0000000000..4724e9238c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py @@ -0,0 +1,279 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binary import CoreBinary # noqa: F401,E501 +from flyteadmin.models.core_blob import CoreBlob # noqa: F401,E501 +from flyteadmin.models.core_error import CoreError # noqa: F401,E501 +from flyteadmin.models.core_primitive import CorePrimitive # noqa: F401,E501 +from flyteadmin.models.core_void import CoreVoid # noqa: F401,E501 +from flyteadmin.models.flyteidlcore_schema import FlyteidlcoreSchema # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreScalar(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'primitive': 'CorePrimitive', + 'blob': 'CoreBlob', + 'binary': 'CoreBinary', + 'schema': 'FlyteidlcoreSchema', + 'none_type': 'CoreVoid', + 'error': 'CoreError', + 'generic': 'ProtobufStruct' + } + + attribute_map = { + 'primitive': 'primitive', + 'blob': 'blob', + 'binary': 'binary', + 'schema': 'schema', + 'none_type': 'none_type', + 'error': 'error', + 'generic': 'generic' + } + + def __init__(self, primitive=None, blob=None, binary=None, schema=None, none_type=None, error=None, generic=None): # noqa: E501 + """CoreScalar - a model defined in Swagger""" # noqa: E501 + + self._primitive = None + self._blob = None + self._binary = None + self._schema = None + self._none_type = None + self._error = None + self._generic = None + self.discriminator = None + + if primitive is not None: + self.primitive = primitive + if blob is not None: + self.blob = blob + if binary is not None: + self.binary = binary + if schema is not None: + self.schema = schema + if none_type is not None: + self.none_type = none_type + if error is not None: + self.error = error + if generic is not None: + self.generic = generic + + @property + def primitive(self): + """Gets the primitive of this CoreScalar. # noqa: E501 + + + :return: The primitive of this CoreScalar. # noqa: E501 + :rtype: CorePrimitive + """ + return self._primitive + + @primitive.setter + def primitive(self, primitive): + """Sets the primitive of this CoreScalar. + + + :param primitive: The primitive of this CoreScalar. # noqa: E501 + :type: CorePrimitive + """ + + self._primitive = primitive + + @property + def blob(self): + """Gets the blob of this CoreScalar. # noqa: E501 + + + :return: The blob of this CoreScalar. # noqa: E501 + :rtype: CoreBlob + """ + return self._blob + + @blob.setter + def blob(self, blob): + """Sets the blob of this CoreScalar. + + + :param blob: The blob of this CoreScalar. # noqa: E501 + :type: CoreBlob + """ + + self._blob = blob + + @property + def binary(self): + """Gets the binary of this CoreScalar. # noqa: E501 + + + :return: The binary of this CoreScalar. # noqa: E501 + :rtype: CoreBinary + """ + return self._binary + + @binary.setter + def binary(self, binary): + """Sets the binary of this CoreScalar. + + + :param binary: The binary of this CoreScalar. # noqa: E501 + :type: CoreBinary + """ + + self._binary = binary + + @property + def schema(self): + """Gets the schema of this CoreScalar. # noqa: E501 + + + :return: The schema of this CoreScalar. # noqa: E501 + :rtype: FlyteidlcoreSchema + """ + return self._schema + + @schema.setter + def schema(self, schema): + """Sets the schema of this CoreScalar. + + + :param schema: The schema of this CoreScalar. # noqa: E501 + :type: FlyteidlcoreSchema + """ + + self._schema = schema + + @property + def none_type(self): + """Gets the none_type of this CoreScalar. # noqa: E501 + + + :return: The none_type of this CoreScalar. # noqa: E501 + :rtype: CoreVoid + """ + return self._none_type + + @none_type.setter + def none_type(self, none_type): + """Sets the none_type of this CoreScalar. + + + :param none_type: The none_type of this CoreScalar. # noqa: E501 + :type: CoreVoid + """ + + self._none_type = none_type + + @property + def error(self): + """Gets the error of this CoreScalar. # noqa: E501 + + + :return: The error of this CoreScalar. # noqa: E501 + :rtype: CoreError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this CoreScalar. + + + :param error: The error of this CoreScalar. # noqa: E501 + :type: CoreError + """ + + self._error = error + + @property + def generic(self): + """Gets the generic of this CoreScalar. # noqa: E501 + + + :return: The generic of this CoreScalar. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._generic + + @generic.setter + def generic(self, generic): + """Sets the generic of this CoreScalar. + + + :param generic: The generic of this CoreScalar. # noqa: E501 + :type: ProtobufStruct + """ + + self._generic = generic + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreScalar, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreScalar): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py new file mode 100644 index 0000000000..679e617a9e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn # noqa: F401,E501 + + +class CoreSchemaType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'columns': 'list[SchemaTypeSchemaColumn]' + } + + attribute_map = { + 'columns': 'columns' + } + + def __init__(self, columns=None): # noqa: E501 + """CoreSchemaType - a model defined in Swagger""" # noqa: E501 + + self._columns = None + self.discriminator = None + + if columns is not None: + self.columns = columns + + @property + def columns(self): + """Gets the columns of this CoreSchemaType. # noqa: E501 + + A list of ordered columns this schema comprises of. # noqa: E501 + + :return: The columns of this CoreSchemaType. # noqa: E501 + :rtype: list[SchemaTypeSchemaColumn] + """ + return self._columns + + @columns.setter + def columns(self, columns): + """Sets the columns of this CoreSchemaType. + + A list of ordered columns this schema comprises of. # noqa: E501 + + :param columns: The columns of this CoreSchemaType. # noqa: E501 + :type: list[SchemaTypeSchemaColumn] + """ + + self._columns = columns + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSchemaType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSchemaType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py new file mode 100644 index 0000000000..1a98e893f3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreSimpleType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NONE = "NONE" + INTEGER = "INTEGER" + FLOAT = "FLOAT" + STRING = "STRING" + BOOLEAN = "BOOLEAN" + DATETIME = "DATETIME" + DURATION = "DURATION" + BINARY = "BINARY" + ERROR = "ERROR" + STRUCT = "STRUCT" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreSimpleType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreSimpleType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreSimpleType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py new file mode 100644 index 0000000000..766ccccee7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 + + +class CoreTaskExecutionIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_id': 'CoreIdentifier', + 'node_execution_id': 'CoreNodeExecutionIdentifier', + 'retry_attempt': 'int' + } + + attribute_map = { + 'task_id': 'task_id', + 'node_execution_id': 'node_execution_id', + 'retry_attempt': 'retry_attempt' + } + + def __init__(self, task_id=None, node_execution_id=None, retry_attempt=None): # noqa: E501 + """CoreTaskExecutionIdentifier - a model defined in Swagger""" # noqa: E501 + + self._task_id = None + self._node_execution_id = None + self._retry_attempt = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + if node_execution_id is not None: + self.node_execution_id = node_execution_id + if retry_attempt is not None: + self.retry_attempt = retry_attempt + + @property + def task_id(self): + """Gets the task_id of this CoreTaskExecutionIdentifier. # noqa: E501 + + + :return: The task_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this CoreTaskExecutionIdentifier. + + + :param task_id: The task_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :type: CoreIdentifier + """ + + self._task_id = task_id + + @property + def node_execution_id(self): + """Gets the node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 + + + :return: The node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._node_execution_id + + @node_execution_id.setter + def node_execution_id(self, node_execution_id): + """Sets the node_execution_id of this CoreTaskExecutionIdentifier. + + + :param node_execution_id: The node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._node_execution_id = node_execution_id + + @property + def retry_attempt(self): + """Gets the retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 + + + :return: The retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 + :rtype: int + """ + return self._retry_attempt + + @retry_attempt.setter + def retry_attempt(self, retry_attempt): + """Sets the retry_attempt of this CoreTaskExecutionIdentifier. + + + :param retry_attempt: The retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 + :type: int + """ + + self._retry_attempt = retry_attempt + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskExecutionIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskExecutionIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py new file mode 100644 index 0000000000..7ff44b100a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreTaskExecutionPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + QUEUED = "QUEUED" + RUNNING = "RUNNING" + SUCCEEDED = "SUCCEEDED" + ABORTED = "ABORTED" + FAILED = "FAILED" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreTaskExecutionPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskExecutionPhase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskExecutionPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py new file mode 100644 index 0000000000..a219028ae2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat # noqa: F401,E501 + + +class CoreTaskLog(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uri': 'str', + 'name': 'str', + 'message_format': 'TaskLogMessageFormat', + 'ttl': 'str' + } + + attribute_map = { + 'uri': 'uri', + 'name': 'name', + 'message_format': 'message_format', + 'ttl': 'ttl' + } + + def __init__(self, uri=None, name=None, message_format=None, ttl=None): # noqa: E501 + """CoreTaskLog - a model defined in Swagger""" # noqa: E501 + + self._uri = None + self._name = None + self._message_format = None + self._ttl = None + self.discriminator = None + + if uri is not None: + self.uri = uri + if name is not None: + self.name = name + if message_format is not None: + self.message_format = message_format + if ttl is not None: + self.ttl = ttl + + @property + def uri(self): + """Gets the uri of this CoreTaskLog. # noqa: E501 + + + :return: The uri of this CoreTaskLog. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this CoreTaskLog. + + + :param uri: The uri of this CoreTaskLog. # noqa: E501 + :type: str + """ + + self._uri = uri + + @property + def name(self): + """Gets the name of this CoreTaskLog. # noqa: E501 + + + :return: The name of this CoreTaskLog. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreTaskLog. + + + :param name: The name of this CoreTaskLog. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def message_format(self): + """Gets the message_format of this CoreTaskLog. # noqa: E501 + + + :return: The message_format of this CoreTaskLog. # noqa: E501 + :rtype: TaskLogMessageFormat + """ + return self._message_format + + @message_format.setter + def message_format(self, message_format): + """Sets the message_format of this CoreTaskLog. + + + :param message_format: The message_format of this CoreTaskLog. # noqa: E501 + :type: TaskLogMessageFormat + """ + + self._message_format = message_format + + @property + def ttl(self): + """Gets the ttl of this CoreTaskLog. # noqa: E501 + + + :return: The ttl of this CoreTaskLog. # noqa: E501 + :rtype: str + """ + return self._ttl + + @ttl.setter + def ttl(self, ttl): + """Sets the ttl of this CoreTaskLog. + + + :param ttl: The ttl of this CoreTaskLog. # noqa: E501 + :type: str + """ + + self._ttl = ttl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskLog, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskLog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py new file mode 100644 index 0000000000..1e60f9bcea --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: F401,E501 +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata # noqa: F401,E501 + + +class CoreTaskMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'discoverable': 'bool', + 'runtime': 'CoreRuntimeMetadata', + 'timeout': 'str', + 'retries': 'CoreRetryStrategy', + 'discovery_version': 'str', + 'deprecated_error_message': 'str' + } + + attribute_map = { + 'discoverable': 'discoverable', + 'runtime': 'runtime', + 'timeout': 'timeout', + 'retries': 'retries', + 'discovery_version': 'discovery_version', + 'deprecated_error_message': 'deprecated_error_message' + } + + def __init__(self, discoverable=None, runtime=None, timeout=None, retries=None, discovery_version=None, deprecated_error_message=None): # noqa: E501 + """CoreTaskMetadata - a model defined in Swagger""" # noqa: E501 + + self._discoverable = None + self._runtime = None + self._timeout = None + self._retries = None + self._discovery_version = None + self._deprecated_error_message = None + self.discriminator = None + + if discoverable is not None: + self.discoverable = discoverable + if runtime is not None: + self.runtime = runtime + if timeout is not None: + self.timeout = timeout + if retries is not None: + self.retries = retries + if discovery_version is not None: + self.discovery_version = discovery_version + if deprecated_error_message is not None: + self.deprecated_error_message = deprecated_error_message + + @property + def discoverable(self): + """Gets the discoverable of this CoreTaskMetadata. # noqa: E501 + + Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. # noqa: E501 + + :return: The discoverable of this CoreTaskMetadata. # noqa: E501 + :rtype: bool + """ + return self._discoverable + + @discoverable.setter + def discoverable(self, discoverable): + """Sets the discoverable of this CoreTaskMetadata. + + Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. # noqa: E501 + + :param discoverable: The discoverable of this CoreTaskMetadata. # noqa: E501 + :type: bool + """ + + self._discoverable = discoverable + + @property + def runtime(self): + """Gets the runtime of this CoreTaskMetadata. # noqa: E501 + + Runtime information about the task. # noqa: E501 + + :return: The runtime of this CoreTaskMetadata. # noqa: E501 + :rtype: CoreRuntimeMetadata + """ + return self._runtime + + @runtime.setter + def runtime(self, runtime): + """Sets the runtime of this CoreTaskMetadata. + + Runtime information about the task. # noqa: E501 + + :param runtime: The runtime of this CoreTaskMetadata. # noqa: E501 + :type: CoreRuntimeMetadata + """ + + self._runtime = runtime + + @property + def timeout(self): + """Gets the timeout of this CoreTaskMetadata. # noqa: E501 + + The overall timeout of a task including user-triggered retries. # noqa: E501 + + :return: The timeout of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._timeout + + @timeout.setter + def timeout(self, timeout): + """Sets the timeout of this CoreTaskMetadata. + + The overall timeout of a task including user-triggered retries. # noqa: E501 + + :param timeout: The timeout of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._timeout = timeout + + @property + def retries(self): + """Gets the retries of this CoreTaskMetadata. # noqa: E501 + + Number of retries per task. # noqa: E501 + + :return: The retries of this CoreTaskMetadata. # noqa: E501 + :rtype: CoreRetryStrategy + """ + return self._retries + + @retries.setter + def retries(self, retries): + """Sets the retries of this CoreTaskMetadata. + + Number of retries per task. # noqa: E501 + + :param retries: The retries of this CoreTaskMetadata. # noqa: E501 + :type: CoreRetryStrategy + """ + + self._retries = retries + + @property + def discovery_version(self): + """Gets the discovery_version of this CoreTaskMetadata. # noqa: E501 + + Indicates a logical version to apply to this task for the purpose of discovery. # noqa: E501 + + :return: The discovery_version of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._discovery_version + + @discovery_version.setter + def discovery_version(self, discovery_version): + """Sets the discovery_version of this CoreTaskMetadata. + + Indicates a logical version to apply to this task for the purpose of discovery. # noqa: E501 + + :param discovery_version: The discovery_version of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._discovery_version = discovery_version + + @property + def deprecated_error_message(self): + """Gets the deprecated_error_message of this CoreTaskMetadata. # noqa: E501 + + If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. # noqa: E501 + + :return: The deprecated_error_message of this CoreTaskMetadata. # noqa: E501 + :rtype: str + """ + return self._deprecated_error_message + + @deprecated_error_message.setter + def deprecated_error_message(self, deprecated_error_message): + """Sets the deprecated_error_message of this CoreTaskMetadata. + + If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. # noqa: E501 + + :param deprecated_error_message: The deprecated_error_message of this CoreTaskMetadata. # noqa: E501 + :type: str + """ + + self._deprecated_error_message = deprecated_error_message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py new file mode 100644 index 0000000000..4d3e506018 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class CoreTaskNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reference_id': 'CoreIdentifier' + } + + attribute_map = { + 'reference_id': 'reference_id' + } + + def __init__(self, reference_id=None): # noqa: E501 + """CoreTaskNode - a model defined in Swagger""" # noqa: E501 + + self._reference_id = None + self.discriminator = None + + if reference_id is not None: + self.reference_id = reference_id + + @property + def reference_id(self): + """Gets the reference_id of this CoreTaskNode. # noqa: E501 + + A globally unique identifier for the task. # noqa: E501 + + :return: The reference_id of this CoreTaskNode. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._reference_id + + @reference_id.setter + def reference_id(self, reference_id): + """Sets the reference_id of this CoreTaskNode. + + A globally unique identifier for the task. # noqa: E501 + + :param reference_id: The reference_id of this CoreTaskNode. # noqa: E501 + :type: CoreIdentifier + """ + + self._reference_id = reference_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py new file mode 100644 index 0000000000..49ab6ad343 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_container import CoreContainer # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_task_metadata import CoreTaskMetadata # noqa: F401,E501 +from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class CoreTaskTemplate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'type': 'str', + 'metadata': 'CoreTaskMetadata', + 'interface': 'CoreTypedInterface', + 'custom': 'ProtobufStruct', + 'container': 'CoreContainer' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'metadata': 'metadata', + 'interface': 'interface', + 'custom': 'custom', + 'container': 'container' + } + + def __init__(self, id=None, type=None, metadata=None, interface=None, custom=None, container=None): # noqa: E501 + """CoreTaskTemplate - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._type = None + self._metadata = None + self._interface = None + self._custom = None + self._container = None + self.discriminator = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if metadata is not None: + self.metadata = metadata + if interface is not None: + self.interface = interface + if custom is not None: + self.custom = custom + if container is not None: + self.container = container + + @property + def id(self): + """Gets the id of this CoreTaskTemplate. # noqa: E501 + + Auto generated taskId by the system. Task Id uniquely identifies this task globally. # noqa: E501 + + :return: The id of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CoreTaskTemplate. + + Auto generated taskId by the system. Task Id uniquely identifies this task globally. # noqa: E501 + + :param id: The id of this CoreTaskTemplate. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def type(self): + """Gets the type of this CoreTaskTemplate. # noqa: E501 + + A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. # noqa: E501 + + :return: The type of this CoreTaskTemplate. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreTaskTemplate. + + A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. # noqa: E501 + + :param type: The type of this CoreTaskTemplate. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def metadata(self): + """Gets the metadata of this CoreTaskTemplate. # noqa: E501 + + Extra metadata about the task. # noqa: E501 + + :return: The metadata of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreTaskMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreTaskTemplate. + + Extra metadata about the task. # noqa: E501 + + :param metadata: The metadata of this CoreTaskTemplate. # noqa: E501 + :type: CoreTaskMetadata + """ + + self._metadata = metadata + + @property + def interface(self): + """Gets the interface of this CoreTaskTemplate. # noqa: E501 + + A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees compile-time validation of the workflow to avoid costly runtime failures. # noqa: E501 + + :return: The interface of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreTypedInterface + """ + return self._interface + + @interface.setter + def interface(self, interface): + """Sets the interface of this CoreTaskTemplate. + + A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees compile-time validation of the workflow to avoid costly runtime failures. # noqa: E501 + + :param interface: The interface of this CoreTaskTemplate. # noqa: E501 + :type: CoreTypedInterface + """ + + self._interface = interface + + @property + def custom(self): + """Gets the custom of this CoreTaskTemplate. # noqa: E501 + + Custom data about the task. This is extensible to allow various plugins in the system. # noqa: E501 + + :return: The custom of this CoreTaskTemplate. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._custom + + @custom.setter + def custom(self, custom): + """Sets the custom of this CoreTaskTemplate. + + Custom data about the task. This is extensible to allow various plugins in the system. # noqa: E501 + + :param custom: The custom of this CoreTaskTemplate. # noqa: E501 + :type: ProtobufStruct + """ + + self._custom = custom + + @property + def container(self): + """Gets the container of this CoreTaskTemplate. # noqa: E501 + + + :return: The container of this CoreTaskTemplate. # noqa: E501 + :rtype: CoreContainer + """ + return self._container + + @container.setter + def container(self, container): + """Sets the container of this CoreTaskTemplate. + + + :param container: The container of this CoreTaskTemplate. # noqa: E501 + :type: CoreContainer + """ + + self._container = container + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTaskTemplate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTaskTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py new file mode 100644 index 0000000000..8864814f4b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: F401,E501 + + +class CoreTypedInterface(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inputs': 'CoreVariableMap', + 'outputs': 'CoreVariableMap' + } + + attribute_map = { + 'inputs': 'inputs', + 'outputs': 'outputs' + } + + def __init__(self, inputs=None, outputs=None): # noqa: E501 + """CoreTypedInterface - a model defined in Swagger""" # noqa: E501 + + self._inputs = None + self._outputs = None + self.discriminator = None + + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + + @property + def inputs(self): + """Gets the inputs of this CoreTypedInterface. # noqa: E501 + + + :return: The inputs of this CoreTypedInterface. # noqa: E501 + :rtype: CoreVariableMap + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this CoreTypedInterface. + + + :param inputs: The inputs of this CoreTypedInterface. # noqa: E501 + :type: CoreVariableMap + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this CoreTypedInterface. # noqa: E501 + + + :return: The outputs of this CoreTypedInterface. # noqa: E501 + :rtype: CoreVariableMap + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this CoreTypedInterface. + + + :param outputs: The outputs of this CoreTypedInterface. # noqa: E501 + :type: CoreVariableMap + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreTypedInterface, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreTypedInterface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py new file mode 100644 index 0000000000..186179d2ce --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 + + +class CoreVariable(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'CoreLiteralType', + 'description': 'str' + } + + attribute_map = { + 'type': 'type', + 'description': 'description' + } + + def __init__(self, type=None, description=None): # noqa: E501 + """CoreVariable - a model defined in Swagger""" # noqa: E501 + + self._type = None + self._description = None + self.discriminator = None + + if type is not None: + self.type = type + if description is not None: + self.description = description + + @property + def type(self): + """Gets the type of this CoreVariable. # noqa: E501 + + Variable literal type. # noqa: E501 + + :return: The type of this CoreVariable. # noqa: E501 + :rtype: CoreLiteralType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CoreVariable. + + Variable literal type. # noqa: E501 + + :param type: The type of this CoreVariable. # noqa: E501 + :type: CoreLiteralType + """ + + self._type = type + + @property + def description(self): + """Gets the description of this CoreVariable. # noqa: E501 + + + :return: The description of this CoreVariable. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CoreVariable. + + + :param description: The description of this CoreVariable. # noqa: E501 + :type: str + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreVariable, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreVariable): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py new file mode 100644 index 0000000000..a2a15f83f6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_variable import CoreVariable # noqa: F401,E501 + + +class CoreVariableMap(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'variables': 'dict(str, CoreVariable)' + } + + attribute_map = { + 'variables': 'variables' + } + + def __init__(self, variables=None): # noqa: E501 + """CoreVariableMap - a model defined in Swagger""" # noqa: E501 + + self._variables = None + self.discriminator = None + + if variables is not None: + self.variables = variables + + @property + def variables(self): + """Gets the variables of this CoreVariableMap. # noqa: E501 + + Defines a map of variable names to variables. # noqa: E501 + + :return: The variables of this CoreVariableMap. # noqa: E501 + :rtype: dict(str, CoreVariable) + """ + return self._variables + + @variables.setter + def variables(self, variables): + """Sets the variables of this CoreVariableMap. + + Defines a map of variable names to variables. # noqa: E501 + + :param variables: The variables of this CoreVariableMap. # noqa: E501 + :type: dict(str, CoreVariable) + """ + + self._variables = variables + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreVariableMap, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreVariableMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py new file mode 100644 index 0000000000..709f5a55e3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreVoid(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreVoid - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreVoid, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreVoid): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py new file mode 100644 index 0000000000..09bd015a36 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreWorkflowExecutionIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'project': 'str', + 'domain': 'str', + 'name': 'str' + } + + attribute_map = { + 'project': 'project', + 'domain': 'domain', + 'name': 'name' + } + + def __init__(self, project=None, domain=None, name=None): # noqa: E501 + """CoreWorkflowExecutionIdentifier - a model defined in Swagger""" # noqa: E501 + + self._project = None + self._domain = None + self._name = None + self.discriminator = None + + if project is not None: + self.project = project + if domain is not None: + self.domain = domain + if name is not None: + self.name = name + + @property + def project(self): + """Gets the project of this CoreWorkflowExecutionIdentifier. # noqa: E501 + + Name of the project the resource belongs to. # noqa: E501 + + :return: The project of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._project + + @project.setter + def project(self, project): + """Sets the project of this CoreWorkflowExecutionIdentifier. + + Name of the project the resource belongs to. # noqa: E501 + + :param project: The project of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._project = project + + @property + def domain(self): + """Gets the domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :return: The domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._domain + + @domain.setter + def domain(self, domain): + """Sets the domain of this CoreWorkflowExecutionIdentifier. + + Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 + + :param domain: The domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._domain = domain + + @property + def name(self): + """Gets the name of this CoreWorkflowExecutionIdentifier. # noqa: E501 + + User or system provided value for the resource. # noqa: E501 + + :return: The name of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CoreWorkflowExecutionIdentifier. + + User or system provided value for the resource. # noqa: E501 + + :param name: The name of this CoreWorkflowExecutionIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowExecutionIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowExecutionIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py new file mode 100644 index 0000000000..37fa9bc0af --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreWorkflowExecutionPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNDEFINED = "UNDEFINED" + QUEUED = "QUEUED" + RUNNING = "RUNNING" + SUCCEEDING = "SUCCEEDING" + SUCCEEDED = "SUCCEEDED" + FAILING = "FAILING" + FAILED = "FAILED" + ABORTED = "ABORTED" + TIMED_OUT = "TIMED_OUT" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreWorkflowExecutionPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowExecutionPhase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowExecutionPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py new file mode 100644 index 0000000000..8f8d1bd12f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CoreWorkflowMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CoreWorkflowMetadata - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py new file mode 100644 index 0000000000..9d35249385 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 + + +class CoreWorkflowNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'launchplan_ref': 'CoreIdentifier', + 'sub_workflow_ref': 'CoreIdentifier' + } + + attribute_map = { + 'launchplan_ref': 'launchplan_ref', + 'sub_workflow_ref': 'sub_workflow_ref' + } + + def __init__(self, launchplan_ref=None, sub_workflow_ref=None): # noqa: E501 + """CoreWorkflowNode - a model defined in Swagger""" # noqa: E501 + + self._launchplan_ref = None + self._sub_workflow_ref = None + self.discriminator = None + + if launchplan_ref is not None: + self.launchplan_ref = launchplan_ref + if sub_workflow_ref is not None: + self.sub_workflow_ref = sub_workflow_ref + + @property + def launchplan_ref(self): + """Gets the launchplan_ref of this CoreWorkflowNode. # noqa: E501 + + A globally unique identifier for the launch plan. # noqa: E501 + + :return: The launchplan_ref of this CoreWorkflowNode. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._launchplan_ref + + @launchplan_ref.setter + def launchplan_ref(self, launchplan_ref): + """Sets the launchplan_ref of this CoreWorkflowNode. + + A globally unique identifier for the launch plan. # noqa: E501 + + :param launchplan_ref: The launchplan_ref of this CoreWorkflowNode. # noqa: E501 + :type: CoreIdentifier + """ + + self._launchplan_ref = launchplan_ref + + @property + def sub_workflow_ref(self): + """Gets the sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 + + + :return: The sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._sub_workflow_ref + + @sub_workflow_ref.setter + def sub_workflow_ref(self, sub_workflow_ref): + """Sets the sub_workflow_ref of this CoreWorkflowNode. + + + :param sub_workflow_ref: The sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 + :type: CoreIdentifier + """ + + self._sub_workflow_ref = sub_workflow_ref + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py new file mode 100644 index 0000000000..86795a6a0f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_binding import CoreBinding # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 +from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: F401,E501 +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata # noqa: F401,E501 + + +class CoreWorkflowTemplate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreIdentifier', + 'metadata': 'CoreWorkflowMetadata', + 'interface': 'CoreTypedInterface', + 'nodes': 'list[CoreNode]', + 'outputs': 'list[CoreBinding]', + 'failure_node': 'CoreNode' + } + + attribute_map = { + 'id': 'id', + 'metadata': 'metadata', + 'interface': 'interface', + 'nodes': 'nodes', + 'outputs': 'outputs', + 'failure_node': 'failure_node' + } + + def __init__(self, id=None, metadata=None, interface=None, nodes=None, outputs=None, failure_node=None): # noqa: E501 + """CoreWorkflowTemplate - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._metadata = None + self._interface = None + self._nodes = None + self._outputs = None + self._failure_node = None + self.discriminator = None + + if id is not None: + self.id = id + if metadata is not None: + self.metadata = metadata + if interface is not None: + self.interface = interface + if nodes is not None: + self.nodes = nodes + if outputs is not None: + self.outputs = outputs + if failure_node is not None: + self.failure_node = failure_node + + @property + def id(self): + """Gets the id of this CoreWorkflowTemplate. # noqa: E501 + + This is an autogenerated id by the system. The id is globally unique across the system. # noqa: E501 + + :return: The id of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CoreWorkflowTemplate. + + This is an autogenerated id by the system. The id is globally unique across the system. # noqa: E501 + + :param id: The id of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreIdentifier + """ + + self._id = id + + @property + def metadata(self): + """Gets the metadata of this CoreWorkflowTemplate. # noqa: E501 + + Extra metadata about the workflow. # noqa: E501 + + :return: The metadata of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreWorkflowMetadata + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """Sets the metadata of this CoreWorkflowTemplate. + + Extra metadata about the workflow. # noqa: E501 + + :param metadata: The metadata of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreWorkflowMetadata + """ + + self._metadata = metadata + + @property + def interface(self): + """Gets the interface of this CoreWorkflowTemplate. # noqa: E501 + + Defines a strongly typed interface for the Workflow. This can include some optional parameters. # noqa: E501 + + :return: The interface of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreTypedInterface + """ + return self._interface + + @interface.setter + def interface(self, interface): + """Sets the interface of this CoreWorkflowTemplate. + + Defines a strongly typed interface for the Workflow. This can include some optional parameters. # noqa: E501 + + :param interface: The interface of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreTypedInterface + """ + + self._interface = interface + + @property + def nodes(self): + """Gets the nodes of this CoreWorkflowTemplate. # noqa: E501 + + A list of nodes. In addition, \"globals\" is a special reserved node id that can be used to consume workflow inputs. # noqa: E501 + + :return: The nodes of this CoreWorkflowTemplate. # noqa: E501 + :rtype: list[CoreNode] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this CoreWorkflowTemplate. + + A list of nodes. In addition, \"globals\" is a special reserved node id that can be used to consume workflow inputs. # noqa: E501 + + :param nodes: The nodes of this CoreWorkflowTemplate. # noqa: E501 + :type: list[CoreNode] + """ + + self._nodes = nodes + + @property + def outputs(self): + """Gets the outputs of this CoreWorkflowTemplate. # noqa: E501 + + A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. # noqa: E501 + + :return: The outputs of this CoreWorkflowTemplate. # noqa: E501 + :rtype: list[CoreBinding] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this CoreWorkflowTemplate. + + A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. # noqa: E501 + + :param outputs: The outputs of this CoreWorkflowTemplate. # noqa: E501 + :type: list[CoreBinding] + """ + + self._outputs = outputs + + @property + def failure_node(self): + """Gets the failure_node of this CoreWorkflowTemplate. # noqa: E501 + + +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named \"error\" of type pb.lyft.flyte.core.Error. # noqa: E501 + + :return: The failure_node of this CoreWorkflowTemplate. # noqa: E501 + :rtype: CoreNode + """ + return self._failure_node + + @failure_node.setter + def failure_node(self, failure_node): + """Sets the failure_node of this CoreWorkflowTemplate. + + +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named \"error\" of type pb.lyft.flyte.core.Error. # noqa: E501 + + :param failure_node: The failure_node of this CoreWorkflowTemplate. # noqa: E501 + :type: CoreNode + """ + + self._failure_node = failure_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CoreWorkflowTemplate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CoreWorkflowTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py new file mode 100644 index 0000000000..ff758e5d0b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py @@ -0,0 +1,335 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: F401,E501 +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata # noqa: F401,E501 +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata # noqa: F401,E501 + + +class EventNodeExecutionEvent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreNodeExecutionIdentifier', + 'producer_id': 'str', + 'phase': 'CoreNodeExecutionPhase', + 'occurred_at': 'datetime', + 'input_uri': 'str', + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'workflow_node_metadata': 'FlyteidleventWorkflowNodeMetadata', + 'parent_task_metadata': 'EventParentTaskExecutionMetadata' + } + + attribute_map = { + 'id': 'id', + 'producer_id': 'producer_id', + 'phase': 'phase', + 'occurred_at': 'occurred_at', + 'input_uri': 'input_uri', + 'output_uri': 'output_uri', + 'error': 'error', + 'workflow_node_metadata': 'workflow_node_metadata', + 'parent_task_metadata': 'parent_task_metadata' + } + + def __init__(self, id=None, producer_id=None, phase=None, occurred_at=None, input_uri=None, output_uri=None, error=None, workflow_node_metadata=None, parent_task_metadata=None): # noqa: E501 + """EventNodeExecutionEvent - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._producer_id = None + self._phase = None + self._occurred_at = None + self._input_uri = None + self._output_uri = None + self._error = None + self._workflow_node_metadata = None + self._parent_task_metadata = None + self.discriminator = None + + if id is not None: + self.id = id + if producer_id is not None: + self.producer_id = producer_id + if phase is not None: + self.phase = phase + if occurred_at is not None: + self.occurred_at = occurred_at + if input_uri is not None: + self.input_uri = input_uri + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if workflow_node_metadata is not None: + self.workflow_node_metadata = workflow_node_metadata + if parent_task_metadata is not None: + self.parent_task_metadata = parent_task_metadata + + @property + def id(self): + """Gets the id of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The id of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this EventNodeExecutionEvent. + + + :param id: The id of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._id = id + + @property + def producer_id(self): + """Gets the producer_id of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The producer_id of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._producer_id + + @producer_id.setter + def producer_id(self, producer_id): + """Sets the producer_id of this EventNodeExecutionEvent. + + + :param producer_id: The producer_id of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._producer_id = producer_id + + @property + def phase(self): + """Gets the phase of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The phase of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreNodeExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventNodeExecutionEvent. + + + :param phase: The phase of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreNodeExecutionPhase + """ + + self._phase = phase + + @property + def occurred_at(self): + """Gets the occurred_at of this EventNodeExecutionEvent. # noqa: E501 + + This timestamp represents when the original event occurred, it is generated by the executor of the node. # noqa: E501 + + :return: The occurred_at of this EventNodeExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this EventNodeExecutionEvent. + + This timestamp represents when the original event occurred, it is generated by the executor of the node. # noqa: E501 + + :param occurred_at: The occurred_at of this EventNodeExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def input_uri(self): + """Gets the input_uri of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The input_uri of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this EventNodeExecutionEvent. + + + :param input_uri: The input_uri of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def output_uri(self): + """Gets the output_uri of this EventNodeExecutionEvent. # noqa: E501 + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The output_uri of this EventNodeExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this EventNodeExecutionEvent. + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param output_uri: The output_uri of this EventNodeExecutionEvent. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The error of this EventNodeExecutionEvent. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this EventNodeExecutionEvent. + + + :param error: The error of this EventNodeExecutionEvent. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def workflow_node_metadata(self): + """Gets the workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + + + :return: The workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :rtype: FlyteidleventWorkflowNodeMetadata + """ + return self._workflow_node_metadata + + @workflow_node_metadata.setter + def workflow_node_metadata(self, workflow_node_metadata): + """Sets the workflow_node_metadata of this EventNodeExecutionEvent. + + + :param workflow_node_metadata: The workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 + :type: FlyteidleventWorkflowNodeMetadata + """ + + self._workflow_node_metadata = workflow_node_metadata + + @property + def parent_task_metadata(self): + """Gets the parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 + + Specifies which task (if any) launched this node. # noqa: E501 + + :return: The parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 + :rtype: EventParentTaskExecutionMetadata + """ + return self._parent_task_metadata + + @parent_task_metadata.setter + def parent_task_metadata(self, parent_task_metadata): + """Sets the parent_task_metadata of this EventNodeExecutionEvent. + + Specifies which task (if any) launched this node. # noqa: E501 + + :param parent_task_metadata: The parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 + :type: EventParentTaskExecutionMetadata + """ + + self._parent_task_metadata = parent_task_metadata + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventNodeExecutionEvent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventNodeExecutionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py new file mode 100644 index 0000000000..9d640fcd1f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 + + +class EventParentTaskExecutionMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreTaskExecutionIdentifier' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """EventParentTaskExecutionMetadata - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this EventParentTaskExecutionMetadata. # noqa: E501 + + + :return: The id of this EventParentTaskExecutionMetadata. # noqa: E501 + :rtype: CoreTaskExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this EventParentTaskExecutionMetadata. + + + :param id: The id of this EventParentTaskExecutionMetadata. # noqa: E501 + :type: CoreTaskExecutionIdentifier + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventParentTaskExecutionMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventParentTaskExecutionMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py new file mode 100644 index 0000000000..57afca8ae5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py @@ -0,0 +1,420 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class EventTaskExecutionEvent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'task_id': 'CoreIdentifier', + 'parent_node_execution_id': 'CoreNodeExecutionIdentifier', + 'retry_attempt': 'int', + 'phase': 'CoreTaskExecutionPhase', + 'producer_id': 'str', + 'logs': 'list[CoreTaskLog]', + 'occurred_at': 'datetime', + 'input_uri': 'str', + 'output_uri': 'str', + 'error': 'CoreExecutionError', + 'custom_info': 'ProtobufStruct', + 'phase_version': 'int' + } + + attribute_map = { + 'task_id': 'task_id', + 'parent_node_execution_id': 'parent_node_execution_id', + 'retry_attempt': 'retry_attempt', + 'phase': 'phase', + 'producer_id': 'producer_id', + 'logs': 'logs', + 'occurred_at': 'occurred_at', + 'input_uri': 'input_uri', + 'output_uri': 'output_uri', + 'error': 'error', + 'custom_info': 'custom_info', + 'phase_version': 'phase_version' + } + + def __init__(self, task_id=None, parent_node_execution_id=None, retry_attempt=None, phase=None, producer_id=None, logs=None, occurred_at=None, input_uri=None, output_uri=None, error=None, custom_info=None, phase_version=None): # noqa: E501 + """EventTaskExecutionEvent - a model defined in Swagger""" # noqa: E501 + + self._task_id = None + self._parent_node_execution_id = None + self._retry_attempt = None + self._phase = None + self._producer_id = None + self._logs = None + self._occurred_at = None + self._input_uri = None + self._output_uri = None + self._error = None + self._custom_info = None + self._phase_version = None + self.discriminator = None + + if task_id is not None: + self.task_id = task_id + if parent_node_execution_id is not None: + self.parent_node_execution_id = parent_node_execution_id + if retry_attempt is not None: + self.retry_attempt = retry_attempt + if phase is not None: + self.phase = phase + if producer_id is not None: + self.producer_id = producer_id + if logs is not None: + self.logs = logs + if occurred_at is not None: + self.occurred_at = occurred_at + if input_uri is not None: + self.input_uri = input_uri + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + if custom_info is not None: + self.custom_info = custom_info + if phase_version is not None: + self.phase_version = phase_version + + @property + def task_id(self): + """Gets the task_id of this EventTaskExecutionEvent. # noqa: E501 + + ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. # noqa: E501 + + :return: The task_id of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreIdentifier + """ + return self._task_id + + @task_id.setter + def task_id(self, task_id): + """Sets the task_id of this EventTaskExecutionEvent. + + ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. # noqa: E501 + + :param task_id: The task_id of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreIdentifier + """ + + self._task_id = task_id + + @property + def parent_node_execution_id(self): + """Gets the parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._parent_node_execution_id + + @parent_node_execution_id.setter + def parent_node_execution_id(self, parent_node_execution_id): + """Sets the parent_node_execution_id of this EventTaskExecutionEvent. + + + :param parent_node_execution_id: The parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._parent_node_execution_id = parent_node_execution_id + + @property + def retry_attempt(self): + """Gets the retry_attempt of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The retry_attempt of this EventTaskExecutionEvent. # noqa: E501 + :rtype: int + """ + return self._retry_attempt + + @retry_attempt.setter + def retry_attempt(self, retry_attempt): + """Sets the retry_attempt of this EventTaskExecutionEvent. + + + :param retry_attempt: The retry_attempt of this EventTaskExecutionEvent. # noqa: E501 + :type: int + """ + + self._retry_attempt = retry_attempt + + @property + def phase(self): + """Gets the phase of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The phase of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreTaskExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventTaskExecutionEvent. + + + :param phase: The phase of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreTaskExecutionPhase + """ + + self._phase = phase + + @property + def producer_id(self): + """Gets the producer_id of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The producer_id of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._producer_id + + @producer_id.setter + def producer_id(self, producer_id): + """Sets the producer_id of this EventTaskExecutionEvent. + + + :param producer_id: The producer_id of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._producer_id = producer_id + + @property + def logs(self): + """Gets the logs of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The logs of this EventTaskExecutionEvent. # noqa: E501 + :rtype: list[CoreTaskLog] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this EventTaskExecutionEvent. + + + :param logs: The logs of this EventTaskExecutionEvent. # noqa: E501 + :type: list[CoreTaskLog] + """ + + self._logs = logs + + @property + def occurred_at(self): + """Gets the occurred_at of this EventTaskExecutionEvent. # noqa: E501 + + This timestamp represents when the original event occurred, it is generated by the executor of the task. # noqa: E501 + + :return: The occurred_at of this EventTaskExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this EventTaskExecutionEvent. + + This timestamp represents when the original event occurred, it is generated by the executor of the task. # noqa: E501 + + :param occurred_at: The occurred_at of this EventTaskExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def input_uri(self): + """Gets the input_uri of this EventTaskExecutionEvent. # noqa: E501 + + URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The input_uri of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this EventTaskExecutionEvent. + + URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param input_uri: The input_uri of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def output_uri(self): + """Gets the output_uri of this EventTaskExecutionEvent. # noqa: E501 + + URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The output_uri of this EventTaskExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this EventTaskExecutionEvent. + + URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param output_uri: The output_uri of this EventTaskExecutionEvent. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this EventTaskExecutionEvent. # noqa: E501 + + + :return: The error of this EventTaskExecutionEvent. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this EventTaskExecutionEvent. + + + :param error: The error of this EventTaskExecutionEvent. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + @property + def custom_info(self): + """Gets the custom_info of this EventTaskExecutionEvent. # noqa: E501 + + Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. # noqa: E501 + + :return: The custom_info of this EventTaskExecutionEvent. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._custom_info + + @custom_info.setter + def custom_info(self, custom_info): + """Sets the custom_info of this EventTaskExecutionEvent. + + Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. # noqa: E501 + + :param custom_info: The custom_info of this EventTaskExecutionEvent. # noqa: E501 + :type: ProtobufStruct + """ + + self._custom_info = custom_info + + @property + def phase_version(self): + """Gets the phase_version of this EventTaskExecutionEvent. # noqa: E501 + + Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. # noqa: E501 + + :return: The phase_version of this EventTaskExecutionEvent. # noqa: E501 + :rtype: int + """ + return self._phase_version + + @phase_version.setter + def phase_version(self, phase_version): + """Sets the phase_version of this EventTaskExecutionEvent. + + Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. # noqa: E501 + + :param phase_version: The phase_version of this EventTaskExecutionEvent. # noqa: E501 + :type: int + """ + + self._phase_version = phase_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventTaskExecutionEvent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventTaskExecutionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py new file mode 100644 index 0000000000..9fcce5cb44 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 + + +class EventWorkflowExecutionEvent(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_id': 'CoreWorkflowExecutionIdentifier', + 'producer_id': 'str', + 'phase': 'CoreWorkflowExecutionPhase', + 'occurred_at': 'datetime', + 'output_uri': 'str', + 'error': 'CoreExecutionError' + } + + attribute_map = { + 'execution_id': 'execution_id', + 'producer_id': 'producer_id', + 'phase': 'phase', + 'occurred_at': 'occurred_at', + 'output_uri': 'output_uri', + 'error': 'error' + } + + def __init__(self, execution_id=None, producer_id=None, phase=None, occurred_at=None, output_uri=None, error=None): # noqa: E501 + """EventWorkflowExecutionEvent - a model defined in Swagger""" # noqa: E501 + + self._execution_id = None + self._producer_id = None + self._phase = None + self._occurred_at = None + self._output_uri = None + self._error = None + self.discriminator = None + + if execution_id is not None: + self.execution_id = execution_id + if producer_id is not None: + self.producer_id = producer_id + if phase is not None: + self.phase = phase + if occurred_at is not None: + self.occurred_at = occurred_at + if output_uri is not None: + self.output_uri = output_uri + if error is not None: + self.error = error + + @property + def execution_id(self): + """Gets the execution_id of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The execution_id of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this EventWorkflowExecutionEvent. + + + :param execution_id: The execution_id of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + @property + def producer_id(self): + """Gets the producer_id of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The producer_id of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._producer_id + + @producer_id.setter + def producer_id(self, producer_id): + """Sets the producer_id of this EventWorkflowExecutionEvent. + + + :param producer_id: The producer_id of this EventWorkflowExecutionEvent. # noqa: E501 + :type: str + """ + + self._producer_id = producer_id + + @property + def phase(self): + """Gets the phase of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The phase of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreWorkflowExecutionPhase + """ + return self._phase + + @phase.setter + def phase(self, phase): + """Sets the phase of this EventWorkflowExecutionEvent. + + + :param phase: The phase of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreWorkflowExecutionPhase + """ + + self._phase = phase + + @property + def occurred_at(self): + """Gets the occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 + + This timestamp represents when the original event occurred, it is generated by the executor of the workflow. # noqa: E501 + + :return: The occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: datetime + """ + return self._occurred_at + + @occurred_at.setter + def occurred_at(self, occurred_at): + """Sets the occurred_at of this EventWorkflowExecutionEvent. + + This timestamp represents when the original event occurred, it is generated by the executor of the workflow. # noqa: E501 + + :param occurred_at: The occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 + :type: datetime + """ + + self._occurred_at = occurred_at + + @property + def output_uri(self): + """Gets the output_uri of this EventWorkflowExecutionEvent. # noqa: E501 + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :return: The output_uri of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: str + """ + return self._output_uri + + @output_uri.setter + def output_uri(self, output_uri): + """Sets the output_uri of this EventWorkflowExecutionEvent. + + URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 + + :param output_uri: The output_uri of this EventWorkflowExecutionEvent. # noqa: E501 + :type: str + """ + + self._output_uri = output_uri + + @property + def error(self): + """Gets the error of this EventWorkflowExecutionEvent. # noqa: E501 + + + :return: The error of this EventWorkflowExecutionEvent. # noqa: E501 + :rtype: CoreExecutionError + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this EventWorkflowExecutionEvent. + + + :param error: The error of this EventWorkflowExecutionEvent. # noqa: E501 + :type: CoreExecutionError + """ + + self._error = error + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(EventWorkflowExecutionEvent, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, EventWorkflowExecutionEvent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py new file mode 100644 index 0000000000..019691c097 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ExecutionMetadataExecutionMode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + MANUAL = "MANUAL" + SCHEDULED = "SCHEDULED" + SYSTEM = "SYSTEM" + RELAUNCH = "RELAUNCH" + CHILD_WORKFLOW = "CHILD_WORKFLOW" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ExecutionMetadataExecutionMode - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ExecutionMetadataExecutionMode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExecutionMetadataExecutionMode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py new file mode 100644 index 0000000000..b6ac2dc9ba --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py @@ -0,0 +1,176 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure # noqa: F401,E501 +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 + + +class FlyteidladminNodeExecution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreNodeExecutionIdentifier', + 'input_uri': 'str', + 'closure': 'AdminNodeExecutionClosure' + } + + attribute_map = { + 'id': 'id', + 'input_uri': 'input_uri', + 'closure': 'closure' + } + + def __init__(self, id=None, input_uri=None, closure=None): # noqa: E501 + """FlyteidladminNodeExecution - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._input_uri = None + self._closure = None + self.discriminator = None + + if id is not None: + self.id = id + if input_uri is not None: + self.input_uri = input_uri + if closure is not None: + self.closure = closure + + @property + def id(self): + """Gets the id of this FlyteidladminNodeExecution. # noqa: E501 + + Uniquely identifies an individual node execution. # noqa: E501 + + :return: The id of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: CoreNodeExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidladminNodeExecution. + + Uniquely identifies an individual node execution. # noqa: E501 + + :param id: The id of this FlyteidladminNodeExecution. # noqa: E501 + :type: CoreNodeExecutionIdentifier + """ + + self._id = id + + @property + def input_uri(self): + """Gets the input_uri of this FlyteidladminNodeExecution. # noqa: E501 + + Path to remote data store where input blob is stored. # noqa: E501 + + :return: The input_uri of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this FlyteidladminNodeExecution. + + Path to remote data store where input blob is stored. # noqa: E501 + + :param input_uri: The input_uri of this FlyteidladminNodeExecution. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def closure(self): + """Gets the closure of this FlyteidladminNodeExecution. # noqa: E501 + + Computed results associated with this node execution. # noqa: E501 + + :return: The closure of this FlyteidladminNodeExecution. # noqa: E501 + :rtype: AdminNodeExecutionClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this FlyteidladminNodeExecution. + + Computed results associated with this node execution. # noqa: E501 + + :param closure: The closure of this FlyteidladminNodeExecution. # noqa: E501 + :type: AdminNodeExecutionClosure + """ + + self._closure = closure + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminNodeExecution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminNodeExecution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py new file mode 100644 index 0000000000..bbb30485c7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure # noqa: F401,E501 +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 + + +class FlyteidladminTaskExecution(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'CoreTaskExecutionIdentifier', + 'input_uri': 'str', + 'closure': 'AdminTaskExecutionClosure', + 'is_parent': 'bool' + } + + attribute_map = { + 'id': 'id', + 'input_uri': 'input_uri', + 'closure': 'closure', + 'is_parent': 'is_parent' + } + + def __init__(self, id=None, input_uri=None, closure=None, is_parent=None): # noqa: E501 + """FlyteidladminTaskExecution - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._input_uri = None + self._closure = None + self._is_parent = None + self.discriminator = None + + if id is not None: + self.id = id + if input_uri is not None: + self.input_uri = input_uri + if closure is not None: + self.closure = closure + if is_parent is not None: + self.is_parent = is_parent + + @property + def id(self): + """Gets the id of this FlyteidladminTaskExecution. # noqa: E501 + + Unique identifier for the task execution. # noqa: E501 + + :return: The id of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: CoreTaskExecutionIdentifier + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FlyteidladminTaskExecution. + + Unique identifier for the task execution. # noqa: E501 + + :param id: The id of this FlyteidladminTaskExecution. # noqa: E501 + :type: CoreTaskExecutionIdentifier + """ + + self._id = id + + @property + def input_uri(self): + """Gets the input_uri of this FlyteidladminTaskExecution. # noqa: E501 + + Path to remote data store where input blob is stored. # noqa: E501 + + :return: The input_uri of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: str + """ + return self._input_uri + + @input_uri.setter + def input_uri(self, input_uri): + """Sets the input_uri of this FlyteidladminTaskExecution. + + Path to remote data store where input blob is stored. # noqa: E501 + + :param input_uri: The input_uri of this FlyteidladminTaskExecution. # noqa: E501 + :type: str + """ + + self._input_uri = input_uri + + @property + def closure(self): + """Gets the closure of this FlyteidladminTaskExecution. # noqa: E501 + + Task execution details and results. # noqa: E501 + + :return: The closure of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: AdminTaskExecutionClosure + """ + return self._closure + + @closure.setter + def closure(self, closure): + """Sets the closure of this FlyteidladminTaskExecution. + + Task execution details and results. # noqa: E501 + + :param closure: The closure of this FlyteidladminTaskExecution. # noqa: E501 + :type: AdminTaskExecutionClosure + """ + + self._closure = closure + + @property + def is_parent(self): + """Gets the is_parent of this FlyteidladminTaskExecution. # noqa: E501 + + Whether this task spawned nodes. # noqa: E501 + + :return: The is_parent of this FlyteidladminTaskExecution. # noqa: E501 + :rtype: bool + """ + return self._is_parent + + @is_parent.setter + def is_parent(self, is_parent): + """Sets the is_parent of this FlyteidladminTaskExecution. + + Whether this task spawned nodes. # noqa: E501 + + :param is_parent: The is_parent of this FlyteidladminTaskExecution. # noqa: E501 + :type: bool + """ + + self._is_parent = is_parent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminTaskExecution, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminTaskExecution): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py new file mode 100644 index 0000000000..96b42512f8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class FlyteidladminWorkflowNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'execution_id': 'executionId' + } + + def __init__(self, execution_id=None): # noqa: E501 + """FlyteidladminWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._execution_id = None + self.discriminator = None + + if execution_id is not None: + self.execution_id = execution_id + + @property + def execution_id(self): + """Gets the execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 + + + :return: The execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this FlyteidladminWorkflowNodeMetadata. + + + :param execution_id: The execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidladminWorkflowNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidladminWorkflowNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlcore_schema.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlcore_schema.py new file mode 100644 index 0000000000..3d81400bfa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlcore_schema.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: F401,E501 + + +class FlyteidlcoreSchema(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uri': 'str', + 'type': 'CoreSchemaType' + } + + attribute_map = { + 'uri': 'uri', + 'type': 'type' + } + + def __init__(self, uri=None, type=None): # noqa: E501 + """FlyteidlcoreSchema - a model defined in Swagger""" # noqa: E501 + + self._uri = None + self._type = None + self.discriminator = None + + if uri is not None: + self.uri = uri + if type is not None: + self.type = type + + @property + def uri(self): + """Gets the uri of this FlyteidlcoreSchema. # noqa: E501 + + + :return: The uri of this FlyteidlcoreSchema. # noqa: E501 + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this FlyteidlcoreSchema. + + + :param uri: The uri of this FlyteidlcoreSchema. # noqa: E501 + :type: str + """ + + self._uri = uri + + @property + def type(self): + """Gets the type of this FlyteidlcoreSchema. # noqa: E501 + + + :return: The type of this FlyteidlcoreSchema. # noqa: E501 + :rtype: CoreSchemaType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this FlyteidlcoreSchema. + + + :param type: The type of this FlyteidlcoreSchema. # noqa: E501 + :type: CoreSchemaType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidlcoreSchema, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidlcoreSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py new file mode 100644 index 0000000000..0492d7c68c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 + + +class FlyteidleventWorkflowNodeMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_id': 'CoreWorkflowExecutionIdentifier' + } + + attribute_map = { + 'execution_id': 'execution_id' + } + + def __init__(self, execution_id=None): # noqa: E501 + """FlyteidleventWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 + + self._execution_id = None + self.discriminator = None + + if execution_id is not None: + self.execution_id = execution_id + + @property + def execution_id(self): + """Gets the execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 + + + :return: The execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 + :rtype: CoreWorkflowExecutionIdentifier + """ + return self._execution_id + + @execution_id.setter + def execution_id(self, execution_id): + """Sets the execution_id of this FlyteidleventWorkflowNodeMetadata. + + + :param execution_id: The execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 + :type: CoreWorkflowExecutionIdentifier + """ + + self._execution_id = execution_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FlyteidleventWorkflowNodeMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FlyteidleventWorkflowNodeMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py new file mode 100644 index 0000000000..2d75531ff7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_value import ProtobufValue # noqa: F401,E501 + + +class ProtobufListValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'values': 'list[ProtobufValue]' + } + + attribute_map = { + 'values': 'values' + } + + def __init__(self, values=None): # noqa: E501 + """ProtobufListValue - a model defined in Swagger""" # noqa: E501 + + self._values = None + self.discriminator = None + + if values is not None: + self.values = values + + @property + def values(self): + """Gets the values of this ProtobufListValue. # noqa: E501 + + Repeated field of dynamically typed values. # noqa: E501 + + :return: The values of this ProtobufListValue. # noqa: E501 + :rtype: list[ProtobufValue] + """ + return self._values + + @values.setter + def values(self, values): + """Sets the values of this ProtobufListValue. + + Repeated field of dynamically typed values. # noqa: E501 + + :param values: The values of this ProtobufListValue. # noqa: E501 + :type: list[ProtobufValue] + """ + + self._values = values + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufListValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufListValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py new file mode 100644 index 0000000000..87d63153de --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ProtobufNullValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NULL_VALUE = "NULL_VALUE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ProtobufNullValue - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufNullValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufNullValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py new file mode 100644 index 0000000000..ff81a5b69d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_value import ProtobufValue # noqa: F401,E501 + + +class ProtobufStruct(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'fields': 'dict(str, ProtobufValue)' + } + + attribute_map = { + 'fields': 'fields' + } + + def __init__(self, fields=None): # noqa: E501 + """ProtobufStruct - a model defined in Swagger""" # noqa: E501 + + self._fields = None + self.discriminator = None + + if fields is not None: + self.fields = fields + + @property + def fields(self): + """Gets the fields of this ProtobufStruct. # noqa: E501 + + Unordered map of dynamically typed values. # noqa: E501 + + :return: The fields of this ProtobufStruct. # noqa: E501 + :rtype: dict(str, ProtobufValue) + """ + return self._fields + + @fields.setter + def fields(self, fields): + """Sets the fields of this ProtobufStruct. + + Unordered map of dynamically typed values. # noqa: E501 + + :param fields: The fields of this ProtobufStruct. # noqa: E501 + :type: dict(str, ProtobufValue) + """ + + self._fields = fields + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufStruct, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufStruct): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py new file mode 100644 index 0000000000..8e2dc6fdac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.protobuf_list_value import ProtobufListValue # noqa: F401,E501 +from flyteadmin.models.protobuf_null_value import ProtobufNullValue # noqa: F401,E501 +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 + + +class ProtobufValue(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'null_value': 'ProtobufNullValue', + 'number_value': 'float', + 'string_value': 'str', + 'bool_value': 'bool', + 'struct_value': 'ProtobufStruct', + 'list_value': 'ProtobufListValue' + } + + attribute_map = { + 'null_value': 'null_value', + 'number_value': 'number_value', + 'string_value': 'string_value', + 'bool_value': 'bool_value', + 'struct_value': 'struct_value', + 'list_value': 'list_value' + } + + def __init__(self, null_value=None, number_value=None, string_value=None, bool_value=None, struct_value=None, list_value=None): # noqa: E501 + """ProtobufValue - a model defined in Swagger""" # noqa: E501 + + self._null_value = None + self._number_value = None + self._string_value = None + self._bool_value = None + self._struct_value = None + self._list_value = None + self.discriminator = None + + if null_value is not None: + self.null_value = null_value + if number_value is not None: + self.number_value = number_value + if string_value is not None: + self.string_value = string_value + if bool_value is not None: + self.bool_value = bool_value + if struct_value is not None: + self.struct_value = struct_value + if list_value is not None: + self.list_value = list_value + + @property + def null_value(self): + """Gets the null_value of this ProtobufValue. # noqa: E501 + + Represents a null value. # noqa: E501 + + :return: The null_value of this ProtobufValue. # noqa: E501 + :rtype: ProtobufNullValue + """ + return self._null_value + + @null_value.setter + def null_value(self, null_value): + """Sets the null_value of this ProtobufValue. + + Represents a null value. # noqa: E501 + + :param null_value: The null_value of this ProtobufValue. # noqa: E501 + :type: ProtobufNullValue + """ + + self._null_value = null_value + + @property + def number_value(self): + """Gets the number_value of this ProtobufValue. # noqa: E501 + + Represents a double value. # noqa: E501 + + :return: The number_value of this ProtobufValue. # noqa: E501 + :rtype: float + """ + return self._number_value + + @number_value.setter + def number_value(self, number_value): + """Sets the number_value of this ProtobufValue. + + Represents a double value. # noqa: E501 + + :param number_value: The number_value of this ProtobufValue. # noqa: E501 + :type: float + """ + + self._number_value = number_value + + @property + def string_value(self): + """Gets the string_value of this ProtobufValue. # noqa: E501 + + Represents a string value. # noqa: E501 + + :return: The string_value of this ProtobufValue. # noqa: E501 + :rtype: str + """ + return self._string_value + + @string_value.setter + def string_value(self, string_value): + """Sets the string_value of this ProtobufValue. + + Represents a string value. # noqa: E501 + + :param string_value: The string_value of this ProtobufValue. # noqa: E501 + :type: str + """ + + self._string_value = string_value + + @property + def bool_value(self): + """Gets the bool_value of this ProtobufValue. # noqa: E501 + + Represents a boolean value. # noqa: E501 + + :return: The bool_value of this ProtobufValue. # noqa: E501 + :rtype: bool + """ + return self._bool_value + + @bool_value.setter + def bool_value(self, bool_value): + """Sets the bool_value of this ProtobufValue. + + Represents a boolean value. # noqa: E501 + + :param bool_value: The bool_value of this ProtobufValue. # noqa: E501 + :type: bool + """ + + self._bool_value = bool_value + + @property + def struct_value(self): + """Gets the struct_value of this ProtobufValue. # noqa: E501 + + Represents a structured value. # noqa: E501 + + :return: The struct_value of this ProtobufValue. # noqa: E501 + :rtype: ProtobufStruct + """ + return self._struct_value + + @struct_value.setter + def struct_value(self, struct_value): + """Sets the struct_value of this ProtobufValue. + + Represents a structured value. # noqa: E501 + + :param struct_value: The struct_value of this ProtobufValue. # noqa: E501 + :type: ProtobufStruct + """ + + self._struct_value = struct_value + + @property + def list_value(self): + """Gets the list_value of this ProtobufValue. # noqa: E501 + + Represents a repeated `Value`. # noqa: E501 + + :return: The list_value of this ProtobufValue. # noqa: E501 + :rtype: ProtobufListValue + """ + return self._list_value + + @list_value.setter + def list_value(self, list_value): + """Sets the list_value of this ProtobufValue. + + Represents a repeated `Value`. # noqa: E501 + + :param list_value: The list_value of this ProtobufValue. # noqa: E501 + :type: ProtobufListValue + """ + + self._list_value = list_value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ProtobufValue, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProtobufValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py new file mode 100644 index 0000000000..481c772cad --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.resources_resource_name import ResourcesResourceName # noqa: F401,E501 + + +class ResourcesResourceEntry(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'ResourcesResourceName', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): # noqa: E501 + """ResourcesResourceEntry - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this ResourcesResourceEntry. # noqa: E501 + + Resource name. # noqa: E501 + + :return: The name of this ResourcesResourceEntry. # noqa: E501 + :rtype: ResourcesResourceName + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ResourcesResourceEntry. + + Resource name. # noqa: E501 + + :param name: The name of this ResourcesResourceEntry. # noqa: E501 + :type: ResourcesResourceName + """ + + self._name = name + + @property + def value(self): + """Gets the value of this ResourcesResourceEntry. # noqa: E501 + + + :return: The value of this ResourcesResourceEntry. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResourcesResourceEntry. + + + :param value: The value of this ResourcesResourceEntry. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResourcesResourceEntry, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourcesResourceEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py new file mode 100644 index 0000000000..b9ba22f51a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ResourcesResourceName(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "UNKNOWN" + CPU = "CPU" + GPU = "GPU" + MEMORY = "MEMORY" + STORAGE = "STORAGE" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ResourcesResourceName - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResourcesResourceName, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourcesResourceName): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py new file mode 100644 index 0000000000..f49edcf0e0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RuntimeMetadataRuntimeType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + OTHER = "OTHER" + FLYTE_SDK = "FLYTE_SDK" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """RuntimeMetadataRuntimeType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(RuntimeMetadataRuntimeType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RuntimeMetadataRuntimeType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py new file mode 100644 index 0000000000..895d2439b4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SchemaColumnSchemaColumnType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + INTEGER = "INTEGER" + FLOAT = "FLOAT" + STRING = "STRING" + BOOLEAN = "BOOLEAN" + DATETIME = "DATETIME" + DURATION = "DURATION" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """SchemaColumnSchemaColumnType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SchemaColumnSchemaColumnType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SchemaColumnSchemaColumnType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py new file mode 100644 index 0000000000..b200eef8fa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType # noqa: F401,E501 + + +class SchemaTypeSchemaColumn(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'type': 'SchemaColumnSchemaColumnType' + } + + attribute_map = { + 'name': 'name', + 'type': 'type' + } + + def __init__(self, name=None, type=None): # noqa: E501 + """SchemaTypeSchemaColumn - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._type = None + self.discriminator = None + + if name is not None: + self.name = name + if type is not None: + self.type = type + + @property + def name(self): + """Gets the name of this SchemaTypeSchemaColumn. # noqa: E501 + + + :return: The name of this SchemaTypeSchemaColumn. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SchemaTypeSchemaColumn. + + + :param name: The name of this SchemaTypeSchemaColumn. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def type(self): + """Gets the type of this SchemaTypeSchemaColumn. # noqa: E501 + + The column type. This allows a limited set of types currently. # noqa: E501 + + :return: The type of this SchemaTypeSchemaColumn. # noqa: E501 + :rtype: SchemaColumnSchemaColumnType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this SchemaTypeSchemaColumn. + + The column type. This allows a limited set of types currently. # noqa: E501 + + :param type: The type of this SchemaTypeSchemaColumn. # noqa: E501 + :type: SchemaColumnSchemaColumnType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SchemaTypeSchemaColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SchemaTypeSchemaColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py new file mode 100644 index 0000000000..f9e955e818 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SortDirection(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DESCENDING = "DESCENDING" + ASCENDING = "ASCENDING" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """SortDirection - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SortDirection, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SortDirection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py new file mode 100644 index 0000000000..258d227425 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TaskLogMessageFormat(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNKNOWN = "UNKNOWN" + CSV = "CSV" + JSON = "JSON" + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """TaskLogMessageFormat - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TaskLogMessageFormat, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TaskLogMessageFormat): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py new file mode 100644 index 0000000000..885a2be8a0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh new file mode 100644 index 0000000000..ae01b182ae --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt new file mode 100644 index 0000000000..bafdc07532 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py new file mode 100644 index 0000000000..ba03cf5291 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "flyteadmin" +VERSION = "1.0.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + + +setup( + name=NAME, + version=VERSION, + description="flyteidl/service/admin.proto", + author_email="", + url="", + keywords=["Swagger", "flyteidl/service/admin.proto"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + """ +) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt new file mode 100644 index 0000000000..2702246c0e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py new file mode 100644 index 0000000000..53f87816b6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminAnnotations(unittest.TestCase): + """AdminAnnotations unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminAnnotations(self): + """Test AdminAnnotations""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_annotations.AdminAnnotations() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py new file mode 100644 index 0000000000..1425547087 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_auth import AdminAuth # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminAuth(unittest.TestCase): + """AdminAuth unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminAuth(self): + """Test AdminAuth""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_auth.AdminAuth() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py new file mode 100644 index 0000000000..8c53f01712 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_domain import AdminDomain # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminDomain(unittest.TestCase): + """AdminDomain unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminDomain(self): + """Test AdminDomain""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_domain.AdminDomain() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py new file mode 100644 index 0000000000..f39df1233e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_email_notification import AdminEmailNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminEmailNotification(unittest.TestCase): + """AdminEmailNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminEmailNotification(self): + """Test AdminEmailNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_email_notification.AdminEmailNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py new file mode 100644 index 0000000000..8da444e5ec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution import AdminExecution # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecution(unittest.TestCase): + """AdminExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecution(self): + """Test AdminExecution""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution.AdminExecution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py new file mode 100644 index 0000000000..af1d7119ca --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_closure import AdminExecutionClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionClosure(unittest.TestCase): + """AdminExecutionClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionClosure(self): + """Test AdminExecutionClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_closure.AdminExecutionClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py new file mode 100644 index 0000000000..45a0026e37 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionCreateRequest(unittest.TestCase): + """AdminExecutionCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionCreateRequest(self): + """Test AdminExecutionCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_create_request.AdminExecutionCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py new file mode 100644 index 0000000000..d3f0537048 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionCreateResponse(unittest.TestCase): + """AdminExecutionCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionCreateResponse(self): + """Test AdminExecutionCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_create_response.AdminExecutionCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py new file mode 100644 index 0000000000..7387280caa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_list import AdminExecutionList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionList(unittest.TestCase): + """AdminExecutionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionList(self): + """Test AdminExecutionList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_list.AdminExecutionList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py new file mode 100644 index 0000000000..c4f9c66562 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionMetadata(unittest.TestCase): + """AdminExecutionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionMetadata(self): + """Test AdminExecutionMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_metadata.AdminExecutionMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py new file mode 100644 index 0000000000..170c8149c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionRelaunchRequest(unittest.TestCase): + """AdminExecutionRelaunchRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionRelaunchRequest(self): + """Test AdminExecutionRelaunchRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_relaunch_request.AdminExecutionRelaunchRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py new file mode 100644 index 0000000000..1a0d62cfec --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionSpec(unittest.TestCase): + """AdminExecutionSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionSpec(self): + """Test AdminExecutionSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_spec.AdminExecutionSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py new file mode 100644 index 0000000000..5233d9f6d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionTerminateRequest(unittest.TestCase): + """AdminExecutionTerminateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionTerminateRequest(self): + """Test AdminExecutionTerminateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_terminate_request.AdminExecutionTerminateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py new file mode 100644 index 0000000000..939b551e66 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminExecutionTerminateResponse(unittest.TestCase): + """AdminExecutionTerminateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminExecutionTerminateResponse(self): + """Test AdminExecutionTerminateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_execution_terminate_response.AdminExecutionTerminateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py new file mode 100644 index 0000000000..5558212367 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_fixed_rate import AdminFixedRate # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminFixedRate(unittest.TestCase): + """AdminFixedRate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminFixedRate(self): + """Test AdminFixedRate""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_fixed_rate.AdminFixedRate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py new file mode 100644 index 0000000000..a30eec5452 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminFixedRateUnit(unittest.TestCase): + """AdminFixedRateUnit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminFixedRateUnit(self): + """Test AdminFixedRateUnit""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_fixed_rate_unit.AdminFixedRateUnit() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py new file mode 100644 index 0000000000..32733ca584 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_labels import AdminLabels # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLabels(unittest.TestCase): + """AdminLabels unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLabels(self): + """Test AdminLabels""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_labels.AdminLabels() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py new file mode 100644 index 0000000000..ef28673e27 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan import AdminLaunchPlan # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlan(unittest.TestCase): + """AdminLaunchPlan unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlan(self): + """Test AdminLaunchPlan""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan.AdminLaunchPlan() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py new file mode 100644 index 0000000000..e23aadda1d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanClosure(unittest.TestCase): + """AdminLaunchPlanClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanClosure(self): + """Test AdminLaunchPlanClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_closure.AdminLaunchPlanClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py new file mode 100644 index 0000000000..95aa42532c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanCreateRequest(unittest.TestCase): + """AdminLaunchPlanCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanCreateRequest(self): + """Test AdminLaunchPlanCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_create_request.AdminLaunchPlanCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py new file mode 100644 index 0000000000..2c855a1d6f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanCreateResponse(unittest.TestCase): + """AdminLaunchPlanCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanCreateResponse(self): + """Test AdminLaunchPlanCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_create_response.AdminLaunchPlanCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py new file mode 100644 index 0000000000..61a9d149fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanList(unittest.TestCase): + """AdminLaunchPlanList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanList(self): + """Test AdminLaunchPlanList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_list.AdminLaunchPlanList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py new file mode 100644 index 0000000000..2fa217de17 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanMetadata(unittest.TestCase): + """AdminLaunchPlanMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanMetadata(self): + """Test AdminLaunchPlanMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_metadata.AdminLaunchPlanMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py new file mode 100644 index 0000000000..9c18b3d2fa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanSpec(unittest.TestCase): + """AdminLaunchPlanSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanSpec(self): + """Test AdminLaunchPlanSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_spec.AdminLaunchPlanSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py new file mode 100644 index 0000000000..565c353308 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanState(unittest.TestCase): + """AdminLaunchPlanState unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanState(self): + """Test AdminLaunchPlanState""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_state.AdminLaunchPlanState() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py new file mode 100644 index 0000000000..4423d250d8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanUpdateRequest(unittest.TestCase): + """AdminLaunchPlanUpdateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanUpdateRequest(self): + """Test AdminLaunchPlanUpdateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_update_request.AdminLaunchPlanUpdateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py new file mode 100644 index 0000000000..16f59ce1d5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLaunchPlanUpdateResponse(unittest.TestCase): + """AdminLaunchPlanUpdateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLaunchPlanUpdateResponse(self): + """Test AdminLaunchPlanUpdateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_launch_plan_update_response.AdminLaunchPlanUpdateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py new file mode 100644 index 0000000000..e0cb1dd8ab --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminLiteralMapBlob(unittest.TestCase): + """AdminLiteralMapBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminLiteralMapBlob(self): + """Test AdminLiteralMapBlob""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_literal_map_blob.AdminLiteralMapBlob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py new file mode 100644 index 0000000000..6d376e75ea --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityIdentifier(unittest.TestCase): + """AdminNamedEntityIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityIdentifier(self): + """Test AdminNamedEntityIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_identifier.AdminNamedEntityIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py new file mode 100644 index 0000000000..b93b1d4328 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNamedEntityIdentifierList(unittest.TestCase): + """AdminNamedEntityIdentifierList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNamedEntityIdentifierList(self): + """Test AdminNamedEntityIdentifierList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_named_entity_identifier_list.AdminNamedEntityIdentifierList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py new file mode 100644 index 0000000000..1cb387243e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionClosure(unittest.TestCase): + """AdminNodeExecutionClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionClosure(self): + """Test AdminNodeExecutionClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_closure.AdminNodeExecutionClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py new file mode 100644 index 0000000000..f9932fede3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionEventRequest(unittest.TestCase): + """AdminNodeExecutionEventRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionEventRequest(self): + """Test AdminNodeExecutionEventRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_event_request.AdminNodeExecutionEventRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py new file mode 100644 index 0000000000..09e9f94608 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionEventResponse(unittest.TestCase): + """AdminNodeExecutionEventResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionEventResponse(self): + """Test AdminNodeExecutionEventResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_event_response.AdminNodeExecutionEventResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py new file mode 100644 index 0000000000..d84069a2c9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionGetDataResponse(unittest.TestCase): + """AdminNodeExecutionGetDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionGetDataResponse(self): + """Test AdminNodeExecutionGetDataResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_get_data_response.AdminNodeExecutionGetDataResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py new file mode 100644 index 0000000000..ce996eb9a5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNodeExecutionList(unittest.TestCase): + """AdminNodeExecutionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNodeExecutionList(self): + """Test AdminNodeExecutionList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_node_execution_list.AdminNodeExecutionList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py new file mode 100644 index 0000000000..50123dee60 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_notification import AdminNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNotification(unittest.TestCase): + """AdminNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNotification(self): + """Test AdminNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_notification.AdminNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py new file mode 100644 index 0000000000..b80edebf43 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_notification_list import AdminNotificationList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminNotificationList(unittest.TestCase): + """AdminNotificationList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminNotificationList(self): + """Test AdminNotificationList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_notification_list.AdminNotificationList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py new file mode 100644 index 0000000000..79062cc22e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminPagerDutyNotification(unittest.TestCase): + """AdminPagerDutyNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminPagerDutyNotification(self): + """Test AdminPagerDutyNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_pager_duty_notification.AdminPagerDutyNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py new file mode 100644 index 0000000000..94ec8dbda8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project import AdminProject # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProject(unittest.TestCase): + """AdminProject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProject(self): + """Test AdminProject""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project.AdminProject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py new file mode 100644 index 0000000000..21a49c3f35 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectRegisterRequest(unittest.TestCase): + """AdminProjectRegisterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectRegisterRequest(self): + """Test AdminProjectRegisterRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_register_request.AdminProjectRegisterRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py new file mode 100644 index 0000000000..773ec50efd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjectRegisterResponse(unittest.TestCase): + """AdminProjectRegisterResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjectRegisterResponse(self): + """Test AdminProjectRegisterResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_project_register_response.AdminProjectRegisterResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py new file mode 100644 index 0000000000..195a493cbb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_projects import AdminProjects # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminProjects(unittest.TestCase): + """AdminProjects unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminProjects(self): + """Test AdminProjects""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_projects.AdminProjects() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py new file mode 100644 index 0000000000..78bd6c3fb1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_schedule import AdminSchedule # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSchedule(unittest.TestCase): + """AdminSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSchedule(self): + """Test AdminSchedule""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_schedule.AdminSchedule() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py new file mode 100644 index 0000000000..f3c0f59692 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.api.admin_service_api import AdminServiceApi # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminServiceApi(unittest.TestCase): + """AdminServiceApi unit test stubs""" + + def setUp(self): + self.api = flyteadmin.api.admin_service_api.AdminServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_execution(self): + """Test case for create_execution + + """ + pass + + def test_create_launch_plan(self): + """Test case for create_launch_plan + + """ + pass + + def test_create_node_event(self): + """Test case for create_node_event + + """ + pass + + def test_create_task(self): + """Test case for create_task + + """ + pass + + def test_create_task_event(self): + """Test case for create_task_event + + """ + pass + + def test_create_workflow(self): + """Test case for create_workflow + + """ + pass + + def test_create_workflow_event(self): + """Test case for create_workflow_event + + """ + pass + + def test_get_execution(self): + """Test case for get_execution + + """ + pass + + def test_get_execution_data(self): + """Test case for get_execution_data + + """ + pass + + def test_get_launch_plan(self): + """Test case for get_launch_plan + + """ + pass + + def test_get_node_execution(self): + """Test case for get_node_execution + + """ + pass + + def test_get_node_execution_data(self): + """Test case for get_node_execution_data + + """ + pass + + def test_get_task(self): + """Test case for get_task + + """ + pass + + def test_get_task_execution(self): + """Test case for get_task_execution + + """ + pass + + def test_get_task_execution_data(self): + """Test case for get_task_execution_data + + """ + pass + + def test_get_workflow(self): + """Test case for get_workflow + + """ + pass + + def test_list_executions(self): + """Test case for list_executions + + """ + pass + + def test_list_launch_plan_ids(self): + """Test case for list_launch_plan_ids + + """ + pass + + def test_list_launch_plans(self): + """Test case for list_launch_plans + + """ + pass + + def test_list_launch_plans2(self): + """Test case for list_launch_plans2 + + """ + pass + + def test_list_node_executions(self): + """Test case for list_node_executions + + """ + pass + + def test_list_node_executions_for_task(self): + """Test case for list_node_executions_for_task + + """ + pass + + def test_list_projects(self): + """Test case for list_projects + + """ + pass + + def test_list_task_executions(self): + """Test case for list_task_executions + + """ + pass + + def test_list_task_ids(self): + """Test case for list_task_ids + + """ + pass + + def test_list_tasks(self): + """Test case for list_tasks + + """ + pass + + def test_list_tasks2(self): + """Test case for list_tasks2 + + """ + pass + + def test_list_workflow_ids(self): + """Test case for list_workflow_ids + + """ + pass + + def test_list_workflows(self): + """Test case for list_workflows + + """ + pass + + def test_list_workflows2(self): + """Test case for list_workflows2 + + """ + pass + + def test_register_project(self): + """Test case for register_project + + """ + pass + + def test_relaunch_execution(self): + """Test case for relaunch_execution + + """ + pass + + def test_terminate_execution(self): + """Test case for terminate_execution + + """ + pass + + def test_update_launch_plan(self): + """Test case for update_launch_plan + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py new file mode 100644 index 0000000000..606a207587 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_slack_notification import AdminSlackNotification # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSlackNotification(unittest.TestCase): + """AdminSlackNotification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSlackNotification(self): + """Test AdminSlackNotification""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_slack_notification.AdminSlackNotification() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py new file mode 100644 index 0000000000..e92f5cf94e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_sort import AdminSort # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminSort(unittest.TestCase): + """AdminSort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminSort(self): + """Test AdminSort""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_sort.AdminSort() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py new file mode 100644 index 0000000000..6d7db76462 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task import AdminTask # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTask(unittest.TestCase): + """AdminTask unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTask(self): + """Test AdminTask""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task.AdminTask() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py new file mode 100644 index 0000000000..f9ea4c263e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_closure import AdminTaskClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskClosure(unittest.TestCase): + """AdminTaskClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskClosure(self): + """Test AdminTaskClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_closure.AdminTaskClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_request.py new file mode 100644 index 0000000000..e951b02479 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_create_request import AdminTaskCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskCreateRequest(unittest.TestCase): + """AdminTaskCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskCreateRequest(self): + """Test AdminTaskCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_create_request.AdminTaskCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_response.py new file mode 100644 index 0000000000..63330c5295 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_create_response import AdminTaskCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskCreateResponse(unittest.TestCase): + """AdminTaskCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskCreateResponse(self): + """Test AdminTaskCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_create_response.AdminTaskCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py new file mode 100644 index 0000000000..182a6e9c39 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionClosure(unittest.TestCase): + """AdminTaskExecutionClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionClosure(self): + """Test AdminTaskExecutionClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_closure.AdminTaskExecutionClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py new file mode 100644 index 0000000000..0c4208e35b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionEventRequest(unittest.TestCase): + """AdminTaskExecutionEventRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionEventRequest(self): + """Test AdminTaskExecutionEventRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_event_request.AdminTaskExecutionEventRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py new file mode 100644 index 0000000000..8d0ed7621f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionEventResponse(unittest.TestCase): + """AdminTaskExecutionEventResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionEventResponse(self): + """Test AdminTaskExecutionEventResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_event_response.AdminTaskExecutionEventResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py new file mode 100644 index 0000000000..d8f7588c71 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionGetDataResponse(unittest.TestCase): + """AdminTaskExecutionGetDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionGetDataResponse(self): + """Test AdminTaskExecutionGetDataResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_get_data_response.AdminTaskExecutionGetDataResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py new file mode 100644 index 0000000000..d331a05ee8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskExecutionList(unittest.TestCase): + """AdminTaskExecutionList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskExecutionList(self): + """Test AdminTaskExecutionList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_execution_list.AdminTaskExecutionList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py new file mode 100644 index 0000000000..8cc379d203 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_list import AdminTaskList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskList(unittest.TestCase): + """AdminTaskList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskList(self): + """Test AdminTaskList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_list.AdminTaskList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py new file mode 100644 index 0000000000..1103ee9280 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_task_spec import AdminTaskSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminTaskSpec(unittest.TestCase): + """AdminTaskSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminTaskSpec(self): + """Test AdminTaskSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_task_spec.AdminTaskSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py new file mode 100644 index 0000000000..a990bf14dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminUrlBlob(unittest.TestCase): + """AdminUrlBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminUrlBlob(self): + """Test AdminUrlBlob""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_url_blob.AdminUrlBlob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py new file mode 100644 index 0000000000..c6f05d6f69 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow import AdminWorkflow # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflow(unittest.TestCase): + """AdminWorkflow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflow(self): + """Test AdminWorkflow""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow.AdminWorkflow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py new file mode 100644 index 0000000000..21e36219f9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowClosure(unittest.TestCase): + """AdminWorkflowClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowClosure(self): + """Test AdminWorkflowClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_closure.AdminWorkflowClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py new file mode 100644 index 0000000000..891580dcb5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowCreateRequest(unittest.TestCase): + """AdminWorkflowCreateRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowCreateRequest(self): + """Test AdminWorkflowCreateRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_create_request.AdminWorkflowCreateRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py new file mode 100644 index 0000000000..0c0225f054 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowCreateResponse(unittest.TestCase): + """AdminWorkflowCreateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowCreateResponse(self): + """Test AdminWorkflowCreateResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_create_response.AdminWorkflowCreateResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py new file mode 100644 index 0000000000..c7d3b3833c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionEventRequest(unittest.TestCase): + """AdminWorkflowExecutionEventRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionEventRequest(self): + """Test AdminWorkflowExecutionEventRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_event_request.AdminWorkflowExecutionEventRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py new file mode 100644 index 0000000000..7341cc1a6d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionEventResponse(unittest.TestCase): + """AdminWorkflowExecutionEventResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionEventResponse(self): + """Test AdminWorkflowExecutionEventResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_event_response.AdminWorkflowExecutionEventResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py new file mode 100644 index 0000000000..8223916f6f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowExecutionGetDataResponse(unittest.TestCase): + """AdminWorkflowExecutionGetDataResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowExecutionGetDataResponse(self): + """Test AdminWorkflowExecutionGetDataResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_execution_get_data_response.AdminWorkflowExecutionGetDataResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py new file mode 100644 index 0000000000..83162478f2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_list import AdminWorkflowList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowList(unittest.TestCase): + """AdminWorkflowList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowList(self): + """Test AdminWorkflowList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_list.AdminWorkflowList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py new file mode 100644 index 0000000000..1734a4f999 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestAdminWorkflowSpec(unittest.TestCase): + """AdminWorkflowSpec unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAdminWorkflowSpec(self): + """Test AdminWorkflowSpec""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.admin_workflow_spec.AdminWorkflowSpec() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py new file mode 100644 index 0000000000..d20ddcca9e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestBlobTypeBlobDimensionality(unittest.TestCase): + """BlobTypeBlobDimensionality unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlobTypeBlobDimensionality(self): + """Test BlobTypeBlobDimensionality""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.blob_type_blob_dimensionality.BlobTypeBlobDimensionality() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py new file mode 100644 index 0000000000..577750bcb9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestComparisonExpressionOperator(unittest.TestCase): + """ComparisonExpressionOperator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComparisonExpressionOperator(self): + """Test ComparisonExpressionOperator""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.comparison_expression_operator.ComparisonExpressionOperator() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py new file mode 100644 index 0000000000..cb10dbf8af --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestConjunctionExpressionLogicalOperator(unittest.TestCase): + """ConjunctionExpressionLogicalOperator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConjunctionExpressionLogicalOperator(self): + """Test ConjunctionExpressionLogicalOperator""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.conjunction_expression_logical_operator.ConjunctionExpressionLogicalOperator() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py new file mode 100644 index 0000000000..8b32f6860c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.connection_set_id_list import ConnectionSetIdList # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestConnectionSetIdList(unittest.TestCase): + """ConnectionSetIdList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConnectionSetIdList(self): + """Test ConnectionSetIdList""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.connection_set_id_list.ConnectionSetIdList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py new file mode 100644 index 0000000000..e08d977e7f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_alias import CoreAlias # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreAlias(unittest.TestCase): + """CoreAlias unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreAlias(self): + """Test CoreAlias""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_alias.CoreAlias() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py new file mode 100644 index 0000000000..939b79064b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binary import CoreBinary # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBinary(unittest.TestCase): + """CoreBinary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBinary(self): + """Test CoreBinary""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binary.CoreBinary() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py new file mode 100644 index 0000000000..3219ef5387 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding import CoreBinding # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBinding(unittest.TestCase): + """CoreBinding unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBinding(self): + """Test CoreBinding""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding.CoreBinding() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py new file mode 100644 index 0000000000..77b747420f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding_data import CoreBindingData # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBindingData(unittest.TestCase): + """CoreBindingData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBindingData(self): + """Test CoreBindingData""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding_data.CoreBindingData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py new file mode 100644 index 0000000000..70d9c49bff --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBindingDataCollection(unittest.TestCase): + """CoreBindingDataCollection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBindingDataCollection(self): + """Test CoreBindingDataCollection""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding_data_collection.CoreBindingDataCollection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py new file mode 100644 index 0000000000..51ce1d0f1e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_binding_data_map import CoreBindingDataMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBindingDataMap(unittest.TestCase): + """CoreBindingDataMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBindingDataMap(self): + """Test CoreBindingDataMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_binding_data_map.CoreBindingDataMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py new file mode 100644 index 0000000000..eccd729f96 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_blob import CoreBlob # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBlob(unittest.TestCase): + """CoreBlob unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBlob(self): + """Test CoreBlob""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_blob.CoreBlob() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py new file mode 100644 index 0000000000..c71578301a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_blob_metadata import CoreBlobMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBlobMetadata(unittest.TestCase): + """CoreBlobMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBlobMetadata(self): + """Test CoreBlobMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_blob_metadata.CoreBlobMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py new file mode 100644 index 0000000000..fbfd0e531e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_blob_type import CoreBlobType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBlobType(unittest.TestCase): + """CoreBlobType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBlobType(self): + """Test CoreBlobType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_blob_type.CoreBlobType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py new file mode 100644 index 0000000000..8cc7da37bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBooleanExpression(unittest.TestCase): + """CoreBooleanExpression unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBooleanExpression(self): + """Test CoreBooleanExpression""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_boolean_expression.CoreBooleanExpression() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py new file mode 100644 index 0000000000..229ef6e41a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_branch_node import CoreBranchNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreBranchNode(unittest.TestCase): + """CoreBranchNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreBranchNode(self): + """Test CoreBranchNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_branch_node.CoreBranchNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py new file mode 100644 index 0000000000..15bdc2da37 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_comparison_expression import CoreComparisonExpression # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreComparisonExpression(unittest.TestCase): + """CoreComparisonExpression unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreComparisonExpression(self): + """Test CoreComparisonExpression""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_comparison_expression.CoreComparisonExpression() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py new file mode 100644 index 0000000000..8823c3e148 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCompiledTask(unittest.TestCase): + """CoreCompiledTask unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCompiledTask(self): + """Test CoreCompiledTask""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_compiled_task.CoreCompiledTask() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py new file mode 100644 index 0000000000..f19d9cdab8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCompiledWorkflow(unittest.TestCase): + """CoreCompiledWorkflow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCompiledWorkflow(self): + """Test CoreCompiledWorkflow""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_compiled_workflow.CoreCompiledWorkflow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py new file mode 100644 index 0000000000..86de9922b6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreCompiledWorkflowClosure(unittest.TestCase): + """CoreCompiledWorkflowClosure unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreCompiledWorkflowClosure(self): + """Test CoreCompiledWorkflowClosure""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_compiled_workflow_closure.CoreCompiledWorkflowClosure() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py new file mode 100644 index 0000000000..1aa1a0d3bf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreConjunctionExpression(unittest.TestCase): + """CoreConjunctionExpression unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreConjunctionExpression(self): + """Test CoreConjunctionExpression""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_conjunction_expression.CoreConjunctionExpression() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py new file mode 100644 index 0000000000..55039a322b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_connection_set import CoreConnectionSet # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreConnectionSet(unittest.TestCase): + """CoreConnectionSet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreConnectionSet(self): + """Test CoreConnectionSet""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_connection_set.CoreConnectionSet() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py new file mode 100644 index 0000000000..0d067c6c4d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_container import CoreContainer # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreContainer(unittest.TestCase): + """CoreContainer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreContainer(self): + """Test CoreContainer""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_container.CoreContainer() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py new file mode 100644 index 0000000000..df6d682e2d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_container_port import CoreContainerPort # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreContainerPort(unittest.TestCase): + """CoreContainerPort unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreContainerPort(self): + """Test CoreContainerPort""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_container_port.CoreContainerPort() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py new file mode 100644 index 0000000000..bf094e6568 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_error import CoreError # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreError(unittest.TestCase): + """CoreError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreError(self): + """Test CoreError""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_error.CoreError() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py new file mode 100644 index 0000000000..b802fdfc5b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreExecutionError(unittest.TestCase): + """CoreExecutionError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreExecutionError(self): + """Test CoreExecutionError""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_execution_error.CoreExecutionError() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py new file mode 100644 index 0000000000..67d59d762f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_identifier import CoreIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIdentifier(unittest.TestCase): + """CoreIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIdentifier(self): + """Test CoreIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_identifier.CoreIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py new file mode 100644 index 0000000000..de10f6131b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_if_block import CoreIfBlock # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIfBlock(unittest.TestCase): + """CoreIfBlock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIfBlock(self): + """Test CoreIfBlock""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_if_block.CoreIfBlock() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py new file mode 100644 index 0000000000..c0807d2e55 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_if_else_block import CoreIfElseBlock # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreIfElseBlock(unittest.TestCase): + """CoreIfElseBlock unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreIfElseBlock(self): + """Test CoreIfElseBlock""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_if_else_block.CoreIfElseBlock() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py new file mode 100644 index 0000000000..9d8101b241 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreKeyValuePair(unittest.TestCase): + """CoreKeyValuePair unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreKeyValuePair(self): + """Test CoreKeyValuePair""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_key_value_pair.CoreKeyValuePair() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py new file mode 100644 index 0000000000..4340c97ec9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal import CoreLiteral # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteral(unittest.TestCase): + """CoreLiteral unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteral(self): + """Test CoreLiteral""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal.CoreLiteral() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py new file mode 100644 index 0000000000..d365b0ae7d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal_collection import CoreLiteralCollection # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteralCollection(unittest.TestCase): + """CoreLiteralCollection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteralCollection(self): + """Test CoreLiteralCollection""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal_collection.CoreLiteralCollection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py new file mode 100644 index 0000000000..d9e8d764e8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteralMap(unittest.TestCase): + """CoreLiteralMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteralMap(self): + """Test CoreLiteralMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal_map.CoreLiteralMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py new file mode 100644 index 0000000000..82c222dfa4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreLiteralType(unittest.TestCase): + """CoreLiteralType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreLiteralType(self): + """Test CoreLiteralType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_literal_type.CoreLiteralType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py new file mode 100644 index 0000000000..735b1e75e7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node import CoreNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNode(unittest.TestCase): + """CoreNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNode(self): + """Test CoreNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node.CoreNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py new file mode 100644 index 0000000000..995b4a879f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNodeExecutionIdentifier(unittest.TestCase): + """CoreNodeExecutionIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNodeExecutionIdentifier(self): + """Test CoreNodeExecutionIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node_execution_identifier.CoreNodeExecutionIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py new file mode 100644 index 0000000000..b07efd43c3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNodeExecutionPhase(unittest.TestCase): + """CoreNodeExecutionPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNodeExecutionPhase(self): + """Test CoreNodeExecutionPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node_execution_phase.CoreNodeExecutionPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py new file mode 100644 index 0000000000..21511eeb13 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_node_metadata import CoreNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreNodeMetadata(unittest.TestCase): + """CoreNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreNodeMetadata(self): + """Test CoreNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_node_metadata.CoreNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py new file mode 100644 index 0000000000..f160e48f3e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_operand import CoreOperand # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOperand(unittest.TestCase): + """CoreOperand unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOperand(self): + """Test CoreOperand""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_operand.CoreOperand() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py new file mode 100644 index 0000000000..8860a35b25 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_output_reference import CoreOutputReference # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreOutputReference(unittest.TestCase): + """CoreOutputReference unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreOutputReference(self): + """Test CoreOutputReference""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_output_reference.CoreOutputReference() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py new file mode 100644 index 0000000000..6821a39782 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_parameter import CoreParameter # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreParameter(unittest.TestCase): + """CoreParameter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreParameter(self): + """Test CoreParameter""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_parameter.CoreParameter() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py new file mode 100644 index 0000000000..901cadf694 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreParameterMap(unittest.TestCase): + """CoreParameterMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreParameterMap(self): + """Test CoreParameterMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_parameter_map.CoreParameterMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py new file mode 100644 index 0000000000..3162d68971 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_primitive import CorePrimitive # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCorePrimitive(unittest.TestCase): + """CorePrimitive unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCorePrimitive(self): + """Test CorePrimitive""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_primitive.CorePrimitive() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py new file mode 100644 index 0000000000..f69fbff104 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_resource_type import CoreResourceType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreResourceType(unittest.TestCase): + """CoreResourceType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreResourceType(self): + """Test CoreResourceType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_resource_type.CoreResourceType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py new file mode 100644 index 0000000000..144c2a03f9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_resources import CoreResources # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreResources(unittest.TestCase): + """CoreResources unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreResources(self): + """Test CoreResources""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_resources.CoreResources() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py new file mode 100644 index 0000000000..c64f4b370d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreRetryStrategy(unittest.TestCase): + """CoreRetryStrategy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreRetryStrategy(self): + """Test CoreRetryStrategy""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_retry_strategy.CoreRetryStrategy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py new file mode 100644 index 0000000000..1db01a110a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreRuntimeMetadata(unittest.TestCase): + """CoreRuntimeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreRuntimeMetadata(self): + """Test CoreRuntimeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_runtime_metadata.CoreRuntimeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py new file mode 100644 index 0000000000..3eda847bc9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_scalar import CoreScalar # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreScalar(unittest.TestCase): + """CoreScalar unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreScalar(self): + """Test CoreScalar""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_scalar.CoreScalar() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py new file mode 100644 index 0000000000..b74b186689 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSchemaType(unittest.TestCase): + """CoreSchemaType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSchemaType(self): + """Test CoreSchemaType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_schema_type.CoreSchemaType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py new file mode 100644 index 0000000000..49c7d3229b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_simple_type import CoreSimpleType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreSimpleType(unittest.TestCase): + """CoreSimpleType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreSimpleType(self): + """Test CoreSimpleType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_simple_type.CoreSimpleType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py new file mode 100644 index 0000000000..f1054997e3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskExecutionIdentifier(unittest.TestCase): + """CoreTaskExecutionIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskExecutionIdentifier(self): + """Test CoreTaskExecutionIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_execution_identifier.CoreTaskExecutionIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py new file mode 100644 index 0000000000..72103d0d28 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskExecutionPhase(unittest.TestCase): + """CoreTaskExecutionPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskExecutionPhase(self): + """Test CoreTaskExecutionPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_execution_phase.CoreTaskExecutionPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py new file mode 100644 index 0000000000..16af90f74c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_log import CoreTaskLog # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskLog(unittest.TestCase): + """CoreTaskLog unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskLog(self): + """Test CoreTaskLog""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_log.CoreTaskLog() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py new file mode 100644 index 0000000000..0c837f31fd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_metadata import CoreTaskMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskMetadata(unittest.TestCase): + """CoreTaskMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskMetadata(self): + """Test CoreTaskMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_metadata.CoreTaskMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py new file mode 100644 index 0000000000..c333213d22 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_node import CoreTaskNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskNode(unittest.TestCase): + """CoreTaskNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskNode(self): + """Test CoreTaskNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_node.CoreTaskNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py new file mode 100644 index 0000000000..0d91a59cde --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTaskTemplate(unittest.TestCase): + """CoreTaskTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTaskTemplate(self): + """Test CoreTaskTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_task_template.CoreTaskTemplate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py new file mode 100644 index 0000000000..62d303ae96 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreTypedInterface(unittest.TestCase): + """CoreTypedInterface unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreTypedInterface(self): + """Test CoreTypedInterface""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_typed_interface.CoreTypedInterface() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py new file mode 100644 index 0000000000..38a04b0084 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_variable import CoreVariable # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreVariable(unittest.TestCase): + """CoreVariable unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreVariable(self): + """Test CoreVariable""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_variable.CoreVariable() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py new file mode 100644 index 0000000000..0d190536e2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreVariableMap(unittest.TestCase): + """CoreVariableMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreVariableMap(self): + """Test CoreVariableMap""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_variable_map.CoreVariableMap() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py new file mode 100644 index 0000000000..ff951ae6e6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_void import CoreVoid # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreVoid(unittest.TestCase): + """CoreVoid unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreVoid(self): + """Test CoreVoid""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_void.CoreVoid() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py new file mode 100644 index 0000000000..16e58b654d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowExecutionIdentifier(unittest.TestCase): + """CoreWorkflowExecutionIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowExecutionIdentifier(self): + """Test CoreWorkflowExecutionIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_execution_identifier.CoreWorkflowExecutionIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py new file mode 100644 index 0000000000..7926ebcded --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowExecutionPhase(unittest.TestCase): + """CoreWorkflowExecutionPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowExecutionPhase(self): + """Test CoreWorkflowExecutionPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_execution_phase.CoreWorkflowExecutionPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py new file mode 100644 index 0000000000..8c3c210d80 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowMetadata(unittest.TestCase): + """CoreWorkflowMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowMetadata(self): + """Test CoreWorkflowMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_metadata.CoreWorkflowMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py new file mode 100644 index 0000000000..4500cf70cf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_node import CoreWorkflowNode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowNode(unittest.TestCase): + """CoreWorkflowNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowNode(self): + """Test CoreWorkflowNode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_node.CoreWorkflowNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py new file mode 100644 index 0000000000..847fd2ae70 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestCoreWorkflowTemplate(unittest.TestCase): + """CoreWorkflowTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCoreWorkflowTemplate(self): + """Test CoreWorkflowTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.core_workflow_template.CoreWorkflowTemplate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py new file mode 100644 index 0000000000..2eebbd100d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventNodeExecutionEvent(unittest.TestCase): + """EventNodeExecutionEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventNodeExecutionEvent(self): + """Test EventNodeExecutionEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_node_execution_event.EventNodeExecutionEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py new file mode 100644 index 0000000000..bbeae47143 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventParentTaskExecutionMetadata(unittest.TestCase): + """EventParentTaskExecutionMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventParentTaskExecutionMetadata(self): + """Test EventParentTaskExecutionMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_parent_task_execution_metadata.EventParentTaskExecutionMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py new file mode 100644 index 0000000000..ba834223be --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventTaskExecutionEvent(unittest.TestCase): + """EventTaskExecutionEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventTaskExecutionEvent(self): + """Test EventTaskExecutionEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_task_execution_event.EventTaskExecutionEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py new file mode 100644 index 0000000000..e2a33aa7b1 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestEventWorkflowExecutionEvent(unittest.TestCase): + """EventWorkflowExecutionEvent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testEventWorkflowExecutionEvent(self): + """Test EventWorkflowExecutionEvent""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.event_workflow_execution_event.EventWorkflowExecutionEvent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py new file mode 100644 index 0000000000..02ebaea8e9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestExecutionMetadataExecutionMode(unittest.TestCase): + """ExecutionMetadataExecutionMode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExecutionMetadataExecutionMode(self): + """Test ExecutionMetadataExecutionMode""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.execution_metadata_execution_mode.ExecutionMetadataExecutionMode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py new file mode 100644 index 0000000000..f841bad233 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminNodeExecution(unittest.TestCase): + """FlyteidladminNodeExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminNodeExecution(self): + """Test FlyteidladminNodeExecution""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_node_execution.FlyteidladminNodeExecution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py new file mode 100644 index 0000000000..a354b9fa0a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminTaskExecution(unittest.TestCase): + """FlyteidladminTaskExecution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminTaskExecution(self): + """Test FlyteidladminTaskExecution""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_task_execution.FlyteidladminTaskExecution() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py new file mode 100644 index 0000000000..7bea00e6e4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidladminWorkflowNodeMetadata(unittest.TestCase): + """FlyteidladminWorkflowNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidladminWorkflowNodeMetadata(self): + """Test FlyteidladminWorkflowNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidladmin_workflow_node_metadata.FlyteidladminWorkflowNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlcore_schema.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlcore_schema.py new file mode 100644 index 0000000000..44a0df3ee7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlcore_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidlcore_schema import FlyteidlcoreSchema # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidlcoreSchema(unittest.TestCase): + """FlyteidlcoreSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidlcoreSchema(self): + """Test FlyteidlcoreSchema""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidlcore_schema.FlyteidlcoreSchema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py new file mode 100644 index 0000000000..b61456adee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestFlyteidleventWorkflowNodeMetadata(unittest.TestCase): + """FlyteidleventWorkflowNodeMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFlyteidleventWorkflowNodeMetadata(self): + """Test FlyteidleventWorkflowNodeMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.flyteidlevent_workflow_node_metadata.FlyteidleventWorkflowNodeMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py new file mode 100644 index 0000000000..0f37fce300 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_list_value import ProtobufListValue # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufListValue(unittest.TestCase): + """ProtobufListValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufListValue(self): + """Test ProtobufListValue""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_list_value.ProtobufListValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py new file mode 100644 index 0000000000..876b115cc0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_null_value import ProtobufNullValue # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufNullValue(unittest.TestCase): + """ProtobufNullValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufNullValue(self): + """Test ProtobufNullValue""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_null_value.ProtobufNullValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py new file mode 100644 index 0000000000..8edcc32145 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufStruct(unittest.TestCase): + """ProtobufStruct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufStruct(self): + """Test ProtobufStruct""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_struct.ProtobufStruct() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py new file mode 100644 index 0000000000..6cbae9d155 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.protobuf_value import ProtobufValue # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestProtobufValue(unittest.TestCase): + """ProtobufValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testProtobufValue(self): + """Test ProtobufValue""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.protobuf_value.ProtobufValue() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py new file mode 100644 index 0000000000..8b141bd69a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestResourcesResourceEntry(unittest.TestCase): + """ResourcesResourceEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourcesResourceEntry(self): + """Test ResourcesResourceEntry""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.resources_resource_entry.ResourcesResourceEntry() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py new file mode 100644 index 0000000000..0ce5f04e55 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.resources_resource_name import ResourcesResourceName # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestResourcesResourceName(unittest.TestCase): + """ResourcesResourceName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourcesResourceName(self): + """Test ResourcesResourceName""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.resources_resource_name.ResourcesResourceName() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py new file mode 100644 index 0000000000..695ff97ea9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestRuntimeMetadataRuntimeType(unittest.TestCase): + """RuntimeMetadataRuntimeType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRuntimeMetadataRuntimeType(self): + """Test RuntimeMetadataRuntimeType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.runtime_metadata_runtime_type.RuntimeMetadataRuntimeType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py new file mode 100644 index 0000000000..9faafc840c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSchemaColumnSchemaColumnType(unittest.TestCase): + """SchemaColumnSchemaColumnType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchemaColumnSchemaColumnType(self): + """Test SchemaColumnSchemaColumnType""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.schema_column_schema_column_type.SchemaColumnSchemaColumnType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py new file mode 100644 index 0000000000..e503ceb525 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSchemaTypeSchemaColumn(unittest.TestCase): + """SchemaTypeSchemaColumn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSchemaTypeSchemaColumn(self): + """Test SchemaTypeSchemaColumn""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.schema_type_schema_column.SchemaTypeSchemaColumn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py new file mode 100644 index 0000000000..74b27825dd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.sort_direction import SortDirection # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestSortDirection(unittest.TestCase): + """SortDirection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSortDirection(self): + """Test SortDirection""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.sort_direction.SortDirection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py new file mode 100644 index 0000000000..4adfba3c53 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + flyteidl/service/admin.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import flyteadmin +from flyteadmin.models.task_log_message_format import TaskLogMessageFormat # noqa: E501 +from flyteadmin.rest import ApiException + + +class TestTaskLogMessageFormat(unittest.TestCase): + """TaskLogMessageFormat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskLogMessageFormat(self): + """Test TaskLogMessageFormat""" + # FIXME: construct object with mandatory attributes with example values + # model = flyteadmin.models.task_log_message_format.TaskLogMessageFormat() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini new file mode 100644 index 0000000000..3d0be613cf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] diff --git a/flyteidl/gen/pb_python/validate/__init__.py b/flyteidl/gen/pb_python/validate/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/validate/validate_pb2.py b/flyteidl/gen/pb_python/validate/validate_pb2.py new file mode 100644 index 0000000000..61679d4112 --- /dev/null +++ b/flyteidl/gen/pb_python/validate/validate_pb2.py @@ -0,0 +1,2149 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pb/ext/validate/validate.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__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.FileDescriptor( + name='pb/ext/validate/validate.proto', + package='validate', + syntax='proto2', + serialized_options=_b('Z\010validate'), + serialized_pb=_b('\n\x1epb/ext/validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x07\n\nFieldRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12)\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"i\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\"j\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\"i\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\"i\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\"j\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\"j\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\"j\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\"j\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\"k\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\"k\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\"l\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\"l\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xc6\x02\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x42\x0c\n\nwell_known\"\xd8\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"j\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\"\x8d\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration:3\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\x97\x8d\x38 \x01(\x08:1\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\x97\x8d\x38 \x01(\x08:D\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\x97\x8d\x38 \x01(\x0b\x32\x14.validate.FieldRulesB\nZ\x08validate') + , + dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + +DISABLED_FIELD_NUMBER = 919191 +disabled = _descriptor.FieldDescriptor( + name='disabled', full_name='validate.disabled', index=0, + number=919191, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +REQUIRED_FIELD_NUMBER = 919191 +required = _descriptor.FieldDescriptor( + name='required', full_name='validate.required', index=1, + number=919191, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +RULES_FIELD_NUMBER = 919191 +rules = _descriptor.FieldDescriptor( + name='rules', full_name='validate.rules', index=2, + number=919191, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) + + +_FIELDRULES = _descriptor.Descriptor( + name='FieldRules', + full_name='validate.FieldRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='float', full_name='validate.FieldRules.float', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double', full_name='validate.FieldRules.double', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int32', full_name='validate.FieldRules.int32', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int64', full_name='validate.FieldRules.int64', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint32', full_name='validate.FieldRules.uint32', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint64', full_name='validate.FieldRules.uint64', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint32', full_name='validate.FieldRules.sint32', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint64', full_name='validate.FieldRules.sint64', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed32', full_name='validate.FieldRules.fixed32', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed64', full_name='validate.FieldRules.fixed64', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed32', full_name='validate.FieldRules.sfixed32', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed64', full_name='validate.FieldRules.sfixed64', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bool', full_name='validate.FieldRules.bool', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string', full_name='validate.FieldRules.string', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bytes', full_name='validate.FieldRules.bytes', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enum', full_name='validate.FieldRules.enum', index=15, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message', full_name='validate.FieldRules.message', index=16, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repeated', full_name='validate.FieldRules.repeated', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map', full_name='validate.FieldRules.map', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='any', full_name='validate.FieldRules.any', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='validate.FieldRules.duration', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timestamp', full_name='validate.FieldRules.timestamp', index=21, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='type', full_name='validate.FieldRules.type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=144, + serialized_end=1066, +) + + +_FLOATRULES = _descriptor.Descriptor( + name='FloatRules', + full_name='validate.FloatRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.FloatRules.const', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.FloatRules.lt', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.FloatRules.lte', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.FloatRules.gt', index=3, + number=4, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.FloatRules.gte', index=4, + number=5, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.FloatRules.in', index=5, + number=6, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.FloatRules.not_in', index=6, + number=7, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1068, + serialized_end=1173, +) + + +_DOUBLERULES = _descriptor.Descriptor( + name='DoubleRules', + full_name='validate.DoubleRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.DoubleRules.const', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DoubleRules.lt', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DoubleRules.lte', index=2, + number=3, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DoubleRules.gt', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DoubleRules.gte', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DoubleRules.in', index=5, + number=6, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DoubleRules.not_in', index=6, + number=7, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1175, + serialized_end=1281, +) + + +_INT32RULES = _descriptor.Descriptor( + name='Int32Rules', + full_name='validate.Int32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int32Rules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int32Rules.lt', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int32Rules.lte', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int32Rules.gt', index=3, + number=4, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int32Rules.gte', index=4, + number=5, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int32Rules.in', index=5, + number=6, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int32Rules.not_in', index=6, + number=7, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1283, + serialized_end=1388, +) + + +_INT64RULES = _descriptor.Descriptor( + name='Int64Rules', + full_name='validate.Int64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int64Rules.const', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int64Rules.lt', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int64Rules.lte', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int64Rules.gt', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int64Rules.gte', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int64Rules.in', index=5, + number=6, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int64Rules.not_in', index=6, + number=7, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1390, + serialized_end=1495, +) + + +_UINT32RULES = _descriptor.Descriptor( + name='UInt32Rules', + full_name='validate.UInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt32Rules.const', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt32Rules.lt', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt32Rules.lte', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt32Rules.gt', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt32Rules.gte', index=4, + number=5, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt32Rules.in', index=5, + number=6, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt32Rules.not_in', index=6, + number=7, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1497, + serialized_end=1603, +) + + +_UINT64RULES = _descriptor.Descriptor( + name='UInt64Rules', + full_name='validate.UInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt64Rules.const', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt64Rules.lt', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt64Rules.lte', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt64Rules.gt', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt64Rules.gte', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt64Rules.in', index=5, + number=6, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt64Rules.not_in', index=6, + number=7, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1605, + serialized_end=1711, +) + + +_SINT32RULES = _descriptor.Descriptor( + name='SInt32Rules', + full_name='validate.SInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt32Rules.const', index=0, + number=1, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt32Rules.lt', index=1, + number=2, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt32Rules.lte', index=2, + number=3, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt32Rules.gt', index=3, + number=4, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt32Rules.gte', index=4, + number=5, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt32Rules.in', index=5, + number=6, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt32Rules.not_in', index=6, + number=7, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1713, + serialized_end=1819, +) + + +_SINT64RULES = _descriptor.Descriptor( + name='SInt64Rules', + full_name='validate.SInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt64Rules.const', index=0, + number=1, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt64Rules.lt', index=1, + number=2, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt64Rules.lte', index=2, + number=3, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt64Rules.gt', index=3, + number=4, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt64Rules.gte', index=4, + number=5, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt64Rules.in', index=5, + number=6, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt64Rules.not_in', index=6, + number=7, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1821, + serialized_end=1927, +) + + +_FIXED32RULES = _descriptor.Descriptor( + name='Fixed32Rules', + full_name='validate.Fixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed32Rules.const', index=0, + number=1, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed32Rules.lt', index=1, + number=2, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed32Rules.lte', index=2, + number=3, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed32Rules.gt', index=3, + number=4, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed32Rules.gte', index=4, + number=5, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed32Rules.in', index=5, + number=6, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed32Rules.not_in', index=6, + number=7, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1929, + serialized_end=2036, +) + + +_FIXED64RULES = _descriptor.Descriptor( + name='Fixed64Rules', + full_name='validate.Fixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed64Rules.const', index=0, + number=1, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed64Rules.lt', index=1, + number=2, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed64Rules.lte', index=2, + number=3, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed64Rules.gt', index=3, + number=4, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed64Rules.gte', index=4, + number=5, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed64Rules.in', index=5, + number=6, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed64Rules.not_in', index=6, + number=7, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2038, + serialized_end=2145, +) + + +_SFIXED32RULES = _descriptor.Descriptor( + name='SFixed32Rules', + full_name='validate.SFixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed32Rules.const', index=0, + number=1, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed32Rules.lt', index=1, + number=2, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed32Rules.lte', index=2, + number=3, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed32Rules.gt', index=3, + number=4, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed32Rules.gte', index=4, + number=5, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed32Rules.in', index=5, + number=6, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed32Rules.not_in', index=6, + number=7, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2147, + serialized_end=2255, +) + + +_SFIXED64RULES = _descriptor.Descriptor( + name='SFixed64Rules', + full_name='validate.SFixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed64Rules.const', index=0, + number=1, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed64Rules.lt', index=1, + number=2, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed64Rules.lte', index=2, + number=3, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed64Rules.gt', index=3, + number=4, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed64Rules.gte', index=4, + number=5, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed64Rules.in', index=5, + number=6, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed64Rules.not_in', index=6, + number=7, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2257, + serialized_end=2365, +) + + +_BOOLRULES = _descriptor.Descriptor( + name='BoolRules', + full_name='validate.BoolRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BoolRules.const', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2367, + serialized_end=2393, +) + + +_STRINGRULES = _descriptor.Descriptor( + name='StringRules', + full_name='validate.StringRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.StringRules.const', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.StringRules.min_len', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.StringRules.max_len', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_bytes', full_name='validate.StringRules.min_bytes', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_bytes', full_name='validate.StringRules.max_bytes', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.StringRules.pattern', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.StringRules.prefix', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.StringRules.suffix', index=7, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.StringRules.contains', index=8, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.StringRules.in', index=9, + number=10, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.StringRules.not_in', index=10, + number=11, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email', full_name='validate.StringRules.email', index=11, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hostname', full_name='validate.StringRules.hostname', index=12, + number=13, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.StringRules.ip', index=13, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.StringRules.ipv4', index=14, + number=15, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.StringRules.ipv6', index=15, + number=16, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri', full_name='validate.StringRules.uri', index=16, + number=17, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri_ref', full_name='validate.StringRules.uri_ref', index=17, + number=18, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.StringRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2396, + serialized_end=2722, +) + + +_BYTESRULES = _descriptor.Descriptor( + name='BytesRules', + full_name='validate.BytesRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BytesRules.const', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.BytesRules.min_len', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.BytesRules.max_len', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.BytesRules.pattern', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.BytesRules.prefix', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.BytesRules.suffix', index=5, + number=6, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.BytesRules.contains', index=6, + number=7, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.BytesRules.in', index=7, + number=8, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.BytesRules.not_in', index=8, + number=9, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.BytesRules.ip', index=9, + number=10, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.BytesRules.ipv4', index=10, + number=11, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.BytesRules.ipv6', index=11, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.BytesRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2725, + serialized_end=2941, +) + + +_ENUMRULES = _descriptor.Descriptor( + name='EnumRules', + full_name='validate.EnumRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.EnumRules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='defined_only', full_name='validate.EnumRules.defined_only', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.EnumRules.in', index=2, + number=3, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.EnumRules.not_in', index=3, + number=4, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2943, + serialized_end=3019, +) + + +_MESSAGERULES = _descriptor.Descriptor( + name='MessageRules', + full_name='validate.MessageRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='skip', full_name='validate.MessageRules.skip', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='required', full_name='validate.MessageRules.required', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3021, + serialized_end=3067, +) + + +_REPEATEDRULES = _descriptor.Descriptor( + name='RepeatedRules', + full_name='validate.RepeatedRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_items', full_name='validate.RepeatedRules.min_items', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_items', full_name='validate.RepeatedRules.max_items', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unique', full_name='validate.RepeatedRules.unique', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='items', full_name='validate.RepeatedRules.items', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3069, + serialized_end=3175, +) + + +_MAPRULES = _descriptor.Descriptor( + name='MapRules', + full_name='validate.MapRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_pairs', full_name='validate.MapRules.min_pairs', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_pairs', full_name='validate.MapRules.max_pairs', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='no_sparse', full_name='validate.MapRules.no_sparse', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keys', full_name='validate.MapRules.keys', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='values', full_name='validate.MapRules.values', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3178, + serialized_end=3319, +) + + +_ANYRULES = _descriptor.Descriptor( + name='AnyRules', + full_name='validate.AnyRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.AnyRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.AnyRules.in', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.AnyRules.not_in', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3321, + serialized_end=3377, +) + + +_DURATIONRULES = _descriptor.Descriptor( + name='DurationRules', + full_name='validate.DurationRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.DurationRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.DurationRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DurationRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DurationRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DurationRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DurationRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DurationRules.in', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DurationRules.not_in', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3380, + serialized_end=3695, +) + + +_TIMESTAMPRULES = _descriptor.Descriptor( + name='TimestampRules', + full_name='validate.TimestampRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.TimestampRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.TimestampRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.TimestampRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.TimestampRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.TimestampRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.TimestampRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt_now', full_name='validate.TimestampRules.lt_now', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt_now', full_name='validate.TimestampRules.gt_now', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='within', full_name='validate.TimestampRules.within', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3698, + serialized_end=4012, +) + +_FIELDRULES.fields_by_name['float'].message_type = _FLOATRULES +_FIELDRULES.fields_by_name['double'].message_type = _DOUBLERULES +_FIELDRULES.fields_by_name['int32'].message_type = _INT32RULES +_FIELDRULES.fields_by_name['int64'].message_type = _INT64RULES +_FIELDRULES.fields_by_name['uint32'].message_type = _UINT32RULES +_FIELDRULES.fields_by_name['uint64'].message_type = _UINT64RULES +_FIELDRULES.fields_by_name['sint32'].message_type = _SINT32RULES +_FIELDRULES.fields_by_name['sint64'].message_type = _SINT64RULES +_FIELDRULES.fields_by_name['fixed32'].message_type = _FIXED32RULES +_FIELDRULES.fields_by_name['fixed64'].message_type = _FIXED64RULES +_FIELDRULES.fields_by_name['sfixed32'].message_type = _SFIXED32RULES +_FIELDRULES.fields_by_name['sfixed64'].message_type = _SFIXED64RULES +_FIELDRULES.fields_by_name['bool'].message_type = _BOOLRULES +_FIELDRULES.fields_by_name['string'].message_type = _STRINGRULES +_FIELDRULES.fields_by_name['bytes'].message_type = _BYTESRULES +_FIELDRULES.fields_by_name['enum'].message_type = _ENUMRULES +_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES +_FIELDRULES.fields_by_name['repeated'].message_type = _REPEATEDRULES +_FIELDRULES.fields_by_name['map'].message_type = _MAPRULES +_FIELDRULES.fields_by_name['any'].message_type = _ANYRULES +_FIELDRULES.fields_by_name['duration'].message_type = _DURATIONRULES +_FIELDRULES.fields_by_name['timestamp'].message_type = _TIMESTAMPRULES +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['float']) +_FIELDRULES.fields_by_name['float'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['double']) +_FIELDRULES.fields_by_name['double'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int32']) +_FIELDRULES.fields_by_name['int32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int64']) +_FIELDRULES.fields_by_name['int64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint32']) +_FIELDRULES.fields_by_name['uint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint64']) +_FIELDRULES.fields_by_name['uint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint32']) +_FIELDRULES.fields_by_name['sint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint64']) +_FIELDRULES.fields_by_name['sint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed32']) +_FIELDRULES.fields_by_name['fixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed64']) +_FIELDRULES.fields_by_name['fixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed32']) +_FIELDRULES.fields_by_name['sfixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed64']) +_FIELDRULES.fields_by_name['sfixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bool']) +_FIELDRULES.fields_by_name['bool'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['string']) +_FIELDRULES.fields_by_name['string'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bytes']) +_FIELDRULES.fields_by_name['bytes'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['enum']) +_FIELDRULES.fields_by_name['enum'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['message']) +_FIELDRULES.fields_by_name['message'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['repeated']) +_FIELDRULES.fields_by_name['repeated'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['map']) +_FIELDRULES.fields_by_name['map'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['any']) +_FIELDRULES.fields_by_name['any'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['duration']) +_FIELDRULES.fields_by_name['duration'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['timestamp']) +_FIELDRULES.fields_by_name['timestamp'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['email']) +_STRINGRULES.fields_by_name['email'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['hostname']) +_STRINGRULES.fields_by_name['hostname'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ip']) +_STRINGRULES.fields_by_name['ip'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv4']) +_STRINGRULES.fields_by_name['ipv4'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv6']) +_STRINGRULES.fields_by_name['ipv6'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri']) +_STRINGRULES.fields_by_name['uri'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri_ref']) +_STRINGRULES.fields_by_name['uri_ref'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ip']) +_BYTESRULES.fields_by_name['ip'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv4']) +_BYTESRULES.fields_by_name['ipv4'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv6']) +_BYTESRULES.fields_by_name['ipv6'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_REPEATEDRULES.fields_by_name['items'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['keys'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['values'].message_type = _FIELDRULES +_DURATIONRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['not_in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TIMESTAMPRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['within'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name['FieldRules'] = _FIELDRULES +DESCRIPTOR.message_types_by_name['FloatRules'] = _FLOATRULES +DESCRIPTOR.message_types_by_name['DoubleRules'] = _DOUBLERULES +DESCRIPTOR.message_types_by_name['Int32Rules'] = _INT32RULES +DESCRIPTOR.message_types_by_name['Int64Rules'] = _INT64RULES +DESCRIPTOR.message_types_by_name['UInt32Rules'] = _UINT32RULES +DESCRIPTOR.message_types_by_name['UInt64Rules'] = _UINT64RULES +DESCRIPTOR.message_types_by_name['SInt32Rules'] = _SINT32RULES +DESCRIPTOR.message_types_by_name['SInt64Rules'] = _SINT64RULES +DESCRIPTOR.message_types_by_name['Fixed32Rules'] = _FIXED32RULES +DESCRIPTOR.message_types_by_name['Fixed64Rules'] = _FIXED64RULES +DESCRIPTOR.message_types_by_name['SFixed32Rules'] = _SFIXED32RULES +DESCRIPTOR.message_types_by_name['SFixed64Rules'] = _SFIXED64RULES +DESCRIPTOR.message_types_by_name['BoolRules'] = _BOOLRULES +DESCRIPTOR.message_types_by_name['StringRules'] = _STRINGRULES +DESCRIPTOR.message_types_by_name['BytesRules'] = _BYTESRULES +DESCRIPTOR.message_types_by_name['EnumRules'] = _ENUMRULES +DESCRIPTOR.message_types_by_name['MessageRules'] = _MESSAGERULES +DESCRIPTOR.message_types_by_name['RepeatedRules'] = _REPEATEDRULES +DESCRIPTOR.message_types_by_name['MapRules'] = _MAPRULES +DESCRIPTOR.message_types_by_name['AnyRules'] = _ANYRULES +DESCRIPTOR.message_types_by_name['DurationRules'] = _DURATIONRULES +DESCRIPTOR.message_types_by_name['TimestampRules'] = _TIMESTAMPRULES +DESCRIPTOR.extensions_by_name['disabled'] = disabled +DESCRIPTOR.extensions_by_name['required'] = required +DESCRIPTOR.extensions_by_name['rules'] = rules +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FieldRules = _reflection.GeneratedProtocolMessageType('FieldRules', (_message.Message,), dict( + DESCRIPTOR = _FIELDRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FieldRules) + )) +_sym_db.RegisterMessage(FieldRules) + +FloatRules = _reflection.GeneratedProtocolMessageType('FloatRules', (_message.Message,), dict( + DESCRIPTOR = _FLOATRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FloatRules) + )) +_sym_db.RegisterMessage(FloatRules) + +DoubleRules = _reflection.GeneratedProtocolMessageType('DoubleRules', (_message.Message,), dict( + DESCRIPTOR = _DOUBLERULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DoubleRules) + )) +_sym_db.RegisterMessage(DoubleRules) + +Int32Rules = _reflection.GeneratedProtocolMessageType('Int32Rules', (_message.Message,), dict( + DESCRIPTOR = _INT32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int32Rules) + )) +_sym_db.RegisterMessage(Int32Rules) + +Int64Rules = _reflection.GeneratedProtocolMessageType('Int64Rules', (_message.Message,), dict( + DESCRIPTOR = _INT64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int64Rules) + )) +_sym_db.RegisterMessage(Int64Rules) + +UInt32Rules = _reflection.GeneratedProtocolMessageType('UInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt32Rules) + )) +_sym_db.RegisterMessage(UInt32Rules) + +UInt64Rules = _reflection.GeneratedProtocolMessageType('UInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt64Rules) + )) +_sym_db.RegisterMessage(UInt64Rules) + +SInt32Rules = _reflection.GeneratedProtocolMessageType('SInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt32Rules) + )) +_sym_db.RegisterMessage(SInt32Rules) + +SInt64Rules = _reflection.GeneratedProtocolMessageType('SInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt64Rules) + )) +_sym_db.RegisterMessage(SInt64Rules) + +Fixed32Rules = _reflection.GeneratedProtocolMessageType('Fixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed32Rules) + )) +_sym_db.RegisterMessage(Fixed32Rules) + +Fixed64Rules = _reflection.GeneratedProtocolMessageType('Fixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed64Rules) + )) +_sym_db.RegisterMessage(Fixed64Rules) + +SFixed32Rules = _reflection.GeneratedProtocolMessageType('SFixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed32Rules) + )) +_sym_db.RegisterMessage(SFixed32Rules) + +SFixed64Rules = _reflection.GeneratedProtocolMessageType('SFixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed64Rules) + )) +_sym_db.RegisterMessage(SFixed64Rules) + +BoolRules = _reflection.GeneratedProtocolMessageType('BoolRules', (_message.Message,), dict( + DESCRIPTOR = _BOOLRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BoolRules) + )) +_sym_db.RegisterMessage(BoolRules) + +StringRules = _reflection.GeneratedProtocolMessageType('StringRules', (_message.Message,), dict( + DESCRIPTOR = _STRINGRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.StringRules) + )) +_sym_db.RegisterMessage(StringRules) + +BytesRules = _reflection.GeneratedProtocolMessageType('BytesRules', (_message.Message,), dict( + DESCRIPTOR = _BYTESRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BytesRules) + )) +_sym_db.RegisterMessage(BytesRules) + +EnumRules = _reflection.GeneratedProtocolMessageType('EnumRules', (_message.Message,), dict( + DESCRIPTOR = _ENUMRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.EnumRules) + )) +_sym_db.RegisterMessage(EnumRules) + +MessageRules = _reflection.GeneratedProtocolMessageType('MessageRules', (_message.Message,), dict( + DESCRIPTOR = _MESSAGERULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MessageRules) + )) +_sym_db.RegisterMessage(MessageRules) + +RepeatedRules = _reflection.GeneratedProtocolMessageType('RepeatedRules', (_message.Message,), dict( + DESCRIPTOR = _REPEATEDRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.RepeatedRules) + )) +_sym_db.RegisterMessage(RepeatedRules) + +MapRules = _reflection.GeneratedProtocolMessageType('MapRules', (_message.Message,), dict( + DESCRIPTOR = _MAPRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MapRules) + )) +_sym_db.RegisterMessage(MapRules) + +AnyRules = _reflection.GeneratedProtocolMessageType('AnyRules', (_message.Message,), dict( + DESCRIPTOR = _ANYRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.AnyRules) + )) +_sym_db.RegisterMessage(AnyRules) + +DurationRules = _reflection.GeneratedProtocolMessageType('DurationRules', (_message.Message,), dict( + DESCRIPTOR = _DURATIONRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DurationRules) + )) +_sym_db.RegisterMessage(DurationRules) + +TimestampRules = _reflection.GeneratedProtocolMessageType('TimestampRules', (_message.Message,), dict( + DESCRIPTOR = _TIMESTAMPRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.TimestampRules) + )) +_sym_db.RegisterMessage(TimestampRules) + +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(disabled) +google_dot_protobuf_dot_descriptor__pb2.OneofOptions.RegisterExtension(required) +rules.message_type = _FIELDRULES +google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(rules) + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/validate/validate_pb2.pyi b/flyteidl/gen/pb_python/validate/validate_pb2.pyi new file mode 100644 index 0000000000..6f9873f9e1 --- /dev/null +++ b/flyteidl/gen/pb_python/validate/validate_pb2.pyi @@ -0,0 +1,661 @@ +# @generated by generate_proto_mypy_stubs.py. Do not edit! +from google.protobuf.descriptor import ( + FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, +) + +from google.protobuf.duration_pb2 import ( + Duration as google___protobuf___duration_pb2___Duration, +) + +from google.protobuf.internal.containers import ( + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from google.protobuf.timestamp_pb2 import ( + Timestamp as google___protobuf___timestamp_pb2___Timestamp, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + + +class FieldRules(google___protobuf___message___Message): + + @property + def float(self) -> FloatRules: ... + + @property + def double(self) -> DoubleRules: ... + + @property + def int32(self) -> Int32Rules: ... + + @property + def int64(self) -> Int64Rules: ... + + @property + def uint32(self) -> UInt32Rules: ... + + @property + def uint64(self) -> UInt64Rules: ... + + @property + def sint32(self) -> SInt32Rules: ... + + @property + def sint64(self) -> SInt64Rules: ... + + @property + def fixed32(self) -> Fixed32Rules: ... + + @property + def fixed64(self) -> Fixed64Rules: ... + + @property + def sfixed32(self) -> SFixed32Rules: ... + + @property + def sfixed64(self) -> SFixed64Rules: ... + + @property + def bool(self) -> BoolRules: ... + + @property + def string(self) -> StringRules: ... + + @property + def bytes(self) -> BytesRules: ... + + @property + def enum(self) -> EnumRules: ... + + @property + def message(self) -> MessageRules: ... + + @property + def repeated(self) -> RepeatedRules: ... + + @property + def map(self) -> MapRules: ... + + @property + def any(self) -> AnyRules: ... + + @property + def duration(self) -> DurationRules: ... + + @property + def timestamp(self) -> TimestampRules: ... + + def __init__(self, + float : typing___Optional[FloatRules] = None, + double : typing___Optional[DoubleRules] = None, + int32 : typing___Optional[Int32Rules] = None, + int64 : typing___Optional[Int64Rules] = None, + uint32 : typing___Optional[UInt32Rules] = None, + uint64 : typing___Optional[UInt64Rules] = None, + sint32 : typing___Optional[SInt32Rules] = None, + sint64 : typing___Optional[SInt64Rules] = None, + fixed32 : typing___Optional[Fixed32Rules] = None, + fixed64 : typing___Optional[Fixed64Rules] = None, + sfixed32 : typing___Optional[SFixed32Rules] = None, + sfixed64 : typing___Optional[SFixed64Rules] = None, + bool : typing___Optional[BoolRules] = None, + string : typing___Optional[StringRules] = None, + bytes : typing___Optional[BytesRules] = None, + enum : typing___Optional[EnumRules] = None, + message : typing___Optional[MessageRules] = None, + repeated : typing___Optional[RepeatedRules] = None, + map : typing___Optional[MapRules] = None, + any : typing___Optional[AnyRules] = None, + duration : typing___Optional[DurationRules] = None, + timestamp : typing___Optional[TimestampRules] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> FieldRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class FloatRules(google___protobuf___message___Message): + const = ... # type: float + lt = ... # type: float + lte = ... # type: float + gt = ... # type: float + gte = ... # type: float + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + + def __init__(self, + const : typing___Optional[float] = None, + lt : typing___Optional[float] = None, + lte : typing___Optional[float] = None, + gt : typing___Optional[float] = None, + gte : typing___Optional[float] = None, + in : typing___Optional[typing___Iterable[float]] = None, + not_in : typing___Optional[typing___Iterable[float]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> FloatRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class DoubleRules(google___protobuf___message___Message): + const = ... # type: float + lt = ... # type: float + lte = ... # type: float + gt = ... # type: float + gte = ... # type: float + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + + def __init__(self, + const : typing___Optional[float] = None, + lt : typing___Optional[float] = None, + lte : typing___Optional[float] = None, + gt : typing___Optional[float] = None, + gte : typing___Optional[float] = None, + in : typing___Optional[typing___Iterable[float]] = None, + not_in : typing___Optional[typing___Iterable[float]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> DoubleRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Int32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Int32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Int64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Int64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class UInt32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> UInt32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class UInt64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> UInt64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SInt32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SInt32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SInt64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SInt64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Fixed32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Fixed32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Fixed64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Fixed64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SFixed32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SFixed32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SFixed64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SFixed64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class BoolRules(google___protobuf___message___Message): + const = ... # type: bool + + def __init__(self, + const : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> BoolRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class StringRules(google___protobuf___message___Message): + const = ... # type: typing___Text + min_len = ... # type: int + max_len = ... # type: int + min_bytes = ... # type: int + max_bytes = ... # type: int + pattern = ... # type: typing___Text + prefix = ... # type: typing___Text + suffix = ... # type: typing___Text + contains = ... # type: typing___Text + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + email = ... # type: bool + hostname = ... # type: bool + ip = ... # type: bool + ipv4 = ... # type: bool + ipv6 = ... # type: bool + uri = ... # type: bool + uri_ref = ... # type: bool + + def __init__(self, + const : typing___Optional[typing___Text] = None, + min_len : typing___Optional[int] = None, + max_len : typing___Optional[int] = None, + min_bytes : typing___Optional[int] = None, + max_bytes : typing___Optional[int] = None, + pattern : typing___Optional[typing___Text] = None, + prefix : typing___Optional[typing___Text] = None, + suffix : typing___Optional[typing___Text] = None, + contains : typing___Optional[typing___Text] = None, + in : typing___Optional[typing___Iterable[typing___Text]] = None, + not_in : typing___Optional[typing___Iterable[typing___Text]] = None, + email : typing___Optional[bool] = None, + hostname : typing___Optional[bool] = None, + ip : typing___Optional[bool] = None, + ipv4 : typing___Optional[bool] = None, + ipv6 : typing___Optional[bool] = None, + uri : typing___Optional[bool] = None, + uri_ref : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> StringRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class BytesRules(google___protobuf___message___Message): + const = ... # type: bytes + min_len = ... # type: int + max_len = ... # type: int + pattern = ... # type: typing___Text + prefix = ... # type: bytes + suffix = ... # type: bytes + contains = ... # type: bytes + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] + ip = ... # type: bool + ipv4 = ... # type: bool + ipv6 = ... # type: bool + + def __init__(self, + const : typing___Optional[bytes] = None, + min_len : typing___Optional[int] = None, + max_len : typing___Optional[int] = None, + pattern : typing___Optional[typing___Text] = None, + prefix : typing___Optional[bytes] = None, + suffix : typing___Optional[bytes] = None, + contains : typing___Optional[bytes] = None, + in : typing___Optional[typing___Iterable[bytes]] = None, + not_in : typing___Optional[typing___Iterable[bytes]] = None, + ip : typing___Optional[bool] = None, + ipv4 : typing___Optional[bool] = None, + ipv6 : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> BytesRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class EnumRules(google___protobuf___message___Message): + const = ... # type: int + defined_only = ... # type: bool + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + defined_only : typing___Optional[bool] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> EnumRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class MessageRules(google___protobuf___message___Message): + skip = ... # type: bool + required = ... # type: bool + + def __init__(self, + skip : typing___Optional[bool] = None, + required : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> MessageRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class RepeatedRules(google___protobuf___message___Message): + min_items = ... # type: int + max_items = ... # type: int + unique = ... # type: bool + + @property + def items(self) -> FieldRules: ... + + def __init__(self, + min_items : typing___Optional[int] = None, + max_items : typing___Optional[int] = None, + unique : typing___Optional[bool] = None, + items : typing___Optional[FieldRules] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> RepeatedRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class MapRules(google___protobuf___message___Message): + min_pairs = ... # type: int + max_pairs = ... # type: int + no_sparse = ... # type: bool + + @property + def keys(self) -> FieldRules: ... + + @property + def values(self) -> FieldRules: ... + + def __init__(self, + min_pairs : typing___Optional[int] = None, + max_pairs : typing___Optional[int] = None, + no_sparse : typing___Optional[bool] = None, + keys : typing___Optional[FieldRules] = None, + values : typing___Optional[FieldRules] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> MapRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class AnyRules(google___protobuf___message___Message): + required = ... # type: bool + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + + def __init__(self, + required : typing___Optional[bool] = None, + in : typing___Optional[typing___Iterable[typing___Text]] = None, + not_in : typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> AnyRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class DurationRules(google___protobuf___message___Message): + required = ... # type: bool + + @property + def const(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def lt(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def lte(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def gt(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def gte(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... + + @property + def not_in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... + + def __init__(self, + required : typing___Optional[bool] = None, + const : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + lt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + lte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + gt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + gte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, + not_in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> DurationRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class TimestampRules(google___protobuf___message___Message): + required = ... # type: bool + lt_now = ... # type: bool + gt_now = ... # type: bool + + @property + def const(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def lt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def lte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def gt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def gte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def within(self) -> google___protobuf___duration_pb2___Duration: ... + + def __init__(self, + required : typing___Optional[bool] = None, + const : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + lt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + lte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + gt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + gte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + lt_now : typing___Optional[bool] = None, + gt_now : typing___Optional[bool] = None, + within : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> TimestampRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +disabled = ... # type: google___protobuf___descriptor___FieldDescriptor + +required = ... # type: google___protobuf___descriptor___FieldDescriptor + +rules = ... # type: google___protobuf___descriptor___FieldDescriptor diff --git a/flyteidl/gen/pb_python/validate/validate_pb2_grpc.py b/flyteidl/gen/pb_python/validate/validate_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/gen/pb_python/validate/validate_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/flyteidl/generate_mocks.sh b/flyteidl/generate_mocks.sh new file mode 100755 index 0000000000..16f0d1bc09 --- /dev/null +++ b/flyteidl/generate_mocks.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e +set -x +go get github.com/vektra/mockery/cmd/mockery + +mockery -dir=gen/pb-go/flyteidl/service/ -name=AdminServiceClient -output=clients/go/admin/mocks +mockery -dir=gen/pb-go/flyteidl/datacatalog/ -name=ArtifactsClient -output=clients/go/datacatalog/mocks diff --git a/flyteidl/generate_protos.sh b/flyteidl/generate_protos.sh new file mode 100755 index 0000000000..24e94072cb --- /dev/null +++ b/flyteidl/generate_protos.sh @@ -0,0 +1,72 @@ +#!/bin/bash + +DIR=`pwd` +rm -rf $DIR/gen +LYFT_IMAGE="lyft/protocgenerator:d53ce1490e235bf765c93b4a8cfcdd07a1325024" +SWAGGER_CLI_IMAGE="docker.io/lyft/swagger-codegen-cli:dc5ce6ec6d7d4d980fa882d6bd13a83cba3be3c3" + +docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/service --with_gateway -l go --go_source_relative +docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/admin --with_gateway -l go --go_source_relative --validate_out +docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/core --with_gateway -l go --go_source_relative --validate_out +docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/event --with_gateway -l go --go_source_relative --validate_out +docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/plugins -l go --go_source_relative --validate_out +docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/datacatalog -l go --go_source_relative --validate_out + +languages=("python" "cpp" "java") +idlfolders=("service" "admin" "core" "event" "plugins") + +for lang in "${languages[@]}" +do + for folder in "${idlfolders[@]}" + do + docker run -u $(id -u):$(id -g) -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/$folder -l $lang + done +done + +# Docs generated +docker run -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/service -l protodoc +docker run -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/admin -l protodoc +docker run -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/core -l protodoc +docker run -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/event -l protodoc +docker run -u $(id -u):$(id -g) -e REPO_BLOB_SHA=master -e PROJECT_ANNOTATION_PREFIX=flyte.interface -v $DIR:/defs $LYFT_IMAGE -i ./protos -d protos/flyteidl/plugins -l protodoc + +# Generate binary data from OpenAPI 2 file +docker run -u $(id -u):$(id -g) -v $DIR/gen/pb-go/flyteidl/service:/service --entrypoint go-bindata $LYFT_IMAGE -pkg service -o /service/openapi.go -prefix /service/ -modtime 1562572800 /service/admin.swagger.json + +# Generate JS code +docker run -u $(id -u):$(id -g) -v $DIR:/defs schottra/docker-protobufjs:latest --module-name flyteidl -d protos/flyteidl/core -d protos/flyteidl/event -d protos/flyteidl/admin -d protos/flyteidl/service -- --root flyteidl -t static-module -w es6 --no-delimited --force-long --no-convert -p /defs/protos + +# Generate GO API client code +docker run -u $(id -u):$(id -g) --rm -v $DIR:/defs $SWAGGER_CLI_IMAGE generate -i /defs/gen/pb-go/flyteidl/service/admin.swagger.json -l go -o /defs/gen/pb-go/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + +# # Generate Python API client code +docker run -u $(id -u):$(id -g) --rm -v $DIR:/defs $SWAGGER_CLI_IMAGE generate -i /defs/gen/pb-go/flyteidl/service/admin.swagger.json -l python -o /defs/gen/pb_python/flyteidl/service/flyteadmin --additional-properties=packageName=flyteadmin + +# Remove documentation generated from the swagger-codegen-cli +rm -rf gen/pb-go/flyteidl/service/flyteadmin/docs +rm -rf gen/pb_python/flyteidl/service/flyteadmin/docs + + +# Unfortunately, the `--grpc-gateway-out` plugin doesn’t yet support the `source_relative` option. Until it does, we need to move the files from the autogenerated location to the source_relative location. +cp -r gen/pb-go/github.com/lyft/flyteidl/gen/* gen/ +rm -rf gen/pb-go/github.com + +# Copy the validate.py protos. +mkdir -p gen/pb_python/validate +cp -r validate/* gen/pb_python/validate/ + +# This section is used by Travis CI to ensure that the generation step was run +if [ -n "$DELTA_CHECK" ]; then + DIRTY=$(git status --porcelain) + if [ -n "$DIRTY" ]; then + echo "FAILED: Protos updated without commiting generated code." + echo "Ensure make generate has run and all changes are committed." + DIFF=$(git diff) + echo "diff detected: $DIFF" + DIFF=$(git diff --name-only) + echo "files different: $DIFF" + exit 1 + else + echo "SUCCESS: Generated code is up to date." + fi +fi diff --git a/flyteidl/protos/flyteidl/admin/common.proto b/flyteidl/protos/flyteidl/admin/common.proto new file mode 100644 index 0000000000..d51cc5b8e8 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/common.proto @@ -0,0 +1,150 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +// import "validate/validate.proto"; + +// Encapsulation of fields that identifies a Flyte resource. +// A resource can internally have multiple versions. +message NamedEntityIdentifier { + // Name of the project the resource belongs to. + string project = 1; // [(validate.rules).string.min_bytes = 1]; + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 2; // [(validate.rules).string.min_bytes = 1]; + // User provided value for the resource. + // The combination of project + domain + name uniquely identifies the resource. + // +optional - in certain contexts - like 'List API', 'Launch plans' + string name = 3; +} + +// Species sort ordering in a list request. +message Sort { + enum Direction { + DESCENDING = 0; + ASCENDING = 1; + } + // Indicates an attribute to sort the response values. + // TODO(katrogan): Add string validation here. This should never be empty. + string key = 1; + + // Indicates the direction to apply sort key for response values. + // +optional + Direction direction = 2; +} + +// Represents a request structure to list identifiers. +message NamedEntityIdentifierListRequest { + // Name of the project that contains the identifiers. + string project = 1; // [(validate.rules).string.min_bytes = 1]; + // Name of the domain the identifiers belongs to within the project. + string domain = 2; // [(validate.rules).string.min_bytes = 1]; + // Indicates the number of resources to be returned. + uint32 limit = 3; + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +// Represents a list of Identifiers. +message NamedEntityIdentifierList { + // A list of identifiers. + repeated NamedEntityIdentifier entities = 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; +} + +// Represents a structure to fetch a single resource. +message ObjectGetRequest { + // Indicates a unique version of resource. + core.Identifier id = 1; +} + +// Represents a request structure to retrieve a list of resources. +// Resources include: Task, Workflow, LaunchPlan +message ResourceListRequest { + // id represents the unique identifier of the resource. + NamedEntityIdentifier id = 1; + // Indicates the number of resources to be returned. + uint32 limit = 2; + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +message EmailNotification { + // The list of email addresses recipients for this notification. + repeated string recipients_email = 1; // [(validate.rules).repeated = {min_items: 1, unique: true, items: {string: {email: true}}}]; +} + +message PagerDutyNotification { + // Currently, PagerDuty notifications leverage email to trigger a notification. + repeated string recipients_email = 1; // [(validate.rules).repeated = {min_items: 1, unique: true, items: {string: {email: true}}}]; +} + +message SlackNotification { + // Currently, Slack notifications leverage email to trigger a notification. + repeated string recipients_email = 1; // [(validate.rules).repeated = {min_items: 1, unique: true, items: {string: {email: true}}}]; + +} + +// Represents a structure for notifications based on execution status. +// The Notification content is configured within Admin. Future iterations could +// expose configuring notifications with custom content. +message Notification { + // A list of phases to which users can associate the notifications to. + repeated core.WorkflowExecution.Phase phases = 1; + + oneof type { + // option (validate.required) = true; + EmailNotification email = 2; + PagerDutyNotification pager_duty = 3; + SlackNotification slack = 4; + } + +} + +// Represents a string url and associated metadata used throughout the platform. +message UrlBlob { + // Actual url value. + string url = 1; + + // Represents the size of the file accessible at the above url. + int64 bytes = 2; +} + +// Label values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge labels defined at registration and execution time. +message Labels { + // Map of custom labels to be applied to the execution resource. + map values = 1; +} + +// Annotation values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge annotations defined at registration and execution time. +message Annotations { + // Map of custom annotations to be applied to the execution resource. + map values = 1; +} + diff --git a/flyteidl/protos/flyteidl/admin/event.proto b/flyteidl/protos/flyteidl/admin/event.proto new file mode 100644 index 0000000000..f19b90c667 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/event.proto @@ -0,0 +1,55 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/event/event.proto"; + +message EventErrorAlreadyInTerminalState { + string current_phase = 1; +} + +message EventFailureReason { + oneof reason { + EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + } +} + +// Request to send a notification that a workflow execution event has occurred. +message WorkflowExecutionEventRequest { + // Unique ID for this request that can be traced between services + string request_id = 1; + + // Details about the event that occurred. + event.WorkflowExecutionEvent event = 2; +} + +message WorkflowExecutionEventResponse { + // a placeholder for now +} + +// Request to send a notification that a node execution event has occurred. +message NodeExecutionEventRequest { + // Unique ID for this request that can be traced between services + string request_id = 1; + + // Details about the event that occurred. + event.NodeExecutionEvent event = 2; +} + +message NodeExecutionEventResponse { + // a placeholder for now +} + +// Request to send a notification that a task execution event has occurred. +message TaskExecutionEventRequest { + // Unique ID for this request that can be traced between services + string request_id = 1; + + // Details about the event that occurred. + event.TaskExecutionEvent event = 2; +} + +message TaskExecutionEventResponse { + // a placeholder for now +} diff --git a/flyteidl/protos/flyteidl/admin/execution.proto b/flyteidl/protos/flyteidl/admin/execution.proto new file mode 100644 index 0000000000..33d8aaf3f1 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/execution.proto @@ -0,0 +1,237 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +// Request to launch an execution with the given project, domain and optionally name. +message ExecutionCreateRequest { + // Name of the project the execution belongs to. + string project = 1; + + // Name of the domain the execution belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 2; + + // User provided value for the resource. + // If none is provided the system will generate a unique string. + // +optional + string name = 3; + + // Additional fields necessary to launch the execution. + ExecutionSpec spec = 4; +} + +// Request to relaunch the referenced execution. +message ExecutionRelaunchRequest { + // Identifier of the workflow execution to relaunch. + core.WorkflowExecutionIdentifier id = 1; + + // User provided value for the relaunched execution. + // If none is provided the system will generate a unique string. + // +optional + string name = 3; +} + +// The unique identifier for a successfully created execution. +// If the name was *not* specified in the create request, this identifier will include a generated name. +message ExecutionCreateResponse { + core.WorkflowExecutionIdentifier id = 1; +} + +// A message used to fetch a single workflow execution entity. +message WorkflowExecutionGetRequest { + // Uniquely identifies an individual workflow execution. + core.WorkflowExecutionIdentifier id = 1; +} + +// A workflow execution represents an instantiated workflow, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +// Used as a response object used in Get and List execution requests. +message Execution { + // Unique identifier of the workflow execution. + core.WorkflowExecutionIdentifier id = 1; + + // User-provided configuration and inputs for launching the execution. + ExecutionSpec spec = 2; + + // Execution results. + ExecutionClosure closure = 3; +} + +// Used as a response for request to list executions. +message ExecutionList { + repeated Execution executions = 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; +} + +// Input/output data can represented by actual values or a link to where values are stored +message LiteralMapBlob { + oneof data { + // Data in LiteralMap format + core.LiteralMap values = 1; + + // In the event that the map is too large, we return a uri to the data + string uri = 2; + } +} + +// Encapsulates the results of the Execution +message ExecutionClosure { + // A result produced by a terminated execution. + // A pending (non-terminal) execution will not have any output result. + oneof output_result { + // A map of outputs in the case of a successful execution. + LiteralMapBlob outputs = 1; + + // Error information in the case of a failed execution. + core.ExecutionError error = 2; + + // In the case of a user-specified abort, this will pass along the user-supplied cause. + string abort_cause = 10; + } + + // Inputs computed and passed for execution. + // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + core.LiteralMap computed_inputs = 3; + + // Most recent recorded phase for the execution. + core.WorkflowExecution.Phase phase = 4; + + // Reported ime at which the execution began running. + google.protobuf.Timestamp started_at = 5; + + // The amount of time the execution spent running. + google.protobuf.Duration duration = 6; + + // Reported time at which the execution was created. + google.protobuf.Timestamp created_at = 7; + + // Reported time at which the execution was last updated. + google.protobuf.Timestamp updated_at = 8; + + // The notification settings to use after merging the CreateExecutionRequest and the launch plan + // notification settings. An execution launched with notifications will always prefer that definition + // to notifications defined statically in a launch plan. + repeated Notification notifications = 9; + + // Identifies the workflow definition for this execution. + core.Identifier workflow_id = 11; +} + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. +// These attributes are assigned at launch time and do not change. +message ExecutionMetadata { + // The method by which this execution was launched. + enum ExecutionMode { + // The default execution mode, MANUAL implies that an execution was launched by an individual. + MANUAL = 0; + + // A schedule triggered this execution launch. + SCHEDULED = 1; + + // A system process was responsible for launching this execution rather an individual. + SYSTEM = 2; + + // This execution was launched with identical inputs as a previous execution. + RELAUNCH = 3; + + // This execution was triggered by another execution. + CHILD_WORKFLOW = 4; + } + ExecutionMode mode = 1; // [(validate.rules).enum.defined_only = true]; + + // Identifier of the entity that triggered this execution. + string principal = 2; + + // Indicates the "nestedness" of this execution. + // If a user launches a workflow execution, the default nesting is 0. + // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + // Generally, if workflow at nesting level k launches a workflow then the child workflow will have + // nesting = k + 1. + uint32 nesting = 3; + + // For scheduled executions, the requested time for execution for this specific schedule invocation. + google.protobuf.Timestamp scheduled_at = 4; + + // Which subworkflow node launched this execution + core.NodeExecutionIdentifier parent_node_execution = 5; + + // Optional, a reference workflow execution related to this execution. + // In the case of a relaunch, this references the original workflow execution. + core.WorkflowExecutionIdentifier reference_execution = 16; +} + +message NotificationList { + repeated Notification notifications = 1; +} + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +// of an execution as it progresses across phase changes.. +message ExecutionSpec { + // Launch plan to be executed + core.Identifier launch_plan = 1; + + // Input values to be passed for the execution + core.LiteralMap inputs = 2; + + // Metadata for the execution + ExecutionMetadata metadata = 3; + + // This field is deprecated. Do not use. + reserved 4; + + oneof notification_overrides { + // List of notifications based on Execution status transitions + // When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + // When this list is empty, the notifications defined for the launch plan will be applied. + NotificationList notifications = 5; + + // This should be set to true if all notifications are intended to be disabled for this execution. + bool disable_all = 6; + } + + // Labels to apply to the execution resource. + Labels labels = 7; + + // Annotations to apply to the execution resource. + Annotations annotations = 8; +} + +// Request to terminate an in-progress execution. This action is irreversible. +// If an execution is already terminated, this request will simply be a no-op. +// This request will fail if it references a non-existent execution. +// If the request succeeds the phase "ABORTED" will be recorded for the termination +// with the optional cause added to the output_result. +message ExecutionTerminateRequest { + // Uniquely identifies the individual workflow execution to be terminated. + core.WorkflowExecutionIdentifier id = 1; + + // Optional reason for aborting. + string cause = 2; +} + +message ExecutionTerminateResponse { + // Purposefully empty, may be populated in the future. +} + +// Request structure to fetch inputs and output urls for an execution. +message WorkflowExecutionGetDataRequest { + // The identifier of the execution for which to fetch inputs and outputs. + core.WorkflowExecutionIdentifier id = 1; +} + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +message WorkflowExecutionGetDataResponse { + // Signed url to fetch a core.LiteralMap of execution outputs. + UrlBlob outputs = 1; +} diff --git a/flyteidl/protos/flyteidl/admin/launch_plan.proto b/flyteidl/protos/flyteidl/admin/launch_plan.proto new file mode 100644 index 0000000000..e2acd7dfee --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/launch_plan.proto @@ -0,0 +1,135 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/literals.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/admin/schedule.proto"; +import "flyteidl/admin/common.proto"; +import "google/protobuf/timestamp.proto"; + +// Request to register a launch plan. A LaunchPlanSpec may include a complete or incomplete set of inputs required +// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have created a launch plan. +message LaunchPlanCreateRequest { + // Uniquely identifies a launch plan entity. + core.Identifier id = 1; + + // User-provided launch plan details, including reference workflow, inputs and other metadata. + LaunchPlanSpec spec = 2; +} + +message LaunchPlanCreateResponse { + // Purposefully empty, may be populated in the future. +} + +// By default any launch plan regardless of state can be used to launch a workflow execution. +// However, at most one version of a launch plan +// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +// group will be observed and trigger executions at a defined cadence. +enum LaunchPlanState { + INACTIVE = 0; + ACTIVE = 1; +} + +// A LaunchPlan provides the capability to templatize workflow executions. +// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +// definition doesn't necessarily have a default value for said input. +message LaunchPlan { + core.Identifier id = 1; + + LaunchPlanSpec spec = 2; + LaunchPlanClosure closure = 3; +} + +// Response object for list launch plan requests. +message LaunchPlanList { + repeated LaunchPlan launch_plans = 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; +} + +// Defines permissions associated with executions created by this launch plan spec. +message Auth { + oneof method { + string assumable_iam_role = 1; + string kubernetes_service_account = 2; + } +} + + +// User-provided launch plan definition and configuration values. +message LaunchPlanSpec { + // Reference to the Workflow template that the launch plan references + core.Identifier workflow_id = 1; + + // Metadata for the Launch Plan + LaunchPlanMetadata entity_metadata = 2; + + // Input values to be passed for the execution + core.ParameterMap default_inputs = 3; + + // Fixed, non-overridable inputs for the Launch Plan + core.LiteralMap fixed_inputs = 4; + + // String to indicate the role to use to execute the workflow underneath + string role = 5 [deprecated=true]; + + // Custom labels to be applied to the execution resource. + Labels labels = 6; + + // Custom annotations to be applied to the execution resource. + Annotations annotations = 7; + + // Indicates the permission associated with workflow executions triggered with this launch plan. + Auth auth = 8; +} + +// Values computed by the flyte platform after launch plan registration. +// These include expected_inputs required to be present in a CreateExecutionRequest +// to launch the reference workflow as well timestamp values associated with the launch plan. +message LaunchPlanClosure { + // Indicate the Launch plan phase + LaunchPlanState state = 1; + + // Indicates the set of inputs to execute the Launch plan + core.ParameterMap expected_inputs = 2; + + // Indicates the set of outputs from the Launch plan + core.VariableMap expected_outputs = 3; + + // Time at which the launch plan was created. + google.protobuf.Timestamp created_at = 4; + + // Time at which the launch plan was last updated. + google.protobuf.Timestamp updated_at = 5; +} + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +// the reference workflow. +message LaunchPlanMetadata { + // Schedule to execute the Launch Plan + Schedule schedule = 1; + + // List of notifications based on Execution status transitions + repeated Notification notifications = 2; +} + +// Request to set the referenced launch plan state to the configured value. +message LaunchPlanUpdateRequest { + // Identifier of launch plan for which to change state. + core.Identifier id = 1; + + // Desired state to apply to the launch plan. + LaunchPlanState state = 2; +} + +// Purposefully empty, may be populated in the future. +message LaunchPlanUpdateResponse { +} diff --git a/flyteidl/protos/flyteidl/admin/node_execution.proto b/flyteidl/protos/flyteidl/admin/node_execution.proto new file mode 100644 index 0000000000..918e3cc365 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/node_execution.proto @@ -0,0 +1,136 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; + +// A message used to fetch a single node execution entity. +message NodeExecutionGetRequest { + + // Uniquely identifies an individual node execution. + core.NodeExecutionIdentifier id = 1; +} + +// Represents a request structure to retrieve a list of node execution entities. +message NodeExecutionListRequest { + // Indicates the workflow execution to filter by. + core.WorkflowExecutionIdentifier workflow_execution_id = 1; + + // Indicates the number of resources to be returned. + uint32 limit = 2; + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +message NodeExecutionForTaskListRequest { + // Indicates the node execution to filter by. + core.TaskExecutionIdentifier task_execution_id = 1; + + // Indicates the number of resources to be returned. + uint32 limit = 2; + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering. + // +optional + Sort sort_by = 5; +} + +// Encapsulates all details for a single node execution entity. +// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +// sub-workflow, or even a separate child-workflow execution. +// The same task can be called repeatedly in a single workflow but each node is unique. +message NodeExecution { + + // Uniquely identifies an individual node execution. + core.NodeExecutionIdentifier id = 1; + + // Path to remote data store where input blob is stored. + string input_uri = 2; + + // Computed results associated with this node execution. + NodeExecutionClosure closure = 3; +} + +// Request structure to retrieve a list of node execution entities. +message NodeExecutionList { + repeated NodeExecution node_executions = 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; +} + +// Container for node execution details and results. +message NodeExecutionClosure { + // Only a node in a terminal state will have a non-empty output_result. + oneof output_result { + string output_uri = 1; + + // Error information for the Node + core.ExecutionError error = 2; + } + + // The last recorded phase for this node execution. + core.NodeExecution.Phase phase = 3; + + // Time at which the node execution began running. + google.protobuf.Timestamp started_at = 4; + + // The amount of time the node execution spent running. + google.protobuf.Duration duration = 5; + + // Time at which the node execution was created. + google.protobuf.Timestamp created_at = 6; + + // Time at which the node execution was last updated. + google.protobuf.Timestamp updated_at = 7; + + // Store metadata for what the node launched. + // for ex: if this is a workflow node, we store information for the launched workflow. + oneof target_metadata { + WorkflowNodeMetadata workflow_node_metadata = 8; + } +} + +// Metadata for a WorkflowNode +message WorkflowNodeMetadata { + core.WorkflowExecutionIdentifier executionId = 1; +} + +// Request structure to fetch inputs and output urls for a node execution. +message NodeExecutionGetDataRequest { + // The identifier of the node execution for which to fetch inputs and outputs. + core.NodeExecutionIdentifier id = 1; +} + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +message NodeExecutionGetDataResponse { + // Signed url to fetch a core.LiteralMap of node execution inputs. + UrlBlob inputs = 1; + + // Signed url to fetch a core.LiteralMap of node execution outputs. + UrlBlob outputs = 2; +} diff --git a/flyteidl/protos/flyteidl/admin/notification.proto b/flyteidl/protos/flyteidl/admin/notification.proto new file mode 100644 index 0000000000..f20138f643 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/notification.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; + +package flyteidl.admin; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +// import "validate/validate.proto"; + +// Represents the Email object that is sent to a publisher/subscriber +// to forward the notification. +// Note: This is internal to Admin and doesn't need to be exposed to other components. +message EmailMessage { + // The list of email addresses to receive an email with the content populated in the other fields. + // Currently, each email recipient will receive its own email. + // This populates the TO field. + repeated string recipients_email = 1; // [(validate.rules).repeated = {min_items: 1, unique: true, items: {string: {email: true}}}]; + + // The email of the sender. + // This populates the FROM field. + string sender_email = 2; // [(validate.rules).string.email = true]; + + // The content of the subject line. + // This populates the SUBJECT field. + string subject_line = 3; // [(validate.rules).string.min_len = 1]; + + // The content of the email body. + // This populates the BODY field. + string body = 4; // [(validate.rules).string.min_len = 1]; +} diff --git a/flyteidl/protos/flyteidl/admin/project.proto b/flyteidl/protos/flyteidl/admin/project.proto new file mode 100644 index 0000000000..80b037d5de --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/project.proto @@ -0,0 +1,37 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +// Namespace within a project commonly used to differentiate between different service instances. +// e.g. "production", "development", etc. +message Domain { + string id = 1; + + // Display name. + string name = 2; +} + +// Top-level namespace used to classify different entities like workflows and executions. +message Project { + string id = 1; + + // Display name. + string name = 2; + + repeated Domain domains = 3; +} + +message Projects { + repeated Project projects = 1; +} + +message ProjectListRequest { +} + +message ProjectRegisterRequest { + Project project = 1; +} + +message ProjectRegisterResponse { +} diff --git a/flyteidl/protos/flyteidl/admin/schedule.proto b/flyteidl/protos/flyteidl/admin/schedule.proto new file mode 100644 index 0000000000..50798774fa --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/schedule.proto @@ -0,0 +1,31 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +// Represents a frequency at which to run a schedule. +enum FixedRateUnit { + MINUTE = 0; + HOUR = 1; + DAY = 2; +} + +// Option for schedules run at a certain frequency, e.g. every 2 minutes. +message FixedRate { + uint32 value = 1; + FixedRateUnit unit = 2; +} + +// Defines complete set of information required to trigger an execution on a schedule. +message Schedule { + + oneof ScheduleExpression { + // Uses AWS syntax: "Minutes Hours Day-of-month Month Day-of-week Year" + // e.g. for a schedule that runs every 15 minutes: "0/15 * * * ? *" + string cron_expression = 1; + FixedRate rate = 2; + } + + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + string kickoff_time_input_arg = 3; +} diff --git a/flyteidl/protos/flyteidl/admin/task.proto b/flyteidl/protos/flyteidl/admin/task.proto new file mode 100644 index 0000000000..4155b3c4ca --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/task.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/compiler.proto"; +import "google/protobuf/timestamp.proto"; + +// Represents a request structure to create a revision of a task. +message TaskCreateRequest { + // id represents the unique identifier of the task. + core.Identifier id = 1; + + // Represents the specification for task. + TaskSpec spec = 2; +} + +// Represents a response structure if task creation succeeds. +message TaskCreateResponse { + // Purposefully empty, may be populated in the future. +} + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +// arranged to process workflow inputs and produce a deterministic set of outputs. +// Tasks can come in many varieties tuned for specialized behavior. +message Task { + // id represents the unique identifier of the task. + core.Identifier id = 1; + + + // closure encapsulates all the fields that maps to a compiled version of the task. + TaskClosure closure = 2; +} + +// Represents a list of tasks returned from the admin. +message TaskList { + // A list of tasks returned based on the request. + repeated Task tasks = 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; +} + +// Represents a structure that encapsulates the user-configured specification of the task. +message TaskSpec { + // Template of the task that encapsulates all the metadata of the task. + core.TaskTemplate template = 1; +} + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +// and task metadata. +message TaskClosure { + // Represents the compiled representation of the task from the specification provided. + core.CompiledTask compiled_task = 1; + + // Time at which the task was created. + google.protobuf.Timestamp created_at = 2; +} diff --git a/flyteidl/protos/flyteidl/admin/task_execution.proto b/flyteidl/protos/flyteidl/admin/task_execution.proto new file mode 100644 index 0000000000..96fe0465c3 --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/task_execution.proto @@ -0,0 +1,113 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/admin/common.proto"; +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; + +// A message used to fetch a single task execution entity. +message TaskExecutionGetRequest { + // Unique identifier for the task execution. + core.TaskExecutionIdentifier id = 1; +} + +// Represents a request structure to retrieve a list of task execution entities. +message TaskExecutionListRequest { + // Indicates the node execution to filter by. + core.NodeExecutionIdentifier node_execution_id = 1; + + // Indicates the number of resources to be returned. + uint32 limit = 2; + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + string token = 3; + + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + string filters = 4; + + // Sort ordering for returned list. + // +optional + Sort sort_by = 5; +} + +// Encapsulates all details for a single task execution entity. +// A task execution represents an instantiated task, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +message TaskExecution { + // Unique identifier for the task execution. + core.TaskExecutionIdentifier id = 1; + + // Path to remote data store where input blob is stored. + string input_uri = 2; + + // Task execution details and results. + TaskExecutionClosure closure = 3; + + // Whether this task spawned nodes. + bool is_parent = 4; +} + +// Response structure for a query to list of task execution entities. +message TaskExecutionList { + repeated TaskExecution task_executions = 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; +} + +// Container for task execution details and results. +message TaskExecutionClosure { + oneof output_result { + // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + string output_uri = 1; + + // Error information for the task execution. Populated if the execution failed. + core.ExecutionError error = 2; + } + + // The last recorded phase for this task execution. + core.TaskExecution.Phase phase = 3; + + // Detailed log information output by the task execution. + repeated core.TaskLog logs = 4; + + // Time at which the task execution began running. + google.protobuf.Timestamp started_at = 5; + + // The amount of time the task execution spent running. + google.protobuf.Duration duration = 6; + + // Time at which the task execution was created. + google.protobuf.Timestamp created_at = 7; + + // Time at which the task execution was last updated. + google.protobuf.Timestamp updated_at = 8; + + // Custom data specific to the task plugin. + google.protobuf.Struct custom_info = 9; +} + +// Request structure to fetch inputs and output urls for a task execution. +message TaskExecutionGetDataRequest { + // The identifier of the task execution for which to fetch inputs and outputs. + core.TaskExecutionIdentifier id = 1; +} + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +message TaskExecutionGetDataResponse { + // Signed url to fetch a core.LiteralMap of task execution inputs. + UrlBlob inputs = 1; + + // Signed url to fetch a core.LiteralMap of task execution outputs. + UrlBlob outputs = 2; +} diff --git a/flyteidl/protos/flyteidl/admin/title.rst b/flyteidl/protos/flyteidl/admin/title.rst new file mode 100644 index 0000000000..fa42f05e5d --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/title.rst @@ -0,0 +1,7 @@ +Flyte Admin Service entities +============================ + +These are the control plane entities that can be used to communication with the +Flyte Admin service over gRPC or REST. The endpoint specification is provided +.. TODO Add reference here.. + diff --git a/flyteidl/protos/flyteidl/admin/workflow.proto b/flyteidl/protos/flyteidl/admin/workflow.proto new file mode 100644 index 0000000000..bc84daf6bb --- /dev/null +++ b/flyteidl/protos/flyteidl/admin/workflow.proto @@ -0,0 +1,59 @@ +syntax = "proto3"; + +package flyteidl.admin; +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/admin"; + +import "flyteidl/core/compiler.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/workflow.proto"; +import "flyteidl/admin/common.proto"; +import "google/protobuf/timestamp.proto"; + +// Represents a request structure to create a revision of a workflow. +message WorkflowCreateRequest { + // id represents the unique identifier of the workflow. + core.Identifier id = 1; + + // Represents the specification for workflow. + WorkflowSpec spec = 2; +} + +message WorkflowCreateResponse { + // Purposefully empty, may be populated in the future. +} + +// Represents the workflow structure stored in the Admin +// A workflow is created by ordering tasks and associating outputs to inputs +// in order to produce a directed-acyclic execution graph. +message Workflow { + // id represents the unique identifier of the workflow. + core.Identifier id = 1; + + // closure encapsulates all the fields that maps to a compiled version of the workflow. + WorkflowClosure closure = 2; +} + +// Represents a list of workflows returned from the admin. +message WorkflowList { + // A list of workflows returned based on the request. + repeated Workflow workflows = 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; +} + +// Represents a structure that encapsulates the specification of the workflow. +message WorkflowSpec { + // Template of the task that encapsulates all the metadata of the workflow. + core.WorkflowTemplate template = 1; +} + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +message WorkflowClosure { + // Represents the compiled representation of the workflow from the specification provided. + core.CompiledWorkflowClosure compiled_workflow = 1; + + // Time at which the workflow was created. + google.protobuf.Timestamp created_at = 2; +} diff --git a/flyteidl/protos/flyteidl/core/compiler.proto b/flyteidl/protos/flyteidl/core/compiler.proto new file mode 100644 index 0000000000..6e1eda5bbb --- /dev/null +++ b/flyteidl/protos/flyteidl/core/compiler.proto @@ -0,0 +1,53 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/workflow.proto"; +import "flyteidl/core/tasks.proto"; + +// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +// step uses this created ConnectionSet +message ConnectionSet { + message IdList { + repeated string ids = 1; + } + + // A list of all the node ids that are downstream from a given node id + map downstream = 7; + + // A list of all the node ids, that are upstream of this node id + map upstream = 8; +} + +// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +message CompiledWorkflow { + // Completely contained Workflow Template + WorkflowTemplate template = 1; + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + ConnectionSet connections = 2; +} + +// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +message CompiledTask { + // Completely contained TaskTemplate + TaskTemplate template = 1; +} + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +// compiled subworkflows. +message CompiledWorkflowClosure { + //+required + CompiledWorkflow primary = 1; + // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + // as an inlined workflow + //+optional + repeated CompiledWorkflow sub_workflows = 2; + // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + //+required (atleast 1) + repeated CompiledTask tasks = 3; +} diff --git a/flyteidl/protos/flyteidl/core/condition.proto b/flyteidl/protos/flyteidl/core/condition.proto new file mode 100644 index 0000000000..fdfa246069 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/condition.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/literals.proto"; + +// 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. +message ComparisonExpression { + // Binary Operator for each expression + enum Operator { + EQ = 0; + NEQ = 1; + // Greater Than + GT = 2; + GTE = 3; + // Less Than + LT = 4; + LTE = 5; + } + + Operator operator = 1; + Operand left_value = 2; + Operand right_value = 3; +} + +// Defines an operand to a comparison expression. +message Operand { + oneof val { + // Can be a constant + core.Primitive primitive = 1; + // Or one of this node's input variables + string var = 2; + } +} + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. +// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +message BooleanExpression { + oneof expr { + ConjunctionExpression conjunction = 1; + ComparisonExpression comparison = 2; + } +} + +// Defines a conjunction expression of two boolean expressions. +message ConjunctionExpression { + // Nested conditions. They can be conjoined using AND / OR + // Order of evaluation is not important as the operators are Commutative + enum LogicalOperator { + // Conjunction + AND = 0; + OR = 1; + } + + LogicalOperator operator = 1; + BooleanExpression left_expression = 2; + BooleanExpression right_expression = 3; +} diff --git a/flyteidl/protos/flyteidl/core/dynamic_job.proto b/flyteidl/protos/flyteidl/core/dynamic_job.proto new file mode 100644 index 0000000000..b865d72e24 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/dynamic_job.proto @@ -0,0 +1,32 @@ +syntax = "proto3"; + +import "flyteidl/core/tasks.proto"; +import "flyteidl/core/workflow.proto"; +import "flyteidl/core/literals.proto"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +// Describes a set of tasks to execute and how the final outputs are produced. +message DynamicJobSpec { + // A collection of nodes to execute. + repeated Node nodes = 1; + + // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + // specified, is the count of nodes repeated field. + int64 min_successes = 2; + + // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + // in bindings should have the generated id for the subtask. + repeated Binding outputs = 3; + + // [Optional] A complete list of task specs referenced in nodes. + repeated TaskTemplate tasks = 4; + + // [Optional] A complete list of task specs referenced in nodes. + repeated WorkflowTemplate subworkflows = 5; +} diff --git a/flyteidl/protos/flyteidl/core/errors.proto b/flyteidl/protos/flyteidl/core/errors.proto new file mode 100644 index 0000000000..74b67609ed --- /dev/null +++ b/flyteidl/protos/flyteidl/core/errors.proto @@ -0,0 +1,30 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +// Error message to propagate detailed errors from container executions to the execution +// engine. +message ContainerError { + // A simplified code for errors, so that we can provide a glossary of all possible errors. + string code = 1; + // A detailed error message. + string message = 2; + + // Defines a generic error type that dictates the behavior of the retry strategy. + enum Kind { + NON_RECOVERABLE = 0; + RECOVERABLE = 1; + } + + // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + Kind kind = 3; +} + +// Defines the errors.pb file format the container can produce to communicate +// failure reasons to the execution engine. +message ErrorDocument { + // The error raised during execution. + ContainerError error = 1; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/core/execution.proto b/flyteidl/protos/flyteidl/core/execution.proto new file mode 100644 index 0000000000..b58664493e --- /dev/null +++ b/flyteidl/protos/flyteidl/core/execution.proto @@ -0,0 +1,78 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "google/protobuf/duration.proto"; + +// Indicates various phases of Workflow Execution +message WorkflowExecution { + enum Phase { + UNDEFINED = 0; + QUEUED = 1; + RUNNING = 2; + SUCCEEDING = 3; + SUCCEEDED = 4; + FAILING = 5; + FAILED = 6; + ABORTED = 7; + TIMED_OUT = 8; + } +} + +// Indicates various phases of Node Execution +message NodeExecution { + enum Phase { + UNDEFINED = 0; + QUEUED = 1; + RUNNING = 2; + SUCCEEDED = 3; + FAILING = 4; + FAILED = 5; + ABORTED = 6; + SKIPPED = 7; + TIMED_OUT = 8; + } +} + +// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +// but this is the cumulative list that customers may want to know about for their task. +message TaskExecution{ + enum Phase { + UNDEFINED = 0; + QUEUED = 1; + RUNNING = 2; + SUCCEEDED = 3; + ABORTED = 4; + FAILED = 5; + } +} + + +// Represents the error message from the execution. +message ExecutionError { + // Error code indicates a grouping of a type of error. + // More Info: + string code = 1; + // Detailed description of the error - including stack trace. + string message = 2; + // Full error contents accessible via a URI + string error_uri = 3; +} + +// Log information for the task that is specific to a log sink +// When our log story is flushed out, we may have more metadata here like log link expiry +message TaskLog { + + enum MessageFormat { + UNKNOWN = 0; + CSV = 1; + JSON = 2; + } + + string uri = 1; + string name = 2; + MessageFormat message_format = 3; + google.protobuf.Duration ttl = 4; +} diff --git a/flyteidl/protos/flyteidl/core/identifier.proto b/flyteidl/protos/flyteidl/core/identifier.proto new file mode 100644 index 0000000000..dd5eef6dbf --- /dev/null +++ b/flyteidl/protos/flyteidl/core/identifier.proto @@ -0,0 +1,61 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +// Indicates a resource type within Flyte. +enum ResourceType { + UNSPECIFIED = 0; + TASK = 1; + WORKFLOW = 2; + LAUNCH_PLAN = 3; +} + +// Encapsulation of fields that uniquely identifies a Flyte resource. +message Identifier { + // Identifies the specific type of resource that this identifer corresponds to. + ResourceType resource_type = 1; + + // Name of the project the resource belongs to. + string project = 2; + + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 3; + + // User provided value for the resource. + string name = 4; + + // Specific version of the resource. + string version = 5; +} + +// Encapsulation of fields that uniquely identifies a Flyte workflow execution +message WorkflowExecutionIdentifier { + // Name of the project the resource belongs to. + string project = 1; + + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + string domain = 2; + + // User or system provided value for the resource. + string name = 4; +} + +// Encapsulation of fields that identify a Flyte node execution entity. +message NodeExecutionIdentifier { + string node_id = 1; + + WorkflowExecutionIdentifier execution_id = 2; +} + +// Encapsulation of fields that identify a Flyte task execution entity. +message TaskExecutionIdentifier { + core.Identifier task_id = 1; + + core.NodeExecutionIdentifier node_execution_id = 2; + + uint32 retry_attempt = 3; +} diff --git a/flyteidl/protos/flyteidl/core/interface.proto b/flyteidl/protos/flyteidl/core/interface.proto new file mode 100644 index 0000000000..de48b991f0 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/interface.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/types.proto"; +import "flyteidl/core/literals.proto"; + +// Defines a strongly typed variable. +message Variable { + // Variable literal type. + LiteralType type = 1; + + //+optional string describing input variable + string description = 2; +} + +// A map of Variables +message VariableMap { + // Defines a map of variable names to variables. + map variables = 1; +} + +// Defines strongly typed inputs and outputs. +message TypedInterface { + VariableMap inputs = 1; + VariableMap outputs = 2; +} + +// A parameter is used as input to a launch plan and has +// the special ability to have a default value or mark itself as required. +message Parameter { + //+required Variable. Defines the type of the variable backing this parameter. + Variable var = 1; + + //+optional + oneof behavior { + // Defines a default value that has to match the variable type defined. + Literal default = 2; + + //+optional, is this value required to be filled. + bool required = 3; + } +} + +// A map of Parameters. +message ParameterMap { + // Defines a map of parameter names to parameters. + map parameters = 1; +} diff --git a/flyteidl/protos/flyteidl/core/literals.proto b/flyteidl/protos/flyteidl/core/literals.proto new file mode 100644 index 0000000000..52427c7725 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/literals.proto @@ -0,0 +1,142 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "flyteidl/core/types.proto"; + +// Primitive Types +message Primitive { + // Defines one of simple primitive types. These types will get translated into different programming languages as + // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + oneof value { + int64 integer = 1; + double float_value = 2; + string string_value = 3; + bool boolean = 4; + google.protobuf.Timestamp datetime = 5; + google.protobuf.Duration duration = 6; + } +} + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +// undefined since it can be assigned to a scalar of any LiteralType. +message Void { +} + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +message Blob { + BlobMetadata metadata = 1; + string uri = 3; +} + +message BlobMetadata { + BlobType type = 1; +} + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +message Binary { + bytes value = 1; + string tag = 2; +} + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +message Schema { + string uri = 1; + SchemaType type = 3; +} + +message Scalar { + oneof value { + Primitive primitive = 1; + Blob blob = 2; + Binary binary = 3; + Schema schema = 4; + Void none_type = 5; + Error error = 6; + google.protobuf.Struct generic = 7; + } +} + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +message Literal { + oneof value { + // A simple value. + Scalar scalar = 1; + + // A collection of literals to allow nesting. + LiteralCollection collection = 2; + + // A map of strings to literals. + LiteralMap map = 3; + } +} + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +message LiteralCollection { + repeated Literal literals = 1; +} + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +message LiteralMap { + map literals = 1; +} + +// A collection of BindingData items. +message BindingDataCollection { + repeated BindingData bindings = 1; +} + +// A map of BindingData items. +message BindingDataMap { + map bindings = 1; +} + +// Specifies either a simple value or a reference to another output. +message BindingData { + oneof value { + // A simple scalar value. + Scalar scalar = 1; + + // A collection of binding data. This allows nesting of binding data to any number + // of levels. + BindingDataCollection collection = 2; + + // References an output promised by another node. + OutputReference promise = 3; + + // A map of bindings. The key is always a string. + BindingDataMap map = 4; + } +} + +// An input/output binding of a variable to either static value or a node output. +message Binding { + // Variable name must match an input/output variable of the node. + string var = 1; + + // Data to use to bind this variable. + BindingData binding = 2; +} + +// A generic key value pair. +message KeyValuePair { + //required. + string key = 1; + + //+optional. + string value = 2; +} + +// Retry strategy associated with an executable unit. +message RetryStrategy { + // Number of retries. Retries will be consumed when the job fails with a recoverable error. + // The number of retries must be less than or equals to 10. + uint32 retries = 5; +} diff --git a/flyteidl/protos/flyteidl/core/tasks.proto b/flyteidl/protos/flyteidl/core/tasks.proto new file mode 100644 index 0000000000..9b04687a99 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/tasks.proto @@ -0,0 +1,146 @@ +syntax = "proto3"; + +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/core/literals.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +// A customizable interface to convey resources requested for a container. This can be interpretted differently for different +// container engines. +message Resources { + // Known resource names. + enum ResourceName { + UNKNOWN = 0; + CPU = 1; + GPU = 2; + MEMORY = 3; + STORAGE = 4; + } + + // Encapsulates a resource name and value. + message ResourceEntry { + // Resource name. + ResourceName name = 1; + + // Value must be a valid k8s quantity. See + // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + string value = 2; + } + + // The desired set of resources requested. ResourceNames must be unique within the list. + repeated ResourceEntry requests = 1; + + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + // within the list. + repeated ResourceEntry limits = 2; +} + +// Runtime information. This is losely defined to allow for extensibility. +message RuntimeMetadata { + enum RuntimeType { + OTHER = 0; + FLYTE_SDK = 1; + } + + // Type of runtime. + RuntimeType type = 1; + + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version + // checks to ensure tighter validation or setting expectations. + string version = 2; + + //+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + string flavor = 3; +} + +// Task Metadata +message TaskMetadata { + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + bool discoverable = 1; + + // Runtime information about the task. + RuntimeMetadata runtime = 2; + + // The overall timeout of a task including user-triggered retries. + google.protobuf.Duration timeout = 4; + + // Number of retries per task. + RetryStrategy retries = 5; + + // Indicates a logical version to apply to this task for the purpose of discovery. + string discovery_version = 6; + + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + // of the ending of support for a given task. + string deprecated_error_message = 7; +} + +// A Task structure that uniquely identifies a task in the system +// Tasks are registered as a first step in the system. +message TaskTemplate { + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Identifier id = 1; + + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + // implementation registered for the TaskCategory. + string type = 2; + + // Extra metadata about the task. + TaskMetadata metadata = 3; + + // A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees + // compile-time validation of the workflow to avoid costly runtime failures. + TypedInterface interface = 4; + + // Custom data about the task. This is extensible to allow various plugins in the system. + google.protobuf.Struct custom = 5; + + // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + // handlers. + oneof target { + Container container = 6; + } +} + +// ----------------- First class Plugins + +// Defines port properties for a container. +message ContainerPort { + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + uint32 container_port = 1; +} + +message Container { + // Container image url. Eg: docker/redis:latest + string image = 1; + + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + repeated string command = 2; + + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + // system will populate these before executing the container. + repeated string args = 3; + + // Container resources requirement as specified by the container engine. + Resources resources = 4; + + // Environment variables will be set as the container is starting up. + repeated KeyValuePair env = 5; + + // Allows extra configs to be available for the container. + // TODO: elaborate on how configs will become available. + repeated KeyValuePair config = 6; + + // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + // not supported on AWS Batch) + repeated ContainerPort ports = 7; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/core/title.rst b/flyteidl/protos/flyteidl/core/title.rst new file mode 100644 index 0000000000..a08195c14a --- /dev/null +++ b/flyteidl/protos/flyteidl/core/title.rst @@ -0,0 +1,8 @@ +Core Flyte language specification +================================= + +These set of protocol buffers provides details of some of the core data +structures like Workflows, Tasks, Nodes, Literals. These are the specification +of the various entities in Flyte as well as the type system. + + diff --git a/flyteidl/protos/flyteidl/core/types.proto b/flyteidl/protos/flyteidl/core/types.proto new file mode 100644 index 0000000000..3760f7de9c --- /dev/null +++ b/flyteidl/protos/flyteidl/core/types.proto @@ -0,0 +1,100 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "google/protobuf/struct.proto"; + +// Define a set of simple types. +enum SimpleType { + NONE = 0; + INTEGER = 1; + FLOAT = 2; + STRING = 3; + BOOLEAN = 4; + DATETIME = 5; + DURATION = 6; + BINARY = 7; + ERROR = 8; + STRUCT = 9; +} + +// Defines schema columns and types to strongly type-validate schemas interoperability. +message SchemaType { + message SchemaColumn { + // A unique name -within the schema type- for the column + string name = 1; + + enum SchemaColumnType { + INTEGER = 0; + FLOAT = 1; + STRING = 2; + BOOLEAN = 3; + DATETIME = 4; + DURATION = 5; + } + + // The column type. This allows a limited set of types currently. + SchemaColumnType type = 2; + } + + // A list of ordered columns this schema comprises of. + repeated SchemaColumn columns = 3; +} + +// Defines type behavior for blob objects +message BlobType { + enum BlobDimensionality { + SINGLE = 0; + MULTIPART = 1; + } + + // Format can be a free form string understood by SDK/UI etc like + // csv, parquet etc + string format = 1; + BlobDimensionality dimensionality = 2; +} + +// Defines a strong type to allow type checking between interfaces. +message LiteralType { + oneof type { + // A simple type that can be compared one-to-one with another. + SimpleType simple = 1; + + // A complex type that requires matching of inner fields. + SchemaType schema = 2; + + // Defines the type of the value of a collection. Only homogeneous collections are allowed. + LiteralType collection_type = 3; + + // Defines the type of the value of a map type. The type of the key is always a string. + LiteralType map_value_type = 4; + + // A blob might have specialized implementation details depending on associated metadata. + BlobType blob = 5; + } + + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + // consumers to identify special behavior or display extended information for the type. + google.protobuf.Struct metadata = 6; +} + +// A reference to an output produced by a node. The type can be retrieved -and validated- from +// the underlying interface of the node. +message OutputReference { + // Node id must exist at the graph layer. + string node_id = 1; + + // Variable name must refer to an output variable for the node. + string var = 2; +} + +// Represents an error thrown from a node. +message Error { + // The node id that threw the error. + string failed_node_id = 1; + + // Error message thrown. + string message = 2; +} diff --git a/flyteidl/protos/flyteidl/core/workflow.proto b/flyteidl/protos/flyteidl/core/workflow.proto new file mode 100644 index 0000000000..0c12468696 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/workflow.proto @@ -0,0 +1,161 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/condition.proto"; +import "flyteidl/core/identifier.proto"; +import "flyteidl/core/interface.proto"; +import "flyteidl/core/literals.proto"; +import "flyteidl/core/types.proto"; +import "google/protobuf/duration.proto"; + + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +message IfBlock { + core.BooleanExpression condition = 1; + Node then_node = 2; +} + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +// If no conditions were satisfied, the else_node or the error will execute. +message IfElseBlock { + //+required. First condition to evaluate. + IfBlock case = 1; + + //+optional. Additional branches to evaluate. + repeated IfBlock other = 2; + + //+required. + oneof default { + // The node to execute in case none of the branches were taken. + Node else_node = 3; + + // An error to throw in case none of the branches were taken. + Error error = 4; + } +} + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primtives). +message BranchNode { + //+required + IfElseBlock if_else = 1; +} + +// Refers to the task that the Node is to execute. +message TaskNode { + oneof reference { + // A globally unique identifier for the task. + Identifier reference_id = 1; + } +} + +// Refers to a the workflow the node is to execute. +message WorkflowNode { + oneof reference { + // A globally unique identifier for the launch plan. + Identifier launchplan_ref = 1; + + // Reference to a subworkflow, that should be defined with the compiler context + Identifier sub_workflow_ref = 2; + } +} + +// Defines extra information about the Node. +message NodeMetadata { + // A friendly name for the Node + string name = 1; + + // The overall timeout of a task. + google.protobuf.Duration timeout = 4; + + // Number of retries per task. + RetryStrategy retries = 5; +} + +// Links a variable to an alias. +message Alias { + // Must match one of the output variable names on a node. + string var = 1; + + // A workflow-level unique alias that downstream nodes can refer to in their input. + string alias = 2; +} + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +// node. +message Node { + // A workflow-level unique identifier that identifies this node in the workflow. "inputs" and "outputs" are reserved + // node ids that cannot be used by other nodes. + string id = 1; + + // Extra metadata about the node. + NodeMetadata metadata = 2; + + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + // must be fullfilled. + repeated Binding inputs = 3; + + //+optional Specifies execution depdendency for this node ensuring it will only get scheduled to run after all its + // upstream nodes have completed. This node will have an implicit depdendency on any node that appears in inputs + // field. + repeated string upstream_node_ids = 4; + + //+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + // nodes outputs using the alias if one's specified. + repeated Alias output_aliases = 5; + + // Information about the target to execute in this node. + oneof target { + // Information about the Task to execute in this node. + TaskNode task_node = 6; + + // Information about the Workflow to execute in this mode. + WorkflowNode workflow_node = 7; + + // Information about the branch node to evaluate in this node. + BranchNode branch_node = 8; + } +} + +// Metadata for the entire workflow. +// To be used in the future. +message WorkflowMetadata { +} + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +// directed acyclic graph. +message WorkflowTemplate { + // This is an autogenerated id by the system. The id is globally unique across the system. + Identifier id = 1; + + // Extra metadata about the workflow. + WorkflowMetadata metadata = 2; + + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + TypedInterface interface = 3; + + // A list of nodes. In addition, "globals" is a special reserved node id that can be used to consume workflow inputs. + repeated Node nodes = 4; + + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + // bind final outputs. + // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + // outputs from the output of a task. + repeated Binding outputs = 5; + + //+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + // The interface of this node must match the Workflow interface with an additional input named "error" of type + // pb.lyft.flyte.core.Error. + Node failure_node = 6; + +} + + + diff --git a/flyteidl/protos/flyteidl/core/workflow_closure.proto b/flyteidl/protos/flyteidl/core/workflow_closure.proto new file mode 100644 index 0000000000..94008dfae9 --- /dev/null +++ b/flyteidl/protos/flyteidl/core/workflow_closure.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +package flyteidl.core; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"; + +import "flyteidl/core/workflow.proto"; +import "flyteidl/core/tasks.proto"; + +// Defines an enclosed package of workflow and tasks it references. +message WorkflowClosure { + //required. Workflow template. + WorkflowTemplate workflow = 1; + + //optional. A collection of tasks referenced by the workflow. Only needed if the workflow + // references tasks. + repeated TaskTemplate tasks = 2; +} diff --git a/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto new file mode 100644 index 0000000000..7e8fb98101 --- /dev/null +++ b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto @@ -0,0 +1,128 @@ +syntax = "proto3"; + +package pb.lyft.datacatalog; + +option go_package = "datacatalog"; +option py_generic_services = true; + +message Parameter { + + string name = 1; + string value = 2; +} + +// Before jumping to message definition, lets go over the expected flow- +// An Artifact represents an unit-of-work identified by (task, version, inputs). This is +// encoded as unique hash for faster queries(called provenance). An artifact is persisted with some other +// attributes (revision, createdAt, reference_id, outputs). +// Only Discovery service knows about the hashing algorithm; one can use the closure (task, version, inputs) +// to query an artifact if it doesnt have the provenance value. +// +// Before starting the work on a task, programming-model first checks if the task has been done. +// Request: GET (task, version, inputs) +// Response: (Exists, Artifact) or (NotFound, nil) +// if not found, Task executor goes ahead with the execution and at the end of execution creates a new entry in +// the discovery service +// Request: CREATE (task, version, inputs) + (revision, reference_id, outputs) +// Response: (Exists, Artifact) or (Created, Artifact) +// +// One can also Query all the artifacts by querying any subset of properties. +// Message Artifact represents the complete information of an artifact- field that unique define the artifact + +// properties. +// Message ArtifactInternal is our storage model where we create an additional derived column for faster queries. +// Message ArtifactId only represents field that uniquely define the artifact. +message Artifact { + string provenance = 1; + string name = 2; + string version = 3; + int64 revision = 4; // strictly increasing value set by users. users can do range query on this attribute. + int64 created_at = 5; // the time when discovery service received the request. + string reference_id = 6; // this could be a workflow runid or something that ties it data elsewhere + repeated Parameter inputs = 7; + repeated Parameter outputs = 8; +} + +message ArtifactId { + string name = 1; + string version = 2; + repeated Parameter inputs = 3; +} + +message GetRequest { + oneof id { + string provenance = 1; + ArtifactId artifact_id = 2; + } +} + +message GetResponse { + Artifact artifact = 1; +} + +enum QueryOperator { + EQUAL = 0; + GREATER_THAN = 1; + LESSER_THAN = 2; +} + +message IntFilter { + int64 value = 1; + QueryOperator operator = 2; +} + +message IntRangeFilter { + int64 min = 1; + int64 max = 2; +} + +message IntQueryKey { + oneof filter { + IntFilter val = 1; + IntRangeFilter range = 2; + } +} + +// QueryRequest allows queries on a range of values for revision column and point queries on created_at +// and reference_id +message QueryRequest { + string name = 1; + string version = 2; + IntQueryKey revision = 3; + int64 created_at = 4; + string reference_id = 5; +} + +message QueryResponse { + repeated Artifact artifact = 1; +} + +message CreateRequest { + ArtifactId ref = 1; + string reference_id = 2; + int64 revision = 3; + repeated Parameter outputs = 4; +} + +message CreateResponse { + Artifact artifact = 1; + enum Status { + ALREADY_EXISTS = 0; + CREATED = 1; + } + Status status = 2; +} + +message GenerateProvenanceRequest { + ArtifactId id = 1; +} + +message GenerateProvenanceResponse { + string provenance = 1; +} + +service Artifacts { + rpc Get (GetRequest) returns (GetResponse) {} + rpc Query (QueryRequest) returns (QueryResponse) {} + rpc Create (CreateRequest) returns (CreateResponse) {} + rpc GenerateProvenance (GenerateProvenanceRequest) returns (GenerateProvenanceResponse) {} +} diff --git a/flyteidl/protos/flyteidl/datacatalog/title.rst b/flyteidl/protos/flyteidl/datacatalog/title.rst new file mode 100644 index 0000000000..02f9174a37 --- /dev/null +++ b/flyteidl/protos/flyteidl/datacatalog/title.rst @@ -0,0 +1,6 @@ +Flyte Legacy Catalog Service +============================ + +These protos provide interface definition for the datacatalog +service. This proto is under rapid development and not currently recommended for use. + diff --git a/flyteidl/protos/flyteidl/event/event.proto b/flyteidl/protos/flyteidl/event/event.proto new file mode 100644 index 0000000000..f3eb03a34d --- /dev/null +++ b/flyteidl/protos/flyteidl/event/event.proto @@ -0,0 +1,124 @@ +syntax = "proto3"; + +package flyteidl.event; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/event"; + +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/struct.proto"; + +message WorkflowExecutionEvent { + // Workflow execution id + core.WorkflowExecutionIdentifier execution_id = 1; + + // the id of the originator (Propeller) of the event + string producer_id = 2; + + core.WorkflowExecution.Phase phase = 3; + + // This timestamp represents when the original event occurred, it is generated + // by the executor of the workflow. + google.protobuf.Timestamp occurred_at = 4; + + oneof output_result { + // URL to the output of the execution, it encodes all the information + // including Cloud source provider. ie., s3://... + string output_uri = 5; + + // Error information for the execution + core.ExecutionError error = 6; + } +} + +message NodeExecutionEvent { + // Unique identifier for this node execution + core.NodeExecutionIdentifier id = 1; + + // the id of the originator (Propeller) of the event + string producer_id = 2; + + core.NodeExecution.Phase phase = 3; + + // This timestamp represents when the original event occurred, it is generated + // by the executor of the node. + google.protobuf.Timestamp occurred_at = 4; + + string input_uri = 5; + + oneof output_result { + // URL to the output of the execution, it encodes all the information + // including Cloud source provider. ie., s3://... + string output_uri = 6; + + // Error information for the execution + core.ExecutionError error = 7; + } + + // Additional metadata to do with this event's node target based + // on the node type + oneof target_metadata { + WorkflowNodeMetadata workflow_node_metadata = 8; + } + + // Specifies which task (if any) launched this node. + ParentTaskExecutionMetadata parent_task_metadata = 9; +} + +// For Workflow Nodes we need to send information about the workflow that's launched +message WorkflowNodeMetadata { + core.WorkflowExecutionIdentifier execution_id = 1; +} + +message ParentTaskExecutionMetadata { + core.TaskExecutionIdentifier id = 1; +} + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +message TaskExecutionEvent { + // ID of the task. In combination with the retryAttempt this will indicate + // the task execution uniquely for a given parent node execution. + core.Identifier task_id = 1; + + // A task execution is always kicked off by a node execution, the event consumer + // will use the parent_id to relate the task to it's parent node execution + core.NodeExecutionIdentifier parent_node_execution_id = 2; + + // retry attempt number for this task, ie., 2 for the second attempt + uint32 retry_attempt = 3; + + // Phase associated with the event + core.TaskExecution.Phase phase = 4; + + // id of the process that sent this event, mainly for trace debugging + string producer_id = 5; + + // log information for the task execution + repeated core.TaskLog logs = 6; + + // This timestamp represents when the original event occurred, it is generated + // by the executor of the task. + google.protobuf.Timestamp occurred_at = 7; + + // URI of the input file, it encodes all the information + // including Cloud source provider. ie., s3://... + string input_uri = 8; + + oneof output_result { + // URI to the output of the execution, it will be in a format that encodes all the information + // including Cloud source provider. ie., s3://... + string output_uri = 9; + + // Error information for the execution + core.ExecutionError error = 10; + } + + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + google.protobuf.Struct custom_info = 11; + + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + // that should be recorded regardless of the lack of phase change. + // The version field should be incremented when metadata changes across the duration of an individual phase. + uint32 phase_version = 12; +} diff --git a/flyteidl/protos/flyteidl/event/title.rst b/flyteidl/protos/flyteidl/event/title.rst new file mode 100644 index 0000000000..5f126e5cdd --- /dev/null +++ b/flyteidl/protos/flyteidl/event/title.rst @@ -0,0 +1,20 @@ +############################################## +Flyte Internal and External Eventing interface +############################################## + +This section contains all the protocol buffer definitions for Internal and +External Eventing system. + +Flyte Internal Eventing +======================== + +This is the interface used by the dataplane (execution engine) to communicate +workflow and task progress back to the **control plane** admin service. + +Flyte External Eventing - Event Egress +======================================= + +This refers to the interface for all the event messages exiting from the Flyte +**control plane** and delivered on the configured pubsub channel. + + diff --git a/flyteidl/protos/flyteidl/plugins/array_job.proto b/flyteidl/protos/flyteidl/plugins/array_job.proto new file mode 100644 index 0000000000..3a3a288f2f --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/array_job.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +// will be executed concurrently. +message ArrayJob { + // Defines the minimum number of instances to bring up concurrently at any given point. Note that this is an + // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + // running instances might be more. This has to be a positive number if assigned. Default value is size. + int64 parallelism = 1; + + // Defines the number of instances to launch at most. This number should match the size of the input if the job + // requires processing of all input data. This has to be a positive number. + // +required. + int64 size = 2; + + // An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + // the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + // assigned. Default value is size. + int64 min_successes = 3; +} diff --git a/flyteidl/protos/flyteidl/plugins/qubole.proto b/flyteidl/protos/flyteidl/plugins/qubole.proto new file mode 100644 index 0000000000..f7c2961ccc --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/qubole.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +import "flyteidl/core/tasks.proto"; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Defines a query to execute on a hive cluster. +message HiveQuery { + string query = 1; + uint32 timeout_sec = 2; + uint32 retryCount = 3; +} + +// Defines a collection of hive queries. +message HiveQueryCollection { + repeated HiveQuery queries = 2; +} + +// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +// of a hive task's TaskTemplate +message QuboleHiveJob { + string cluster_label = 1; + HiveQueryCollection query_collection = 2; + repeated string tags = 3; +} diff --git a/flyteidl/protos/flyteidl/plugins/sidecar.proto b/flyteidl/protos/flyteidl/plugins/sidecar.proto new file mode 100644 index 0000000000..97840f2109 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/sidecar.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +import "k8s.io/api/core/v1/generated.proto"; + +// A sidecar job brings up the desired pod_spec. +// The plugin executor is responsible for keeping the pod alive until the primary container terminates +// or the task itself times out. +message SidecarJob { + k8s.io.api.core.v1.PodSpec pod_spec = 1; + + string primary_container_name = 2; +} diff --git a/flyteidl/protos/flyteidl/plugins/spark.proto b/flyteidl/protos/flyteidl/plugins/spark.proto new file mode 100644 index 0000000000..24f974a754 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/spark.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package flyteidl.plugins; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +message SparkApplication { + enum Type { + PYTHON = 0; + JAVA = 1; + SCALA = 2; + R = 3; + } +} + +// Custom Proto for Spark Plugin. +message SparkJob { + SparkApplication.Type applicationType = 1; + string mainApplicationFile = 2; + string mainClass = 3; + map sparkConf = 4; + map hadoopConf = 5; + string executorPath = 6; // Executor path for Python jobs. +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/plugins/title.rst b/flyteidl/protos/flyteidl/plugins/title.rst new file mode 100644 index 0000000000..753ec7dc6d --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/title.rst @@ -0,0 +1,6 @@ +Flyte Task Plugins +================== + +These protocol buffer specifications provide information about the various Task +Plugins available in the Flyte system. + diff --git a/flyteidl/protos/flyteidl/plugins/waitable.proto b/flyteidl/protos/flyteidl/plugins/waitable.proto new file mode 100644 index 0000000000..797a6a58a6 --- /dev/null +++ b/flyteidl/protos/flyteidl/plugins/waitable.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +import "flyteidl/core/execution.proto"; +import "flyteidl/core/identifier.proto"; + +package flyteidl.plugins; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/plugins"; + +// Represents an Execution that was launched and could be waited on. +message Waitable { + core.WorkflowExecutionIdentifier wf_exec_id = 1; + core.WorkflowExecution.Phase phase = 2; + string workflow_id = 3; +} diff --git a/flyteidl/protos/flyteidl/service/admin.proto b/flyteidl/protos/flyteidl/service/admin.proto new file mode 100644 index 0000000000..aba0cf1636 --- /dev/null +++ b/flyteidl/protos/flyteidl/service/admin.proto @@ -0,0 +1,315 @@ +syntax = "proto3"; +package flyteidl.service; + +option go_package = "github.com/lyft/flyteidl/gen/pb-go/flyteidl/service"; + +import "google/api/annotations.proto"; +import "flyteidl/admin/project.proto"; +import "flyteidl/admin/task.proto"; +import "flyteidl/admin/workflow.proto"; +import "flyteidl/admin/launch_plan.proto"; +import "flyteidl/admin/event.proto"; +import "flyteidl/admin/execution.proto"; +import "flyteidl/admin/node_execution.proto"; +import "flyteidl/admin/task_execution.proto"; +import "flyteidl/admin/common.proto"; +import "protoc-gen-swagger/options/annotations.proto"; + +service AdminService { + rpc CreateTask (flyteidl.admin.TaskCreateRequest) returns (flyteidl.admin.TaskCreateResponse) { + option (google.api.http) = { + post: "/api/v1/tasks" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Create and register a task definition" + responses: { + key: "400" + value: { + description: "Returned for bad request that may have failed validation." + } + } + responses: { + key: "409" + value: { + description: "Returned for a request that references an identical entity that has already been registered." + } + } + }; + } + + rpc GetTask (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.Task) { + option (google.api.http) = { + get: "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + } + + rpc ListTaskIds (flyteidl.admin.NamedEntityIdentifierListRequest) returns (flyteidl.admin.NamedEntityIdentifierList) { + option (google.api.http) = { + get: "/api/v1/task_ids/{project}/{domain}" + }; + } + + rpc ListTasks (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.TaskList) { + option (google.api.http) = { + get: "/api/v1/tasks/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/tasks/{id.project}/{id.domain}" + } + }; + } + + rpc CreateWorkflow (flyteidl.admin.WorkflowCreateRequest) returns (flyteidl.admin.WorkflowCreateResponse) { + option (google.api.http) = { + post: "/api/v1/workflows" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Create and register a workflow definition" + responses: { + key: "400" + value: { + description: "Returned for bad request that may have failed validation." + } + } + responses: { + key: "409" + value: { + description: "Returned for a request that references an identical entity that has already been registered." + } + } + }; + } + + rpc GetWorkflow (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.Workflow) { + option (google.api.http) = { + get: "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + } + + rpc ListWorkflowIds (flyteidl.admin.NamedEntityIdentifierListRequest) returns (flyteidl.admin.NamedEntityIdentifierList) { + option (google.api.http) = { + get: "/api/v1/workflow_ids/{project}/{domain}" + }; + } + + rpc ListWorkflows (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.WorkflowList) { + option (google.api.http) = { + get: "/api/v1/workflows/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/workflows/{id.project}/{id.domain}" + } + }; + } + + rpc CreateLaunchPlan (flyteidl.admin.LaunchPlanCreateRequest) returns (flyteidl.admin.LaunchPlanCreateResponse) { + option (google.api.http) = { + post: "/api/v1/launch_plans" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Create and register a launch plan definition" + responses: { + key: "400" + value: { + description: "Returned for bad request that may have failed validation." + } + } + responses: { + key: "409" + value: { + description: "Returned for a request that references an identical entity that has already been registered." + } + } + }; + } + + rpc GetLaunchPlan (flyteidl.admin.ObjectGetRequest) returns (flyteidl.admin.LaunchPlan) { + option (google.api.http) = { + get: "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + }; + } + + rpc ListLaunchPlanIds (flyteidl.admin.NamedEntityIdentifierListRequest) returns (flyteidl.admin.NamedEntityIdentifierList) { + option (google.api.http) = { + get: "/api/v1/launch_plan_ids/{project}/{domain}" + }; + } + + rpc ListLaunchPlans (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.LaunchPlanList) { + option (google.api.http) = { + get: "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}" + additional_bindings { + get: "/api/v1/launch_plans/{id.project}/{id.domain}" + } + }; + } + + rpc UpdateLaunchPlan (flyteidl.admin.LaunchPlanUpdateRequest) returns (flyteidl.admin.LaunchPlanUpdateResponse) { + option (google.api.http) = { + put: "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" + body: "*" + }; + } + + rpc CreateExecution (flyteidl.admin.ExecutionCreateRequest) returns (flyteidl.admin.ExecutionCreateResponse) { + option (google.api.http) = { + post: "/api/v1/executions" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Create a workflow execution" + responses: { + key: "400" + value: { + description: "Returned for bad request that may have failed validation." + } + } + responses: { + key: "409" + value: { + description: "Returned for a request that references an identical entity that has already been registered." + } + } + }; + } + + rpc RelaunchExecution (flyteidl.admin.ExecutionRelaunchRequest) returns (flyteidl.admin.ExecutionCreateResponse) { + option (google.api.http) = { + post: "/api/v1/executions/relaunch" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Relaunch a workflow execution" + responses: { + key: "400" + value: { + description: "Returned for bad request that may have failed validation." + } + } + responses: { + key: "409" + value: { + description: "Returned for a request that references an identical entity that has already been registered." + } + } + }; + } + + rpc GetExecution (flyteidl.admin.WorkflowExecutionGetRequest) returns (flyteidl.admin.Execution) { + option (google.api.http) = { + get: "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + }; + } + + rpc GetExecutionData (flyteidl.admin.WorkflowExecutionGetDataRequest) returns (flyteidl.admin.WorkflowExecutionGetDataResponse) { + option (google.api.http) = { + get: "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}" + }; + }; + + + rpc ListExecutions (flyteidl.admin.ResourceListRequest) returns (flyteidl.admin.ExecutionList) { + option (google.api.http) = { + get: "/api/v1/executions/{id.project}/{id.domain}" + }; + } + + rpc TerminateExecution (flyteidl.admin.ExecutionTerminateRequest) returns (flyteidl.admin.ExecutionTerminateResponse) { + option (google.api.http) = { + delete: "/api/v1/executions/{id.project}/{id.domain}/{id.name}" + body: "*" + }; + } + + rpc GetNodeExecution (flyteidl.admin.NodeExecutionGetRequest) returns (flyteidl.admin.NodeExecution) { + option (google.api.http) = { + get: "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + }; + } + + rpc ListNodeExecutions (flyteidl.admin.NodeExecutionListRequest) returns (flyteidl.admin.NodeExecutionList) { + option (google.api.http) = { + get: "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" + }; + } + + rpc ListNodeExecutionsForTask (flyteidl.admin.NodeExecutionForTaskListRequest) returns (flyteidl.admin.NodeExecutionList) { + option (google.api.http) = { + get: "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" + }; + } + + rpc GetNodeExecutionData (flyteidl.admin.NodeExecutionGetDataRequest) returns (flyteidl.admin.NodeExecutionGetDataResponse) { + option (google.api.http) = { + get: "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" + }; + }; + + rpc RegisterProject (flyteidl.admin.ProjectRegisterRequest) returns (flyteidl.admin.ProjectRegisterResponse) { + option (google.api.http) = { + post: "/api/v1/projects" + body: "*" + }; + option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { + description: "Register a project along with valid domains" + responses: { + key: "201" + value: { + description: "Returned for successful registration." + } + } + responses: { + key: "400" + value: { + description: "Returned for bad request that may have failed validation." + } + } + }; + } + + rpc ListProjects (flyteidl.admin.ProjectListRequest) returns (flyteidl.admin.Projects) { + option (google.api.http) = { + get: "/api/v1/projects" + }; + } + + rpc CreateWorkflowEvent (flyteidl.admin.WorkflowExecutionEventRequest) returns (flyteidl.admin.WorkflowExecutionEventResponse) { + option (google.api.http) = { + post: "/api/v1/events/workflows" + body: "*" + }; + } + + rpc CreateNodeEvent (flyteidl.admin.NodeExecutionEventRequest) returns (flyteidl.admin.NodeExecutionEventResponse) { + option (google.api.http) = { + post: "/api/v1/events/nodes" + body: "*" + }; + } + + rpc CreateTaskEvent (flyteidl.admin.TaskExecutionEventRequest) returns (flyteidl.admin.TaskExecutionEventResponse) { + option (google.api.http) = { + post: "/api/v1/events/tasks" + body: "*" + }; + } + + rpc GetTaskExecution (flyteidl.admin.TaskExecutionGetRequest) returns (flyteidl.admin.TaskExecution) { + option (google.api.http) = { + get: "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + }; + } + + rpc ListTaskExecutions (flyteidl.admin.TaskExecutionListRequest) returns (flyteidl.admin.TaskExecutionList) { + option (google.api.http) = { + get: "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}" + }; + } + + rpc GetTaskExecutionData (flyteidl.admin.TaskExecutionGetDataRequest) returns (flyteidl.admin.TaskExecutionGetDataResponse) { + option (google.api.http) = { + get: "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" + }; + } +} diff --git a/flyteidl/protos/flyteidl/service/title.rst b/flyteidl/protos/flyteidl/service/title.rst new file mode 100644 index 0000000000..0376e96ade --- /dev/null +++ b/flyteidl/protos/flyteidl/service/title.rst @@ -0,0 +1,6 @@ +################################################### +REST and gRPC interface for the Flyte Admin Service +################################################### + +This section provides all endpoint defintions that are implemented by the Admin +service. diff --git a/flyteidl/protos/flyteidl/title.rst b/flyteidl/protos/flyteidl/title.rst new file mode 100644 index 0000000000..e0d58d33e0 --- /dev/null +++ b/flyteidl/protos/flyteidl/title.rst @@ -0,0 +1,7 @@ +Flyte Language and API specification +==================================== + +The protocol buffers defined here provide a high level specification of various +entities in Flyte control plane and data plane. It provides detailed definition +and documentation of all these entities. + diff --git a/flyteidl/setup.cfg b/flyteidl/setup.cfg new file mode 100644 index 0000000000..209e3f82c0 --- /dev/null +++ b/flyteidl/setup.cfg @@ -0,0 +1,38 @@ +[flake8] +format = pylint +exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv +max-complexity = 10 +max-line-length = 79 +ignore = NONE + +# flake8-tidy-imports rules +banned-modules = + dateutil.parser = Use `ciso8601` instead + flask.ext.restful = Use `flask_restful` + flask.ext.script = Use `flask_script` + haversine = Use `from fast_distance import haversine` + py.test = Use `pytest` + python-s3file = Use `boto` + +[pep8] +max-line-length = 79 + +[tool:pytest] +addopts = --cov=flyteidl --cov-fail-under=100 --cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv + +[coverage:run] +branch = True + +[coverage:xml] +output = build/coverage.xml + +[coverage:html] +directory = build/coverage_html + +[mypy] +disallow_untyped_defs = False +ignore_missing_imports = True +strict_optional = True +warn_no_return = True + +scripts_are_modules = True diff --git a/flyteidl/setup.py b/flyteidl/setup.py new file mode 100644 index 0000000000..155ec7c616 --- /dev/null +++ b/flyteidl/setup.py @@ -0,0 +1,36 @@ +from setuptools import setup, find_packages + +__version__ = '0.13.0' + +setup( + name='flyteidl', + version=__version__, + description='IDL for Flyte Platform', + url='https://www.github.com/lyft/flyteidl', + maintainer='Lyft', + maintainer_email='flyte-eng@lyft.com', + packages=find_packages('gen/pb_python'), + package_dir={'': 'gen/pb_python'}, + dependency_links=[], + install_requires=[ + 'protobuf>=3.5.0,<4.0.0', + # Packages in here should rarely be pinned. This is because these + # packages (at the specified version) are required for project + # consuming this library. By pinning to a specific version you are the + # number of projects that can consume this or forcing them to + # upgrade/downgrade any dependencies pinned here in their project. + # + # Generally packages listed here are pinned to a major version range. + # + # e.g. + # Python FooBar package for foobaring + # pyfoobar>=1.0, <2.0 + # + # This will allow for any consuming projects to use this library as + # long as they have a version of pyfoobar equal to or greater than 1.x + # and less than 2.x installed. + ], + extras_require={ + ':python_version=="2.7"': ['typing>=3.6'], # allow typehinting PY2 + }, +) diff --git a/flyteidl/validate/__init__.py b/flyteidl/validate/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/validate/validate_pb2.py b/flyteidl/validate/validate_pb2.py new file mode 100644 index 0000000000..61679d4112 --- /dev/null +++ b/flyteidl/validate/validate_pb2.py @@ -0,0 +1,2149 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: pb/ext/validate/validate.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__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.FileDescriptor( + name='pb/ext/validate/validate.proto', + package='validate', + syntax='proto2', + serialized_options=_b('Z\010validate'), + serialized_pb=_b('\n\x1epb/ext/validate/validate.proto\x12\x08validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x07\n\nFieldRules\x12%\n\x05\x66loat\x18\x01 \x01(\x0b\x32\x14.validate.FloatRulesH\x00\x12\'\n\x06\x64ouble\x18\x02 \x01(\x0b\x32\x15.validate.DoubleRulesH\x00\x12%\n\x05int32\x18\x03 \x01(\x0b\x32\x14.validate.Int32RulesH\x00\x12%\n\x05int64\x18\x04 \x01(\x0b\x32\x14.validate.Int64RulesH\x00\x12\'\n\x06uint32\x18\x05 \x01(\x0b\x32\x15.validate.UInt32RulesH\x00\x12\'\n\x06uint64\x18\x06 \x01(\x0b\x32\x15.validate.UInt64RulesH\x00\x12\'\n\x06sint32\x18\x07 \x01(\x0b\x32\x15.validate.SInt32RulesH\x00\x12\'\n\x06sint64\x18\x08 \x01(\x0b\x32\x15.validate.SInt64RulesH\x00\x12)\n\x07\x66ixed32\x18\t \x01(\x0b\x32\x16.validate.Fixed32RulesH\x00\x12)\n\x07\x66ixed64\x18\n \x01(\x0b\x32\x16.validate.Fixed64RulesH\x00\x12+\n\x08sfixed32\x18\x0b \x01(\x0b\x32\x17.validate.SFixed32RulesH\x00\x12+\n\x08sfixed64\x18\x0c \x01(\x0b\x32\x17.validate.SFixed64RulesH\x00\x12#\n\x04\x62ool\x18\r \x01(\x0b\x32\x13.validate.BoolRulesH\x00\x12\'\n\x06string\x18\x0e \x01(\x0b\x32\x15.validate.StringRulesH\x00\x12%\n\x05\x62ytes\x18\x0f \x01(\x0b\x32\x14.validate.BytesRulesH\x00\x12#\n\x04\x65num\x18\x10 \x01(\x0b\x32\x13.validate.EnumRulesH\x00\x12)\n\x07message\x18\x11 \x01(\x0b\x32\x16.validate.MessageRulesH\x00\x12+\n\x08repeated\x18\x12 \x01(\x0b\x32\x17.validate.RepeatedRulesH\x00\x12!\n\x03map\x18\x13 \x01(\x0b\x32\x12.validate.MapRulesH\x00\x12!\n\x03\x61ny\x18\x14 \x01(\x0b\x32\x12.validate.AnyRulesH\x00\x12+\n\x08\x64uration\x18\x15 \x01(\x0b\x32\x17.validate.DurationRulesH\x00\x12-\n\ttimestamp\x18\x16 \x01(\x0b\x32\x18.validate.TimestampRulesH\x00\x42\x06\n\x04type\"i\n\nFloatRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x02\x12\n\n\x02lt\x18\x02 \x01(\x02\x12\x0b\n\x03lte\x18\x03 \x01(\x02\x12\n\n\x02gt\x18\x04 \x01(\x02\x12\x0b\n\x03gte\x18\x05 \x01(\x02\x12\n\n\x02in\x18\x06 \x03(\x02\x12\x0e\n\x06not_in\x18\x07 \x03(\x02\"j\n\x0b\x44oubleRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x01\x12\n\n\x02lt\x18\x02 \x01(\x01\x12\x0b\n\x03lte\x18\x03 \x01(\x01\x12\n\n\x02gt\x18\x04 \x01(\x01\x12\x0b\n\x03gte\x18\x05 \x01(\x01\x12\n\n\x02in\x18\x06 \x03(\x01\x12\x0e\n\x06not_in\x18\x07 \x03(\x01\"i\n\nInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\n\n\x02lt\x18\x02 \x01(\x05\x12\x0b\n\x03lte\x18\x03 \x01(\x05\x12\n\n\x02gt\x18\x04 \x01(\x05\x12\x0b\n\x03gte\x18\x05 \x01(\x05\x12\n\n\x02in\x18\x06 \x03(\x05\x12\x0e\n\x06not_in\x18\x07 \x03(\x05\"i\n\nInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x03\x12\n\n\x02lt\x18\x02 \x01(\x03\x12\x0b\n\x03lte\x18\x03 \x01(\x03\x12\n\n\x02gt\x18\x04 \x01(\x03\x12\x0b\n\x03gte\x18\x05 \x01(\x03\x12\n\n\x02in\x18\x06 \x03(\x03\x12\x0e\n\x06not_in\x18\x07 \x03(\x03\"j\n\x0bUInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\r\x12\n\n\x02lt\x18\x02 \x01(\r\x12\x0b\n\x03lte\x18\x03 \x01(\r\x12\n\n\x02gt\x18\x04 \x01(\r\x12\x0b\n\x03gte\x18\x05 \x01(\r\x12\n\n\x02in\x18\x06 \x03(\r\x12\x0e\n\x06not_in\x18\x07 \x03(\r\"j\n\x0bUInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x04\x12\n\n\x02lt\x18\x02 \x01(\x04\x12\x0b\n\x03lte\x18\x03 \x01(\x04\x12\n\n\x02gt\x18\x04 \x01(\x04\x12\x0b\n\x03gte\x18\x05 \x01(\x04\x12\n\n\x02in\x18\x06 \x03(\x04\x12\x0e\n\x06not_in\x18\x07 \x03(\x04\"j\n\x0bSInt32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x11\x12\n\n\x02lt\x18\x02 \x01(\x11\x12\x0b\n\x03lte\x18\x03 \x01(\x11\x12\n\n\x02gt\x18\x04 \x01(\x11\x12\x0b\n\x03gte\x18\x05 \x01(\x11\x12\n\n\x02in\x18\x06 \x03(\x11\x12\x0e\n\x06not_in\x18\x07 \x03(\x11\"j\n\x0bSInt64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x12\x12\n\n\x02lt\x18\x02 \x01(\x12\x12\x0b\n\x03lte\x18\x03 \x01(\x12\x12\n\n\x02gt\x18\x04 \x01(\x12\x12\x0b\n\x03gte\x18\x05 \x01(\x12\x12\n\n\x02in\x18\x06 \x03(\x12\x12\x0e\n\x06not_in\x18\x07 \x03(\x12\"k\n\x0c\x46ixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x07\x12\n\n\x02lt\x18\x02 \x01(\x07\x12\x0b\n\x03lte\x18\x03 \x01(\x07\x12\n\n\x02gt\x18\x04 \x01(\x07\x12\x0b\n\x03gte\x18\x05 \x01(\x07\x12\n\n\x02in\x18\x06 \x03(\x07\x12\x0e\n\x06not_in\x18\x07 \x03(\x07\"k\n\x0c\x46ixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x06\x12\n\n\x02lt\x18\x02 \x01(\x06\x12\x0b\n\x03lte\x18\x03 \x01(\x06\x12\n\n\x02gt\x18\x04 \x01(\x06\x12\x0b\n\x03gte\x18\x05 \x01(\x06\x12\n\n\x02in\x18\x06 \x03(\x06\x12\x0e\n\x06not_in\x18\x07 \x03(\x06\"l\n\rSFixed32Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0f\x12\n\n\x02lt\x18\x02 \x01(\x0f\x12\x0b\n\x03lte\x18\x03 \x01(\x0f\x12\n\n\x02gt\x18\x04 \x01(\x0f\x12\x0b\n\x03gte\x18\x05 \x01(\x0f\x12\n\n\x02in\x18\x06 \x03(\x0f\x12\x0e\n\x06not_in\x18\x07 \x03(\x0f\"l\n\rSFixed64Rules\x12\r\n\x05\x63onst\x18\x01 \x01(\x10\x12\n\n\x02lt\x18\x02 \x01(\x10\x12\x0b\n\x03lte\x18\x03 \x01(\x10\x12\n\n\x02gt\x18\x04 \x01(\x10\x12\x0b\n\x03gte\x18\x05 \x01(\x10\x12\n\n\x02in\x18\x06 \x03(\x10\x12\x0e\n\x06not_in\x18\x07 \x03(\x10\"\x1a\n\tBoolRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x08\"\xc6\x02\n\x0bStringRules\x12\r\n\x05\x63onst\x18\x01 \x01(\t\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x11\n\tmin_bytes\x18\x04 \x01(\x04\x12\x11\n\tmax_bytes\x18\x05 \x01(\x04\x12\x0f\n\x07pattern\x18\x06 \x01(\t\x12\x0e\n\x06prefix\x18\x07 \x01(\t\x12\x0e\n\x06suffix\x18\x08 \x01(\t\x12\x10\n\x08\x63ontains\x18\t \x01(\t\x12\n\n\x02in\x18\n \x03(\t\x12\x0e\n\x06not_in\x18\x0b \x03(\t\x12\x0f\n\x05\x65mail\x18\x0c \x01(\x08H\x00\x12\x12\n\x08hostname\x18\r \x01(\x08H\x00\x12\x0c\n\x02ip\x18\x0e \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0f \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x10 \x01(\x08H\x00\x12\r\n\x03uri\x18\x11 \x01(\x08H\x00\x12\x11\n\x07uri_ref\x18\x12 \x01(\x08H\x00\x42\x0c\n\nwell_known\"\xd8\x01\n\nBytesRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x0c\x12\x0f\n\x07min_len\x18\x02 \x01(\x04\x12\x0f\n\x07max_len\x18\x03 \x01(\x04\x12\x0f\n\x07pattern\x18\x04 \x01(\t\x12\x0e\n\x06prefix\x18\x05 \x01(\x0c\x12\x0e\n\x06suffix\x18\x06 \x01(\x0c\x12\x10\n\x08\x63ontains\x18\x07 \x01(\x0c\x12\n\n\x02in\x18\x08 \x03(\x0c\x12\x0e\n\x06not_in\x18\t \x03(\x0c\x12\x0c\n\x02ip\x18\n \x01(\x08H\x00\x12\x0e\n\x04ipv4\x18\x0b \x01(\x08H\x00\x12\x0e\n\x04ipv6\x18\x0c \x01(\x08H\x00\x42\x0c\n\nwell_known\"L\n\tEnumRules\x12\r\n\x05\x63onst\x18\x01 \x01(\x05\x12\x14\n\x0c\x64\x65\x66ined_only\x18\x02 \x01(\x08\x12\n\n\x02in\x18\x03 \x03(\x05\x12\x0e\n\x06not_in\x18\x04 \x03(\x05\".\n\x0cMessageRules\x12\x0c\n\x04skip\x18\x01 \x01(\x08\x12\x10\n\x08required\x18\x02 \x01(\x08\"j\n\rRepeatedRules\x12\x11\n\tmin_items\x18\x01 \x01(\x04\x12\x11\n\tmax_items\x18\x02 \x01(\x04\x12\x0e\n\x06unique\x18\x03 \x01(\x08\x12#\n\x05items\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\"\x8d\x01\n\x08MapRules\x12\x11\n\tmin_pairs\x18\x01 \x01(\x04\x12\x11\n\tmax_pairs\x18\x02 \x01(\x04\x12\x11\n\tno_sparse\x18\x03 \x01(\x08\x12\"\n\x04keys\x18\x04 \x01(\x0b\x32\x14.validate.FieldRules\x12$\n\x06values\x18\x05 \x01(\x0b\x32\x14.validate.FieldRules\"8\n\x08\x41nyRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12\n\n\x02in\x18\x02 \x03(\t\x12\x0e\n\x06not_in\x18\x03 \x03(\t\"\xbb\x02\n\rDurationRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12(\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02lt\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03lte\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02gt\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12&\n\x03gte\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12%\n\x02in\x18\x07 \x03(\x0b\x32\x19.google.protobuf.Duration\x12)\n\x06not_in\x18\x08 \x03(\x0b\x32\x19.google.protobuf.Duration\"\xba\x02\n\x0eTimestampRules\x12\x10\n\x08required\x18\x01 \x01(\x08\x12)\n\x05\x63onst\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02lt\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03lte\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x02gt\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x03gte\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06lt_now\x18\x07 \x01(\x08\x12\x0e\n\x06gt_now\x18\x08 \x01(\x08\x12)\n\x06within\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration:3\n\x08\x64isabled\x12\x1f.google.protobuf.MessageOptions\x18\x97\x8d\x38 \x01(\x08:1\n\x08required\x12\x1d.google.protobuf.OneofOptions\x18\x97\x8d\x38 \x01(\x08:D\n\x05rules\x12\x1d.google.protobuf.FieldOptions\x18\x97\x8d\x38 \x01(\x0b\x32\x14.validate.FieldRulesB\nZ\x08validate') + , + dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) + + +DISABLED_FIELD_NUMBER = 919191 +disabled = _descriptor.FieldDescriptor( + name='disabled', full_name='validate.disabled', index=0, + number=919191, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +REQUIRED_FIELD_NUMBER = 919191 +required = _descriptor.FieldDescriptor( + name='required', full_name='validate.required', index=1, + number=919191, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) +RULES_FIELD_NUMBER = 919191 +rules = _descriptor.FieldDescriptor( + name='rules', full_name='validate.rules', index=2, + number=919191, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=True, extension_scope=None, + serialized_options=None, file=DESCRIPTOR) + + +_FIELDRULES = _descriptor.Descriptor( + name='FieldRules', + full_name='validate.FieldRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='float', full_name='validate.FieldRules.float', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double', full_name='validate.FieldRules.double', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int32', full_name='validate.FieldRules.int32', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='int64', full_name='validate.FieldRules.int64', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint32', full_name='validate.FieldRules.uint32', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uint64', full_name='validate.FieldRules.uint64', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint32', full_name='validate.FieldRules.sint32', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sint64', full_name='validate.FieldRules.sint64', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed32', full_name='validate.FieldRules.fixed32', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='fixed64', full_name='validate.FieldRules.fixed64', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed32', full_name='validate.FieldRules.sfixed32', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sfixed64', full_name='validate.FieldRules.sfixed64', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bool', full_name='validate.FieldRules.bool', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string', full_name='validate.FieldRules.string', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bytes', full_name='validate.FieldRules.bytes', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enum', full_name='validate.FieldRules.enum', index=15, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message', full_name='validate.FieldRules.message', index=16, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repeated', full_name='validate.FieldRules.repeated', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='map', full_name='validate.FieldRules.map', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='any', full_name='validate.FieldRules.any', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration', full_name='validate.FieldRules.duration', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='timestamp', full_name='validate.FieldRules.timestamp', index=21, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='type', full_name='validate.FieldRules.type', + index=0, containing_type=None, fields=[]), + ], + serialized_start=144, + serialized_end=1066, +) + + +_FLOATRULES = _descriptor.Descriptor( + name='FloatRules', + full_name='validate.FloatRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.FloatRules.const', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.FloatRules.lt', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.FloatRules.lte', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.FloatRules.gt', index=3, + number=4, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.FloatRules.gte', index=4, + number=5, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.FloatRules.in', index=5, + number=6, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.FloatRules.not_in', index=6, + number=7, type=2, cpp_type=6, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1068, + serialized_end=1173, +) + + +_DOUBLERULES = _descriptor.Descriptor( + name='DoubleRules', + full_name='validate.DoubleRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.DoubleRules.const', index=0, + number=1, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DoubleRules.lt', index=1, + number=2, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DoubleRules.lte', index=2, + number=3, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DoubleRules.gt', index=3, + number=4, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DoubleRules.gte', index=4, + number=5, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DoubleRules.in', index=5, + number=6, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DoubleRules.not_in', index=6, + number=7, type=1, cpp_type=5, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1175, + serialized_end=1281, +) + + +_INT32RULES = _descriptor.Descriptor( + name='Int32Rules', + full_name='validate.Int32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int32Rules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int32Rules.lt', index=1, + number=2, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int32Rules.lte', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int32Rules.gt', index=3, + number=4, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int32Rules.gte', index=4, + number=5, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int32Rules.in', index=5, + number=6, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int32Rules.not_in', index=6, + number=7, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1283, + serialized_end=1388, +) + + +_INT64RULES = _descriptor.Descriptor( + name='Int64Rules', + full_name='validate.Int64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Int64Rules.const', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Int64Rules.lt', index=1, + number=2, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Int64Rules.lte', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Int64Rules.gt', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Int64Rules.gte', index=4, + number=5, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Int64Rules.in', index=5, + number=6, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Int64Rules.not_in', index=6, + number=7, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1390, + serialized_end=1495, +) + + +_UINT32RULES = _descriptor.Descriptor( + name='UInt32Rules', + full_name='validate.UInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt32Rules.const', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt32Rules.lt', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt32Rules.lte', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt32Rules.gt', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt32Rules.gte', index=4, + number=5, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt32Rules.in', index=5, + number=6, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt32Rules.not_in', index=6, + number=7, type=13, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1497, + serialized_end=1603, +) + + +_UINT64RULES = _descriptor.Descriptor( + name='UInt64Rules', + full_name='validate.UInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.UInt64Rules.const', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.UInt64Rules.lt', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.UInt64Rules.lte', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.UInt64Rules.gt', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.UInt64Rules.gte', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.UInt64Rules.in', index=5, + number=6, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.UInt64Rules.not_in', index=6, + number=7, type=4, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1605, + serialized_end=1711, +) + + +_SINT32RULES = _descriptor.Descriptor( + name='SInt32Rules', + full_name='validate.SInt32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt32Rules.const', index=0, + number=1, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt32Rules.lt', index=1, + number=2, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt32Rules.lte', index=2, + number=3, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt32Rules.gt', index=3, + number=4, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt32Rules.gte', index=4, + number=5, type=17, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt32Rules.in', index=5, + number=6, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt32Rules.not_in', index=6, + number=7, type=17, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1713, + serialized_end=1819, +) + + +_SINT64RULES = _descriptor.Descriptor( + name='SInt64Rules', + full_name='validate.SInt64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SInt64Rules.const', index=0, + number=1, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SInt64Rules.lt', index=1, + number=2, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SInt64Rules.lte', index=2, + number=3, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SInt64Rules.gt', index=3, + number=4, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SInt64Rules.gte', index=4, + number=5, type=18, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SInt64Rules.in', index=5, + number=6, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SInt64Rules.not_in', index=6, + number=7, type=18, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1821, + serialized_end=1927, +) + + +_FIXED32RULES = _descriptor.Descriptor( + name='Fixed32Rules', + full_name='validate.Fixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed32Rules.const', index=0, + number=1, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed32Rules.lt', index=1, + number=2, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed32Rules.lte', index=2, + number=3, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed32Rules.gt', index=3, + number=4, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed32Rules.gte', index=4, + number=5, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed32Rules.in', index=5, + number=6, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed32Rules.not_in', index=6, + number=7, type=7, cpp_type=3, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1929, + serialized_end=2036, +) + + +_FIXED64RULES = _descriptor.Descriptor( + name='Fixed64Rules', + full_name='validate.Fixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.Fixed64Rules.const', index=0, + number=1, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.Fixed64Rules.lt', index=1, + number=2, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.Fixed64Rules.lte', index=2, + number=3, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.Fixed64Rules.gt', index=3, + number=4, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.Fixed64Rules.gte', index=4, + number=5, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.Fixed64Rules.in', index=5, + number=6, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.Fixed64Rules.not_in', index=6, + number=7, type=6, cpp_type=4, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2038, + serialized_end=2145, +) + + +_SFIXED32RULES = _descriptor.Descriptor( + name='SFixed32Rules', + full_name='validate.SFixed32Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed32Rules.const', index=0, + number=1, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed32Rules.lt', index=1, + number=2, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed32Rules.lte', index=2, + number=3, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed32Rules.gt', index=3, + number=4, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed32Rules.gte', index=4, + number=5, type=15, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed32Rules.in', index=5, + number=6, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed32Rules.not_in', index=6, + number=7, type=15, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2147, + serialized_end=2255, +) + + +_SFIXED64RULES = _descriptor.Descriptor( + name='SFixed64Rules', + full_name='validate.SFixed64Rules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.SFixed64Rules.const', index=0, + number=1, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.SFixed64Rules.lt', index=1, + number=2, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.SFixed64Rules.lte', index=2, + number=3, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.SFixed64Rules.gt', index=3, + number=4, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.SFixed64Rules.gte', index=4, + number=5, type=16, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.SFixed64Rules.in', index=5, + number=6, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.SFixed64Rules.not_in', index=6, + number=7, type=16, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2257, + serialized_end=2365, +) + + +_BOOLRULES = _descriptor.Descriptor( + name='BoolRules', + full_name='validate.BoolRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BoolRules.const', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2367, + serialized_end=2393, +) + + +_STRINGRULES = _descriptor.Descriptor( + name='StringRules', + full_name='validate.StringRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.StringRules.const', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.StringRules.min_len', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.StringRules.max_len', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_bytes', full_name='validate.StringRules.min_bytes', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_bytes', full_name='validate.StringRules.max_bytes', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.StringRules.pattern', index=5, + number=6, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.StringRules.prefix', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.StringRules.suffix', index=7, + number=8, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.StringRules.contains', index=8, + number=9, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.StringRules.in', index=9, + number=10, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.StringRules.not_in', index=10, + number=11, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email', full_name='validate.StringRules.email', index=11, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hostname', full_name='validate.StringRules.hostname', index=12, + number=13, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.StringRules.ip', index=13, + number=14, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.StringRules.ipv4', index=14, + number=15, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.StringRules.ipv6', index=15, + number=16, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri', full_name='validate.StringRules.uri', index=16, + number=17, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='uri_ref', full_name='validate.StringRules.uri_ref', index=17, + number=18, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.StringRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2396, + serialized_end=2722, +) + + +_BYTESRULES = _descriptor.Descriptor( + name='BytesRules', + full_name='validate.BytesRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.BytesRules.const', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_len', full_name='validate.BytesRules.min_len', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_len', full_name='validate.BytesRules.max_len', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pattern', full_name='validate.BytesRules.pattern', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='prefix', full_name='validate.BytesRules.prefix', index=4, + number=5, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='validate.BytesRules.suffix', index=5, + number=6, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='contains', full_name='validate.BytesRules.contains', index=6, + number=7, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=_b(""), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.BytesRules.in', index=7, + number=8, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.BytesRules.not_in', index=8, + number=9, type=12, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip', full_name='validate.BytesRules.ip', index=9, + number=10, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv4', full_name='validate.BytesRules.ipv4', index=10, + number=11, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ipv6', full_name='validate.BytesRules.ipv6', index=11, + number=12, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='well_known', full_name='validate.BytesRules.well_known', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2725, + serialized_end=2941, +) + + +_ENUMRULES = _descriptor.Descriptor( + name='EnumRules', + full_name='validate.EnumRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='const', full_name='validate.EnumRules.const', index=0, + number=1, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='defined_only', full_name='validate.EnumRules.defined_only', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.EnumRules.in', index=2, + number=3, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.EnumRules.not_in', index=3, + number=4, type=5, cpp_type=1, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2943, + serialized_end=3019, +) + + +_MESSAGERULES = _descriptor.Descriptor( + name='MessageRules', + full_name='validate.MessageRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='skip', full_name='validate.MessageRules.skip', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='required', full_name='validate.MessageRules.required', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3021, + serialized_end=3067, +) + + +_REPEATEDRULES = _descriptor.Descriptor( + name='RepeatedRules', + full_name='validate.RepeatedRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_items', full_name='validate.RepeatedRules.min_items', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_items', full_name='validate.RepeatedRules.max_items', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unique', full_name='validate.RepeatedRules.unique', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='items', full_name='validate.RepeatedRules.items', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3069, + serialized_end=3175, +) + + +_MAPRULES = _descriptor.Descriptor( + name='MapRules', + full_name='validate.MapRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='min_pairs', full_name='validate.MapRules.min_pairs', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_pairs', full_name='validate.MapRules.max_pairs', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='no_sparse', full_name='validate.MapRules.no_sparse', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keys', full_name='validate.MapRules.keys', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='values', full_name='validate.MapRules.values', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3178, + serialized_end=3319, +) + + +_ANYRULES = _descriptor.Descriptor( + name='AnyRules', + full_name='validate.AnyRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.AnyRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.AnyRules.in', index=1, + number=2, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.AnyRules.not_in', index=2, + number=3, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3321, + serialized_end=3377, +) + + +_DURATIONRULES = _descriptor.Descriptor( + name='DurationRules', + full_name='validate.DurationRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.DurationRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.DurationRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.DurationRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.DurationRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.DurationRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.DurationRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in', full_name='validate.DurationRules.in', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_in', full_name='validate.DurationRules.not_in', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3380, + serialized_end=3695, +) + + +_TIMESTAMPRULES = _descriptor.Descriptor( + name='TimestampRules', + full_name='validate.TimestampRules', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='required', full_name='validate.TimestampRules.required', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='const', full_name='validate.TimestampRules.const', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt', full_name='validate.TimestampRules.lt', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lte', full_name='validate.TimestampRules.lte', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt', full_name='validate.TimestampRules.gt', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gte', full_name='validate.TimestampRules.gte', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='lt_now', full_name='validate.TimestampRules.lt_now', index=6, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gt_now', full_name='validate.TimestampRules.gt_now', index=7, + number=8, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='within', full_name='validate.TimestampRules.within', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto2', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3698, + serialized_end=4012, +) + +_FIELDRULES.fields_by_name['float'].message_type = _FLOATRULES +_FIELDRULES.fields_by_name['double'].message_type = _DOUBLERULES +_FIELDRULES.fields_by_name['int32'].message_type = _INT32RULES +_FIELDRULES.fields_by_name['int64'].message_type = _INT64RULES +_FIELDRULES.fields_by_name['uint32'].message_type = _UINT32RULES +_FIELDRULES.fields_by_name['uint64'].message_type = _UINT64RULES +_FIELDRULES.fields_by_name['sint32'].message_type = _SINT32RULES +_FIELDRULES.fields_by_name['sint64'].message_type = _SINT64RULES +_FIELDRULES.fields_by_name['fixed32'].message_type = _FIXED32RULES +_FIELDRULES.fields_by_name['fixed64'].message_type = _FIXED64RULES +_FIELDRULES.fields_by_name['sfixed32'].message_type = _SFIXED32RULES +_FIELDRULES.fields_by_name['sfixed64'].message_type = _SFIXED64RULES +_FIELDRULES.fields_by_name['bool'].message_type = _BOOLRULES +_FIELDRULES.fields_by_name['string'].message_type = _STRINGRULES +_FIELDRULES.fields_by_name['bytes'].message_type = _BYTESRULES +_FIELDRULES.fields_by_name['enum'].message_type = _ENUMRULES +_FIELDRULES.fields_by_name['message'].message_type = _MESSAGERULES +_FIELDRULES.fields_by_name['repeated'].message_type = _REPEATEDRULES +_FIELDRULES.fields_by_name['map'].message_type = _MAPRULES +_FIELDRULES.fields_by_name['any'].message_type = _ANYRULES +_FIELDRULES.fields_by_name['duration'].message_type = _DURATIONRULES +_FIELDRULES.fields_by_name['timestamp'].message_type = _TIMESTAMPRULES +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['float']) +_FIELDRULES.fields_by_name['float'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['double']) +_FIELDRULES.fields_by_name['double'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int32']) +_FIELDRULES.fields_by_name['int32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['int64']) +_FIELDRULES.fields_by_name['int64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint32']) +_FIELDRULES.fields_by_name['uint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['uint64']) +_FIELDRULES.fields_by_name['uint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint32']) +_FIELDRULES.fields_by_name['sint32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sint64']) +_FIELDRULES.fields_by_name['sint64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed32']) +_FIELDRULES.fields_by_name['fixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['fixed64']) +_FIELDRULES.fields_by_name['fixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed32']) +_FIELDRULES.fields_by_name['sfixed32'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['sfixed64']) +_FIELDRULES.fields_by_name['sfixed64'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bool']) +_FIELDRULES.fields_by_name['bool'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['string']) +_FIELDRULES.fields_by_name['string'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['bytes']) +_FIELDRULES.fields_by_name['bytes'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['enum']) +_FIELDRULES.fields_by_name['enum'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['message']) +_FIELDRULES.fields_by_name['message'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['repeated']) +_FIELDRULES.fields_by_name['repeated'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['map']) +_FIELDRULES.fields_by_name['map'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['any']) +_FIELDRULES.fields_by_name['any'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['duration']) +_FIELDRULES.fields_by_name['duration'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_FIELDRULES.oneofs_by_name['type'].fields.append( + _FIELDRULES.fields_by_name['timestamp']) +_FIELDRULES.fields_by_name['timestamp'].containing_oneof = _FIELDRULES.oneofs_by_name['type'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['email']) +_STRINGRULES.fields_by_name['email'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['hostname']) +_STRINGRULES.fields_by_name['hostname'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ip']) +_STRINGRULES.fields_by_name['ip'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv4']) +_STRINGRULES.fields_by_name['ipv4'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['ipv6']) +_STRINGRULES.fields_by_name['ipv6'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri']) +_STRINGRULES.fields_by_name['uri'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_STRINGRULES.oneofs_by_name['well_known'].fields.append( + _STRINGRULES.fields_by_name['uri_ref']) +_STRINGRULES.fields_by_name['uri_ref'].containing_oneof = _STRINGRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ip']) +_BYTESRULES.fields_by_name['ip'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv4']) +_BYTESRULES.fields_by_name['ipv4'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_BYTESRULES.oneofs_by_name['well_known'].fields.append( + _BYTESRULES.fields_by_name['ipv6']) +_BYTESRULES.fields_by_name['ipv6'].containing_oneof = _BYTESRULES.oneofs_by_name['well_known'] +_REPEATEDRULES.fields_by_name['items'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['keys'].message_type = _FIELDRULES +_MAPRULES.fields_by_name['values'].message_type = _FIELDRULES +_DURATIONRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_DURATIONRULES.fields_by_name['not_in'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_TIMESTAMPRULES.fields_by_name['const'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['lte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gt'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['gte'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_TIMESTAMPRULES.fields_by_name['within'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +DESCRIPTOR.message_types_by_name['FieldRules'] = _FIELDRULES +DESCRIPTOR.message_types_by_name['FloatRules'] = _FLOATRULES +DESCRIPTOR.message_types_by_name['DoubleRules'] = _DOUBLERULES +DESCRIPTOR.message_types_by_name['Int32Rules'] = _INT32RULES +DESCRIPTOR.message_types_by_name['Int64Rules'] = _INT64RULES +DESCRIPTOR.message_types_by_name['UInt32Rules'] = _UINT32RULES +DESCRIPTOR.message_types_by_name['UInt64Rules'] = _UINT64RULES +DESCRIPTOR.message_types_by_name['SInt32Rules'] = _SINT32RULES +DESCRIPTOR.message_types_by_name['SInt64Rules'] = _SINT64RULES +DESCRIPTOR.message_types_by_name['Fixed32Rules'] = _FIXED32RULES +DESCRIPTOR.message_types_by_name['Fixed64Rules'] = _FIXED64RULES +DESCRIPTOR.message_types_by_name['SFixed32Rules'] = _SFIXED32RULES +DESCRIPTOR.message_types_by_name['SFixed64Rules'] = _SFIXED64RULES +DESCRIPTOR.message_types_by_name['BoolRules'] = _BOOLRULES +DESCRIPTOR.message_types_by_name['StringRules'] = _STRINGRULES +DESCRIPTOR.message_types_by_name['BytesRules'] = _BYTESRULES +DESCRIPTOR.message_types_by_name['EnumRules'] = _ENUMRULES +DESCRIPTOR.message_types_by_name['MessageRules'] = _MESSAGERULES +DESCRIPTOR.message_types_by_name['RepeatedRules'] = _REPEATEDRULES +DESCRIPTOR.message_types_by_name['MapRules'] = _MAPRULES +DESCRIPTOR.message_types_by_name['AnyRules'] = _ANYRULES +DESCRIPTOR.message_types_by_name['DurationRules'] = _DURATIONRULES +DESCRIPTOR.message_types_by_name['TimestampRules'] = _TIMESTAMPRULES +DESCRIPTOR.extensions_by_name['disabled'] = disabled +DESCRIPTOR.extensions_by_name['required'] = required +DESCRIPTOR.extensions_by_name['rules'] = rules +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FieldRules = _reflection.GeneratedProtocolMessageType('FieldRules', (_message.Message,), dict( + DESCRIPTOR = _FIELDRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FieldRules) + )) +_sym_db.RegisterMessage(FieldRules) + +FloatRules = _reflection.GeneratedProtocolMessageType('FloatRules', (_message.Message,), dict( + DESCRIPTOR = _FLOATRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.FloatRules) + )) +_sym_db.RegisterMessage(FloatRules) + +DoubleRules = _reflection.GeneratedProtocolMessageType('DoubleRules', (_message.Message,), dict( + DESCRIPTOR = _DOUBLERULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DoubleRules) + )) +_sym_db.RegisterMessage(DoubleRules) + +Int32Rules = _reflection.GeneratedProtocolMessageType('Int32Rules', (_message.Message,), dict( + DESCRIPTOR = _INT32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int32Rules) + )) +_sym_db.RegisterMessage(Int32Rules) + +Int64Rules = _reflection.GeneratedProtocolMessageType('Int64Rules', (_message.Message,), dict( + DESCRIPTOR = _INT64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Int64Rules) + )) +_sym_db.RegisterMessage(Int64Rules) + +UInt32Rules = _reflection.GeneratedProtocolMessageType('UInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt32Rules) + )) +_sym_db.RegisterMessage(UInt32Rules) + +UInt64Rules = _reflection.GeneratedProtocolMessageType('UInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _UINT64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.UInt64Rules) + )) +_sym_db.RegisterMessage(UInt64Rules) + +SInt32Rules = _reflection.GeneratedProtocolMessageType('SInt32Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt32Rules) + )) +_sym_db.RegisterMessage(SInt32Rules) + +SInt64Rules = _reflection.GeneratedProtocolMessageType('SInt64Rules', (_message.Message,), dict( + DESCRIPTOR = _SINT64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SInt64Rules) + )) +_sym_db.RegisterMessage(SInt64Rules) + +Fixed32Rules = _reflection.GeneratedProtocolMessageType('Fixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed32Rules) + )) +_sym_db.RegisterMessage(Fixed32Rules) + +Fixed64Rules = _reflection.GeneratedProtocolMessageType('Fixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _FIXED64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.Fixed64Rules) + )) +_sym_db.RegisterMessage(Fixed64Rules) + +SFixed32Rules = _reflection.GeneratedProtocolMessageType('SFixed32Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED32RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed32Rules) + )) +_sym_db.RegisterMessage(SFixed32Rules) + +SFixed64Rules = _reflection.GeneratedProtocolMessageType('SFixed64Rules', (_message.Message,), dict( + DESCRIPTOR = _SFIXED64RULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.SFixed64Rules) + )) +_sym_db.RegisterMessage(SFixed64Rules) + +BoolRules = _reflection.GeneratedProtocolMessageType('BoolRules', (_message.Message,), dict( + DESCRIPTOR = _BOOLRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BoolRules) + )) +_sym_db.RegisterMessage(BoolRules) + +StringRules = _reflection.GeneratedProtocolMessageType('StringRules', (_message.Message,), dict( + DESCRIPTOR = _STRINGRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.StringRules) + )) +_sym_db.RegisterMessage(StringRules) + +BytesRules = _reflection.GeneratedProtocolMessageType('BytesRules', (_message.Message,), dict( + DESCRIPTOR = _BYTESRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.BytesRules) + )) +_sym_db.RegisterMessage(BytesRules) + +EnumRules = _reflection.GeneratedProtocolMessageType('EnumRules', (_message.Message,), dict( + DESCRIPTOR = _ENUMRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.EnumRules) + )) +_sym_db.RegisterMessage(EnumRules) + +MessageRules = _reflection.GeneratedProtocolMessageType('MessageRules', (_message.Message,), dict( + DESCRIPTOR = _MESSAGERULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MessageRules) + )) +_sym_db.RegisterMessage(MessageRules) + +RepeatedRules = _reflection.GeneratedProtocolMessageType('RepeatedRules', (_message.Message,), dict( + DESCRIPTOR = _REPEATEDRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.RepeatedRules) + )) +_sym_db.RegisterMessage(RepeatedRules) + +MapRules = _reflection.GeneratedProtocolMessageType('MapRules', (_message.Message,), dict( + DESCRIPTOR = _MAPRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.MapRules) + )) +_sym_db.RegisterMessage(MapRules) + +AnyRules = _reflection.GeneratedProtocolMessageType('AnyRules', (_message.Message,), dict( + DESCRIPTOR = _ANYRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.AnyRules) + )) +_sym_db.RegisterMessage(AnyRules) + +DurationRules = _reflection.GeneratedProtocolMessageType('DurationRules', (_message.Message,), dict( + DESCRIPTOR = _DURATIONRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.DurationRules) + )) +_sym_db.RegisterMessage(DurationRules) + +TimestampRules = _reflection.GeneratedProtocolMessageType('TimestampRules', (_message.Message,), dict( + DESCRIPTOR = _TIMESTAMPRULES, + __module__ = 'pb.ext.validate.validate_pb2' + # @@protoc_insertion_point(class_scope:validate.TimestampRules) + )) +_sym_db.RegisterMessage(TimestampRules) + +google_dot_protobuf_dot_descriptor__pb2.MessageOptions.RegisterExtension(disabled) +google_dot_protobuf_dot_descriptor__pb2.OneofOptions.RegisterExtension(required) +rules.message_type = _FIELDRULES +google_dot_protobuf_dot_descriptor__pb2.FieldOptions.RegisterExtension(rules) + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/validate/validate_pb2.pyi b/flyteidl/validate/validate_pb2.pyi new file mode 100644 index 0000000000..6f9873f9e1 --- /dev/null +++ b/flyteidl/validate/validate_pb2.pyi @@ -0,0 +1,661 @@ +# @generated by generate_proto_mypy_stubs.py. Do not edit! +from google.protobuf.descriptor import ( + FieldDescriptor as google___protobuf___descriptor___FieldDescriptor, +) + +from google.protobuf.duration_pb2 import ( + Duration as google___protobuf___duration_pb2___Duration, +) + +from google.protobuf.internal.containers import ( + RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer, + RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer, +) + +from google.protobuf.message import ( + Message as google___protobuf___message___Message, +) + +from google.protobuf.timestamp_pb2 import ( + Timestamp as google___protobuf___timestamp_pb2___Timestamp, +) + +from typing import ( + Iterable as typing___Iterable, + Optional as typing___Optional, + Text as typing___Text, +) + + +class FieldRules(google___protobuf___message___Message): + + @property + def float(self) -> FloatRules: ... + + @property + def double(self) -> DoubleRules: ... + + @property + def int32(self) -> Int32Rules: ... + + @property + def int64(self) -> Int64Rules: ... + + @property + def uint32(self) -> UInt32Rules: ... + + @property + def uint64(self) -> UInt64Rules: ... + + @property + def sint32(self) -> SInt32Rules: ... + + @property + def sint64(self) -> SInt64Rules: ... + + @property + def fixed32(self) -> Fixed32Rules: ... + + @property + def fixed64(self) -> Fixed64Rules: ... + + @property + def sfixed32(self) -> SFixed32Rules: ... + + @property + def sfixed64(self) -> SFixed64Rules: ... + + @property + def bool(self) -> BoolRules: ... + + @property + def string(self) -> StringRules: ... + + @property + def bytes(self) -> BytesRules: ... + + @property + def enum(self) -> EnumRules: ... + + @property + def message(self) -> MessageRules: ... + + @property + def repeated(self) -> RepeatedRules: ... + + @property + def map(self) -> MapRules: ... + + @property + def any(self) -> AnyRules: ... + + @property + def duration(self) -> DurationRules: ... + + @property + def timestamp(self) -> TimestampRules: ... + + def __init__(self, + float : typing___Optional[FloatRules] = None, + double : typing___Optional[DoubleRules] = None, + int32 : typing___Optional[Int32Rules] = None, + int64 : typing___Optional[Int64Rules] = None, + uint32 : typing___Optional[UInt32Rules] = None, + uint64 : typing___Optional[UInt64Rules] = None, + sint32 : typing___Optional[SInt32Rules] = None, + sint64 : typing___Optional[SInt64Rules] = None, + fixed32 : typing___Optional[Fixed32Rules] = None, + fixed64 : typing___Optional[Fixed64Rules] = None, + sfixed32 : typing___Optional[SFixed32Rules] = None, + sfixed64 : typing___Optional[SFixed64Rules] = None, + bool : typing___Optional[BoolRules] = None, + string : typing___Optional[StringRules] = None, + bytes : typing___Optional[BytesRules] = None, + enum : typing___Optional[EnumRules] = None, + message : typing___Optional[MessageRules] = None, + repeated : typing___Optional[RepeatedRules] = None, + map : typing___Optional[MapRules] = None, + any : typing___Optional[AnyRules] = None, + duration : typing___Optional[DurationRules] = None, + timestamp : typing___Optional[TimestampRules] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> FieldRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class FloatRules(google___protobuf___message___Message): + const = ... # type: float + lt = ... # type: float + lte = ... # type: float + gt = ... # type: float + gte = ... # type: float + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + + def __init__(self, + const : typing___Optional[float] = None, + lt : typing___Optional[float] = None, + lte : typing___Optional[float] = None, + gt : typing___Optional[float] = None, + gte : typing___Optional[float] = None, + in : typing___Optional[typing___Iterable[float]] = None, + not_in : typing___Optional[typing___Iterable[float]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> FloatRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class DoubleRules(google___protobuf___message___Message): + const = ... # type: float + lt = ... # type: float + lte = ... # type: float + gt = ... # type: float + gte = ... # type: float + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[float] + + def __init__(self, + const : typing___Optional[float] = None, + lt : typing___Optional[float] = None, + lte : typing___Optional[float] = None, + gt : typing___Optional[float] = None, + gte : typing___Optional[float] = None, + in : typing___Optional[typing___Iterable[float]] = None, + not_in : typing___Optional[typing___Iterable[float]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> DoubleRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Int32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Int32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Int64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Int64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class UInt32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> UInt32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class UInt64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> UInt64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SInt32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SInt32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SInt64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SInt64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Fixed32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Fixed32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class Fixed64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> Fixed64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SFixed32Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SFixed32Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class SFixed64Rules(google___protobuf___message___Message): + const = ... # type: int + lt = ... # type: int + lte = ... # type: int + gt = ... # type: int + gte = ... # type: int + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + lt : typing___Optional[int] = None, + lte : typing___Optional[int] = None, + gt : typing___Optional[int] = None, + gte : typing___Optional[int] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> SFixed64Rules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class BoolRules(google___protobuf___message___Message): + const = ... # type: bool + + def __init__(self, + const : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> BoolRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class StringRules(google___protobuf___message___Message): + const = ... # type: typing___Text + min_len = ... # type: int + max_len = ... # type: int + min_bytes = ... # type: int + max_bytes = ... # type: int + pattern = ... # type: typing___Text + prefix = ... # type: typing___Text + suffix = ... # type: typing___Text + contains = ... # type: typing___Text + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + email = ... # type: bool + hostname = ... # type: bool + ip = ... # type: bool + ipv4 = ... # type: bool + ipv6 = ... # type: bool + uri = ... # type: bool + uri_ref = ... # type: bool + + def __init__(self, + const : typing___Optional[typing___Text] = None, + min_len : typing___Optional[int] = None, + max_len : typing___Optional[int] = None, + min_bytes : typing___Optional[int] = None, + max_bytes : typing___Optional[int] = None, + pattern : typing___Optional[typing___Text] = None, + prefix : typing___Optional[typing___Text] = None, + suffix : typing___Optional[typing___Text] = None, + contains : typing___Optional[typing___Text] = None, + in : typing___Optional[typing___Iterable[typing___Text]] = None, + not_in : typing___Optional[typing___Iterable[typing___Text]] = None, + email : typing___Optional[bool] = None, + hostname : typing___Optional[bool] = None, + ip : typing___Optional[bool] = None, + ipv4 : typing___Optional[bool] = None, + ipv6 : typing___Optional[bool] = None, + uri : typing___Optional[bool] = None, + uri_ref : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> StringRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class BytesRules(google___protobuf___message___Message): + const = ... # type: bytes + min_len = ... # type: int + max_len = ... # type: int + pattern = ... # type: typing___Text + prefix = ... # type: bytes + suffix = ... # type: bytes + contains = ... # type: bytes + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[bytes] + ip = ... # type: bool + ipv4 = ... # type: bool + ipv6 = ... # type: bool + + def __init__(self, + const : typing___Optional[bytes] = None, + min_len : typing___Optional[int] = None, + max_len : typing___Optional[int] = None, + pattern : typing___Optional[typing___Text] = None, + prefix : typing___Optional[bytes] = None, + suffix : typing___Optional[bytes] = None, + contains : typing___Optional[bytes] = None, + in : typing___Optional[typing___Iterable[bytes]] = None, + not_in : typing___Optional[typing___Iterable[bytes]] = None, + ip : typing___Optional[bool] = None, + ipv4 : typing___Optional[bool] = None, + ipv6 : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> BytesRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class EnumRules(google___protobuf___message___Message): + const = ... # type: int + defined_only = ... # type: bool + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[int] + + def __init__(self, + const : typing___Optional[int] = None, + defined_only : typing___Optional[bool] = None, + in : typing___Optional[typing___Iterable[int]] = None, + not_in : typing___Optional[typing___Iterable[int]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> EnumRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class MessageRules(google___protobuf___message___Message): + skip = ... # type: bool + required = ... # type: bool + + def __init__(self, + skip : typing___Optional[bool] = None, + required : typing___Optional[bool] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> MessageRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class RepeatedRules(google___protobuf___message___Message): + min_items = ... # type: int + max_items = ... # type: int + unique = ... # type: bool + + @property + def items(self) -> FieldRules: ... + + def __init__(self, + min_items : typing___Optional[int] = None, + max_items : typing___Optional[int] = None, + unique : typing___Optional[bool] = None, + items : typing___Optional[FieldRules] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> RepeatedRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class MapRules(google___protobuf___message___Message): + min_pairs = ... # type: int + max_pairs = ... # type: int + no_sparse = ... # type: bool + + @property + def keys(self) -> FieldRules: ... + + @property + def values(self) -> FieldRules: ... + + def __init__(self, + min_pairs : typing___Optional[int] = None, + max_pairs : typing___Optional[int] = None, + no_sparse : typing___Optional[bool] = None, + keys : typing___Optional[FieldRules] = None, + values : typing___Optional[FieldRules] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> MapRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class AnyRules(google___protobuf___message___Message): + required = ... # type: bool + in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + not_in = ... # type: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] + + def __init__(self, + required : typing___Optional[bool] = None, + in : typing___Optional[typing___Iterable[typing___Text]] = None, + not_in : typing___Optional[typing___Iterable[typing___Text]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> AnyRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class DurationRules(google___protobuf___message___Message): + required = ... # type: bool + + @property + def const(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def lt(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def lte(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def gt(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def gte(self) -> google___protobuf___duration_pb2___Duration: ... + + @property + def in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... + + @property + def not_in(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___duration_pb2___Duration]: ... + + def __init__(self, + required : typing___Optional[bool] = None, + const : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + lt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + lte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + gt : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + gte : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, + not_in : typing___Optional[typing___Iterable[google___protobuf___duration_pb2___Duration]] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> DurationRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +class TimestampRules(google___protobuf___message___Message): + required = ... # type: bool + lt_now = ... # type: bool + gt_now = ... # type: bool + + @property + def const(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def lt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def lte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def gt(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def gte(self) -> google___protobuf___timestamp_pb2___Timestamp: ... + + @property + def within(self) -> google___protobuf___duration_pb2___Duration: ... + + def __init__(self, + required : typing___Optional[bool] = None, + const : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + lt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + lte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + gt : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + gte : typing___Optional[google___protobuf___timestamp_pb2___Timestamp] = None, + lt_now : typing___Optional[bool] = None, + gt_now : typing___Optional[bool] = None, + within : typing___Optional[google___protobuf___duration_pb2___Duration] = None, + ) -> None: ... + @classmethod + def FromString(cls, s: bytes) -> TimestampRules: ... + def MergeFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + def CopyFrom(self, other_msg: google___protobuf___message___Message) -> None: ... + +disabled = ... # type: google___protobuf___descriptor___FieldDescriptor + +required = ... # type: google___protobuf___descriptor___FieldDescriptor + +rules = ... # type: google___protobuf___descriptor___FieldDescriptor diff --git a/flyteidl/validate/validate_pb2_grpc.py b/flyteidl/validate/validate_pb2_grpc.py new file mode 100644 index 0000000000..a89435267c --- /dev/null +++ b/flyteidl/validate/validate_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc +